/* ============================================================
   University Maintenance System v2.0 — Mobile-First Stylesheet
   ============================================================ */

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

:root {
  --blue:        #2563EB; --blue-dark: #1E40AF; --blue-light: #EFF6FF; --blue-border: #BFDBFE;
  --green:       #16A34A; --green-light: #F0FDF4;
  --yellow:      #D97706; --yellow-light: #FFFBEB;
  --orange:      #EA580C;
  --red:         #DC2626; --red-light: #FEF2F2;
  --purple:      #7C3AED;
  --teal:        #0D9488;
  --gray-50:     #F9FAFB; --gray-100: #F3F4F6; --gray-200: #E5E7EB;
  --gray-300:    #D1D5DB; --gray-400: #9CA3AF; --gray-500: #6B7280;
  --gray-600:    #4B5563; --gray-700: #374151; --gray-800: #1F2937; --gray-900: #111827;
  --nav-bg:      #0F172A;
  --shadow-xs:   0 1px 2px rgba(0,0,0,.05);
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow:      0 4px 6px rgba(0,0,0,.07);
  --shadow-lg:   0 20px 25px rgba(0,0,0,.1);
  --radius:      12px; --radius-sm: 8px; --radius-lg: 16px; --radius-xl: 20px;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --trans:       150ms ease;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--gray-50); color: var(--gray-800);
       font-size: 14px; line-height: 1.6; -webkit-text-size-adjust: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
