*,*::before,*::after{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:1rem;line-height:1.55;color:#172033;background:#f3f6fb}
h1,h2{font-family:Outfit,Inter,sans-serif;color:var(--green-deep);margin:0}
a{color:var(--green-dark)}
img{max-width:100%}
:focus-visible{outline:3px solid var(--orange);outline-offset:2px;border-radius:4px}
.skip{position:absolute;left:-999px;top:0;background:#fff;padding:.5rem 1rem;z-index:300}
.skip:focus{left:1rem;top:1rem}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

.sidebar{position:fixed;inset:0 auto 0 0;width:260px;background:var(--green-deep);color:#dbe6f8;display:flex;flex-direction:column;overflow-y:auto;z-index:50}
.sb-brand{display:flex;gap:.7rem;align-items:center;padding:1.1rem 1.1rem 1rem;text-decoration:none;color:#fff;font:800 1.2rem/1.1 Outfit,sans-serif;border-bottom:1px solid rgba(255,255,255,.12)}
.sb-brand img{height:44px;width:auto;background:#fff;border-radius:8px;padding:3px 5px}
.sb-brand small{display:block;font:500 .72rem Inter,sans-serif;color:#b3c6e6;margin-top:.2rem}
.sidebar nav{padding:.6rem .7rem;flex:1}
.sidebar nav a{display:flex;align-items:center;gap:.7rem;padding:.55rem .7rem;border-radius:8px;color:#dbe6f8;text-decoration:none;font-weight:500;font-size:.96rem}
.sidebar nav a i{width:1.1rem;text-align:center;color:#9db8e0}
.sidebar nav a:hover{background:rgba(255,255,255,.08)}
.sidebar nav a.on{background:var(--green);color:#fff}
.sidebar nav a.on i{color:#fff}
.sb-label{margin:1rem .7rem .3rem;font-size:.72rem;letter-spacing:.09em;text-transform:uppercase;color:#86a3d1}
.badge{margin-left:auto;background:var(--orange);color:#fff;font-size:.75rem;font-weight:700;border-radius:999px;padding:.05rem .5rem}
.sb-foot{padding:.8rem .9rem 1.1rem;border-top:1px solid rgba(255,255,255,.12);display:grid;gap:.5rem}
.sb-btn{display:flex;align-items:center;justify-content:center;gap:.5rem;width:100%;padding:.6rem;border-radius:8px;border:1px solid rgba(255,255,255,.25);background:transparent;color:#fff;text-decoration:none;font:600 .9rem Inter,sans-serif;cursor:pointer}
.sb-btn:hover{background:rgba(255,255,255,.1)}
.sb-btn.orange{background:var(--orange);border-color:var(--orange)}
.sb-btn.orange:hover{filter:brightness(.92)}
.content{margin-left:260px;padding:2rem 2.2rem 4rem;max-width:1180px}
.topbar{display:none}
.page-title{font-size:1.9rem;font-weight:800;margin-bottom:.4rem}
.lead-in{color:#566479;margin:.2rem 0 1.4rem;max-width:70ch}
.muted{color:#566479}
.crumb{margin:0 0 1rem}
@media (max-width:900px){
  .topbar{display:flex;align-items:center;gap:1rem;position:sticky;top:0;background:var(--green-deep);color:#fff;padding:.6rem 1rem;z-index:40}
  .topbar button{background:none;border:0;color:#fff;font-size:1.35rem;cursor:pointer;padding:.3rem .5rem}
  .topbar a{margin-left:auto;color:#fff}
  .sidebar{transform:translateX(-100%);transition:transform .25s;box-shadow:0 0 40px rgba(0,0,0,.4)}
  .sidebar.open{transform:none}
  .content{margin-left:0;padding:1.4rem 1rem 3rem}
}

.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.6rem 1.1rem;border-radius:9px;border:1.5px solid #c4d0e2;background:#fff;color:var(--green-deep);font:600 .95rem Inter,sans-serif;text-decoration:none;cursor:pointer}
.btn:hover{border-color:var(--green);background:var(--green-tint)}
.btn.primary{background:var(--green);border-color:var(--green);color:#fff}
.btn.primary:hover{background:var(--green-dark)}
.btn.orange{background:var(--orange);border-color:var(--orange);color:#fff}
.btn.danger{color:#b3261e;border-color:#e6b9b5}
.btn.danger:hover{background:#fdecea;border-color:#b3261e}
.btn.wide{width:100%;justify-content:center}
.toolbar{display:flex;gap:.7rem;flex-wrap:wrap;margin-bottom:1.1rem}
.toolbar form{margin:0}

.panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:1.5rem;margin-bottom:1.4rem}
.panel h2{font-size:1.15rem;margin-bottom:.9rem}
.panel h2.gap{margin-top:1.8rem}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:1.4rem}
@media (max-width:900px){.grid-2{grid-template-columns:1fr}}
.quick{display:flex;flex-wrap:wrap;gap:.6rem}
.stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:1rem;margin-bottom:1.5rem}
.stat{display:grid;gap:.1rem;background:#fff;border:1px solid var(--line);border-radius:14px;padding:1.1rem 1.2rem;text-decoration:none;color:#566479}
.stat i{color:var(--orange);font-size:1.3rem;margin-bottom:.3rem}
.stat b{font:800 2rem/1 Outfit,sans-serif;color:var(--green-deep)}
.stat:hover{border-color:var(--green)}
.stat.hot{border-color:var(--orange);background:#fff7f1}
.msg-list{list-style:none;margin:0 0 1rem;padding:0}
.msg-list li a{display:grid;grid-template-columns:1fr auto;gap:0 1rem;padding:.65rem 0;border-bottom:1px solid var(--line);text-decoration:none;color:#566479}
.msg-list li b{color:#172033}
.msg-list li span{grid-column:1}
.msg-list li time{grid-row:1;grid-column:2;font-size:.82rem}
.msg-list li.unread b::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--orange);margin-right:.5rem}
.msg-body{background:var(--green-tint);border-radius:10px;padding:1rem 1.2rem;margin:1rem 0 1.4rem;white-space:normal}

.table-wrap{background:#fff;border:1px solid var(--line);border-radius:14px;overflow-x:auto;margin-bottom:1.4rem}
.table{width:100%;border-collapse:collapse;min-width:620px}
.table th{text-align:left;font-size:.8rem;text-transform:uppercase;letter-spacing:.05em;color:#566479;padding:.8rem 1rem;background:var(--green-tint);border-bottom:1px solid var(--line)}
.table td{padding:.7rem 1rem;border-bottom:1px solid var(--line);vertical-align:middle}
.table tr:last-child td{border-bottom:0}
.table tr.dim td{opacity:.55}
.table tr.dim td:last-child{opacity:1}
.table tr.unread-row td{font-weight:600;background:#fffaf5}
.right{text-align:right}
.w-thumb{width:70px}
.thumb{width:56px;height:42px;object-fit:cover;border-radius:6px;display:block}
.pill{font-size:.78rem;font-weight:700;padding:.15rem .6rem;border-radius:999px}
.pill.on{background:#e1f4e7;color:#0f5a28}
.pill.off{background:#e7ebf2;color:#566277}
.tag{font-size:.7rem;font-weight:700;background:var(--green-tint);color:var(--green-dark);padding:.1rem .45rem;border-radius:6px;margin-left:.3rem;text-transform:uppercase;letter-spacing:.04em}
.row-actions{display:inline-flex;gap:.25rem;justify-content:flex-end;align-items:center}
.row-actions form{margin:0}
.icon-btn{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:8px;border:1px solid transparent;background:transparent;color:var(--green-deep);cursor:pointer;text-decoration:none;font-size:.9rem}
.icon-btn:hover{background:var(--green-tint);border-color:var(--line)}
.icon-btn.danger{color:#b3261e}
.icon-btn.danger:hover{background:#fdecea;border-color:#e6b9b5}
.icon-btn:disabled{opacity:.3;cursor:default;background:transparent}
.empty-state{text-align:center;padding:2.5rem}

.form .field{margin-bottom:1.15rem}
.form label{display:block;font-weight:600;margin-bottom:.35rem;color:var(--green-deep)}
.form label.check{display:flex;gap:.55rem;align-items:center;font-weight:500;color:#172033;margin:0}
.form label.check input{width:18px;height:18px;accent-color:var(--green)}
.form input[type=text],.form input[type=password],.form input[type=number],.form input[type=email],.form input[type=date],.form input:not([type]),.form select,.form textarea{width:100%;padding:.65rem .8rem;font:400 1rem Inter,sans-serif;border:1.5px solid #c4d0e2;border-radius:9px;background:#fff;color:#172033}
.form input:focus,.form select:focus,.form textarea:focus{outline:3px solid rgba(37,99,235,.3);border-color:var(--orange)}
.form input:disabled{background:#eef2f8;color:#566479}
.form input[type=file]{font:400 .95rem Inter,sans-serif}
.form input[type=color]{width:52px;height:40px;padding:2px;border:1.5px solid #c4d0e2;border-radius:8px;background:#fff;cursor:pointer}
.req{font-size:.7rem;font-weight:700;color:var(--orange);text-transform:uppercase;margin-left:.3rem}
.help{margin:.35rem 0 0;font-size:.88rem;color:#5f6d82}
.actions{display:flex;gap:.7rem;flex-wrap:wrap;margin-top:1.4rem}
.actions form{margin:0}
.narrow-form{max-width:560px}
.current-img{display:flex;align-items:center;gap:1rem;margin-bottom:.7rem;flex-wrap:wrap}
.current-img img{max-width:160px;max-height:110px;border-radius:8px;border:1px solid var(--line);background:#fff;object-fit:contain}
.current-img.logo img{max-height:120px}
.icon-pick{display:flex;gap:.6rem;align-items:center}
.icon-prev{flex:none;width:44px;height:44px;border-radius:50%;background:var(--orange);color:#fff;display:grid;place-items:center;font-size:1.1rem}
.color-row{display:flex;align-items:center;gap:.8rem}
.bulk h2{margin-bottom:.8rem}
.bulk-row{display:grid;grid-template-columns:1.4fr 1fr 1fr auto;gap:.7rem;align-items:center}
.bulk-row input[type=text]{padding:.6rem .8rem;border:1.5px solid #c4d0e2;border-radius:9px;font:400 1rem Inter,sans-serif;width:100%}
@media (max-width:900px){.bulk-row{grid-template-columns:1fr}}
.tabs{display:flex;gap:.3rem;flex-wrap:wrap;margin-bottom:1rem}
.tab{padding:.55rem 1rem;border-radius:999px;border:1.5px solid var(--line);background:#fff;font:600 .93rem Inter,sans-serif;color:var(--green-deep);cursor:pointer}
.tab.on{background:var(--green);color:#fff;border-color:var(--green)}
.flash{padding:.8rem 1rem;border-radius:10px;margin:0 0 1.2rem;font-weight:500}
.flash.ok{background:#e1f4e7;color:#0f5a28;border:1px solid #b6e0c4}
.flash.error{background:#fdecea;color:#8e1d16;border:1px solid #f0bdb8}
.ql-container{font:400 1rem Inter,sans-serif;min-height:180px;border-radius:0 0 9px 9px}
.ql-toolbar{border-radius:9px 9px 0 0;background:#fff}
.ql-editor{min-height:180px}

.login-body{min-height:100vh;display:grid;place-items:center;padding:1.5rem;background:var(--green-deep)}
.login-card{width:min(420px,100%);background:#fff;border-radius:18px;padding:2rem 1.8rem;text-align:center;box-shadow:0 30px 70px rgba(0,0,0,.35)}
.login-card.wide-card{width:min(520px,100%);text-align:left}
.login-card.wide-card img,.login-card.wide-card h1{text-align:center;margin-inline:auto}
.login-card img{height:110px;width:auto;margin:0 auto .6rem}
.login-card h1{font-size:1.7rem;font-weight:800}
.login-card>p{color:#566479;margin:.3rem 0 1.2rem}
.login-card .form{text-align:left}
.login-card .form h2{font-size:1.05rem;margin:1.2rem 0 .8rem}
.back-link{display:inline-block;margin-top:1.1rem;color:#566479;font-size:.92rem}

.callout{display:flex;align-items:center;gap:1rem;background:#fff;border:1px solid var(--orange);border-left-width:6px;border-radius:14px;padding:1rem 1.2rem;margin-bottom:1.4rem;flex-wrap:wrap}
.callout>i{font-size:1.6rem;color:var(--orange)}
.callout>div{flex:1;min-width:200px}
.callout p{margin:.1rem 0 0;color:#566479}

.filters{display:flex;gap:.6rem;flex-wrap:wrap;margin-bottom:1.1rem;align-items:center}
.filters input,.filters select{padding:.55rem .75rem;border:1.5px solid #c4d0e2;border-radius:9px;font:400 .95rem Inter,sans-serif;background:#fff}
.filters input[type=search]{min-width:240px}
.kv{display:grid;grid-template-columns:140px 1fr;gap:.45rem 1rem;margin:0}
.kv dt{color:#566479;font-weight:600}
.kv dd{margin:0}
.passport{width:110px;height:130px;object-fit:cover;border-radius:10px;border:1px solid var(--line);float:right;margin:0 0 1rem 1rem}
.proof{max-width:100%;max-height:260px;border-radius:10px;border:1px solid var(--line);margin-bottom:.8rem}
.mini{width:100%;border-collapse:collapse;margin-bottom:1rem}
.mini td{padding:.5rem 0;border-bottom:1px solid var(--line)}
.mini .r,.r{text-align:right}
.mini .tot td{font-weight:700;border-bottom:0;padding-top:.8rem}
.inline{display:flex;gap:.6rem;align-items:center}
.inline select{flex:1}
.small-num{font-size:1.4rem!important}
@media print{.sidebar,.topbar,.noprint,.toolbar{display:none!important}.content{margin:0;padding:0}body{background:#fff}.panel{border:0;padding:0}}
