/* Full Calendar Style */
.fc-view-harness {
    overflow: visible !important;
}

/* Professional card look: outline + shadow around the whole widget */
#calendar {
    background: #ffffff;
    border: 1px solid #e2e8e4;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 40, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
    padding: 1rem 1rem 1.25rem;
}

/* Toolbar: prev/next + centered title */
#calendar .fc-toolbar {
    margin-bottom: 0.75rem !important;
}
#calendar .fc-toolbar-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #1b4332;
}
#calendar .fc-button {
    background: transparent !important;
    border: 1px solid #d1e7dd !important;
    color: forestgreen !important;
    box-shadow: none !important;
    border-radius: 999px !important;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}
#calendar .fc-button:hover {
    background-color: #e9f5ec !important;
    color: #1b4332 !important;
}
#calendar .fc-button:focus {
    box-shadow: 0 0 0 2px rgba(34, 139, 34, 0.25);
}

/* Grid gets clipped to the same rounded corners as the card */
#calendar .fc-scrollgrid {
    border-radius: 12px;
    overflow: hidden;
    border-color: #e2e8e4 !important;
}
#calendar .fc-theme-standard td,
#calendar .fc-theme-standard th {
    border-color: #edf2ee !important;
}

/* Header row styling */
.fc .fc-col-header-cell {
    background-color: forestgreen !important;
    border-color: forestgreen !important;
}
.fc .fc-col-header-cell-cushion {
    color: #ffffff !important;
    font-weight: bold !important;
    padding: 10px 0 !important;
    text-align: center !important;
    letter-spacing: 0.03em;
}

/* Day numbers + hover feedback */
#calendar .fc-daygrid-day-number {
    padding: 6px 8px !important;
    font-size: 0.8rem;
    color: #333;
}
#calendar .fc-daygrid-day:hover {
    background-color: #f4faf6;
}
#calendar .fc-day-today {
    background-color: #fff9e6 !important;
}

/* Selected date: bordered box, set by calendar.js on click (mirrors the
   Senate site's reference styling for the currently-selected day) */
#calendar .sched-selected .fc-daygrid-day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: 2px;
    border: 2px solid forestgreen;
    border-radius: 6px;
    font-weight: 700;
    color: #1b4332;
}

/* Day dots: one per session type occurring that day, colored from
   SESSION_TYPE_META (calendar.js) -- background-color is set inline per
   dot, everything else lives here */
.sched-dot-wrap {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3px;
}
.sched-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

/* Dropdown fix over calendar */
.dropdown-menu {
    z-index: 2000 !important;
}
.dropdown-menu .dropdown-item {
    font-size: 0.7em !important;  /* adjust as needed */
    line-height: 1.2;               /* tighter spacing */
    padding: 6px 12px;              /* smaller padding for compact look */
}

/* ===================================================================
   Committee Schedule -- Agenda table card
   Same "professional card" treatment as the calendar widget (outline +
   shadow), colored with the BARMM flag palette instead of Senate's
   red/blue/gold: green (#009966) + white for the primary surfaces,
   red (#FF3333) for the header band, gold (#FFD700) as the accent line
   -- echoing the flag's crescent/star and kris accents.
   =================================================================== */
.agenda-card {
    background: #ffffff;
    border: 1px solid #e2e8e4;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 40, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Date banner: BARMM red, gold accent tab (stands in for the flag's
   gold crescent/star) */
.agenda-date-banner {
    position: relative;
    background: linear-gradient(135deg, #df1e2f, #ff3333);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px 24px 18px;
}
.agenda-date-banner::after {
    content: "";
    position: absolute;
    left: 24px;
    bottom: 0;
    width: 46px;
    height: 4px;
    background: #FFD700;
    border-radius: 2px 2px 0 0;
}

/* Column header row: BARMM green band, gold underline beneath each label
   (mobile: hidden -- rows fall back to inline "Label: value" pairs) */
.agenda-table-header {
    display: none;
    background: #007a4d;
}
.agenda-table-header > div {
    padding: 12px 14px 10px;
}
.agenda-table-header .label {
    display: inline-block;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 3px solid #FFD700;
    padding-bottom: 4px;
}

/* Scrollable row list */
.agenda-table-body {
    max-height: 460px;
    overflow-y: auto;
}
.agenda-table-body::-webkit-scrollbar { width: 10px; }
.agenda-table-body::-webkit-scrollbar-track { background: #f4faf6; }
.agenda-table-body::-webkit-scrollbar-thumb { background: #a9d9bd; border-radius: 6px; }
.agenda-table-body::-webkit-scrollbar-thumb:hover { background: #7fc79d; }

/* Rows -- mobile-first: stacked block with inline "Label: value" prefixes.
   border-left-color is set inline per row (see calendar.js) from the same
   SESSION_TYPE_META colors as the legend/dots, so it's omitted here. */
.agenda-row {
    display: block;
    padding: 14px 16px 14px 13px;
    border-bottom: 1px solid #eef2ee;
    border-left: 5px solid transparent;
}
.agenda-row:last-child { border-bottom: none; }
.agenda-row:nth-child(even) { background: #f8fdf9; }
.agenda-row .cell {
    padding: 3px 0;
    font-size: 0.85rem;
    color: #333;
}
.agenda-row .cell[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: 700;
    color: #009966;
}
.type-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #ffffff;
    padding: 2px 9px;
    border-radius: 999px;
    margin-bottom: 5px;
}
.agenda-row .committee-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 2px; }
.agenda-row .presiding { font-size: 0.72rem; color: #666; margin-bottom: 4px; }
.agenda-row .cell-time { color: #333; font-weight: 700; }
.agenda-row .cell-venue { color: #555; }
.agenda-row .cell-agenda .agenda-text { color: #333; }
.agenda-row .agenda-text.clamped {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Small reference links under the agenda text: "Read more"/"Show less"
   and "Order of Business" -- same treatment, side by side. */
.agenda-row .agenda-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
    margin-top: 4px;
}
.agenda-row .agenda-links a {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #009966;
    text-decoration: none;
}
.agenda-row .agenda-links a:hover { color: #046a3e; text-decoration: underline; }

/* Empty state */
.agenda-empty {
    padding: 40px 20px;
    text-align: center;
    color: #888;
}
.agenda-empty i { font-size: 1.8rem; color: #c9d6cd; display: block; margin-bottom: 8px; }
.agenda-empty p { margin: 0; }

/* Desktop/tablet (Bootstrap md+): true 4-column table layout */
@media (min-width: 768px) {
    .agenda-table-header {
        display: grid;
        grid-template-columns: 1.7fr 0.8fr 1fr 1.7fr;
    }
    .agenda-row {
        display: grid;
        grid-template-columns: 1.7fr 0.8fr 1fr 1.7fr;
        padding: 16px 14px;
        align-items: start;
    }
    .agenda-row .cell { padding: 0 8px 0 0; }
    .agenda-row .cell[data-label]::before { content: none; }
}

/* Session-type color legend, above the calendar/agenda columns */
.schedule-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 22px;
    margin-bottom: 20px;
    padding: 10px 16px;
    background: #f8fdf9;
    border: 1px solid #e2e8e4;
    border-radius: 12px;
    font-size: 0.82rem;
    color: #333;
}
.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
}
.legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.legend-regular { background-color: #1e3a8a; }
.legend-hearing { background-color: forestgreen; }
.legend-special { background-color: #dc2626; }
