.data-release-container {
    width: 98%;
    padding: 10px;
    margin: 0 auto;
    display: block;
}

.main-content-row {
    display: flex;
    gap: 2rem;
    align-items: flex-start; /* This ensures the tops are aligned */
}

.table-column {
    flex: 1;
    min-width: 0;
}

.calendar-column {
    flex: 0 0 320px;
    margin-left: 50px;
    box-sizing: border-box;
}


.calendar-wrapper {
    padding-top: 0;
    display: flex;
    justify-content: flex-start;
}


.calendar-container {
    flex: 0 0 320px; /* fixed card width */
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 6px 6px;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.agenda-container {
    flex: 1;
    min-width: 0;
}

.panel-title {
    font-size: 1.2em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    word-spacing: 4px;
}

.month-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1em 0;
}

.month-button {
    padding: 8px 16px;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 14px;
    background-color: #FAFAFA;
    border: 1px solid #E5E7EB;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.2s, border-color 0.2s;
    color: #6B7280;
    border-radius: 4px;
    white-space: nowrap;
}

.month-button:hover {
    background-color: #F3F4F6;
}

.month-button.active {
    background-color: #F8F8FF;
    border-color: #2563EB;
    color: #111111;
}


#month-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
}

#floating-month-selector {
    position: absolute;
    z-index: 9999;
    background: white;
    border: 1px solid #ccc;
    font-size: 0.85rem;
    padding: 1.5em;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 6px;
}

.year-month-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1em;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 0;
}

.year-month-row:last-child {
    border-bottom: none;
}

.year-label {
    width: 70px;
    color: #444;
    font-weight: 500;
    padding-top: 0.5em;
    font-family: "Inter", sans-serif;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(4, 60px);
    gap: 0.5em;
    flex-grow: 1;
}

.month-grid-button {
    padding: 0.5em 0;
    border: 1px solid transparent;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    color: #888;
    background-color: white;
    transition: 0.2s;
    font-weight: 400;
    font-family: "Inter", sans-serif;
}

.month-grid-button:hover {
    border-color: #ddd;
    cursor: pointer;
    background-color: #f5f5f5;
    color: #222;
}

.month-grid-button.active {
    color: white;
    background-color: #222;
    border-color: #222;
}

.release-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Roboto', sans-serif;
    background: #fafafa;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 6px 6px;
}

.release-table thead tr:first-child th:first-child {
    border-top-left-radius: 6px;
}

.release-table thead tr:first-child th:last-child {
    border-top-right-radius: 6px;
}

.release-table-body-wrapper {
    border-radius: 0 0 6px 6px;
}


.release-table th,
.release-table td {
    border: none;
    padding: 8px 12px;
}

.release-table thead th {
    background-color: #373A40;
    color: white;
}

.agency-logo {
    width: 18px;
    height: auto;
    vertical-align: middle;
    margin-right: 4px;
}

.release-header-row td {
    border-top: 1px solid grey;
    font-weight: bold;
    background-color: #fafafa;
    font-family: 'Inter', sans-serif;
}


.release-name-row td {
    border-top: 1px solid grey;
    font-weight: bold;
    background-color: #fafafa;
    font-family: 'Inter', sans-serif;
}

.name-container {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    padding-right: 85px;
    box-sizing: border-box;
}


.indicator-row.last-in-group td {
    border-bottom: 1px solid grey;
}

.release-actions {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
    background: transparent;
    z-index: 10;
}

.cal-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    background-color: #f0f0f0;
    font-family: 'Inter', sans-serif;
    border-radius: 50px;
    padding: 6px;
    min-width: 30px;
    height: 30px;
    color: #444;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 30px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.cal-pill img,
.cal-pill i {
    display: block;
    margin: 0;
    flex-shrink: 0;
}

.cal-pill img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

.cal-pill i {
    width: 18px;
    height: 18px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pill-label {
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    max-width: 0;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.cal-pill:hover {
    max-width: 250px;
    padding: 6px 15px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: #1a73e8;
}

.cal-pill:hover .pill-label {
    opacity: 1;
    max-width: 200px;
    margin-left: 8px;
}

.release-date {
    text-align: center;
    font-weight: 500;
    color: #333;
    font-family: 'Inter', sans-serif;
}

.release-table .ref-period::before {
    content: "(";
}

.release-table .ref-period::after {
    content: ")";
}

.release-table .ref-period {
    font-weight: 300;
    text-align: center;
}

.release-table .last-value {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-align: right;
    color: #333;
}

.release-table .last-period {
    font-weight: 400;
    text-align: center;
    color: #555;
}


.release-table .indicator-link {
    text-decoration: none;
    color: inherit;
}

.release-table .indicator-link:hover {
    cursor: pointer;
    color: #2563EB;
}

.indicator-arrow {
    font-size: 0.75em;
    margin-left: 5px;
    opacity: 0;
    transform: translate(-5px, 5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #2563EB;
}

.indicator-link:hover .indicator-arrow {
    opacity: 1;
    transform: translate(0, 0); /* Slide into perfect position */
}




.release-name {
    text-align: left;
}

.indicator-cell {
    text-align: left;
    padding: 0.75rem 1rem;
    padding-left: 2rem;
}


.calendar-month-hdr {
    padding: 6px 12px;
    background: #373A40;
    color: #eeeeee;
    font-weight: 500;
    text-align: center;
    border-radius: 6px 6px 0 0;
}

.calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 6px 12px;
}

.calendar-days-hdr {
    display: contents;
}

.calendar-days-hdr span {
    text-align: center;
    font-size: 14px;
    color: #9ca3af;
    padding: 4px 0;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.calendar-grid {
    display: contents;
}

.calendar-day {
    position: relative;
    height: 34px;
    font-size: 12px;
    text-align: center;
    border-radius: 6px;
    padding-top: 6px;
    font-family: 'Inter', sans-serif;
}

.calendar-day.outside {
    visibility: hidden;
}

.calendar-day.past {
    opacity: 0.35;
}

.day-num {
    display: block;
    line-height: 1;
    font-family: "Inter", sans-serif;
}

.dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    margin-top: 3px;
}

.dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #2B7FFF; /* subtle blue */
}

.more {
    font-size: 9px;
    color: #9ca3af;
    margin-left: 2px;
}


.pre-wrap {
    white-space: pre-wrap; /* wrap lines */
    word-break: break-word; /* break long words */
}