
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }
        
        body {
            background: linear-gradient(
                165deg,
                var(--corp-page-from, #9fb0c4) 0%,
                var(--corp-page-mid, #b4c2d4) 50%,
                var(--corp-page-to, #cad6e4) 100%
            );
            background-color: var(--corp-bg, #b4c2d4);
            min-height: 100vh;
            padding: 24px;
            color: var(--corp-text, #0f172a);
            font-size: 1.05rem;
            line-height: 1.58;
        }
        
        .container {
            max-width: 1400px;
            margin: 0 auto;
        }
        
        .header {
            background: var(--corp-surface, #ffffff);
            border-radius: var(--corp-radius, 16px);
            padding: 24px 28px;
            margin-bottom: 24px;
            border: 1px solid var(--corp-border, #6b7c90);
            box-shadow: var(--corp-shadow, 0 14px 44px rgba(15, 23, 42, 0.16));
            border-top: 4px solid var(--corp-teal, #0d9488);
        }
        
        .header-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
        }

        .org-live-dashboard {
            margin-top: 18px;
            border: 1px solid var(--corp-border, #6b7c90);
            border-radius: 12px;
            overflow: hidden;
            background: var(--corp-surface, #fff);
        }

        .org-live-dashboard__banner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
            padding: 10px 16px;
            background: linear-gradient(90deg, #3b82c4 0%, #4a90c8 100%);
            color: #fff;
            font-weight: 700;
            font-size: 0.98rem;
        }

        .org-live-dashboard__banner-actions {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .org-live-dashboard__cfg-btn {
            border: 1px solid rgba(255, 255, 255, 0.55);
            background: rgba(255, 255, 255, 0.12);
            color: #fff;
            border-radius: 8px;
            padding: 4px 10px;
            font-size: 0.78rem;
            cursor: pointer;
            font-weight: 600;
        }

        .org-live-dashboard__cfg-btn:hover {
            background: rgba(255, 255, 255, 0.22);
        }

        .org-live-dashboard__grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 0;
        }

        .org-dash-card {
            border-right: 1px solid #d8e2ed;
            border-bottom: 1px solid #d8e2ed;
            padding: 12px 14px 10px;
            min-height: 96px;
            display: flex;
            flex-direction: column;
            background: #fff;
        }

        .org-dash-card__title {
            font-size: 0.78rem;
            font-weight: 700;
            color: #1a3348;
            line-height: 1.25;
            margin-bottom: 8px;
        }

        .org-dash-card__value {
            font-size: 1.85rem;
            font-weight: 800;
            line-height: 1;
            text-align: center;
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .dash-val-good { color: #15803d; }
        .dash-val-warn { color: #c2410c; }
        .dash-val-bad { color: #b91c1c; }
        .dash-val-neutral { color: #475569; }

        .org-dash-card__foot {
            text-align: right;
            min-height: 18px;
        }

        .org-dash-detail {
            border: none;
            background: none;
            color: #64748b;
            font-size: 0.72rem;
            cursor: pointer;
            padding: 0;
            text-decoration: underline;
        }

        .org-dash-detail:hover {
            color: #0d9488;
        }

        .live-dash-filter-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 10px;
            padding: 8px 12px;
            border-radius: 10px;
            background: #ecfdf5;
            border: 1px solid #6ee7b7;
            font-size: 0.92rem;
        }

        .live-dash-filter-clear {
            padding: 4px 10px;
            font-size: 0.82rem;
        }
        
        .header-title {
            font-size: 2rem;
            font-weight: 700;
            letter-spacing: -0.03em;
            color: var(--corp-text, #0f172a);
            background: none;
            -webkit-text-fill-color: var(--corp-text, #0f172a);
        }
        
        .header-right {
            display: flex;
            align-items: flex-start;
            flex-wrap: wrap;
            gap: 16px 20px;
        }

        .org-unit-switcher {
            flex: 0 1 auto;
            min-width: 140px;
            max-width: 200px;
        }

        .shkotovo-exclude-toolbar {
            margin-top: 6px;
        }

        .shkotovo-exclude-toolbar[hidden] {
            display: none !important;
        }

        .btn-shkotovo-exclude {
            display: block;
            width: 100%;
            padding: 6px 10px;
            font-size: 0.72rem;
            line-height: 1.25;
            font-weight: 600;
            text-align: center;
            color: #6b4f1d;
            background: #fffaf0;
            border: 1px solid #d4c4a8;
            border-radius: 8px;
            cursor: pointer;
            white-space: normal;
        }

        .btn-shkotovo-exclude:hover {
            background: #fef3c7;
        }
        
        .total-stats {
            display: flex;
            gap: 15px;
        }
        
        .stat-card {
            background: var(--corp-surface, #ffffff);
            border-radius: 12px;
            padding: 10px 18px;
            text-align: center;
            border: 1px solid var(--corp-border, #6b7c90);
        }
        
        .stat-card.total-stat {
            border-color: var(--corp-border, #6b7c90);
            border-top-width: 4px;
            border-top-style: solid;
        }
        
        .total-stats .stat-card.total-stat:nth-child(1) {
            border-top-color: var(--corp-teal, #0d9488);
        }
        
        .total-stats .stat-card.total-stat:nth-child(2) {
            border-top-color: var(--corp-indigo, #4f46e5);
        }
        
        .stat-card.total-stat .stat-value {
            color: var(--corp-text, #0f172a);
        }
        
        .total-stats .stat-card.total-stat:nth-child(1) .stat-value {
            color: var(--corp-teal-dark, #0f766e);
        }
        
        .total-stats .stat-card.total-stat:nth-child(2) .stat-value {
            color: var(--corp-indigo-dark, #3730a3);
        }
        
        .stat-value {
            font-size: 1.65rem;
            font-weight: 800;
            font-variant-numeric: tabular-nums;
        }
        
        .stat-label {
            font-size: 0.76rem;
            color: var(--corp-text-muted, #475569);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            font-weight: 600;
        }
        
        .menu-button {
            width: 46px;
            height: 46px;
            background: var(--corp-surface, #ffffff);
            border: 2px solid var(--corp-indigo, #4f46e5);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 1.35rem;
            font-weight: bold;
            color: var(--corp-indigo-dark, #3730a3);
        }
        
        .menu-button:hover {
            background: var(--corp-indigo-soft, #e0e7ff);
            transform: rotate(90deg);
        }
        
        .daily-dates {
            background: var(--corp-surface-muted, #d8e2ed);
            border-radius: 14px;
            padding: 18px 20px;
            margin-top: 18px;
            border: 1px solid var(--corp-border-strong, #556575);
        }
        
        .daily-dates-title {
            font-weight: 700;
            margin-bottom: 12px;
            font-size: 1.08rem;
            color: var(--corp-text-secondary, #1e293b);
            line-height: 1.45;
        }
        
        .dates-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .date-chip {
            background: var(--corp-surface, #ffffff);
            border: 1px solid var(--corp-border, #6b7c90);
            border-radius: 30px;
            padding: 8px 16px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.95rem;
            font-weight: 500;
            color: var(--corp-text, #0f172a);
        }

        .dates-list > .date-chip--live {
            flex: 1 1 100%;
            justify-content: center;
            text-align: center;
            font-weight: 600;
        }

        .date-chip--live .date-chip-label {
            width: 100%;
            text-align: center;
        }

        .date-chip--day {
            border-radius: 10px;
            padding: 7px 10px 7px 12px;
            justify-content: space-between;
            gap: 10px;
            min-height: 0;
        }

        .date-chip-label {
            display: flex;
            flex-wrap: wrap;
            align-items: baseline;
            gap: 4px 8px;
            flex: 1;
            min-width: 0;
            line-height: 1.3;
        }

        .date-chip-date {
            font-weight: 600;
        }

        .date-chip-count {
            font-size: 0.88em;
            font-weight: 500;
            color: var(--corp-text-muted, #475569);
        }

        .date-chip.active .date-chip-count {
            color: rgba(255, 255, 255, 0.88);
        }

        .date-chip-delete {
            flex-shrink: 0;
            padding: 2px 8px !important;
            font-size: 0.72rem !important;
            line-height: 1.2;
            min-height: 0;
            background: rgba(139, 90, 96, 0.15) !important;
            border-color: rgba(139, 90, 96, 0.45) !important;
            color: #7f1d1d !important;
        }

        .date-chip.active .date-chip-delete {
            background: rgba(0, 0, 0, 0.2) !important;
            border-color: rgba(255, 255, 255, 0.35) !important;
            color: #fff !important;
        }

        .partition-daily-chips .date-chip--day {
            width: 100%;
        }
        
        .date-chip.active {
            background: var(--corp-teal-dark, #0f766e);
            color: #ffffff;
            border-color: var(--corp-teal-dark, #0f766e);
        }
        
        .date-chip:hover {
            border-color: var(--corp-teal, #0d9488);
            transform: translateY(-1px);
        }
        
        .period-chip {
            background: var(--corp-surface-2, #e8eef5) !important;
            border: 1px solid var(--corp-border, #6b7c90) !important;
            color: var(--corp-text, #0f172a) !important;
            font-weight: 500;
        }
        
        .period-chip.active {
            background: var(--corp-indigo-soft, #e0e7ff) !important;
            color: var(--corp-indigo-dark, #3730a3) !important;
            border-color: var(--corp-indigo, #4f46e5) !important;
            font-weight: 600;
        }
        
        .tickets-section {
            background: var(--corp-surface, #ffffff);
            border-radius: 18px;
            padding: 28px;
            border: 1px solid var(--corp-border, #6b7c90);
            box-shadow: var(--corp-shadow, 0 14px 44px rgba(15, 23, 42, 0.16));
            border-top: 4px solid var(--corp-indigo, #4f46e5);
        }
        
        .tickets-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 15px;
        }
        
        .tickets-header h2 {
            color: var(--corp-text, #0f172a);
            font-size: 1.55rem;
            font-weight: 700;
            letter-spacing: -0.02em;
        }
        
        .report-stats-inline {
            background: var(--corp-surface-muted, #d8e2ed);
            border-radius: 14px;
            padding: 16px 24px;
            margin-bottom: 22px;
            display: flex;
            gap: 32px;
            justify-content: flex-start;
            border: 1px solid var(--corp-border-strong, #556575);
        }
        
        .stat-inline {
            text-align: center;
        }
        
        .stat-inline-value {
            font-size: 1.5rem;
            font-weight: 800;
            font-variant-numeric: tabular-nums;
            color: var(--corp-text, #0f172a);
        }
        
        .report-stats-inline .stat-inline:nth-child(1) .stat-inline-value {
            color: var(--corp-teal-dark, #0f766e);
        }
        
        .report-stats-inline .stat-inline:nth-child(2) .stat-inline-value {
            color: var(--corp-indigo-dark, #3730a3);
        }
        
        .report-stats-inline .stat-inline:nth-child(3) .stat-inline-value {
            color: var(--corp-amber-dark, #b45309);
        }
        
        .stat-inline-label {
            font-size: 0.76rem;
            color: var(--corp-text-muted, #475569);
            text-transform: uppercase;
            letter-spacing: 0.06em;
            font-weight: 600;
        }
        
        .tickets-section .empty-state {
            color: var(--corp-text-muted, #475569);
            font-size: 1.1rem;
            font-weight: 500;
        }
        
        .tickets-grid {
            display: grid;
            gap: 20px;
        }
        
        .ticket-card {
            background: var(--corp-surface, #ffffff);
            border-radius: 16px;
            padding: 22px;
            border: 1px solid var(--corp-border, #6b7c90);
            box-shadow: 0 10px 32px rgba(15, 23, 42, 0.1), 0 2px 8px rgba(15, 23, 42, 0.06);
            transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
        }
        
        .ticket-card:hover {
            border-color: var(--corp-teal, #0d9488);
            box-shadow: 0 16px 44px rgba(15, 23, 42, 0.14), 0 4px 14px rgba(15, 23, 42, 0.08);
            transform: translateY(-2px);
        }

        a.ticket-card.ticket-card--lks-link {
            display: block;
            text-decoration: none;
            color: inherit;
            cursor: pointer;
        }

        a.ticket-card.ticket-card--lks-link .ticket-id {
            text-decoration: underline;
            text-decoration-color: rgba(13, 148, 136, 0.45);
            text-underline-offset: 3px;
        }

        a.ticket-card.ticket-card--lks-link:focus-visible {
            outline: 2px solid var(--corp-teal, #0d9488);
            outline-offset: 3px;
        }

        .badge-lks-open,
        .ticket-badges .badge.badge-lks-open,
        .ticket-header > .badge.badge-lks-open {
            background: linear-gradient(145deg, #0284c7 0%, #0369a1 100%);
            border: 1px solid #075985;
            color: #ffffff !important;
            font-weight: 700;
            box-shadow: 0 1px 4px rgba(3, 105, 161, 0.35);
        }

        a.ticket-card--lks-link:hover .badge-lks-open,
        .ticket-card--lks-pending:hover .badge-lks-open {
            background: linear-gradient(145deg, #0ea5e9 0%, #0284c7 100%);
            border-color: #0369a1;
        }

        .ticket-card--lks-pending {
            cursor: pointer;
        }
        
        .ticket-card.deadline-overdue:hover {
            border-color: var(--corp-deadline-overdue-border, #991b1b) !important;
            box-shadow:
                0 0 0 1px rgba(127, 29, 29, 0.22),
                0 14px 36px rgba(127, 29, 29, 0.18) !important;
        }
        
        .ticket-card.deadline-today:hover {
            border-color: var(--corp-deadline-today-border, #ea580c) !important;
            box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.22), 0 14px 36px rgba(234, 88, 12, 0.15) !important;
        }
        
        .ticket-card.deadline-soon:hover {
            border-color: var(--corp-deadline-near-border, #d97706) !important;
            box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.25), 0 12px 32px rgba(180, 83, 9, 0.12) !important;
        }
        
        /* ----- Просрочено (полностью карточка) ----- */
        .deadline-overdue {
            border: 2px solid var(--corp-deadline-overdue-border, #991b1b) !important;
            border-left: 6px solid var(--corp-deadline-overdue-stripe, #7f1d1d) !important;
            background: var(--corp-deadline-overdue-bg, #fef2f2) !important;
            box-shadow:
                0 0 0 1px rgba(127, 29, 29, 0.2),
                0 10px 28px rgba(127, 29, 29, 0.12) !important;
        }
        
        .deadline-overdue .ticket-id {
            color: var(--corp-deadline-overdue-border, #991b1b) !important;
        }
        
        .deadline-overdue .ticket-badges {
            background: rgba(254, 226, 226, 0.95) !important;
            border-color: #b91c1c !important;
        }
        
        .deadline-overdue .ticket-description,
        .deadline-overdue .ticket-comments {
            background: var(--corp-deadline-overdue-soft, #fee2e2);
            border-color: #f87171;
        }
        
        /* ----- Срок сегодня ----- */
        .deadline-today {
            border: 2px solid var(--corp-deadline-today-border, #ea580c) !important;
            border-left: 6px solid var(--corp-deadline-today-pill, #c2410c) !important;
            background: var(--corp-deadline-today-bg, #fff7ed) !important;
            box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.2), 0 8px 24px rgba(234, 88, 12, 0.1) !important;
        }
        
        .deadline-today .ticket-id {
            color: var(--corp-deadline-today-pill, #c2410c) !important;
        }
        
        .deadline-today .ticket-badges {
            background: rgba(255, 247, 237, 0.95) !important;
            border-color: #ea580c !important;
        }
        
        .deadline-today .ticket-description,
        .deadline-today .ticket-comments {
            background: #ffedd5;
            border-color: #fb923c;
        }
        
        /* ----- Осталось 1–3 дня: песок / охра ----- */
        .deadline-soon {
            border: 2px solid var(--corp-deadline-near-border, #d97706) !important;
            border-left: 5px solid var(--corp-deadline-near-accent, #b45309) !important;
            background: var(--corp-deadline-near-bg, #fffbeb) !important;
            box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.2), 0 6px 20px rgba(180, 83, 9, 0.08) !important;
        }
        
        .deadline-soon .ticket-id {
            color: var(--corp-deadline-near-accent, #b45309) !important;
        }
        
        .deadline-soon .ticket-badges {
            background: rgba(255, 251, 235, 0.95) !important;
            border-color: var(--corp-deadline-near-border, #d97706) !important;
        }
        
        .deadline-soon .ticket-description,
        .deadline-soon .ticket-comments {
            background: var(--corp-deadline-near-soft, #fef3c7);
            border-color: var(--corp-deadline-near-line, #f59e0b);
        }
        
        .ticket-badges .badge.deadline-overdue,
        .ticket-header > .badge.deadline-overdue {
            background-color: #991b1b !important;
            background-image: linear-gradient(180deg, #b91c1c, #991b1b) !important;
            color: #ffffff !important;
            border: 1px solid #7f1d1d !important;
            font-weight: 700;
            font-size: 0.74rem;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
            box-shadow: 0 2px 8px rgba(127, 29, 29, 0.35);
        }
        
        .ticket-badges .badge.deadline-overdue .deadline-ov-main,
        .ticket-header > .badge.deadline-overdue .deadline-ov-main {
            color: #ffffff;
            font-weight: 800;
        }
        
        .ticket-badges .badge.deadline-overdue .deadline-ov-sub,
        .ticket-header > .badge.deadline-overdue .deadline-ov-sub {
            font-weight: 600;
            font-size: 0.92em;
            color: rgba(255, 255, 255, 0.95);
        }
        
        .ticket-badges .badge.deadline-today,
        .ticket-header > .badge.deadline-today {
            background-color: #ea580c !important;
            background-image: linear-gradient(180deg, #f97316, #ea580c) !important;
            color: #ffffff !important;
            border: 1px solid #c2410c !important;
            font-weight: 700;
            font-size: 0.76rem;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
            box-shadow: 0 2px 8px rgba(234, 88, 12, 0.4);
        }
        
        .ticket-badges .badge.deadline-soon,
        .ticket-header > .badge.deadline-soon {
            background-color: #f59e0b !important;
            background-image: linear-gradient(
                180deg,
                var(--corp-deadline-near-pill-from, #fde68a) 0%,
                var(--corp-deadline-near-pill-to, #fbbf24) 100%
            ) !important;
            color: var(--corp-deadline-near-text, #78350f) !important;
            border: 1px solid var(--corp-deadline-near-accent, #b45309) !important;
            font-weight: 700;
            font-size: 0.76rem;
            text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
            box-shadow: 0 1px 4px rgba(180, 83, 9, 0.35);
        }
        
        .ticket-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .ticket-id {
            font-family: monospace;
            font-size: 1.08rem;
            font-weight: 700;
            color: var(--corp-text-muted, #475569);
        }
        
        .ticket-badges {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            align-items: center;
            padding: 8px 10px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.92);
            border: 1px solid var(--corp-border, #6b7c90);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
        }
        
        .badge {
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            line-height: 1.35;
            border: 1px solid transparent;
            -webkit-font-smoothing: antialiased;
        }
        
        .ticket-badges .badge,
        .ticket-header > .badge {
            color: #ffffff;
        }
        
        .ticket-badges .badge.deadline-soon,
        .ticket-header > .badge.deadline-soon {
            color: var(--corp-deadline-near-text, #78350f) !important;
        }
        
        .badge.purchase {
            background: var(--corp-teal-dark, #0f766e);
            color: #ffffff;
            border: 1px solid var(--corp-teal-dark, #0f766e);
        }
        
        .badge.approval {
            background: #4a5568;
            color: #f7fafc;
            border: 1px solid #2d3748;
        }
        
        .badge.deadline {
            background: #475569;
            color: #ffffff !important;
            border-color: #334155;
        }
        
        .ticket-description {
            margin: 14px 0 0;
            padding: 16px 18px;
            background: var(--corp-teal-soft, #ccfbf1);
            border-radius: 12px;
            border: 1px solid var(--corp-teal, #0d9488);
        }
        
        .ticket-desc-text {
            color: var(--corp-text, #0f172a);
            font-size: 1rem;
            line-height: 1.58;
        }

        .ticket-last-comment {
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px dashed rgba(13, 148, 136, 0.35);
            color: #0f4c5c;
            font-size: 0.92rem;
            line-height: 1.5;
        }

        .ticket-last-comment__lbl {
            display: block;
            font-weight: 600;
            margin-bottom: 4px;
            color: #115e59;
        }
        
        .ticket-description input {
            width: 100%;
            background: var(--corp-surface, #ffffff);
            border: 1px solid var(--corp-border, #6b7c90);
            border-radius: 8px;
            padding: 8px 12px;
            color: var(--corp-text, #0f172a);
            margin-bottom: 8px;
            font-size: 0.95rem;
        }
        
        .ticket-deadline {
            display: flex;
            gap: 10px;
            align-items: center;
        }
        
        .ticket-deadline input {
            flex: 1;
            background: var(--corp-surface, #ffffff);
            border: 1px solid var(--corp-border, #6b7c90);
            border-radius: 8px;
            padding: 8px 10px;
            color: var(--corp-text, #0f172a);
            font-size: 0.95rem;
        }
        
        .ticket-actions {
            display: flex;
            gap: 10px;
            margin: 12px 0;
        }
        
        .ticket-action-btn {
            padding: 7px 15px;
            border: 1px solid var(--corp-border, #6b7c90);
            background: var(--corp-surface-2, #e8eef5);
            color: var(--corp-text-secondary, #1e293b);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.86rem;
            font-weight: 500;
        }
        
        .ticket-action-btn.active {
            background: var(--corp-teal-dark, #0f766e);
            color: white;
            border-color: var(--corp-teal-dark, #0f766e);
        }
        
        .ticket-comments {
            background: var(--corp-indigo-soft, #e0e7ff);
            border-radius: 12px;
            padding: 16px 18px;
            margin-top: 14px;
            border: 1px solid var(--corp-indigo, #4f46e5);
        }
        
        .comment {
            padding: 8px 0;
            border-bottom: 1px solid rgba(71, 85, 105, 0.35);
            color: var(--corp-text-secondary, #1e293b);
            font-size: 0.96rem;
        }
        
        .comment:last-child {
            border-bottom: none;
        }
        
        .comment-date {
            font-size: 0.68rem;
            color: var(--corp-text-muted, #475569);
            margin-left: 8px;
            font-weight: 500;
        }
        
        .comment-input {
            width: 100%;
            padding: 10px 12px;
            background: var(--corp-surface, #ffffff);
            border: 1px solid var(--corp-border, #6b7c90);
            border-radius: 8px;
            color: var(--corp-text, #0f172a);
            margin-top: 10px;
            font-size: 0.9rem;
        }
        
        .report-dual-tabs {
            display: flex;
            gap: 8px;
            margin: 16px 0 20px;
            flex-wrap: wrap;
        }
        
        .report-dual-tab {
            padding: 10px 18px;
            border-radius: 10px;
            border: 1px solid var(--corp-border, #6b7c90);
            background: var(--corp-surface-2, #e8eef5);
            color: var(--corp-text-muted, #475569);
            cursor: pointer;
            font-size: 0.95rem;
            font-weight: 500;
            transition: background 0.15s, border-color 0.15s, color 0.15s;
        }
        
        .report-dual-tab:hover {
            border-color: var(--corp-teal, #0d9488);
            color: var(--corp-text, #0f172a);
        }
        
        .report-dual-tab.active {
            background: var(--corp-teal-soft, #ccfbf1);
            border-color: var(--corp-teal-dark, #0f766e);
            color: var(--corp-teal-dark, #0f766e);
            font-weight: 700;
        }

        .live-sort-bar {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
            margin: 0 0 14px;
        }

        .live-sort-bar__label {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--corp-text-muted, #475569);
            margin-right: 4px;
        }

        .live-sort-btn {
            padding: 8px 14px;
            border-radius: 10px;
            border: 1px solid var(--corp-border, #6b7c90);
            background: var(--corp-surface-2, #e8eef5);
            color: var(--corp-text-muted, #475569);
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 500;
            transition: background 0.15s, border-color 0.15s, color 0.15s;
        }

        .live-sort-btn:hover {
            border-color: var(--corp-teal, #0d9488);
            color: var(--corp-text, #0f172a);
        }

        .live-sort-btn.active {
            background: var(--corp-teal-soft, #ccfbf1);
            border-color: var(--corp-teal-dark, #0f766e);
            color: var(--corp-teal-dark, #0f766e);
            font-weight: 700;
        }

        .live-tickets-grid {
            width: 100%;
        }

        .report-month-charts-btn {
            margin: 8px 0 12px;
            padding: 8px 14px;
            border-radius: 10px;
            border: 1px solid var(--corp-border, #6b7c90);
            background: var(--corp-surface-2, #e8eef5);
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--corp-text, #0f172a);
        }
        .report-month-charts-btn:hover {
            border-color: var(--corp-teal-dark, #0f766e);
            background: var(--corp-teal-soft, #ccfbf1);
        }

        .report-month-charts-btn--inline {
            margin: 0;
            padding: 4px 10px;
            font-size: 0.78rem;
            flex-shrink: 0;
        }

        .archive-month-summary {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            flex-wrap: wrap;
            list-style: none;
        }

        .archive-month-summary::-webkit-details-marker {
            display: none;
        }

        .rk-wrap { margin: 12px 0 20px; }
        .rk-hint { color: var(--corp-text-muted, #475569); font-size: 0.88rem; margin-bottom: 12px; line-height: 1.45; }
        .rk-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
        .rk-metric-block {
            border: 1px solid var(--corp-border, #bdd7eb);
            border-radius: 12px;
            padding: 14px;
            background: var(--corp-surface, #f7fcfe);
        }
        .rk-metric-title { margin: 0 0 10px; color: #286090; font-size: 1rem; }
        .rk-metric-summary { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; margin-bottom: 12px; }
        .rk-metric-num { font-size: 1.75rem; font-weight: 700; color: #1a3348; }
        .rk-metric-meta { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: #566d7f; }
        .rk-delta-up { color: #0f766e; font-weight: 700; }
        .rk-delta-down { color: #b45309; font-weight: 700; }
        .rk-delta-zero { color: #64748b; font-weight: 600; }

        .rk-bars-wrap {
            width: 100%;
            max-width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .rk-bars {
            display: grid;
            grid-template-columns: repeat(24, minmax(10px, 1fr));
            gap: 3px;
            align-items: end;
            height: 120px;
            padding: 0 0 22px;
            border-bottom: 1px solid #d0e2ef;
            margin-bottom: 0;
        }

        .rk-bar-col {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
            height: 100px;
            position: relative;
        }

        .rk-bar {
            width: 100%;
            max-width: 18px;
            background: linear-gradient(180deg, #b8a8e8, #9b87d9);
            border-radius: 3px 3px 0 0;
            min-height: 2px;
        }

        .rk-live-chart {
            position: relative;
            margin-bottom: 10px;
        }

        .rk-bars--stacked {
            height: 140px;
            padding-bottom: 24px;
        }

        .rk-bars--stacked .rk-bar-col {
            height: 116px;
        }

        .rk-stack {
            display: flex;
            flex-direction: column-reverse;
            justify-content: flex-start;
            width: 100%;
            max-width: 22px;
            min-height: 2px;
            border-radius: 4px 4px 0 0;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(26, 51, 72, 0.12);
            transition: transform 0.12s ease, box-shadow 0.12s ease;
        }

        .rk-bar-col--hover .rk-stack {
            transform: scaleX(1.08);
            box-shadow: 0 2px 8px rgba(26, 51, 72, 0.2);
        }

        .rk-seg {
            width: 100%;
            min-height: 1px;
            flex-shrink: 0;
        }

        .rk-seg--zero {
            flex: 1 1 2px;
            background: #e8eef3;
        }

        .rk-tooltip {
            position: absolute;
            z-index: 20;
            transform: translate(-50%, -100%);
            max-width: min(280px, 92vw);
            padding: 8px 11px;
            border-radius: 8px;
            background: #1a3348;
            color: #f0f9ff;
            font-size: 0.78rem;
            line-height: 1.35;
            pointer-events: none;
            box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
        }

        .rk-tooltip strong {
            display: block;
            font-size: 0.85rem;
            margin-bottom: 2px;
        }

        .rk-tip-total {
            display: block;
            opacity: 0.9;
            margin-bottom: 4px;
        }

        .rk-tip-lines {
            display: block;
            font-size: 0.72rem;
            opacity: 0.85;
        }

        .rk-legend {
            margin-top: 12px;
            padding-top: 10px;
            border-top: 1px solid #e0ecf4;
        }

        .rk-legend-hint {
            display: block;
            font-size: 0.75rem;
            color: #64748b;
            margin-bottom: 8px;
        }

        .rk-legend-items {
            display: flex;
            flex-wrap: wrap;
            gap: 6px 8px;
        }

        .rk-legend-item {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px 10px 5px 7px;
            border: 1px solid #cfe0ee;
            border-radius: 999px;
            background: #fff;
            font-size: 0.78rem;
            color: #1a3348;
            cursor: pointer;
            transition: background 0.12s, border-color 0.12s, opacity 0.12s;
        }

        .rk-legend-item:hover {
            border-color: #7eb8d4;
            background: #f0f9ff;
        }

        .rk-legend-item--off {
            opacity: 0.45;
            text-decoration: line-through;
        }

        .rk-swatch {
            width: 10px;
            height: 10px;
            border-radius: 3px;
            flex-shrink: 0;
            box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
        }

        .rk-legend-n {
            font-weight: 700;
            color: #286090;
            margin-left: 2px;
        }

        .rk-legend-name {
            max-width: 10rem;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .rk-bar-lbl {
            position: absolute;
            bottom: -20px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.6rem;
            color: #1a3348;
            font-weight: 600;
            white-space: nowrap;
            max-width: 2.8em;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .rk-bars--daily .rk-bar-lbl {
            max-width: none;
            overflow: visible;
            text-overflow: clip;
        }

        .rk-bars--daily {
            padding-bottom: 24px;
            gap: 2px;
        }

        .rk-wrap-month .rk-bars-wrap {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior-x: contain;
        }

        .rk-wrap-month .rk-metric-block {
            overflow: visible;
        }

        .rk-wrap-month .rk-grid-month-charts {
            grid-template-columns: 1fr;
            gap: 20px;
        }

        .rk-wrap-month .rk-bars--daily {
            grid-template-columns: repeat(var(--rk-day-cols, 31), minmax(34px, 1fr)) !important;
            min-width: max(100%, calc(var(--rk-day-cols, 31) * 36px)) !important;
            gap: 4px;
            padding-bottom: 32px;
        }

        .rk-wrap-month .rk-bars--daily .rk-bar-lbl {
            font-size: 0.65rem;
            bottom: -24px;
        }

        .rk-hint--chart-scroll {
            display: none;
        }

        .rk-wrap-month .rk-hint--chart-scroll {
            display: block;
        }

        .rk-bar-lbl-empty {
            visibility: hidden;
            pointer-events: none;
        }

        .rk-client-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
        .rk-client-table th, .rk-client-table td { padding: 6px 8px; border-bottom: 1px solid #e0ecf4; text-align: left; }
        .rk-client-table th { background: #e5f0f7; color: #566d7f; }
        .rk-cell-metric { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
        .rk-cell-bar { width: 80px; height: 8px; background: #e8eef3; border-radius: 4px; overflow: hidden; }
        .rk-cell-bar-fill { height: 100%; background: linear-gradient(90deg, #f0a060, #e87830); }
        .rk-month-h { color: #286090; margin: 0 0 12px; font-size: 1.15rem; }
        .rk-month-totals { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
        .rk-month-card {
            flex: 1;
            min-width: 180px;
            padding: 12px 16px;
            border-radius: 10px;
            border: 1px solid #bdd7eb;
            background: #fff;
        }
        .rk-month-card-label { font-size: 0.85rem; color: #566d7f; margin-bottom: 6px; }
        .rk-month-card-val { font-size: 1.4rem; font-weight: 700; color: #1a3348; }
        
        .archived-report-card {
            border: 1px solid var(--corp-border, #6b7c90);
            border-radius: 16px;
            padding: 20px 22px;
            background: var(--corp-surface, #ffffff);
            margin-bottom: 18px;
            box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
        }

        .rejected-tickets-section {
            margin-top: 28px;
            padding-top: 8px;
            border-top: 2px dashed rgba(185, 28, 28, 0.35);
        }

        .rejected-tickets-title {
            margin: 0 0 16px;
            font-size: 1.05rem;
            font-weight: 700;
            color: #991b1b;
        }

        .rejected-report-card {
            border-color: rgba(185, 28, 28, 0.45);
            background: #fff7f7;
        }

        .rejected-pill {
            background: rgba(185, 28, 28, 0.12);
            color: #991b1b;
        }
        
        .archived-report-card .ticket-header {
            margin-bottom: 12px;
        }
        
        .archived-meta-block {
            background: var(--corp-surface-muted, #d8e2ed);
            border: 1px solid var(--corp-border, #6b7c90);
            border-radius: 12px;
            padding: 14px 16px;
            margin-bottom: 14px;
            font-size: 0.96rem;
            line-height: 1.58;
            color: var(--corp-text, #0f172a);
        }
        
        .archived-card-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 14px;
        }
        
        .archived-date-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px 14px;
            border-radius: 20px;
            font-size: 0.82rem;
            font-weight: 700;
            background: var(--corp-indigo-dark, #3730a3);
            color: #ffffff;
        }
        
        .archived-meta-row {
            margin: 6px 0;
            word-break: break-word;
        }
        
        .archived-meta-lbl {
            color: var(--corp-text-muted, #475569);
            margin-right: 6px;
            font-weight: 600;
        }
        
        .archived-meta-block a,
        .archived-lks-link {
            color: var(--corp-indigo-dark, #3730a3);
            word-break: break-all;
        }
        
        .archived-deadline-row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 10px;
            margin: 12px 0 14px;
        }
        
        .archived-date-input {
            flex: 1;
            min-width: 140px;
            max-width: 220px;
            background: var(--corp-surface, #ffffff);
            border: 1px solid var(--corp-border, #6b7c90);
            border-radius: 8px;
            padding: 8px 10px;
            color: var(--corp-text, #0f172a);
            font-size: 0.9rem;
        }
        
        .employees-day-table-wrap {
            overflow-x: auto;
            border: 1px solid var(--corp-border, #6b7c90);
            border-radius: 12px;
            background: var(--corp-surface, #ffffff);
        }
        
        .employees-day-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.88rem;
        }
        
        .employees-day-table th,
        .employees-day-table td {
            padding: 10px 14px;
            text-align: left;
            border-bottom: 1px solid var(--corp-border, #6b7c90);
        }
        
        .employees-day-table th {
            background: var(--corp-surface-muted, #d8e2ed);
            color: var(--corp-text-secondary, #1e293b);
            font-weight: 700;
            text-transform: uppercase;
            font-size: 0.76rem;
            letter-spacing: 0.05em;
        }
        
        .employees-day-table tr:last-child td {
            border-bottom: none;
        }
        
        .employees-day-table .num {
            text-align: right;
            font-variant-numeric: tabular-nums;
            font-weight: 700;
            color: var(--corp-teal-dark, #0f766e);
        }
        
        .employees-day-empty,
        .employees-day-hint {
            font-size: 0.92rem;
            color: var(--corp-text-muted, #475569);
            margin: 0 0 14px;
            line-height: 1.55;
            font-weight: 500;
        }
        
        .employees-day-empty {
            padding: 16px;
            border: 1px dashed var(--corp-border, #6b7c90);
            border-radius: 10px;
            text-align: center;
        }
        
        .report-month-toolbar {
            margin: 14px 0 10px;
            padding-top: 12px;
            border-top: 1px solid var(--corp-border, #6b7c90);
        }
        
        .report-month-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 12px;
            flex-wrap: wrap;
        }
        
        .report-month-tab {
            padding: 10px 16px;
            border-radius: 10px;
            border: 1px solid var(--corp-border, #6b7c90);
            background: var(--corp-surface-2, #e8eef5);
            color: var(--corp-text-muted, #475569);
            cursor: pointer;
            font-size: 0.92rem;
            font-weight: 500;
            transition: background 0.15s, border-color 0.15s, color 0.15s;
        }
        
        .report-month-tab:hover {
            border-color: var(--corp-teal, #0d9488);
            color: var(--corp-text, #0f172a);
        }
        
        .report-month-tab.active {
            background: var(--corp-indigo-soft, #e0e7ff);
            border-color: var(--corp-indigo, #4f46e5);
            color: var(--corp-indigo-dark, #3730a3);
            font-weight: 700;
        }
        
        .partition-daily-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: center;
        }
        
        .report-archive-block {
            margin-top: 10px;
        }

        .report-archive-heading {
            font-size: 0.82rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: var(--corp-text-muted, #475569);
            margin-bottom: 8px;
        }

        .partition-archive-wrap {
            max-height: 280px;
            overflow-y: auto;
            padding-right: 4px;
        }
        
        .partition-empty-hint {
            font-size: 0.88rem;
            color: var(--corp-text-muted, #475569);
            padding: 8px 0;
        }

        .partition-current-hint {
            margin-top: 4px;
        }

        .partition-days-link {
            font: inherit;
            font-weight: 600;
            color: var(--corp-teal-dark, #0f766e);
            background: none;
            border: none;
            padding: 0;
            cursor: pointer;
            text-decoration: underline;
            text-underline-offset: 2px;
        }

        .partition-days-link:hover {
            color: var(--corp-teal, #0d9488);
        }
        
        .archive-month {
            margin-bottom: 8px;
            border: 1px solid var(--corp-border, #6b7c90);
            border-radius: 10px;
            padding: 4px 10px;
            background: var(--corp-surface-2, #e8eef5);
        }
        
        .archive-month summary {
            cursor: pointer;
            font-weight: 700;
            color: var(--corp-text, #0f172a);
            padding: 6px 0;
            list-style-position: outside;
        }
        
        .archive-month-count {
            color: var(--corp-text-muted, #475569);
            font-weight: 600;
        }
        
        .archive-month-chips {
            padding-bottom: 10px;
            flex-direction: column;
            align-items: stretch;
        }

        .archive-month-chips .date-chip--day {
            width: 100%;
            justify-content: space-between;
        }
        
        .emp-day-assignee-btn {
            background: none;
            border: none;
            color: var(--corp-indigo-dark, #3730a3);
            cursor: pointer;
            font: inherit;
            text-align: left;
            padding: 0;
            text-decoration: underline;
            text-decoration-color: rgba(55, 48, 163, 0.45);
            font-weight: 500;
        }
        
        .emp-day-assignee-btn:hover {
            color: var(--corp-teal-dark, #0f766e);
        }
        
        .emp-day-count-btn {
            text-align: right;
            width: 100%;
            text-decoration: none;
            color: var(--corp-teal-dark, #0f766e);
            font-weight: 600;
        }
        
        .emp-day-count-btn:hover {
            color: var(--corp-text, #0f172a);
        }
        
        .employee-day-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.52);
            z-index: 5000;
            display: flex;
            align-items: flex-start;
            justify-content: center;
            padding: 24px 12px;
            overflow-y: auto;
        }
        
        .employee-day-modal-panel {
            background: var(--corp-surface, #ffffff);
            border: 1px solid var(--corp-border-strong, #556575);
            border-radius: 14px;
            max-width: 520px;
            width: 100%;
            padding: 18px 20px 22px;
            margin-top: 8vh;
            box-shadow: 0 20px 56px rgba(15, 23, 42, 0.22);
        }
        
        .employee-day-modal-head {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 12px;
            margin-bottom: 8px;
        }
        
        .employee-day-modal-head h3 {
            margin: 0;
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--corp-text, #0f172a);
        }
        
        .employee-day-modal-close {
            flex-shrink: 0;
            padding: 4px 10px;
            min-width: auto;
        }
        
        .employee-day-modal-sub {
            margin: 0 0 14px;
            font-size: 0.92rem;
            color: var(--corp-text-muted, #475569);
            font-weight: 500;
        }
        
        .employee-day-modal-body {
            max-height: 60vh;
            overflow-y: auto;
        }
        
        .ed-ticket-stack {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .ed-ticket-card {
            border: 1px solid var(--corp-border, #6b7c90);
            border-radius: 12px;
            padding: 12px 14px;
            background: var(--corp-surface-muted, #d8e2ed);
        }
        
        .ed-tid {
            font-family: monospace;
            font-weight: 700;
            color: var(--corp-indigo-dark, #3730a3);
            margin-bottom: 8px;
            font-size: 1.05rem;
        }
        
        .ed-who {
            font-size: 0.9rem;
            color: var(--corp-text-secondary, #1e293b);
            margin: 4px 0;
        }
        
        .ed-subj {
            margin: 10px 0 6px;
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--corp-text, #0f172a);
        }
        
        .ed-lbl {
            display: inline-block;
            margin-right: 8px;
            font-size: 0.74rem;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: var(--corp-text-muted, #475569);
            font-weight: 600;
        }
        
        .ed-lks-link {
            margin: 8px 0;
        }
        
        .ed-lks-link a {
            color: var(--corp-indigo-dark, #3730a3);
        }
        
        .ed-muted {
            color: var(--corp-text-muted, #475569);
            font-size: 0.88rem;
        }
        
        .ed-when {
            margin-top: 10px;
            font-size: 0.8rem;
            color: var(--corp-text-muted, #475569);
        }
        
        .ed-when-lbl {
            margin-right: 6px;
        }
        
        .btn {
            background: var(--corp-surface-2, #e8eef5);
            color: var(--corp-text, #0f172a);
            border: 1px solid var(--corp-border, #6b7c90);
            padding: 7px 15px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.9rem;
            font-weight: 600;
        }
        
        .btn:hover {
            background: var(--corp-teal-soft, #ccfbf1);
            border-color: var(--corp-teal, #0d9488);
            transform: translateY(-1px);
        }
        
        .btn-success {
            background: var(--corp-teal-dark, #0f766e);
            border-color: var(--corp-teal-dark, #0f766e);
            color: #ffffff;
        }
        
        .btn-success:hover {
            background: #0d5c56;
        }
        
        .btn-danger {
            background: #9b2c3d;
            border-color: #7f1d1d;
        }
        
        .btn-danger:hover {
            background: #7f1d1d;
        }
        
        .btn-info {
            background: var(--corp-surface, #ffffff);
            border: 2px solid var(--corp-indigo, #4f46e5);
            color: var(--corp-indigo-dark, #3730a3);
        }
        
        .btn-info:hover {
            background: var(--corp-indigo-soft, #e0e7ff);
        }
        
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(15, 23, 42, 0.55);
            z-index: 2000;
            display: none;
            align-items: center;
            justify-content: center;
        }
        
        .modal.active {
            display: flex;
        }

        #emergencyModal.active {
            z-index: 15000;
        }
        
        .modal-content {
            background: var(--corp-surface, #ffffff);
            border-radius: 24px;
            padding: 26px;
            max-width: 800px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            border: 2px solid var(--corp-border-strong, #556575);
            box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
        }
        
        .modal-content h2 {
            color: var(--corp-text, #0f172a);
            font-size: 1.4rem;
            font-weight: 700;
        }
        
        .form-group {
            margin-bottom: 16px;
        }
        
        .form-group label {
            display: block;
            color: var(--corp-text-secondary, #1e293b);
            margin-bottom: 8px;
            font-size: 1rem;
            font-weight: 600;
        }
        
        .form-group input, .form-group textarea, .form-group select {
            width: 100%;
            background: var(--corp-surface, #ffffff);
            border: 1px solid var(--corp-border, #6b7c90);
            border-radius: 8px;
            padding: 10px 12px;
            color: var(--corp-text, #0f172a);
            font-size: 0.95rem;
        }
        
        .form-group textarea {
            resize: vertical;
            font-family: monospace;
            font-size: 0.85rem;
        }
        
        .modal-footer {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
            margin-top: 20px;
        }
        
        .form-row {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
        }
        
        .emergency-section {
            background: var(--corp-surface, #ffffff);
            border-radius: 18px;
            padding: 20px;
            margin-bottom: 24px;
            border: 1px solid var(--corp-border, #6b7c90);
            border-left: 5px solid var(--corp-amber-dark, #b45309);
            box-shadow: var(--corp-shadow, 0 14px 44px rgba(15, 23, 42, 0.16));
        }

        .emergency-section--report {
            background: #fff;
            border: 1px solid #fecaca;
            border-left: 4px solid #dc2626;
            border-radius: 14px;
            padding: 18px 20px;
            margin-bottom: 20px;
            box-shadow: 0 4px 18px rgba(220, 38, 38, 0.08);
        }

        .emergency-section--report .emergency-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            margin-bottom: 14px;
        }

        .emergency-header-left {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
        }

        .emergency-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #fee2e2;
            color: #b91c1c;
            font-weight: 800;
            font-size: 1.1rem;
            flex-shrink: 0;
        }

        .emergency-section--report .emergency-title {
            margin: 0;
            font-size: 1.15rem;
            font-weight: 700;
            color: #991b1b;
            letter-spacing: -0.02em;
        }

        .emergency-section--report .emergency-count {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 28px;
            height: 28px;
            padding: 0 10px;
            border-radius: 999px;
            background: #fef2f2;
            color: #b91c1c;
            font-size: 0.88rem;
            font-weight: 700;
            border: 1px solid #fecaca;
        }

        .emergency-section--report .emergency-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .emergency-card {
            background: #fafafa;
            border: 1px solid #e5e7eb;
            border-left: 3px solid #ef4444;
            border-radius: 12px;
            padding: 14px 16px;
        }

        .emergency-card--done {
            border-left-color: #0f766e;
            background: #f0fdfa;
        }

        .emergency-card-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 14px;
        }

        .emergency-card-text {
            margin: 0;
            flex: 1;
            font-size: 1rem;
            font-weight: 600;
            line-height: 1.45;
            color: #1f2937;
            word-break: break-word;
        }

        .emergency-card--done .emergency-card-text {
            color: #6b7280;
            text-decoration: line-through;
        }

        .btn-emergency-done {
            flex-shrink: 0;
            padding: 8px 14px;
            border-radius: 8px;
            border: none;
            background: #0f766e;
            color: #fff;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
        }

        .btn-emergency-done:hover {
            background: #0d9488;
        }

        .emergency-done-badge {
            flex-shrink: 0;
            padding: 6px 12px;
            border-radius: 999px;
            background: #ccfbf1;
            color: #0f766e;
            font-size: 0.8rem;
            font-weight: 700;
        }

        .btn-emergency-reopen {
            flex-shrink: 0;
            padding: 6px 10px;
            border-radius: 8px;
            border: 1px solid #94a3b8;
            background: #fff;
            color: #475569;
            font-size: 0.78rem;
            font-weight: 600;
            cursor: pointer;
        }

        .btn-emergency-reopen:hover {
            background: #f1f5f9;
            border-color: #64748b;
        }

        .emergency-card-top .btn-emergency-done {
            min-width: 108px;
        }

        .emergency-comments {
            margin-top: 14px;
            padding-top: 12px;
            border-top: 1px solid #e5e7eb;
        }

        .emergency-comments-label {
            font-size: 0.78rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: #6b7280;
            margin-bottom: 8px;
        }

        .emergency-comment-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 10px;
        }

        .emergency-comments-empty {
            margin: 0;
            font-size: 0.9rem;
            color: #9ca3af;
        }

        .emergency-comment {
            padding: 8px 10px;
            background: #fff;
            border-radius: 8px;
            border: 1px solid #f3f4f6;
        }

        .emergency-comment-author {
            display: block;
            font-weight: 600;
            font-size: 0.88rem;
            color: #374151;
            margin-bottom: 2px;
        }

        .emergency-comment-text {
            display: block;
            font-size: 0.92rem;
            color: #1f2937;
            line-height: 1.4;
        }

        .emergency-comment-time {
            display: block;
            margin-top: 4px;
            font-size: 0.75rem;
            color: #9ca3af;
        }

        .emergency-comment-form {
            margin-top: 4px;
        }

        .emergency-comment-form .comment-input {
            border-radius: 8px;
            border: 1px solid #d1d5db;
            padding: 10px 12px;
        }

        .emergency-comment-form .comment-submit-btn {
            border-radius: 8px;
            background: #286090;
            color: #fff;
            border: none;
            padding: 10px 16px;
            font-weight: 600;
        }

        .emergency-comment-form .comment-submit-btn:hover {
            background: #1e4d73;
        }

        .tickets-header {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .tickets-header h2 {
            margin: 0;
        }

        .report-toolbar {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            align-items: center;
            margin-bottom: 16px;
        }

        .show-hidden-toggle {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 0.92rem;
            color: var(--corp-text-muted, #475569);
            cursor: pointer;
        }

        .btn-emergency-add {
            background: #b91c1c;
            color: #fff;
            border-color: #991b1b;
        }

        .btn-emergency-add:hover {
            background: #991b1b;
        }

        .comment-input-row {
            display: flex;
            gap: 8px;
            margin-top: 8px;
        }

        .comment-input-row .comment-input {
            flex: 1;
        }

        .comment-submit-btn {
            flex-shrink: 0;
            padding: 8px 14px;
            font-size: 0.88rem;
        }

        .ticket-card.is-user-hidden {
            opacity: 0.55;
            outline: 2px dashed #94a3b8;
        }
        
        .emergency-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }
        
        .emergency-title {
            color: var(--corp-amber-dark, #b45309);
            font-size: 1.28rem;
            font-weight: 700;
        }
        
        .emergency-list {
            display: grid;
            gap: 8px;
        }
        
        .emergency-item {
            background: var(--corp-amber-soft, #ffedd5);
            border-radius: 10px;
            padding: 12px 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 1rem;
            font-weight: 500;
            color: var(--corp-text, #0f172a);
            border: 1px solid rgba(180, 83, 9, 0.45);
        }
        
        .emergency-item.completed {
            opacity: 0.6;
            text-decoration: line-through;
        }
        
        .empty-state {
            text-align: center;
            padding: 40px;
            color: var(--corp-text-muted, #475569);
            font-size: 1.12rem;
            font-weight: 500;
        }
        
        .date-group {
            margin-bottom: 22px;
            border-left: 4px solid var(--corp-teal, #0d9488);
            padding-left: 16px;
        }
        
        .date-group h4 {
            color: var(--corp-text, #0f172a);
            margin-bottom: 10px;
            font-size: 1.12rem;
            font-weight: 700;
        }
        
        .side-panel {
            position: fixed;
            top: 0;
            right: -400px;
            width: 380px;
            height: 100vh;
            background: var(--corp-surface, #ffffff);
            border-left: 4px solid var(--corp-indigo, #4f46e5);
            transition: right 0.3s ease;
            z-index: 1000;
            overflow-y: auto;
            padding: 24px;
            box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
        }
        
        .side-panel.open {
            right: 0;
        }
        
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(15, 23, 42, 0.48);
            z-index: 999;
            display: none;
        }
        
        .overlay.active {
            display: block;
        }
        
        .menu-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 12px;
            background: var(--corp-surface-2, #e8eef5);
            border: 1px solid var(--corp-border, #6b7c90);
            border-radius: 12px;
            margin-bottom: 8px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .menu-item:hover {
            border-color: var(--corp-teal, #0d9488);
            background: var(--corp-teal-soft, #ccfbf1);
            transform: translateX(-4px);
        }
        
        /* ——— Главная: телефоны и узкие экраны ——— */
        @media (max-width: 768px) {
            html {
                overflow-x: clip;
            }

            body.page-home {
                padding: 10px;
                padding-left: max(10px, env(safe-area-inset-left, 0px));
                padding-right: max(10px, env(safe-area-inset-right, 0px));
                font-size: 0.94rem;
                line-height: 1.5;
                overflow-x: clip;
            }

            body.page-home .container,
            body.page-home .header,
            body.page-home .tickets-section,
            body.page-home .emergency-section,
            body.page-home #ticketsList,
            body.page-home .rk-wrap,
            body.page-home .rk-metric-block,
            body.page-home #dailyRvCharts,
            body.page-home #dailyRvApps {
                min-width: 0;
                max-width: 100%;
                overflow-x: hidden;
            }

            .header {
                padding: 14px 16px;
                margin-bottom: 14px;
                border-radius: 14px;
            }

            .header-top {
                display: grid;
                grid-template-columns: 1fr auto;
                grid-template-rows: auto auto;
                gap: 10px 12px;
                align-items: start;
            }

            .header-title {
                grid-column: 1;
                grid-row: 1;
                font-size: 1.12rem;
                line-height: 1.28;
                letter-spacing: -0.02em;
            }

            .header-right {
                display: contents;
            }

            .menu-button {
                grid-column: 2;
                grid-row: 1;
                width: 40px;
                height: 40px;
                font-size: 1.1rem;
                justify-self: end;
            }

            .menu-button:hover {
                transform: none;
            }

            .total-stats {
                grid-column: 1 / -1;
                grid-row: 2;
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 8px;
                width: 100%;
            }

            .stat-card {
                padding: 8px 10px;
                border-radius: 10px;
            }

            .stat-value {
                font-size: 1.2rem;
            }

            .stat-label {
                font-size: 0.62rem;
                letter-spacing: 0.03em;
                line-height: 1.25;
            }

            .daily-dates {
                padding: 12px 14px;
                margin-top: 12px;
            }

            .daily-dates-title {
                font-size: 0.88rem;
                margin-bottom: 10px;
                line-height: 1.4;
            }

            .dates-list {
                flex-direction: column;
                align-items: stretch;
                gap: 10px;
                overflow: visible;
            }

            .report-month-toolbar {
                margin: 0;
                padding-top: 0;
                border-top: none;
            }

            .report-month-tabs {
                flex-wrap: wrap;
                gap: 6px;
                overflow: visible;
            }

            .report-month-tab {
                flex: 1 1 calc(50% - 6px);
                min-width: 0;
                padding: 8px 10px;
                font-size: 0.8rem;
                text-align: center;
                line-height: 1.25;
            }

            .report-month-tab[data-report-partition="days"] {
                flex: 1 1 100%;
            }

            .report-month-charts-btn {
                width: 100%;
                margin: 4px 0 0;
                padding: 8px 12px;
                font-size: 0.82rem;
            }

            .date-chip--live {
                padding: 9px 14px;
                font-size: 0.9rem;
            }

            .date-chip--day {
                padding: 6px 8px 6px 10px;
                font-size: 0.82rem;
                border-radius: 8px;
            }

            .date-chip-count {
                font-size: 0.85em;
            }

            .partition-daily-chips {
                gap: 4px;
            }

            .rk-hint {
                font-size: 0.84rem;
            }

            .rk-metric-block {
                padding: 12px;
            }

            .rk-metric-title {
                font-size: 0.98rem;
            }

            .rk-metric-num {
                font-size: 2rem;
            }

            .rk-metric-meta {
                font-size: 0.88rem;
                gap: 6px;
            }

            .rk-metric-summary {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }

            .rk-wrap {
                margin-left: 0;
                margin-right: 0;
            }

            .rk-metric-block {
                padding: 12px;
                overflow: hidden;
            }

            .rk-bars-wrap {
                overflow-x: auto;
                overflow-y: hidden;
                -webkit-overflow-scrolling: touch;
                overscroll-behavior-x: contain;
                max-width: 100%;
                width: 100%;
                margin: 0;
                padding: 0 0 6px;
                touch-action: pan-x;
            }

            .rk-bars--hourly {
                grid-template-columns: repeat(24, 32px) !important;
                min-width: 800px !important;
                width: max-content;
            }

            .rk-bars--daily {
                grid-template-columns: repeat(var(--rk-day-cols, 31), 26px) !important;
                min-width: max(100%, calc(var(--rk-day-cols, 31) * 28px)) !important;
                width: max-content;
                gap: 1px;
            }

            .rk-bars {
                padding-bottom: 26px;
            }

            .rk-bar-lbl {
                font-size: 0.58rem;
                max-width: none;
                letter-spacing: -0.02em;
            }

            .rk-bars--daily {
                padding-bottom: 28px;
            }

            .rk-bars--daily .rk-bar-lbl {
                font-size: 0.54rem;
                bottom: -22px;
                white-space: nowrap;
                font-variant-numeric: tabular-nums;
            }

            .rk-wrap-month .rk-hint--chart-scroll {
                display: block;
                margin: 0 0 8px;
                font-size: 0.76rem;
                color: #64748b;
            }

            .rk-legend-items {
                gap: 5px 6px;
            }

            .rk-legend-item {
                font-size: 0.72rem;
                padding: 4px 8px 4px 6px;
            }

            .rk-legend-name {
                max-width: 7rem;
            }

            .rk-bars--stacked {
                height: 128px;
            }

            .rk-bars--stacked .rk-bar-col {
                height: 104px;
            }

            .rk-client-table {
                font-size: 0.88rem;
                table-layout: fixed;
                width: 100%;
            }

            .rk-client-table th:last-child,
            .rk-client-table td:last-child {
                width: 36%;
            }

            .rk-cell-metric {
                justify-content: flex-end;
                flex-wrap: nowrap;
                max-width: 100%;
            }

            .rk-cell-bar {
                width: 52px;
                flex-shrink: 0;
            }

            .report-dual-tabs {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 6px;
            }

            .report-dual-tab {
                padding: 8px 10px;
                font-size: 0.8rem;
                text-align: center;
                line-height: 1.25;
            }

            .report-dual-tab[data-daily-tab="people"] {
                grid-column: 1 / -1;
            }

            .partition-archive-wrap {
                max-height: min(50vh, 360px);
            }

            .tickets-section {
                padding: 16px;
                border-radius: 14px;
            }

            #liveLksHint {
                margin-bottom: 10px !important;
                padding: 10px 12px !important;
                font-size: 0.88rem !important;
                line-height: 1.45 !important;
            }

            .tickets-header {
                flex-direction: row;
                flex-wrap: wrap;
                align-items: center;
                gap: 8px 10px;
                margin-bottom: 14px;
            }

            .tickets-header h2 {
                flex: 1 1 auto;
                font-size: 1.12rem;
                margin: 0;
                min-width: 0;
            }

            .tickets-header .btn {
                flex: 0 0 auto;
                width: auto;
                padding: 7px 12px;
                font-size: 0.8rem;
                white-space: nowrap;
            }

            .report-stats-inline {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 8px;
                padding: 12px 10px;
                margin-bottom: 14px;
            }

            .stat-inline-value {
                font-size: 1.2rem;
            }

            .stat-inline-label {
                font-size: 0.62rem;
            }

            .ticket-card {
                padding: 14px;
                border-radius: 12px;
            }

            .ticket-card:hover {
                transform: none;
            }

            .ticket-header {
                flex-direction: column;
                align-items: stretch;
                gap: 8px;
            }

            .ticket-id {
                font-size: 0.92rem;
                word-break: break-all;
            }

            .ticket-badges {
                width: 100%;
                padding: 6px 8px;
                gap: 6px;
            }

            .badge {
                font-size: 0.68rem;
                padding: 4px 8px;
            }

            .ticket-description,
            .ticket-comments {
                padding: 12px 14px;
            }

            .ticket-desc-text {
                font-size: 0.92rem;
            }

            .ticket-actions {
                flex-wrap: wrap;
                gap: 6px;
            }

            .ticket-action-btn {
                flex: 1 1 calc(50% - 6px);
                min-width: 0;
                padding: 6px 10px;
                font-size: 0.78rem;
                text-align: center;
            }

            .ticket-deadline {
                flex-direction: column;
                align-items: stretch;
            }

            .archived-deadline-row {
                flex-direction: column;
                align-items: stretch;
            }

            .archived-date-input {
                max-width: none;
                width: 100%;
            }

            .archived-card-head {
                flex-direction: column;
                align-items: flex-start;
            }

            .emergency-section {
                padding: 14px;
            }

            .emergency-title {
                font-size: 1.05rem;
            }

            .emergency-item {
                flex-direction: column;
                align-items: stretch;
                gap: 8px;
                font-size: 0.9rem;
                padding: 10px 12px;
            }

            .empty-state {
                padding: 24px 12px;
                font-size: 0.95rem;
            }

            .btn {
                padding: 7px 12px;
                font-size: 0.84rem;
            }

            .btn:hover {
                transform: none;
            }

            .side-panel {
                width: 100%;
                max-width: 100vw;
                right: -100%;
                padding: 18px 16px;
                padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
            }

            .menu-item {
                padding: 10px;
                gap: 12px;
            }

            .menu-item:hover {
                transform: none;
            }

            .modal {
                align-items: flex-end;
                padding: 0;
            }

            .modal-content {
                width: 100% !important;
                max-width: 100% !important;
                margin: 0;
                border-radius: 16px 16px 0 0;
                max-height: 92vh;
                max-height: 92dvh;
                padding: 18px 16px;
                padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
            }

            .modal-content h2 {
                font-size: 1.1rem;
            }

            .modal-footer {
                flex-direction: column;
                align-items: stretch;
                gap: 8px;
            }

            .modal-footer .btn {
                width: 100%;
                margin: 0;
            }

            .form-row {
                flex-direction: column;
                gap: 0;
            }

            .employee-day-modal-overlay {
                padding: 12px 8px;
            }

            .employee-day-modal-panel {
                margin-top: 4vh;
                padding: 14px 16px;
            }

            .rk-grid-2 {
                grid-template-columns: 1fr;
            }

            .rk-month-card {
                min-width: 0;
                flex: 1 1 100%;
            }

            .employees-day-table {
                font-size: 0.78rem;
            }

            .employees-day-table th,
            .employees-day-table td {
                padding: 6px 4px;
            }
        }

        @media (max-width: 420px) {
            body.page-home {
                padding: 8px;
                padding-left: max(8px, env(safe-area-inset-left, 0px));
                padding-right: max(8px, env(safe-area-inset-right, 0px));
            }

            .header-title {
                font-size: 1rem;
            }

            .report-month-tab {
                flex: 1 1 100%;
                font-size: 0.78rem;
            }

            .tickets-header {
                flex-direction: column;
                align-items: stretch;
            }

            .tickets-header .btn {
                width: 100%;
                justify-content: center;
            }

            .ticket-action-btn {
                flex: 1 1 100%;
            }
        }

        .page-boot-overlay {
            position: fixed;
            inset: 0;
            z-index: 20000;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 16px;
            background: rgba(15, 23, 42, 0.35);
            backdrop-filter: blur(2px);
            color: var(--corp-text, #0f172a);
            font-weight: 600;
            font-size: 1.05rem;
        }

        .page-boot-overlay[hidden] {
            display: none !important;
        }

        body.page-boot-active {
            overflow: hidden;
        }

        .page-boot-spinner {
            width: 40px;
            height: 40px;
            border: 3px solid rgba(13, 148, 136, 0.25);
            border-top-color: var(--corp-teal, #0d9488);
            border-radius: 50%;
            animation: pageBootSpin 0.8s linear infinite;
        }

        @keyframes pageBootSpin {
            to { transform: rotate(360deg); }
        }

/* index-home (merged) */
body.page-home {
    background: linear-gradient(
        165deg,
        var(--corp-page-from, #9fb0c4) 0%,
        var(--corp-page-mid, #b4c2d4) 50%,
        var(--corp-page-to, #cad6e4) 100%
    ) !important;
    background-color: var(--corp-bg, #b4c2d4) !important;
    color: var(--corp-text, #0f172a) !important;
}

body.page-home a {
    color: var(--corp-indigo-dark, #3730a3);
    text-decoration-color: rgba(55, 48, 163, 0.4);
}

body.page-home a:hover {
    color: var(--corp-teal-dark, #0f766e);
}

body.page-home ::selection {
    background: rgba(13, 148, 136, 0.28);
    color: var(--corp-text, #0f172a);
}

body.page-home *::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.06);
}

body.page-home *::-webkit-scrollbar-thumb {
    background: #64748b;
    border-color: var(--corp-page-to, #cad6e4);
}

body.page-home *::-webkit-scrollbar-thumb:hover {
    background: var(--corp-teal-dark, #0f766e);
}

body.page-home :focus-visible {
    outline-color: var(--corp-teal, #0d9488);
}

body.page-home input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
body.page-home select,
body.page-home textarea {
    accent-color: var(--corp-teal, #0d9488);
}

body.page-home .report-stats {
    background: var(--corp-surface-muted, #d8e2ed) !important;
    border: 1px solid var(--corp-border, #6b7c90) !important;
    border-radius: 12px;
}

body.page-home .date-group {
    border-left: 4px solid var(--corp-teal, #0d9488) !important;
    padding-left: 16px;
}

body.page-home .date-group h4 {
    color: var(--corp-text, #0f172a) !important;
    font-size: 1.12rem;
}

.org-unit-switcher {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-right: 12px;
    min-width: 140px;
}
.org-unit-switcher__label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--corp-text-muted, #475569);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.org-unit-switcher__select {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--corp-border, #6b7c90);
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--corp-surface, #fff);
}
.org-readonly-banner {
    margin-bottom: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
    font-weight: 600;
    font-size: 0.95rem;
}

.abd-weekend-section {
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-left: 4px solid #d97706;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 18px rgba(217, 119, 6, 0.1);
}

.abd-weekend-section[hidden] {
    display: none !important;
}

.abd-weekend-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.abd-weekend-header-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.abd-weekend-icon {
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
}

.abd-weekend-title {
    margin: 0 0 4px;
    font-size: 1.12rem;
    font-weight: 700;
    color: #92400e;
    letter-spacing: -0.02em;
}

.abd-weekend-subtitle {
    margin: 0;
    font-size: 0.88rem;
    color: #b45309;
    line-height: 1.45;
    font-weight: 500;
}

.abd-weekend-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.88rem;
    font-weight: 700;
    border: 1px solid #fcd34d;
    flex-shrink: 0;
}

.abd-weekend-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.abd-weekend-card {
    background: #fff;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.abd-weekend-card-main {
    flex: 1 1 200px;
    min-width: 0;
}

.abd-weekend-card-id {
    font-weight: 700;
    color: #78350f;
    font-size: 1rem;
}

.abd-weekend-card-meta {
    font-size: 0.88rem;
    color: #92400e;
    margin-top: 4px;
    line-height: 1.45;
}

.abd-weekend-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.abd-weekend-card-actions a {
    color: #0d9488;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
}

.abd-weekend-card-actions a:hover {
    text-decoration: underline;
}

.abd-weekend-dismiss {
    padding: 6px 12px;
    font-size: 0.82rem;
    border-radius: 8px;
    border: 1px solid #d97706;
    background: #fff;
    color: #92400e;
    cursor: pointer;
    font-weight: 600;
}

.abd-weekend-dismiss:hover {
    background: #fef3c7;
}

.abd-weekend-badge-done {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 6px;
    background: #d1fae5;
    color: #065f46;
    font-size: 0.78rem;
    font-weight: 700;
}

