/* ═══════════════════════════════════════════════════════════
   NWD PUBLIC (Technician) — BASE STYLES
   Layout structure, resets, and component skeletons.
   Pairs with modal.css (component skin) and theme.css
   (color variables / light-dark theming).
═══════════════════════════════════════════════════════════ */

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
            background: #0c4a6e;
            min-height: 100vh;
            color: #fff;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 14px;
        }

        header {
            background: #164e63;
            border-radius: 12px;
            padding: 12px 18px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            border: 1px solid #155e75;
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .logo-container {
            width: 54px;
            height: 54px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            border-radius: 50%;
            overflow: hidden;
        }

            .logo-container img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                border-radius: 50%;
            }

        .header-title h1 {
            font-size: 1.15rem;
            font-weight: 700;
            margin-bottom: 1px;
            color: #fff;
        }

        .header-title p {
            font-size: 0.75rem;
            color: #67e8f9;
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .tech-info {
            padding: 6px 14px;
            background: #155e75;
            border-radius: 20px;
            border: 1px solid #0e7490;
            font-weight: 600;
            font-size: 0.84rem;
            color: #fff;
        }

        .hamburger-btn {
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 5px;
            background: #166534;
            border: 1px solid #15803d;
            border-radius: 9px;
            padding: 9px 11px;
            cursor: pointer;
            flex-shrink: 0;
        }

            .hamburger-btn span {
                display: block;
                width: 20px;
                height: 2px;
                background: #fff;
                border-radius: 2px;
                transition: all 0.25s;
            }

            .hamburger-btn:hover {
                background: #15803d;
            }

        .drawer-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.55);
            z-index: 900;
        }

            .drawer-overlay.open {
                display: block;
            }

        .side-drawer {
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            width: 280px;
            background: #111827;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            transform: translateX(-100%);
            transition: transform 0.28s ease;
            box-shadow: 4px 0 24px rgba(0,0,0,0.5);
        }

            .side-drawer.open {
                transform: translateX(0);
            }

        .drawer-header {
            padding: 20px 20px 16px;
            background: #1f2937;
            border-bottom: 1px solid #374151;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .drawer-logo {
            width: 46px;
            height: 46px;
            flex-shrink: 0;
            border-radius: 50%;
            overflow: hidden;
        }

            .drawer-logo img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                border-radius: 50%;
            }

        .drawer-header-text h2 {
            font-size: 0.95rem;
            font-weight: 700;
            color: #fff;
            margin-bottom: 2px;
        }

        .drawer-header-text p {
            font-size: 0.72rem;
            color: #67e8f9;
        }

        .drawer-nav {
            flex: 1;
            padding: 10px 0;
            overflow-y: auto;
        }

        .drawer-nav-item {
            display: flex;
            align-items: center;
            gap: 13px;
            padding: 14px 22px;
            cursor: pointer;
            font-size: 0.95rem;
            font-weight: 500;
            color: #d1d5db;
            border: none;
            background: transparent;
            width: 100%;
            text-align: left;
            border-left: 3px solid transparent;
            transition: background 0.15s, color 0.15s, border-color 0.15s;
        }

            .drawer-nav-item:hover {
                background: #1f2937;
                color: #fff;
            }

            .drawer-nav-item.active {
                background: #0f172a;
                color: #22d3ee;
                border-left-color: #22d3ee;
                font-weight: 600;
            }

        .drawer-nav-icon {
            font-size: 1.1rem;
            width: 22px;
            text-align: center;
        }

        .drawer-nav-divider {
            height: 1px;
            background: #1f2937;
            margin: 6px 0;
        }

        .drawer-footer {
            padding: 16px 18px;
            border-top: 1px solid #1f2937;
            background: #111827;
        }

        .drawer-user-box {
            background: #1f2937;
            border-radius: 10px;
            padding: 12px 16px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .drawer-user-avatar {
            width: 34px;
            height: 34px;
            background: #0e7490;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            font-weight: 700;
            color: #fff;
            flex-shrink: 0;
        }

        .drawer-user-info {
            flex: 1;
            min-width: 0;
        }

        .drawer-user-name {
            font-size: 0.9rem;
            font-weight: 700;
            color: #fff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .drawer-user-role {
            font-size: 0.72rem;
            color: #6b7280;
        }

        .btn-drawer-logout {
            width: 100%;
            padding: 13px;
            background: transparent;
            border: 1px solid #7f1d1d;
            border-radius: 10px;
            color: #f87171;
            font-size: 0.92rem;
            font-weight: 600;
            cursor: pointer;
            text-align: center;
            transition: background 0.2s, color 0.2s;
        }

            .btn-drawer-logout:hover {
                background: #7f1d1d;
                color: #fff;
            }

        .quick-search-container {
            margin-bottom: 12px;
            position: relative;
        }

        .quick-search-bar {
            display: flex;
            align-items: center;
            background: #155e75;
            border-radius: 10px;
            padding: 4px 4px 4px 14px;
            border: 1px solid #0e7490;
        }

            .quick-search-bar:focus-within {
                border-color: #22d3ee;
            }

        .search-icon {
            font-size: 1rem;
            margin-right: 8px;
            opacity: 0.6;
        }

        .quick-search-bar input {
            flex: 1;
            background: transparent;
            border: none;
            color: #fff;
            font-size: 0.9rem;
            padding: 8px 6px;
            outline: none;
        }

            .quick-search-bar input::placeholder {
                color: rgba(255,255,255,0.38);
            }

        .clear-search-btn {
            background: #0e7490;
            border: none;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            color: #fff;
            font-size: 1.2rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 3px;
        }

        .quick-search-results {
            position: absolute;
            top: calc(100% + 4px);
            left: 0;
            right: 0;
            background: #0c2d3f;
            border-radius: 10px;
            border: 1px solid #155e75;
            box-shadow: 0 6px 20px rgba(0,0,0,0.5);
            max-height: 300px;
            overflow-y: auto;
            z-index: 200;
            display: none;
        }

            .quick-search-results.active {
                display: block;
            }

        .quick-search-item {
            padding: 11px 15px;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            cursor: pointer;
        }

            .quick-search-item:hover {
                background: rgba(14,165,233,0.1);
            }

            .quick-search-item:last-child {
                border-bottom: none;
            }

        .search-item-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 4px;
        }

        .search-item-title {
            font-weight: 600;
            font-size: 0.9rem;
        }

        .search-item-meta {
            display: flex;
            gap: 7px;
            flex-wrap: wrap;
            align-items: center;
            font-size: 0.78rem;
            color: rgba(255,255,255,0.6);
        }

        .task-type-pill {
            padding: 3px 8px;
            border-radius: 12px;
            font-size: 0.72rem;
            font-weight: 700;
            color: #fff;
        }

        .nav-tabs-bar {
            display: flex;
            gap: 3px;
            background: #155e75;
            border-radius: 12px;
            padding: 4px;
            width: fit-content;
            border: 1px solid #0e7490;
            margin-bottom: 14px;
        }

        .nav-tab {
            padding: 9px 20px;
            background: transparent;
            border: none;
            border-radius: 9px;
            color: rgba(255,255,255,0.6);
            cursor: pointer;
            font-weight: 600;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
            transition: background 0.2s, color 0.2s;
        }

            .nav-tab:hover {
                color: #fff;
                background: rgba(255,255,255,0.07);
            }

            .nav-tab.active {
                color: #fff;
            }

            .nav-tab[data-view="mo"].active {
                background: #b45309;
            }

            .nav-tab[data-view="sr"].active {
                background: #166534;
            }

            .nav-tab[data-view="overdue"].active {
                background: #b91c1c;
            }

        .tab-badge {
            background: rgba(255,255,255,0.25);
            border-radius: 12px;
            padding: 1px 7px;
            font-size: 0.7rem;
            font-weight: 700;
        }

        .nav-tab.active .tab-badge {
            background: rgba(255,255,255,0.35);
        }

        .section-title {
            font-size: 1.05rem;
            font-weight: 700;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
            padding-bottom: 10px;
            border-bottom: 2px solid #15803d;
            color: #fff;
        }

        .month-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(230px,1fr));
            gap: 12px;
        }

        .month-card {
            background: #0c2d3f;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid #155e75;
            cursor: pointer;
            transition: transform 0.2s, border-color 0.2s;
        }

            .month-card:hover {
                transform: translateY(-3px);
                border-color: #22d3ee;
            }

        .month-card-top-bar {
            height: 3px;
            width: 100%;
        }

        .month-card-header {
            padding: 16px 14px 12px;
            text-align: center;
        }

            .month-card-header h3 {
                font-size: 0.95rem;
                color: #e0f2fe;
                margin: 0 0 10px;
                font-weight: 700;
            }

        .month-card-total {
            margin-bottom: 12px;
        }

        .month-card-total-num {
            display: block;
            font-size: 2.4rem;
            font-weight: 800;
            line-height: 1;
            margin-bottom: 2px;
        }

        .month-card-total-lbl {
            display: block;
            font-size: 0.63rem;
            color: rgba(255,255,255,0.38);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .month-stats-row {
            display: flex;
            gap: 5px;
        }

        .month-stat-pill {
            flex: 1;
            padding: 7px 4px;
            background: rgba(255,255,255,0.04);
            border-radius: 7px;
            border-top: 2px solid var(--c);
            text-align: center;
        }

        .msp-num {
            display: block;
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--c);
            line-height: 1;
            margin-bottom: 2px;
        }

        .msp-lbl {
            display: block;
            font-size: 0.6rem;
            color: rgba(255,255,255,0.4);
            text-transform: uppercase;
            letter-spacing: 0.4px;
        }

        .month-card-footer {
            padding: 9px 14px;
            background: rgba(0,0,0,0.2);
            text-align: center;
            font-weight: 600;
            font-size: 0.78rem;
            border-top: 1px solid rgba(255,255,255,0.06);
        }

        .overdue-task-card {
            background: #0c2d3f;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid #7f1d1d;
            cursor: pointer;
            transition: transform 0.2s;
        }

            .overdue-task-card:hover {
                transform: translateY(-3px);
            }

        .overdue-badge {
            background: #b91c1c;
            padding: 14px;
            text-align: center;
        }

        .overdue-days {
            display: block;
            font-size: 1.9rem;
            font-weight: 800;
            color: #fff;
            line-height: 1;
            margin-bottom: 3px;
        }

        .overdue-label {
            display: block;
            font-size: 0.72rem;
            color: rgba(255,255,255,0.85);
            text-transform: uppercase;
        }

        .overdue-task-content {
            padding: 14px;
        }

        .overdue-task-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 8px;
            margin-bottom: 10px;
        }

        .overdue-task-title {
            font-size: 0.95rem;
            font-weight: 700;
            color: #fff;
            flex: 1;
        }

        .overdue-task-meta {
            display: flex;
            flex-direction: column;
            gap: 4px;
            padding: 8px;
            background: rgba(0,0,0,0.2);
            border-radius: 7px;
        }

        .overdue-meta-item {
            display: flex;
            gap: 5px;
            font-size: 0.8rem;
        }

        .overdue-meta-label {
            color: rgba(255,255,255,0.5);
            font-weight: 600;
        }

        .overdue-deadline {
            color: #f87171 !important;
            font-weight: 700;
        }

        .empty-state {
            text-align: center;
            padding: 55px 20px;
            background: #0c2d3f;
            border-radius: 12px;
            border: 1px solid #155e75;
            grid-column: 1/-1;
        }

            .empty-state h3 {
                font-size: 1.2rem;
                margin-bottom: 7px;
            }

            .empty-state p {
                opacity: 0.65;
                font-size: 0.9rem;
            }

        .badge {
            display: inline-block;
            padding: 3px 9px;
            border-radius: 12px;
            font-size: 0.72rem;
            font-weight: 700;
        }

            .badge.pending {
                background: #451a03;
                color: #fbbf24;
                border: 1px solid #78350f;
            }

            .badge.completed {
                background: #052e16;
                color: #4ade80;
                border: 1px solid #166534;
            }

            .badge.completed-delayed {
                background: #2e1065;
                color: #c084fc;
                border: 1px solid #6b21a8;
            }

            .badge.overdue {
                background: #450a0a;
                color: #f87171;
                border: 1px solid #7f1d1d;
                animation: overdue-pulse 2s infinite;
            }

        @keyframes overdue-pulse {
            0%,100% {
                opacity: 1;
            }

            50% {
                opacity: 0.55;
            }
        }

        .modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.78);
            z-index: 1000;
            padding: 14px;
        }

            .modal.active {
                display: flex;
                align-items: center;
                justify-content: center;
            }

        .modal-content {
            background: #0a1e2c;
            border-radius: 14px;
            width: 95vw;
            max-width: 1400px;
            height: 88vh;
            overflow: hidden;
            border: 1px solid #155e75;
            display: flex;
            flex-direction: column;
        }

        .modal-header {
            background: #166534;
            padding: 15px 22px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
        }

            .modal-header h2 {
                font-size: 1.1rem;
                color: #fff;
                margin: 0;
            }

        .modal-close {
            background: rgba(255,255,255,0.15);
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            font-size: 1.3rem;
            color: #fff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

            .modal-close:hover {
                background: #dc2626;
            }

        .modal-body {
            padding: 20px;
            overflow-y: auto;
            flex: 1 1 0;
            min-height: 0;
            color: #e0e0e0;
        }

        .month-modal-content {
            background: #0a1e2c;
            border-radius: 14px;
            width: 95vw;
            max-width: 1400px;
            height: 88vh;
            overflow: hidden;
            border: 1px solid #155e75;
            display: flex;
            flex-direction: column;
        }

        .month-modal-header {
            background: #166534;
            padding: 15px 22px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
            gap: 12px;
            flex-wrap: wrap;
        }

            .month-modal-header h2 {
                font-size: 1.1rem;
                color: #fff;
                margin: 0;
            }

        .month-modal-body {
            padding: 14px 18px;
            overflow-y: auto;
            flex: 1 1 0;
            min-height: 0;
        }

        .month-view-filters {
            display: flex;
            gap: 7px;
            margin-bottom: 12px;
            flex-wrap: wrap;
            align-items: center;
        }

        .filter-select {
            padding: 7px 11px;
            background: #0c2d3f;
            border: 1px solid #155e75;
            border-radius: 7px;
            color: #fff;
            font-size: 0.83rem;
            cursor: pointer;
            min-width: 130px;
        }

            .filter-select:focus {
                outline: none;
                border-color: #22d3ee;
            }

            .filter-select option {
                background: #0a1e2c;
                color: #fff;
            }

        .month-search-input {
            flex: 1;
            min-width: 150px;
            padding: 7px 11px;
            background: #0c2d3f;
            border: 1px solid #155e75;
            border-radius: 7px;
            color: #fff;
            font-size: 0.83rem;
        }

            .month-search-input:focus {
                outline: none;
                border-color: #22d3ee;
            }

            .month-search-input::placeholder {
                color: rgba(255,255,255,0.38);
            }

        .month-tasks-table {
            background: transparent;
            width: 100%;
        }

        .task-detail-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.85);
            z-index: 2000;
            padding: 14px;
        }

            .task-detail-overlay.active {
                display: flex;
                align-items: flex-start;
                justify-content: center;
                overflow-y: auto;
            }

        .task-detail-overlay-content {
            background: #0a1e2c;
            border-radius: 14px;
            width: 100%;
            max-width: 860px;
            border: 1px solid #155e75;
            margin: auto 0;
        }

        .task-detail-overlay-header {
            background: #166534;
            padding: 13px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-radius: 14px 14px 0 0;
        }

        .btn-back-overlay {
            padding: 6px 13px;
            background: rgba(255,255,255,0.15);
            border: none;
            border-radius: 6px;
            color: #fff;
            font-weight: 600;
            cursor: pointer;
            font-size: 0.84rem;
        }

            .btn-back-overlay:hover {
                background: rgba(255,255,255,0.25);
            }

        .task-detail-overlay-body {
            padding: 20px;
            color: #e0e0e0;
        }

        .td-header-banner {
            background: #155e75;
            padding: 16px 20px;
            border-radius: 10px;
            margin-bottom: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
            border-left: 4px solid #22d3ee;
        }

        .td-number {
            font-size: 1.5rem;
            font-weight: 800;
            color: #fff;
            letter-spacing: 1px;
        }

        .td-header-badges {
            display: flex;
            gap: 7px;
            flex-wrap: wrap;
            align-items: center;
        }

        .td-badge-large {
            padding: 6px 12px;
            border-radius: 6px;
            font-weight: 700;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.8px;
        }

        .td-info-card {
            background: #0c2d3f;
            border: 1px solid #155e75;
            border-radius: 10px;
            margin-bottom: 10px;
            overflow: hidden;
        }

        .td-card-header {
            background: #166534;
            padding: 9px 13px;
            border-bottom: 1px solid #15803d;
            display: flex;
            align-items: center;
            gap: 8px;
        }

            .td-card-header h3 {
                margin: 0;
                font-size: 0.88rem;
                color: #fff;
                font-weight: 600;
            }

            .td-card-header.collapsible {
                cursor: pointer;
                user-select: none;
                border-bottom: none;
            }

                .td-card-header.collapsible:hover {
                    background: #15803d;
                }

        .td-collapse-arrow {
            margin-left: auto;
            font-size: 0.75rem;
            opacity: 0.8;
            transition: transform 0.25s ease;
            flex-shrink: 0;
        }

        .td-card-header.collapsible.open .td-collapse-arrow {
            transform: rotate(180deg);
        }

        .td-collapse-body {
            display: none;
            border-top: 1px solid #15803d;
        }

            .td-collapse-body.open {
                display: block;
            }

        .td-card-icon {
            font-size: 1rem;
        }

        .td-card-body {
            padding: 12px 13px;
        }

        .td-info-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
            gap: 9px;
            margin-bottom: 8px;
        }

            .td-info-row:last-child {
                margin-bottom: 0;
            }

        .td-info-item {
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

            .td-info-item.td-full-width {
                grid-column: 1/-1;
            }

        .td-info-label {
            font-size: 0.66rem;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            color: #4ade80;
            font-weight: 600;
        }

        .td-info-value {
            font-size: 0.85rem;
            color: #e0e0e0;
            font-weight: 500;
            padding: 7px 10px;
            background: rgba(0,0,0,0.25);
            border-radius: 6px;
            border: 1px solid rgba(255,255,255,0.05);
            line-height: 1.5;
            display: block;
        }

            .td-info-value.td-highlight {
                background: #0a1e2c;
                border-color: #155e75;
                color: #67e8f9;
            }

        .td-overdue-text {
            color: #f87171 !important;
        }

        .td-note-item {
            padding: 9px 11px;
            background: rgba(0,0,0,0.25);
            border-radius: 7px;
            border-left: 3px solid #15803d;
            margin-bottom: 8px;
        }

        .td-note-header {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 4px;
            margin-bottom: 4px;
            font-size: 0.78rem;
        }

            .td-note-header strong {
                color: #4ade80;
            }

        .td-note-time {
            color: #6b7280;
            font-size: 0.72rem;
        }

        .td-note-content {
            color: #e0e0e0;
            font-size: 0.83rem;
            line-height: 1.5;
        }

        .add-note-modern {
            display: flex;
            gap: 7px;
            margin-top: 8px;
        }

        .td-modern-input {
            flex: 1;
            padding: 8px 11px;
            background: rgba(0,0,0,0.25);
            border: 1px solid #155e75;
            border-radius: 7px;
            color: #e0e0e0;
            font-size: 0.85rem;
        }

            .td-modern-input:focus {
                outline: none;
                border-color: #22d3ee;
            }

            .td-modern-input::placeholder {
                color: #4b5563;
            }

        .td-btn-add-note {
            padding: 8px 15px;
            background: #166534;
            border: none;
            border-radius: 7px;
            color: #fff;
            font-weight: 600;
            font-size: 0.83rem;
            cursor: pointer;
            white-space: nowrap;
        }

            .td-btn-add-note:hover {
                background: #15803d;
            }

        .btn-upload {
            padding: 9px 20px;
            background: #166534;
            border: none;
            border-radius: 8px;
            color: #fff;
            font-size: 0.88rem;
            font-weight: 600;
            cursor: pointer;
        }

            .btn-upload:hover {
                background: #15803d;
            }

        .photos-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px,1fr));
            gap: 10px;
        }

        .photo-item {
            background: rgba(0,0,0,0.2);
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid #155e75;
            position: relative;
        }

            .photo-item img {
                width: 100%;
                height: 130px;
                object-fit: cover;
                cursor: pointer;
            }

            .photo-item small {
                display: block;
                padding: 7px;
                background: rgba(0,0,0,0.3);
                color: #ccc;
                font-size: 0.7rem;
                line-height: 1.4;
            }

        .photo-remove-btn, .photo-remove-overlay {
            position: absolute;
            top: 5px;
            right: 5px;
            background: #dc2626;
            border: 2px solid #fff;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            color: #fff;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
        }

            .photo-remove-btn:hover, .photo-remove-overlay:hover {
                background: #b91c1c;
            }

        .modal-body::-webkit-scrollbar, .month-modal-body::-webkit-scrollbar {
            width: 4px;
        }

        .modal-body::-webkit-scrollbar-thumb, .month-modal-body::-webkit-scrollbar-thumb {
            background: #166534;
            border-radius: 3px;
        }

        .drawer-nav::-webkit-scrollbar {
            width: 3px;
        }

        .drawer-nav::-webkit-scrollbar-thumb {
            background: #374151;
            border-radius: 3px;
        }

        @media (max-width: 768px) {
            .tech-info {
                display: none;
            }

            header {
                padding: 10px 14px;
            }

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

            .nav-tabs-bar {
                display: none;
            }

            .month-grid {
                grid-template-columns: 1fr 1fr;
            }

            .td-header-banner {
                flex-direction: column;
                align-items: flex-start;
                padding: 14px;
            }

            .td-number {
                font-size: 1.3rem;
            }

            .td-info-row {
                grid-template-columns: 1fr;
            }

            .add-note-modern {
                flex-direction: column;
            }

            .modal-content {
                width: 100%;
                height: 95vh;
            }
        }

        @media (max-width: 480px) {
            .month-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (min-width: 769px) {
            .side-drawer {
                width: 300px;
            }
        }

        .tc-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 2px;
        }

        .tc {
            border: 1.5px solid rgba(255,255,255,0.12);
            border-left: 4px solid #0e7490;
            border-radius: 10px;
            overflow: hidden;
            cursor: pointer;
            background: #060f19;
            box-shadow: 0 2px 12px rgba(0,0,0,0.45);
            transition: transform 0.18s ease, box-shadow 0.18s ease;
            margin-bottom: 0;
        }

            .tc:hover {
                transform: translateY(-2px);
                box-shadow: 0 8px 28px rgba(0,0,0,0.6);
            }

        .tc--pending {
            border-left-color: #f59e0b;
            border-color: rgba(245,158,11,0.25);
        }

        .tc--completed {
            border-left-color: #10b981;
            border-color: rgba(16,185,129,0.22);
        }

        .tc--delayed {
            border-left-color: #ef4444;
            border-color: rgba(239,68,68,0.28);
        }

        .tc--cd {
            border-left-color: #a855f7;
            border-color: rgba(168,85,247,0.28);
        }

        .tc__head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 11px 14px 10px;
            background: rgba(255,255,255,0.025);
        }

        .tc__mo {
            font-size: 1rem;
            font-weight: 800;
            color: #e2eef6;
            flex: 1;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .tc__pill {
            flex-shrink: 0;
            padding: 3px 10px;
            border-radius: 4px;
            border: 1.5px solid currentColor;
            background: transparent;
            font-size: 0.62rem;
            font-weight: 800;
            letter-spacing: 0.09em;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .tc__sep {
            height: 1px;
            background: rgba(255,255,255,0.06);
        }

        .tc__body {
            padding: 8px 14px 10px;
            background: #060f19;
            display: flex;
            flex-direction: column;
        }

        .tc__row {
            display: flex;
            align-items: baseline;
            padding: 4px 0;
            border-bottom: 1px solid rgba(255,255,255,0.035);
        }

            .tc__row:last-child {
                border-bottom: none;
            }

        .tc__lbl {
            font-size: 0.65rem;
            font-weight: 700;
            color: #1d607d;
            text-transform: uppercase;
            letter-spacing: 0.07em;
            white-space: nowrap;
            width: 108px;
            flex-shrink: 0;
        }

        .tc__colon {
            font-size: 0.72rem;
            color: #1d607d;
            margin-right: 8px;
            flex-shrink: 0;
        }

        .tc__val {
            font-size: 0.82rem;
            color: #7dafc9;
            flex: 1;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .tc__val--mono {
            font-family: monospace;
            color: #2dd4a0;
            font-size: 0.78rem;
        }

        .tc__val--overdue {
            color: #f87171 !important;
            font-weight: 700;
        }

        .tc__empty {
            color: rgba(255,255,255,0.18);
        }

        .tc-pill--pending {
            color: #fbbf24;
        }

        .tc-pill--completed {
            color: #34d399;
        }

        .tc-pill--delayed {
            color: #f87171;
        }

        .tc-pill--cd {
            color: #c084fc;
        }

        .month-modal-header {
            flex-wrap: nowrap !important;
            align-items: flex-start !important;
        }

            .month-modal-header .modal-close {
                flex-shrink: 0 !important;
                margin-top: 2px;
            }

        .tc--onhold {
            border-left-color: #0ea5e9;
            border-color: rgba(14,165,233,0.25);
        }

        .tc__pill--onhold {
            color: #38bdf8;
        }

        #offlineBanner {
            display: none;
            align-items: center;
            justify-content: center;
            gap: 10px;
            background: #7f1d1d;
            border: 1px solid #991b1b;
            border-radius: 10px;
            padding: 10px 16px;
            margin-bottom: 10px;
            color: #fca5a5;
            font-size: 0.85rem;
            font-weight: 600;
            animation: offlinePulse 2s infinite;
        }

        @keyframes offlinePulse {
            0%,100% {
                opacity: 1
            }

            50% {
                opacity: 0.75
            }
        }

        #refreshIndicator {
            display: none;
            position: fixed;
            bottom: 18px;
            right: 18px;
            background: #0c2d3f;
            border: 1px solid #0ea5e9;
            border-radius: 20px;
            padding: 7px 14px;
            color: #38bdf8;
            font-size: 0.75rem;
            font-weight: 600;
            z-index: 500;
            gap: 6px;
            align-items: center;
        }

        .spin {
            animation: spin 1s linear infinite;
            display: inline-block;
        }

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

        .tc--due-today {
            border-color: rgba(239,68,68,0.5) !important;
            border-left-color: #ef4444 !important;
        }

            .tc--due-today .tc__head {
                background: rgba(239,68,68,0.07) !important;
            }

        .tc--due-week {
            border-color: rgba(245,158,11,0.4) !important;
            border-left-color: #f59e0b !important;
        }

            .tc--due-week .tc__head {
                background: rgba(245,158,11,0.05) !important;
            }

        .tc-urgency-badge {
            font-size: 0.58rem;
            font-weight: 800;
            padding: 2px 7px;
            border-radius: 4px;
            text-transform: uppercase;
            letter-spacing: 0.07em;
            flex-shrink: 0;
        }

        .tc-urgency-badge--today {
            background: rgba(239,68,68,0.15);
            color: #f87171;
            border: 1px solid rgba(239,68,68,0.3);
        }

        .tc-urgency-badge--week {
            background: rgba(245,158,11,0.12);
            color: #fbbf24;
            border: 1px solid rgba(245,158,11,0.25);
        }

        #onHoldModal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.88);
            z-index: 3000;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .onhold-modal-box {
            background: #0a1e2c;
            border: 1px solid #0ea5e9;
            border-radius: 14px;
            width: 100%;
            max-width: 420px;
            padding: 24px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.8);
        }

            .onhold-modal-box h3 {
                color: #38bdf8;
                margin-bottom: 6px;
                font-size: 1rem;
            }

            .onhold-modal-box p {
                color: #6b7280;
                font-size: 0.82rem;
                margin-bottom: 14px;
            }

        #onHoldReason {
            width: 100%;
            height: 90px;
            background: rgba(0,0,0,0.3);
            border: 1px solid #155e75;
            border-radius: 8px;
            color: #e0e0e0;
            padding: 10px;
            font-size: 0.85rem;
            resize: none;
            font-family: inherit;
            transition: border-color 0.2s;
        }

            #onHoldReason:focus {
                outline: none;
                border-color: #0ea5e9;
            }

            #onHoldReason.error {
                border-color: #ef4444;
            }

        .onhold-modal-btns {
            display: flex;
            gap: 8px;
            margin-top: 12px;
        }

            .onhold-modal-btns button {
                flex: 1;
                padding: 12px;
                border-radius: 8px;
                font-weight: 700;
                font-size: 0.88rem;
                cursor: pointer;
                border: none;
            }

        #onHoldCancelBtn {
            background: transparent;
            border: 1px solid #374151 !important;
            color: #6b7280;
        }

            #onHoldCancelBtn:hover {
                background: rgba(255,255,255,0.05);
            }

        #onHoldConfirmBtn {
            background: #0369a1;
            color: #fff;
        }

            #onHoldConfirmBtn:hover {
                background: #0284c7;
            }
        .badge.on_hold {
            background: #0c2a3f;
            color: #38bdf8;
            border: 1px solid #0ea5e9;
        }
        /* ── Notification Bell ─────────────────────────── */
        .notif-bell-wrap { position: relative; }
        .notif-bell-btn {
            position: relative; background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.2); border-radius: 10px;
            width: 40px; height: 40px; font-size: 1.1rem; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: background 0.2s, transform 0.2s; color: #fff;
        }
        .notif-bell-btn:hover { background: rgba(0,184,212,0.25); transform: scale(1.08); }
        .notif-bell-btn.has-unread { animation: bellShake 0.5s ease; }
        @keyframes bellShake {
            0%,100% { transform: rotate(0); } 20% { transform: rotate(-15deg); }
            40% { transform: rotate(15deg); } 60% { transform: rotate(-10deg); } 80% { transform: rotate(10deg); }
        }
        .notif-badge {
            position: absolute; top: -6px; right: -6px; background: #ef4444; color: #fff;
            font-size: 0.62rem; font-weight: 700; min-width: 18px; height: 18px;
            border-radius: 999px; display: flex; align-items: center; justify-content: center;
            padding: 0 4px; border: 2px solid #164e63; pointer-events: none;
        }
        .notif-panel {
            display: none; position: absolute; top: calc(100% + 10px); right: 0; width: 320px;
            background: #1a3a4a; border: 1px solid rgba(0,184,212,0.25); border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.6); z-index: 3000; overflow: hidden;
        }
        .notif-panel.open { display: flex; flex-direction: column; }
        .notif-panel-header {
            display: flex; justify-content: space-between; align-items: center;
            padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,0.08);
            font-weight: 700; font-size: 0.9rem; color: #fff;
        }
        .notif-mark-all { background: none; border: none; color: #00B8D4; font-size: 0.75rem; cursor: pointer; font-weight: 600; padding: 4px 8px; border-radius: 6px; }
        .notif-list { max-height: 360px; overflow-y: auto; }
        .notif-item {
            display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px;
            border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer;
            transition: background 0.15s; position: relative;
        }
        .notif-item:hover { background: rgba(255,255,255,0.04); }
        .notif-item.unread { background: rgba(0,184,212,0.07); }
        .notif-item.unread::before {
            content: ''; position: absolute; left: 5px; top: 50%; transform: translateY(-50%);
            width: 6px; height: 6px; border-radius: 50%; background: #00B8D4;
        }
        .notif-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
        .notif-content { flex: 1; min-width: 0; }
        .notif-title { font-size: 0.83rem; font-weight: 600; color: #e0e0e0; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .notif-body { font-size: 0.76rem; color: #7aa; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .notif-time { font-size: 0.7rem; color: #4a7a7a; white-space: nowrap; flex-shrink: 0; margin-top: 2px; }
        .notif-delete-btn { background: none; border: none; color: #335; cursor: pointer; font-size: 0.78rem; padding: 2px 5px; border-radius: 4px; opacity: 0; transition: opacity 0.2s, color 0.2s; }
        .notif-item:hover .notif-delete-btn { opacity: 1; }
        .notif-delete-btn:hover { color: #ef4444; }
        .notif-empty { padding: 36px 20px; text-align: center; color: #446; font-size: 0.88rem; }
        @media (max-width: 480px) { .notif-panel { width: calc(100vw - 24px); right: -10px; } }

        /* ── Completed Records Table ─────────────────────── */
        .completed-records-section {
            margin-top: 28px;
            border-top: 2px solid rgba(34, 197, 94, 0.2);
            padding-top: 20px;
        }

        .completed-table-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 14px;
        }

        .completed-table-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.72rem;
            font-weight: 700;
            color: #22c55e;
            text-transform: uppercase;
            letter-spacing: 0.8px;
        }

        .completed-count-badge {
            background: rgba(34, 197, 94, 0.15);
            color: #22c55e;
            border: 1px solid rgba(34, 197, 94, 0.3);
            border-radius: 10px;
            padding: 2px 9px;
            font-size: 0.72rem;
            font-weight: 700;
        }

        .completed-table-controls {
            display: flex;
            align-items: center;
            gap: 7px;
            flex-wrap: wrap;
        }

        .completed-filter-select {
            padding: 5px 10px;
            background: rgba(255, 255, 255, 0.07);
            border: 1.5px solid rgba(34, 197, 94, 0.35);
            border-radius: 8px;
            color: #e0e0e0;
            font-size: 0.78rem;
            cursor: pointer;
            outline: none;
        }

        .completed-filter-sep {
            color: #555;
            font-size: 0.75rem;
        }

        .completed-date-input {
            padding: 5px 8px;
            background: rgba(255, 255, 255, 0.06);
            border: 1.5px solid rgba(34, 197, 94, 0.25);
            border-radius: 8px;
            color: #e0e0e0;
            font-size: 0.76rem;
            outline: none;
            max-width: 130px;
        }

        .completed-filter-clear {
            padding: 5px 10px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: #777;
            font-size: 0.74rem;
            cursor: pointer;
            transition: background 0.15s;
        }

        .completed-filter-clear:hover { background: rgba(255,255,255,0.1); color: #ccc; }

        .completed-dl-btn {
            padding: 5px 13px;
            background: rgba(0, 184, 212, 0.12);
            border: 1.5px solid rgba(0, 184, 212, 0.35);
            border-radius: 8px;
            color: #67e8f9;
            font-size: 0.74rem;
            font-weight: 700;
            cursor: pointer;
            transition: background 0.15s;
            white-space: nowrap;
        }

        .completed-dl-btn:hover { background: rgba(0, 184, 212, 0.25); }

        .completed-dl-btn--pdf {
            background: rgba(139, 92, 246, 0.12);
            border-color: rgba(139, 92, 246, 0.35);
            color: #c4b5fd;
        }

        .completed-dl-btn--pdf:hover { background: rgba(139, 92, 246, 0.25); }

        .completed-records-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.78rem;
            table-layout: fixed;
        }

        .completed-records-table thead tr {
            background: rgba(22, 78, 99, 0.7);
        }

        .completed-records-table th {
            padding: 10px 12px;
            text-align: left;
            font-size: 0.7rem;
            font-weight: 700;
            color: #7dd3fc;
            letter-spacing: 0.5px;
            border-bottom: 2px solid rgba(0, 184, 212, 0.3);
        }

        .completed-records-table tbody tr {
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            transition: background 0.15s;
        }

        .completed-records-table tbody tr:hover {
            background: rgba(34, 197, 94, 0.06);
        }

        .completed-records-table td {
            padding: 9px 12px;
            color: #ccc;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* PDF button on task card */
        .tc-pdf-btn {
            margin-left: auto;
            padding: 3px 10px;
            background: rgba(22, 78, 99, 0.7);
            border: 1px solid rgba(0, 184, 212, 0.3);
            border-radius: 6px;
            color: #7dd3fc;
            font-size: 0.72rem;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
            transition: background 0.15s;
            flex-shrink: 0;
        }

        .tc-pdf-btn:hover {
            background: rgba(0, 184, 212, 0.2);
            border-color: rgba(0, 184, 212, 0.5);
        }

        @media (max-width: 600px) {
            .completed-table-header { flex-direction: column; align-items: flex-start; }
            .completed-date-input { max-width: 110px; }
        }

