/* Rent X Pro V1.6 Admin Design System — shared with customer PWA */
:root{
  --rx-navy:#071c33;
  --rx-navy-2:#0d3153;
  --rx-gold:#c99b48;
  --rx-gold-2:#e3c575;
  --rx-gold-soft:#fbf4e4;
  --rx-bg:#f5f5f1;
  --rx-surface:#fff;
  --rx-text:#10243b;
  --rx-muted:#56677a;
  --rx-line:#dde3e8;
  --rx-green:#128355;
  --rx-red:#bd3535;
  --rx-shadow:0 14px 40px rgba(7,28,51,.075);
  --rx-radius:18px;
  --rx-control:46px;
}
html{font-size:16px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{font-family:"DM Sans",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;font-size:15px;line-height:1.55;color:var(--rx-text)!important;background:linear-gradient(135deg,#f5f6f3,#fffdf8)!important}
button,input,select,textarea{font:inherit;color:inherit}
a,button,input,select,textarea{transition:border-color .18s ease,box-shadow .18s ease,background .18s ease,color .18s ease}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(201,155,72,.28);outline-offset:2px}
.layout{grid-template-columns:270px minmax(0,1fr)!important}
.side{padding:26px 18px!important;background:linear-gradient(180deg,var(--rx-navy),#0a2947)!important}
.logo{font-family:Manrope,"DM Sans",sans-serif;font-size:30px!important;letter-spacing:-1.2px;line-height:1.1}
.logo small{font-size:10px!important;line-height:1.3;letter-spacing:1.7px!important;margin-top:7px}
.side nav{gap:5px!important;margin-top:26px!important}
.side a{display:flex;align-items:center;gap:10px;min-height:44px;padding:11px 13px!important;border-radius:12px!important;font-size:14px!important;line-height:1.25!important;font-weight:600}
.side a.active,.side a:hover{background:rgba(227,197,117,.15)!important;color:#f5da96!important}
.role{font-size:12px!important;line-height:1.45;padding:12px!important;border-radius:12px!important}
.main{padding:30px 32px 56px!important}
.top{margin-bottom:22px!important}
.top h1{font-family:Manrope,"DM Sans",sans-serif;font-size:30px!important;line-height:1.18;letter-spacing:-.65px}
.top p{font-size:14px!important;line-height:1.5;color:var(--rx-muted)!important}
.top .actions{gap:9px!important;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 15px!important;border-radius:11px!important;font-size:13px!important;line-height:1.25!important;font-weight:700!important;border-color:var(--rx-line)!important}
.btn.gold{color:#14263a!important;background:linear-gradient(135deg,var(--rx-gold-2),var(--rx-gold))!important}
.card{border-color:var(--rx-line)!important;border-radius:var(--rx-radius)!important;box-shadow:var(--rx-shadow)!important}
.kpis{gap:14px!important;margin-bottom:16px!important}
.kpi{padding:19px!important;min-height:108px}
.kpi small{font-size:12px!important;line-height:1.3!important;letter-spacing:.55px!important;color:var(--rx-muted)!important}
.kpi strong{font-family:Manrope,"DM Sans",sans-serif;font-size:26px!important;line-height:1.2;margin:7px 0!important}
.kpi.dark small{color:#d1dce6!important}
.grid{gap:15px!important}
.panel{padding:20px!important}
.panel h2{font-family:Manrope,"DM Sans",sans-serif;font-size:18px!important;line-height:1.3;margin:0 0 15px!important;letter-spacing:-.2px}
.panel h3{font-size:15px;line-height:1.4}
.panel p{font-size:13.5px;line-height:1.6}
.table-wrap{border-radius:12px;overflow:auto}
.table{min-width:760px!important}
.table th,.table td{padding:13px 12px!important;font-size:13px!important;line-height:1.4!important;border-bottom-color:#e9edf0!important;vertical-align:middle}
.table th{font-size:11px!important;line-height:1.25!important;letter-spacing:.65px!important;color:#68788a!important;background:#fafbfb;position:sticky;top:0;z-index:1}
.table td small{font-size:11.5px;line-height:1.35;color:var(--rx-muted)}
.status{font-size:11px!important;line-height:1.2!important;padding:6px 9px!important}
.form-grid{gap:14px!important}
.form-grid label{gap:7px!important;font-size:13px!important;line-height:1.35!important;font-weight:700!important;color:#405267}
.form-grid input,.form-grid select,.form-grid textarea,.panel input,.panel select,.panel textarea{min-height:var(--rx-control);padding:11px 12px!important;border:1px solid var(--rx-line)!important;border-radius:11px!important;font-size:14px!important;line-height:1.35;background:#fff}
.form-grid textarea,.panel textarea{min-height:100px;resize:vertical}
.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.panel input:focus,.panel select:focus,.panel textarea:focus{border-color:var(--rx-gold)!important;box-shadow:0 0 0 3px rgba(201,155,72,.12);outline:none}
.flash{padding:12px 14px!important;border-radius:11px!important;font-size:13px!important;line-height:1.5}
.section{margin-top:15px!important}
.muted{font-size:13px!important;line-height:1.6!important;color:var(--rx-muted)!important}
.check{font-size:13px!important;line-height:1.4!important;gap:8px!important;min-height:30px}
.check input{width:17px!important;height:17px!important;min-height:0!important;padding:0!important}
.panel p[style*="font-size:10px"],.panel p[style*="font-size:11px"],.panel b[style*="font-size:10px"],.panel strong[style*="font-size:10px"],.panel b[style*="font-size:12px"]{font-size:13px!important;line-height:1.55!important}
.panel small[style*="color"]{font-size:12px!important;line-height:1.45!important}

@media(max-width:1100px){
  .layout{grid-template-columns:220px minmax(0,1fr)!important}
  .side a{font-size:13px!important}
  .kpis{grid-template-columns:repeat(2,1fr)!important}
}
@media(max-width:760px){
  .layout{display:block!important}
  .side{display:block!important;position:sticky!important;top:0!important;height:auto!important;z-index:50;padding:10px 12px 11px!important;overflow:hidden!important;border-bottom:1px solid rgba(255,255,255,.08)}
  .side .logo{font-size:23px!important;margin:0 2px 8px}
  .side .logo small,.side .role{display:none!important}
  .side nav{display:flex!important;overflow-x:auto!important;gap:6px!important;margin:0!important;padding-bottom:2px;scrollbar-width:none}
  .side nav::-webkit-scrollbar{display:none}
  .side a{flex:0 0 auto;min-height:39px!important;padding:9px 11px!important;font-size:12px!important;white-space:nowrap}
  .side a span{display:inline!important}
  .main{padding:20px 14px 44px!important}
  .top{align-items:flex-start!important;flex-direction:column!important;margin-bottom:16px!important}
  .top h1{font-size:25px!important}
  .top p{font-size:13px!important}
  .kpis,.grid,.form-grid{grid-template-columns:1fr!important}
  .kpi{min-height:94px;padding:16px!important}
  .panel{padding:15px!important}
  .table th,.table td{font-size:12.5px!important;padding:12px 10px!important}
  .table th{font-size:10.5px!important}
  .btn{font-size:12.5px!important;min-height:42px}
}
@media(max-width:420px){
  body{font-size:14px}
  .top .actions{width:100%}
  .top .actions .btn{flex:1}
  .kpi strong{font-size:23px!important}
}

/* Admin login uses the same readable component scale. */
body > form.card{width:min(460px,100%)!important;padding:32px!important;border-radius:24px!important}
body > form.card .logo{font-size:36px!important}
body > form.card h1{font-family:Manrope,"DM Sans",sans-serif;font-size:29px!important;line-height:1.2;margin:20px 0 6px!important}
body > form.card p{font-size:14px!important;line-height:1.55!important;color:var(--rx-muted)!important}
body > form.card label{display:grid;gap:7px;margin:15px 0;font-size:14px!important;line-height:1.35;font-weight:700}
body > form.card input{width:100%;min-height:48px;padding:12px 13px!important;border:1px solid var(--rx-line)!important;border-radius:12px!important;font-size:15px!important;outline:none}
body > form.card input:focus{border-color:var(--rx-gold)!important;box-shadow:0 0 0 3px rgba(201,155,72,.12)}
body > form.card button{width:100%;min-height:48px;border:0;border-radius:13px;padding:13px 16px!important;background:var(--rx-navy)!important;color:#fff!important;font-size:14px!important;font-weight:800!important}
body > form.card .err{font-size:13px!important;line-height:1.5;padding:11px 12px!important}

/* V1.7 operations QA controls */
.check-row{display:flex!important;align-items:flex-start!important;gap:10px!important;line-height:1.5!important;margin:14px 0!important}.check-row input[type=checkbox]{width:18px!important;height:18px!important;min-height:18px!important;margin-top:2px!important;flex:0 0 18px}.panel code{font-size:.78rem;overflow-wrap:anywhere}.panel p{max-width:80ch}

/* V1.15 product image upload */
.panel-heading-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}.panel-heading-row h2{margin-bottom:5px!important}.product-upload-field{display:grid;gap:7px;padding:12px;border:1px dashed #d7c38e;border-radius:12px;background:#fffaf0}.product-upload-field input[type=file]{padding:8px!important;background:#fff;cursor:pointer}.product-upload-field>span{font-size:11px;font-weight:600;color:#7a6a4a}.product-image-preview-wrap{display:flex!important;align-items:center;gap:14px;padding:12px;border:1px solid var(--rx-line);border-radius:14px;background:#fafbfc}.product-image-preview-wrap[hidden]{display:none!important}.product-image-preview-wrap img{width:112px;height:86px;object-fit:contain;border-radius:12px;border:1px solid var(--rx-line);background:#fff}.admin-product-thumb,.admin-product-placeholder{width:54px;height:44px;border-radius:10px;border:1px solid var(--rx-line);background:#f7f8fa;display:grid;place-items:center;object-fit:contain}.admin-product-placeholder{font-size:11px;font-weight:900;color:#8b6a27;background:#fff7e8}.product-admin-table td{vertical-align:middle!important}@media(max-width:720px){.product-image-preview-wrap{align-items:flex-start;flex-direction:column}.product-image-preview-wrap img{width:100%;height:180px}}


/* V1.16 Customer management */
.status.suspended,.status.closed{background:#fff0f0;color:#a52b2b}
.customer-edit-panel{margin-bottom:16px}
.customer-search-panel{margin-bottom:14px}
.customer-search-grid{display:grid;grid-template-columns:minmax(260px,1fr) 220px auto;gap:12px;align-items:end}
.customer-search-grid label{display:grid;gap:7px;font-size:13px;font-weight:700;color:#405267}
.customer-edit-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding-top:2px}
.customer-row-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.customer-row-actions form{display:inline-flex;margin:0}
.customer-row-actions .btn{min-height:36px;padding:8px 11px!important}
.field-note{font-size:11px;font-weight:500;color:var(--rx-muted);line-height:1.35}
.customer-table td strong{font-weight:800}
@media(max-width:760px){
  .customer-search-grid{grid-template-columns:1fr}
  .customer-search-grid .btn{width:100%}
  .customer-edit-actions .btn{flex:1 1 auto}
}

/* V1.26 admin stabilization */
.status.archived{background:#eef0f3!important;color:#5d6876!important}.status.urgent{background:#fff0f0!important;color:#b22c2c!important}.status.high{background:#fff4d9!important;color:#956617!important}.status.low{background:#eef3fb!important;color:#2f5b86!important}.panel-heading-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.panel-heading-row h2{margin-bottom:4px!important}@media(max-width:720px){.panel-heading-row{flex-direction:column;align-items:stretch}.panel-heading-row>.btn{width:100%}}
