/* ==========================================================================
   Sistem Permohonan Perubahan Data ERM - Main Stylesheet
   ========================================================================== */

        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        :root {
            --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            --bg: #f8fafc;
            --card: #ffffff;
            --border: #e2e8f0;
            --border-hover: #cbd5e1;
            --border-subtle: #f1f5f9;
            --text: #0f172a;
            --sub: #64748b;
            --sub-light: #94a3b8;
            
            /* Pinus Software & Ticketing System Brand Palette */
            --primary: #0891b2;
            --primary-hover: #0e7490;
            --primary-light: #ecfeff;
            --primary-border: #a5f3fc;
            --primary-grad: linear-gradient(135deg, #0284c7 0%, #0891b2 100%);
            --primary-grad-hover: linear-gradient(135deg, #0369a1 0%, #0e7490 100%);

            --pinus-red: #dc2626;
            --pinus-red-hover: #b91c1c;
            --pinus-red-light: #fff1f2;
            --pinus-red-border: #fecdd3;

            --pinus-amber: #d97706;
            --pinus-amber-light: #fffbeb;
            --pinus-amber-border: #fde68a;

            --pinus-emerald: #059669;
            --pinus-emerald-light: #ecfdf5;
            --pinus-emerald-border: #a7f3d0;
            
            --slate-dark: #0f172a;
            --slate-dark-hover: #1e293b;
            
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.05);
            --shadow-modal: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
        }
        body {
            font-family: var(--font-sans);
            background: radial-gradient(130% 90% at 50% 0%, #e0f2fe 0%, #f0fdfa 25%, #f8fafc 65%, #f1f5f9 100%);
            color: var(--text);
            min-height: 100vh;
            padding: 24px 16px;
            display: flex;
            justify-content: center;
            -webkit-font-smoothing: antialiased;
            text-rendering: optimizeLegibility;
        }
        .container { width: 100%; max-width: 1080px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

        /* Header */
        header {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(8px);
            border: 1px solid #ccfbf1;
            border-radius: var(--radius-lg);
            padding: 10px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 2px 12px -2px rgba(8, 145, 178, 0.06), var(--shadow-xs);
            gap: 12px;
            flex-wrap: wrap;
        }
        .brand-header { display: flex; align-items: center; gap: 10px; }
        .brand-logo-wrap {
            width: 38px;
            height: 38px;
            background: #ffffff;
            border: 1.5px solid #a5f3fc;
            border-radius: 11px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 3px;
            box-shadow: 0 2px 8px -2px rgba(8, 145, 178, 0.15);
        }
        .brand-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
        .brand-title { font-size: 0.9375rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em; line-height: 1.2; }
        .brand-sub { font-size: 0.6875rem; color: var(--sub); }

        .user-info { display: flex; align-items: center; gap: 10px; }
        .avatar {
            width: 32px;
            height: 32px;
            background: linear-gradient(135deg, #0f172a 0%, #0891b2 100%);
            color: #ffffff;
            border-radius: 9px;
            font-size: 0.8125rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            letter-spacing: -0.02em;
            box-shadow: 0 2px 6px rgba(8, 145, 178, 0.2);
        }
        .user-name { font-size: 0.8125rem; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; }
        .user-sub { font-size: 0.6875rem; color: var(--sub); margin-top: 1px; }
        .user-tag {
            font-size: 0.6875rem;
            font-weight: 700;
            color: #0891b2;
            background: #ecfeff;
            padding: 2px 8px;
            border-radius: 6px;
            border: 1px solid #a5f3fc;
        }
        .header-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

        /* Stat Cards (Matching ticketing-system & Pinus mascot theme) */
        .stat-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
        }
        @media (max-width: 840px) {
            .stat-grid { grid-template-columns: repeat(2, 1fr); }
        }
        .stat-card {
            background: #ffffff;
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 16px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            box-shadow: var(--shadow-xs);
            cursor: pointer;
            user-select: none;
            transition: all 0.15s ease;
        }
        .stat-card:hover {
            border-color: #38bdf8;
            transform: translateY(-2px);
            box-shadow: 0 6px 16px -2px rgba(8, 145, 178, 0.12);
        }
        .stat-title {
            font-size: 0.8125rem;
            font-weight: 500;
            color: var(--sub);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .stat-count {
            margin-top: 6px;
            font-size: 1.625rem;
            font-weight: 700;
            line-height: 1;
            color: var(--text);
            font-variant-numeric: tabular-nums;
        }
        .stat-icon {
            width: 42px;
            height: 42px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .stat-icon svg { width: 22px; height: 22px; }
        .stat-icon.sky { background: #e0f2fe; color: #0284c7; border: 1px solid #bae6fd; }
        .stat-icon.red { background: #fff1f2; color: #dc2626; border: 1px solid #fecdd3; }
        .stat-icon.amber { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
        .stat-icon.emerald { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }

        /* Segmented Tabs (ticketing-system style) */
        .tabs {
            display: inline-flex;
            gap: 3px;
            background: #f1f5f9;
            padding: 3px;
            border-radius: 12px;
            border: 1px solid var(--border);
            width: fit-content;
        }
        .tab {
            background: transparent;
            border: none;
            padding: 6px 16px;
            border-radius: 9px;
            font-size: 0.8125rem;
            font-weight: 500;
            color: var(--sub);
            cursor: pointer;
            transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
            user-select: none;
            font-family: inherit;
        }
        .tab:hover { color: var(--text); }
        .tab.active {
            background: #ffffff;
            color: #0891b2;
            font-weight: 700;
            box-shadow: 0 1px 3px rgba(8, 145, 178, 0.12);
            border: 1px solid #a5f3fc;
        }

        /* Card container */
        .card {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 16px;
            box-shadow: var(--shadow-xs);
        }

        /* Buttons */
        .btn-primary, .btn-black {
            height: 36px;
            padding: 0 15px;
            background: var(--primary-grad);
            color: #ffffff;
            border: 1px solid #0891b2;
            border-radius: 10px;
            font-size: 0.8125rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.15s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            font-family: inherit;
            box-shadow: 0 2px 6px rgba(8, 145, 178, 0.25);
        }
        .btn-primary:hover, .btn-black:hover {
            background: var(--primary-grad-hover);
            transform: translateY(-1px);
            box-shadow: 0 4px 10px rgba(8, 145, 178, 0.35);
        }
        .btn-primary:active, .btn-black:active { transform: scale(0.99); }

        .btn-blue {
            height: 36px;
            padding: 0 15px;
            background: var(--primary-grad);
            color: #ffffff;
            border: 1px solid #0891b2;
            border-radius: 10px;
            font-size: 0.8125rem;
            font-weight: 600;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            font-family: inherit;
            box-shadow: 0 2px 6px rgba(8, 145, 178, 0.25);
            transition: all 0.12s;
        }
        .btn-blue:hover { background: var(--primary-grad-hover); }

        .btn-primary-sm {
            height: 28px;
            padding: 0 10px;
            background: var(--primary-grad);
            color: #ffffff;
            border: 1px solid #0891b2;
            border-radius: 8px;
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            text-decoration: none;
            transition: all 0.12s;
            font-family: inherit;
            box-shadow: 0 1px 3px rgba(8, 145, 178, 0.2);
        }
        .btn-primary-sm:hover {
            background: var(--primary-grad-hover);
            box-shadow: 0 2px 6px rgba(8, 145, 178, 0.3);
        }

        .btn-white-sm {
            height: 28px;
            padding: 0 10px;
            background: #ffffff;
            color: var(--text);
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 0.75rem;
            font-weight: 500;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            text-decoration: none;
            transition: background 0.1s, border-color 0.1s;
            font-family: inherit;
        }
        .btn-white-sm:hover { background: #f8fafc; border-color: var(--border-hover); }

        /* Process Buttons for PINUS */
        .btn-proc-warn {
            height: 28px;
            padding: 0 10px;
            background: #d97706;
            color: #ffffff;
            border: 1px solid #b45309;
            border-radius: 8px;
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            box-shadow: 0 1px 3px rgba(217, 119, 6, 0.25);
            transition: all 0.12s;
            font-family: inherit;
        }
        .btn-proc-warn:hover { background: #b45309; }

        .btn-proc-ready {
            height: 28px;
            padding: 0 10px;
            background: var(--primary-grad);
            color: #ffffff;
            border: 1px solid #0891b2;
            border-radius: 8px;
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            box-shadow: 0 1px 4px rgba(8, 145, 178, 0.25);
            transition: all 0.12s;
            font-family: inherit;
        }
        .btn-proc-ready:hover {
            background: var(--primary-grad-hover);
            box-shadow: 0 2px 8px rgba(8, 145, 178, 0.35);
        }

        .btn-proc-disabled {
            height: 28px;
            padding: 0 10px;
            background: #f1f5f9;
            color: #94a3b8;
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 0.75rem;
            cursor: not-allowed;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-family: inherit;
        }

        .btn-proc-rejected {
            height: 28px;
            padding: 0 10px;
            background: #fee2e2;
            color: #991b1b;
            border: 1px solid #fecaca;
            border-radius: 8px;
            font-size: 0.75rem;
            font-weight: 500;
            cursor: not-allowed;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-family: inherit;
        }

        .btn-proc-done {
            height: 28px;
            padding: 0 10px;
            background: #ecfeff;
            color: #0891b2;
            border: 1px solid #a5f3fc;
            border-radius: 8px;
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            transition: all 0.12s;
            font-family: inherit;
        }
        .btn-proc-done:hover { background: #cffafe; }

        .btn-white {
            height: 36px;
            padding: 0 13px;
            background: #ffffff;
            border: 1px solid var(--border);
            border-radius: 10px;
            font-size: 0.8125rem;
            font-weight: 500;
            cursor: pointer;
            text-decoration: none;
            color: var(--text);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: all 0.12s;
            font-family: inherit;
        }
        .btn-white:hover { background: #f8fafc; border-color: var(--border-hover); }
        .btn-link {
            font-size: 0.8125rem;
            color: #dc2626;
            text-decoration: none;
            padding: 6px 10px;
            border-radius: 8px;
            font-weight: 600;
            transition: all 0.12s;
            font-family: inherit;
        }
        .btn-link:hover { background: #fff1f2; }

        /* Filter Pills */
        .filter-bar { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
        .pill {
            background: #ffffff;
            border: 1px solid var(--border);
            border-radius: 9px;
            padding: 5px 11px;
            font-size: 0.75rem;
            font-weight: 500;
            color: var(--sub);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            transition: all 0.12s;
            font-family: inherit;
        }
        .pill:hover { border-color: #a5f3fc; color: #0891b2; }
        .pill.active { background: var(--slate-dark); color: #ffffff; border-color: var(--slate-dark); font-weight: 600; box-shadow: var(--shadow-xs); }
        .pill.warn { background: #fff1f2; border-color: #fecdd3; color: #dc2626; font-weight: 600; }
        .pill.warn:hover { border-color: #f87171; color: #b91c1c; }
        .pill.warn.active { background: #dc2626; border-color: #dc2626; color: #ffffff; box-shadow: 0 1px 4px rgba(220, 38, 38, 0.3); }

        .pill.proc-pending { background: #fffbeb; border-color: #fde68a; color: #b45309; }
        .pill.proc-pending:hover { border-color: #f59e0b; color: #92400e; }
        .pill.proc-pending.active { background: #d97706; border-color: #d97706; color: #ffffff; box-shadow: 0 1px 3px rgba(217, 119, 6, 0.25); }

        .pill.proc-done { background: #ecfeff; border-color: #a5f3fc; color: #0891b2; }
        .pill.proc-done:hover { border-color: #67e8f9; color: #0e7490; }
        .pill.proc-done.active { background: #0891b2; border-color: #0891b2; color: #ffffff; box-shadow: 0 1px 3px rgba(8, 145, 178, 0.25); }

        /* Table */
        .table-wrap {
            width: 100%;
            max-width: 100%;
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            overflow-x: auto;
            overflow-y: hidden;
            -webkit-overflow-scrolling: touch;
            background: #ffffff;
            box-shadow: var(--shadow-xs);
        }
        table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
        #viewList .table-wrap table { min-width: 760px; }
        th {
            background: #f8fafc;
            color: var(--sub);
            font-size: 0.6875rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            padding: 10px 14px;
            border-bottom: 1px solid var(--border-subtle);
            text-align: left;
        }
        td {
            padding: 11px 14px;
            border-bottom: 1px solid var(--border-subtle);
            vertical-align: middle;
            color: #334155;
        }
        tr:last-child td { border-bottom: none; }
        tbody tr.p-row { cursor: pointer; transition: background 0.08s; }
        tbody tr.p-row:hover td { background: #f8fafc; }
        tbody tr.p-row.need-action {
            background: #f0fdfa;
            border-left: 3px solid #0891b2;
        }
        tbody tr.p-row.need-action:hover td {
            background: #e6fffa !important;
        }

        /* Badges (Matching ticketing-system) */
        .badge {
            display: inline-flex;
            align-items: center;
            padding: 2.5px 8px;
            border-radius: 6px;
            font-size: 0.6875rem;
            font-weight: 600;
            gap: 4px;
        }
        .badge-pend { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
        .badge-appr { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
        .badge-proc { background: #ecfeff; color: #0e7490; border: 1px solid #a5f3fc; }
        .badge-rejc { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
        .badge-canc { background: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }

        /* Forms & Inputs */
        .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
        .field { display: flex; flex-direction: column; gap: 5px; }
        label { font-size: 0.75rem; font-weight: 600; color: #475569; }
        input, select, textarea {
            width: 100%;
            height: 38px;
            padding: 0 12px;
            background: #ffffff;
            border: 1px solid #cbd5e1;
            border-radius: 10px;
            font-size: 0.8125rem;
            outline: none;
            font-family: inherit;
            color: var(--text);
            transition: border-color 0.15s, box-shadow 0.15s;
        }
        textarea {
            height: 100px;
            min-height: 100px;
            padding: 8px 12px;
            resize: vertical;
            line-height: 1.5;
        }
        #pRows td { vertical-align: top; }
        input:focus, select:focus, textarea:focus {
            border-color: #0891b2;
            box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
        }

        .banner-grid {
            display: flex;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px 24px;
            padding: 10px;
        }

        .banner-sub{
            grid-column: 1 / -1;
            padding-left: 10px  ;
            margin-top: 4px;
            border-top: 1px dashed #e2e8f0;
        }
        .prop-item { display: flex; flex-direction: column; gap: 2px; }
        .prop-k { font-size: 0.625rem; font-weight: 600; color: var(--sub); text-transform: uppercase; letter-spacing: 0.05em; }
        .prop-v { font-size: 0.8125rem; font-weight: 600; color: var(--text); }

        /* Modal Base */
        .modal-bg {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.55);
            backdrop-filter: blur(4px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 99;
            padding: 20px;
        }
        .modal-bg.open { display: flex; }
        .modal {
            background: #ffffff;
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            width: 100%;
            max-width: 660px;
            max-height: 88vh;
            overflow-y: auto;
            padding: 22px;
            display: flex;
            flex-direction: column;
            gap: 16px;
            box-shadow: var(--shadow-modal);
        }

        /* Stepper */
        .stepper {
            display: flex;
            justify-content: space-between;
            background: #f8fafc;
            border: 1px solid var(--border);
            padding: 12px 14px;
            border-radius: var(--radius-md);
            position: relative;
        }
        .step {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 4px;
            flex: 1;
            position: relative;
            z-index: 1;
        }
        .step-icon {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: #e2e8f0;
            color: var(--sub);
            font-size: 0.6875rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .step.done .step-icon { background: #059669; color: #ffffff; box-shadow: 0 1px 3px rgba(5, 150, 105, 0.3); }
        .step.active .step-icon { background: #0891b2; color: #ffffff; box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.25); }
        .step.rejc .step-icon { background: #dc2626; color: #ffffff; box-shadow: 0 1px 3px rgba(220, 38, 38, 0.3); }
        .step.skip .step-icon { border: 1px dashed #cbd5e1; background: transparent; color: #94a3b8; }
        .step-txt { font-size: 0.6875rem; color: var(--sub); font-weight: 500; }
        .step.skip .step-txt { text-decoration: line-through; color: #94a3b8; }
        .step-date { font-size: 0.625rem; font-weight: 600; color: #16a34a; margin-top: 2px; line-height: 1.25; }
        .step.rejc .step-date { color: #dc2626; }

        /* Setup Pipeline Nodes */
        .pipeline-list { display: flex; flex-direction: column; gap: 6px; background: #f8fafc; border: 1px solid var(--border); padding: 10px; border-radius: var(--radius-md); }
        .pipe-node {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 12px;
            background: #ffffff;
            border: 1px solid var(--border);
            border-radius: 10px;
            cursor: pointer;
            user-select: none;
            transition: all 0.12s;
        }
        .pipe-node:hover { border-color: var(--border-hover); }
        .pipe-node.skip { background: #f8fafc; border-style: dashed; opacity: 0.6; }
        .pipe-node-info { display: flex; align-items: center; gap: 10px; }
        .pipe-node-icon {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--slate-dark);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.6875rem;
            font-weight: 600;
        }
        .pipe-node.skip .pipe-node-icon { background: #cbd5e1; color: #64748b; }
        .pipe-node-title { font-size: 0.8125rem; font-weight: 600; color: var(--text); }
        .pipe-node.skip .pipe-node-title { text-decoration: line-through; color: var(--sub); }
        .pipe-node-label { font-size: 0.8125rem; font-weight: 500; color: var(--text); }
        .pipe-node.skip .pipe-node-label { text-decoration: line-through; color: var(--sub); }
        .btn-edit-pipe {
            background: transparent;
            border: 1px solid transparent;
            border-radius: 6px;
            padding: 3px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: var(--sub);
            cursor: pointer;
            transition: all 0.15s ease;
            flex-shrink: 0;
        }
        .btn-edit-pipe:hover {
            background: #f1f5f9;
            border-color: #cbd5e1;
            color: var(--primary);
        }
        .pipe-node-status { font-size: 0.6875rem; font-weight: 600; color: #15803d; background: #ecfdf5; border: 1px solid #a7f3d0; padding: 2px 7px; border-radius: 6px; }
        .pipe-node.skip .pipe-node-status { color: #64748b; background: #f1f5f9; border-color: #e2e8f0; }

        /* Toast */
        #toast {
            position: fixed;
            bottom: 24px;
            left: 50%;
            transform: translateX(-50%) translateY(20px);
            background: #0f172a;
            color: #ffffff;
            padding: 9px 18px;
            border-radius: 20px;
            font-size: 0.8125rem;
            font-weight: 500;
            opacity: 0;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
            z-index: 999;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
        }
        #toast.show {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }


/* ==========================================================================
   LOGIN PAGE SPECIFIC STYLES
   ========================================================================== */
body.login-page {
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}
.login-wrap { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.login-wrap .card {
    background: #ffffff;
    border: 1px solid #cffafe;
    border-radius: 18px;
    padding: 32px 28px;
    box-shadow: 0 10px 25px -5px rgba(8, 145, 178, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
}
.login-wrap .logo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
}
.login-wrap .logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 6px rgba(8, 145, 178, 0.15));
}
.login-wrap h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.login-wrap .subtitle {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 4px;
}
.login-wrap .err {
    padding: 10px 14px;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 16px;
}
.login-wrap form { display: flex; flex-direction: column; gap: 14px; }
.login-wrap .field { display: flex; flex-direction: column; gap: 5px; }
.login-wrap label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
}
.login-wrap input, .login-wrap select {
    width: 100%;
    height: 42px;
    padding: 0 13px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 0.875rem;
    outline: none;
    font-family: inherit;
    color: #0f172a;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.login-wrap input:focus, .login-wrap select:focus {
    border-color: #0891b2;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}
.login-wrap .btn-submit {
    height: 42px;
    background: var(--primary-grad);
    color: #ffffff;
    border: 1px solid #0891b2;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px -2px rgba(8, 145, 178, 0.35);
    transition: all 0.15s ease;
    margin-top: 4px;
}
.login-wrap .btn-submit:hover {
    background: var(--primary-grad-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -2px rgba(8, 145, 178, 0.45);
}
.login-wrap .btn-submit:active { transform: translateY(0); }

/* Pagination Bar */
.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 14px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
}
.page-info {
    font-size: 0.78rem;
    color: var(--sub);
}
.page-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.page-size-select {
    width: auto;
    height: 30px;
    padding: 0 8px;
    font-size: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
    cursor: pointer;
    margin-right: 6px;
}
.page-btn {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}
.page-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}
.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    font-weight: 600;
}
.page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.page-ellipsis {
    padding: 0 4px;
    color: var(--sub);
    font-size: 0.78rem;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    body {
        padding: 12px 10px;
    }
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .stat-card {
        padding: 10px 12px;
        gap: 8px;
        border-radius: 12px;
    }
    .stat-info {
        min-width: 0;
    }
    .stat-title {
        font-size: 0.7rem;
    }
    .stat-count {
        font-size: 1.2rem;
        margin-top: 3px;
    }
    .stat-icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }
    .stat-icon svg {
        width: 16px;
        height: 16px;
    }
    header {
        padding: 10px 12px;
        gap: 10px;
    }
    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .card {
        padding: 14px;
        min-width: 0;
    }
    .filter-bar {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
    }
    .tabs {
        width: 100%;
        display: flex;
    }
    .tabs .tab {
        flex: 1;
        text-align: center;
    }
    .pagination-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-controls {
        width: 100%;
        justify-content: space-between;
    }
    .modal-bg {
        padding: 10px;
    }
    .modal {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 92vh;
        overflow-y: auto;
        padding: 14px !important;
    }
    .banner-grid {
        grid-template-columns: 1fr !important;
    }
    .grid-4 {
        grid-template-columns: 1fr !important;
    }
    #viewForm .table-wrap table {
        min-width: 640px;
    }
    .stepper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        justify-content: flex-start;
    }
    .step {
        min-width: 78px;
        flex: 0 0 auto;
    }
}
