body {
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
}

body > * {
    flex-shrink: 0; /* prevents unexpected shrinking unless allowed */
}

.square {
    position: absolute;
    width: 90vmin;
    height: 90vmin;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #faebd7f7;

    z-index: 1; /* optional: put it on top */

    overflow: hidden;

    border: medium solid gray;
    border-radius: 10px;
    box-shadow: 0 0 10px 10px rgba(0, 0, 0, 0.2);

}

.vizPopper {
    padding: 8px 12px;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    user-select: none;
}

.vizPopper:hover:not(:disabled) {
    background-color: #eaeaea;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.vizPopper:active:not(:disabled) {
    background-color: #ddd;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.vizPopper:disabled {
    background-color: #e0e0e0;
    color: #999;
    border-color: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}

.viz-instructions {
    display: flex;
    justify-content: center;
    gap: 24px;
    background-color: lightblue;
    padding: 12px;
    font-size: .8em;
    width: 100%;
    color: gray;
}


/*.tooltip-div {*/
/*    position: absolute;*/
/*    pointer-events: none;*/
/*    background-color: #ffffca;*/
/*    border: 1px solid #aaa;*/
/*    padding: 6px 8px;*/
/*    font-size: 12px;*/
/*    color: #333;*/
/*    border-radius: 4px;*/
/*    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);*/
/*    opacity: 0;*/
/*    white-space: pre-line;*/
/*    z-index: 9999;*/
/*    transition: opacity 0.2s ease;*/
/*}*/


.welcome {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 16px 0 16px 0;
    box-sizing: border-box;
    border: 1px solid #ccc;

    font-weight: bold;
    font-family: "Segoe UI", sans-serif;

}

.upperControls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    font-family: "Segoe UI", sans-serif;
}

.inputDiv, .dateSelector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inputDiv input[type="text"],
.dateSelector input[type="date"] {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
}

input[placeholder="Search"] {
    /*background: red;*/
    width: 300px;
}

.container {
    width: 100%;
    display: flex;
    justify-content: space-around;
    flex: 1;


}

.columnWrapper {
    flex: 1; /* equal-width columns */
    padding: 5px;
    box-sizing: border-box;
    border: 1px solid #ccc; /* optional for debugging */


    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;

}

.columnHeader {
    cursor: pointer;
}

.columnWrapper .content {
    flex: 1 1 100px;
    overflow-y: scroll;
}

.columnWrapper:last-child .data {
    flex-direction: column;
    align-items: flex-start;
}

.data {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 3px;

    border-bottom: 1px solid #ccc;
    margin-top: 3px;
    margin-bottom: 3px;
    padding-bottom: 1px;
}

.tooltipDataProp {
    font-weight: bold;
    color: blue;
}

.data span:last-child {
    padding-right: 5px;
}

.leafInfoWrapper {
    background-color: lightyellow;
    position: absolute;
    z-index: 1;
    max-width: 600px;
    height: 300px;
    overflow: visible;
    border: thin gray solid;
    border-radius: 10px;
    padding: 12px;
    font-size: .8em;


    .subWrapper {
        overflow: scroll;
        height: 95%;
    }
}

.leafInfo {
    display: grid;
    grid-template-columns: repeat(4, auto);
    width: max-content; /* or min-content */

    grid-template-rows: repeat(5, 16px);
    gap: 2px;

    padding: 10px;
    box-sizing: border-box;
    border-bottom: 1px dashed #ccc;

    grid-template-areas:
    "dt jurisdiction dept dept"
    "beneficiary beneficiary firm firm"
    "lobbyist lobbyist poh poh"
    "notes notes notes notes"
    "notes notes notes notes";

    .leafInfoPropHeader {
        font-weight: bold;
    }

    .notes {
        max-width: 580px;
    }
}


.ticker {
    width: 100%;
    background: lightgray;

}


.flag {
    width: 24px;
}


.ticker-content {
    display: flex;
    gap: 50px;

    max-width: 100vw;
    overflow-x: scroll;

    font-size: small;

    padding: 5px 0 15px 0;

}

.ticker-item {

    flex: 1 0 auto;

    display: flex;
    align-items: start;
    flex-direction: column;

    cursor: pointer;
}

.upper, .lower {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 8px;
}


/* Overlay (full-screen dimmed background) */

.dialogue-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(181, 164, 164, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fade-in 0.25s ease-out;
    padding: 16px; /* Add padding for mobile screens */
}

/* Dialog box */

.dialogue-box {
    background: white;
    border-radius: 8px;
    padding: 48px;
    width: 100%; /* Set width to 100% */
    min-width: 280px; /* Minimum width for very small screens */
    max-width: 600px; /* Maximum width for large screens */
    height: auto; /* Allow height to adjust to content */
    min-height: 100px; /* Minimum height */
    max-height: calc(100vh - 32px); /* Maximum height considering overlay padding */
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: slide-up 0.3s ease-out;
    margin: auto; /* Center the dialog */
}

/* Close button (top-right) */

.dialogue-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    /*border: none;*/
    cursor: pointer;
    padding: 8px;
    font-size: 24px;
    color: #777;
    line-height: 1;

    border: thin gray solid;
    border-radius: 4px;

    background-color: white;
}


.sso {
    display: none;
}

/*small screen media query*/
@media screen and (max-width: 600px) {

    .welcome, .upperControls, .container, .ticker {
        display: none;

    }

    body {
        padding-left: 10vmin;
        padding-right: 10vmin;
    }


    .sso {
        height: 90vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 10vmin;
    }

    /*.lso {*/
    /*    display: none;*/
    /*}*/
    /*.dialogue-box {*/
    /*    padding: 16px; !* Slightly reduced padding on mobile *!*/
    /*    margin: 0; !* Remove margin on small screens *!*/
    /*}*/
}


.helpQuestionMark {
    width: 26px;
    height: 26px;
    cursor: pointer;
    box-sizing: border-box;
    border: 1px solid #bbb;
    border-radius: 50%;
    background: linear-gradient(145deg, #e0e0e0, #cfcfcf);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1em;
    color: #333;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    user-select: none;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

.helpQuestionMark:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.pulsate3 {
    animation: pulsate 1s ease-out;
    animation-iteration-count: 3;
    animation-delay: 5s;
    animation-fill-mode: forwards;
}

@keyframes pulsate {
    0% {

    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);

        color: black;
    }
}