/* =============================================================
   Harmonia Group — Stylesheet
   style.css | Navy-Gold Theme for Property Management System
   ============================================================= */

*{box-sizing:border-box;margin:0;padding:0}
:root{
  --navy:#0d1f3c;--navy2:#162847;--navy3:#1e3560;
  --gold:#c9a84c;--gold2:#e8c96a;
  --bg:#eeeae4;--surface:#f7f4f0;--white:#fff;
  --text:#1a2540;--sub:#4a5568;--muted:#6b7c99;
  --border:#ddd8d0;--border2:#e8e4de;
  --r:10px;--sh:0 2px 12px rgba(0,0,0,.08)
}
html,body{height:100%;background:var(--navy);color:#fff;
  font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;font-size:15px;line-height:1.45}
::-webkit-scrollbar{width:5px;height:5px}
::-webkit-scrollbar-thumb{background:rgba(201,168,76,.35);border-radius:3px}

/* Focus visibility (keyboard) */
:where(a,button,input,select,textarea,[tabindex]):focus{outline:none}
:where(a,button,input,select,textarea,[tabindex]):focus-visible{
  outline:3px solid rgba(201,168,76,.55);
  outline-offset:2px;
  border-radius:8px;
}
.sb-a:focus-visible,.chip:focus-visible,.menu-toggle:focus-visible{
  outline-offset:3px;
}

