/* teacher/dashboard — Genel Bakış bilgi kartları */

#teacher-dashboard-view.tdash-home {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Masaüstünde ticker gizli — telefonda header CSS açar */
.t-sutlac-ticker {
    display: none;
}

/* Atatürk çekmece — masaüstü: kompakt satır yerine klasik kart */
.tdash-ataturk-compact {
    display: none;
}
@media (min-width: 1024px) {
    #teacher-dashboard-view .tdash-island-ataturk {
        position: relative;
    }
    #teacher-dashboard-view .tdash-ataturk-compact {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: default;
        text-align: left;
        font: inherit;
        color: inherit;
    }
    #teacher-dashboard-view .tdash-ataturk-compact-copy,
    #teacher-dashboard-view .tdash-ataturk-drawer-chevron {
        display: none !important;
    }
    #teacher-dashboard-view .tdash-ataturk-expand {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        flex: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }
    #teacher-dashboard-view .tdash-ataturk-photo-wrap {
        max-height: none !important;
        height: auto !important;
    }
    #teacher-dashboard-view .tdash-ataturk-photo {
        max-height: none !important;
        height: auto !important;
        object-fit: contain !important;
    }
    #teacher-dashboard-view .tdash-ataturk-quote-glass {
        display: none;
    }
}

.tdash-context-row--top {
    order: -1;
}

/* —— Atatürk orijinal görsel + takvim tüm ay (kırpma yok, masaüstü) —— */
@media (min-width: 1024px) {
#teacher-dashboard-view .tdash-context-row--compact,
.tdash-context-row--compact {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0.85rem !important;
    align-items: flex-start !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}
#teacher-dashboard-view .tdash-context-row--compact .tdash-island-ataturk {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 42% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    align-self: start !important;
    overflow: visible !important;
}
#teacher-dashboard-view .tdash-context-row--compact .tdash-island-cal {
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 17rem !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    align-self: start !important;
}
}

.tdash-ataturk-card--hover {
    padding: 0 !important;
    width: fit-content;
    max-width: 100%;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
    border-radius: 1rem !important;
    background: #1c1917 !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
}
.tdash-ataturk-hover-zone {
    position: relative;
    display: block;
    width: fit-content;
    max-width: 100%;
    height: auto;
    min-height: 0;
    border-radius: inherit;
    overflow: visible;
    cursor: default;
    outline: none;
}
#teacher-dashboard-view .tdash-ataturk-card--hover .tdash-ataturk-photo-wrap,
.tdash-ataturk-card--hover .tdash-ataturk-photo-wrap {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    background: transparent !important;
    border-radius: inherit;
    overflow: visible !important;
}
#teacher-dashboard-view .tdash-ataturk-card--hover .tdash-ataturk-photo,
.tdash-ataturk-card--hover .tdash-ataturk-photo {
    position: static !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: min(28rem, 42vw) !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: left top !important;
    border-radius: 0;
    filter: none;
    transform: none;
    transition: filter 0.28s ease;
}
.tdash-ataturk-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #facc15;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
}
.tdash-ataturk-badge i {
    font-size: 0.62rem;
    color: #fcd34d;
}
.tdash-ataturk-hover-panel.tdash-hover-glass {
    background: rgba(28, 25, 23, 0.28);
    backdrop-filter: blur(5px) saturate(1.05);
    -webkit-backdrop-filter: blur(5px) saturate(1.05);
}
.tdash-ataturk-hover-panel .tdash-ataturk-quote {
    font-size: 0.78rem !important;
    line-height: 1.52 !important;
    margin: 0 !important;
    color: #facc15 !important;
    text-align: center;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
    max-width: 28rem;
    font-weight: 650;
}

/* Masaüstü: fare ile hover — foto buğulanır, sarı yazı çıkar */
@media (hover: hover) and (pointer: fine) {
    .tdash-ataturk-hover-zone:hover .tdash-ataturk-photo,
    .tdash-ataturk-hover-zone.is-hovering .tdash-ataturk-photo {
        filter: blur(2.4px) brightness(0.62) saturate(0.85);
    }
    .tdash-ataturk-hover-zone:hover .tdash-ataturk-badge,
    .tdash-ataturk-hover-zone.is-hovering .tdash-ataturk-badge {
        opacity: 1;
        transform: none;
    }
}
.tdash-ataturk-hover-zone.is-hovering .tdash-ataturk-photo,
.tdash-ataturk-hover-zone.is-touch-reveal .tdash-ataturk-photo {
    filter: blur(2.4px) brightness(0.62) saturate(0.85);
}
.tdash-ataturk-hover-zone.is-hovering .tdash-ataturk-badge,
.tdash-ataturk-hover-zone.is-touch-reveal .tdash-ataturk-badge {
    opacity: 1;
    transform: none;
}

