* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Arial, sans-serif;
            background: #f0f2f5;
            padding: 16px;
        }

        .app {
            max-width: 500px;
            margin: 0 auto;
            background: white;
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
            display: none;
        }

        h1 {
            font-size: 22px;
            color: #1a237e;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        h1 small {
            font-size: 13px;
            color: #666;
            font-weight: normal;
        }

        /* Dashboard */
        .dashboard {
            margin-bottom: 16px;
            transition: all 0.3s ease;
        }
        .dashboard-toggle {
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            padding: 6px 10px;
            background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
            border-radius: 8px 8px 0 0;
            color: white;
            font-size: 12px;
            font-weight: 600;
            user-select: none;
        }
        .dashboard-toggle .chevron { transition: transform 0.3s; font-size: 10px; }
        .dashboard.collapsed .dashboard-toggle .chevron { transform: rotate(-90deg); }
        .dashboard-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4px;
            overflow: hidden;
            transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
            max-height: 500px;
            opacity: 1;
            padding-top: 4px;
        }
        .dashboard.collapsed .dashboard-grid {
            max-height: 0;
            opacity: 0;
            padding-top: 0;
            gap: 0;
        }
        .dashboard-compact {
            display: none;
            grid-template-columns: repeat(6, 1fr);
            gap: 4px;
            padding: 8px 0;
        }
        .dashboard.collapsed .dashboard-compact { display: grid; }
        .compact-item {
            text-align: center;
            padding: 6px 2px;
            border-radius: 6px;
            background: white;
            border: 1px solid #e0e0e0;
            cursor: pointer;
            font-size: 10px;
        }
        .compact-item .num { font-size: 16px; font-weight: 700; display: block; }
        .compact-item .lbl { font-size: 9px; color: #666; }
        .dash-card {
            background: white;
            border-radius: 6px;
            padding: 6px 12px;
            border: 1px solid #e0e0e0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            transition: background 0.2s, transform 0.15s;
        }
        .dash-card:active { transform: scale(0.97); }
        .dash-card:hover { background: #f5f7fa; }
        .dash-card .title { font-size: 13px; font-weight: 600; flex: 2; }
        .dash-card .total { font-size: 13px; font-weight: 600; flex: 1; text-align: center; }
        .dash-card .breakdown { flex: 2; display: flex; justify-content: flex-end; gap: 10px; font-size: 13px; }

        /* Skeleton Loading */
        .skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 6px; }
        @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
        .skeleton-card { height: 80px; margin: 4px 0; }
        .skeleton-card-header { height: 16px; margin-bottom: 8px; }
        .skeleton-card-desc { height: 12px; width: 70%; margin: 4px 0; }
        .skeleton-card-meta { height: 10px; width: 50%; }
        .skeleton-kanban-col { min-height: 200px; }

        /* Tab */
        .tabs {
            display: flex;
            gap: 4px;
            margin-bottom: 16px;
            background: #f0f2f5;
            border-radius: 10px;
            padding: 4px;
        }

        .tab {
            flex: 1;
            text-align: center;
            padding: 8px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            transition: 0.2s;
            border: none;
            background: transparent;
        }

        .tab.active {
            background: white;
            color: #1a237e;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
        }

        /* Header Premium Luxury */
        .header-container {
            background: linear-gradient(135deg, #0a0e27 0%, #1a1f4e 30%, #0d1557 60%, #0a0e27 100%);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 12px;
            margin: -15px -15px 12px -15px;
            position: relative;
            overflow: hidden;
            border-bottom: none;
        }
        .header-container::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: 
                radial-gradient(ellipse at 20% 50%, rgba(99, 179, 237, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
                linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.03) 50%, transparent 100%);
            pointer-events: none;
        }
        .header-container::after {
            content: '';
            position: absolute;
            bottom: 0; left: 0; right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, #3b82f6, #8b5cf6, #3b82f6, transparent);
        }
        .header-logo {
            display: flex;
            align-items: center;
            gap: 8px;
            position: relative;
            z-index: 1;
        }
        .header-logo img {
            height: 32px;
            width: 32px;
            border-radius: 8px;
            box-shadow: 0 0 12px rgba(59, 130, 246, 0.5), 0 0 24px rgba(59, 130, 246, 0.2);
            border: 1.5px solid rgba(255,255,255,0.2);
            transition: transform 0.3s, box-shadow 0.3s;
        }
        .header-logo img:hover { transform: scale(1.1) rotate(-5deg); box-shadow: 0 0 20px rgba(59, 130, 246, 0.7); }
        .header-logo h1 {
            margin: 0;
            font-size: 16px;
            font-weight: 800;
            color: white;
            letter-spacing: 0.5px;
            text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
            line-height: 1;
        }
        .header-logo h1 small {
            font-size: 9px;
            font-weight: 500;
            color: rgba(255,255,255,0.6);
            display: block;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            text-shadow: none;
            margin-top: 2px;
        }
        .header-user {
            position: relative;
            z-index: 1;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        #currentUserDisplay {
            font-size: 11px;
            font-weight: 600;
            color: white;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            cursor: pointer;
            padding: 5px 14px;
            border-radius: 20px;
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.2);
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 6px;
            text-shadow: 0 1px 2px rgba(0,0,0,0.3);
        }
        #currentUserDisplay:hover {
            background: rgba(255,255,255,0.15);
            border-color: rgba(59, 130, 246, 0.6);
            box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
            transform: translateY(-1px);
        }
        #currentUserDisplay .user-avatar {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
        }
        .header-actions {
            position: relative;
            z-index: 1;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        #statusIndicator {
            font-size: 8px;
            font-weight: 700;
            padding: 3px 8px;
            border-radius: 12px;
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.25);
            color: rgba(255,255,255,0.7);
            backdrop-filter: blur(8px);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            transition: all 0.3s;
        }
        #statusIndicator.online {
            background: rgba(34, 197, 94, 0.2);
            border-color: rgba(34, 197, 94, 0.5);
            color: #4ade80;
            box-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
        }
        .sync-btn {
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.15);
            color: white;
            cursor: pointer;
            font-size: 14px;
            padding: 5px 8px;
            border-radius: 8px;
            transition: all 0.3s;
            backdrop-filter: blur(8px);
        }
        .sync-btn:hover {
            background: rgba(59, 130, 246, 0.3);
            border-color: rgba(59, 130, 246, 0.5);
            transform: rotate(180deg);
            box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
        }
        .sync-btn:active { transform: rotate(360deg) scale(0.9); }
        #userMenu {
            position: absolute;
            top: 100%;
            right: 0;
            background: white;
            border-radius: 14px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.05);
            min-width: 220px;
            z-index: 1000;
            overflow: hidden;
            opacity: 0;
            transform: translateY(-10px) scale(0.95);
            pointer-events: none;
            transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
        }
        #userMenu.show {
            opacity: 1;
            transform: translateY(0) scale(1);
            pointer-events: all;
        }
        .menu-profile {
            padding: 16px 14px 12px;
            background: linear-gradient(135deg, #0a0e27 0%, #1a1f4e 100%);
            text-align: center;
        }
        .menu-avatar {
            width: 48px; height: 48px;
            border-radius: 50%;
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            display: flex; align-items: center; justify-content: center;
            font-size: 22px;
            margin: 0 auto 8px;
            box-shadow: 0 0 16px rgba(59,130,246,0.5);
            border: 2px solid rgba(255,255,255,0.3);
        }
        .menu-name {
            font-size: 13px; font-weight: 700; color: white;
            margin-bottom: 4px;
        }
        .menu-role-badge {
            display: inline-block;
            font-size: 9px; font-weight: 600;
            padding: 2px 10px;
            border-radius: 10px;
            background: rgba(59,130,246,0.3);
            color: #93c5fd;
            border: 1px solid rgba(59,130,246,0.4);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .menu-divider {
            height: 1px;
            background: #e2e8f0;
            margin: 4px 0;
        }
        #menuRole { display: none; }
        #userMenu div[onclick] {
            padding: 10px 14px;
            font-size: 12px;
            cursor: pointer;
            transition: background 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        #userMenu div[onclick]:hover {
            background: #f1f5f9;
        }

        /* Footer */
        .app-footer {
            text-align: center;
            padding: 12px 0;
            margin: 16px -15px -15px -15px;
            background: linear-gradient(135deg, #0a0e27 0%, #1a1f4e 50%, #0a0e27 100%);
            color: rgba(255,255,255,0.4);
            font-size: 10px;
        }

        /* Card Form VIP Pro */
        .screen {
            display: none;
            background: white;
            border-radius: 12px;
            padding: 15px;
            border: 1px solid #e0e0e0;
            border-top: 4px solid #1a237e;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        }

        .screen.active {
            display: block;
        }

        /* Form */
        label {
            display: block;
            font-size: 13px;
            font-weight: 500;
            color: #333;
            margin: 12px 0 4px;
        }

        select,
        input,
        textarea {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 14px;
            font-family: inherit;
        }

        textarea {
            resize: vertical;
            min-height: 60px;
        }

        .radio-group {
            display: flex;
            gap: 16px;
            margin: 4px 0;
        }

        .radio-group label {
            font-weight: normal;
            display: flex;
            align-items: center;
            gap: 4px;
            cursor: pointer;
        }

        .radio-group input[type="radio"] {
            width: auto;
        }

        .btn {
            width: 100%;
            padding: 12px;
            border: none;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            margin-top: 16px;
            transition: 0.2s;
        }

        .btn:hover {
            opacity: 0.9;
        }

        .btn-vang { background: #f9a825; color: #fff; }
        .btn-do { background: #d32f2f; color: #fff; }
        .btn-xanh { background: #1565c0; color: #fff; }
        .btn-xam { background: #757575; color: #fff; }
        .btn-success { background: #2e7d32; color: #fff; }

        /* Kanban */
        .kanban-board { display: flex; flex-direction: column; gap: 16px; }
        .kanban-col { background: #f8f9fa; border-radius: 12px; padding: 12px; border: 1px solid #e0e0e0; }
        .kanban-col-title { font-size: 13px; font-weight: bold; color: #1a237e; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
        .kanban-col-title .count { background: #1a237e; color: white; padding: 2px 8px; border-radius: 10px; font-size: 11px; }
        .kanban-cards { display: flex; flex-direction: column; gap: 8px; }
        .kanban-card { background: white; border-radius: 8px; padding: 10px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); border-left: 4px solid #ddd; cursor: pointer; }
        .kanban-card.vang { border-left-color: #f9a825; }
        .kanban-card.do { border-left-color: #d32f2f; }
        .kanban-card .card-id { font-weight: bold; font-size: 12px; }
        .kanban-card .card-desc { font-size: 11px; color: #666; margin: 4px 0; }
        .kanban-card .card-meta { font-size: 10px; color: #999; display: flex; justify-content: space-between; }

        .kanban-col-title .chevron { transition: transform 0.3s; font-size: 10px; }
        .kanban-col.collapsed .kanban-col-title .chevron { transform: rotate(-90deg); }
        .kanban-col.collapsed .kanban-cards { display: none; }
        .kanban-col.alarm { border: 2px solid #d32f2f; background: #fff5f5; }
        .kanban-col.alarm .kanban-col-title { color: #d32f2f; animation: pulse 2s infinite; }
        @keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }
        .kanban-card.overdue-card { border: 2px solid #d32f2f; background: #fff8f8; }
        /* Audit & Report */
        .audit-item { background: #f8f9fa; border-radius: 8px; padding: 10px; margin-bottom: 8px; border: 1px solid #e0e0e0; }
        .audit-item .q { font-size: 13px; font-weight: 600; color: #1a237e; margin-bottom: 4px; }
        .audit-score { display: flex; flex-wrap: wrap; gap: 6px; }
        .audit-score label { font-size: 11px; display: flex; align-items: center; gap: 3px; cursor: pointer; }
        .audit-score input[type="radio"] { width: auto; }
        .kanban-card.overdue-card { border: 2px solid #d32f2f; background: #fff8f8; }
        /* Report sub-tabs - Dark Professional Theme */
        .report-tabs { display: flex; gap: 4px; margin-bottom: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 4px 0; }
        .report-tabs button { flex-shrink: 0; padding: 10px 16px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); border-radius: 10px 10px 0 0; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; color: #94a3b8; transition: all .25s ease; }
        .report-tabs button:hover { color: #e2e8f0; background: rgba(255,255,25,.0.08); border-color: rgba(255,255,255,.15); }
        .report-tabs button.active { color: #fff; background: rgba(59,130,246,.15); border-color: rgba(59,130,246,.3); box-shadow: 0 -2px 12px rgba(59,130,246,.15); }
        .report-tabs button.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #3b82f6, #8b5cf6); }
        .report-section { display: none; animation: fadeSlideIn .3s ease; }
        .report-section.active { display: block; }
        @keyframes fadeSlideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

        /* KPI Cards - Glassmorphism */
        .stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
        .stat-card { background: rgba(255,255,255,.04); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; transition: all .3s ease; }
        .stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,.2), 0 0 20px color-mix(in srgb, var(--kpi-color) 20%, transparent); }
        .stat-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--kpi-color), color-mix(in srgb, var(--kpi-color) 60%, #8b5cf6)); }
        .stat-card::after { content: ''; position: absolute; top: -30px; right: -30px; width: 80px; height: 80px; background: radial-gradient(circle, color-mix(in srgb, var(--kpi-color) 12%, transparent), transparent); border-radius: 50%; pointer-events: none; }
        .stat-card .stat-num { font-size: 28px; font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--kpi-color), color-mix(in srgb, var(--kpi-color) 70%, #fff)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
        .stat-card .stat-label { font-size: 11px; color: #64748b; font-weight: 500; }

        /* Chart cards */
        .report-chart-card { background: rgba(255,255,255,.03); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; overflow: hidden; transition: all .3s ease; margin-bottom: 14px; }
        .report-chart-card:hover { border-color: rgba(255,255,255,.1); box-shadow: 0 4px 20px rgba(0,0,0,.15); }
        .report-chart-head { padding: 14px 18px; font-weight: 700; font-size: 13px; color: #e2e8f0; background: rgba(255,255,255,.03); border-bottom: 1px solid rgba(255,255,255,.06); display: flex; align-items: center; gap: 8px; }
        .report-chart-body { padding: 14px 18px; display: flex; align-items: center; justify-content: center; min-height: 200px; }
        .leaderboard-row { display: flex; align-items: center; padding: 8px; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
        .leaderboard-row .rank { width: 24px; font-weight: 700; color: #1a237e; }
        .leaderboard-row .name { flex: 1; }
        .leaderboard-row .score { font-weight: 600; }
        .location-row { display: flex; align-items: center; padding: 8px; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
        .location-row .loc-name { flex: 1; font-weight: 500; }
        .location-row .bar-bg { width: 80px; height: 14px; background: #e0e0e0; border-radius: 4px; margin: 0 8px; }
        .location-row .bar-fill { height: 100%; background: #1565c0; border-radius: 4px; }
        .location-row .count { width: 30px; text-align: right; font-weight: 600; }

        /* Dark theme tables */
        .cicd-table { width: 100%; border-collapse: collapse; font-size: 12px; color: #e2e8f0; }
        .cicd-table th { background: rgba(59,130,246,.12); color: #93c5fd; padding: 10px 8px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.08); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
        .cicd-table td { padding: 8px; border-bottom: 1px solid rgba(255,255,255,.04); }
        .cicd-table tr:hover td { background: rgba(59,130,246,.04); }
        .cicd-table tr:last-child td { border-bottom: none; }

        /* Dark location row */
        .report-chart-body .location-row .loc-name { color: #e2e8f0; }
        .report-chart-body .location-row .bar-bg { background: rgba(255,255,255,.08); }
        .report-chart-body .location-row .count { color: #e2e8f0; }

        /* Location Drawers (6-state per location) */
        .loc-drawer { background: #fff; border: 1px solid #e0e0e0; border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
        .loc-drawer-header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #f8f9fa; border-bottom: 1px solid #e0e0e0; cursor: pointer; user-select: none; }
        .loc-drawer-header:hover { background: #eef1f5; }
        .loc-drawer-icon { font-size: 16px; flex-shrink: 0; }
        .loc-drawer-name { flex: 1; font-weight: 600; color: #1a237e; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .loc-drawer-chevron { font-size: 10px; color: #666; transition: transform 0.2s; }
        .loc-drawer.open .loc-drawer-chevron { transform: rotate(90deg); }
        .loc-drawer-badges { display: flex; gap: 4px; flex-shrink: 0; }
        .loc-badge { display: inline-flex; align-items: center; gap: 2px; padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 600; }
        .loc-badge-vang { background: #fff3e0; color: #e65100; border: 1px solid #ffb74d; }
        .loc-badge-do { background: #fce4ec; color: #c62828; border: 1px solid #f48fb1; }
        .loc-badge-total { background: #e8eaf6; color: #283593; border: 1px solid #9fa8da; }
        .loc-assess-btn { background: #1a237e; color: white; border: none; border-radius: 14px; padding: 3px 10px; font-size: 10px; font-weight: 600; cursor: pointer; white-space: nowrap; margin:0 4px; flex-shrink:0; transition:.2s; }
        .loc-assess-btn:hover { background: #0d47a1; transform: scale(1.05); }
        .loc-drawer-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.2s ease; }
        .loc-drawer.open .loc-drawer-body { max-height: 300px; padding: 8px 0; }
        .loc-table { width: 100%; border-collapse: collapse; font-size: 11px; }
        .loc-table th { background: #f5f5f5; color: #666; padding: 6px 8px; text-align: center; font-weight: 600; font-size: 10px; border-bottom: 1px solid #e0e0e0; }
        .loc-table td { padding: 6px 8px; text-align: center; border-bottom: 1px solid #f0f0f0; color: #333; }
        .loc-table td:first-child { text-align: left; font-weight: 500; color: #1a237e; }
        .loc-table tr.loc-row-active td { font-weight: 600; color: #1a237e; }
        .loc-table tr.loc-row-active td:first-child { color: #d32f2f; }

        /* Tab button position fix */
        .report-tabs button { position: relative; }
        /* Print Card - 2 Liên */
        .print-card { border: 2px dashed #ccc; border-radius: 12px; padding: 20px; text-align: center; margin: 12px 0; background: #fffef5; }
        .print-card .ma { font-size: 22px; font-weight: bold; }
        .print-card .ma.vang { color: #f9a825; }
        .print-card .ma.do { color: #d32f2f; }
        .print-card .info { font-size: 13px; color: #333; margin: 4px 0; }
        .print-card .info span { color: #666; }
        .card-copy { border: 2px solid #333; border-radius: 10px; padding: 16px; margin: 12px 0; position: relative; background: #fff; }
        .card-copy.vang-copy { border-color: #f9a825; background: #fffde7; }
        .card-copy.do-copy { border-color: #d32f2f; background: #fff5f5; }
        .card-copy-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px dashed #ccc; }
        .card-copy-header h4 { margin: 0; font-size: 14px; }
        .card-copy-header .lien-badge { padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: bold; color: white; }
        .card-copy-header .lien-badge.lien1 { background: #f9a825; }
        .card-copy-header .lien-badge.lien2 { background: #1565c0; }
        .card-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; text-align: left; font-size: 12px; }
        .card-fields .field { border-bottom: 1px dotted #ddd; padding: 3px 0; }
        .card-fields .field label { color: #666; font-size: 10px; display: block; }
        .card-fields .field .val { font-weight: 600; color: #333; }
        .card-fields .field.full { grid-column: 1 / -1; }
        .s-checklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 8px 0; font-size: 11px; }
        .s-checklist .s-item { display: flex; align-items: center; gap: 4px; }
        .s-checklist .s-item input[type="checkbox"] { width: 14px; height: 14px; }
        .card-footer { margin-top: 10px; padding-top: 8px; border-top: 1px solid #eee; font-size: 10px; color: #999; text-align: center; }
        .card-footer .flow-steps { display: flex; justify-content: space-between; font-size: 9px; color: #666; }
        .card-footer .flow-steps span { flex: 1; text-align: center; }
        .card-footer .flow-steps span::after { content: '→'; margin-left: 4px; }
        .card-footer .flow-steps span:last-child::after { content: ''; }
        .dashed-line { border-top: 2px dashed #999; margin: 16px 0 8px; position: relative; }
        .dashed-line::before { content: '✂️ Cắt theo đường nét đứt'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 10px; color: #999; background: white; padding: 0 8px; white-space: nowrap; }
        @media print {
            body * { visibility: hidden; }
            #printArea, #printArea * { visibility: visible; }
            #printArea { position: absolute; left: 0; top: 0; width: 100%; }
            .card-copy { page-break-inside: avoid; }
            .no-print { display: none !important; }
        }
        /* Print label for asset QR */
        .print-label-page { display:none; }
        @media print {
            .print-label-page { display:block !important; position:fixed; top:0; left:0; width:100%; height:100%; background:#fff; z-index:9999; }
            .print-label-content { text-align:center; padding:30px; }
            .print-label-content canvas { width:200px !important; height:200px !important; border:2px solid #333; border-radius:8px; background:#fff; }
            .print-label-content .label-title { font-size:16px; font-weight:bold; margin:10px 0 5px; color:#1a237e; }
            .print-label-content .label-code { font-size:24px; font-weight:bold; color:#d32f2f; letter-spacing:2px; }
            .print-label-content .label-line { border-top:2px dashed #999; margin:60px 0; }
            .print-label-content .label-line::before { content: '✂ Cắt theo đường nét đứt'; position:absolute; margin-top:-12px; left:50%; transform:translateX(-50%); font-size:12px; color:#999; background:#fff; padding:0 10px; }
            .print-label-content .label-info { font-size:12px; color:#666; margin-top:8px; }
        }

        .before-after-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
        .before-after-grid .img-box { text-align: center; }
        .before-after-grid .img-box .label { font-size: 11px; font-weight: 600; margin-bottom: 4px; }
        .before-after-grid .img-box img { width: 100%; border-radius: 8px; }
        .before-after-grid .img-box .placeholder { width: 100%; height: 100px; background: #f5f5f5; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #999; font-size: 11px; }

        /* Auth */
        #auth-container { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%); z-index: 2000; display: flex; justify-content: center; align-items: flex-start; padding: 40px 20px; overflow-y: auto; }
        .auth-card { background: white; border-radius: 16px; padding: 30px 24px; width: 100%; max-width: 400px; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3); margin-bottom: 40px; }
        .auth-input-group { margin-bottom: 16px; }
        .auth-input-group label { display: block; font-size: 12px; margin-bottom: 4px; color: #666; font-weight: bold; }
        .auth-input-group input, .auth-input-group select { width: 100%; padding: 12px 16px; border: 1.5px solid #e0e0e0; border-radius: 10px; font-size: 14px; outline: none; background: #f9f9f9; }
        .auth-btn { background: #1a237e; color: white; border: none; border-radius: 8px; padding: 12px; width: 100%; font-weight: bold; margin-top: 10px; cursor: pointer; }
        .auth-link { text-align: center; margin-top: 16px; font-size: 13px; color: #1565c0; cursor: pointer; }

        #locPickerOverlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.6); z-index: 3000; display: none; justify-content: center; align-items: center; padding: 15px; }
        .loc-picker-card { background: white; border-radius: 16px; width: 100%; max-width: 450px; max-height: 85vh; display: flex; flex-direction: column; overflow: hidden; }
        #userMenu { display: none; position: absolute; top: 42px; left: 50%; transform: translateX(-50%); background: white; border-radius: 12px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); width: 160px; z-index: 1001; padding: 6px 0; border: 1px solid #e0e0e0; }
        #userMenu div { padding: 10px 16px; font-size: 13px; cursor: pointer; }
        #userMenu div:hover { background: #f0f2f5; }
        .toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #333; color: white; padding: 12px 24px; border-radius: 8px; font-size: 14px; opacity: 0; transition: 0.3s; pointer-events: none; z-index: 999; }
        .toast.show { opacity: 1; }
        /* Assessment eval type cards */
        .eval-type-card-assess { border: 2px solid #e0e0e0 !important; background: white !important; }
        .eval-type-card-assess:hover { border-color: #1a237e !important; background: #f5f7fa !important; }
        .eval-type-card-assess.selected { border-color: #1a237e !important; background: #e8eaf6 !important; }
        /* Quick tag button in assessment items */
        .quick-tag-btn { display: inline-block; padding: 3px 10px; font-size: 10px; font-weight: 600; border: 1px solid #f57c00; background: #fff3e0; color: #e65100; border-radius: 6px; cursor: pointer; transition: all 0.2s; }
        .quick-tag-btn:hover { background: #ffe0b2; border-color: #e65100; transform: scale(1.02); }