/* Alerts */
.alert{
  border-radius:8px;
  padding:10px 14px;
  margin-bottom:14px;
  font-size:12.5px;
  line-height:1.55;
}
.alert-warning{background:#fefce8;border:1px solid #fde047;color:#854d0e}
.alert-success{background:#f0fdf4;border:1px solid #86efac;color:#166534}
.alert-danger{background:#fee2e2;border:1px solid #fca5a5;color:#991b1b}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;scroll-behavior:auto !important}
}

/* SPLASH */
#splash{position:fixed;inset:0;background:linear-gradient(135deg,#0d1f3c,#1e3560);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  z-index:9999;transition:opacity .4s}
#splash.off{opacity:0;pointer-events:none}
.sp-logo{font-size:30px;font-weight:700;color:var(--gold);letter-spacing:3px;margin-bottom:6px}
.sp-logo-img{width:min(260px,70vw);max-height:120px;object-fit:contain;margin-bottom:12px}
.sp-sub{font-size:10px;color:var(--muted);letter-spacing:4px;text-transform:uppercase;margin-bottom:36px}
.sp-spin{width:34px;height:34px;border:3px solid rgba(201,168,76,.2);
  border-top-color:var(--gold);border-radius:50%;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* APP */
#app{display:none;height:100vh}
#app.on{display:block}

/* LOGIN */
.lw{height:100vh;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#0d1f3c,#1e3560,#0d1f3c);position:relative;overflow:hidden}
.lp{position:absolute;inset:0;opacity:.04;
  background-image:repeating-linear-gradient(0deg,transparent,transparent 50px,rgba(201,168,76,1) 50px,rgba(201,168,76,1) 51px),
  repeating-linear-gradient(90deg,transparent,transparent 50px,rgba(201,168,76,1) 50px,rgba(201,168,76,1) 51px)}
.lc{background:rgba(255,255,255,.06);border:1px solid rgba(201,168,76,.22);
  border-radius:16px;padding:44px 38px;width:370px;position:relative;z-index:1}
.le{width:58px;height:58px;background:linear-gradient(135deg,var(--gold),var(--gold2));
  border-radius:14px;display:flex;align-items:center;justify-content:center;
  margin:0 auto 14px;font-size:24px;box-shadow:0 4px 16px rgba(201,168,76,.4)}
.login-logo{width:44px;height:44px;object-fit:contain}
.lt{text-align:center;font-size:22px;font-weight:700;color:var(--gold);letter-spacing:1.5px;margin-bottom:3px}
.ls{text-align:center;font-size:10px;color:var(--muted);letter-spacing:3px;text-transform:uppercase;margin-bottom:28px}
.ll{font-size:10px;color:var(--muted);letter-spacing:.5px;text-transform:uppercase;
  display:block;margin-bottom:6px;font-weight:500}
.li{width:100%;padding:11px 14px;background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.14);border-radius:8px;color:#fff;
  font-size:13px;outline:none;transition:border .2s;margin-bottom:13px;font-family:inherit}
.li:focus{border-color:var(--gold)}
.li::placeholder{color:rgba(255,255,255,.25)}
.lb{width:100%;padding:13px;background:linear-gradient(135deg,var(--gold),var(--gold2));
  color:var(--navy);border:none;border-radius:8px;font-size:14px;font-weight:700;
  cursor:pointer;letter-spacing:1px;font-family:inherit;transition:opacity .2s}
.lb:hover{opacity:.9}
.lb:disabled{opacity:.6;cursor:not-allowed}
.lerr{color:#f87171;font-size:12px;text-align:center;margin-top:10px}
.lh{margin-top:20px;padding-top:16px;border-top:1px solid rgba(255,255,255,.08);
  font-size:11px;color:var(--muted);text-align:center;line-height:1.9}
.lh b{color:rgba(201,168,76,.8)}

/* SHELL */
.shell{display:flex;height:100vh;overflow:hidden}
.sb{width:218px;background:var(--navy2);display:flex;flex-direction:column;
  flex-shrink:0;border-right:1px solid rgba(201,168,76,.1);overflow-y:auto}
.sb-brand{padding:18px 17px 14px;border-bottom:1px solid rgba(255,255,255,.07)}
.sb-bname{font-size:14.5px;font-weight:700;color:var(--gold);letter-spacing:1px}
.sb-logo{width:100%;max-height:56px;object-fit:contain;object-position:left center;display:block;margin-bottom:6px}
.sb-bsub{font-size:9px;color:var(--muted);letter-spacing:2.5px;text-transform:uppercase;margin-top:2px}
.sb-nav{flex:1;padding:8px 0}
.sb-grp{font-size:9px;color:var(--muted);letter-spacing:2px;text-transform:uppercase;padding:13px 17px 4px}
.sb-a{display:flex;align-items:center;gap:9px;padding:9px 17px;cursor:pointer;
  color:rgba(255,255,255,.48);font-size:12.5px;transition:all .15s;
  border-left:2px solid transparent;user-select:none}
.sb-a:hover{color:#fff;background:rgba(255,255,255,.04)}
.sb-a.on{color:var(--gold);background:rgba(201,168,76,.07);border-left-color:var(--gold);font-weight:500}
.sb-ico{font-size:13px;width:17px;text-align:center;flex-shrink:0}
.sb-ft{padding:13px 17px;border-top:1px solid rgba(255,255,255,.07)}
.sb-av{width:31px;height:31px;border-radius:50%;background:var(--gold);
  display:flex;align-items:center;justify-content:center;color:var(--navy);
  font-size:10px;font-weight:700;flex-shrink:0}
.sb-un{font-size:12px;font-weight:600}
.sb-ur{font-size:10px;color:var(--muted)}
.sb-lo{font-size:10px;color:var(--muted);cursor:pointer;margin-top:2px;display:inline-block}
.sb-lo:hover{color:#f87171}

.main{flex:1;background:var(--bg);display:flex;flex-direction:column;overflow:hidden}
.tb{background:var(--white);padding:12px 22px;display:flex;align-items:center;
  justify-content:space-between;border-bottom:1px solid var(--border2);
  flex-shrink:0;box-shadow:0 1px 4px rgba(0,0,0,.05)}
.tb-t{font-size:17px;font-weight:700;color:var(--text)}
.tb-r{display:flex;align-items:center;gap:8px}
.tb-date{font-size:11px;color:var(--muted);background:var(--surface);
  padding:5px 10px;border-radius:6px;border:1px solid var(--border2)}
.tb-sv{font-size:11px;padding:5px 10px;border-radius:6px;font-weight:500;
  background:#dcfce7;color:#166534;display:flex;align-items:center;gap:4px}
.sv-dot{width:6px;height:6px;border-radius:50%;background:#16a34a;animation:pulse 2s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}
.pg{flex:1;overflow-y:auto;padding:18px 22px}

/* COMPONENTS */
.krow{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:16px}
.kc{background:var(--white);border-radius:var(--r);padding:15px 17px;border:1px solid var(--border2)}
.kl{font-size:9.5px;color:var(--muted);letter-spacing:.5px;text-transform:uppercase;margin-bottom:5px}
.kn{font-size:26px;font-weight:700;color:var(--text);margin-bottom:4px;line-height:1}
.kt{font-size:10px;padding:2px 8px;border-radius:20px;display:inline-block;font-weight:500}
.g-g{background:#dcfce7;color:#166534}.g-b{background:#dbeafe;color:#1e40af}
.g-y{background:#fef9c3;color:#854d0e}.g-r{background:#fee2e2;color:#991b1b}

.card{background:var(--white);border-radius:var(--r);border:1px solid var(--border2);
  margin-bottom:14px;overflow:hidden;box-shadow:var(--sh)}
.ch{padding:12px 17px;border-bottom:1px solid var(--border2);display:flex;align-items:center;justify-content:space-between}
.ct{font-size:13px;font-weight:600;color:var(--text)}
.cb{padding:17px}
.lnk{font-size:11px;color:var(--gold);cursor:pointer;font-weight:500}
.lnk:hover{text-decoration:underline}

.g2{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}
.g3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;margin-bottom:14px}
.g4{display:grid;grid-template-columns:repeat(auto-fill,minmax(198px,1fr));gap:13px}

.sh2{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px;flex-wrap:wrap;gap:8px}
.sh2-t{font-size:17px;font-weight:700;color:var(--text)}
.audit-filters{background:var(--white);border:1px solid var(--border2);border-radius:var(--r);
  padding:13px;margin-bottom:14px;display:grid;grid-template-columns:160px 180px minmax(180px,1fr) auto;
  gap:11px;align-items:end;box-shadow:var(--sh)}
.audit-filter-actions{display:flex;gap:7px;justify-content:flex-end;align-items:center}
.audit-change{display:flex;align-items:center;gap:5px;margin-top:4px;flex-wrap:wrap}
.audit-field{font-weight:700;color:var(--text)}
.audit-before{color:#991b1b;background:#fee2e2;padding:1px 5px;border-radius:4px;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.audit-after{color:#166534;background:#dcfce7;padding:1px 5px;border-radius:4px;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.audit-arrow{color:var(--muted)}
.audit-more{font-size:10.5px;color:var(--muted);margin-top:4px}

.pipeline-filters{background:var(--white);border:1px solid var(--border2);border-radius:var(--r);
  padding:13px;margin-bottom:14px;display:grid;grid-template-columns:repeat(2,minmax(180px,260px));
  gap:11px;box-shadow:var(--sh)}
.pipeline-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.pipe-tab{border:1px solid var(--border2);background:var(--white);color:var(--sub);border-radius:8px;
  padding:8px 12px;font-size:12px;font-weight:600;cursor:pointer;min-height:34px}
.pipe-tab:hover{border-color:rgba(201,168,76,.55);color:var(--text)}
.pipe-tab.on{background:var(--navy2);border-color:var(--navy2);color:var(--gold)}
.pipeline-board{display:grid;grid-template-columns:repeat(8,minmax(218px,1fr));gap:12px;
  overflow-x:auto;padding-bottom:10px}
.pipeline-board-focused{grid-template-columns:minmax(280px,520px);overflow-x:visible}
.pipe-col{background:#f8fafc;border:1px solid var(--border2);border-radius:8px;min-height:360px;
  display:flex;flex-direction:column}
.pipe-head{padding:11px 12px;border-bottom:1px solid var(--border2);background:var(--white);
  border-radius:8px 8px 0 0}
.pipe-title{font-size:12px;font-weight:700;color:var(--text)}
.pipe-sub{font-size:10px;color:var(--muted);margin-top:2px}
.pipe-list{padding:10px;display:flex;flex-direction:column;gap:9px}
.pipe-card{background:var(--white);border:1px solid var(--border2);border-radius:8px;padding:10px;
  box-shadow:0 1px 6px rgba(0,0,0,.05)}
.pipe-card-top,.pipe-row,.pipe-actions{display:flex;align-items:center;justify-content:space-between;gap:7px}
.pipe-id{font-size:10px;color:var(--muted);font-weight:700}
.pipe-buyer{font-size:13px;font-weight:700;color:var(--text);margin-top:8px}
.pipe-meta{font-size:10.5px;color:var(--muted);margin-top:3px;line-height:1.5}
.pipe-row{font-size:11px;color:var(--sub);margin-top:9px}
.pipe-row strong{color:var(--text);white-space:nowrap}
.pipe-money{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}
.pipe-money div{background:var(--surface);border:1px solid var(--border2);border-radius:7px;padding:7px}
.pipe-money span{display:block;font-size:9px;color:var(--muted);text-transform:uppercase;margin-bottom:2px}
.pipe-money strong{display:block;font-size:11px;color:var(--text);white-space:nowrap}
.pipe-actions{justify-content:flex-end;margin-top:10px}
.pipe-empty{font-size:11px;color:var(--muted);text-align:center;border:1px dashed var(--border);
  border-radius:8px;padding:18px 8px;background:rgba(255,255,255,.55)}
.payment-card{border:1px solid var(--border2);border-radius:8px;background:var(--surface);padding:12px}
.payment-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}
.payment-summary{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.payment-summary span{font-size:10px;color:var(--muted);background:var(--white);border:1px solid var(--border2);border-radius:7px;padding:7px 9px}
.payment-summary strong{display:block;color:var(--text);font-size:12px;margin-top:2px}
.pay-section-title{font-size:11px;font-weight:700;color:var(--text);margin:12px 0 7px}
.pay-row{display:grid;grid-template-columns:minmax(150px,1.4fr) minmax(130px,1fr) minmax(130px,1fr) auto;gap:7px;align-items:center;margin-bottom:7px}
.pay-row-history{grid-template-columns:minmax(125px,.9fr) minmax(150px,1.2fr) minmax(120px,1fr) minmax(105px,.8fr) auto}
.pay-row-history.with-plan{grid-template-columns:minmax(120px,.8fr) minmax(150px,1.2fr) minmax(135px,1fr) minmax(115px,.9fr) minmax(110px,.9fr) auto}
.pay-row-head{font-size:10px;color:var(--muted);text-transform:uppercase;margin-bottom:5px}
.pay-plan-row{display:grid;grid-template-columns:minmax(140px,1.2fr) minmax(120px,.9fr) minmax(120px,1fr) repeat(3,minmax(95px,.85fr)) auto;gap:7px;align-items:center;border-bottom:1px solid var(--border2);padding:7px 0;font-size:11px;color:var(--text)}
.pay-plan-row strong{font-size:11px;color:var(--text);white-space:nowrap}
.pay-plan-row:not(.pay-row-head) span:first-child{font-weight:700}
.pay-plan-total{display:flex;justify-content:flex-end;gap:12px;align-items:center;padding:9px 0 2px;font-size:11px;color:var(--muted)}
.pay-plan-total strong{font-size:12px;color:var(--text)}
.mini-btn.danger{color:#991b1b;border-color:#fecaca;background:#fff}

/* Dashboard utilities */
.card-lg{margin-bottom:20px}
.cb-lg{padding:20px}
.chart-wrap{position:relative;width:100%}
.chart-h-250{height:250px}
.chart-h-200{height:200px}

.meta{color:var(--muted)}
.fw600{font-weight:600}
.fw500{font-weight:500}
.fs10{font-size:10px}
.fs11{font-size:11px}
.fs12{font-size:12px}
.mt2{margin-top:2px}

.dash-list-item{display:flex;gap:9px;padding:7px 0;border-bottom:1px solid var(--border2)}
.dash-list-item:last-child{border-bottom:none}
.dash-dot{width:5px;height:5px;border-radius:50%;background:#22c55e;flex-shrink:0;margin-top:5px}
.dash-empty{font-size:12px;color:var(--muted)}

.rank-row{display:flex;align-items:center;gap:9px;margin-bottom:11px}
.rank-no{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-size:10px;font-weight:700;color:#fff;flex-shrink:0}
.rank-no.r1{background:var(--gold)}
.rank-no.r2{background:#8a9bb5}
.rank-no.r3{background:#c0392b}
.rank-no.r4{background:#3498db}
.rank-no.r5{background:#9ca3af}
.rank-main{flex:1;min-width:0}
.rank-sub{font-size:10px;color:var(--muted)}
.rank-amt{font-size:12px;font-weight:600;color:#16a34a;white-space:nowrap}

.pipe-summary-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}
.pipe-summary-kpi{background:var(--surface);border:1px solid var(--border2);border-radius:8px;padding:12px}
.pipe-summary-kpi span{display:block;font-size:9.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:5px}
.pipe-summary-kpi strong{display:block;font-size:20px;line-height:1.15;color:var(--text)}
.pipe-summary-kpi small{display:block;font-size:10px;color:var(--muted);margin-top:5px}
.pipe-summary-kpi.warn{background:#fffbeb;border-color:#fde68a}
.pipe-summary-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:14px;align-items:start}
.pipe-summary-title{font-size:12px;font-weight:800;color:var(--text);margin-bottom:9px}
.pipe-summary-table table{min-width:620px}
.clickable-row{cursor:pointer}
.clickable-row:hover{background:var(--surface)}
.pipe-follow{background:var(--surface);border:1px solid var(--border2);border-radius:8px;padding:12px}
.pipe-follow-item{display:flex;width:100%;justify-content:space-between;align-items:flex-start;gap:10px;text-align:left;
  background:var(--white);border:1px solid var(--border2);border-radius:8px;padding:10px;margin-bottom:8px;cursor:pointer;font:inherit}
.pipe-follow-item:last-child{margin-bottom:0}
.pipe-follow-item:hover{border-color:rgba(201,168,76,.65);box-shadow:0 2px 8px rgba(0,0,0,.06)}
.pipe-follow-item strong{display:block;font-size:12px;color:var(--text);margin-bottom:2px}
.pipe-follow-item small{display:block;font-size:10.5px;color:var(--muted);line-height:1.45}
.pipe-follow-item em{font-style:normal;font-size:11px;font-weight:800;color:#b45309;white-space:nowrap}
.pipe-follow-empty{font-size:12px;color:var(--muted);background:var(--white);border:1px dashed var(--border);border-radius:8px;padding:16px;text-align:center}

.att-capture{display:grid;grid-template-columns:minmax(180px,1fr) 112px;gap:12px;align-items:start}
.att-camera{background:var(--surface);border:1px solid var(--border2);border-radius:8px;
  aspect-ratio:1/1;overflow:hidden;display:flex;align-items:center;justify-content:center}
.att-camera video,.att-camera img{width:100%;height:100%;object-fit:cover}
.att-placeholder{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:1px}
.att-preview{border:1px solid var(--border2);border-radius:8px;overflow:hidden;aspect-ratio:1/1;background:var(--surface)}
.att-preview img,.att-thumb{width:100%;height:100%;object-fit:cover}
.att-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}
.att-export{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.att-month{width:132px;padding:7px 9px;font-size:12px}
.att-status{min-height:18px;margin-top:10px;font-size:12px;color:#166534}
.att-status.err{color:#991b1b}
.att-meta{margin-top:12px;border-top:1px solid var(--border2);padding-top:8px}
.att-meta>div{display:flex;justify-content:space-between;gap:10px;padding:5px 0;font-size:12px}
.att-thumb{width:46px;height:46px;border-radius:6px;border:1px solid var(--border2);display:block}

.legend{display:flex;justify-content:center;gap:15px;margin-top:15px;flex-wrap:wrap}
.legend-i{display:flex;align-items:center;gap:6px}
.legend-sq{width:12px;height:12px;border-radius:3px}
.legend-sq.g{background:#22c55e}
.legend-sq.o{background:#f97316}

/* TABLE */
.tw{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:12px;min-width:500px}
th{text-align:left;padding:8px 11px;font-size:10px;letter-spacing:1px;text-transform:uppercase;
  color:var(--muted);font-weight:600;border-bottom:2px solid var(--border2);white-space:nowrap}
td{padding:10px 11px;border-bottom:1px solid var(--border2);color:var(--text);vertical-align:middle}
tr:last-child td{border-bottom:none}
tbody tr:hover td{background:#faf8f5}
.tf{padding:9px 13px;border-top:1px solid var(--border2);display:flex;
  justify-content:space-between;background:var(--surface);font-size:11.5px}

/* BADGE */
.b{font-size:10px;padding:2px 8px;border-radius:20px;font-weight:500;display:inline-block;white-space:nowrap}
.bg{background:#dcfce7;color:#166534}.by{background:#fef9c3;color:#854d0e}
.br{background:#fee2e2;color:#991b1b}.bb{background:#dbeafe;color:#1e40af}
.bgr{background:#f3f4f6;color:#374151}.bp{background:#f3e8ff;color:#6b21a8}

/* BUTTONS */
.btn{padding:8px 15px;border-radius:7px;font-size:12px;font-weight:500;cursor:pointer;
  border:none;font-family:inherit;transition:all .15s;display:inline-flex;align-items:center;gap:5px}
.btn-gd{background:linear-gradient(135deg,var(--gold),var(--gold2));color:var(--navy);font-weight:700}
.btn-gd:hover{opacity:.9}
.btn-gh{background:transparent;border:1px solid var(--border);color:var(--text)}
.btn-gh:hover{background:var(--surface)}
.be{background:#dbeafe;color:#1e40af;padding:4px 9px;font-size:11px;border-radius:5px;
  cursor:pointer;border:none;font-family:inherit;font-weight:500;transition:background .15s}
.be:hover{background:#bfdbfe}
.bd{background:#fee2e2;color:#991b1b;padding:4px 9px;font-size:11px;border-radius:5px;
  cursor:pointer;border:none;font-family:inherit;font-weight:500}
.bd:hover{background:#fecaca}
.btns{display:flex;gap:4px;align-items:center}
.chips{display:flex;gap:5px;margin-bottom:12px;flex-wrap:wrap}
.chip{padding:5px 12px;border-radius:20px;font-size:11px;cursor:pointer;
  border:1px solid var(--border);background:var(--white);color:var(--sub);transition:all .15s}
.chip.on{background:var(--navy);color:#fff;border-color:var(--navy)}

/* PROGRESS */
.pb{background:var(--border2);border-radius:3px;height:5px;overflow:hidden;margin-top:3px}
.pbf{height:5px;border-radius:3px;background:linear-gradient(90deg,var(--gold),var(--gold2))}

/* PRODUCT CARD */
.pc{background:var(--white);border-radius:var(--r);border:1px solid var(--border2);overflow:hidden;box-shadow:var(--sh)}
.pc-i{height:84px;display:flex;align-items:center;justify-content:center;font-size:28px}
.pc-a{height:3px}
.pc-b{padding:12px}
.pc-n{font-size:12.5px;font-weight:700;color:var(--text);margin-bottom:2px}
.pc-p{font-size:10px;color:var(--muted);margin-bottom:5px}
.pc-pr{font-size:14px;font-weight:700;color:var(--gold);margin-bottom:6px}
.pc-sp{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:7px}
.pc-s{font-size:10px;color:var(--muted)}
.proj-logo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px;margin-bottom:24px}
.proj-logo-card{background:transparent;border:none;padding:0;cursor:pointer;font-family:inherit;text-align:left}
.proj-logo-card:disabled{cursor:not-allowed}
.proj-logo-mark{height:92px;border:1px solid var(--border2);border-radius:8px;background:var(--white);
  display:flex;align-items:center;justify-content:center;gap:12px;padding:14px 18px;
  box-shadow:var(--sh);transition:all .16s;overflow:hidden}
.proj-logo-card:hover .proj-logo-mark,.proj-logo-card.on .proj-logo-mark{
  transform:translateY(-1px);box-shadow:0 5px 18px rgba(0,0,0,.16);border-width:2px}
.proj-logo-card.off{opacity:.48}
.proj-logo-in{font-size:32px;font-weight:800;line-height:1;letter-spacing:0;white-space:nowrap}
.proj-logo-img-wrap{width:52px;height:52px;border-radius:8px;background:rgba(255,255,255,.72);border:1px solid rgba(255,255,255,.55);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden}
.proj-logo-img{width:100%;height:100%;object-fit:contain;padding:5px}
.proj-logo-name{font-size:19px;font-weight:700;line-height:1.12;letter-spacing:0;max-width:160px}
.proj-logo-stock{text-align:center;margin-top:6px;font-size:10.5px;color:var(--muted);font-weight:600}
.product-project-info{text-align:center;margin:4px 0 30px;color:#9aa4af}
.product-project-loc{font-size:14px;font-weight:500;margin-bottom:4px}
.product-project-stock{font-size:14px;font-weight:800}
.unit-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:18px}
.unit-card{background:var(--white);border-radius:18px;padding:28px 26px 26px;min-height:300px;
  display:flex;flex-direction:column;color:#69717b;box-shadow:0 1px 16px rgba(15,23,42,.04)}
.unit-place{font-size:15px;font-weight:500;line-height:1.55;margin-bottom:20px}
.unit-name{font-size:12px;font-weight:800;color:#69717b;margin-bottom:3px}
.unit-spec,.unit-money{font-size:12px;font-weight:800;line-height:1.15;color:#69717b}
.unit-desc{font-size:12px;line-height:1.25;color:#69717b;margin-top:18px}
.unit-price{font-size:17px;font-weight:800;color:#69717b;margin-top:auto;padding-top:18px}
.unit-actions{display:flex;gap:6px;margin-top:14px}
.unit-actions .be{flex:1;justify-content:center}
.empty-state{background:var(--white);border:1px dashed var(--border);border-radius:8px;padding:28px;
  color:var(--muted);text-align:center}

/* PROMO */
.prc{background:var(--white);border-radius:var(--r);border:1px solid var(--border2);overflow:hidden;margin-bottom:11px;box-shadow:var(--sh)}
.prc-st{height:3px}
.prc-b{padding:13px 17px}

/* PROFILE */
.pb2{background:linear-gradient(135deg,var(--navy),var(--navy3));border-radius:var(--r);
  padding:24px 28px;margin-bottom:14px;display:flex;align-items:center;gap:18px;box-shadow:var(--sh)}
.pb2-l{width:58px;height:58px;background:linear-gradient(135deg,var(--gold),var(--gold2));
  border-radius:13px;display:flex;align-items:center;justify-content:center;
  font-size:18px;font-weight:700;color:var(--navy);flex-shrink:0}
.pb2-n{font-size:19px;font-weight:700;color:#fff;margin-bottom:3px}
.pb2-tg{font-size:10px;color:rgba(201,168,76,.8);letter-spacing:1.5px;text-transform:uppercase;margin-bottom:5px}
.pb2-d{font-size:12px;color:rgba(255,255,255,.55);line-height:1.7;max-width:440px}

.ir{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px solid var(--border2);font-size:12.5px}
.ir:last-child{border-bottom:none}
.ik{color:var(--muted)}.iv{font-weight:500;color:var(--text);text-align:right}

/* CHART */
.cbw{margin-bottom:13px}
.cbl{display:flex;justify-content:space-between;font-size:12px;margin-bottom:3px}
.cbt{height:7px;background:var(--border2);border-radius:4px;overflow:hidden}
.cbf{height:7px;border-radius:4px}

/* MODAL */
.ov{position:fixed;inset:0;background:rgba(8,15,35,.68);z-index:1000;
  display:flex;align-items:flex-start;justify-content:center;
  padding:36px 16px;overflow-y:auto;backdrop-filter:blur(2px)}
.mo{background:var(--white);border-radius:14px;width:100%;max-width:760px;
  box-shadow:0 24px 64px rgba(0,0,0,.4);overflow:hidden}
.mo-h{padding:15px 20px;background:var(--navy2);display:flex;align-items:center;justify-content:space-between}
.mo-h h3{font-size:15px;font-weight:600;color:#fff}
.mo-x{background:rgba(255,255,255,.12);border:none;color:#fff;width:28px;height:28px;
  border-radius:6px;cursor:pointer;font-size:13px;display:flex;align-items:center;justify-content:center}
.mo-x:hover{background:rgba(255,255,255,.22)}
.mo-b{padding:20px;overflow-y:auto;max-height:67vh}
.mo-f{padding:12px 20px;border-top:1px solid var(--border2);display:flex;justify-content:flex-end;gap:8px;background:var(--surface)}

.fg{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.fw{grid-column:1/-1}
.fl{font-size:10px;color:var(--muted);letter-spacing:.5px;text-transform:uppercase;display:block;margin-bottom:5px;font-weight:500}
.fi{width:100%;padding:9px 11px;border:1px solid var(--border);border-radius:7px;
  font-size:13px;color:var(--text);outline:none;font-family:inherit;
  transition:border .2s;background:var(--white)}
.fi:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(201,168,76,.1)}
.custom-card{border:1px solid var(--border2);border-radius:8px;background:var(--surface);padding:12px}
.custom-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.custom-title{font-size:12px;font-weight:700;color:var(--text)}
.custom-sub{font-size:11px;color:var(--muted);line-height:1.45;margin-top:2px}
.switch{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:700;color:var(--navy);cursor:pointer;user-select:none}
.switch input{accent-color:var(--gold);width:16px;height:16px}
.custom-row{display:grid;grid-template-columns:1.05fr 1.4fr 70px 1fr 72px;gap:8px;align-items:center;margin-bottom:8px}
.custom-row-head{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.4px;margin-bottom:5px}
.custom-actions{display:flex;justify-content:flex-end;margin-top:2px}
.custom-total{max-width:220px;margin-left:auto;margin-top:10px}
.mini-btn{border:1px solid var(--border);background:var(--white);color:var(--text);border-radius:7px;padding:8px 10px;font-size:11px;font-weight:600;cursor:pointer;font-family:inherit}
.mini-btn:hover{border-color:var(--gold);color:var(--navy)}
.mini-btn.danger:hover{border-color:#fca5a5;color:#991b1b;background:#fee2e2}
.doc-card{border:1px solid var(--border2);border-radius:8px;background:var(--surface);padding:12px}
.doc-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.doc-progress{min-width:48px;text-align:center;border:1px solid #facc15;background:#fefce8;color:#854d0e;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:700}
.doc-progress.complete{border-color:#86efac;background:#f0fdf4;color:#166534}
.doc-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.doc-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--border);border-radius:8px;background:var(--white);padding:10px}
.doc-row.done{border-color:#86efac;background:#f9fffb}
.doc-main{min-width:0}
.doc-title{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--text)}
.doc-required{background:#fee2e2;color:#991b1b;border-radius:999px;padding:2px 6px;font-size:9px;font-weight:700}
.doc-name{font-size:11px;color:var(--text);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}
.doc-meta{font-size:10px;color:var(--muted);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}
.doc-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}
.doc-upload{display:inline-flex;align-items:center}
.doc-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.project-logo-field{width:100%}
.project-logo-picker{display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;align-items:start}
.project-logo-preview{width:96px;height:96px;border:1px solid var(--border2);border-radius:8px;background:var(--surface);
  display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.6px}
.project-logo-preview img{width:100%;height:100%;object-fit:contain;padding:8px}
.project-logo-controls{display:flex;flex-direction:column;gap:8px}
.project-logo-note{font-size:10.5px;color:var(--muted);line-height:1.45}

/* CONFIRM */
.cfm{background:var(--white);border-radius:12px;width:100%;max-width:330px;overflow:hidden}
.cfm-h{padding:15px 18px;background:#fee2e2;display:flex;align-items:center;gap:9px}
.cfm-h h3{font-size:14px;font-weight:600;color:#991b1b}
.cfm-b{padding:17px 18px;font-size:13px;color:var(--text);line-height:1.6}
.cfm-f{padding:11px 18px;border-top:1px solid var(--border2);display:flex;justify-content:flex-end;gap:7px;background:var(--surface)}
.btn-dok{background:#dc2626;color:#fff;padding:8px 15px;border-radius:7px;
  font-family:inherit;font-size:12px;font-weight:500;border:none;cursor:pointer}
.btn-dok:hover{background:#b91c1c}

/* TOAST */
#toast{position:fixed;bottom:20px;right:20px;background:var(--navy2);color:#fff;
  padding:10px 16px;border-radius:9px;font-size:12px;z-index:9999;
  border-left:3px solid var(--gold);transform:translateY(55px);opacity:0;
  transition:all .28s;pointer-events:none;max-width:270px;box-shadow:0 8px 24px rgba(0,0,0,.3)}
#toast.on{transform:translateY(0);opacity:1}

/* PAYMENT REMINDERS */
.reminder-wrap{position:relative}
.reminder-btn{display:flex;align-items:center;gap:7px;border:1px solid var(--border2);background:var(--white);
  color:var(--text);border-radius:8px;padding:7px 10px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.reminder-btn.has{border-color:#f59e0b;background:#fffbeb;color:#92400e}
.reminder-btn strong{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;
  padding:0 6px;border-radius:999px;background:#dc2626;color:#fff;font-size:11px}
.reminder-panel{position:absolute;right:0;top:calc(100% + 8px);width:min(360px,calc(100vw - 28px));
  background:var(--white);border:1px solid var(--border2);border-radius:10px;box-shadow:0 18px 42px rgba(15,23,42,.18);z-index:50;overflow:hidden}
.reminder-head{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-bottom:1px solid var(--border2);font-size:12px}
.reminder-head span{color:var(--muted);font-weight:700}
.reminder-list{max-height:340px;overflow:auto}
.reminder-item{display:block;width:100%;text-align:left;background:transparent;border:0;border-bottom:1px solid var(--border2);
  padding:11px 14px;cursor:pointer;font:inherit}
.reminder-item:hover{background:var(--surface)}
.reminder-title,.reminder-meta,.reminder-money{display:block}
.reminder-title{font-size:12px;font-weight:800;color:var(--text);margin-bottom:3px}
.reminder-meta{font-size:11px;color:var(--muted);margin-bottom:4px}
.reminder-money{font-size:11px;color:#b45309;font-weight:800}
.reminder-empty,.reminder-more{padding:12px 14px;font-size:12px;color:var(--muted)}
.pay-plan-row.overdue{background:#fffbeb;border-color:#fbbf24}
.due-tag{display:block;width:max-content;margin-top:3px;padding:2px 6px;border-radius:999px;background:#fef3c7;color:#92400e;font-size:9px;font-weight:800}

/* FINANCE MENU */
.fin-lock{display:flex;flex-direction:column;align-items:center;justify-content:center;
  min-height:340px;gap:10px}
.fin-lock-ico{font-size:48px;margin-bottom:6px}
.fin-lock-t{font-size:18px;font-weight:700;color:var(--text);margin-bottom:4px}
.fin-lock-s{font-size:12px;color:var(--muted);margin-bottom:18px;text-align:center}
.fin-lock-box{width:100%;max-width:320px;display:flex;flex-direction:column;gap:9px}
.fin-lock-err{color:#dc2626;font-size:11px;text-align:center}

.fin-admin-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;margin-top:4px}
.fin-admin-card{background:var(--white);border-radius:var(--r);border:1px solid var(--border2);
  overflow:hidden;box-shadow:var(--sh);cursor:pointer;transition:all .18s}
.fin-admin-card:hover{box-shadow:0 4px 18px rgba(0,0,0,.13);transform:translateY(-1px)}
.fin-admin-card.open{border-color:var(--gold)}
.fin-admin-head{padding:14px 16px;display:flex;align-items:center;gap:12px;
  background:linear-gradient(135deg,var(--navy2),var(--navy3))}
.fin-admin-av{width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,var(--gold),var(--gold2));
  display:flex;align-items:center;justify-content:center;color:var(--navy);font-size:12px;font-weight:700;flex-shrink:0}
.fin-admin-name{font-size:13px;font-weight:600;color:#fff}
.fin-admin-role{font-size:10px;color:rgba(201,168,76,.8);margin-top:1px}
.fin-admin-files{padding:10px 12px;display:flex;flex-direction:column;gap:5px}
.fin-file-item{display:flex;align-items:center;gap:9px;padding:8px 10px;border-radius:7px;
  background:var(--surface);border:1px solid var(--border2);text-decoration:none;
  transition:all .14s;cursor:pointer}
.fin-file-item:hover{background:#f0fdf4;border-color:#86efac}
.fin-file-ico{font-size:15px;flex-shrink:0}
.fin-file-info{flex:1;min-width:0}
.fin-file-name{font-size:11.5px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fin-file-desc{font-size:10px;color:var(--muted);margin-top:1px}
.fin-file-arr{font-size:10px;color:var(--muted)}
.fin-file-item:hover .fin-file-arr{color:#16a34a}
.fin-empty{font-size:11px;color:var(--muted);text-align:center;padding:8px 0}
.fin-badge{font-size:9.5px;padding:2px 7px;border-radius:20px;background:#dcfce7;color:#166534;font-weight:500;margin-left:auto}

/* Finance lock overlay */
.fin-ov{position:fixed;inset:0;background:rgba(8,15,35,.72);z-index:1000;
  display:flex;align-items:center;justify-content:center;backdrop-filter:blur(3px)}
.fin-modal{background:var(--white);border-radius:16px;width:100%;max-width:360px;
  overflow:hidden;box-shadow:0 24px 64px rgba(0,0,0,.45)}
.fin-modal-h{padding:16px 20px;background:linear-gradient(135deg,var(--navy2),var(--navy3));
  display:flex;align-items:center;gap:12px}
.fin-modal-hico{font-size:22px}
.fin-modal-ht{font-size:15px;font-weight:700;color:#fff}
.fin-modal-hs{font-size:10px;color:rgba(201,168,76,.8);margin-top:1px}
.fin-modal-b{padding:24px 22px 18px}
.fin-modal-lbl{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px;font-weight:500}
.fin-modal-f{padding:12px 20px;border-top:1px solid var(--border2);display:flex;gap:8px;justify-content:flex-end;background:var(--surface)}

/* Mobile Menu Toggle */
.menu-toggle{display:none;position:fixed;top:12px;left:12px;z-index:200;
  width:40px;height:40px;border-radius:8px;background:var(--navy2);
  border:1px solid rgba(201,168,76,.3);color:var(--gold);
  font-size:18px;cursor:pointer;align-items:center;justify-content:center}
.menu-toggle:hover{background:var(--navy3)}

/* Mobile Sidebar Overlay */
.sb-overlay{display:none;position:fixed;inset:0;background:rgba(8,15,35,.8);
  z-index:150;backdrop-filter:blur(2px)}
.sb-overlay.on{display:block}

@media(max-width:860px){.sb{width:185px}.krow{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){
  .sb{position:fixed;left:-220px;top:0;bottom:0;width:210px;z-index:160;
    transition:left .3s ease;box-shadow:4px 0 20px rgba(0,0,0,.3)}
  .sb.on{left:0}
  .sb{display:flex}
  .menu-toggle{display:flex}
  .krow{grid-template-columns:repeat(2,1fr)}
  .pg{padding:13px 13px 13px 55px}
  .g2,.g3{grid-template-columns:1fr}
  .pipe-summary-kpis{grid-template-columns:repeat(2,1fr)}
  .pipe-summary-grid{grid-template-columns:1fr}
  .pipe-follow-item{display:block}
  .pipe-follow-item em{display:block;margin-top:6px;white-space:normal}
  .att-capture{grid-template-columns:1fr}
  .att-export{justify-content:flex-start;width:100%;margin-top:10px}
  .pipeline-filters{grid-template-columns:1fr}
  .pipeline-kpi{grid-template-columns:repeat(2,1fr)}
  .audit-filters{grid-template-columns:1fr}
  .audit-filter-actions{justify-content:stretch}
  .audit-filter-actions .btn{flex:1;justify-content:center}
  .tb{padding-left:55px;gap:8px}
  .tb-t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .tb-r{min-width:0;overflow-x:auto;justify-content:flex-start;padding-bottom:2px}
  .tb-date{display:none}
  .tb-sv{display:none}
  .reminder-wrap{flex-shrink:0}
  .fg{grid-template-columns:1fr}
  .custom-row{grid-template-columns:1fr 1fr}
  .custom-row-head{display:none}
  .custom-total{max-width:none}
  .payment-head{display:block}
  .payment-summary{justify-content:flex-start;margin-top:10px}
  .pay-row,.pay-row-history,.pay-row-history.with-plan,.pay-plan-row{grid-template-columns:1fr}
  .pay-row-head{display:none}
  .doc-grid{grid-template-columns:1fr}
  .doc-row{align-items:flex-start;flex-direction:column}
  .doc-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}
  .doc-name,.doc-meta{max-width:100%}
  .project-logo-picker{grid-template-columns:1fr}
  .project-logo-preview{width:100%;max-width:160px}
}