/* —— MEB Takvimi: premium idle + hover’da detay paneli —— */
.tdash-island-cal--hover.calendar-gcal {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 1rem !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
    color: #1e293b;
}
.tdash-island-cal--compact {
    padding: 0 !important;
}
.tdash-island-cal--hover .tdash-cal-hover-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    padding: 0.5rem 0.55rem 0.55rem;
    outline: none;
    cursor: pointer;
}
.tdash-island-cal--hover .tdash-cal-title {
    color: #1e40af !important;
    font-size: 0.6rem !important;
    letter-spacing: 0.07em;
}
.tdash-island-cal--hover .tdash-cal-title i {
    color: #3b82f6 !important;
}
.tdash-island-cal--hover .tdash-cal-month-nav button {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(191, 219, 254, 0.85);
    color: #2563eb;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.1);
}
.tdash-island-cal--hover .tdash-cal-month-nav button:hover {
    background: #fff;
    border-color: #93c5fd;
    color: #1d4ed8;
}
.tdash-island-cal--hover #calendar-month-title {
    font-size: 0.76rem;
    font-weight: 900;
    color: #1e3a8a;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(191, 219, 254, 0.55);
    border-radius: 0.45rem;
    padding: 0.12rem 0.4rem;
    min-width: 4.75rem !important;
}
.tdash-cal-head-min {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    flex-shrink: 0;
    margin-bottom: 0.32rem;
    min-width: 0;
}
.tdash-island-cal--hover .tdash-cal-title {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tdash-cal-body {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
    overflow: visible;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 0.72rem;
    padding: 0.38rem 0.35rem 0.5rem;
}
.tdash-island-cal--hover .s-cal-grid-wrap {
    gap: 0.2rem !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
}
.tdash-island-cal--hover .s-cal-head-day {
    font-size: 0.62rem !important;
    padding: 0.2rem 0 !important;
    font-weight: 800 !important;
    color: #94a3b8 !important;
    background: transparent !important;
    border-bottom: none !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.tdash-island-cal--hover .s-cal-head-day.text-rose-500 {
    color: #f43f5e !important;
}
.tdash-island-cal--hover #calendar-days-grid {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    flex: 0 0 auto !important;
    min-height: 16.5rem !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    align-content: start;
    grid-auto-rows: 2.75rem !important;
}
.tdash-island-cal--hover .s-cal-day,
.tdash-island-cal--hover .calendar-gcal .s-cal-day {
    min-height: 2.75rem !important;
    height: 2.75rem !important;
    max-height: none !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    border-radius: 0.48rem !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    color: #475569 !important;
    flex-direction: column;
    gap: 0.06rem;
    line-height: 1;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.tdash-island-cal--hover .s-cal-day:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.14) !important;
    border-color: #bfdbfe !important;
}
/* Boş kâğıt takvim: işaretler yalnızca tıklanınca (is-armed) görünür */
.tdash-island-cal--hover:not(.is-armed) .s-cal-dots {
    visibility: hidden;
}
.tdash-island-cal--hover:not(.is-armed) .s-cal-day.is-event,
.tdash-island-cal--hover:not(.is-armed) .s-cal-day.is-holiday,
.tdash-island-cal--hover:not(.is-armed) .s-cal-day.is-exam,
.tdash-island-cal--hover:not(.is-armed) .s-cal-day.is-birthday,
.tdash-island-cal--hover:not(.is-armed) .s-cal-day.is-week-select {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(226, 232, 240, 0.95) !important;
    color: #475569 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}
.tdash-island-cal--hover:not(.is-armed) .s-cal-day.is-today {
    background: #fff !important;
    color: #1d4ed8 !important;
    border-color: #93c5fd !important;
    box-shadow: inset 0 0 0 1px #3b82f6 !important;
}
.tdash-island-cal--hover.is-armed .s-cal-day.is-today {
    background: linear-gradient(145deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #fff !important;
    border-color: #1d4ed8 !important;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.32) !important;
}
.tdash-island-cal--hover.is-armed .s-cal-day.is-event {
    background: linear-gradient(160deg, #eff6ff 0%, #dbeafe 100%) !important;
    border-color: #bfdbfe !important;
    color: #1d4ed8 !important;
    cursor: pointer;
}
.tdash-island-cal--hover.is-armed .s-cal-day.is-holiday {
    background: linear-gradient(160deg, #fffbeb 0%, #fef3c7 100%) !important;
    border-color: #fcd34d !important;
    color: #b45309 !important;
}
.tdash-island-cal--hover.is-armed .s-cal-day.is-exam {
    background: linear-gradient(160deg, #fff1f2 0%, #ffe4e6 100%) !important;
    border-color: #fda4af !important;
    color: #be123c !important;
}
.tdash-island-cal--hover.is-armed .s-cal-day.is-birthday {
    background: linear-gradient(160deg, #fdf2f8 0%, #fce7f3 100%) !important;
    border-color: #f9a8d4 !important;
    color: #be185d !important;
}
.tdash-island-cal--hover.is-armed .s-cal-day.is-week-select {
    background: linear-gradient(160deg, #f0fdf4 0%, #dcfce7 100%) !important;
    border-color: #86efac !important;
    color: #15803d !important;
    cursor: pointer;
}
.tdash-island-cal--hover .s-cal-cell-empty {
    min-height: 2.75rem !important;
    height: 2.75rem !important;
    height: 100%;
    background: transparent !important;
    border: none !important;
}
.tdash-island-cal--hover .s-cal-day-num {
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.1;
}
.tdash-island-cal--hover .s-cal-dots {
    display: flex;
    gap: 0.12rem;
    align-items: center;
    justify-content: center;
    min-height: 0.2rem;
}
.tdash-island-cal--hover .s-cal-dot {
    width: 0.22rem;
    height: 0.22rem;
    border-radius: 999px;
    flex-shrink: 0;
}
.tdash-island-cal--hover .s-cal-dot.is-holiday { background: #f59e0b; }
.tdash-island-cal--hover .s-cal-dot.is-exam { background: #f43f5e; }
.tdash-island-cal--hover .s-cal-dot.is-bday { background: #ec4899; }
.tdash-cal-legend {
    line-height: 1.35;
}

/* Buzlu hover paneli — ortak */
.tdash-hover-glass {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.75rem;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
    border-radius: inherit;
}
.tdash-cal-hover-panel {
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0.5rem;
}
.tdash-cal-hover-inner {
    width: 100%;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 0.65rem;
    padding: 0.55rem 0.6rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

/* Masaüstü: fare ile hover */
@media (hover: hover) and (pointer: fine) {
    .tdash-island-cal--hover.is-armed:hover .tdash-cal-hover-panel,
    .tdash-island-cal--hover.is-armed .tdash-cal-body:hover .tdash-cal-hover-panel {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .tdash-ataturk-hover-zone:hover .tdash-ataturk-hover-panel,
    .tdash-ataturk-hover-zone.is-hovering .tdash-ataturk-hover-panel {
        opacity: 1;
        visibility: visible;
        pointer-events: none;
        background: rgba(28, 25, 23, 0.32);
    }
}

/* Dokunmatik: JS ile .is-touch-reveal sınıfı */
.tdash-island-cal--hover.is-armed.is-touch-reveal .tdash-cal-hover-panel,
.tdash-island-cal--hover.is-armed .tdash-cal-body.is-touch-reveal .tdash-cal-hover-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.tdash-ataturk-hover-zone.is-hovering .tdash-ataturk-hover-panel,
.tdash-ataturk-hover-zone.is-touch-reveal .tdash-ataturk-hover-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: none;
}
.tdash-ataturk-hover-zone.is-touch-reveal .tdash-ataturk-hover-panel {
    background: rgba(15, 23, 42, 0.3);
}

/* —— Sınıf grafikleri çekmecesi —— */
.tdash-charts-drawer {
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}
.tdash-charts-drawer-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border: none;
    background: linear-gradient(90deg, #f0fdfa 0%, #fff 55%);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}
.tdash-charts-drawer-toggle:hover {
    background: linear-gradient(90deg, #ccfbf1 0%, #f8fafc 100%);
}
.tdash-charts-drawer-title {
    font-size: 0.72rem;
    font-weight: 900;
    color: #0f766e;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}
.tdash-charts-drawer-hint {
    font-size: 0.62rem;
    font-weight: 700;
    color: #94a3b8;
    margin-left: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tdash-charts-drawer-chevron {
    font-size: 0.65rem;
    color: #64748b;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.tdash-charts-drawer.is-open .tdash-charts-drawer-chevron {
    transform: rotate(180deg);
}
.tdash-charts-drawer-body {
    border-top: 1px solid #e2e8f0;
    background: #fafbfc;
}
.tdash-charts-drawer-body.hidden {
    display: none;
}
.tdash-chart-wrap--drawer {
    max-height: 14rem;
}
.tdash-chart-wrap--drawer canvas {
    max-height: 14rem;
}

.tdash-island-cal--hover.is-armed {
    box-shadow: 0 0 0 2px #93c5fd !important;
}

.tdash-cmd-drawer {
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}
.tdash-cmd-drawer-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: none;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}
.tdash-cmd-drawer-toggle:hover { background: #f8fafc; }
.tdash-cmd-drawer-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.tdash-cmd-drawer-title i { color: #64748b; }
.tdash-cmd-drawer-hint {
    flex: 1;
    min-width: 0;
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tdash-cmd-drawer-chevron {
    color: #94a3b8;
    font-size: 0.7rem;
    transition: transform 0.18s ease;
}
.tdash-cmd-drawer.is-open .tdash-cmd-drawer-chevron { transform: rotate(180deg); }
.tdash-cmd-drawer-body { border-top: 1px solid #f1f5f9; }
.tdash-cmd-drawer-body.hidden { display: none; }
.tdash-cmd-drawer .tdash-command-bar {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.tdash-week-feedback {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ccfbf1;
    border-radius: 0.85rem;
    background: linear-gradient(90deg, #f0fdfa 0%, #fff 42%);
}
.tdash-week-feedback-art {
    width: 3.4rem;
    height: 3.4rem;
    object-fit: contain;
    flex-shrink: 0;
}
.tdash-week-feedback-kicker {
    margin: 0;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f766e;
}
.tdash-week-feedback-text {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.45;
}
.tdash-week-feedback .tdash-sutlac-live-brief {
    margin: 0.3rem 0 0;
    min-height: 0;
    padding: 0;
    font-size: 0.74rem;
    font-weight: 650;
    color: #0f766e;
    line-height: 1.4;
}
.tdash-week-feedback .tdash-sutlac-live-brief:empty { display: none; }
.tdash-week-feedback-jumps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.45rem;
}
.tdash-week-feedback-jumps button {
    border: 1px solid #99f6e4;
    background: #fff;
    color: #0f766e;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    border-radius: 999px;
    padding: 0.22rem 0.55rem;
    cursor: pointer;
    font-family: inherit;
}
.tdash-week-feedback-jumps button:hover {
    background: #ccfbf1;
    border-color: #5eead4;
}

@media (max-width: 767px) {
    #teacher-dashboard-view .tdash-ataturk-card--hover .tdash-ataturk-photo-wrap,
    #teacher-dashboard-view .tdash-ataturk-card--hover .tdash-ataturk-photo {
        position: static !important;
        width: auto !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        max-width: min(100%, 42vw) !important;
        object-fit: contain !important;
        object-position: left top !important;
    }
}
@media (max-width: 719px) {
    #teacher-dashboard-view .tdash-context-row--compact {
        min-height: 24rem;
    }
    #teacher-dashboard-view .tdash-context-row--compact .tdash-island-ataturk {
        min-width: 0 !important;
        max-width: 38% !important;
    }
    #teacher-dashboard-view .tdash-context-row--compact .tdash-island-cal {
        min-width: 0 !important;
    }
    #teacher-dashboard-view .tdash-context-row--compact .tdash-island-ataturk,
    #teacher-dashboard-view .tdash-context-row--compact .tdash-island-cal {
        height: auto !important;
        max-height: none !important;
    }
    .tdash-ataturk-hover-zone,
    .tdash-ataturk-card--hover .tdash-ataturk-photo-wrap,
    .tdash-ataturk-card--hover .tdash-ataturk-photo {
        min-height: 0;
    }
    .tdash-island-cal--hover .tdash-cal-hover-zone {
        min-height: 0;
        height: auto;
    }
    .tdash-island-cal--hover #calendar-days-grid {
        min-height: 15rem !important;
        grid-auto-rows: 2.5rem !important;
    }
    .tdash-island-cal--hover .s-cal-day,
    .tdash-island-cal--hover .calendar-gcal .s-cal-day {
        min-height: 2.5rem !important;
        height: 2.5rem !important;
        font-size: 0.72rem !important;
    }
    .tdash-island-cal--hover .s-cal-cell-empty {
        min-height: 2.5rem !important;
        height: 2.5rem !important;
    }
    .tdash-cmd-drawer-hint,
    .tdash-charts-drawer-hint {
        display: none;
    }
    .tdash-week-feedback-art { width: 2.6rem; height: 2.6rem; }
}

.tdash-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.tdash-page-head--row {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
}
.tdash-page-head--row .tdash-page-head-text {
    flex: 0 1 auto;
    min-width: 0;
}
.tdash-page-head--row .tdash-page-head-text h1 {
    font-size: 1.12rem;
    margin: 0;
    white-space: nowrap;
}
.tdash-page-head--row .tdash-page-head-text p {
    display: none;
}
@media (min-width: 900px) {
    .tdash-page-head--row .tdash-page-head-text p {
        display: block;
        margin-top: 0.12rem;
        font-size: 0.68rem;
        max-width: 20rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
.tdash-page-head--row .tdash-topbar--inline {
    flex: 1 1 14rem;
    justify-content: flex-end;
    margin-left: auto;
    min-width: 0;
}

.tdash-page-head-text h1 {
    font-size: 1.25rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.tdash-page-head-text p {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.2rem;
    line-height: 1.45;
    max-width: 28rem;
}

/* Sütlaç AI — Genel Bakış spotlight */
.tdash-sutlac-spotlight {
    position: relative;
    border-radius: 1.15rem;
    overflow: hidden;
    margin-bottom: 0.25rem;
    border: 1px solid rgba(13, 148, 136, 0.22);
    box-shadow: 0 12px 40px rgba(13, 148, 136, 0.12), 0 2px 8px rgba(15, 23, 42, 0.04);
}
.tdash-sutlac-spotlight-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 120% at 0% 0%, rgba(254, 243, 199, 0.55), transparent 55%),
        radial-gradient(ellipse 70% 90% at 100% 100%, rgba(13, 148, 136, 0.18), transparent 50%),
        linear-gradient(135deg, #0f766e 0%, #0e7490 45%, #155e75 100%);
}
.tdash-sutlac-spotlight-inner {
    position: relative;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    color: #fff;
}
.tdash-sutlac-spotlight-visual img {
    width: 4.75rem;
    height: 4.75rem;
    border-radius: 1rem;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.tdash-sutlac-spotlight-body { flex: 1; min-width: 0; }
.tdash-sutlac-spotlight-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}
.tdash-sutlac-spotlight-head h2 {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #fff;
}
.tdash-sutlac-spotlight-head h2 span {
    font-weight: 800;
    opacity: 0.85;
    font-size: 0.95em;
}
.tdash-sutlac-spotlight-info {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #ccfbf1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}
.tdash-sutlac-spotlight-body > p {
    font-size: 0.72rem;
    line-height: 1.5;
    opacity: 0.92;
    max-width: 40rem;
    margin-bottom: 0.65rem;
}
.tdash-sutlac-spotlight-compose {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: stretch;
}
.tdash-sutlac-live-brief {
    margin: 0.45rem 0 0.7rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #134e4a;
    white-space: pre-wrap;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(13, 148, 136, 0.22);
    border-radius: 0.85rem;
    padding: 0.55rem 0.75rem;
    min-height: 2.4rem;
}
.tdash-sutlac-spotlight .tdash-ai-quick-input {
    flex: 1;
    min-width: 12rem;
    border: none;
    border-radius: 0.75rem;
    padding: 0.58rem 0.75rem;
    font-size: 0.78rem;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.tdash-sutlac-spotlight .tdash-ai-quick-send {
    width: 2.5rem;
    border-radius: 0.75rem;
    background: #fff;
    color: #0f766e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.tdash-sutlac-spotlight-open {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.5rem 0.85rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    white-space: nowrap;
}
.tdash-sutlac-spotlight .tdash-ai-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.55rem;
}
.tdash-sutlac-spotlight .tdash-ai-quick-chips button {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.32rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}
.tdash-sutlac-spotlight .tdash-ai-quick-chips button:hover {
    background: rgba(255, 255, 255, 0.24);
}
@media (max-width: 640px) {
    .tdash-sutlac-spotlight-inner { flex-direction: column; align-items: center; text-align: center; }
    .tdash-sutlac-spotlight-compose { width: 100%; }
}

.tdash-topbar--inline {
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.tdash-zone-title {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin: 0.25rem 0 0.5rem;
}

.tdash-zone-desc {
    font-size: 0.72rem;
    color: #64748b;
    margin: -0.25rem 0 0.65rem;
    line-height: 1.45;
}

.tdash-wday-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.35rem;
    height: 6.5rem;
    padding: 0.35rem 0.15rem 0;
}

.tdash-wday-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 0.25rem;
}

.tdash-wday-bar i {
    display: block;
    width: 100%;
    max-width: 1.75rem;
    border-radius: 0.35rem 0.35rem 0.1rem 0.1rem;
    min-height: 0.35rem;
}

.tdash-wday-bar span {
    font-size: 0.55rem;
    font-weight: 700;
    color: #94a3b8;
}

.tdash-insight-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .tdash-insight-metrics { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
}

.tdash-insight-details {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 0.65rem;
    align-items: stretch;
}

@media (min-width: 900px) {
    .tdash-insight-details { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* —— Bilgi kartı —— */
.tdash-icard {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.85rem 0.9rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-height: 9.5rem;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.tdash-icard--vertical {
    min-height: 15rem;
    padding: 0.95rem 0.8rem 0.75rem;
    text-align: center;
    gap: 0.4rem;
}

.tdash-vcard-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.tdash-vcard-head h3 {
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.tdash-vcard-head p {
    font-size: 0.62rem;
    color: #64748b;
    line-height: 1.35;
    max-width: 11rem;
}

.tdash-vcard-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.15rem 0;
}

.tdash-vcard-donut {
    display: flex;
    justify-content: center;
    margin-bottom: 0.1rem;
}

.tdash-vcard-stat strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.tdash-vcard-stat span {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    margin-top: 0.2rem;
    line-height: 1.35;
}

.tdash-vcard-bar {
    width: 100%;
    margin-top: 0.1rem;
}

.tdash-vcard-spark {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    margin-top: 0.15rem;
}

.tdash-vcard-spark .tdash-spark {
    width: 100%;
    max-width: none;
    height: 2.35rem;
}

.tdash-icard:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.tdash-icard.is-alert {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fffbfb 0%, #fff 100%);
}

.tdash-icard-head {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.tdash-icard-icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.tdash-icard-head h3 {
    font-size: 0.8rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.tdash-icard-head p {
    font-size: 0.62rem;
    color: #64748b;
    margin-top: 0.12rem;
    line-height: 1.35;
}

.tdash-icard-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex: 1;
}

.tdash-icard-stat {
    min-width: 0;
}

.tdash-icard-stat strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.tdash-icard-stat span {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    color: #64748b;
    margin-top: 0.15rem;
}

.tdash-donut { flex-shrink: 0; }

.tdash-donut--lg .tdash-donut-text {
    font-size: 12px;
}

.tdash-donut-text {
    font-size: 11px;
    font-weight: 800;
    fill: #0f172a;
    font-family: inherit;
}

.tdash-spark-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
}

.tdash-spark-label {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.tdash-spark {
    width: 100%;
    max-width: 5.5rem;
    height: 2rem;
    display: block;
}

.tdash-icard-bar {
    height: 0.35rem;
    border-radius: 999px;
    background: #f1f5f9;
    overflow: hidden;
    margin-top: 0.25rem;
}

.tdash-icard-bar > i {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: width 0.35s ease;
}

.tdash-icard-foot {
    font-size: 0.62rem;
    font-weight: 600;
    color: #64748b;
    padding-top: 0.35rem;
    border-top: 1px solid #f8fafc;
    line-height: 1.4;
}

.tdash-icard--detail {
    min-height: 13.5rem;
    padding: 0.9rem 1rem;
}

.tdash-icard--detail .tdash-icard-head h3 {
    font-size: 0.84rem;
}

.tdash-icard--detail .tdash-icard-head p {
    font-size: 0.64rem;
    line-height: 1.4;
}

.tdash-icard-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: 10.5rem;
    overflow-y: auto;
    padding: 0.15rem 0.1rem 0.15rem 0;
    -webkit-overflow-scrolling: touch;
}

.tdash-icard-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.52rem 0.62rem;
    border-radius: 0.6rem;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    text-align: left;
    width: 100%;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.tdash-icard-row:hover { background: #f0fdfa; border-color: #ccfbf1; }

.tdash-icard-row-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    margin-top: 0.35rem;
    flex-shrink: 0;
}

.tdash-icard-row-dot.is-warn { background: #f59e0b; }
.tdash-icard-row-dot.is-danger { background: #ef4444; }
.tdash-icard-row-dot.is-info { background: #0d9488; }

.tdash-icard-row strong {
    display: block;
    font-size: 0.74rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.tdash-icard-row span {
    display: block;
    font-size: 0.66rem;
    color: #64748b;
    line-height: 1.45;
    margin-top: 0.12rem;
}

.tdash-icard-empty {
    font-size: 0.7rem;
    color: #94a3b8;
    font-style: italic;
    padding: 0.75rem 0;
    text-align: center;
}

.tdash-quick-announce {
    background: linear-gradient(135deg, #fffbeb 0%, #fff 55%);
    border: 1px solid #fde68a;
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.tdash-quick-announce-head h2 {
    font-size: 0.88rem;
    font-weight: 900;
    color: #0f172a;
}

.tdash-quick-announce-head p {
    font-size: 0.68rem;
    color: #78716c;
    margin-top: 0.15rem;
}

.tdash-quick-announce-form {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.tdash-quick-announce-title,
.tdash-quick-announce-body {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e7e5e4;
    border-radius: 0.75rem;
    padding: 0.55rem 0.7rem;
    font-size: 0.82rem;
    color: #0f172a;
    background: #fff;
    font-family: inherit;
}

.tdash-quick-announce-title:focus,
.tdash-quick-announce-body:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.tdash-quick-announce-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.tdash-quick-announce-urgent {
    font-size: 0.72rem;
    font-weight: 700;
    color: #57534e;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.tdash-quick-announce-btn {
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    background: #d97706;
    border: none;
    border-radius: 0.7rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: inherit;
}

.tdash-quick-announce-btn:hover { background: #b45309; }

.tdash-card-students {
    border: 1px solid #99f6e4;
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.08);
}

@media (min-width: 640px) and (max-width: 1249px) {
    .tdash-insight-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .tdash-insight-metrics > :nth-child(5):last-child {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - 0.375rem);
        max-width: 100%;
    }
}

@media (min-width: 1250px) {
    .tdash-insight-metrics {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* —— Yeni komuta kartları (tdash-kcard) —— */
.tdash-kcard {
    display: flex;
    flex-direction: column;
    min-height: 13.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.tdash-kcard--clickable {
    cursor: pointer;
    user-select: none;
}

.tdash-kcard--clickable:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.tdash-kcard.is-drill-active {
    border-color: var(--drill-accent, var(--kc, #0d9488));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--drill-accent, var(--kc, #0d9488)) 24%, transparent),
        0 12px 32px rgba(15, 23, 42, 0.1);
}

.tdash-kcard.is-alert {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fffbfb 0%, #fff 40%);
}

.tdash-kcard-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    background: linear-gradient(90deg, color-mix(in srgb, var(--kc, #0d9488) 10%, #fff) 0%, #fff 100%);
    border-bottom: 1px solid #f1f5f9;
}

.tdash-kcard-group {
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: color-mix(in srgb, var(--kc, #0d9488) 70%, #334155);
}

.tdash-kcard-band-icon {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    background: color-mix(in srgb, var(--kc, #0d9488) 14%, #fff);
    color: var(--kc, #0d9488);
}

.tdash-kcard-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.65rem 0.75rem 0.5rem;
    gap: 0.35rem;
}

.tdash-kcard-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.tdash-kcard-title-row h3 {
    font-size: 0.92rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.tdash-kcard-status {
    flex-shrink: 0;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    white-space: nowrap;
}

.tdash-kcard-status.is-ok {
    background: #ecfdf5;
    color: #047857;
}

.tdash-kcard-status.is-warn {
    background: #fef3c7;
    color: #b45309;
}

.tdash-kcard-sub {
    font-size: 0.68rem;
    color: #64748b;
    line-height: 1.35;
}

.tdash-kcard-hero-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.15rem;
}

.tdash-kcard-hero {
    min-width: 0;
    flex: 1;
}

.tdash-kcard-hero strong {
    display: block;
    font-size: 1.55rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.tdash-kcard-hero span {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    margin-top: 0.2rem;
    line-height: 1.35;
}

.tdash-kcard-donut {
    flex-shrink: 0;
}

.tdash-kcard-bar {
    height: 0.4rem;
    border-radius: 999px;
    background: #f1f5f9;
    overflow: hidden;
}

.tdash-kcard-bar > i {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.tdash-kcard-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.1rem;
}

.tdash-kcard-chip {
    font-size: 0.58rem;
    font-weight: 700;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.18rem 0.45rem;
    line-height: 1.2;
}

.tdash-kcard-spark {
    margin-top: auto;
    padding-top: 0.35rem;
}

.tdash-kcard-spark-label {
    display: block;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin-bottom: 0.15rem;
}

.tdash-kcard-spark .tdash-spark {
    width: 100%;
    max-width: none;
    height: 2.25rem;
}

.tdash-kcard-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
    font-size: 0.62rem;
    font-weight: 700;
    color: #64748b;
}

.tdash-kcard-foot i {
    color: var(--kc, #0d9488);
    font-size: 0.75rem;
}

/* —— Tıklanabilir kart + tam ekran modal tablo —— */
body.tdash-metric-modal-open {
    overflow: hidden;
}

#tdash-metric-modal.tdash-metric-modal:not(.hidden) {
    position: fixed !important;
    inset: 0 !important;
    z-index: 520 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    margin: 0 !important;
}

#tdash-metric-modal.tdash-metric-modal.hidden {
    display: none !important;
}

.tdash-metric-modal {
    position: fixed;
    inset: 0;
    z-index: 520;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.tdash-metric-modal.hidden {
    display: none !important;
}

#tdash-metric-modal > .tdash-metric-modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.tdash-metric-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#tdash-metric-modal > .tdash-metric-modal-sheet {
    position: relative !important;
    z-index: 1 !important;
    width: min(92vw, 88rem) !important;
    max-width: 92vw !important;
    height: 86dvh !important;
    max-height: 86dvh !important;
    margin: 0 !important;
    border-radius: 1.25rem !important;
}

.tdash-metric-modal-sheet {
    position: relative;
    z-index: 1;
    width: min(92vw, 88rem);
    height: 86dvh;
    max-height: 86dvh;
    margin: 0;
    background: #fff;
    border-radius: 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-top: 4px solid var(--modal-accent, #0d9488);
    animation: tdashModalIn 0.22s ease-out;
}

@keyframes tdashModalIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.tdash-metric-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    flex-shrink: 0;
}

.tdash-metric-modal-head-text {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
}

.tdash-metric-modal-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.tdash-metric-modal-head h2 {
    font-size: 1.15rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.tdash-metric-modal-head p {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.2rem;
}

.tdash-metric-modal-close {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.65rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 1rem;
}

.tdash-metric-modal-close:hover {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}

.tdash-metric-modal-summary {
    flex-shrink: 0;
    padding: 0.75rem 1.15rem;
    border-bottom: 1px solid #f8fafc;
    background: #fafbfc;
}

.tdash-metric-modal-summary-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.45;
}

.tdash-metric-modal-summary-stats strong {
    color: #0f172a;
    font-weight: 800;
}

.tdash-metric-modal-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 0.55rem;
}

.tdash-metric-modal-summary-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.65rem 0.75rem;
}

.tdash-metric-modal-summary-card h4 {
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

.tdash-metric-modal-summary-card p {
    font-size: 0.68rem;
    color: #64748b;
    margin-top: 0.2rem;
    line-height: 1.4;
}

.tdash-metric-modal-summary-desc {
    color: #94a3b8 !important;
    font-style: italic;
}

.tdash-metric-modal-summary-note {
    font-size: 0.78rem;
    color: #64748b;
}

.tdash-metric-modal-table-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.tdash-metric-modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.tdash-metric-modal-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f1f5f9;
    box-shadow: 0 1px 0 #e2e8f0;
}

.tdash-metric-modal-table th {
    padding: 0.65rem 0.85rem;
    text-align: left;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    white-space: nowrap;
}

.tdash-modal-th-name {
    min-width: 9rem;
    position: sticky;
    left: 0;
    z-index: 3;
    background: #f1f5f9;
    box-shadow: 1px 0 0 #e2e8f0;
}

.tdash-modal-tr {
    cursor: pointer;
    transition: background 0.1s ease;
}

.tdash-modal-tr:hover {
    background: #f0fdfa;
}

.tdash-modal-tr:nth-child(even) {
    background: #fafbfc;
}

.tdash-modal-tr:nth-child(even):hover {
    background: #ecfdf5;
}

.tdash-modal-td {
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.tdash-modal-td.is-wide {
    max-width: 16rem;
}

.tdash-modal-td-name {
    position: sticky;
    left: 0;
    z-index: 1;
    background: inherit;
    box-shadow: 1px 0 0 #f1f5f9;
    min-width: 9rem;
}

.tdash-modal-td-name strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

.tdash-modal-td-name em {
    display: block;
    font-size: 0.62rem;
    font-style: normal;
    color: #94a3b8;
    margin-top: 0.1rem;
}

.tdash-modal-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    white-space: nowrap;
}

.tdash-modal-badge.is-ok { background: #d1fae5; color: #047857; }
.tdash-modal-badge.is-warn { background: #fef3c7; color: #b45309; }
.tdash-modal-badge.is-danger { background: #fee2e2; color: #b91c1c; }
.tdash-modal-badge.is-info { background: #e0f2fe; color: #0369a1; }
.tdash-modal-badge.is-muted { background: #f1f5f9; color: #64748b; }

.tdash-modal-detail {
    font-size: 0.72rem;
    color: #475569;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tdash-modal-date {
    font-size: 0.72rem;
    color: #64748b;
    white-space: nowrap;
}

.tdash-modal-pct {
    font-size: 0.95rem;
    color: #0f172a;
}

.tdash-modal-empty {
    padding: 2.5rem 1rem !important;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

.tdash-modal-mini-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 1.5rem;
    vertical-align: middle;
}

.tdash-modal-mini-bars i {
    display: block;
    width: 8px;
    background: #ea580c;
    border-radius: 2px 2px 0 0;
    min-height: 4px;
}

.tdash-modal-td small {
    display: block;
    font-size: 0.58rem;
    color: #94a3b8;
    margin-top: 0.15rem;
}

@media (max-width: 640px) {
    #tdash-metric-modal > .tdash-metric-modal-sheet {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 92dvh !important;
        max-height: 92dvh !important;
        border-radius: 1rem 1rem 0 0 !important;
    }
}

.tdash-today {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 1.15rem;
    padding: 0.85rem 0.95rem 0.75rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.tdash-today-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}
.tdash-today-kicker {
    margin: 0;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f766e;
}
.tdash-today-head h2 {
    margin: 0.1rem 0 0;
    font-size: 0.95rem;
    font-weight: 900;
    color: #0f172a;
}
.tdash-today-count {
    font-size: 0.62rem;
    font-weight: 800;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 0.22rem 0.55rem;
}
.tdash-today-list { display: flex; flex-direction: column; gap: 0.4rem; }
.tdash-today-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.65rem;
    align-items: center;
    width: 100%;
    text-align: left;
    border: 1px solid #e8edf3;
    background: #f8fafc;
    border-radius: 0.85rem;
    padding: 0.55rem 0.7rem;
    cursor: pointer;
    transition: border-color 0.12s ease, background 0.12s ease;
}
.tdash-today-row:hover { border-color: #99f6e4; background: #fff; }
.tdash-today-ico {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    flex-shrink: 0;
}
.tdash-today-row.is-drop .tdash-today-ico { background: #fff7ed; color: #c2410c; }
.tdash-today-row.is-overdue .tdash-today-ico { background: #fff1f2; color: #be123c; }
.tdash-today-row.is-msg .tdash-today-ico { background: #ecfdf5; color: #047857; }
.tdash-today-row.is-plan .tdash-today-ico { background: #f5f3ff; color: #6d28d9; }
.tdash-today-row.is-bday .tdash-today-ico { background: #fdf2f8; color: #be185d; }
.tdash-today-row.is-alert .tdash-today-ico { background: #eff6ff; color: #1d4ed8; }
.tdash-today-row strong { display: block; font-size: 0.75rem; font-weight: 800; color: #0f172a; }
.tdash-today-row span { display: block; font-size: 0.62rem; font-weight: 600; color: #64748b; }
.tdash-today-go { font-size: 0.58rem; font-weight: 900; color: #0f766e; font-style: normal; }
.tdash-today-empty {
    margin: 0;
    padding: 0.85rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    border: 1px dashed #cbd5e1;
    border-radius: 0.85rem;
    background: #f8fafc;
}

@media (max-width: 767px) {
    .tdash-today {
        padding: 0.75rem 0.7rem 0.7rem;
        border-radius: 1rem;
    }
    .tdash-today-head {
        margin-bottom: 0.55rem;
        align-items: center;
    }
    .tdash-today-kicker { font-size: 0.62rem; }
    .tdash-today-head h2 { font-size: 1.05rem; }
    .tdash-today-count { font-size: 0.7rem; padding: 0.22rem 0.55rem; }
    .tdash-today-list { gap: 0.5rem; }
    .tdash-today-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 0.55rem;
        padding: 0.72rem 0.7rem;
        min-height: 3.15rem;
        border-radius: 0.95rem;
    }
    .tdash-today-ico {
        width: 2.15rem;
        height: 2.15rem;
        font-size: 0.82rem;
    }
    .tdash-today-row strong { font-size: 0.88rem; line-height: 1.25; }
    .tdash-today-row span { font-size: 0.74rem; line-height: 1.35; }
    .tdash-today-go { font-size: 0.72rem; }
    .tdash-today-empty { font-size: 0.82rem; padding: 1rem 0.75rem; }
}