ul { padding-left: 1.4em; }
.mt-1 { margin-top: 8px; }

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar { background: var(--nav-bg); position: sticky; top: 0; z-index: 200;
          box-shadow: 0 2px 16px rgba(0,0,0,.4); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 16px; height: 60px;
             display: flex; align-items: center; gap: 12px; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo { font-size: 24px; line-height: 1; }
.nav-brand .nav-title { color: #fff; font-weight: 800; font-size: 14px; line-height: 1.2; }
.nav-brand .nav-sub   { color: #64748B; font-size: 10px; margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link { color: #94A3B8; padding: 7px 11px; border-radius: var(--radius-sm);
            font-size: 13px; font-weight: 500; white-space: nowrap;
            transition: background var(--trans), color var(--trans); }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.nav-logout { color: #F87171 !important; }
.nav-logout:hover { background: rgba(248,113,113,.1) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer;
              padding: 8px; margin-left: auto; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #94A3B8; border-radius: 2px; }
@media(max-width:768px) {
  .nav-brand .nav-title { font-size: 12px; }
  .nav-brand .nav-sub   { display: none; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; flex-direction: column; align-items: stretch;
               position: fixed; top: 60px; left: 0; right: 0;
               background: var(--nav-bg); border-top: 1px solid rgba(255,255,255,.06);
               padding: 12px 16px; gap: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.4);
               max-height: calc(100vh - 60px); overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 14px; font-size: 14px; border-radius: var(--radius); }
}

/* ── LAYOUT ─────────────────────────────────────────────── */
.page-wrap { min-height: calc(100vh - 60px); display: flex; flex-direction: column; }
.container { max-width: 1100px; margin: 0 auto; padding: 20px 16px; flex: 1; }

/* ── FLASH ──────────────────────────────────────────────── */
.flash-msg { display: flex; align-items: center; gap: 10px; padding: 12px 16px;
             font-size: 13px; font-weight: 500; }
.flash-success { background: var(--green-light); color: var(--green); border-bottom: 1px solid #BBF7D0; }
.flash-error   { background: var(--red-light);   color: var(--red);   border-bottom: 1px solid #FECACA; }
.flash-info    { background: var(--blue-light);  color: var(--blue);  border-bottom: 1px solid var(--blue-border); }
.flash-close { margin-left: auto; background: none; border: none; cursor: pointer; font-size: 16px; opacity: .6; }
.flash-close:hover { opacity: 1; }

/* ── PAGE HEADER ─────────────────────────────────────────── */
.page-header { display: flex; align-items: flex-start; justify-content: space-between;
               gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.page-header h2 { font-size: 20px; font-weight: 800; color: var(--gray-900); }
.page-header .text-muted { font-size: 13px; color: var(--gray-400); margin-top: 2px; }
.header-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media(max-width:480px) { .page-header { flex-direction: column; } }

/* ── CARDS ──────────────────────────────────────────────── */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm);
        margin-bottom: 20px; overflow: hidden; }
.card-header { display: flex; align-items: center; justify-content: space-between;
               padding: 14px 18px; border-bottom: 1px solid var(--gray-100); }
.card-header h3 { font-size: 14px; font-weight: 700; color: var(--gray-800); }
.card-body { padding: 18px; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
       padding: 9px 18px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
       border: none; cursor: pointer; transition: all var(--trans); text-decoration: none;
       white-space: nowrap; line-height: 1.4; }
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 2px 4px rgba(37,99,235,.3); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: #fff; color: var(--gray-700); border: 1.5px solid var(--gray-200); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { background: transparent; color: var(--gray-500); }
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-700); }
.btn-white { background: #fff; color: var(--blue); font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.btn-white:hover { background: var(--blue-light); }
.btn-block { width: 100%; }
.btn-lg { padding: 12px 24px; font-size: 14px; border-radius: var(--radius); }
.btn-sm { padding: 5px 11px; font-size: 12px; }

/* ── ALERTS ─────────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 13px; }
.alert-success { background: var(--green-light); color: var(--green); border: 1px solid #BBF7D0; }
.alert-error   { background: var(--red-light);   color: var(--red);   border: 1px solid #FECACA; }
.alert-info    { background: var(--blue-light);  color: var(--blue);  border: 1px solid var(--blue-border); }
.alert ul { margin-top: 6px; padding-left: 18px; }

/* ── BADGES ─────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 4px;
         padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 600; }
.badge-lg { font-size: 13px; padding: 5px 14px; }
.status-submitted  { background: #DBEAFE; color: #1E40AF; }
.status-on_process { background: #FEF3C7; color: #92400E; }
.status-escalated  { background: #FEE2E2; color: #991B1B; }
.status-resolved   { background: #D1FAE5; color: #065F46; }
.status-closed     { background: #F3F4F6; color: var(--gray-500); }
.priority-low      { background: #F3F4F6; color: var(--gray-600); }
.priority-medium   { background: #DBEAFE; color: var(--blue-dark); }
.priority-high     { background: #FED7AA; color: #92400E; }
.priority-critical { background: #FEE2E2; color: #991B1B; font-weight: 700; }
.token-badge { font-family: monospace; font-weight: 800; font-size: 12px;
               background: var(--blue-light); color: var(--blue-dark);
               padding: 3px 10px; border-radius: 6px; letter-spacing: .5px; border: 1px solid var(--blue-border); }
.token-badge-lg { font-size: 17px; padding: 5px 14px; }
.lock-chip { background: #F3F4F6; color: var(--gray-500); padding: 3px 10px;
             border-radius: 99px; font-size: 11px; }

/* ── STATS GRID ─────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 24px; }
@media(min-width:600px)  { .stats-grid { grid-template-columns: repeat(4,1fr); } }
@media(min-width:900px)  { .stats-grid { grid-template-columns: repeat(6,1fr); } }
@media(min-width:1100px) { .stats-grid { grid-template-columns: repeat(8,1fr); } }
.stat-card { background: #fff; border-radius: var(--radius); padding: 14px 10px;
             box-shadow: var(--shadow-xs); text-align: center; border-top: 3px solid var(--gray-200); }
.c-gray   { border-color: var(--gray-400); }
.c-blue   { border-color: var(--blue); }
.c-yellow { border-color: var(--yellow); }
.c-orange { border-color: var(--orange); }
.c-green  { border-color: var(--green); }
.c-red    { border-color: var(--red);    background: #FFFAFA; }
.c-purple { border-color: var(--purple); }
.c-teal   { border-color: var(--teal); }
.stat-num   { font-size: 26px; font-weight: 900; color: var(--gray-900); line-height: 1; }
.stat-label { font-size: 10px; color: var(--gray-400); font-weight: 600;
              text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }

/* ── ACTION BANNER ──────────────────────────────────────── */
.action-banner { background: linear-gradient(135deg,#1E3A8A,#2563EB); border-radius: var(--radius-lg);
                 padding: 20px 24px; display: flex; align-items: center; justify-content: space-between;
                 gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.action-banner h3 { color: #fff; font-size: 16px; font-weight: 700; }
.action-banner p  { color: #93C5FD; font-size: 13px; margin-top: 3px; }

/* ── REQUEST LIST ───────────────────────────────────────── */
.request-list { display: flex; flex-direction: column; }
.req-item { padding: 14px 18px; border-bottom: 1px solid var(--gray-100);
            transition: background var(--trans); }
.req-item:last-child { border-bottom: none; }
.req-item:hover { background: var(--gray-50); }
.req-critical { border-left: 4px solid var(--red) !important; background: #FFFAFA; }
.req-item { display: flex; align-items: flex-start; gap: 10px; }
.req-check { padding-top: 4px; flex-shrink: 0; }
.req-content { flex: 1; min-width: 0; }
.req-meta   { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.req-body   { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.req-cat-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.req-desc   { color: var(--gray-500); font-size: 12px; margin-top: 3px; line-height: 1.5; }
.req-footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.location-tag { font-size: 11px; color: var(--gray-400); display: block; margin-top: 2px; }
.due-label  { font-size: 12px; font-weight: 600; }
@media(max-width:480px) {
  .req-footer { gap: 6px; }
  .req-footer .btn { font-size: 11px; padding: 4px 9px; }
}

/* ── FORMS ──────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.req { color: var(--red); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="search"], textarea, select {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: 14px; font-family: var(--font); color: var(--gray-800); background: #fff;
  transition: border var(--trans), box-shadow var(--trans); -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
textarea { resize: vertical; min-height: 110px; }
.char-count { text-align: right; font-size: 11px; color: var(--gray-400); margin-top: 4px; }
.field-error { font-size: 12px; color: var(--red); margin-top: 6px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px;
                padding-top: 16px; border-top: 1px solid var(--gray-100); }
@media(max-width:480px) {
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; }
}

/* ── STEPS BAR ──────────────────────────────────────────── */
.steps-bar { display: flex; background: #fff; border-radius: var(--radius);
             box-shadow: var(--shadow-xs); margin-bottom: 20px; overflow: hidden; }
.step-item { flex: 1; padding: 12px 8px; text-align: center; font-size: 12px; font-weight: 600;
             color: var(--gray-400); display: flex; align-items: center; justify-content: center;
             gap: 6px; border-bottom: 3px solid transparent; transition: all var(--trans); }
.step-num { width: 22px; height: 22px; border-radius: 50%; background: var(--gray-200);
            color: var(--gray-500); display: inline-flex; align-items: center; justify-content: center;
            font-size: 11px; font-weight: 800; flex-shrink: 0; }
.step-lbl { display: none; }
@media(min-width:400px) { .step-lbl { display: inline; } }
.step-active { color: var(--blue); border-bottom-color: var(--blue); }
.step-active .step-num { background: var(--blue); color: #fff; }
.step-done   { color: var(--green); border-bottom-color: var(--green); }
.step-done .step-num   { background: var(--green); color: #fff; }
.step-sep { width: 1px; background: var(--gray-100); }

/* ── CATEGORY GRID ──────────────────────────────────────── */
.category-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
@media(min-width:500px) { .category-grid { grid-template-columns: repeat(6,1fr); } }
.cat-option { border: 2px solid var(--gray-200); border-radius: var(--radius-sm);
              padding: 14px 6px; text-align: center; cursor: pointer;
              transition: all var(--trans); background: #fff; user-select: none; }
.cat-option:hover { border-color: var(--blue); background: var(--blue-light); transform: translateY(-1px); }
.cat-option.selected { border-color: var(--blue); background: var(--blue-light);
                        box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.cat-option-icon  { font-size: 22px; margin-bottom: 5px; }
.cat-option-label { font-size: 11px; font-weight: 600; color: var(--gray-700); line-height: 1.3; }

/* ── SUB GRID ───────────────────────────────────────────── */
.sub-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
@media(min-width:500px) { .sub-grid { grid-template-columns: repeat(3,1fr); } }
.sub-option { display: flex; align-items: center; gap: 8px; padding: 11px 14px;
              border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
              cursor: pointer; font-size: 13px; font-weight: 500; transition: all var(--trans);
              user-select: none; }
.sub-option:hover { border-color: var(--blue); background: var(--blue-light); }
.sub-option.sub-selected { border-color: var(--blue); background: var(--blue);
                            color: #fff; }
.sub-option input[type="radio"] { display: none; }

/* ── PRIORITY SELECTOR ──────────────────────────────────── */
.priority-selector { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
@media(min-width:480px) { .priority-selector { grid-template-columns: repeat(4,1fr); } }
.priority-option { display: flex; align-items: center; justify-content: center; gap: 6px;
                   padding: 11px 8px; border: 2px solid transparent; border-radius: var(--radius-sm);
                   cursor: pointer; font-size: 12px; font-weight: 700; transition: all var(--trans);
                   user-select: none; }
.priority-option input { display: none; }
.priority-option.selected { box-shadow: 0 0 0 3px rgba(0,0,0,.1); }
.priority-low      { background: #F3F4F6; color: var(--gray-600); border-color: var(--gray-200); }
.priority-medium   { background: #DBEAFE; color: var(--blue-dark); border-color: var(--blue-border); }
.priority-high     { background: #FED7AA; color: #92400E; border-color: #FDBA74; }
.priority-critical { background: #FEE2E2; color: #991B1B; border-color: #FECACA; }

/* ── LOCATION GRID ──────────────────────────────────────── */
.location-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media(min-width:500px) { .location-grid { grid-template-columns: repeat(3,1fr); } }

/* ── UPLOAD AREA ─────────────────────────────────────────── */
.upload-area { border: 2px dashed var(--gray-300); border-radius: var(--radius);
               padding: 24px; text-align: center; cursor: pointer;
               transition: all var(--trans); background: var(--gray-50); }
.upload-area:hover { border-color: var(--blue); background: var(--blue-light); }
.upload-icon { font-size: 28px; margin-bottom: 8px; }

/* ── SUCCESS SCREEN ─────────────────────────────────────── */
.success-screen { display: flex; align-items: center; justify-content: center; padding: 24px 0; }
.success-card { background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
                padding: 36px 28px; max-width: 480px; width: 100%; text-align: center; }
.success-anim { font-size: 56px; margin-bottom: 12px; animation: pop .4s ease; }
@keyframes pop { 0%{transform:scale(.5);opacity:0} 80%{transform:scale(1.1)} 100%{transform:scale(1);opacity:1} }
.success-card h2 { font-size: 22px; font-weight: 800; color: var(--green); margin-bottom: 4px; }
.success-sub { color: var(--gray-400); font-size: 13px; margin-bottom: 24px; }
.token-box { background: var(--blue-light); border: 2px solid var(--blue);
             border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.token-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px;
               color: var(--gray-400); margin-bottom: 8px; }
.token-value { font-family: monospace; font-size: 26px; font-weight: 900;
               color: var(--blue-dark); letter-spacing: 2px; margin-bottom: 10px; }
.token-hint  { font-size: 11px; color: var(--gray-400); margin-top: 8px; }
.lock-warning { display: flex; align-items: flex-start; gap: 12px;
                background: var(--red-light); border: 1px solid #FECACA;
                border-radius: var(--radius-sm); padding: 14px; margin-bottom: 20px; text-align: left; }
.lock-warning-icon { font-size: 22px; flex-shrink: 0; }
.lock-warning strong { display: block; color: var(--red); font-size: 13px; margin-bottom: 3px; }
.lock-warning p { font-size: 12px; color: #991B1B; }
.success-actions { display: flex; flex-direction: column; gap: 8px; }

/* ── FILTER BAR ─────────────────────────────────────────── */
.filter-bar { background: #fff; border-radius: var(--radius); padding: 12px 16px;
              box-shadow: var(--shadow-xs); margin-bottom: 16px;
              display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; }
.filter-form input, .filter-form select { width: auto; padding: 8px 12px; font-size: 13px; flex: 1; min-width: 90px; }
.result-count { font-size: 12px; color: var(--gray-400); font-weight: 600; white-space: nowrap; }
@media(max-width:600px) {
  .filter-form input, .filter-form select { width: 100%; flex: none; }
}

/* ── BULK BAR ───────────────────────────────────────────── */
.bulk-bar { background: var(--nav-bg); color: #fff; padding: 12px 16px;
            border-radius: var(--radius-sm); margin-bottom: 12px;
            display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.bulk-bar select, .bulk-bar input[type="text"] {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; padding: 6px 10px; border-radius: 6px; font-size: 12px; width: auto; }
.bulk-bar select option { background: var(--nav-bg); }

/* ── STATUS SELECTOR (update page) ─────────────────────── */
.status-selector { display: flex; flex-direction: column; gap: 8px; }
.status-option { display: flex; align-items: center; gap: 10px;
                 padding: 12px 14px; border: 2px solid var(--gray-200);
                 border-radius: var(--radius-sm); cursor: pointer; font-size: 13px;
                 font-weight: 500; transition: all var(--trans); user-select: none; }
.status-option:hover:not(.status-disabled) { border-color: var(--blue); background: var(--blue-light); }
.status-option input { accent-color: var(--blue); flex-shrink: 0; }
.status-current { border-color: var(--blue); background: var(--blue-light); font-weight: 700; }
.status-disabled { opacity: .4; cursor: not-allowed; }
.cur-tag { margin-left: auto; font-size: 10px; background: var(--blue); color: #fff;
           padding: 2px 8px; border-radius: 99px; }
.dis-tag { margin-left: auto; font-size: 10px; background: var(--gray-200); color: var(--gray-500);
           padding: 2px 8px; border-radius: 99px; }

/* ── DETAIL PAGE ─────────────────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media(min-width:900px) { .detail-grid { grid-template-columns: 1fr 320px; } }
.detail-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
                 padding: 16px 18px; background: var(--gray-50); border-bottom: 1px solid var(--gray-100); }
.detail-table { width: 100%; border-collapse: collapse; }
.detail-table td { padding: 10px 18px; border-bottom: 1px solid var(--gray-50); font-size: 13px; }
.detail-table td:first-child { color: var(--gray-400); width: 120px; font-weight: 500; }
.desc-box { padding: 14px 18px; }
.desc-box label { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--gray-400); margin-bottom: 6px; }
.desc-box p { font-size: 13px; line-height: 1.7; color: var(--gray-700); }
.attach-section { padding: 0 18px 16px; }
.attach-section label { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--gray-400); margin-bottom: 8px; display: block; }
.update-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media(min-width:700px) { .update-grid { grid-template-columns: 1fr 1fr; } }

/* ── PHOTO GRID ─────────────────────────────────────────── */
.photo-grid { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.photo-grid a { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.photo-grid img { width: 96px; height: 76px; object-fit: cover; border-radius: 6px; border: 1px solid var(--gray-200); }
.photo-grid span { font-size: 10px; color: var(--gray-400); }

/* ── TIMELINE ───────────────────────────────────────────── */
.timeline { padding: 16px 18px; }
.tl-item { display: flex; gap: 12px; position: relative; padding-bottom: 20px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content:''; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--gray-100); }
.tl-item:last-child::before { display: none; }
.tl-dot  { width: 16px; height: 16px; border-radius: 50%; background: var(--blue); border: 2px solid #fff;
           box-shadow: 0 0 0 2px var(--blue); flex-shrink: 0; margin-top: 2px; }
.tl-body { flex: 1; }
.tl-body strong { font-size: 13px; }
.tl-role { font-size: 10px; background: var(--gray-100); color: var(--gray-600); padding: 1px 7px; border-radius: 99px; margin-left: 6px; }
.tl-action { font-size: 12px; color: var(--gray-600); margin-top: 3px; }
.tl-note   { font-size: 12px; font-style: italic; color: var(--gray-400); margin-top: 2px; }
.tl-time   { font-size: 11px; color: var(--gray-400); margin-top: 4px; display: block; }
.val-old { background: #FEE2E2; color: #991B1B; padding: 1px 6px; border-radius: 4px; }
.val-new { background: #D1FAE5; color: #065F46; padding: 1px 6px; border-radius: 4px; }

/* ── ADMIN GRID ─────────────────────────────────────────── */
.admin-two-col { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media(min-width:900px) { .admin-two-col { grid-template-columns: 1fr 1fr; } }
.admin-span2 { grid-column: 1 / -1; }

/* ── BREAKDOWN BARS ─────────────────────────────────────── */
.breakdown-list { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.breakdown-item { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.breakdown-label { width: 140px; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis;
                   white-space: nowrap; color: var(--gray-700); font-weight: 500; }
.breakdown-bar-wrap { flex: 1; height: 8px; background: var(--gray-100); border-radius: 99px; overflow: hidden; min-width: 40px; }
.breakdown-bar { height: 100%; background: var(--blue); border-radius: 99px; transition: width .6s ease; }
.breakdown-bar-purple { background: var(--purple); }
.breakdown-num { font-size: 11px; font-weight: 700; color: var(--gray-600); width: 70px; text-align: right; flex-shrink: 0; }

/* ── STAR RATING ─────────────────────────────────────────── */
.star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin-bottom: 12px; }
.star-rating input { display: none; }
.star-rating label { font-size: 28px; color: var(--gray-200); cursor: pointer; transition: color .1s; }
.star-rating input:checked ~ label, .star-rating label:hover, .star-rating label:hover ~ label { color: #F59E0B; }
.feedback-given { padding: 12px; }
.feedback-given .stars { font-size: 22px; margin-bottom: 6px; }

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 52px 20px; color: var(--gray-400); }
.empty-icon { font-size: 44px; margin-bottom: 12px; }

/* ── HELPERS ─────────────────────────────────────────────── */
.text-muted { color: var(--gray-400) !important; }
.text-sm    { font-size: 12px; }

/* ── LOGIN ──────────────────────────────────────────────── */
.login-body { background: linear-gradient(135deg,#0F172A 0%,#1E3A8A 60%,#0F172A 100%); min-height: 100vh; }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { background: rgba(255,255,255,.08); backdrop-filter: blur(24px);
              border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-xl);
              padding: 36px 28px; width: 100%; max-width: 420px;
              box-shadow: 0 24px 48px rgba(0,0,0,.4); }
.login-header { text-align: center; margin-bottom: 28px; }
.login-logo-icon { font-size: 48px; margin-bottom: 10px; }
.login-header h1 { color: #fff; font-size: 18px; font-weight: 800; line-height: 1.3; }
.login-header p  { color: #93C5FD; font-size: 13px; margin-top: 4px; }
.login-card .form-group label { color: #CBD5E1; }
.login-card input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff; }
.login-card input::placeholder { color: rgba(255,255,255,.3); }
.login-card input:focus { border-color: #60A5FA; background: rgba(255,255,255,.12);
                           box-shadow: 0 0 0 3px rgba(96,165,250,.2); }
.pwd-wrap { position: relative; }
.pwd-wrap input { padding-right: 44px; }
.pwd-eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
           background: none; border: none; cursor: pointer; color: rgba(255,255,255,.4);
           padding: 4px; display: flex; align-items: center; }
.pwd-eye:hover { color: #fff; }
.login-demo { margin-top: 20px; padding: 14px; background: rgba(255,255,255,.05);
              border-radius: var(--radius-sm); font-size: 12px; color: #93C5FD; text-align: center;
              border: 1px dashed rgba(255,255,255,.1); line-height: 1.8; }
.demo-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; }
.demo-row span { color: #64748B; }
.demo-row code { background: rgba(255,255,255,.1); padding: 2px 7px; border-radius: 4px;
                 font-size: 12px; color: #E2E8F0; }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer { text-align: center; padding: 20px; color: var(--gray-400); font-size: 12px;
               border-top: 1px solid var(--gray-200); background: #fff; }

/* ── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 99px; }

/* ── PRINT ──────────────────────────────────────────────── */
@media print {
  .navbar,.site-footer,.btn,.filter-bar,.bulk-bar,.steps-bar { display: none !important; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

/* ============================================================
   UPDATES — Category System, Dashboard Filters, Alignment Fix
   ============================================================ */

/* ── Stat cards as clickable filter buttons ─────────────── */
.stat-filter-btn {
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
  user-select: none;
  position: relative;
}
.stat-filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.stat-filter-btn.active {
  box-shadow: 0 0 0 3px rgba(37,99,235,.3), 0 4px 10px rgba(0,0,0,.12);
  transform: translateY(-1px);
}
.stat-filter-btn.active::after {
  content: '▼';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  color: var(--blue);
}
.c-blue.stat-filter-btn.active   { box-shadow: 0 0 0 3px rgba(37,99,235,.4); }
.c-green.stat-filter-btn.active  { box-shadow: 0 0 0 3px rgba(22,163,74,.4); }
.c-red.stat-filter-btn.active    { box-shadow: 0 0 0 3px rgba(220,38,38,.4); }
.c-orange.stat-filter-btn.active { box-shadow: 0 0 0 3px rgba(234,88,12,.4); }
.c-yellow.stat-filter-btn.active { box-shadow: 0 0 0 3px rgba(217,119,6,.4); }
.c-purple.stat-filter-btn.active { box-shadow: 0 0 0 3px rgba(124,58,237,.4); }
.c-teal.stat-filter-btn.active   { box-shadow: 0 0 0 3px rgba(13,148,136,.4); }

/* ── Department filter bar ───────────────────────────────── */
.dept-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
  flex-wrap: wrap;
}
.dept-filter-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.dept-filter-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.dept-btn {
  padding: 5px 13px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid var(--gray-200);
  background: #fff;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 150ms ease;
  white-space: nowrap;
}
.dept-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}
.dept-btn.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* ── Filter status label bar ─────────────────────────────── */
.filter-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--blue-dark);
  font-weight: 500;
}

/* ── req-footer flex fix (button alignment) ──────────────── */
.req-footer {
  display: flex !important;
  align-items: center !important;
  gap: 8px;
  flex-wrap: wrap;
}
/* Push action buttons to the far right */
.req-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.req-actions .btn {
  white-space: nowrap;
}

/* ── req-item content layout fix ─────────────────────────── */
.req-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--trans);
}
.req-item:last-child  { border-bottom: none; }
.req-item:hover       { background: var(--gray-50); }
.req-content          { flex: 1; min-width: 0; }

/* ── "Others" custom input box ───────────────────────────── */
.others-wrap {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--blue-light);
  border: 1.5px dashed var(--blue-border);
  border-radius: var(--radius-sm);
  animation: fadeIn 200ms ease;
}
.others-wrap label {
  color: var(--blue-dark);
  font-weight: 600;
}
.others-wrap input[type="text"] {
  border-color: var(--blue-border);
  background: #fff;
}
.others-wrap input[type="text"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Filter bar — add category select ────────────────────── */
.filter-form select,
.filter-form input[type="text"] {
  flex: 1;
  min-width: 120px;
}

/* ============================================================
   v3.0 ENTERPRISE UPGRADES — Button borders, PWA, RBAC UI
   ============================================================ */

/* ── 2px Attractive Button Borders ──────────────────────────── */
.btn-primary {
  border: 2px solid #3B82F6;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 4px rgba(37,99,235,.25);
  transition: all 160ms ease;
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: #2563EB;
  box-shadow: 0 4px 12px rgba(37,99,235,.35);
  transform: translateY(-1px);
}
.btn-outline {
  background: #fff;
  color: var(--gray-700);
  border: 2px solid var(--gray-300);
  transition: all 160ms ease;
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--gray-500);
  border: 2px solid transparent;
}
.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--gray-700);
  border-color: var(--gray-200);
}
.btn-white {
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  border: 2px solid rgba(255,255,255,.6);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.btn-white:hover {
  background: var(--blue-light);
  border-color: #fff;
}
/* Danger/red button variant */
.btn-danger {
  background: var(--red);
  color: #fff;
  border: 2px solid #EF4444;
  box-shadow: 0 2px 4px rgba(220,38,38,.25);
}
.btn-danger:hover {
  background: #B91C1C;
  border-color: var(--red);
  transform: translateY(-1px);
}
/* Success/green button variant */
.btn-success {
  background: var(--green);
  color: #fff;
  border: 2px solid #22C55E;
  box-shadow: 0 2px 4px rgba(22,163,74,.25);
}
.btn-success:hover {
  background: #15803D;
  border-color: var(--green);
}

/* ── AI Suggestion Banner ────────────────────────────────────── */
.ai-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg,#4F46E5,#7C3AED);
  color: #fff; padding: 3px 10px; border-radius: 99px;
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
}

/* ── PWA Install Banner ──────────────────────────────────────── */
.pwa-install-banner {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg,#1E3A8A,#2563EB);
  color: #fff; padding: 10px 16px;
  font-size: 13px; border-bottom: 2px solid rgba(255,255,255,.1);
  flex-wrap: wrap;
}
.pwa-install-banner strong { font-weight: 700; }
.pwa-install-banner .btn-sm { border-color: rgba(255,255,255,.5); }

/* ── Role badge color overrides ─────────────────────────────── */
.role-admin       { background:#EDE9FE; color:#5B21B6; }
.role-viewer      { background:#D1FAE5; color:#065F46; }
.role-dbctrl      { background:#CCFBF1; color:#134E4A; }
.role-asst-admin  { background:#FEF3C7; color:#92400E; }
.role-user        { background:#DBEAFE; color:#1E40AF; }

/* ── Audit log & history table ──────────────────────────────── */
.log-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.log-table th { padding: 8px 12px; text-align: left; background: var(--gray-50); font-weight: 700; color: var(--gray-500); text-transform: uppercase; font-size: 10px; border-bottom: 2px solid var(--gray-100); }
.log-table td { padding: 8px 12px; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); }
.log-table tr:hover td { background: var(--gray-50); }

/* ── QR sticker layout ──────────────────────────────────────── */
.qr-card { border: 2px dashed var(--gray-300); border-radius: var(--radius); padding: 20px; text-align: center; }
.qr-card img { max-width: 160px; border: 2px solid var(--gray-200); border-radius: 8px; padding: 8px; }

/* ── Modal overlay ──────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-box { background: #fff; border-radius: 16px; padding: 28px; max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 48px rgba(0,0,0,.3); }

/* ── Analytics number cards ─────────────────────────────────── */
.kpi-card { background: #fff; border-radius: var(--radius); padding: 20px 16px; text-align: center; box-shadow: var(--shadow-sm); border-top: 3px solid var(--gray-300); position: relative; overflow: hidden; }
.kpi-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; }

/* ── Responsive table wrapper ───────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Professional Footer ──────────────────────────────────── */
.site-footer {
  background: var(--gray-900, #111827);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 14px 24px;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 12px;
}
.footer-brand {
  font-weight: 700;
  color: #F1F5F9;
  letter-spacing: .02em;
}
.footer-copy {
  color: #94A3B8;
}
.footer-link {
  color: #60A5FA;
  text-decoration: none;
  font-weight: 600;
}
.footer-link:hover { color: #93C5FD; text-decoration: underline; }
.footer-sep { color: #334155; font-size: 14px; }
.footer-ver { color: #475569; font-family: monospace; font-size: 11px; }

/* ── Nav User Profile Dropdown ───────────────────────────────── */
.nav-user-menu {
  position: relative;
  display: inline-block;
}
.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  padding: 5px 12px 5px 5px;
  cursor: pointer;
  color: #E2E8F0;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s;
  white-space: nowrap;
}
.nav-user-btn:hover { background: rgba(255,255,255,.15); }
.nav-user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-user-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; }

.nav-user-dropdown {
  display: none;
  position: absolute;
  right: 0; top: calc(100% + 8px);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  z-index: 999;
  overflow: hidden;
}
.nav-user-dropdown.open { display: block; }
.nav-user-info {
  padding: 14px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nav-user-info strong { font-size: 13px; font-weight: 800; color: var(--gray-900); }
.nav-user-info span   { font-size: 11px; color: var(--gray-500); }
.nav-dropdown-divider { height: 1px; background: var(--gray-100); margin: 0; }
.nav-dropdown-item {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: background .12s;
}
.nav-dropdown-item:hover { background: var(--gray-50); color: var(--gray-900); }
.nav-dropdown-logout { color: var(--red) !important; font-weight: 700; }
.nav-dropdown-logout:hover { background: #FEF2F2 !important; }

/* Require asterisk */
.req { color: var(--red); margin-left: 2px; }

/* ═══════════════════════════════════════════════════════════
   v3.1 ADDITIONS — Technician assignment + mobile responsive
   ═══════════════════════════════════════════════════════════ */

/* Token badge large */
.token-badge-lg { font-size:14px; padding:5px 14px; }

/* Technician assignment */
.tech-assign-label { display:flex; align-items:center; gap:6px; flex-wrap:wrap; font-weight:600; }
.tech-count-badge { font-size:10px; font-weight:700; padding:2px 8px; border-radius:99px;
  background:#D1FAE5; color:#065F46; }
.tech-empty-box { display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  padding:12px 16px; background:#FFF7ED; border:1px solid #FED7AA; border-radius:10px;
  font-size:13px; color:#92400E; }
.tech-select { width:100%; }
.form-hint { display:block; font-size:11px; color:var(--gray-400); margin-top:4px; }
.form-hint a { color:var(--blue); }

/* Edit request page */
.priority-row { display:flex; gap:10px; flex-wrap:wrap; }
.priority-opt { display:flex; align-items:center; gap:8px; padding:8px 16px;
  border:1.5px solid var(--gray-200); border-radius:8px; cursor:pointer; transition:all .15s; }
.priority-opt:hover { border-color:var(--blue); }
.priority-opt.selected { border-color:var(--blue); background:var(--blue-light); }
.priority-opt input { display:none; }

/* ── FULL MOBILE RESPONSIVENESS ──────────────────────────── */

/* Navbar mobile */
@media(max-width:768px){
  .navbar { position:sticky; top:0; z-index:200; }
  .nav-inner { padding:0 12px; height:56px; }
  .nav-brand { gap:8px; }
  .nav-title { font-size:13px; }
  .nav-sub { display:none; }
  .nav-toggle { display:flex; flex-direction:column; gap:5px; cursor:pointer;
    background:none; border:none; padding:8px; }
  .nav-toggle span { display:block; width:22px; height:2px; background:#fff; border-radius:2px;
    transition:all .25s; }
  .nav-toggle[aria-expanded=true] span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded=true] span:nth-child(2) { opacity:0; }
  .nav-toggle[aria-expanded=true] span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
  .nav-links { display:none; flex-direction:column; position:absolute; top:56px; left:0; right:0;
    background:#0F172A; padding:8px 0 16px; border-bottom:1px solid rgba(255,255,255,.08); z-index:199; }
  .nav-links.open { display:flex; }
  .nav-link { padding:12px 20px; border-radius:0; font-size:14px; border-bottom:none; }
  .nav-link:hover { background:rgba(255,255,255,.06); }
  .nav-user-menu { padding:8px 12px; border-top:1px solid rgba(255,255,255,.08); margin-top:4px; }
  .nav-user-btn { width:100%; justify-content:flex-start; }
  .nav-user-dropdown { position:static; box-shadow:none; border:1px solid rgba(255,255,255,.1);
    background:#1E293B; margin-top:8px; border-radius:10px; }
  .nav-dropdown-item { color:#CBD5E1; }
  .nav-dropdown-item:hover { background:rgba(255,255,255,.08); color:#fff; }
}

/* Container & page padding */
@media(max-width:640px){
  .container { padding:12px; }
  .page-header { flex-direction:column; align-items:flex-start; gap:12px; margin-bottom:16px; }
  .page-header h2 { font-size:20px; }
  .header-actions { display:flex; flex-wrap:wrap; gap:6px; width:100%; }
  .header-actions .btn { flex:1; text-align:center; min-width:0; }
}

/* Stat cards mobile */
@media(max-width:640px){
  .stats-grid { grid-template-columns:repeat(3,1fr); gap:8px; }
  .stat-card { padding:12px 8px; }
  .stat-num { font-size:22px; }
  .stat-label { font-size:9px; }
}
@media(max-width:380px){
  .stats-grid { grid-template-columns:repeat(2,1fr); }
}

/* Cards mobile */
@media(max-width:640px){
  .card { border-radius:12px; margin-bottom:12px; }
  .card-header { padding:12px 14px; flex-wrap:wrap; gap:8px; }
  .card-body { padding:14px; }
  .update-grid { grid-template-columns:1fr; gap:12px; }
  .detail-table td { padding:8px 10px; font-size:12px; }
}

/* Request list mobile */
@media(max-width:640px){
  .req-item { padding:12px; }
  .req-meta { flex-wrap:wrap; gap:4px; }
  .token-badge { font-size:10px; padding:2px 7px; }
  .req-body { gap:8px; }
  .req-cat-icon { font-size:20px; }
  .req-footer { flex-wrap:wrap; gap:6px; }
  .req-actions { margin-left:0; width:100%; }
  .req-actions .btn { width:100%; }
}

/* Forms mobile */
@media(max-width:640px){
  .form-group { margin-bottom:14px; }
  .form-group label { font-size:12px; }
  .form-group input, .form-group select, .form-group textarea { font-size:14px; }
  .filter-bar { padding:10px 12px; }
  .filter-form { flex-direction:column; gap:8px; }
  .filter-form input, .filter-form select { width:100%; }
  .filter-form .btn { width:100%; }
  .form-actions { flex-direction:column; gap:8px; }
  .form-actions .btn { width:100%; text-align:center; }
}

/* Table mobile scroll */
@media(max-width:768px){
  .table-responsive, .um-table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
  table { min-width:560px; }
}

/* Action banner mobile */
@media(max-width:640px){
  .action-banner { flex-direction:column; gap:12px; padding:16px; }
  .action-banner h3 { font-size:15px; }
  .action-banner p { font-size:12px; }
  .action-banner .btn { width:100%; text-align:center; }
}

/* Status selector mobile */
@media(max-width:580px){
  .status-selector { grid-template-columns:1fr 1fr; }
  .status-option { padding:8px 10px; font-size:12px; }
}

/* Admin dashboard grid mobile */
@media(max-width:640px){
  .dept-filter-bar { padding:10px 12px; gap:8px; }
  .dept-filter-btns { gap:4px; }
  .dept-btn { font-size:11px; padding:4px 10px; }
}

/* PWA install banner */
@media(max-width:640px){
  .pwa-banner { flex-direction:column; gap:8px; padding:10px 14px; text-align:center; }
  .pwa-banner .btn { width:100%; }
}

/* Viewer dashboard mobile */
@media(max-width:640px){
  canvas { max-width:100% !important; height:auto !important; }
}

/* Flash message mobile */
@media(max-width:640px){
  .flash-msg { font-size:13px; padding:10px 14px; flex-wrap:wrap; gap:6px; }
}

/* Footer mobile */
@media(max-width:640px){
  .footer-inner { flex-direction:column; text-align:center; gap:6px; }
}

/* Location grid mobile */
@media(max-width:640px){
  [style*="grid-template-columns:repeat(auto-fill,minmax(280px"] { grid-template-columns:1fr !important; }
  [style*="grid-template-columns:1fr 1fr 1fr"] { grid-template-columns:1fr !important; }
  [style*="grid-template-columns:1fr 1fr;gap:12px"] { grid-template-columns:1fr !important; }
}

/* New request wizard mobile */
@media(max-width:640px){
  .wizard-steps { gap:0; overflow-x:auto; padding-bottom:4px; }
  .wizard-step { min-width:56px; flex:1; }
  .step-label { font-size:9px; }
  .cat-grid { grid-template-columns:1fr 1fr !important; gap:8px; }
  .cat-option { padding:14px 8px; }
  .cat-icon { font-size:24px; }
  .cat-label { font-size:12px; }
}
