/* Central UI stylesheet. Edit this file to update the whole application. */
@import url("./fonts.css");
@import url("./icons.css");
:root{--font-ui:"Cairo",Tahoma,Arial,sans-serif;--ui-green:#087f46;--ui-focus:#087f46;--ui-radius:12px;--ui-border:#dce6e1;--ui-text:#172b24;--ui-muted:#60736a}
html{font-family:var(--font-ui);text-size-adjust:100%;-webkit-text-size-adjust:100%}
body{font-family:var(--font-ui);font-size:14px;line-height:1.8}
*,*::before,*::after{box-sizing:border-box}
button,input,select,textarea{font-family:var(--font-ui)}
/* admin-admin_bootstrap */
:where(html[data-page="admin-admin_bootstrap"]){--navy:#0b1729;--navy2:#13263f;--green:#03af46;--green2:#08783d;--red:#d62828;--gold:#e9a400;--bg:#f3f6f9;--line:#dfe6ee;--text:#182334;--muted:#667085}
:where(html[data-page="admin-admin_bootstrap"]) *{box-sizing:border-box}
:where(html[data-page="admin-admin_bootstrap"]) body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font-ui);font-size:13px;line-height:1.6}
:where(html[data-page="admin-admin_bootstrap"]) .top{position:sticky;top:0;z-index:50;background:linear-gradient(135deg,var(--navy),var(--navy2));color:#fff;box-shadow:0 5px 22px #0b172933}
:where(html[data-page="admin-admin_bootstrap"]) .topin{max-width:1500px;margin:auto;min-height:74px;padding:9px 18px;display:flex;align-items:center;justify-content:space-between;gap:16px}
:where(html[data-page="admin-admin_bootstrap"]) .brandbox,:where(html[data-page="admin-admin_bootstrap"]) .logos{display:flex;align-items:center;gap:9px}
:where(html[data-page="admin-admin_bootstrap"]) .logos img{width:48px;height:48px;object-fit:contain;background:#fff;border-radius:11px;padding:3px}
:where(html[data-page="admin-admin_bootstrap"]) .brandtxt b{display:block;font-size:15px}
:where(html[data-page="admin-admin_bootstrap"]) .brandtxt span{font-size:12px;color:#cbd5e1}
:where(html[data-page="admin-admin_bootstrap"]) .logout{color:#fff;text-decoration:none;border:1px solid #ffffff33;padding:6px 9px;border-radius:8px;display:inline-block}
:where(html[data-page="admin-admin_bootstrap"]) .wrap{max-width:1500px;margin:auto;padding:14px 16px 30px}
:where(html[data-page="admin-admin_bootstrap"]) .nav{display:flex;gap:6px;overflow-x:auto;padding:2px 1px 10px}
:where(html[data-page="admin-admin_bootstrap"]) .nav a{flex:0 0 auto;padding:8px 10px;border-radius:10px;background:#fff;border:1px solid var(--line);text-decoration:none;color:#334155;white-space:nowrap}
:where(html[data-page="admin-admin_bootstrap"]) .nav a.active{background:var(--navy);color:#fff}
:where(html[data-page="admin-admin_bootstrap"]) .pagehead{margin:5px 0 13px}
:where(html[data-page="admin-admin_bootstrap"]) .pagehead h1{font-size:21px;margin:0}
:where(html[data-page="admin-admin_bootstrap"]) .pagehead small,:where(html[data-page="admin-admin_bootstrap"]) .muted{color:var(--muted);font-size:12px}
:where(html[data-page="admin-admin_bootstrap"]) .card,:where(html[data-page="admin-admin_bootstrap"]) .stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:15px;margin-bottom:12px;box-shadow:0 3px 12px #0f172a08}
:where(html[data-page="admin-admin_bootstrap"]) .grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}
:where(html[data-page="admin-admin_bootstrap"]) .stat .n{font-size:24px;font-weight:800;color:var(--navy)}
:where(html[data-page="admin-admin_bootstrap"]) .split{display:grid;grid-template-columns:2fr 1fr;gap:12px}
:where(html[data-page="admin-admin_bootstrap"]) .table-wrap{overflow:auto;border:1px solid #edf1f5;border-radius:10px}
:where(html[data-page="admin-admin_bootstrap"]) table{width:100%;border-collapse:collapse;background:#fff}
:where(html[data-page="admin-admin_bootstrap"]) th,:where(html[data-page="admin-admin_bootstrap"]) td{text-align:right;padding:9px;border-bottom:1px solid #edf0f4;vertical-align:middle;white-space:nowrap}
:where(html[data-page="admin-admin_bootstrap"]) th{font-size:12px;color:#64748b;background:#f8fafc}
:where(html[data-page="admin-admin_bootstrap"]) .btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;border:0;border-radius:9px;padding:8px 11px;cursor:pointer;text-decoration:none;font:inherit;font-weight:700;background:var(--navy);color:#fff}
:where(html[data-page="admin-admin_bootstrap"]) .btn.ok{background:var(--green2)}
:where(html[data-page="admin-admin_bootstrap"]) .btn.bad{background:var(--red)}
:where(html[data-page="admin-admin_bootstrap"]) .btn.light{background:#eef2f6;color:#263244}
:where(html[data-page="admin-admin_bootstrap"]) .btn.warn{background:#9a6800}
:where(html[data-page="admin-admin_bootstrap"]) .actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
:where(html[data-page="admin-admin_bootstrap"]) input,:where(html[data-page="admin-admin_bootstrap"]) select,:where(html[data-page="admin-admin_bootstrap"]) textarea{width:100%;padding:9px 10px;border:1px solid #d5dce6;border-radius:9px;font:inherit;background:#fff}
:where(html[data-page="admin-admin_bootstrap"]) .row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
:where(html[data-page="admin-admin_bootstrap"]) .row.two{grid-template-columns:repeat(2,minmax(0,1fr))}
:where(html[data-page="admin-admin_bootstrap"]) label{font-weight:700;font-size:12px}
:where(html[data-page="admin-admin_bootstrap"]) .badge{display:inline-block;padding:4px 7px;border-radius:999px;font-size:12px;font-weight:700}
:where(html[data-page="admin-admin_bootstrap"]) .badge.ok{background:#d7f5e5;color:#08784a}
:where(html[data-page="admin-admin_bootstrap"]) .badge.bad{background:#ffe1e1;color:#b42318}
:where(html[data-page="admin-admin_bootstrap"]) .badge.warn{background:#fff0c2;color:#8a5d00}
:where(html[data-page="admin-admin_bootstrap"]) .badge.info{background:#dbeafe;color:#1d4ed8}
:where(html[data-page="admin-admin_bootstrap"]) .flash{padding:11px;border-radius:10px;margin-bottom:12px;font-weight:700}
:where(html[data-page="admin-admin_bootstrap"]) .flash.ok{background:#d7f5e5;color:#08784a}
:where(html[data-page="admin-admin_bootstrap"]) .flash.bad{background:#ffe1e1;color:#b42318}
:where(html[data-page="admin-admin_bootstrap"]) .kv{display:grid;grid-template-columns:180px 1fr;gap:6px 10px}
:where(html[data-page="admin-admin_bootstrap"]) .pagination{display:flex;gap:6px;margin-top:10px;align-items:center}
:where(html[data-page="admin-admin_bootstrap"]) .pagination a{text-decoration:none}
:where(html[data-page="admin-admin_bootstrap"]) .filter{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;align-items:end}
:where(html[data-page="admin-admin_bootstrap"]) h2{font-size:16px;margin:0 0 10px}
@media(max-width:980px){:where(html[data-page="admin-admin_bootstrap"]) .grid{grid-template-columns:repeat(2,1fr)}
:where(html[data-page="admin-admin_bootstrap"]) .split{grid-template-columns:1fr}
:where(html[data-page="admin-admin_bootstrap"]) .filter{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){:where(html[data-page="admin-admin_bootstrap"]) .wrap{padding:9px}
:where(html[data-page="admin-admin_bootstrap"]) .grid,:where(html[data-page="admin-admin_bootstrap"]) .row,:where(html[data-page="admin-admin_bootstrap"]) .row.two,:where(html[data-page="admin-admin_bootstrap"]) .filter{grid-template-columns:1fr}
:where(html[data-page="admin-admin_bootstrap"]) .logos img{width:39px;height:39px}
:where(html[data-page="admin-admin_bootstrap"]) .brandtxt span{display:none}
:where(html[data-page="admin-admin_bootstrap"]) .topuser .name{display:none}}

/* admin-login */
:where(html[data-page="admin-login"]) body{margin:0;background:#f3f6f9;font-family:var(--font-ui);display:grid;place-items:center;min-height:100vh;color:#182334}
:where(html[data-page="admin-login"]) .box{width:min(420px,92vw);background:#fff;border:1px solid #dfe6ee;border-radius:18px;padding:26px;box-shadow:0 15px 40px #0b172922}
:where(html[data-page="admin-login"]) .logos{display:flex;justify-content:center;gap:8px}
:where(html[data-page="admin-login"]) .logos img{width:68px;height:68px;object-fit:contain}
:where(html[data-page="admin-login"]) .box h1{text-align:center;font-size:20px}
:where(html[data-page="admin-login"]) .box p{text-align:center;color:#667085;font-size:12px}
:where(html[data-page="admin-login"]) label{display:block;font-weight:700;font-size:12px;margin-top:12px}
:where(html[data-page="admin-login"]) input{width:100%;box-sizing:border-box;padding:11px;border:1px solid #d5dce6;border-radius:10px;margin-top:5px}
:where(html[data-page="admin-login"]) button{width:100%;margin-top:16px;padding:11px;border:0;border-radius:10px;background:#0b1729;color:#fff;font-weight:800}
:where(html[data-page="admin-login"]) .err{background:#ffe1e1;color:#b42318;padding:10px;border-radius:9px}

/* customers */
:where(html[data-page="customers"]){
    --green:#03AF46;--green-dark:#05642F;--deep:#0F2C25;--red:#DA0C11;
    --teal:#308E9E;--bg:#F6F8F7;--line:#e3ebe7;--gray:#64748b;--sidebar:260px
}
:where(html[data-page="customers"]) *{box-sizing:border-box;margin:0;padding:0;font-family:var(--font-ui)}
:where(html[data-page="customers"]) body{background:var(--bg);color:#17231f;min-height:100vh;overflow-x:hidden}
:where(html[data-page="customers"]) a{text-decoration:none;color:inherit}
:where(html[data-page="customers"]) button,:where(html[data-page="customers"]) input,:where(html[data-page="customers"]) select,:where(html[data-page="customers"]) textarea{font:inherit}
:where(html[data-page="customers"]) main{margin-right:var(--sidebar);width:calc(100% - var(--sidebar));padding:25px}
:where(html[data-page="customers"]) .head{background:#fff;border:1px solid var(--line);border-radius:17px;padding:18px 20px;margin-bottom:14px;display:flex;align-items:center;justify-content:space-between;gap:12px}
:where(html[data-page="customers"]) .head h1{font-size:19px;color:var(--deep)}
:where(html[data-page="customers"]) .head p{font-size:10.5px;color:var(--gray);margin-top:3px}
:where(html[data-page="customers"]) .head-actions{display:flex;gap:7px;flex-wrap:wrap}
:where(html[data-page="customers"]) .btn{border:0;border-radius:10px;padding:10px 14px;font-size:10.5px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px}
:where(html[data-page="customers"]) .btn-primary{background:var(--green);color:#fff}
:where(html[data-page="customers"]) .btn-light{background:#f1f5f9;color:#334155}
:where(html[data-page="customers"]) .btn-danger{background:#fef2f2;color:#b91c1c}
:where(html[data-page="customers"]) .btn:disabled{opacity:.45;cursor:not-allowed}
:where(html[data-page="customers"]) .alert{padding:12px 14px;border-radius:12px;margin-bottom:13px;border:1px solid;font-size:12px;line-height:1.8}
:where(html[data-page="customers"]) .alert-success{background:#f0fdf4;border-color:#bbf7d0;color:#166534}
:where(html[data-page="customers"]) .alert-error{background:#fef2f2;border-color:#fecaca;color:#991b1b}
:where(html[data-page="customers"]) .alert-limit{background:#fff7ed;border-color:#fed7aa;color:#9a3412}
:where(html[data-page="customers"]) .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}
:where(html[data-page="customers"]) .stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;display:flex;justify-content:space-between;align-items:center;gap:8px}
:where(html[data-page="customers"]) .stat span{font-size:12px;color:#94a3b8}
:where(html[data-page="customers"]) .stat strong{display:block;font-size:17px;color:var(--deep);margin-top:2px}
:where(html[data-page="customers"]) .stat-icon{width:39px;height:39px;border-radius:11px;background:#effcf5;color:var(--green-dark);display:grid;place-items:center}
:where(html[data-page="customers"]) .stat.red .stat-icon{background:#fef2f2;color:var(--red)}
:where(html[data-page="customers"]) .panel{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 3px 12px rgba(15,44,37,.025)}
:where(html[data-page="customers"]) .filters{padding:13px;display:grid;grid-template-columns:minmax(190px,1fr) repeat(3,150px) auto;gap:8px;border-bottom:1px solid #edf2ef}
:where(html[data-page="customers"]) .control{width:100%;height:40px;border:1px solid #dce5e0;border-radius:9px;background:#fff;padding:0 10px;outline:none;font-size:12px}
:where(html[data-page="customers"]) .control:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(3,175,70,.07)}
:where(html[data-page="customers"]) .search-wrap{position:relative}
:where(html[data-page="customers"]) .search-wrap i{position:absolute;right:11px;top:50%;transform:translateY(-50%);color:#94a3b8;font-size:12px}
:where(html[data-page="customers"]) .search-wrap input{padding-right:31px}
:where(html[data-page="customers"]) .table-wrap{overflow:auto}
:where(html[data-page="customers"]) table{width:100%;border-collapse:collapse;min-width:920px}
:where(html[data-page="customers"]) th,:where(html[data-page="customers"]) td{text-align:right;padding:11px 10px;border-bottom:1px solid #eef2f0;font-size:12px;white-space:nowrap}
:where(html[data-page="customers"]) th{font-size:12px;color:#64748b;background:#fafcfb}
:where(html[data-page="customers"]) tr:last-child td{border-bottom:0}
:where(html[data-page="customers"]) tbody tr:hover{background:#fbfdfc}
:where(html[data-page="customers"]) .avatar{width:34px;height:34px;border-radius:50%;background:#eafaf1;color:var(--green-dark);display:grid;place-items:center;font-weight:800;font-size:12px;flex:0 0 auto}
:where(html[data-page="customers"]) .customer-cell{display:flex;align-items:center;gap:8px}
:where(html[data-page="customers"]) .customer-name{font-weight:800;font-size:10.5px}
:where(html[data-page="customers"]) .customer-sub{font-size:12px;color:#94a3b8;margin-top:1px}
:where(html[data-page="customers"]) .debt{font-weight:800;color:var(--red)}
:where(html[data-page="customers"]) .clear-debt{font-weight:800;color:#166534}
:where(html[data-page="customers"]) .tag{display:inline-block;border-radius:999px;padding:3px 7px;font-size:12px;font-weight:800;background:#f1f5f9;color:#475569}
:where(html[data-page="customers"]) .tag.archived{background:#fef2f2;color:#991b1b}
:where(html[data-page="customers"]) .tag.permanent{background:#ecfdf3;color:#166534}
:where(html[data-page="customers"]) .actions{display:flex;gap:4px}
:where(html[data-page="customers"]) .icon-btn{width:31px;height:31px;border:0;border-radius:8px;display:grid;place-items:center;background:#f1f5f9;color:#475569;cursor:pointer}
:where(html[data-page="customers"]) .icon-btn.green{background:#ecfdf3;color:#166534}
:where(html[data-page="customers"]) .icon-btn.red{background:#fef2f2;color:#b91c1c}
:where(html[data-page="customers"]) .pagination{padding:12px;display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap;border-top:1px solid #edf2ef}
:where(html[data-page="customers"]) .page-link{min-width:32px;height:32px;padding:0 8px;border:1px solid #dce5e0;border-radius:8px;display:grid;place-items:center;font-size:12px;background:#fff}
:where(html[data-page="customers"]) .page-link.active{background:var(--green);color:#fff;border-color:var(--green)}
:where(html[data-page="customers"]) .page-link.disabled{opacity:.45;pointer-events:none}
:where(html[data-page="customers"]) .page-info{font-size:12px;color:#64748b;margin-left:7px}
:where(html[data-page="customers"]) .empty{text-align:center;padding:45px 15px;color:#94a3b8;font-size:10.5px}
:where(html[data-page="customers"]) .empty i{font-size:30px;display:block;margin-bottom:8px;color:#cbd5e1}
:where(html[data-page="customers"]) .modal-bg{position:fixed;inset:0;background:rgba(0,0,0,.58);z-index:12000;display:none;align-items:center;justify-content:center;padding:16px}
:where(html[data-page="customers"]) .modal-bg.show{display:flex}
:where(html[data-page="customers"]) .modal{width:min(560px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:18px;box-shadow:0 25px 70px rgba(0,0,0,.25)}
:where(html[data-page="customers"]) .modal-head{padding:16px 18px;border-bottom:1px solid #edf2ef;display:flex;justify-content:space-between;align-items:center}
:where(html[data-page="customers"]) .modal-head h2{font-size:15px;color:var(--deep)}
:where(html[data-page="customers"]) .close{border:0;background:#f1f5f9;width:32px;height:32px;border-radius:8px;cursor:pointer}
:where(html[data-page="customers"]) .modal-body{padding:17px}
:where(html[data-page="customers"]) .form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:11px}
:where(html[data-page="customers"]) .full{grid-column:1/-1}
:where(html[data-page="customers"]) .lbl{display:block;font-size:9.5px;font-weight:800;color:#475569;margin-bottom:5px}
:where(html[data-page="customers"]) textarea.control{height:78px;padding:9px;resize:vertical}
:where(html[data-page="customers"]) .modal-actions{display:flex;gap:8px;margin-top:16px;padding-top:14px;border-top:1px solid #edf2ef}
:where(html[data-page="customers"]) .modal-actions .btn-primary{flex:1}
:where(html[data-page="customers"]) .profile{width:min(720px,100%)}
:where(html[data-page="customers"]) .profile-top{padding:17px;display:flex;justify-content:space-between;gap:12px;align-items:flex-start;border-bottom:1px solid #edf2ef}
:where(html[data-page="customers"]) .profile-id{display:flex;gap:10px;align-items:center}
:where(html[data-page="customers"]) .profile-id .avatar{width:48px;height:48px;font-size:15px}
:where(html[data-page="customers"]) .profile-id h3{font-size:14px;color:var(--deep)}
:where(html[data-page="customers"]) .profile-id p{font-size:12px;color:#94a3b8;margin-top:2px}
:where(html[data-page="customers"]) .profile-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:13px 17px}
:where(html[data-page="customers"]) .profile-stat{background:#f8faf9;border-radius:10px;padding:9px;text-align:center}
:where(html[data-page="customers"]) .profile-stat span{display:block;font-size:12px;color:#94a3b8}
:where(html[data-page="customers"]) .profile-stat strong{font-size:12px}
:where(html[data-page="customers"]) .profile-section{padding:0 17px 15px}
:where(html[data-page="customers"]) .profile-section h4{font-size:10.5px;margin:8px 0;color:var(--deep)}
:where(html[data-page="customers"]) .history{border:1px solid #e8eeeb;border-radius:10px;overflow:hidden}
:where(html[data-page="customers"]) .history-row{padding:8px 10px;border-bottom:1px solid #eef2f0;display:flex;justify-content:space-between;gap:8px;font-size:12px}
:where(html[data-page="customers"]) .history-row:last-child{border:0}
:where(html[data-page="customers"]) .history-row strong{font-size:9.5px}
:where(html[data-page="customers"]) .history-row small{color:#94a3b8}
:where(html[data-page="customers"]) .confirm{text-align:center;padding:22px}
:where(html[data-page="customers"]) .confirm-icon{width:55px;height:55px;border-radius:50%;background:#fff7ed;color:#c2410c;display:grid;place-items:center;font-size:22px;margin:0 auto 10px}
:where(html[data-page="customers"]) .confirm h2{font-size:16px;color:var(--deep)}
:where(html[data-page="customers"]) .confirm p{font-size:10.5px;color:#64748b;line-height:1.8;margin-top:6px}
@media(max-width:1150px){:where(html[data-page="customers"]) .stats{grid-template-columns:repeat(2,1fr)}
:where(html[data-page="customers"]) .filters{grid-template-columns:1fr 1fr 1fr}
:where(html[data-page="customers"]) .search-wrap{grid-column:1/-1}}
@media(max-width:992px){:where(html[data-page="customers"]) main{margin-right:0;width:100%;padding:72px 13px 18px}}
@media(max-width:650px){:where(html[data-page="customers"]) .head{padding:14px}
:where(html[data-page="customers"]) .head h1{font-size:16px}
:where(html[data-page="customers"]) .head p{font-size:12px}
:where(html[data-page="customers"]) .stats{gap:7px}
:where(html[data-page="customers"]) .stat{padding:11px}
:where(html[data-page="customers"]) .stat strong{font-size:14px}
:where(html[data-page="customers"]) .filters{grid-template-columns:1fr}
:where(html[data-page="customers"]) .search-wrap{grid-column:auto}
:where(html[data-page="customers"]) .form-grid{grid-template-columns:1fr}
:where(html[data-page="customers"]) .full{grid-column:auto}
:where(html[data-page="customers"]) .profile-stats{grid-template-columns:1fr}
:where(html[data-page="customers"]) .modal-actions{flex-direction:column-reverse}
:where(html[data-page="customers"]) .modal-actions .btn{width:100%}}

/* dashboard */
:where(html[data-page="dashboard"]){
    --green:#03AF46;
    --green-dark:#05642F;
    --deep:#0F2C25;
    --red:#DA0C11;
    --teal:#308E9E;
    --charcoal:#2D2C30;
    --mint:#D7FFF0;
    --white:#fff;
    --gray:#64748b;
    --bg:#F6F8F7;
    --line:#e5e7eb;
    --orange:#d97706;
    --blue:#2563eb;
    --sidebar:260px;
}
:where(html[data-page="dashboard"]) *{box-sizing:border-box;margin:0;padding:0;font-family:var(--font-ui)}
:where(html[data-page="dashboard"]) body{background:var(--bg);color:#172033;min-height:100vh;overflow-x:hidden}
:where(html[data-page="dashboard"]) a{text-decoration:none}
:where(html[data-page="dashboard"]) main{margin-right:var(--sidebar);padding:26px;width:calc(100% - var(--sidebar))}
:where(html[data-page="dashboard"]) .topbar{background:#fff;border:1px solid #edf0f3;border-radius:16px;padding:19px 22px;margin-bottom:18px;display:flex;align-items:center;justify-content:space-between;gap:15px;box-shadow:0 3px 12px rgba(15,23,42,.035)}
:where(html[data-page="dashboard"]) .topbar h1{font-size:20px;margin-bottom:3px;color:var(--deep)}
:where(html[data-page="dashboard"]) .topbar p{font-size:12px;color:var(--gray)}
:where(html[data-page="dashboard"]) .status-pill{white-space:nowrap;border-radius:999px;padding:8px 13px;font-size:12px;font-weight:800}
:where(html[data-page="dashboard"]) .status-active{background:#dcfce7;color:#166534}
:where(html[data-page="dashboard"]) .status-trial{background:#e0f2fe;color:#075985}
:where(html[data-page="dashboard"]) .status-ended{background:#fee2e2;color:#991b1b}
:where(html[data-page="dashboard"]) .notice{border-radius:13px;padding:14px 17px;margin-bottom:18px;font-size:13px;line-height:1.8;border:1px solid}
:where(html[data-page="dashboard"]) .notice.success{background:#f0fdf4;color:#166534;border-color:#bbf7d0}
:where(html[data-page="dashboard"]) .notice.trial{background:#eff6ff;color:#1e40af;border-color:#bfdbfe}
:where(html[data-page="dashboard"]) .notice.ended{background:#fff7ed;color:#9a3412;border-color:#fed7aa}
:where(html[data-page="dashboard"]) .notice a{font-weight:800;color:inherit;text-decoration:underline}
:where(html[data-page="dashboard"]) .section-title{font-size:15px;font-weight:800;margin:7px 0 12px;color:var(--deep);display:flex;align-items:center;justify-content:space-between;gap:10px}
:where(html[data-page="dashboard"]) .section-title a{font-size:12px;color:var(--green-dark)}
:where(html[data-page="dashboard"]) .stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:22px}
:where(html[data-page="dashboard"]) .stat-card{background:#fff;border:1px solid #edf0f3;border-radius:14px;padding:17px;display:flex;align-items:center;justify-content:space-between;min-width:0;box-shadow:0 3px 12px rgba(15,23,42,.03)}
:where(html[data-page="dashboard"]) .stat-card .label{font-size:11.5px;color:var(--gray);margin-bottom:4px}
:where(html[data-page="dashboard"]) .stat-card .number{font-size:21px;font-weight:800;line-height:1.3;color:var(--deep)}
:where(html[data-page="dashboard"]) .stat-card .sub{font-size:10.5px;color:#94a3b8;margin-top:4px}
:where(html[data-page="dashboard"]) .stat-icon{width:43px;height:43px;border-radius:12px;display:grid;place-items:center;font-size:18px;background:#f1f5f9;color:#64748b;flex:0 0 auto;margin-right:10px}
:where(html[data-page="dashboard"]) .stat-icon.green{background:#ecfdf3;color:var(--green-dark)}
:where(html[data-page="dashboard"]) .stat-icon.red{background:#fef2f2;color:var(--red)}
:where(html[data-page="dashboard"]) .stat-icon.blue{background:#eff6ff;color:var(--blue)}
:where(html[data-page="dashboard"]) .stat-icon.teal{background:#ecfeff;color:var(--teal)}
:where(html[data-page="dashboard"]) .quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:23px}
:where(html[data-page="dashboard"]) .quick-card{background:#fff;border:1px solid #e8edf2;border-radius:14px;padding:16px;color:#172033;display:flex;gap:12px;align-items:center;transition:.18s;min-height:84px}
:where(html[data-page="dashboard"]) .quick-card:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(15,23,42,.07);border-color:#d7dee7}
:where(html[data-page="dashboard"]) .quick-card .qicon{width:43px;height:43px;border-radius:12px;background:#f1f5f9;display:grid;place-items:center;font-size:18px;flex:0 0 auto;color:var(--green-dark)}
:where(html[data-page="dashboard"]) .quick-card h3{font-size:12.5px;margin-bottom:3px}
:where(html[data-page="dashboard"]) .quick-card p{font-size:10.5px;color:var(--gray);line-height:1.5}
:where(html[data-page="dashboard"]) .quick-card.disabled{opacity:.55;cursor:not-allowed;background:#f8fafc}
:where(html[data-page="dashboard"]) .quick-card.disabled:hover{transform:none;box-shadow:none}
:where(html[data-page="dashboard"]) .content-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.8fr);gap:14px;margin-bottom:22px}
:where(html[data-page="dashboard"]) .panel{background:#fff;border:1px solid #edf0f3;border-radius:15px;padding:17px;box-shadow:0 3px 12px rgba(15,23,42,.025);min-width:0}
:where(html[data-page="dashboard"]) .table-wrap{overflow-x:auto}
:where(html[data-page="dashboard"]) table{width:100%;border-collapse:collapse;min-width:660px}
:where(html[data-page="dashboard"]) th,:where(html[data-page="dashboard"]) td{text-align:right;padding:11px 9px;border-bottom:1px solid #eef2f5;font-size:11.5px;white-space:nowrap}
:where(html[data-page="dashboard"]) th{color:#64748b;font-weight:700;background:#fafbfc}
:where(html[data-page="dashboard"]) td{color:#334155}
:where(html[data-page="dashboard"]) tr:last-child td{border-bottom:0}
:where(html[data-page="dashboard"]) .amount{font-weight:800;color:var(--deep)}
:where(html[data-page="dashboard"]) .status-small{display:inline-block;padding:4px 8px;border-radius:999px;font-size:9.5px;font-weight:800}
:where(html[data-page="dashboard"]) .op-paid{background:#dcfce7;color:#166534}
:where(html[data-page="dashboard"]) .op-partial{background:#fff7ed;color:#9a3412}
:where(html[data-page="dashboard"]) .op-unpaid{background:#fee2e2;color:#991b1b}
:where(html[data-page="dashboard"]) .op-cancelled{background:#f1f5f9;color:#64748b}
:where(html[data-page="dashboard"]) .empty-state{text-align:center;padding:30px 15px;color:#94a3b8;font-size:12px}
:where(html[data-page="dashboard"]) .empty-state i{font-size:28px;display:block;margin-bottom:9px;color:#cbd5e1}
:where(html[data-page="dashboard"]) .debtor-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid #eef2f5}
:where(html[data-page="dashboard"]) .debtor-item:last-child{border-bottom:0}
:where(html[data-page="dashboard"]) .debtor-name{font-size:12px;font-weight:800;color:#334155}
:where(html[data-page="dashboard"]) .debtor-meta{font-size:12px;color:#94a3b8;margin-top:2px}
:where(html[data-page="dashboard"]) .debtor-amount{font-size:12px;font-weight:800;color:var(--red);white-space:nowrap}
:where(html[data-page="dashboard"]) .usage-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-bottom:22px}
:where(html[data-page="dashboard"]) .usage-card{background:#fff;border:1px solid #edf0f3;border-radius:14px;padding:16px}
:where(html[data-page="dashboard"]) .usage-head{display:flex;justify-content:space-between;gap:10px;margin-bottom:10px;font-size:12px}
:where(html[data-page="dashboard"]) .usage-head strong{font-size:12px;color:var(--deep)}
:where(html[data-page="dashboard"]) .progress{height:7px;border-radius:999px;background:#edf2f0;overflow:hidden}
:where(html[data-page="dashboard"]) .progress > span{display:block;height:100%;background:var(--green);border-radius:999px}
:where(html[data-page="dashboard"]) .usage-note{font-size:12px;color:#94a3b8;margin-top:7px}
:where(html[data-page="dashboard"]) .modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.62);z-index:12000;display:flex;align-items:center;justify-content:center;padding:18px}
:where(html[data-page="dashboard"]) .modal{width:min(520px,100%);background:#fff;border-radius:18px;padding:25px;box-shadow:0 25px 70px rgba(0,0,0,.25);text-align:center}
:where(html[data-page="dashboard"]) .modal-icon{width:62px;height:62px;margin:0 auto 14px;border-radius:50%;display:grid;place-items:center;background:#dcfce7;color:var(--green-dark);font-size:27px}
:where(html[data-page="dashboard"]) .modal h2{font-size:20px;margin-bottom:9px;color:var(--deep)}
:where(html[data-page="dashboard"]) .modal p{font-size:13px;color:#475569;line-height:1.9}
:where(html[data-page="dashboard"]) .modal strong{color:#111}
:where(html[data-page="dashboard"]) .modal-actions{display:flex;gap:9px;margin-top:19px}
:where(html[data-page="dashboard"]) .btn{border:0;border-radius:10px;padding:11px 16px;font-weight:800;font-size:13px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px}
:where(html[data-page="dashboard"]) .btn-primary{background:var(--green);color:#fff;flex:1}
:where(html[data-page="dashboard"]) .btn-secondary{background:#f1f5f9;color:#334155}
@media(max-width:1200px){:where(html[data-page="dashboard"]) .stats-grid,:where(html[data-page="dashboard"]) .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:992px){:where(html[data-page="dashboard"]) main{margin-right:0;width:100%;padding:16px 13px}
:where(html[data-page="dashboard"]) .topbar{margin-top:52px}
:where(html[data-page="dashboard"]) .content-grid{grid-template-columns:1fr}}
@media(max-width:650px){:where(html[data-page="dashboard"]) .topbar{padding:15px;align-items:flex-start}
:where(html[data-page="dashboard"]) .topbar h1{font-size:17px}
:where(html[data-page="dashboard"]) .status-pill{font-size:12px;padding:7px 9px}
:where(html[data-page="dashboard"]) .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
:where(html[data-page="dashboard"]) .stat-card{padding:13px}
:where(html[data-page="dashboard"]) .stat-card .number{font-size:17px}
:where(html[data-page="dashboard"]) .stat-icon{width:35px;height:35px;font-size:15px}
:where(html[data-page="dashboard"]) .quick-grid,:where(html[data-page="dashboard"]) .usage-grid{grid-template-columns:1fr;gap:9px}
:where(html[data-page="dashboard"]) .quick-card{min-height:72px;padding:13px}
:where(html[data-page="dashboard"]) .modal{padding:21px 17px}
:where(html[data-page="dashboard"]) .modal-actions{flex-direction:column}}

/* debts */
:where(html[data-page="debts"]){--green:#03AF46;--green2:#05642F;--deep:#0F2C25;--red:#DA0C11;--orange:#d97706;--teal:#308E9E;--bg:#F6F8F7;--line:#e3ebe7;--gray:#64748b;--sidebar:260px}
:where(html[data-page="debts"]) *{box-sizing:border-box;margin:0;padding:0;font-family:var(--font-ui)}
:where(html[data-page="debts"]) body{background:var(--bg);color:#17231f;min-height:100vh;overflow-x:hidden}
:where(html[data-page="debts"]) a{text-decoration:none;color:inherit}
:where(html[data-page="debts"]) button,:where(html[data-page="debts"]) input,:where(html[data-page="debts"]) select,:where(html[data-page="debts"]) textarea{font:inherit}
:where(html[data-page="debts"]) main{margin-right:var(--sidebar);width:calc(100% - var(--sidebar));padding:25px}
:where(html[data-page="debts"]) .head{background:#fff;border:1px solid var(--line);border-radius:17px;padding:18px 20px;margin-bottom:14px;display:flex;justify-content:space-between;align-items:center;gap:12px}
:where(html[data-page="debts"]) .head h1{font-size:19px;color:var(--deep)}
:where(html[data-page="debts"]) .head p{font-size:10.5px;color:var(--gray);margin-top:3px}
:where(html[data-page="debts"]) .head-actions{display:flex;gap:7px;flex-wrap:wrap}
:where(html[data-page="debts"]) .btn{border:0;border-radius:10px;padding:10px 14px;font-size:10.5px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px}
:where(html[data-page="debts"]) .primary{background:var(--green);color:#fff}
:where(html[data-page="debts"]) .light{background:#f1f5f9;color:#334155}
:where(html[data-page="debts"]) .danger{background:#fee2e2;color:#991b1b}
:where(html[data-page="debts"]) .teal{background:#eef9fb;color:#257786}
:where(html[data-page="debts"]) .dark{background:var(--deep);color:#fff}
:where(html[data-page="debts"]) .btn:disabled{opacity:.45;cursor:not-allowed}
:where(html[data-page="debts"]) .alert{border:1px solid;border-radius:12px;padding:12px 14px;margin-bottom:13px;font-size:12px;line-height:1.8}
:where(html[data-page="debts"]) .error{background:#fef2f2;border-color:#fecaca;color:#991b1b}
:where(html[data-page="debts"]) .success{background:#f0fdf4;border-color:#bbf7d0;color:#166534}
:where(html[data-page="debts"]) .stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-bottom:14px}
:where(html[data-page="debts"]) .stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px}
:where(html[data-page="debts"]) .stat span{font-size:8.5px;color:#94a3b8;display:block}
:where(html[data-page="debts"]) .stat strong{font-size:15px;color:var(--deep);display:block;margin-top:3px}
:where(html[data-page="debts"]) .stat.red strong{color:var(--red)}
:where(html[data-page="debts"]) .stat.green strong{color:#166534}
:where(html[data-page="debts"]) .panel{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 3px 12px rgba(15,44,37,.025)}
:where(html[data-page="debts"]) .filters{padding:13px;display:grid;grid-template-columns:minmax(190px,1fr) 155px 155px auto;gap:8px;border-bottom:1px solid #edf2ef}
:where(html[data-page="debts"]) .control{width:100%;height:40px;border:1px solid #dce5e0;border-radius:9px;background:#fff;padding:0 10px;outline:none;font-size:12px}
:where(html[data-page="debts"]) .control:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(3,175,70,.07)}
:where(html[data-page="debts"]) textarea.control{height:78px;padding:9px;resize:vertical}
:where(html[data-page="debts"]) .search{position:relative}
:where(html[data-page="debts"]) .search i{position:absolute;right:11px;top:50%;transform:translateY(-50%);color:#94a3b8}
:where(html[data-page="debts"]) .search input{padding-right:31px}
:where(html[data-page="debts"]) .table-wrap{width:100%;overflow:hidden}
:where(html[data-page="debts"]) table{width:100%;border-collapse:collapse;table-layout:fixed}
:where(html[data-page="debts"]) th,:where(html[data-page="debts"]) td{padding:11px 10px;border-bottom:1px solid #eef2f0;text-align:right;font-size:9.7px;vertical-align:middle}
:where(html[data-page="debts"]) th{background:#fafcfb;color:#64748b;font-size:8.7px}
:where(html[data-page="debts"]) tbody tr:hover{background:#fbfdfc}
:where(html[data-page="debts"]) .name{font-weight:800;font-size:10.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:where(html[data-page="debts"]) .sub{font-size:12px;color:#94a3b8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:where(html[data-page="debts"]) .amount{font-weight:800}
:where(html[data-page="debts"]) .remaining{font-weight:800;color:var(--red)}
:where(html[data-page="debts"]) .status{display:inline-block;border-radius:999px;padding:3px 7px;font-size:12px;font-weight:800;white-space:nowrap}
:where(html[data-page="debts"]) .paid{background:#dcfce7;color:#166534}
:where(html[data-page="debts"]) .partial{background:#fff7ed;color:#9a3412}
:where(html[data-page="debts"]) .unpaid{background:#fee2e2;color:#991b1b}
:where(html[data-page="debts"]) .cancelled{background:#f1f5f9;color:#64748b}
:where(html[data-page="debts"]) .actions{display:flex;gap:4px}
:where(html[data-page="debts"]) .icon{width:32px;height:32px;border:0;border-radius:8px;display:grid;place-items:center;background:#f1f5f9;color:#475569;cursor:pointer}
:where(html[data-page="debts"]) .icon:hover{background:#e2e8f0}
:where(html[data-page="debts"]) .empty{text-align:center;padding:48px;color:#94a3b8;font-size:10.5px}
:where(html[data-page="debts"]) .empty i{display:block;font-size:31px;margin-bottom:8px;color:#cbd5e1}
:where(html[data-page="debts"]) .pagination{display:flex;justify-content:center;align-items:center;gap:5px;padding:14px;border-top:1px solid #edf2ef;flex-wrap:wrap}
:where(html[data-page="debts"]) .page-link{min-width:34px;height:34px;padding:0 9px;border:1px solid #e2e8f0;border-radius:8px;display:grid;place-items:center;font-size:9.5px;font-weight:800;background:#fff;color:#475569}
:where(html[data-page="debts"]) .page-link.active{background:var(--green);border-color:var(--green);color:#fff}
:where(html[data-page="debts"]) .page-link.disabled{opacity:.4;pointer-events:none}
:where(html[data-page="debts"]) .page-info{font-size:8.5px;color:#94a3b8;margin:0 5px}
:where(html[data-page="debts"]) .modal-bg{position:fixed;inset:0;background:rgba(0,0,0,.58);z-index:12000;display:none;align-items:center;justify-content:center;padding:16px}
:where(html[data-page="debts"]) .modal-bg.show{display:flex}
:where(html[data-page="debts"]) #detailModal{z-index:12000}
:where(html[data-page="debts"]) #paymentModal,:where(html[data-page="debts"]) #editModal,:where(html[data-page="debts"]) #permanentModal,:where(html[data-page="debts"]) #archiveModal{z-index:13000}
:where(html[data-page="debts"]) .modal{width:min(520px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:18px;box-shadow:0 25px 70px rgba(0,0,0,.25)}
:where(html[data-page="debts"]) .modal.wide{width:min(760px,100%)}
:where(html[data-page="debts"]) .modal-head{padding:16px 18px;border-bottom:1px solid #edf2ef;display:flex;justify-content:space-between;align-items:center;gap:10px;position:sticky;top:0;background:#fff;z-index:3}
:where(html[data-page="debts"]) .modal-head h2{font-size:15px;color:var(--deep)}
:where(html[data-page="debts"]) .close{border:0;background:#f1f5f9;width:32px;height:32px;border-radius:8px;display:grid;place-items:center;cursor:pointer;flex:0 0 auto}
:where(html[data-page="debts"]) .modal-body{padding:17px}
:where(html[data-page="debts"]) .grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
:where(html[data-page="debts"]) .full{grid-column:1/-1}
:where(html[data-page="debts"]) .lbl{display:block;font-size:9.5px;font-weight:800;color:#475569;margin-bottom:5px}
:where(html[data-page="debts"]) .payment-hero{background:#f8faf9;border:1px solid #e5ece8;border-radius:12px;padding:12px;margin-bottom:13px;display:flex;justify-content:space-between;gap:10px}
:where(html[data-page="debts"]) .payment-hero span{font-size:8.5px;color:#94a3b8;display:block}
:where(html[data-page="debts"]) .payment-hero strong{font-size:14px;color:var(--red)}
:where(html[data-page="debts"]) .pay-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:12px}
:where(html[data-page="debts"]) .pay-summary div{background:#f8faf9;border-radius:9px;padding:8px;text-align:center}
:where(html[data-page="debts"]) .pay-summary span{font-size:7.5px;color:#94a3b8;display:block}
:where(html[data-page="debts"]) .pay-summary strong{font-size:10.5px}
:where(html[data-page="debts"]) .modal-actions{display:flex;gap:7px;margin-top:15px;padding-top:13px;border-top:1px solid #edf2ef;flex-wrap:wrap}
:where(html[data-page="debts"]) .modal-actions .grow{flex:1}
:where(html[data-page="debts"]) .invoice{background:#fff}
:where(html[data-page="debts"]) .invoice-brand{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px;border-bottom:1px solid #edf2ef}
:where(html[data-page="debts"]) .invoice-brand img{width:52px;height:52px;object-fit:contain}
:where(html[data-page="debts"]) .invoice-brand h3{font-size:15px;color:var(--deep)}
:where(html[data-page="debts"]) .invoice-brand p{font-size:8.5px;color:#94a3b8}
:where(html[data-page="debts"]) .detail-top{padding:15px 17px;display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #edf2ef}
:where(html[data-page="debts"]) .detail-top h3{font-size:14px}
:where(html[data-page="debts"]) .detail-top p{font-size:8.5px;color:#94a3b8;margin-top:2px}
:where(html[data-page="debts"]) .detail-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:13px 17px}
:where(html[data-page="debts"]) .detail-stat{background:#f8faf9;border-radius:9px;padding:9px;text-align:center}
:where(html[data-page="debts"]) .detail-stat span{display:block;font-size:7.5px;color:#94a3b8}
:where(html[data-page="debts"]) .detail-stat strong{font-size:10.5px}
:where(html[data-page="debts"]) .meta-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;padding:0 17px 13px}
:where(html[data-page="debts"]) .meta{border:1px solid #edf2ef;border-radius:9px;padding:8px}
:where(html[data-page="debts"]) .meta span{display:block;font-size:7.5px;color:#94a3b8}
:where(html[data-page="debts"]) .meta strong{display:block;font-size:9.5px;margin-top:2px;word-break:break-word}
:where(html[data-page="debts"]) .section{padding:0 17px 15px}
:where(html[data-page="debts"]) .section h4{font-size:10.5px;margin:8px 0;color:var(--deep)}
:where(html[data-page="debts"]) .history{border:1px solid #e7eeea;border-radius:10px;overflow:hidden}
:where(html[data-page="debts"]) .history-row{padding:9px 10px;border-bottom:1px solid #eef2f0;display:flex;justify-content:space-between;gap:8px;font-size:12px}
:where(html[data-page="debts"]) .history-row:last-child{border:0}
:where(html[data-page="debts"]) .history-row small{display:block;color:#94a3b8;font-size:12px}
:where(html[data-page="debts"]) .history-row strong{font-size:9.5px}
:where(html[data-page="debts"]) .detail-actions{padding:14px 17px;border-top:1px solid #edf2ef;background:#fafcfb}
:where(html[data-page="debts"]) .detail-actions h4{font-size:12px;margin-bottom:8px}
:where(html[data-page="debts"]) .action-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
:where(html[data-page="debts"]) .action-btn{border:1px solid #e2e8f0;background:#fff;border-radius:10px;padding:10px 7px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;font-weight:800;cursor:pointer;color:#334155}
:where(html[data-page="debts"]) .action-btn i{font-size:12px}
:where(html[data-page="debts"]) .action-btn.red{color:#991b1b;background:#fff7f7}
:where(html[data-page="debts"]) .action-btn.green{color:#166534;background:#f5fff8}
:where(html[data-page="debts"]) .action-btn.teal{color:#257786;background:#f4fdff}
:where(html[data-page="debts"]) .note{font-size:8.5px;color:#64748b;background:#f8fafc;border-radius:9px;padding:9px;line-height:1.8;margin-top:9px}
@media(max-width:1200px){:where(html[data-page="debts"]) .stats{grid-template-columns:repeat(3,1fr)}}
@media(max-width:992px){:where(html[data-page="debts"]) main{margin-right:0;width:100%;padding:72px 13px 18px}
:where(html[data-page="debts"]) .filters{grid-template-columns:1fr 1fr}
:where(html[data-page="debts"]) .search{grid-column:1/-1}}
@media(max-width:650px){:where(html[data-page="debts"]) main{padding:68px 9px 15px}
:where(html[data-page="debts"]) .head{padding:13px;align-items:flex-start}
:where(html[data-page="debts"]) .head h1{font-size:16px}
:where(html[data-page="debts"]) .head p{font-size:12px}
:where(html[data-page="debts"]) .head-actions{gap:5px}
:where(html[data-page="debts"]) .head-actions .btn{padding:8px 9px;font-size:8.5px}
:where(html[data-page="debts"]) .stats{grid-template-columns:repeat(2,1fr);gap:6px}
:where(html[data-page="debts"]) .stat{padding:10px}
:where(html[data-page="debts"]) .stat strong{font-size:12px}
:where(html[data-page="debts"]) .filters{grid-template-columns:1fr}
:where(html[data-page="debts"]) .search{grid-column:auto}
:where(html[data-page="debts"]) table{table-layout:fixed}
:where(html[data-page="debts"]) .table-wrap{overflow:hidden}
:where(html[data-page="debts"]) th,:where(html[data-page="debts"]) td{padding:9px 4px;font-size:12px}
:where(html[data-page="debts"]) .name{font-size:8.5px}
:where(html[data-page="debts"]) .sub{font-size:6.8px}
:where(html[data-page="debts"]) th:nth-child(1),:where(html[data-page="debts"]) td:nth-child(1){width:31%}
:where(html[data-page="debts"]) th:nth-child(2),:where(html[data-page="debts"]) td:nth-child(2){width:18%}
:where(html[data-page="debts"]) th:nth-child(3),:where(html[data-page="debts"]) td:nth-child(3){width:18%}
:where(html[data-page="debts"]) th:nth-child(4),:where(html[data-page="debts"]) td:nth-child(4){width:18%}
:where(html[data-page="debts"]) th:nth-child(5),:where(html[data-page="debts"]) td:nth-child(5){width:15%;text-align:center}
:where(html[data-page="debts"]) .status{font-size:6.7px;padding:3px 5px}
:where(html[data-page="debts"]) .icon{width:29px;height:29px;margin:auto}
:where(html[data-page="debts"]) .grid{grid-template-columns:1fr}
:where(html[data-page="debts"]) .full{grid-column:auto}
:where(html[data-page="debts"]) .modal-bg{padding:8px}
:where(html[data-page="debts"]) .modal{max-height:96vh;border-radius:14px}
:where(html[data-page="debts"]) .modal-head{padding:12px}
:where(html[data-page="debts"]) .modal-body{padding:12px}
:where(html[data-page="debts"]) .detail-stats{padding:10px 12px;gap:4px}
:where(html[data-page="debts"]) .detail-stat{padding:7px 3px}
:where(html[data-page="debts"]) .meta-grid{grid-template-columns:1fr;padding:0 12px 10px}
:where(html[data-page="debts"]) .section{padding:0 12px 12px}
:where(html[data-page="debts"]) .invoice-brand{padding:12px}
:where(html[data-page="debts"]) .invoice-brand img{width:42px;height:42px}
:where(html[data-page="debts"]) .action-grid{grid-template-columns:repeat(2,1fr)}
:where(html[data-page="debts"]) .detail-actions{padding:12px}
:where(html[data-page="debts"]) .modal-actions{flex-direction:column-reverse}
:where(html[data-page="debts"]) .modal-actions .btn{width:100%}
:where(html[data-page="debts"]) .pay-summary{gap:4px}
:where(html[data-page="debts"]) .pagination{padding:10px 5px;gap:3px}
:where(html[data-page="debts"]) .page-link{min-width:30px;height:30px;font-size:12px}
:where(html[data-page="debts"]) .page-info{width:100%;text-align:center;order:-1}}
@media(max-width:380px){:where(html[data-page="debts"]) .head{display:block}
:where(html[data-page="debts"]) .head-actions{margin-top:9px}
:where(html[data-page="debts"]) .action-grid{grid-template-columns:1fr 1fr}
:where(html[data-page="debts"]) .stat strong{font-size:12px}
:where(html[data-page="debts"]) th,:where(html[data-page="debts"]) td{font-size:7.3px;padding:8px 2px}
:where(html[data-page="debts"]) .name{font-size:12px}}
@media print{:where(html[data-page="debts"]) body{background:#fff}
:where(html[data-page="debts"]) .modal-head,:where(html[data-page="debts"]) .detail-actions,:where(html[data-page="debts"]) .close{display:none!important}
:where(html[data-page="debts"]) .modal-bg{position:static!important;background:#fff!important;padding:0!important;display:block!important}
:where(html[data-page="debts"]) .modal{width:100%!important;max-height:none!important;overflow:visible!important;box-shadow:none!important}
:where(html[data-page="debts"]) .invoice{width:100%!important}}

/* debts_archive */
:where(html[data-page="debts_archive"]){--green:#03AF46;--green2:#05642F;--deep:#0F2C25;--red:#DA0C11;--orange:#d97706;--teal:#308E9E;--bg:#F6F8F7;--line:#e3ebe7;--gray:#64748b;--sidebar:260px}
:where(html[data-page="debts_archive"]) *{box-sizing:border-box;margin:0;padding:0;font-family:var(--font-ui)}
:where(html[data-page="debts_archive"]) body{background:var(--bg);color:#17231f;min-height:100vh;overflow-x:hidden}
:where(html[data-page="debts_archive"]) a{text-decoration:none;color:inherit}
:where(html[data-page="debts_archive"]) button,:where(html[data-page="debts_archive"]) input,:where(html[data-page="debts_archive"]) select,:where(html[data-page="debts_archive"]) textarea{font:inherit}
:where(html[data-page="debts_archive"]) main{margin-right:var(--sidebar);width:calc(100% - var(--sidebar));padding:25px}
:where(html[data-page="debts_archive"]) .head{background:#fff;border:1px solid var(--line);border-radius:17px;padding:18px 20px;margin-bottom:14px;display:flex;justify-content:space-between;align-items:center;gap:12px}
:where(html[data-page="debts_archive"]) .head h1{font-size:19px;color:var(--deep)}
:where(html[data-page="debts_archive"]) .head p{font-size:10.5px;color:var(--gray);margin-top:3px}
:where(html[data-page="debts_archive"]) .head-actions{display:flex;gap:7px;flex-wrap:wrap}
:where(html[data-page="debts_archive"]) .btn{border:0;border-radius:10px;padding:10px 14px;font-size:10.5px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px}
:where(html[data-page="debts_archive"]) .primary{background:var(--green);color:#fff}
:where(html[data-page="debts_archive"]) .light{background:#f1f5f9;color:#334155}
:where(html[data-page="debts_archive"]) .danger{background:#fee2e2;color:#991b1b}
:where(html[data-page="debts_archive"]) .teal{background:#eef9fb;color:#257786}
:where(html[data-page="debts_archive"]) .dark{background:var(--deep);color:#fff}
:where(html[data-page="debts_archive"]) .btn:disabled{opacity:.45;cursor:not-allowed}
:where(html[data-page="debts_archive"]) .alert{border:1px solid;border-radius:12px;padding:12px 14px;margin-bottom:13px;font-size:12px;line-height:1.8}
:where(html[data-page="debts_archive"]) .error{background:#fef2f2;border-color:#fecaca;color:#991b1b}
:where(html[data-page="debts_archive"]) .success{background:#f0fdf4;border-color:#bbf7d0;color:#166534}
:where(html[data-page="debts_archive"]) .stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-bottom:14px}
:where(html[data-page="debts_archive"]) .stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px}
:where(html[data-page="debts_archive"]) .stat span{font-size:8.5px;color:#94a3b8;display:block}
:where(html[data-page="debts_archive"]) .stat strong{font-size:15px;color:var(--deep);display:block;margin-top:3px}
:where(html[data-page="debts_archive"]) .stat.red strong{color:var(--red)}
:where(html[data-page="debts_archive"]) .stat.green strong{color:#166534}
:where(html[data-page="debts_archive"]) .panel{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 3px 12px rgba(15,44,37,.025)}
:where(html[data-page="debts_archive"]) .filters{padding:13px;display:grid;grid-template-columns:minmax(190px,1fr) 155px 155px auto;gap:8px;border-bottom:1px solid #edf2ef}
:where(html[data-page="debts_archive"]) .control{width:100%;height:40px;border:1px solid #dce5e0;border-radius:9px;background:#fff;padding:0 10px;outline:none;font-size:12px}
:where(html[data-page="debts_archive"]) .control:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(3,175,70,.07)}
:where(html[data-page="debts_archive"]) textarea.control{height:78px;padding:9px;resize:vertical}
:where(html[data-page="debts_archive"]) .search{position:relative}
:where(html[data-page="debts_archive"]) .search i{position:absolute;right:11px;top:50%;transform:translateY(-50%);color:#94a3b8}
:where(html[data-page="debts_archive"]) .search input{padding-right:31px}
:where(html[data-page="debts_archive"]) .table-wrap{width:100%;overflow:hidden}
:where(html[data-page="debts_archive"]) table{width:100%;border-collapse:collapse;table-layout:fixed}
:where(html[data-page="debts_archive"]) th,:where(html[data-page="debts_archive"]) td{padding:11px 10px;border-bottom:1px solid #eef2f0;text-align:right;font-size:9.7px;vertical-align:middle}
:where(html[data-page="debts_archive"]) th{background:#fafcfb;color:#64748b;font-size:8.7px}
:where(html[data-page="debts_archive"]) tbody tr:hover{background:#fbfdfc}
:where(html[data-page="debts_archive"]) .name{font-weight:800;font-size:10.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:where(html[data-page="debts_archive"]) .sub{font-size:12px;color:#94a3b8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:where(html[data-page="debts_archive"]) .amount{font-weight:800}
:where(html[data-page="debts_archive"]) .remaining{font-weight:800;color:var(--red)}
:where(html[data-page="debts_archive"]) .status{display:inline-block;border-radius:999px;padding:3px 7px;font-size:12px;font-weight:800;white-space:nowrap}
:where(html[data-page="debts_archive"]) .paid{background:#dcfce7;color:#166534}
:where(html[data-page="debts_archive"]) .partial{background:#fff7ed;color:#9a3412}
:where(html[data-page="debts_archive"]) .unpaid{background:#fee2e2;color:#991b1b}
:where(html[data-page="debts_archive"]) .cancelled{background:#f1f5f9;color:#64748b}
:where(html[data-page="debts_archive"]) .actions{display:flex;gap:4px}
:where(html[data-page="debts_archive"]) .icon{width:32px;height:32px;border:0;border-radius:8px;display:grid;place-items:center;background:#f1f5f9;color:#475569;cursor:pointer}
:where(html[data-page="debts_archive"]) .icon:hover{background:#e2e8f0}
:where(html[data-page="debts_archive"]) .empty{text-align:center;padding:48px;color:#94a3b8;font-size:10.5px}
:where(html[data-page="debts_archive"]) .empty i{display:block;font-size:31px;margin-bottom:8px;color:#cbd5e1}
:where(html[data-page="debts_archive"]) .pagination{display:flex;justify-content:center;align-items:center;gap:5px;padding:14px;border-top:1px solid #edf2ef;flex-wrap:wrap}
:where(html[data-page="debts_archive"]) .page-link{min-width:34px;height:34px;padding:0 9px;border:1px solid #e2e8f0;border-radius:8px;display:grid;place-items:center;font-size:9.5px;font-weight:800;background:#fff;color:#475569}
:where(html[data-page="debts_archive"]) .page-link.active{background:var(--green);border-color:var(--green);color:#fff}
:where(html[data-page="debts_archive"]) .page-link.disabled{opacity:.4;pointer-events:none}
:where(html[data-page="debts_archive"]) .page-info{font-size:8.5px;color:#94a3b8;margin:0 5px}
:where(html[data-page="debts_archive"]) .modal-bg{position:fixed;inset:0;background:rgba(0,0,0,.58);z-index:12000;display:none;align-items:center;justify-content:center;padding:16px}
:where(html[data-page="debts_archive"]) .modal-bg.show{display:flex}
:where(html[data-page="debts_archive"]) #restoreModal{z-index:12001}
:where(html[data-page="debts_archive"]) #paymentModal,:where(html[data-page="debts_archive"]) #editModal,:where(html[data-page="debts_archive"]) #permanentModal,:where(html[data-page="debts_archive"]) #archiveModal{z-index:13000}
:where(html[data-page="debts_archive"]) .modal{width:min(520px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:18px;box-shadow:0 25px 70px rgba(0,0,0,.25)}
:where(html[data-page="debts_archive"]) .modal.wide{width:min(760px,100%)}
:where(html[data-page="debts_archive"]) .modal-head{padding:16px 18px;border-bottom:1px solid #edf2ef;display:flex;justify-content:space-between;align-items:center;gap:10px;position:sticky;top:0;background:#fff;z-index:3}
:where(html[data-page="debts_archive"]) .modal-head h2{font-size:15px;color:var(--deep)}
:where(html[data-page="debts_archive"]) .close{border:0;background:#f1f5f9;width:32px;height:32px;border-radius:8px;display:grid;place-items:center;cursor:pointer;flex:0 0 auto}
:where(html[data-page="debts_archive"]) .modal-body{padding:17px}
:where(html[data-page="debts_archive"]) .grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
:where(html[data-page="debts_archive"]) .full{grid-column:1/-1}
:where(html[data-page="debts_archive"]) .lbl{display:block;font-size:9.5px;font-weight:800;color:#475569;margin-bottom:5px}
:where(html[data-page="debts_archive"]) .payment-hero{background:#f8faf9;border:1px solid #e5ece8;border-radius:12px;padding:12px;margin-bottom:13px;display:flex;justify-content:space-between;gap:10px}
:where(html[data-page="debts_archive"]) .payment-hero span{font-size:8.5px;color:#94a3b8;display:block}
:where(html[data-page="debts_archive"]) .payment-hero strong{font-size:14px;color:var(--red)}
:where(html[data-page="debts_archive"]) .pay-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:12px}
:where(html[data-page="debts_archive"]) .pay-summary div{background:#f8faf9;border-radius:9px;padding:8px;text-align:center}
:where(html[data-page="debts_archive"]) .pay-summary span{font-size:7.5px;color:#94a3b8;display:block}
:where(html[data-page="debts_archive"]) .pay-summary strong{font-size:10.5px}
:where(html[data-page="debts_archive"]) .modal-actions{display:flex;gap:7px;margin-top:15px;padding-top:13px;border-top:1px solid #edf2ef;flex-wrap:wrap}
:where(html[data-page="debts_archive"]) .modal-actions .grow{flex:1}
:where(html[data-page="debts_archive"]) .invoice{background:#fff}
:where(html[data-page="debts_archive"]) .invoice-brand{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px;border-bottom:1px solid #edf2ef}
:where(html[data-page="debts_archive"]) .invoice-brand img{width:52px;height:52px;object-fit:contain}
:where(html[data-page="debts_archive"]) .invoice-brand h3{font-size:15px;color:var(--deep)}
:where(html[data-page="debts_archive"]) .invoice-brand p{font-size:8.5px;color:#94a3b8}
:where(html[data-page="debts_archive"]) .detail-top{padding:15px 17px;display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #edf2ef}
:where(html[data-page="debts_archive"]) .detail-top h3{font-size:14px}
:where(html[data-page="debts_archive"]) .detail-top p{font-size:8.5px;color:#94a3b8;margin-top:2px}
:where(html[data-page="debts_archive"]) .detail-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:13px 17px}
:where(html[data-page="debts_archive"]) .detail-stat{background:#f8faf9;border-radius:9px;padding:9px;text-align:center}
:where(html[data-page="debts_archive"]) .detail-stat span{display:block;font-size:7.5px;color:#94a3b8}
:where(html[data-page="debts_archive"]) .detail-stat strong{font-size:10.5px}
:where(html[data-page="debts_archive"]) .meta-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;padding:0 17px 13px}
:where(html[data-page="debts_archive"]) .meta{border:1px solid #edf2ef;border-radius:9px;padding:8px}
:where(html[data-page="debts_archive"]) .meta span{display:block;font-size:7.5px;color:#94a3b8}
:where(html[data-page="debts_archive"]) .meta strong{display:block;font-size:9.5px;margin-top:2px;word-break:break-word}
:where(html[data-page="debts_archive"]) .section{padding:0 17px 15px}
:where(html[data-page="debts_archive"]) .section h4{font-size:10.5px;margin:8px 0;color:var(--deep)}
:where(html[data-page="debts_archive"]) .history{border:1px solid #e7eeea;border-radius:10px;overflow:hidden}
:where(html[data-page="debts_archive"]) .history-row{padding:9px 10px;border-bottom:1px solid #eef2f0;display:flex;justify-content:space-between;gap:8px;font-size:12px}
:where(html[data-page="debts_archive"]) .history-row:last-child{border:0}
:where(html[data-page="debts_archive"]) .history-row small{display:block;color:#94a3b8;font-size:12px}
:where(html[data-page="debts_archive"]) .history-row strong{font-size:9.5px}
:where(html[data-page="debts_archive"]) .detail-actions{padding:14px 17px;border-top:1px solid #edf2ef;background:#fafcfb}
:where(html[data-page="debts_archive"]) .detail-actions h4{font-size:12px;margin-bottom:8px}
:where(html[data-page="debts_archive"]) .action-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
:where(html[data-page="debts_archive"]) .action-btn{border:1px solid #e2e8f0;background:#fff;border-radius:10px;padding:10px 7px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;font-weight:800;cursor:pointer;color:#334155}
:where(html[data-page="debts_archive"]) .action-btn i{font-size:12px}
:where(html[data-page="debts_archive"]) .action-btn.red{color:#991b1b;background:#fff7f7}
:where(html[data-page="debts_archive"]) .action-btn.green{color:#166534;background:#f5fff8}
:where(html[data-page="debts_archive"]) .action-btn.teal{color:#257786;background:#f4fdff}
:where(html[data-page="debts_archive"]) .note{font-size:8.5px;color:#64748b;background:#f8fafc;border-radius:9px;padding:9px;line-height:1.8;margin-top:9px}
@media(max-width:1200px){:where(html[data-page="debts_archive"]) .stats{grid-template-columns:repeat(3,1fr)}}
@media(max-width:992px){:where(html[data-page="debts_archive"]) main{margin-right:0;width:100%;padding:72px 13px 18px}
:where(html[data-page="debts_archive"]) .filters{grid-template-columns:1fr 1fr}
:where(html[data-page="debts_archive"]) .search{grid-column:1/-1}}
@media(max-width:650px){:where(html[data-page="debts_archive"]) main{padding:68px 9px 15px}
:where(html[data-page="debts_archive"]) .head{padding:13px;align-items:flex-start}
:where(html[data-page="debts_archive"]) .head h1{font-size:16px}
:where(html[data-page="debts_archive"]) .head p{font-size:12px}
:where(html[data-page="debts_archive"]) .head-actions{gap:5px}
:where(html[data-page="debts_archive"]) .head-actions .btn{padding:8px 9px;font-size:8.5px}
:where(html[data-page="debts_archive"]) .stats{grid-template-columns:repeat(2,1fr);gap:6px}
:where(html[data-page="debts_archive"]) .stat{padding:10px}
:where(html[data-page="debts_archive"]) .stat strong{font-size:12px}
:where(html[data-page="debts_archive"]) .filters{grid-template-columns:1fr}
:where(html[data-page="debts_archive"]) .search{grid-column:auto}
:where(html[data-page="debts_archive"]) table{table-layout:fixed}
:where(html[data-page="debts_archive"]) .table-wrap{overflow:hidden}
:where(html[data-page="debts_archive"]) th,:where(html[data-page="debts_archive"]) td{padding:9px 4px;font-size:12px}
:where(html[data-page="debts_archive"]) .name{font-size:8.5px}
:where(html[data-page="debts_archive"]) .sub{font-size:6.8px}
:where(html[data-page="debts_archive"]) th:nth-child(1),:where(html[data-page="debts_archive"]) td:nth-child(1){width:31%}
:where(html[data-page="debts_archive"]) th:nth-child(2),:where(html[data-page="debts_archive"]) td:nth-child(2){width:18%}
:where(html[data-page="debts_archive"]) th:nth-child(3),:where(html[data-page="debts_archive"]) td:nth-child(3){width:18%}
:where(html[data-page="debts_archive"]) th:nth-child(4),:where(html[data-page="debts_archive"]) td:nth-child(4){width:18%}
:where(html[data-page="debts_archive"]) th:nth-child(5),:where(html[data-page="debts_archive"]) td:nth-child(5){width:15%;text-align:center}
:where(html[data-page="debts_archive"]) .status{font-size:6.7px;padding:3px 5px}
:where(html[data-page="debts_archive"]) .icon{width:29px;height:29px;margin:auto}
:where(html[data-page="debts_archive"]) .grid{grid-template-columns:1fr}
:where(html[data-page="debts_archive"]) .full{grid-column:auto}
:where(html[data-page="debts_archive"]) .modal-bg{padding:8px}
:where(html[data-page="debts_archive"]) .modal{max-height:96vh;border-radius:14px}
:where(html[data-page="debts_archive"]) .modal-head{padding:12px}
:where(html[data-page="debts_archive"]) .modal-body{padding:12px}
:where(html[data-page="debts_archive"]) .detail-stats{padding:10px 12px;gap:4px}
:where(html[data-page="debts_archive"]) .detail-stat{padding:7px 3px}
:where(html[data-page="debts_archive"]) .meta-grid{grid-template-columns:1fr;padding:0 12px 10px}
:where(html[data-page="debts_archive"]) .section{padding:0 12px 12px}
:where(html[data-page="debts_archive"]) .invoice-brand{padding:12px}
:where(html[data-page="debts_archive"]) .invoice-brand img{width:42px;height:42px}
:where(html[data-page="debts_archive"]) .action-grid{grid-template-columns:repeat(2,1fr)}
:where(html[data-page="debts_archive"]) .detail-actions{padding:12px}
:where(html[data-page="debts_archive"]) .modal-actions{flex-direction:column-reverse}
:where(html[data-page="debts_archive"]) .modal-actions .btn{width:100%}
:where(html[data-page="debts_archive"]) .pay-summary{gap:4px}
:where(html[data-page="debts_archive"]) .pagination{padding:10px 5px;gap:3px}
:where(html[data-page="debts_archive"]) .page-link{min-width:30px;height:30px;font-size:12px}
:where(html[data-page="debts_archive"]) .page-info{width:100%;text-align:center;order:-1}}
@media(max-width:380px){:where(html[data-page="debts_archive"]) .head{display:block}
:where(html[data-page="debts_archive"]) .head-actions{margin-top:9px}
:where(html[data-page="debts_archive"]) .action-grid{grid-template-columns:1fr 1fr}
:where(html[data-page="debts_archive"]) .stat strong{font-size:12px}
:where(html[data-page="debts_archive"]) th,:where(html[data-page="debts_archive"]) td{font-size:7.3px;padding:8px 2px}
:where(html[data-page="debts_archive"]) .name{font-size:12px}}
@media print{:where(html[data-page="debts_archive"]) body{background:#fff}
:where(html[data-page="debts_archive"]) .modal-head,:where(html[data-page="debts_archive"]) .detail-actions,:where(html[data-page="debts_archive"]) .close{display:none!important}
:where(html[data-page="debts_archive"]) .modal-bg{position:static!important;background:#fff!important;padding:0!important;display:block!important}
:where(html[data-page="debts_archive"]) .modal{width:100%!important;max-height:none!important;overflow:visible!important;box-shadow:none!important}
:where(html[data-page="debts_archive"]) .invoice{width:100%!important}}
:where(html[data-page="debts_archive"]) .archive-badge{display:inline-flex;align-items:center;gap:5px;background:#f1f5f9;color:#475569;border-radius:999px;padding:4px 8px;font-size:12px;font-weight:800}
:where(html[data-page="debts_archive"]) .restore-note{background:#f0fdf4;border:1px solid #bbf7d0;color:#166534;border-radius:10px;padding:10px;font-size:12px;line-height:1.8;margin-top:10px}
@media(max-width:650px){:where(html[data-page="debts_archive"]) th:nth-child(1),:where(html[data-page="debts_archive"]) td:nth-child(1){width:36%}
:where(html[data-page="debts_archive"]) th:nth-child(2),:where(html[data-page="debts_archive"]) td:nth-child(2){width:22%}
:where(html[data-page="debts_archive"]) th:nth-child(3),:where(html[data-page="debts_archive"]) td:nth-child(3){width:25%}
:where(html[data-page="debts_archive"]) th:nth-child(4),:where(html[data-page="debts_archive"]) td:nth-child(4){width:17%;text-align:center}}

/* forgot-password */
:where(html[data-page="forgot-password"]){
            --salvation-red: #E51A1A;
            --salvation-black: #111111;
            --salvation-white: #FFFFFF;
            --salvation-green: #03AF46;
            --salvation-dark-green: #05642F;
            --salvation-gray: #4A4A4A;
        }
:where(html[data-page="forgot-password"]) *{
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family:var(--font-ui);
        }
:where(html[data-page="forgot-password"]) body{
            background: #f8fafc;
            color:
                var(--salvation-black);

            display: flex;
            justify-content: center;
            align-items: center;

            min-height: 100vh;
            padding: 20px;
        }
:where(html[data-page="forgot-password"]) .login-container{
            background:
                var(--salvation-white);

            width: 100%;
            max-width: 480px;

            padding: 40px;

            border-radius: 16px;

            box-shadow:
                0 10px 25px
                rgba(0,0,0,.05);

            border-top:
                6px solid
                var(--salvation-green);

            border-bottom:
                2px solid #e2e8f0;
        }
:where(html[data-page="forgot-password"]) .logo-area{
            text-align: center;
            margin-bottom: 30px;
        }
:where(html[data-page="forgot-password"]) .logo-area img{
            width: 85px;
            height: auto;
            margin-bottom: 12px;
        }
:where(html[data-page="forgot-password"]) .logo-area h1{
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 6px;
        }
:where(html[data-page="forgot-password"]) .logo-area p{
            font-size: 14px;
            color:
                var(--salvation-gray);
            line-height: 1.8;
        }
:where(html[data-page="forgot-password"]) .alert{
            padding: 14px;
            border-radius: 8px;
            margin-bottom: 24px;
            font-size: 14px;
            font-weight: 600;
            text-align: center;
            line-height: 1.8;
        }
:where(html[data-page="forgot-password"]) .alert-error{
            background: #fef2f2;
            color:
                var(--salvation-red);
            border:
                1px solid #fecaca;
        }
:where(html[data-page="forgot-password"]) .alert-success{
            background: #f0fdf4;
            color:
                var(--salvation-green);
            border:
                1px solid #bbf7d0;
        }
:where(html[data-page="forgot-password"]) .form-group{
            margin-bottom: 20px;
        }
:where(html[data-page="forgot-password"]) .form-group label{
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            font-size: 14px;
        }
:where(html[data-page="forgot-password"]) .form-group input{
            width: 100%;
            padding: 12px 15px;

            border:
                1px solid #cbd5e1;

            border-radius: 8px;

            font-size: 14px;
            color:
                var(--salvation-black);

            background: #f8fafc;

            transition: .3s;
        }
:where(html[data-page="forgot-password"]) .form-group input:focus{
            outline: none;

            border-color:
                var(--salvation-green);

            background: #fff;

            box-shadow:
                0 0 0 3px
                rgba(3,175,70,.12);
        }
:where(html[data-page="forgot-password"]) .ltr-input{
            text-align: center;
            direction: ltr;
        }
:where(html[data-page="forgot-password"]) .otp-input{
            text-align: center;
            direction: ltr;
            letter-spacing: 6px;
            font-weight: 700;
            font-size: 18px !important;
        }
:where(html[data-page="forgot-password"]) .note{
            font-size: 12px;
            color:
                var(--salvation-gray);
            margin-top: 6px;
            display: block;
            line-height: 1.7;
        }
:where(html[data-page="forgot-password"]) .info-box{
            background: #f1f5f9;
            padding: 14px;
            border-radius: 8px;
            font-size: 13px;
            color:
                var(--salvation-gray);
            margin-bottom: 20px;
            text-align: center;
            line-height: 1.8;
        }
:where(html[data-page="forgot-password"]) .btn-submit{
            background:
                var(--salvation-green);

            color: #fff;

            border: none;
            width: 100%;
            padding: 14px;

            font-size: 16px;
            font-weight: 700;

            border-radius: 8px;
            cursor: pointer;

            transition: .3s;

            box-shadow:
                0 4px 12px
                rgba(3,175,70,.22);
        }
:where(html[data-page="forgot-password"]) .btn-submit:hover{
            background:
                var(--salvation-dark-green);
        }
:where(html[data-page="forgot-password"]) .secondary-form{
            margin-top: 12px;
        }
:where(html[data-page="forgot-password"]) .btn-secondary{
            background: transparent;
            color:
                var(--salvation-gray);

            border:
                1px solid #cbd5e1;

            box-shadow: none;
            font-size: 14px;
        }
:where(html[data-page="forgot-password"]) .btn-secondary:hover{
            background: #f8fafc;
        }
:where(html[data-page="forgot-password"]) .footer-links{
            text-align: center;
            margin-top: 25px;
            font-size: 14px;
            color:
                var(--salvation-gray);
        }
:where(html[data-page="forgot-password"]) .footer-links a{
            color:
                var(--salvation-green);
            text-decoration: none;
            font-weight: 700;
        }
:where(html[data-page="forgot-password"]) .footer-links a:hover{
            text-decoration: underline;
        }
:where(html[data-page="forgot-password"]) .password-wrap{
            position: relative;
        }
:where(html[data-page="forgot-password"]) .password-wrap input{
            padding-left: 58px;
        }
:where(html[data-page="forgot-password"]) .toggle-password{
            position: absolute;
            left: 10px;
            top: 50%;

            transform:
                translateY(-50%);

            border: 0;
            background: transparent;

            color: #64748b;
            cursor: pointer;

            padding: 6px;
            font-size: 12px;
        }
@media (
            max-width: 520px
        ){:where(html[data-page="forgot-password"]) body{
                padding: 12px;
            }
:where(html[data-page="forgot-password"]) .login-container{
                padding:
                    28px 20px;

                border-radius: 14px;
            }
:where(html[data-page="forgot-password"]) .logo-area{
                margin-bottom: 24px;
            }
:where(html[data-page="forgot-password"]) .logo-area h1{
                font-size: 21px;
            }}

/* guide */
:where(html[data-page="guide"]) <style>
:root{--ink:#17201c;--muted:#68736d;--line:#e4e9e6;--soft:#f6f8f7;--brand:#008c45;--brand2:#006b36;--dark:#151a1d;--white:#fff;--warn:#fff5f5;--red:#e51d2a;--shadow:0 12px 35px rgba(16,40,28,.08)}
:where(html[data-page="guide"]) *{box-sizing:border-box}
:where(html[data-page="guide"]){scroll-behavior:smooth}
:where(html[data-page="guide"]) body{margin:0;background:#f4f6f9;color:var(--ink);font-family:var(--font-ui);line-height:1.85}
:where(html[data-page="guide"]) .wrap{width:min(1120px,calc(100% - 28px));margin:auto}
:where(html[data-page="guide"]) .hero{background:linear-gradient(135deg,#111715,#17211d 55%,#006b36);color:#fff;padding:22px 0 34px;position:relative;overflow:hidden;border-bottom:4px solid var(--red)}
:where(html[data-page="guide"]) .hero:after{content:"";position:absolute;width:420px;height:420px;border:80px solid rgba(255,255,255,.035);border-radius:50%;left:-180px;top:-180px}
:where(html[data-page="guide"]) .top{display:flex;align-items:center;justify-content:space-between;gap:20px;position:relative;z-index:1}
:where(html[data-page="guide"]) .logos{display:flex;align-items:center;gap:12px}
:where(html[data-page="guide"]) .logoBox{background:#fff;border-radius:16px;padding:9px;height:66px;min-width:66px;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 25px rgba(0,0,0,.12)}
:where(html[data-page="guide"]) .logoBox img{max-height:48px;max-width:130px;object-fit:contain}
:where(html[data-page="guide"]) .sponsor{text-align:left;font-size:12px;color:#d9eee9;line-height:1.55}
:where(html[data-page="guide"]) .heroContent{max-width:850px;margin-top:50px;position:relative;z-index:1}
:where(html[data-page="guide"]) .eyebrow{display:inline-flex;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);padding:5px 12px;border-radius:999px;font-size:13px}
:where(html[data-page="guide"]) .hero h1{font-size:clamp(30px,5vw,52px);line-height:1.25;margin:15px 0 8px}
:where(html[data-page="guide"]) .hero h1 span{display:block;font-size:.48em;font-weight:500;color:#d9eee9;margin-top:8px}
:where(html[data-page="guide"]) .hero p{font-size:17px;color:#e8f4f1;max-width:760px;margin:0}
:where(html[data-page="guide"]) .actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:25px}
:where(html[data-page="guide"]) .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:11px 18px;border-radius:11px;text-decoration:none;font-weight:700;border:1px solid transparent;transition:.2s}
:where(html[data-page="guide"]) .btn.primary{background:#fff;color:var(--brand)}
:where(html[data-page="guide"]) .btn.ghost{border-color:rgba(255,255,255,.38);color:#fff;background:rgba(255,255,255,.07)}
:where(html[data-page="guide"]) .btn.green{background:var(--brand);color:#fff}
:where(html[data-page="guide"]) .btn.light{background:#eef8f2;color:var(--brand);border-color:#d8e9df}
:where(html[data-page="guide"]) .btn:hover{transform:translateY(-1px)}
:where(html[data-page="guide"]) .quick{margin-top:-26px;position:relative;z-index:2}
:where(html[data-page="guide"]) .quickGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
:where(html[data-page="guide"]) .quick a{background:#fff;color:var(--ink);text-decoration:none;padding:17px;border-radius:15px;box-shadow:var(--shadow);border:1px solid #eef0f4;font-weight:700}
:where(html[data-page="guide"]) .quick a small{display:block;color:var(--muted);font-weight:400;margin-top:2px}
:where(html[data-page="guide"]) .content{padding:24px 0 48px}
:where(html[data-page="guide"]) .section{background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px;margin:0 0 13px;box-shadow:0 6px 22px rgba(16,24,39,.035)}
:where(html[data-page="guide"]) .sectionHead{display:flex;align-items:flex-start;gap:13px;margin-bottom:16px}
:where(html[data-page="guide"]) .num{width:38px;height:38px;border-radius:12px;background:#eef8f2;color:var(--brand);display:grid;place-items:center;font-weight:800;flex:0 0 auto}
:where(html[data-page="guide"]) .section h2{margin:0;font-size:24px;line-height:1.45}
:where(html[data-page="guide"]) .section h3{font-size:18px;margin:22px 0 7px}
:where(html[data-page="guide"]) .section p{margin:7px 0;color:#485367}
:where(html[data-page="guide"]) .lead{font-size:17px;color:#334155!important}
:where(html[data-page="guide"]) .note{background:var(--warn);border:1px solid #f0d4d6;border-right:4px solid var(--red);border-radius:14px;padding:12px 15px;margin-top:13px;color:#625054}
:where(html[data-page="guide"]) .featureGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:17px}
:where(html[data-page="guide"]) .feature{background:var(--soft);border:1px solid #edf0f4;border-radius:14px;padding:15px}
:where(html[data-page="guide"]) .feature b{display:block;margin-bottom:4px}
:where(html[data-page="guide"]) .feature span{font-size:14px;color:var(--muted)}
:where(html[data-page="guide"]) .steps{display:grid;gap:10px;margin-top:15px}
:where(html[data-page="guide"]) .step{display:flex;gap:12px;align-items:flex-start;background:#fafbfc;border:1px solid #edf0f4;border-radius:14px;padding:14px}
:where(html[data-page="guide"]) .dot{width:27px;height:27px;display:grid;place-items:center;border-radius:50%;background:var(--brand);color:#fff;font-size:12px;font-weight:bold;flex:0 0 auto}
:where(html[data-page="guide"]) .step b{display:block}
:where(html[data-page="guide"]) .step span{color:var(--muted);font-size:14px}
:where(html[data-page="guide"]) .appGrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
:where(html[data-page="guide"]) .app{border:1px solid var(--line);border-radius:17px;padding:20px;background:#fff}
:where(html[data-page="guide"]) .app .tag{display:inline-block;background:#eef8f2;color:var(--brand);padding:3px 9px;border-radius:999px;font-size:12px;font-weight:bold}
:where(html[data-page="guide"]) .app h3{font-size:21px;margin:10px 0 4px}
:where(html[data-page="guide"]) .app p{font-size:14px}
:where(html[data-page="guide"]) .appActions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
:where(html[data-page="guide"]) .optional{background:#f7f8fa;color:#667085;padding:4px 9px;border-radius:7px;font-size:12px}
:where(html[data-page="guide"]) .fields{display:flex;flex-wrap:wrap;gap:8px;margin:13px 0}
:where(html[data-page="guide"]) .chip{border:1px solid #dce4e1;background:#f7fbfa;padding:7px 11px;border-radius:9px;font-size:13px}
:where(html[data-page="guide"]) .footer{background:var(--dark);color:#d6dce7;padding:30px 0}
:where(html[data-page="guide"]) .footerGrid{display:flex;align-items:center;justify-content:space-between;gap:20px}
:where(html[data-page="guide"]) .footer img{height:46px;max-width:120px;object-fit:contain;background:#fff;padding:6px;border-radius:10px}
:where(html[data-page="guide"]) .footer b{color:#fff}
:where(html[data-page="guide"]) .mini{font-size:12px;color:#97a3b6}
@media(max-width:800px){:where(html[data-page="guide"]) .quickGrid,:where(html[data-page="guide"]) .featureGrid{grid-template-columns:1fr 1fr}
:where(html[data-page="guide"]) .appGrid{grid-template-columns:1fr}
:where(html[data-page="guide"]) .top,:where(html[data-page="guide"]) .footerGrid{align-items:flex-start}
:where(html[data-page="guide"]) .sponsor{display:none}
:where(html[data-page="guide"]) .heroContent{margin-top:35px}
:where(html[data-page="guide"]) .section{padding:21px}}
@media(max-width:520px){:where(html[data-page="guide"]) .quickGrid,:where(html[data-page="guide"]) .featureGrid{grid-template-columns:1fr}
:where(html[data-page="guide"]) .logos{gap:7px}
:where(html[data-page="guide"]) .logoBox{height:56px;min-width:56px}
:where(html[data-page="guide"]) .logoBox img{max-height:40px;max-width:100px}
:where(html[data-page="guide"]) .hero{padding-top:18px}
:where(html[data-page="guide"]) .hero h1{font-size:31px}
:where(html[data-page="guide"]) .actions .btn{width:100%}
:where(html[data-page="guide"]) .section h2{font-size:21px}}

/* Shared navigation */

:root{--kashf-sidebar-width:260px;--kashf-sidebar-bg:#111;--kashf-sidebar-green:#03AF46;--kashf-sidebar-text:#cbd5e1;--kashf-sidebar-white:#fff;--kashf-sidebar-red:#f87171;--kashf-sidebar-border:#292929}
.kashf-sidebar-menu-button{display:none;position:fixed;top:14px;left:14px;z-index:9102;width:43px;height:43px;border:0;border-radius:10px;background:#111;color:#fff;font-size:18px;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.15)}
.kashf-sidebar-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.48);z-index:9099}
.kashf-sidebar{width:var(--kashf-sidebar-width);position:fixed;top:0;right:0;bottom:0;z-index:9100;background:var(--kashf-sidebar-bg);color:#fff;padding:18px 16px;display:flex;flex-direction:column;overflow:hidden;direction:rtl}
.kashf-sidebar-top{flex:0 0 auto}
.kashf-sidebar-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;padding:4px 0}
.kashf-sidebar-scroll::-webkit-scrollbar{display:none}
.kashf-sidebar-bottom{flex:0 0 auto;border-top:1px solid var(--kashf-sidebar-border);padding-top:10px;margin-top:8px}
.kashf-sidebar-brand{text-align:center;border-bottom:1px solid var(--kashf-sidebar-border);padding-bottom:13px;margin-bottom:10px}
.kashf-sidebar-brand img{display:block;width:54px;height:auto;margin:0 auto 5px}
.kashf-sidebar-brand h2{margin:0;color:#fff;font:800 16px/1.5 var(--font-ui)}
.kashf-sidebar-brand small{display:block;margin-top:2px;color:#94a3b8;font:600 12px/1.5 var(--font-ui)}
.kashf-account-card{background:#191919;border:1px solid #2b2b2b;border-radius:11px;padding:10px 11px;margin:0 0 9px}
.kashf-account-card strong{display:block;font:800 12px/1.6 var(--font-ui);color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kashf-account-card span{display:block;font:600 12px/1.6 var(--font-ui);color:#94a3b8}
.kashf-role{display:inline-flex!important;width:auto!important;margin-top:5px;padding:3px 7px;border-radius:999px;background:rgba(3,175,70,.15);color:#86efac!important}
.kashf-access-note{font:700 12px/1.7 var(--font-ui);padding:8px 9px;margin-bottom:8px;border-radius:9px;background:#2a1717;color:#fecaca;border:1px solid #4a2020}
.kashf-sidebar-list{list-style:none;padding:0;margin:0}
.kashf-sidebar-item{margin:0 0 5px}
.kashf-sidebar-link{position:relative;display:flex;align-items:center;width:100%;gap:9px;padding:9px 11px;border-radius:9px;color:var(--kashf-sidebar-text);text-decoration:none;font:600 12px/1.5 var(--font-ui);transition:.18s}
.kashf-sidebar-link:hover,.kashf-sidebar-link.is-active{background:var(--kashf-sidebar-green);color:#fff}
.kashf-sidebar-link.is-locked{opacity:.48;cursor:not-allowed}
.kashf-sidebar-link.is-locked:hover{background:rgba(255,255,255,.05);color:var(--kashf-sidebar-text)}
.kashf-sidebar-link i:first-child{width:18px;text-align:center;flex:0 0 18px}
.kashf-sidebar-link-label{flex:1;min-width:0}
.kashf-sidebar-lock{font-size:12px;margin-right:auto}
.kashf-sidebar-section{padding:8px 10px 5px;color:#64748b;font:800 12px/1.4 var(--font-ui)}
.kashf-sidebar-logout{display:flex;align-items:center;width:100%;gap:9px;padding:9px 11px;border-radius:9px;color:var(--kashf-sidebar-red);text-decoration:none;font:800 12px/1.5 var(--font-ui)}
.kashf-sidebar-logout:hover{background:rgba(248,113,113,.1)}
@media(max-width:992px){.kashf-sidebar{transform:translateX(100%);transition:transform .25s ease}.kashf-sidebar.is-open{transform:translateX(0)}.kashf-sidebar-menu-button{display:grid;place-items:center}.kashf-sidebar-overlay.is-visible{display:block}}


/* index */
:where(html[data-page="index"]){
    --green:#03AF46;
    --green-dark:#05642F;
    --green-deep:#0F2C25;
    --green-soft:#D7FFF0;
    --red:#DA0C11;
    --red-soft:#FDEBEC;
    --blue:#308E9E;
    --black:#202326;
    --charcoal:#2D2C30;
    --gray-700:#4B5563;
    --gray-500:#6B7280;
    --gray-300:#D1D5DB;
    --gray-200:#E5E7EB;
    --gray-100:#F1F3F2;
    --gray-50:#F6F8F7;
    --white:#fff;
    --shadow-sm:0 5px 22px rgba(15,44,37,.08);
    --shadow-md:0 18px 50px rgba(15,44,37,.14);
    --transition:all .3s cubic-bezier(.165,.84,.44,1);
}
:where(html[data-page="index"]) *{margin:0;padding:0;box-sizing:border-box}
:where(html[data-page="index"]){scroll-behavior:smooth}
:where(html[data-page="index"]) body{font-family:var(--font-ui);background:var(--gray-50);color:var(--charcoal);line-height:1.8;overflow-x:hidden}
:where(html[data-page="index"]) body.menu-open{overflow:hidden}
:where(html[data-page="index"]) a{text-decoration:none;color:inherit}
:where(html[data-page="index"]) button{font-family:var(--font-ui)}
:where(html[data-page="index"]) img{max-width:100%}
:where(html[data-page="index"]) section[id],:where(html[data-page="index"]) header[id]{scroll-margin-top:120px}
:where(html[data-page="index"]) .mobile-top-bar{display:none;background:var(--green-deep);color:#fff;text-align:center;padding:7px 12px;font-size:.75rem;font-weight:800;border-bottom:2px solid var(--green)}
:where(html[data-page="index"]) .modern-nav{position:sticky;top:0;z-index:2000;background:rgba(255,255,255,.97);backdrop-filter:blur(14px);box-shadow:0 4px 20px rgba(15,44,37,.06);border-bottom:1px solid #edf1ef}
:where(html[data-page="index"]) .nav-container{max-width:1400px;margin:auto;min-height:108px;padding:0 40px;display:flex;align-items:stretch}
:where(html[data-page="index"]) .logo-section{display:flex;align-items:center;flex-shrink:0;padding:10px 0}
:where(html[data-page="index"]) .logo-link{display:flex;align-items:center;gap:11px}
:where(html[data-page="index"]) .main-logo{width:82px;height:82px;object-fit:contain;display:block}
:where(html[data-page="index"]) .mobile-logo-name{display:none;font-weight:900;color:var(--green-deep);white-space:nowrap}
:where(html[data-page="index"]) .nav-content-desktop{flex:1;margin-right:30px;display:flex;flex-direction:column}
:where(html[data-page="index"]) .top-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:12px 0;border-bottom:1px solid #eef1ef}
:where(html[data-page="index"]) .platform-tagline{font-size:.92rem;font-weight:700;color:var(--charcoal)}
:where(html[data-page="index"]) .platform-tagline span{color:var(--green-dark);font-weight:900}
:where(html[data-page="index"]) .auth-buttons{display:flex;gap:10px;align-items:center}
:where(html[data-page="index"]) .btn{border:none;border-radius:999px;padding:9px 24px;font-weight:800;font-size:.84rem;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;transition:var(--transition)}
:where(html[data-page="index"]) .btn-login{background:#fff;border:1.5px solid var(--gray-300);color:var(--charcoal)}
:where(html[data-page="index"]) .btn-login:hover{border-color:var(--green-dark);color:var(--green-dark);background:#fbfdfc}
:where(html[data-page="index"]) .btn-register,:where(html[data-page="index"]) .btn-primary{background:var(--green);color:#fff;box-shadow:0 5px 18px rgba(3,175,70,.22)}
:where(html[data-page="index"]) .btn-register:hover,:where(html[data-page="index"]) .btn-primary:hover{background:var(--green-dark);transform:translateY(-2px)}
:where(html[data-page="index"]) .bottom-row{padding:14px 0;display:flex;justify-content:space-between;align-items:center;gap:18px}
:where(html[data-page="index"]) .nav-menu{list-style:none;display:flex;align-items:center;gap:22px;flex-wrap:wrap}
:where(html[data-page="index"]) .nav-menu a{font-size:.88rem;font-weight:700;color:var(--gray-700);position:relative;white-space:nowrap}
:where(html[data-page="index"]) .nav-menu a:hover,:where(html[data-page="index"]) .nav-menu a.active{color:var(--green-dark)}
:where(html[data-page="index"]) .nav-menu a:after{content:"";position:absolute;right:0;bottom:-5px;width:0;height:2px;background:var(--green);transition:.3s}
:where(html[data-page="index"]) .nav-menu a:hover:after,:where(html[data-page="index"]) .nav-menu a.active:after{width:100%}
:where(html[data-page="index"]) .support-link{color:var(--green-dark);font-size:.83rem;font-weight:800;white-space:nowrap}
:where(html[data-page="index"]) #mobile-toggle{display:none;align-self:center}
:where(html[data-page="index"]) .hamburger-btn{width:44px;height:44px;border-radius:12px;border:1px solid var(--gray-200);background:var(--gray-50);color:var(--green-deep);font-size:1.2rem;cursor:pointer}
:where(html[data-page="index"]) .mobile-menu-overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:3998;opacity:0;visibility:hidden;transition:.3s}
:where(html[data-page="index"]) .mobile-menu-overlay.active{opacity:1;visibility:visible}
:where(html[data-page="index"]) .mobile-menu{position:fixed;right:0;top:0;width:min(88%,360px);height:100dvh;background:#fff;z-index:3999;transform:translateX(105%);transition:.35s;display:flex;flex-direction:column;overflow:auto;box-shadow:-10px 0 40px rgba(0,0,0,.2)}
:where(html[data-page="index"]) .mobile-menu.active{transform:translateX(0)}
:where(html[data-page="index"]) .mobile-menu-header{min-height:88px;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--gray-100)}
:where(html[data-page="index"]) .mobile-menu-logo{display:flex;align-items:center;gap:10px}
:where(html[data-page="index"]) .mobile-menu-logo img{width:58px}
:where(html[data-page="index"]) .mobile-menu-brand strong{display:block;color:var(--green-dark);font-size:.92rem}
:where(html[data-page="index"]) .mobile-menu-brand span{display:block;color:var(--gray-500);font-size:.65rem}
:where(html[data-page="index"]) .mobile-close{width:40px;height:40px;border:none;border-radius:50%;background:var(--gray-50);cursor:pointer}
:where(html[data-page="index"]) .mobile-menu-content{padding:18px;flex:1}
:where(html[data-page="index"]) .mobile-nav-menu{list-style:none}
:where(html[data-page="index"]) .mobile-nav-menu li{border-bottom:1px solid var(--gray-100)}
:where(html[data-page="index"]) .mobile-nav-menu a{min-height:52px;display:flex;align-items:center;justify-content:space-between;font-size:.87rem;font-weight:700}
:where(html[data-page="index"]) .mobile-nav-menu .menu-name{display:flex;align-items:center;gap:11px}
:where(html[data-page="index"]) .mobile-nav-menu .menu-name i{width:21px;color:var(--gray-500);text-align:center}
:where(html[data-page="index"]) .mobile-nav-menu a:hover,:where(html[data-page="index"]) .mobile-nav-menu a.active,:where(html[data-page="index"]) .mobile-nav-menu a:hover i,:where(html[data-page="index"]) .mobile-nav-menu a.active i{color:var(--green-dark)}
:where(html[data-page="index"]) .mobile-nav-menu .arrow{font-size:.7rem;color:var(--gray-300)}
:where(html[data-page="index"]) .mobile-auth{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:22px}
:where(html[data-page="index"]) .mobile-auth .btn{padding:10px;width:100%}
:where(html[data-page="index"]) .mobile-support{margin-top:18px;background:var(--green-soft);border-radius:12px;padding:13px;color:var(--green-dark);font-size:.77rem;font-weight:700;display:flex;gap:9px;align-items:center}
:where(html[data-page="index"]) .mobile-menu-footer{padding:16px;background:var(--green-deep);color:rgba(255,255,255,.65);font-size:.68rem;text-align:center}
:where(html[data-page="index"]) .mobile-menu-footer strong{color:#fff}
:where(html[data-page="index"]) .hero{min-height:82vh;padding:85px 8% 125px;display:flex;align-items:center;position:relative;overflow:hidden;color:#fff;background:
radial-gradient(circle at 15% 20%,rgba(3,175,70,.18),transparent 34%),
linear-gradient(135deg,#0b201b 0%,#102d26 55%,#081a16 100%)}
:where(html[data-page="index"]) .hero:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);background-size:46px 46px}
:where(html[data-page="index"]) .hero:after{content:"";position:absolute;width:520px;height:520px;border-radius:50%;left:-150px;bottom:-220px;background:radial-gradient(circle,rgba(48,142,158,.14),transparent 68%)}
:where(html[data-page="index"]) .hero-inner{width:100%;max-width:1400px;margin:auto;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:70px;position:relative;z-index:2}
:where(html[data-page="index"]) .hero-content{max-width:720px}
:where(html[data-page="index"]) .hero-kicker{display:inline-flex;align-items:center;gap:8px;padding:7px 13px;border:1px solid rgba(255,255,255,.1);border-radius:999px;background:rgba(255,255,255,.04);color:#c9ddd6;font-size:.76rem;font-weight:800;margin-bottom:20px}
:where(html[data-page="index"]) .hero-kicker i{color:var(--green)}
:where(html[data-page="index"]) .hero h1{font-size:clamp(2.45rem,5vw,4.2rem);line-height:1.25;font-weight:900;margin-bottom:22px}
:where(html[data-page="index"]) .hero h1 .green{color:#18d866}
:where(html[data-page="index"]) .hero h1 .red{color:#ff2c32}
:where(html[data-page="index"]) .hero p{font-size:1.1rem;line-height:2;color:rgba(255,255,255,.7);max-width:690px;margin-bottom:30px}
:where(html[data-page="index"]) .hero-actions{display:flex;gap:12px;flex-wrap:wrap}
:where(html[data-page="index"]) .hero-actions .btn{padding:13px 32px;font-size:.93rem}
:where(html[data-page="index"]) .hero-secondary{border-color:rgba(255,255,255,.22);color:#fff;background:rgba(255,255,255,.04)}
:where(html[data-page="index"]) .hero-secondary:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.45);color:#fff}
:where(html[data-page="index"]) .hero-badges{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}
:where(html[data-page="index"]) .hero-badge{padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.07);color:rgba(255,255,255,.68);font-size:.74rem;display:flex;align-items:center;gap:7px}
:where(html[data-page="index"]) .hero-badge i{color:#18d866}
:where(html[data-page="index"]) .hero-visual{display:flex;justify-content:center}
:where(html[data-page="index"]) .ledger-window{width:min(100%,470px);background:#fff;border-radius:28px;padding:20px;box-shadow:0 35px 80px rgba(0,0,0,.3);transform:rotate(-2deg);position:relative;color:var(--charcoal)}
:where(html[data-page="index"]) .ledger-window:before{content:"";position:absolute;inset:-1px;border-radius:29px;padding:1px;background:linear-gradient(135deg,rgba(3,175,70,.8),rgba(255,255,255,.1),rgba(48,142,158,.6));-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
:where(html[data-page="index"]) .ledger-head{display:flex;align-items:center;justify-content:space-between;padding:5px 3px 17px;border-bottom:1px solid var(--gray-100)}
:where(html[data-page="index"]) .ledger-brand{display:flex;align-items:center;gap:9px;font-weight:900;color:var(--green-deep)}
:where(html[data-page="index"]) .ledger-brand img{width:44px;height:44px;object-fit:contain}
:where(html[data-page="index"]) .live-dot{font-size:.67rem;color:var(--green-dark);background:var(--green-soft);padding:5px 9px;border-radius:999px;font-weight:800}
:where(html[data-page="index"]) .ledger-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0}
:where(html[data-page="index"]) .mini-stat{background:var(--gray-50);border:1px solid #edf0ee;border-radius:13px;padding:11px}
:where(html[data-page="index"]) .mini-stat small{display:block;color:var(--gray-500);font-size:.58rem}
:where(html[data-page="index"]) .mini-stat strong{font-size:.92rem;color:var(--green-deep)}
:where(html[data-page="index"]) .mini-stat.danger strong{color:var(--red)}
:where(html[data-page="index"]) .ledger-row{display:grid;grid-template-columns:1.2fr .8fr .7fr;gap:8px;align-items:center;padding:11px 4px;border-bottom:1px solid var(--gray-100);font-size:.7rem}
:where(html[data-page="index"]) .ledger-row strong{font-size:.72rem}
:where(html[data-page="index"]) .status{justify-self:start;padding:4px 7px;border-radius:999px;font-size:.56rem;font-weight:900}
:where(html[data-page="index"]) .status.paid{background:var(--green-soft);color:var(--green-dark)}
:where(html[data-page="index"]) .status.part{background:#e5f4f7;color:#216a76}
:where(html[data-page="index"]) .status.due{background:var(--red-soft);color:var(--red)}
:where(html[data-page="index"]) .sync-bar{margin-top:14px;background:var(--green-deep);color:#fff;border-radius:12px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;font-size:.66rem}
:where(html[data-page="index"]) .sync-bar i{color:#20df70}
:where(html[data-page="index"]) .stats-grid{width:calc(100% - 40px);max-width:1200px;margin:-55px auto 70px;display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border-radius:20px;overflow:hidden;box-shadow:var(--shadow-md);position:relative;z-index:100}
:where(html[data-page="index"]) .stat-card{text-align:center;padding:27px 15px;border-left:1px solid var(--gray-100)}
:where(html[data-page="index"]) .stat-card:last-child{border-left:none}
:where(html[data-page="index"]) .stat-card i{font-size:1.3rem;color:var(--green);margin-bottom:8px}
:where(html[data-page="index"]) .stat-card h3{font-size:1rem;color:var(--green-deep);font-weight:900}
:where(html[data-page="index"]) .stat-card p{font-size:.75rem;color:var(--gray-500);margin-top:3px}
:where(html[data-page="index"]) .home-section{padding:90px 8%}
:where(html[data-page="index"]) .home-section.white{background:#fff}
:where(html[data-page="index"]) .home-section.soft{background:var(--gray-50)}
:where(html[data-page="index"]) .section-container{max-width:1220px;margin:auto}
:where(html[data-page="index"]) .section-head{max-width:780px;margin-bottom:40px}
:where(html[data-page="index"]) .section-label{display:inline-flex;align-items:center;gap:8px;color:var(--green-dark);font-size:.76rem;font-weight:900;margin-bottom:9px}
:where(html[data-page="index"]) .section-label:before{content:"";width:27px;height:2px;background:var(--green)}
:where(html[data-page="index"]) .section-head h2{font-size:clamp(1.85rem,3.3vw,2.75rem);line-height:1.4;color:var(--green-deep);font-weight:900;margin-bottom:12px}
:where(html[data-page="index"]) .section-head p{color:var(--gray-500);font-size:.95rem;line-height:2}
:where(html[data-page="index"]) .service-row{display:grid;grid-template-columns:1fr 1fr;gap:55px;align-items:center}
:where(html[data-page="index"]) .service-row.reverse .service-visual{order:2}
:where(html[data-page="index"]) .service-row.reverse .service-copy{order:1}
:where(html[data-page="index"]) .service-copy h3{font-size:1.55rem;color:var(--green-deep);font-weight:900;margin-bottom:11px}
:where(html[data-page="index"]) .service-copy>p{color:var(--gray-500);line-height:2;margin-bottom:20px;font-size:.92rem}
:where(html[data-page="index"]) .check-list{list-style:none;display:grid;gap:10px}
:where(html[data-page="index"]) .check-list li{display:flex;align-items:flex-start;gap:9px;font-size:.86rem;color:var(--gray-700)}
:where(html[data-page="index"]) .check-list i{color:var(--green);margin-top:6px}
:where(html[data-page="index"]) .service-visual{min-height:350px;border-radius:24px;background:linear-gradient(145deg,#0d2821,#153c31);box-shadow:var(--shadow-md);padding:28px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
:where(html[data-page="index"]) .service-visual:before{content:"";position:absolute;width:260px;height:260px;border-radius:50%;background:rgba(3,175,70,.11);left:-80px;bottom:-100px}
:where(html[data-page="index"]) .paper-stack{width:min(100%,380px);background:#fff;border-radius:18px;padding:20px;position:relative;z-index:2;box-shadow:0 18px 40px rgba(0,0,0,.2)}
:where(html[data-page="index"]) .paper-title{display:flex;justify-content:space-between;align-items:center;color:var(--green-deep);font-size:.8rem;font-weight:900;margin-bottom:13px}
:where(html[data-page="index"]) .paper-line{height:11px;background:#edf1ef;border-radius:999px;margin:10px 0}
:where(html[data-page="index"]) .paper-line:nth-child(2){width:90%}
:where(html[data-page="index"]) .paper-line:nth-child(3){width:70%}
:where(html[data-page="index"]) .paper-line:nth-child(4){width:82%}
:where(html[data-page="index"]) .paper-total{display:flex;justify-content:space-between;border-top:1px solid var(--gray-100);padding-top:13px;margin-top:16px;font-size:.73rem}
:where(html[data-page="index"]) .paper-total strong{color:var(--red)}
:where(html[data-page="index"]) .phone-mock{width:220px;background:#fff;border:8px solid #18201d;border-radius:32px;padding:14px 12px;position:relative;z-index:2;box-shadow:0 18px 45px rgba(0,0,0,.3)}
:where(html[data-page="index"]) .phone-top{width:70px;height:6px;border-radius:999px;background:#202b27;margin:0 auto 17px}
:where(html[data-page="index"]) .phone-logo{width:52px;display:block;margin:0 auto 12px}
:where(html[data-page="index"]) .offline-pill{text-align:center;background:#fff3db;color:#9a5b00;border-radius:999px;font-size:.58rem;font-weight:900;padding:5px;margin-bottom:12px}
:where(html[data-page="index"]) .phone-field{height:35px;border:1px solid #e6ebe8;border-radius:9px;margin:8px 0;background:#fafcfb}
:where(html[data-page="index"]) .phone-btn{height:36px;border-radius:9px;background:var(--green);margin-top:12px;color:#fff;font-size:.65rem;display:flex;align-items:center;justify-content:center;font-weight:900}
:where(html[data-page="index"]) .accounts-visual{display:grid;grid-template-columns:repeat(2,135px);gap:12px;position:relative;z-index:2}
:where(html[data-page="index"]) .user-card{background:#fff;border-radius:16px;padding:16px 12px;text-align:center}
:where(html[data-page="index"]) .user-avatar{width:42px;height:42px;margin:auto auto 8px;border-radius:50%;background:var(--green-soft);color:var(--green-dark);display:flex;align-items:center;justify-content:center}
:where(html[data-page="index"]) .user-card strong{display:block;font-size:.7rem;color:var(--green-deep)}
:where(html[data-page="index"]) .user-card span{font-size:.55rem;color:var(--gray-500)}
:where(html[data-page="index"]) .sms-visual{width:min(100%,390px);position:relative;z-index:2;display:grid;gap:10px}
:where(html[data-page="index"]) .sms-card{background:#fff;border-radius:14px;padding:13px 15px;display:flex;align-items:center;gap:12px}
:where(html[data-page="index"]) .sms-icon{width:38px;height:38px;border-radius:11px;background:var(--green-soft);color:var(--green-dark);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
:where(html[data-page="index"]) .sms-card:nth-child(2) .sms-icon{background:#e5f4f7;color:var(--blue)}
:where(html[data-page="index"]) .sms-card:nth-child(3) .sms-icon{background:var(--red-soft);color:var(--red)}
:where(html[data-page="index"]) .sms-card strong{display:block;font-size:.72rem;color:var(--green-deep)}
:where(html[data-page="index"]) .sms-card span{font-size:.58rem;color:var(--gray-500)}
:where(html[data-page="index"]) .feature-grid,:where(html[data-page="index"]) .report-grid,:where(html[data-page="index"]) .apps-grid,:where(html[data-page="index"]) .about-grid{display:grid;gap:18px}
:where(html[data-page="index"]) .feature-grid{grid-template-columns:repeat(4,1fr)}
:where(html[data-page="index"]) .report-grid{grid-template-columns:repeat(4,1fr)}
:where(html[data-page="index"]) .apps-grid,:where(html[data-page="index"]) .about-grid{grid-template-columns:repeat(3,1fr)}
:where(html[data-page="index"]) .card{background:#fff;border:1px solid #e8eeeb;border-radius:18px;padding:24px;transition:var(--transition)}
:where(html[data-page="index"]) .card:hover{transform:translateY(-5px);box-shadow:var(--shadow-sm);border-color:#dbe7e1}
:where(html[data-page="index"]) .card-icon{width:47px;height:47px;border-radius:13px;background:var(--green-soft);color:var(--green-dark);display:flex;align-items:center;justify-content:center;margin-bottom:16px}
:where(html[data-page="index"]) .card.red .card-icon{background:var(--red-soft);color:var(--red)}
:where(html[data-page="index"]) .card.blue .card-icon{background:#e5f4f7;color:var(--blue)}
:where(html[data-page="index"]) .card h3{font-size:.96rem;color:var(--green-deep);font-weight:900;margin-bottom:7px}
:where(html[data-page="index"]) .card p{font-size:.8rem;color:var(--gray-500);line-height:1.85}
:where(html[data-page="index"]) .about-highlight{margin-top:26px;padding:20px 22px;border-radius:15px;background:var(--green-soft);border-right:4px solid var(--green);color:#174d34;font-size:.84rem;line-height:1.9}
:where(html[data-page="index"]) .pricing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;align-items:stretch}
:where(html[data-page="index"]) .price-card{background:#fff;border:1px solid #e4ebe7;border-radius:22px;padding:28px;position:relative;display:flex;flex-direction:column;transition:var(--transition)}
:where(html[data-page="index"]) .price-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-md)}
:where(html[data-page="index"]) .price-card.featured{border:2px solid var(--green);box-shadow:0 18px 45px rgba(3,175,70,.12)}
:where(html[data-page="index"]) .price-badge{position:absolute;top:18px;left:18px;background:var(--green);color:#fff;border-radius:999px;padding:4px 10px;font-size:.62rem;font-weight:900}
:where(html[data-page="index"]) .price-card h3{color:var(--green-deep);font-size:1.15rem;font-weight:900}
:where(html[data-page="index"]) .price-sub{font-size:.72rem;color:var(--gray-500);margin-top:3px}
:where(html[data-page="index"]) .price{display:flex;align-items:end;gap:5px;margin:20px 0;color:var(--green-deep)}
:where(html[data-page="index"]) .price strong{font-size:2.5rem;line-height:1;font-weight:900}
:where(html[data-page="index"]) .price span{font-size:.72rem;color:var(--gray-500)}
:where(html[data-page="index"]) .price-features{list-style:none;display:grid;gap:10px;margin-bottom:25px;flex:1}
:where(html[data-page="index"]) .price-features li{font-size:.78rem;color:var(--gray-700);display:flex;gap:8px;align-items:flex-start}
:where(html[data-page="index"]) .price-features i{color:var(--green);margin-top:5px}
:where(html[data-page="index"]) .price-card .btn{width:100%}
:where(html[data-page="index"]) .sms-pricing-note{margin-top:22px;background:linear-gradient(135deg,var(--green-deep),#102f27);border-radius:18px;padding:23px 25px;color:#fff;display:flex;align-items:center;gap:18px}
:where(html[data-page="index"]) .sms-pricing-note i{font-size:1.8rem;color:#21df70}
:where(html[data-page="index"]) .sms-pricing-note strong{display:block;font-size:.92rem}
:where(html[data-page="index"]) .sms-pricing-note span{display:block;color:rgba(255,255,255,.62);font-size:.76rem;margin-top:3px}
:where(html[data-page="index"]) .footer-brand-logos .kashf-footer-logo{width:74px;height:74px;object-fit:contain}
:where(html[data-page="index"]) .footer-brand-logos .salvation-footer-logo{width:92px;height:74px;object-fit:contain;filter:brightness(0) invert(1);opacity:.92}
:where(html[data-page="index"]) .footer-company-meta{display:grid;gap:8px;margin-top:15px}
:where(html[data-page="index"]) .footer-company-meta .footer-contact-line{margin-top:0}
:where(html[data-page="index"]) .footer-powered img{filter:none!important}
@media(max-width:992px){:where(html[data-page="index"]) .pricing-grid{grid-template-columns:1fr}
:where(html[data-page="index"]) .price-card.featured{order:-1}}
@media(max-width:600px){:where(html[data-page="index"]) .sms-pricing-note{align-items:flex-start}
:where(html[data-page="index"]) .price strong{font-size:2.2rem}}
:where(html[data-page="index"]) .app-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}
:where(html[data-page="index"]) .app-icon{width:52px;height:52px;border-radius:14px;background:#fff;border:1px solid #e7ece9;padding:5px;display:flex;align-items:center;justify-content:center}
:where(html[data-page="index"]) .app-icon img{width:100%;height:100%;object-fit:contain}
:where(html[data-page="index"]) .app-type{font-size:.67rem;color:var(--green-dark);font-weight:800}
:where(html[data-page="index"]) .tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:14px}
:where(html[data-page="index"]) .tags span{font-size:.62rem;padding:4px 8px;border-radius:999px;background:var(--gray-50);border:1px solid #e7ece9;color:var(--gray-500);font-weight:700}
:where(html[data-page="index"]) .cta-section{padding:85px 8%;background:#fff}
:where(html[data-page="index"]) .cta-box{max-width:1220px;margin:auto;background:linear-gradient(135deg,var(--green-deep),#071b16);border-radius:26px;padding:48px;display:grid;grid-template-columns:1.25fr .75fr;align-items:center;gap:30px;color:#fff;position:relative;overflow:hidden}
:where(html[data-page="index"]) .cta-box:after{content:"";position:absolute;width:300px;height:300px;border-radius:50%;background:rgba(3,175,70,.14);left:-80px;bottom:-150px}
:where(html[data-page="index"]) .cta-copy{position:relative;z-index:2}
:where(html[data-page="index"]) .cta-copy h2{font-size:clamp(1.7rem,3vw,2.5rem);font-weight:900;margin-bottom:10px}
:where(html[data-page="index"]) .cta-copy p{color:rgba(255,255,255,.65);font-size:.9rem;line-height:1.9}
:where(html[data-page="index"]) .cta-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;position:relative;z-index:2}
:where(html[data-page="index"]) .cta-actions .btn{padding:12px 25px}
:where(html[data-page="index"]) .contact-box{display:grid;grid-template-columns:1.1fr .9fr;background:var(--green-deep);border-radius:24px;overflow:hidden;color:#fff}
:where(html[data-page="index"]) .contact-copy{padding:42px}
:where(html[data-page="index"]) .contact-copy h2{font-size:1.9rem;margin-bottom:10px}
:where(html[data-page="index"]) .contact-copy>p{color:rgba(255,255,255,.62);font-size:.88rem;line-height:1.9;margin-bottom:22px}
:where(html[data-page="index"]) .contact-items{display:grid;gap:12px}
:where(html[data-page="index"]) .contact-item{display:flex;align-items:center;gap:11px;font-size:.83rem}
:where(html[data-page="index"]) .contact-item i{width:35px;height:35px;border-radius:10px;background:rgba(3,175,70,.14);color:#1ce06d;display:flex;align-items:center;justify-content:center}
:where(html[data-page="index"]) .contact-side{padding:38px;background:linear-gradient(145deg,#06b94c,#057837);display:flex;flex-direction:column;justify-content:center}
:where(html[data-page="index"]) .contact-side h3{font-size:1.3rem;margin-bottom:8px}
:where(html[data-page="index"]) .contact-side p{color:rgba(255,255,255,.8);font-size:.84rem;line-height:1.9;margin-bottom:18px}
:where(html[data-page="index"]) .main-footer{background:#091511;color:rgba(255,255,255,.55);border-top:4px solid var(--green)}
:where(html[data-page="index"]) .footer-shell{max-width:1400px;margin:auto;padding:55px 8% 0}
:where(html[data-page="index"]) .footer-top{display:grid;grid-template-columns:1.45fr repeat(3,1fr);gap:34px;padding-bottom:36px}
:where(html[data-page="index"]) .footer-brand-block{max-width:500px}
:where(html[data-page="index"]) .footer-brand-logos{display:flex;align-items:center;gap:13px;margin-bottom:16px}
:where(html[data-page="index"]) .footer-brand-logos img{width:74px;height:74px;object-fit:contain}
:where(html[data-page="index"]) .footer-company-title{color:#fff;font-size:.88rem;font-weight:800;line-height:1.8;margin-bottom:8px}
:where(html[data-page="index"]) .footer-brand-block p{font-size:.78rem;line-height:1.9}
:where(html[data-page="index"]) .footer-contact-line{display:flex;gap:9px;align-items:flex-start;margin-top:10px;font-size:.72rem;line-height:1.7}
:where(html[data-page="index"]) .footer-contact-line i{color:var(--green);margin-top:4px}
:where(html[data-page="index"]) .footer-col h4{color:#fff;font-size:.84rem;font-weight:900;margin-bottom:14px;padding-right:10px;border-right:2px solid var(--green)}
:where(html[data-page="index"]) .footer-col ul{list-style:none}
:where(html[data-page="index"]) .footer-col li{margin-bottom:8px}
:where(html[data-page="index"]) .footer-col a{font-size:.74rem;color:rgba(255,255,255,.48);display:inline-flex;align-items:center;gap:7px}
:where(html[data-page="index"]) .footer-col a:hover{color:#fff}
:where(html[data-page="index"]) .footer-col a i{width:14px;color:rgba(255,255,255,.28);font-size:.65rem}
:where(html[data-page="index"]) .footer-bottom{background:#06100d;border-top:1px solid rgba(255,255,255,.05)}
:where(html[data-page="index"]) .footer-bottom-inner{max-width:1400px;margin:auto;padding:18px 8%;display:flex;flex-direction:column;align-items:center;text-align:center;gap:7px;font-size:.68rem;color:rgba(255,255,255,.3)}
:where(html[data-page="index"]) .footer-powered{display:inline-flex;align-items:center;gap:7px;color:rgba(255,255,255,.42);font-weight:700}
:where(html[data-page="index"]) .footer-powered:hover{color:#fff}
:where(html[data-page="index"]) .footer-powered img{width:24px;height:24px;object-fit:contain}
@media(max-width:1180px){:where(html[data-page="index"]) .nav-menu{gap:12px}
:where(html[data-page="index"]) .nav-menu a{font-size:.77rem}
:where(html[data-page="index"]) .support-link{display:none}
:where(html[data-page="index"]) .feature-grid,:where(html[data-page="index"]) .report-grid{grid-template-columns:repeat(2,1fr)}
:where(html[data-page="index"]) .footer-top{grid-template-columns:1.3fr repeat(3,1fr);gap:22px}}
@media(max-width:992px){:where(html[data-page="index"]) .mobile-top-bar{display:block}
:where(html[data-page="index"]) .modern-nav{top:0}
:where(html[data-page="index"]) .nav-container{min-height:72px;padding:0 18px;justify-content:space-between;align-items:center}
:where(html[data-page="index"]) .logo-section{padding:5px 0}
:where(html[data-page="index"]) .main-logo{width:58px;height:58px}
:where(html[data-page="index"]) .mobile-logo-name{display:block;font-size:1rem}
:where(html[data-page="index"]) .nav-content-desktop{display:none}
:where(html[data-page="index"]) #mobile-toggle{display:block}
:where(html[data-page="index"]) .hero{min-height:auto;padding:70px 6% 105px}
:where(html[data-page="index"]) .hero-inner{grid-template-columns:1fr;gap:50px}
:where(html[data-page="index"]) .hero-content{max-width:760px}
:where(html[data-page="index"]) .hero-visual{justify-content:flex-start}
:where(html[data-page="index"]) .ledger-window{max-width:440px}
:where(html[data-page="index"]) .stats-grid{grid-template-columns:repeat(2,1fr);margin-top:-45px}
:where(html[data-page="index"]) .stat-card:nth-child(2){border-left:none}
:where(html[data-page="index"]) .stat-card:nth-child(-n+2){border-bottom:1px solid var(--gray-100)}
:where(html[data-page="index"]) .service-row,:where(html[data-page="index"]) .service-row.reverse{grid-template-columns:1fr}
:where(html[data-page="index"]) .service-row.reverse .service-visual,:where(html[data-page="index"]) .service-row.reverse .service-copy{order:initial}
:where(html[data-page="index"]) .apps-grid,:where(html[data-page="index"]) .about-grid{grid-template-columns:1fr}
:where(html[data-page="index"]) .cta-box,:where(html[data-page="index"]) .contact-box{grid-template-columns:1fr}
:where(html[data-page="index"]) .cta-actions{justify-content:flex-start}
:where(html[data-page="index"]) .footer-top{grid-template-columns:1fr 1fr}
:where(html[data-page="index"]) .footer-brand-block{grid-column:1/-1;max-width:none}}
@media(max-width:600px){:where(html[data-page="index"]) section[id],:where(html[data-page="index"]) header[id]{scroll-margin-top:105px}
:where(html[data-page="index"]) .mobile-top-bar{font-size:.66rem}
:where(html[data-page="index"]) .modern-nav{top:0}
:where(html[data-page="index"]) .nav-container{min-height:65px;padding:0 13px}
:where(html[data-page="index"]) .main-logo{width:51px;height:51px}
:where(html[data-page="index"]) .mobile-logo-name{font-size:.92rem}
:where(html[data-page="index"]) .hero{padding:55px 20px 85px}
:where(html[data-page="index"]) .hero h1{font-size:2.25rem}
:where(html[data-page="index"]) .hero p{font-size:.9rem}
:where(html[data-page="index"]) .hero-actions{display:grid;grid-template-columns:1fr}
:where(html[data-page="index"]) .hero-actions .btn{width:100%}
:where(html[data-page="index"]) .hero-badges{display:grid}
:where(html[data-page="index"]) .hero-badge{width:fit-content}
:where(html[data-page="index"]) .hero-visual{display:none}
:where(html[data-page="index"]) .stats-grid{width:calc(100% - 28px);margin:-32px auto 45px;border-radius:14px}
:where(html[data-page="index"]) .stat-card{padding:18px 7px}
:where(html[data-page="index"]) .stat-card h3{font-size:.82rem}
:where(html[data-page="index"]) .stat-card p{font-size:.64rem}
:where(html[data-page="index"]) .home-section{padding:62px 20px}
:where(html[data-page="index"]) .section-head{margin-bottom:27px}
:where(html[data-page="index"]) .service-row{gap:25px}
:where(html[data-page="index"]) .service-visual{min-height:245px;padding:18px}
:where(html[data-page="index"]) .feature-grid,:where(html[data-page="index"]) .report-grid{grid-template-columns:1fr}
:where(html[data-page="index"]) .accounts-visual{grid-template-columns:repeat(2,115px)}
:where(html[data-page="index"]) .cta-section{padding:60px 20px}
:where(html[data-page="index"]) .cta-box{padding:30px 22px}
:where(html[data-page="index"]) .contact-copy,:where(html[data-page="index"]) .contact-side{padding:28px 22px}
:where(html[data-page="index"]) .footer-shell{padding:42px 20px 0}
:where(html[data-page="index"]) .footer-top{grid-template-columns:1fr;gap:27px}
:where(html[data-page="index"]) .footer-brand-block{grid-column:auto}
:where(html[data-page="index"]) .mobile-auth{grid-template-columns:1fr}}

/* inventory */
:where(html[data-page="inventory"]){--green:#03AF46;--dark:#103c2c;--bg:#f5f8f6;--border:#e1eae4;--muted:#718077;--sidebar:260px}
:where(html[data-page="inventory"]) *{box-sizing:border-box}
:where(html[data-page="inventory"]) body{margin:0;background:var(--bg);color:#20332a;font-family:var(--font-ui)}
:where(html[data-page="inventory"]) a{text-decoration:none;color:inherit}
:where(html[data-page="inventory"]) main{margin-right:var(--sidebar);padding:27px;max-width:1600px;min-height:100vh}
:where(html[data-page="inventory"]) .breadcrumb{font-size:12px;color:#7b8d82;margin-bottom:14px}
:where(html[data-page="inventory"]) .breadcrumb a{color:#17834b}
:where(html[data-page="inventory"]) .hero{position:relative;overflow:hidden;border-radius:22px;padding:31px 33px;background:linear-gradient(125deg,#073b28,#0b7140 65%,#13a759);color:#fff;box-shadow:0 12px 35px rgba(6,80,42,.10)}
:where(html[data-page="inventory"]) .hero:after{content:"";position:absolute;width:280px;height:280px;border:1px solid rgba(255,255,255,.15);border-radius:50%;left:-85px;top:-110px;box-shadow:0 0 0 60px rgba(255,255,255,.035),0 0 0 120px rgba(255,255,255,.025);pointer-events:none}
:where(html[data-page="inventory"]) .hero-top{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
:where(html[data-page="inventory"]) .pill{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);border-radius:99px;padding:5px 12px;font-size:12px;font-weight:800}
:where(html[data-page="inventory"]) .hero h1{font-size:30px;margin:16px 0 4px;font-weight:900;letter-spacing:.3px;direction:ltr;text-align:right}
:where(html[data-page="inventory"]) .hero h2{font-size:18px;margin:0 0 9px;font-weight:800}
:where(html[data-page="inventory"]) .hero p{max-width:770px;font-size:12px;line-height:2.1;color:#e4f8eb;margin:0}
:where(html[data-page="inventory"]) .section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:26px 0 14px;flex-wrap:wrap}
:where(html[data-page="inventory"]) .section-head h3{font-size:17px;margin:0;color:var(--dark)}
:where(html[data-page="inventory"]) .section-head p{font-size:12px;color:var(--muted);margin:4px 0 0}
:where(html[data-page="inventory"]) .counter{font-size:12px;color:#197445;background:#e7f7ee;border:1px solid #d0eadd;border-radius:99px;padding:7px 12px;font-weight:800}
:where(html[data-page="inventory"]) .alert{display:flex;align-items:flex-start;gap:11px;padding:15px 17px;border-radius:14px;margin-top:17px;border:1px solid #f5dfac;background:#fff9e9;color:#795618;font-size:12px;line-height:1.9}
:where(html[data-page="inventory"]) .alert i{font-size:18px;margin-top:4px}
:where(html[data-page="inventory"]) .alert strong{display:block;font-size:12px}
:where(html[data-page="inventory"]) .alert.danger{background:#fff0f0;border-color:#f6caca;color:#9d2a2a}
:where(html[data-page="inventory"]) .alert.good{background:#ecf9f0;border-color:#d1e9d8;color:#17663a}
:where(html[data-page="inventory"]) .cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
:where(html[data-page="inventory"]) .card{background:#fff;border:1px solid var(--border);border-radius:19px;padding:21px 22px;display:flex;flex-direction:column;min-height:225px;box-shadow:0 4px 18px rgba(11,54,31,.025);transition:transform .2s,border-color .2s}
:where(html[data-page="inventory"]) .card:not(.locked):hover{transform:translateY(-3px);border-color:#a8dec0}
:where(html[data-page="inventory"]) .card.locked{background:#fafbfa;opacity:.82}
:where(html[data-page="inventory"]) .card-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
:where(html[data-page="inventory"]) .iconbox{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#e8f9ef;color:#06843d;font-size:19px}
:where(html[data-page="inventory"]) .card.locked .iconbox{background:#eff1ef;color:#8d9a91}
:where(html[data-page="inventory"]) .num{font-size:12px;color:#a9b5ad;font-weight:800}
:where(html[data-page="inventory"]) .card h4{font-size:15px;color:#153d2b;margin:17px 0 6px}
:where(html[data-page="inventory"]) .card p{font-size:12px;line-height:1.9;color:#72847a;margin:0 0 20px;flex:1}
:where(html[data-page="inventory"]) .card-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px}
:where(html[data-page="inventory"]) .go{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:10px;background:#03af46;color:#fff;padding:10px 15px;font-size:12px;font-weight:800;min-width:140px}
:where(html[data-page="inventory"]) .go.secondary{background:#e9f8ef;color:#08783a}
:where(html[data-page="inventory"]) .go.disabled{background:#e7ebe8;color:#8a9690;cursor:not-allowed}
:where(html[data-page="inventory"]) .state{font-size:12px;font-weight:800;color:#2b9857}
:where(html[data-page="inventory"]) .state.off{color:#a16e24}
:where(html[data-page="inventory"]) .state.no{color:#8a9690}
:where(html[data-page="inventory"]) .pro-tag{display:inline-flex;align-items:center;gap:5px;background:#fff4d8;color:#946100;border:1px solid #f4dea3;border-radius:30px;padding:3px 9px;font-size:12px;font-weight:800;margin-right:5px}
:where(html[data-page="inventory"]) .foot{margin-top:23px;text-align:center;font-size:12px;color:#97a49a}
:where(html[data-page="inventory"]) .foot b{color:#168e4a}
@media(max-width:992px){:where(html[data-page="inventory"]) main{margin-right:0;padding:77px 15px 22px}}
@media(max-width:650px){:where(html[data-page="inventory"]) .cards{grid-template-columns:1fr}
:where(html[data-page="inventory"]) .hero{padding:24px 20px}
:where(html[data-page="inventory"]) .hero h1{font-size:24px}
:where(html[data-page="inventory"]) .hero h2{font-size:16px}
:where(html[data-page="inventory"]) .card{min-height:205px;padding:18px}
:where(html[data-page="inventory"]) .section-head{margin-top:21px}}

/* inventory_debts */
:where(html[data-page="inventory_debts"]){--green:#03af46;--deep:#0f2c25;--line:#e4ebe7;--bg:#f6f8f7;--gray:#64748b;--sidebar:260px}
:where(html[data-page="inventory_debts"]) *{box-sizing:border-box}
:where(html[data-page="inventory_debts"]) body{margin:0;background:var(--bg);color:#17231f;font-family:var(--font-ui);font-size:12px}
:where(html[data-page="inventory_debts"]) button,:where(html[data-page="inventory_debts"]) input,:where(html[data-page="inventory_debts"]) select,:where(html[data-page="inventory_debts"]) textarea{font:inherit}
:where(html[data-page="inventory_debts"]) a{text-decoration:none;color:#087c3d}
:where(html[data-page="inventory_debts"]) main{margin-right:var(--sidebar);width:calc(100% - var(--sidebar));padding:25px}
:where(html[data-page="inventory_debts"]) .head,:where(html[data-page="inventory_debts"]) .panel{background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:0 4px 15px #0f2c2509}
:where(html[data-page="inventory_debts"]) .head{padding:19px 21px;display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}
:where(html[data-page="inventory_debts"]) .head h1{font-size:20px;margin:0;color:var(--deep)}
:where(html[data-page="inventory_debts"]) .muted{color:var(--gray);font-size:12px}
:where(html[data-page="inventory_debts"]) .layout{display:grid;grid-template-columns:1.6fr .8fr;gap:14px}
:where(html[data-page="inventory_debts"]) .panel{margin-bottom:14px;overflow:hidden}
:where(html[data-page="inventory_debts"]) .panel h2{font-size:14px;margin:0;padding:16px;border-bottom:1px solid var(--line);color:var(--deep)}
:where(html[data-page="inventory_debts"]) .body{padding:16px}
:where(html[data-page="inventory_debts"]) .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
:where(html[data-page="inventory_debts"]) .field{min-width:0}
:where(html[data-page="inventory_debts"]) .field label{display:block;font-size:12px;font-weight:800;margin-bottom:5px}
:where(html[data-page="inventory_debts"]) .field input,:where(html[data-page="inventory_debts"]) .field select,:where(html[data-page="inventory_debts"]) .field textarea,:where(html[data-page="inventory_debts"]) .search{width:100%;border:1px solid #dce5e0;border-radius:10px;background:#fff;padding:10px;outline:none;min-height:42px}
:where(html[data-page="inventory_debts"]) .field textarea{min-height:78px}
:where(html[data-page="inventory_debts"]) .field input:focus,:where(html[data-page="inventory_debts"]) .field select:focus,:where(html[data-page="inventory_debts"]) .search:focus{border-color:var(--green)}
:where(html[data-page="inventory_debts"]) .required{color:#d10a18}
:where(html[data-page="inventory_debts"]) .item{border:1px solid var(--line);border-radius:13px;padding:14px;margin-bottom:12px;background:#fcfefd}
:where(html[data-page="inventory_debts"]) .itemtop{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;font-weight:800}
:where(html[data-page="inventory_debts"]) .btn{border:0;border-radius:10px;padding:10px 16px;cursor:pointer;font-weight:800;font-size:12px;display:inline-flex;gap:7px;align-items:center}
:where(html[data-page="inventory_debts"]) .primary{background:var(--green);color:white}
:where(html[data-page="inventory_debts"]) .secondary{background:#edf6f0;color:#05642f}
:where(html[data-page="inventory_debts"]) .danger{background:#fff1f2;color:#b91c1c}
:where(html[data-page="inventory_debts"]) .toolbar{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:12px}
:where(html[data-page="inventory_debts"]) .alert{padding:12px;border-radius:10px;margin-bottom:12px;background:#fef2f2;color:#991b1b}
:where(html[data-page="inventory_debts"]) .ok{background:#ecfdf5;color:#166534}
:where(html[data-page="inventory_debts"]) .tablewrap{overflow-x:auto}
:where(html[data-page="inventory_debts"]) table{width:100%;border-collapse:collapse;text-align:right;white-space:nowrap}
:where(html[data-page="inventory_debts"]) th,:where(html[data-page="inventory_debts"]) td{padding:10px;border-bottom:1px solid var(--line)}
:where(html[data-page="inventory_debts"]) th{color:var(--gray);font-size:12px}
:where(html[data-page="inventory_debts"]) .small{font-size:12px}
:where(html[data-page="inventory_debts"]) .chip{display:inline-block;border-radius:20px;background:#effaf3;color:#087c3d;padding:4px 8px;font-weight:800}
:where(html[data-page="inventory_debts"]) .actions{display:flex;gap:8px;align-items:center}
:where(html[data-page="inventory_debts"]) .hide{display:none}
:where(html[data-page="inventory_debts"]) .totals{background:#f0fdf4;padding:13px;border-radius:11px;margin-top:12px;font-weight:800}
:where(html[data-page="inventory_debts"]) .audit{border-bottom:1px solid var(--line);padding:10px 0}
:where(html[data-page="inventory_debts"]) .audit pre{white-space:pre-wrap;overflow-wrap:anywhere;font:10px monospace;background:#f8fafc;padding:8px;border-radius:8px;max-height:140px;overflow:auto}
:where(html[data-page="inventory_debts"]) details summary{cursor:pointer;color:#087c3d}
:where(html[data-page="inventory_debts"]) .field.full{grid-column:1/-1}
@media(max-width:1050px){:where(html[data-page="inventory_debts"]) .layout{grid-template-columns:1fr}}
@media(max-width:800px){:where(html[data-page="inventory_debts"]) main{margin-right:0;width:100%;padding:12px}
:where(html[data-page="inventory_debts"]) .grid{grid-template-columns:1fr}
:where(html[data-page="inventory_debts"]) .head{align-items:flex-start}}
:where(html[data-page="inventory_debts"]) .scan-field{display:flex;gap:7px;align-items:stretch}
:where(html[data-page="inventory_debts"]) .scan-field input{flex:1;min-width:0}
:where(html[data-page="inventory_debts"]) .scan-trigger{white-space:nowrap;background:#e8f8ee;color:#087c3d;border:1px solid #bde8cc;border-radius:10px;padding:0 12px;cursor:pointer;font-weight:800}
:where(html[data-page="inventory_debts"]) .scan-trigger:hover{background:#d8f4e3}
:where(html[data-page="inventory_debts"]) .scanner-overlay{position:fixed;inset:0;background:#071812dc;z-index:99999;display:none;align-items:center;justify-content:center;padding:15px}
:where(html[data-page="inventory_debts"]) .scanner-overlay.open{display:flex}
:where(html[data-page="inventory_debts"]) .scanner-box{width:min(100%,480px);background:white;border-radius:18px;padding:18px;box-shadow:0 20px 80px #0005}
:where(html[data-page="inventory_debts"]) .scanner-header{display:flex;justify-content:space-between;align-items:center;gap:10px}
:where(html[data-page="inventory_debts"]) .scanner-header h3{font-size:17px;margin:0;color:#0f2c25}
:where(html[data-page="inventory_debts"]) .scanner-view{position:relative;background:#0b1511;border-radius:13px;overflow:hidden;margin:14px 0;min-height:220px}
:where(html[data-page="inventory_debts"]) .scanner-view video{display:block;width:100%;max-height:370px;object-fit:cover}
:where(html[data-page="inventory_debts"]) .scanner-line{position:absolute;left:12%;right:12%;top:50%;height:2px;background:#21e27c;box-shadow:0 0 12px #21e27c;pointer-events:none}
:where(html[data-page="inventory_debts"]) .scanner-hint{color:#64748b;font-size:12px;line-height:1.9}
:where(html[data-page="inventory_debts"]) .scanner-status{font-size:12px;color:#9b341c;min-height:20px}
:where(html[data-page="inventory_debts"]) .debt-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}
:where(html[data-page="inventory_debts"]) .stat{background:#fff;border:1px solid var(--line);border-radius:16px;padding:17px}
:where(html[data-page="inventory_debts"]) .stat .amount{font-size:23px;font-weight:800;color:var(--deep);direction:ltr;text-align:right}
:where(html[data-page="inventory_debts"]) .stat small{color:var(--gray)}
:where(html[data-page="inventory_debts"]) .table-wrap{overflow-x:auto}
:where(html[data-page="inventory_debts"]) table{width:100%;border-collapse:collapse;min-width:680px}
:where(html[data-page="inventory_debts"]) th,:where(html[data-page="inventory_debts"]) td{text-align:right;padding:12px;border-bottom:1px solid var(--line);vertical-align:middle}
:where(html[data-page="inventory_debts"]) th{font-size:12px;color:var(--gray);background:#f7faf8}
:where(html[data-page="inventory_debts"]) .tag{padding:3px 9px;border-radius:30px;background:#eef8f0;color:#137e43;font-size:12px;font-weight:800}
:where(html[data-page="inventory_debts"]) .tag.due{background:#fff3e8;color:#a95b12}
:where(html[data-page="inventory_debts"]) .actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
:where(html[data-page="inventory_debts"]) .help{padding:14px;border:1px solid #d7e8de;border-radius:12px;background:#f2faf5;color:#285b42;margin-bottom:16px}
:where(html[data-page="inventory_debts"]) .filterbar{display:flex;gap:10px;flex-wrap:wrap;align-items:end}
:where(html[data-page="inventory_debts"]) .filterbar .field{flex:1;min-width:160px}
:where(html[data-page="inventory_debts"]) .details-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
:where(html[data-page="inventory_debts"]) .detail{border-bottom:1px solid var(--line);padding:8px 0}
:where(html[data-page="inventory_debts"]) .detail small{display:block;color:var(--gray)}
:where(html[data-page="inventory_debts"]) .detail strong{overflow-wrap:anywhere}
:where(html[data-page="inventory_debts"]) .payments-row{border-bottom:1px solid var(--line);padding:12px 0}
:where(html[data-page="inventory_debts"]) .payments-row:last-child{border:0}
:where(html[data-page="inventory_debts"]) .panel{min-width:0}
:where(html[data-page="inventory_debts"]) details pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}
@media(max-width:900px){:where(html[data-page="inventory_debts"]) .debt-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
:where(html[data-page="inventory_debts"]) .details-list{grid-template-columns:1fr}}
@media(max-width:500px){:where(html[data-page="inventory_debts"]) .debt-stats{grid-template-columns:1fr 1fr}
:where(html[data-page="inventory_debts"]) .stat .amount{font-size:18px}}
:where(html[data-page="inventory_debts"]){max-width:100%;overflow-x:clip;-webkit-text-size-adjust:100%}
:where(html[data-page="inventory_debts"]) body{min-width:0;max-width:100%;overflow-x:clip}
:where(html[data-page="inventory_debts"]) main{min-width:0;max-width:calc(100% - var(--sidebar));padding:clamp(12px,2vw,25px)}
:where(html[data-page="inventory_debts"]) main *,:where(html[data-page="inventory_debts"]) main *::before,:where(html[data-page="inventory_debts"]) main *::after{min-width:0}
:where(html[data-page="inventory_debts"]) .layout{grid-template-columns:minmax(0,1.6fr) minmax(0,.8fr);align-items:start}
:where(html[data-page="inventory_debts"]) .layout>section,:where(html[data-page="inventory_debts"]) .layout>aside{min-width:0;width:100%}
:where(html[data-page="inventory_debts"]) .head{gap:12px;flex-wrap:wrap}
:where(html[data-page="inventory_debts"]) .head>div:first-child{min-width:0;flex:1 1 230px}
:where(html[data-page="inventory_debts"]) .head h1{line-height:1.55;overflow-wrap:anywhere}
:where(html[data-page="inventory_debts"]) .head .actions{flex:0 1 auto;flex-wrap:wrap}
:where(html[data-page="inventory_debts"]) .panel,:where(html[data-page="inventory_debts"]) .panel .body{min-width:0;max-width:100%}
:where(html[data-page="inventory_debts"]) .debt-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(8px,1.2vw,14px)}
:where(html[data-page="inventory_debts"]) .stat{min-width:0;padding:clamp(11px,1.4vw,17px)}
:where(html[data-page="inventory_debts"]) .stat .amount{font-size:clamp(15px,1.65vw,23px);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
:where(html[data-page="inventory_debts"]) .filterbar{align-items:end}
:where(html[data-page="inventory_debts"]) .filterbar .field{flex:1 1 190px;min-width:0}
:where(html[data-page="inventory_debts"]) .field input,:where(html[data-page="inventory_debts"]) .field select,:where(html[data-page="inventory_debts"]) .field textarea,:where(html[data-page="inventory_debts"]) .search{max-width:100%;font-size:16px}
:where(html[data-page="inventory_debts"]) .btn{min-height:42px;justify-content:center;text-align:center;white-space:normal;line-height:1.5}
:where(html[data-page="inventory_debts"]) .table-wrap,:where(html[data-page="inventory_debts"]) .tablewrap{display:block;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
:where(html[data-page="inventory_debts"]) .table-wrap table,:where(html[data-page="inventory_debts"]) .tablewrap table{min-width:680px;width:100%}
:where(html[data-page="inventory_debts"]) .details-list{grid-template-columns:repeat(2,minmax(0,1fr))}
:where(html[data-page="inventory_debts"]) .detail strong,:where(html[data-page="inventory_debts"]) .payments-row,:where(html[data-page="inventory_debts"]) .muted,:where(html[data-page="inventory_debts"]) .help{overflow-wrap:anywhere}
:where(html[data-page="inventory_debts"]) .audit pre,:where(html[data-page="inventory_debts"]) details pre{max-width:100%;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:1200px){:where(html[data-page="inventory_debts"]) .layout{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}}
@media(max-width:1050px){:where(html[data-page="inventory_debts"]) .layout{grid-template-columns:minmax(0,1fr)}
:where(html[data-page="inventory_debts"]) .layout>aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
:where(html[data-page="inventory_debts"]) .layout>aside>.panel{margin-bottom:0}
:where(html[data-page="inventory_debts"]) .layout>aside>.panel:first-child{grid-column:1/-1}}
@media(max-width:800px){:where(html[data-page="inventory_debts"]) main{margin-right:0;width:100%;max-width:100%;padding:clamp(10px,2.5vw,16px)}
:where(html[data-page="inventory_debts"]) .head{padding:15px}
:where(html[data-page="inventory_debts"]) .debt-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
:where(html[data-page="inventory_debts"]) .layout>aside{grid-template-columns:1fr}
:where(html[data-page="inventory_debts"]) .layout>aside>.panel:first-child{grid-column:auto}
:where(html[data-page="inventory_debts"]) .head .actions{width:100%}
:where(html[data-page="inventory_debts"]) .head .actions .btn{flex:1 1 145px}}
@media(max-width:520px){:where(html[data-page="inventory_debts"]) .head h1{font-size:clamp(16px,5vw,20px)}
:where(html[data-page="inventory_debts"]) .head,:where(html[data-page="inventory_debts"]) .panel{border-radius:13px}
:where(html[data-page="inventory_debts"]) .panel h2{padding:13px;font-size:13px}
:where(html[data-page="inventory_debts"]) .body{padding:12px}
:where(html[data-page="inventory_debts"]) .debt-stats{gap:8px;margin-bottom:12px}
:where(html[data-page="inventory_debts"]) .stat{padding:11px;border-radius:12px}
:where(html[data-page="inventory_debts"]) .stat small{font-size:12px;line-height:1.5;display:block}
:where(html[data-page="inventory_debts"]) .stat .amount{font-size:clamp(14px,4.3vw,19px)}
:where(html[data-page="inventory_debts"]) .filterbar{gap:8px}
:where(html[data-page="inventory_debts"]) .filterbar .field{flex:1 1 100%}
:where(html[data-page="inventory_debts"]) .filterbar>.btn{width:100%}
:where(html[data-page="inventory_debts"]) .details-list{grid-template-columns:1fr}
:where(html[data-page="inventory_debts"]) .actions{gap:6px}
:where(html[data-page="inventory_debts"]) .btn{padding:10px 12px}
:where(html[data-page="inventory_debts"]) .help{padding:12px}}
@media(max-width:350px){:where(html[data-page="inventory_debts"]) .debt-stats{grid-template-columns:1fr}
:where(html[data-page="inventory_debts"]) .head .actions .btn{flex-basis:100%}
:where(html[data-page="inventory_debts"]) .stat .amount{font-size:19px}}
@media(hover:none){:where(html[data-page="inventory_debts"]) .btn{touch-action:manipulation}}

/* inventory_entry */
:where(html[data-page="inventory_entry"]){--green:#03af46;--deep:#0f2c25;--line:#e4ebe7;--bg:#f6f8f7;--gray:#64748b;--sidebar:260px}
:where(html[data-page="inventory_entry"]) *{box-sizing:border-box}
:where(html[data-page="inventory_entry"]) body{margin:0;background:var(--bg);color:#17231f;font-family:var(--font-ui);font-size:12px}
:where(html[data-page="inventory_entry"]) button,:where(html[data-page="inventory_entry"]) input,:where(html[data-page="inventory_entry"]) select,:where(html[data-page="inventory_entry"]) textarea{font:inherit}
:where(html[data-page="inventory_entry"]) a{text-decoration:none;color:#087c3d}
:where(html[data-page="inventory_entry"]) main{margin-right:var(--sidebar);width:calc(100% - var(--sidebar));padding:25px}
:where(html[data-page="inventory_entry"]) .head,:where(html[data-page="inventory_entry"]) .panel{background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:0 4px 15px #0f2c2509}
:where(html[data-page="inventory_entry"]) .head{padding:19px 21px;display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}
:where(html[data-page="inventory_entry"]) .head h1{font-size:20px;margin:0;color:var(--deep)}
:where(html[data-page="inventory_entry"]) .muted{color:var(--gray);font-size:12px}
:where(html[data-page="inventory_entry"]) .layout{display:grid;grid-template-columns:1.6fr .8fr;gap:14px}
:where(html[data-page="inventory_entry"]) .panel{margin-bottom:14px;overflow:hidden}
:where(html[data-page="inventory_entry"]) .panel h2{font-size:14px;margin:0;padding:16px;border-bottom:1px solid var(--line);color:var(--deep)}
:where(html[data-page="inventory_entry"]) .body{padding:16px}
:where(html[data-page="inventory_entry"]) .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
:where(html[data-page="inventory_entry"]) .field{min-width:0}
:where(html[data-page="inventory_entry"]) .field label{display:block;font-size:12px;font-weight:800;margin-bottom:5px}
:where(html[data-page="inventory_entry"]) .field input,:where(html[data-page="inventory_entry"]) .field select,:where(html[data-page="inventory_entry"]) .field textarea,:where(html[data-page="inventory_entry"]) .search{width:100%;border:1px solid #dce5e0;border-radius:10px;background:#fff;padding:10px;outline:none;min-height:42px}
:where(html[data-page="inventory_entry"]) .field textarea{min-height:78px}
:where(html[data-page="inventory_entry"]) .field input:focus,:where(html[data-page="inventory_entry"]) .field select:focus,:where(html[data-page="inventory_entry"]) .search:focus{border-color:var(--green)}
:where(html[data-page="inventory_entry"]) .required{color:#d10a18}
:where(html[data-page="inventory_entry"]) .item{border:1px solid var(--line);border-radius:13px;padding:14px;margin-bottom:12px;background:#fcfefd}
:where(html[data-page="inventory_entry"]) .itemtop{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;font-weight:800}
:where(html[data-page="inventory_entry"]) .btn{border:0;border-radius:10px;padding:10px 16px;cursor:pointer;font-weight:800;font-size:12px;display:inline-flex;gap:7px;align-items:center}
:where(html[data-page="inventory_entry"]) .primary{background:var(--green);color:white}
:where(html[data-page="inventory_entry"]) .secondary{background:#edf6f0;color:#05642f}
:where(html[data-page="inventory_entry"]) .danger{background:#fff1f2;color:#b91c1c}
:where(html[data-page="inventory_entry"]) .toolbar{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:12px}
:where(html[data-page="inventory_entry"]) .alert{padding:12px;border-radius:10px;margin-bottom:12px;background:#fef2f2;color:#991b1b}
:where(html[data-page="inventory_entry"]) .ok{background:#ecfdf5;color:#166534}
:where(html[data-page="inventory_entry"]) .tablewrap{overflow-x:auto}
:where(html[data-page="inventory_entry"]) table{width:100%;border-collapse:collapse;text-align:right;white-space:nowrap}
:where(html[data-page="inventory_entry"]) th,:where(html[data-page="inventory_entry"]) td{padding:10px;border-bottom:1px solid var(--line)}
:where(html[data-page="inventory_entry"]) th{color:var(--gray);font-size:12px}
:where(html[data-page="inventory_entry"]) .small{font-size:12px}
:where(html[data-page="inventory_entry"]) .chip{display:inline-block;border-radius:20px;background:#effaf3;color:#087c3d;padding:4px 8px;font-weight:800}
:where(html[data-page="inventory_entry"]) .actions{display:flex;gap:8px;align-items:center}
:where(html[data-page="inventory_entry"]) .hide{display:none}
:where(html[data-page="inventory_entry"]) .totals{background:#f0fdf4;padding:13px;border-radius:11px;margin-top:12px;font-weight:800}
:where(html[data-page="inventory_entry"]) .audit{border-bottom:1px solid var(--line);padding:10px 0}
:where(html[data-page="inventory_entry"]) .audit pre{white-space:pre-wrap;overflow-wrap:anywhere;font:10px monospace;background:#f8fafc;padding:8px;border-radius:8px;max-height:140px;overflow:auto}
:where(html[data-page="inventory_entry"]) details summary{cursor:pointer;color:#087c3d}
:where(html[data-page="inventory_entry"]) .field.full{grid-column:1/-1}
@media(max-width:1050px){:where(html[data-page="inventory_entry"]) .layout{grid-template-columns:1fr}}
@media(max-width:800px){:where(html[data-page="inventory_entry"]) main{margin-right:0;width:100%;padding:12px}
:where(html[data-page="inventory_entry"]) .grid{grid-template-columns:1fr}
:where(html[data-page="inventory_entry"]) .head{align-items:flex-start}}
:where(html[data-page="inventory_entry"]) .scan-field{display:flex;gap:7px;align-items:stretch}
:where(html[data-page="inventory_entry"]) .scan-field input{flex:1;min-width:0}
:where(html[data-page="inventory_entry"]) .scan-trigger{white-space:nowrap;background:#e8f8ee;color:#087c3d;border:1px solid #bde8cc;border-radius:10px;padding:0 12px;cursor:pointer;font-weight:800}
:where(html[data-page="inventory_entry"]) .scan-trigger:hover{background:#d8f4e3}
:where(html[data-page="inventory_entry"]) .scanner-overlay{position:fixed;inset:0;background:#071812dc;z-index:99999;display:none;align-items:center;justify-content:center;padding:15px}
:where(html[data-page="inventory_entry"]) .scanner-overlay.open{display:flex}
:where(html[data-page="inventory_entry"]) .scanner-box{width:min(100%,480px);background:white;border-radius:18px;padding:18px;box-shadow:0 20px 80px #0005}
:where(html[data-page="inventory_entry"]) .scanner-header{display:flex;justify-content:space-between;align-items:center;gap:10px}
:where(html[data-page="inventory_entry"]) .scanner-header h3{font-size:17px;margin:0;color:#0f2c25}
:where(html[data-page="inventory_entry"]) .scanner-view{position:relative;background:#0b1511;border-radius:13px;overflow:hidden;margin:14px 0;min-height:220px}
:where(html[data-page="inventory_entry"]) .scanner-view video{display:block;width:100%;max-height:370px;object-fit:cover}
:where(html[data-page="inventory_entry"]) .scanner-line{position:absolute;left:12%;right:12%;top:50%;height:2px;background:#21e27c;box-shadow:0 0 12px #21e27c;pointer-events:none}
:where(html[data-page="inventory_entry"]) .scanner-hint{color:#64748b;font-size:12px;line-height:1.9}
:where(html[data-page="inventory_entry"]) .scanner-status{font-size:12px;color:#9b341c;min-height:20px}
:where(html[data-page="inventory_entry"]){max-width:100%;overflow-x:hidden}
:where(html[data-page="inventory_entry"]) body{min-width:0;overflow-x:hidden}
:where(html[data-page="inventory_entry"]) main,:where(html[data-page="inventory_entry"]) .layout,:where(html[data-page="inventory_entry"]) .panel,:where(html[data-page="inventory_entry"]) .body,:where(html[data-page="inventory_entry"]) .item,:where(html[data-page="inventory_entry"]) .grid,:where(html[data-page="inventory_entry"]) .field{min-width:0}
:where(html[data-page="inventory_entry"]) input,:where(html[data-page="inventory_entry"]) select,:where(html[data-page="inventory_entry"]) textarea{max-width:100%}
:where(html[data-page="inventory_entry"]) button,:where(html[data-page="inventory_entry"]) .btn,:where(html[data-page="inventory_entry"]) .scan-trigger{touch-action:manipulation}
:where(html[data-page="inventory_entry"]) .head{gap:12px;flex-wrap:wrap}
:where(html[data-page="inventory_entry"]) .head>div{min-width:0}
:where(html[data-page="inventory_entry"]) .head h1{overflow-wrap:anywhere}
:where(html[data-page="inventory_entry"]) .toolbar>*{max-width:100%}
:where(html[data-page="inventory_entry"]) .tablewrap{-webkit-overflow-scrolling:touch}
:where(html[data-page="inventory_entry"]) .scanner-box{max-height:calc(100dvh - 24px);overflow-y:auto}
:where(html[data-page="inventory_entry"]) .scanner-view video{max-height:min(50dvh,370px)}
@media(max-width:1050px){:where(html[data-page="inventory_entry"]) .layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:800px){:where(html[data-page="inventory_entry"]) main{margin-right:0;width:100%;padding:14px}
:where(html[data-page="inventory_entry"]) .head{padding:16px}
:where(html[data-page="inventory_entry"]) .head h1{font-size:18px}
:where(html[data-page="inventory_entry"]) .body{padding:14px}
:where(html[data-page="inventory_entry"]) .grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){:where(html[data-page="inventory_entry"]) main{padding:10px}
:where(html[data-page="inventory_entry"]) .head{padding:13px}
:where(html[data-page="inventory_entry"]) .head h1{font-size:17px}
:where(html[data-page="inventory_entry"]) .head>a{width:100%;justify-content:center}
:where(html[data-page="inventory_entry"]) .panel h2{padding:12px}
:where(html[data-page="inventory_entry"]) .body{padding:12px}
:where(html[data-page="inventory_entry"]) .grid{grid-template-columns:minmax(0,1fr);gap:10px}
:where(html[data-page="inventory_entry"]) .item{padding:11px}
:where(html[data-page="inventory_entry"]) .itemtop{gap:8px;flex-wrap:wrap}
:where(html[data-page="inventory_entry"]) .itemtop .btn{margin-inline-start:auto}
:where(html[data-page="inventory_entry"]) .toolbar{gap:8px}
:where(html[data-page="inventory_entry"]) .toolbar>.btn{justify-content:center;flex:1 1 auto}
:where(html[data-page="inventory_entry"]) .field input,:where(html[data-page="inventory_entry"]) .field select,:where(html[data-page="inventory_entry"]) .field textarea,:where(html[data-page="inventory_entry"]) .search{font-size:16px;min-height:44px}
:where(html[data-page="inventory_entry"]) .scan-field{min-width:0}
:where(html[data-page="inventory_entry"]) .scan-trigger{min-width:74px;padding:0 9px}
:where(html[data-page="inventory_entry"]) .scanner-overlay{padding:10px}
:where(html[data-page="inventory_entry"]) .scanner-box{padding:14px;border-radius:14px}
:where(html[data-page="inventory_entry"]) .scanner-header h3{font-size:15px}
:where(html[data-page="inventory_entry"]) .scanner-view{min-height:180px}
:where(html[data-page="inventory_entry"]) .actions{flex-wrap:wrap}
:where(html[data-page="inventory_entry"]) .tablewrap table{min-width:680px}}
@media(max-width:360px){:where(html[data-page="inventory_entry"]) .scan-trigger{min-width:62px}
:where(html[data-page="inventory_entry"]) .btn{padding:9px 11px}
:where(html[data-page="inventory_entry"]) .scanner-header{flex-wrap:wrap}}
:where(html[data-page="inventory_entry"]) .barcode-feedback{font-size:12px;margin-top:6px;line-height:1.7;overflow-wrap:anywhere}

/* inventory_entry11 */
:where(html[data-page="inventory_entry11"]){--green:#03af46;--deep:#0f2c25;--line:#e4ebe7;--bg:#f6f8f7;--gray:#64748b;--sidebar:260px}
:where(html[data-page="inventory_entry11"]) *{box-sizing:border-box}
:where(html[data-page="inventory_entry11"]) body{margin:0;background:var(--bg);color:#17231f;font-family:var(--font-ui);font-size:12px}
:where(html[data-page="inventory_entry11"]) button,:where(html[data-page="inventory_entry11"]) input,:where(html[data-page="inventory_entry11"]) select,:where(html[data-page="inventory_entry11"]) textarea{font:inherit}
:where(html[data-page="inventory_entry11"]) a{text-decoration:none;color:#087c3d}
:where(html[data-page="inventory_entry11"]) main{margin-right:var(--sidebar);width:calc(100% - var(--sidebar));padding:25px}
:where(html[data-page="inventory_entry11"]) .head,:where(html[data-page="inventory_entry11"]) .panel{background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:0 4px 15px #0f2c2509}
:where(html[data-page="inventory_entry11"]) .head{padding:19px 21px;display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}
:where(html[data-page="inventory_entry11"]) .head h1{font-size:20px;margin:0;color:var(--deep)}
:where(html[data-page="inventory_entry11"]) .muted{color:var(--gray);font-size:12px}
:where(html[data-page="inventory_entry11"]) .layout{display:grid;grid-template-columns:1.6fr .8fr;gap:14px}
:where(html[data-page="inventory_entry11"]) .panel{margin-bottom:14px;overflow:hidden}
:where(html[data-page="inventory_entry11"]) .panel h2{font-size:14px;margin:0;padding:16px;border-bottom:1px solid var(--line);color:var(--deep)}
:where(html[data-page="inventory_entry11"]) .body{padding:16px}
:where(html[data-page="inventory_entry11"]) .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
:where(html[data-page="inventory_entry11"]) .field{min-width:0}
:where(html[data-page="inventory_entry11"]) .field label{display:block;font-size:12px;font-weight:800;margin-bottom:5px}
:where(html[data-page="inventory_entry11"]) .field input,:where(html[data-page="inventory_entry11"]) .field select,:where(html[data-page="inventory_entry11"]) .field textarea,:where(html[data-page="inventory_entry11"]) .search{width:100%;border:1px solid #dce5e0;border-radius:10px;background:#fff;padding:10px;outline:none;min-height:42px}
:where(html[data-page="inventory_entry11"]) .field textarea{min-height:78px}
:where(html[data-page="inventory_entry11"]) .field input:focus,:where(html[data-page="inventory_entry11"]) .field select:focus,:where(html[data-page="inventory_entry11"]) .search:focus{border-color:var(--green)}
:where(html[data-page="inventory_entry11"]) .required{color:#d10a18}
:where(html[data-page="inventory_entry11"]) .item{border:1px solid var(--line);border-radius:13px;padding:14px;margin-bottom:12px;background:#fcfefd}
:where(html[data-page="inventory_entry11"]) .itemtop{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;font-weight:800}
:where(html[data-page="inventory_entry11"]) .btn{border:0;border-radius:10px;padding:10px 16px;cursor:pointer;font-weight:800;font-size:12px;display:inline-flex;gap:7px;align-items:center}
:where(html[data-page="inventory_entry11"]) .primary{background:var(--green);color:white}
:where(html[data-page="inventory_entry11"]) .secondary{background:#edf6f0;color:#05642f}
:where(html[data-page="inventory_entry11"]) .danger{background:#fff1f2;color:#b91c1c}
:where(html[data-page="inventory_entry11"]) .toolbar{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:12px}
:where(html[data-page="inventory_entry11"]) .alert{padding:12px;border-radius:10px;margin-bottom:12px;background:#fef2f2;color:#991b1b}
:where(html[data-page="inventory_entry11"]) .ok{background:#ecfdf5;color:#166534}
:where(html[data-page="inventory_entry11"]) .tablewrap{overflow-x:auto}
:where(html[data-page="inventory_entry11"]) table{width:100%;border-collapse:collapse;text-align:right;white-space:nowrap}
:where(html[data-page="inventory_entry11"]) th,:where(html[data-page="inventory_entry11"]) td{padding:10px;border-bottom:1px solid var(--line)}
:where(html[data-page="inventory_entry11"]) th{color:var(--gray);font-size:12px}
:where(html[data-page="inventory_entry11"]) .small{font-size:12px}
:where(html[data-page="inventory_entry11"]) .chip{display:inline-block;border-radius:20px;background:#effaf3;color:#087c3d;padding:4px 8px;font-weight:800}
:where(html[data-page="inventory_entry11"]) .actions{display:flex;gap:8px;align-items:center}
:where(html[data-page="inventory_entry11"]) .hide{display:none}
:where(html[data-page="inventory_entry11"]) .totals{background:#f0fdf4;padding:13px;border-radius:11px;margin-top:12px;font-weight:800}
:where(html[data-page="inventory_entry11"]) .audit{border-bottom:1px solid var(--line);padding:10px 0}
:where(html[data-page="inventory_entry11"]) .audit pre{white-space:pre-wrap;overflow-wrap:anywhere;font:10px monospace;background:#f8fafc;padding:8px;border-radius:8px;max-height:140px;overflow:auto}
:where(html[data-page="inventory_entry11"]) details summary{cursor:pointer;color:#087c3d}
:where(html[data-page="inventory_entry11"]) .field.full{grid-column:1/-1}
@media(max-width:1050px){:where(html[data-page="inventory_entry11"]) .layout{grid-template-columns:1fr}}
@media(max-width:800px){:where(html[data-page="inventory_entry11"]) main{margin-right:0;width:100%;padding:12px}
:where(html[data-page="inventory_entry11"]) .grid{grid-template-columns:1fr}
:where(html[data-page="inventory_entry11"]) .head{align-items:flex-start}}
:where(html[data-page="inventory_entry11"]) .scan-field{display:flex;gap:7px;align-items:stretch}
:where(html[data-page="inventory_entry11"]) .scan-field input{flex:1;min-width:0}
:where(html[data-page="inventory_entry11"]) .scan-trigger{white-space:nowrap;background:#e8f8ee;color:#087c3d;border:1px solid #bde8cc;border-radius:10px;padding:0 12px;cursor:pointer;font-weight:800}
:where(html[data-page="inventory_entry11"]) .scan-trigger:hover{background:#d8f4e3}
:where(html[data-page="inventory_entry11"]) .scanner-overlay{position:fixed;inset:0;background:#071812dc;z-index:99999;display:none;align-items:center;justify-content:center;padding:15px}
:where(html[data-page="inventory_entry11"]) .scanner-overlay.open{display:flex}
:where(html[data-page="inventory_entry11"]) .scanner-box{width:min(100%,480px);background:white;border-radius:18px;padding:18px;box-shadow:0 20px 80px #0005}
:where(html[data-page="inventory_entry11"]) .scanner-header{display:flex;justify-content:space-between;align-items:center;gap:10px}
:where(html[data-page="inventory_entry11"]) .scanner-header h3{font-size:17px;margin:0;color:#0f2c25}
:where(html[data-page="inventory_entry11"]) .scanner-view{position:relative;background:#0b1511;border-radius:13px;overflow:hidden;margin:14px 0;min-height:220px}
:where(html[data-page="inventory_entry11"]) .scanner-view video{display:block;width:100%;max-height:370px;object-fit:cover}
:where(html[data-page="inventory_entry11"]) .scanner-line{position:absolute;left:12%;right:12%;top:50%;height:2px;background:#21e27c;box-shadow:0 0 12px #21e27c;pointer-events:none}
:where(html[data-page="inventory_entry11"]) .scanner-hint{color:#64748b;font-size:12px;line-height:1.9}
:where(html[data-page="inventory_entry11"]) .scanner-status{font-size:12px;color:#9b341c;min-height:20px}
:where(html[data-page="inventory_entry11"]){max-width:100%;overflow-x:hidden}
:where(html[data-page="inventory_entry11"]) body{min-width:0;overflow-x:hidden}
:where(html[data-page="inventory_entry11"]) main,:where(html[data-page="inventory_entry11"]) .layout,:where(html[data-page="inventory_entry11"]) .panel,:where(html[data-page="inventory_entry11"]) .body,:where(html[data-page="inventory_entry11"]) .item,:where(html[data-page="inventory_entry11"]) .grid,:where(html[data-page="inventory_entry11"]) .field{min-width:0}
:where(html[data-page="inventory_entry11"]) input,:where(html[data-page="inventory_entry11"]) select,:where(html[data-page="inventory_entry11"]) textarea{max-width:100%}
:where(html[data-page="inventory_entry11"]) button,:where(html[data-page="inventory_entry11"]) .btn,:where(html[data-page="inventory_entry11"]) .scan-trigger{touch-action:manipulation}
:where(html[data-page="inventory_entry11"]) .head{gap:12px;flex-wrap:wrap}
:where(html[data-page="inventory_entry11"]) .head>div{min-width:0}
:where(html[data-page="inventory_entry11"]) .head h1{overflow-wrap:anywhere}
:where(html[data-page="inventory_entry11"]) .toolbar>*{max-width:100%}
:where(html[data-page="inventory_entry11"]) .tablewrap{-webkit-overflow-scrolling:touch}
:where(html[data-page="inventory_entry11"]) .scanner-box{max-height:calc(100dvh - 24px);overflow-y:auto}
:where(html[data-page="inventory_entry11"]) .scanner-view video{max-height:min(50dvh,370px)}
@media(max-width:1050px){:where(html[data-page="inventory_entry11"]) .layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:800px){:where(html[data-page="inventory_entry11"]) main{margin-right:0;width:100%;padding:14px}
:where(html[data-page="inventory_entry11"]) .head{padding:16px}
:where(html[data-page="inventory_entry11"]) .head h1{font-size:18px}
:where(html[data-page="inventory_entry11"]) .body{padding:14px}
:where(html[data-page="inventory_entry11"]) .grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){:where(html[data-page="inventory_entry11"]) main{padding:10px}
:where(html[data-page="inventory_entry11"]) .head{padding:13px}
:where(html[data-page="inventory_entry11"]) .head h1{font-size:17px}
:where(html[data-page="inventory_entry11"]) .head>a{width:100%;justify-content:center}
:where(html[data-page="inventory_entry11"]) .panel h2{padding:12px}
:where(html[data-page="inventory_entry11"]) .body{padding:12px}
:where(html[data-page="inventory_entry11"]) .grid{grid-template-columns:minmax(0,1fr);gap:10px}
:where(html[data-page="inventory_entry11"]) .item{padding:11px}
:where(html[data-page="inventory_entry11"]) .itemtop{gap:8px;flex-wrap:wrap}
:where(html[data-page="inventory_entry11"]) .itemtop .btn{margin-inline-start:auto}
:where(html[data-page="inventory_entry11"]) .toolbar{gap:8px}
:where(html[data-page="inventory_entry11"]) .toolbar>.btn{justify-content:center;flex:1 1 auto}
:where(html[data-page="inventory_entry11"]) .field input,:where(html[data-page="inventory_entry11"]) .field select,:where(html[data-page="inventory_entry11"]) .field textarea,:where(html[data-page="inventory_entry11"]) .search{font-size:16px;min-height:44px}
:where(html[data-page="inventory_entry11"]) .scan-field{min-width:0}
:where(html[data-page="inventory_entry11"]) .scan-trigger{min-width:74px;padding:0 9px}
:where(html[data-page="inventory_entry11"]) .scanner-overlay{padding:10px}
:where(html[data-page="inventory_entry11"]) .scanner-box{padding:14px;border-radius:14px}
:where(html[data-page="inventory_entry11"]) .scanner-header h3{font-size:15px}
:where(html[data-page="inventory_entry11"]) .scanner-view{min-height:180px}
:where(html[data-page="inventory_entry11"]) .actions{flex-wrap:wrap}
:where(html[data-page="inventory_entry11"]) .tablewrap table{min-width:680px}}
@media(max-width:360px){:where(html[data-page="inventory_entry11"]) .scan-trigger{min-width:62px}
:where(html[data-page="inventory_entry11"]) .btn{padding:9px 11px}
:where(html[data-page="inventory_entry11"]) .scanner-header{flex-wrap:wrap}}

/* inventory_profit_loss-1 */
:where(html[data-page="inventory_profit_loss-2"]){--green:#03af46;--deep:#0f2c25;--muted:#64748b;--border:#e1eae5;--bg:#f6f8f7;--sidebar:260px}
:where(html[data-page="inventory_profit_loss-2"]) *{box-sizing:border-box}
:where(html[data-page="inventory_profit_loss-2"]) body{margin:0;background:var(--bg);color:#1b2a22;font:12px var(--font-ui)}
:where(html[data-page="inventory_profit_loss-2"]) main{margin-right:var(--sidebar);width:calc(100% - var(--sidebar));padding:24px}
:where(html[data-page="inventory_profit_loss-2"]) a{text-decoration:none;color:#087a3e}
:where(html[data-page="inventory_profit_loss-2"]) .head,:where(html[data-page="inventory_profit_loss-2"]) .panel,:where(html[data-page="inventory_profit_loss-2"]) .stat{background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:0 4px 16px #12352108}
:where(html[data-page="inventory_profit_loss-2"]) .head{padding:20px;display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}
:where(html[data-page="inventory_profit_loss-2"]) .head h1{font-size:21px;color:var(--deep);margin:0}
:where(html[data-page="inventory_profit_loss-2"]) .muted{font-size:12px;color:var(--muted)}
:where(html[data-page="inventory_profit_loss-2"]) .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:10px;padding:10px 14px;background:#eaf7ee;color:#096637;font:700 12px Cairo;cursor:pointer}
:where(html[data-page="inventory_profit_loss-2"]) .primary{background:var(--green);color:#fff}
:where(html[data-page="inventory_profit_loss-2"]) .stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:15px}
:where(html[data-page="inventory_profit_loss-2"]) .stat{padding:17px;min-width:0}
:where(html[data-page="inventory_profit_loss-2"]) .stat b{display:block;font-size:22px;color:var(--deep);overflow-wrap:anywhere}
:where(html[data-page="inventory_profit_loss-2"]) .stat .note{font-size:12px;color:var(--muted);line-height:1.7}
:where(html[data-page="inventory_profit_loss-2"]) .panel{padding:17px;margin-bottom:15px}
:where(html[data-page="inventory_profit_loss-2"]) .filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap}
:where(html[data-page="inventory_profit_loss-2"]) .filters>div{flex:1;min-width:145px}
:where(html[data-page="inventory_profit_loss-2"]) label{display:block;font-weight:800;margin-bottom:5px}
:where(html[data-page="inventory_profit_loss-2"]) input{width:100%;padding:11px;border:1px solid var(--border);border-radius:10px;font:12px Cairo}
:where(html[data-page="inventory_profit_loss-2"]) .tablewrap{overflow:auto}
:where(html[data-page="inventory_profit_loss-2"]) table{width:100%;border-collapse:collapse;min-width:930px}
:where(html[data-page="inventory_profit_loss-2"]) th,:where(html[data-page="inventory_profit_loss-2"]) td{padding:12px 10px;text-align:right;border-bottom:1px solid var(--border)}
:where(html[data-page="inventory_profit_loss-2"]) th{color:var(--muted);background:#f6faf7}
:where(html[data-page="inventory_profit_loss-2"]) td small{display:block;color:var(--muted)}
:where(html[data-page="inventory_profit_loss-2"]) .pill{display:inline-block;padding:4px 9px;border-radius:20px;background:#e9f8ee;color:#08763c;font-weight:800}
:where(html[data-page="inventory_profit_loss-2"]) .pill.warn{background:#fff3df;color:#976000}
:where(html[data-page="inventory_profit_loss-2"]) .pill.loss{background:#ffebeb;color:#b91c1c}
:where(html[data-page="inventory_profit_loss-2"]) .info{line-height:2;color:#586b61}
:where(html[data-page="inventory_profit_loss-2"]) .toolbar{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:950px){:where(html[data-page="inventory_profit_loss-2"]) main{margin:0;width:100%;padding:75px 12px 20px}
:where(html[data-page="inventory_profit_loss-2"]) .stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){:where(html[data-page="inventory_profit_loss-2"]) .stats{grid-template-columns:1fr}
:where(html[data-page="inventory_profit_loss-2"]) .stat b{font-size:20px}
:where(html[data-page="inventory_profit_loss-2"]) .head{flex-direction:column;align-items:start}
:where(html[data-page="inventory_profit_loss-2"]) .panel{padding:12px}}

/* inventory_stock */
:where(html[data-page="inventory_stock"]){--g:#03af46;--deep:#0f2c25;--line:#e2ebe5;--bg:#f6f8f7;--muted:#64748b;--sidebar:260px}
:where(html[data-page="inventory_stock"]) *{box-sizing:border-box}
:where(html[data-page="inventory_stock"]) body{margin:0;background:var(--bg);color:#182a21;font:12px var(--font-ui)}
:where(html[data-page="inventory_stock"]) main{margin-right:var(--sidebar);width:calc(100% - var(--sidebar));padding:24px}
:where(html[data-page="inventory_stock"]) a{text-decoration:none;color:#087c3d}
:where(html[data-page="inventory_stock"]) .head,:where(html[data-page="inventory_stock"]) .panel,:where(html[data-page="inventory_stock"]) .stat{background:white;border:1px solid var(--line);border-radius:17px;box-shadow:0 4px 15px #0f2c2509}
:where(html[data-page="inventory_stock"]) .head{padding:20px;display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:16px}
:where(html[data-page="inventory_stock"]) .head h1{font-size:22px;margin:0;color:var(--deep)}
:where(html[data-page="inventory_stock"]) .muted{color:var(--muted);font-size:12px}
:where(html[data-page="inventory_stock"]) .btn{border:0;border-radius:10px;padding:10px 14px;background:#eaf8ef;color:#076b32;cursor:pointer;font:700 11px Cairo;display:inline-block}
:where(html[data-page="inventory_stock"]) .btn.primary{background:var(--g);color:white}
:where(html[data-page="inventory_stock"]) .btn:disabled{opacity:.45;cursor:not-allowed}
:where(html[data-page="inventory_stock"]) .stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}
:where(html[data-page="inventory_stock"]) .stat{padding:17px}
:where(html[data-page="inventory_stock"]) .stat b{display:block;font-size:23px;color:var(--deep)}
:where(html[data-page="inventory_stock"]) .panel{padding:18px;margin-bottom:16px}
:where(html[data-page="inventory_stock"]) .toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:12px}
:where(html[data-page="inventory_stock"]) .toolbar>div{flex:1;min-width:180px}
:where(html[data-page="inventory_stock"]) label{display:block;font-weight:800;margin-bottom:5px}
:where(html[data-page="inventory_stock"]) input,:where(html[data-page="inventory_stock"]) select,:where(html[data-page="inventory_stock"]) textarea{border:1px solid #dbe5df;border-radius:10px;padding:10px;width:100%;font:12px Cairo;background:white}
:where(html[data-page="inventory_stock"]) textarea{min-height:80px}
:where(html[data-page="inventory_stock"]) .tablewrap{overflow-x:auto}
:where(html[data-page="inventory_stock"]) table{width:100%;border-collapse:collapse;min-width:900px}
:where(html[data-page="inventory_stock"]) th,:where(html[data-page="inventory_stock"]) td{text-align:right;padding:12px;border-bottom:1px solid var(--line)}
:where(html[data-page="inventory_stock"]) th{background:#f6faf7;color:#64748b}
:where(html[data-page="inventory_stock"]) tr:hover td{background:#fcfefd}
:where(html[data-page="inventory_stock"]) .pill{border-radius:20px;padding:4px 9px;background:#e9f8ee;color:#08763c;font-weight:800}
:where(html[data-page="inventory_stock"]) .pill.bad{background:#fff1ef;color:#ad3a27}
:where(html[data-page="inventory_stock"]) .pill.warn{background:#fff5e5;color:#a86709}
:where(html[data-page="inventory_stock"]) .alert{padding:13px;border-radius:10px;margin-bottom:14px;background:#fff1ef;color:#a32d25}
:where(html[data-page="inventory_stock"]) .success{background:#ecfdf3;color:#0d7d42}
:where(html[data-page="inventory_stock"]) .switchrow{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}
:where(html[data-page="inventory_stock"]) .modal{position:fixed;inset:0;background:#0c2019bd;display:none;align-items:center;justify-content:center;padding:14px;z-index:99999}
:where(html[data-page="inventory_stock"]) .modal.open{display:flex}
:where(html[data-page="inventory_stock"]) .dialog{background:#fff;width:min(100%,480px);padding:22px;border-radius:18px}
:where(html[data-page="inventory_stock"]) .dialog h2{margin:0 0 12px}
:where(html[data-page="inventory_stock"]) .dialog .field{margin-bottom:12px}
:where(html[data-page="inventory_stock"]) .history{display:grid;gap:9px}
:where(html[data-page="inventory_stock"]) .history article{padding:12px;border:1px solid var(--line);border-radius:12px}
:where(html[data-page="inventory_stock"]) .actions{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:900px){:where(html[data-page="inventory_stock"]) main{margin:0;width:100%;padding:75px 12px 20px}
:where(html[data-page="inventory_stock"]) .stats{grid-template-columns:repeat(2,1fr)}
:where(html[data-page="inventory_stock"]) .head{align-items:start;flex-direction:column}}
@media(max-width:500px){:where(html[data-page="inventory_stock"]) .stat b{font-size:18px}}

/* inventory_template-1 */
:where(html[data-page="inventory_template-2"]){
    --green:#03AF46;
    --green-dark:#05642F;
    --deep:#0F2C25;
    --red:#DA0C11;
    --teal:#308E9E;
    --mint:#D7FFF0;
    --bg:#F6F8F7;
    --white:#fff;
    --text:#17231f;
    --gray:#64748b;
    --line:#e4ebe7;
    --orange:#d97706;
    --sidebar:260px;
}
:where(html[data-page="inventory_template-2"]) *{box-sizing:border-box;margin:0;padding:0;font-family:var(--font-ui)}
:where(html[data-page="inventory_template-2"]) body{background:var(--bg);color:var(--text);min-height:100vh;overflow-x:hidden}
:where(html[data-page="inventory_template-2"]) a{text-decoration:none}
:where(html[data-page="inventory_template-2"]) button,:where(html[data-page="inventory_template-2"]) input,:where(html[data-page="inventory_template-2"]) select,:where(html[data-page="inventory_template-2"]) textarea{font:inherit}
:where(html[data-page="inventory_template-2"]) main{margin-right:var(--sidebar);width:calc(100% - var(--sidebar));padding:25px}
:where(html[data-page="inventory_template-2"]) .page-head{background:#fff;border:1px solid var(--line);border-radius:17px;padding:19px 21px;margin-bottom:15px;display:flex;align-items:center;justify-content:space-between;gap:15px;box-shadow:0 4px 15px rgba(15,44,37,.035)}
:where(html[data-page="inventory_template-2"]) .page-head h1{font-size:20px;color:var(--deep);margin-bottom:4px}
:where(html[data-page="inventory_template-2"]) .page-head p{font-size:11.5px;color:var(--gray);line-height:1.7}
:where(html[data-page="inventory_template-2"]) .head-icon{width:48px;height:48px;flex:0 0 48px;border-radius:14px;background:var(--mint);color:var(--green-dark);display:grid;place-items:center;font-size:20px}
:where(html[data-page="inventory_template-2"]) .alert{border:1px solid;border-radius:13px;padding:13px 15px;margin-bottom:14px;font-size:12px;line-height:1.8}
:where(html[data-page="inventory_template-2"]) .alert i{margin-left:5px}
:where(html[data-page="inventory_template-2"]) .alert-warning{background:#fff7ed;border-color:#fed7aa;color:#9a3412}
:where(html[data-page="inventory_template-2"]) .alert-success{background:#f0fdf4;border-color:#bbf7d0;color:#166534}
:where(html[data-page="inventory_template-2"]) .alert-error{background:#fef2f2;border-color:#fecaca;color:#991b1b}
:where(html[data-page="inventory_template-2"]) .layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(285px,.72fr);gap:14px;align-items:start}
:where(html[data-page="inventory_template-2"]) .panel{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 3px 12px rgba(15,44,37,.025)}
:where(html[data-page="inventory_template-2"]) .panel-head{padding:16px 17px;border-bottom:1px solid #edf2ef;display:flex;justify-content:space-between;align-items:center;gap:10px}
:where(html[data-page="inventory_template-2"]) .panel-head h2{font-size:14px;color:var(--deep)}
:where(html[data-page="inventory_template-2"]) .panel-head p{font-size:12px;color:#94a3b8;margin-top:2px}
:where(html[data-page="inventory_template-2"]) .panel-body{padding:17px}
:where(html[data-page="inventory_template-2"]) .form-group{margin-bottom:16px}
:where(html[data-page="inventory_template-2"]) .form-label{display:block;font-size:12px;font-weight:800;color:#334155;margin-bottom:6px}
:where(html[data-page="inventory_template-2"]) .form-control{width:100%;height:43px;border:1px solid #dce5e0;border-radius:10px;background:#fff;padding:0 12px;color:#1f2937;outline:none;transition:.15s}
:where(html[data-page="inventory_template-2"]) .form-control:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(3,175,70,.09)}
:where(html[data-page="inventory_template-2"]) .template-meta{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end}
:where(html[data-page="inventory_template-2"]) .badge{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:6px 10px;font-size:9.5px;font-weight:800;background:#ecfdf3;color:#166534}
:where(html[data-page="inventory_template-2"]) .fields-list{display:flex;flex-direction:column;gap:9px}
:where(html[data-page="inventory_template-2"]) .field-row{border:1px solid #e5ebe8;border-radius:13px;background:#fff;padding:12px;transition:.15s}
:where(html[data-page="inventory_template-2"]) .field-row:hover{border-color:#cfdcd5}
:where(html[data-page="inventory_template-2"]) .field-row.is-disabled{background:#fafbfb;opacity:.72}
:where(html[data-page="inventory_template-2"]) .field-top{display:grid;grid-template-columns:25px minmax(130px,1fr) minmax(125px,.65fr) auto;gap:9px;align-items:center}
:where(html[data-page="inventory_template-2"]) .drag-handle{width:28px;height:38px;display:grid;place-items:center;color:#94a3b8;cursor:grab}
:where(html[data-page="inventory_template-2"]) .field-label-input,:where(html[data-page="inventory_template-2"]) .field-type-select,:where(html[data-page="inventory_template-2"]) .options-input{width:100%;height:38px;border:1px solid #dce5e0;border-radius:9px;padding:0 10px;background:#fff;font-size:10.5px;outline:none}
:where(html[data-page="inventory_template-2"]) .field-label-input:focus,:where(html[data-page="inventory_template-2"]) .field-type-select:focus,:where(html[data-page="inventory_template-2"]) .options-input:focus{border-color:var(--green)}
:where(html[data-page="inventory_template-2"]) .field-actions{display:flex;align-items:center;gap:7px}
:where(html[data-page="inventory_template-2"]) .icon-btn{width:35px;height:35px;border:0;border-radius:9px;display:grid;place-items:center;cursor:pointer;background:#f1f5f9;color:#64748b}
:where(html[data-page="inventory_template-2"]) .icon-btn.delete{background:#fef2f2;color:#b91c1c}
:where(html[data-page="inventory_template-2"]) .icon-btn:disabled{opacity:.35;cursor:not-allowed}
:where(html[data-page="inventory_template-2"]) .field-bottom{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:10px;padding-right:37px}
:where(html[data-page="inventory_template-2"]) .check-wrap{display:flex;align-items:center;gap:6px;font-size:12px;color:#475569;cursor:pointer}
:where(html[data-page="inventory_template-2"]) .check-wrap input{accent-color:var(--green);width:15px;height:15px}
:where(html[data-page="inventory_template-2"]) .system-tag{font-size:12px;padding:3px 7px;border-radius:999px;background:#f1f5f9;color:#64748b}
:where(html[data-page="inventory_template-2"]) .options-wrap{margin-top:9px;padding-right:37px;display:none}
:where(html[data-page="inventory_template-2"]) .options-wrap.visible{display:block}
:where(html[data-page="inventory_template-2"]) .options-help{font-size:12px;color:#94a3b8;margin-top:4px}
:where(html[data-page="inventory_template-2"]) .option-editor{display:flex;flex-direction:column;gap:8px}
:where(html[data-page="inventory_template-2"]) .option-chips{display:flex;flex-wrap:wrap;gap:6px}
:where(html[data-page="inventory_template-2"]) .option-chip{display:inline-flex;align-items:center;gap:6px;background:#eefbf4;border:1px solid #ccebd9;color:#166534;border-radius:999px;padding:5px 9px;font-size:9.5px;font-weight:700}
:where(html[data-page="inventory_template-2"]) .option-chip button{border:0;background:transparent;color:#b91c1c;cursor:pointer;padding:0;line-height:1}
:where(html[data-page="inventory_template-2"]) .option-add-row{display:grid;grid-template-columns:1fr auto;gap:7px}
:where(html[data-page="inventory_template-2"]) .option-add-btn{border:0;border-radius:9px;background:#eaf8f0;color:var(--green-dark);padding:0 12px;font-size:12px;font-weight:800;cursor:pointer}
:where(html[data-page="inventory_template-2"]) .add-field{width:100%;border:1.5px dashed #b9d8c8;background:#f8fffb;color:var(--green-dark);border-radius:12px;padding:12px;font-size:12px;font-weight:800;cursor:pointer;margin-top:11px}
:where(html[data-page="inventory_template-2"]) .add-field:hover{background:#effcf5;border-color:var(--green)}
:where(html[data-page="inventory_template-2"]) .save-bar{display:flex;justify-content:flex-end;gap:9px;border-top:1px solid #edf2ef;margin-top:17px;padding-top:16px}
:where(html[data-page="inventory_template-2"]) .btn{border:0;border-radius:10px;padding:10px 16px;font-size:12px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px}
:where(html[data-page="inventory_template-2"]) .btn-primary{background:var(--green);color:#fff;min-width:145px}
:where(html[data-page="inventory_template-2"]) .btn-secondary{background:#f1f5f9;color:#334155}
:where(html[data-page="inventory_template-2"]) .side-panel{position:sticky;top:18px}
:where(html[data-page="inventory_template-2"]) .preview-title{font-size:12px;font-weight:800;color:var(--deep);margin-bottom:3px}
:where(html[data-page="inventory_template-2"]) .preview-sub{font-size:9.5px;color:#94a3b8;margin-bottom:13px}
:where(html[data-page="inventory_template-2"]) .preview-sheet{border:1px solid #dce7e1;border-radius:14px;padding:14px;background:linear-gradient(#fff,#fbfdfc);min-height:250px}
:where(html[data-page="inventory_template-2"]) .preview-brand{display:flex;align-items:center;justify-content:space-between;border-bottom:1px dashed #dbe5e0;padding-bottom:10px;margin-bottom:12px}
:where(html[data-page="inventory_template-2"]) .preview-brand strong{font-size:12px;color:var(--deep)}
:where(html[data-page="inventory_template-2"]) .preview-brand span{font-size:8.5px;color:#94a3b8}
:where(html[data-page="inventory_template-2"]) .preview-field{margin-bottom:10px}
:where(html[data-page="inventory_template-2"]) .preview-field label{display:block;font-size:12px;font-weight:700;color:#64748b;margin-bottom:4px}
:where(html[data-page="inventory_template-2"]) .preview-box{height:32px;border:1px solid #e0e7e3;border-radius:8px;background:#f9fbfa;display:flex;align-items:center;padding:0 9px;color:#b0bbb5;font-size:12px}
:where(html[data-page="inventory_template-2"]) .preview-field.required label::after{content:' *';color:var(--red)}
:where(html[data-page="inventory_template-2"]) .preview-empty{text-align:center;color:#94a3b8;font-size:12px;padding:55px 10px}
:where(html[data-page="inventory_template-2"]) .info-box{margin-top:13px;border-radius:12px;background:#f8faf9;border:1px solid #e6ece9;padding:12px}
:where(html[data-page="inventory_template-2"]) .info-box h3{font-size:10.5px;margin-bottom:6px;color:var(--deep)}
:where(html[data-page="inventory_template-2"]) .info-box p{font-size:9.5px;line-height:1.8;color:#64748b}
:where(html[data-page="inventory_template-2"]) .info-box strong{color:#334155}
:where(html[data-page="inventory_template-2"]) .confirm-backdrop{display:none;position:fixed;inset:0;z-index:12000;background:rgba(0,0,0,.58);align-items:center;justify-content:center;padding:18px}
:where(html[data-page="inventory_template-2"]) .confirm-backdrop.show{display:flex}
:where(html[data-page="inventory_template-2"]) .confirm-box{width:min(460px,100%);background:#fff;border-radius:18px;padding:22px;text-align:center;box-shadow:0 25px 70px rgba(0,0,0,.24)}
:where(html[data-page="inventory_template-2"]) .confirm-icon{width:56px;height:56px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;background:#fff7ed;color:#c2410c;font-size:23px}
:where(html[data-page="inventory_template-2"]) .confirm-box h2{font-size:17px;margin-bottom:7px;color:var(--deep)}
:where(html[data-page="inventory_template-2"]) .confirm-box p{font-size:11.5px;line-height:1.9;color:#64748b}
:where(html[data-page="inventory_template-2"]) .confirm-actions{display:flex;gap:8px;margin-top:17px}
:where(html[data-page="inventory_template-2"]) .confirm-actions .btn{flex:1}
@media(max-width:1050px){:where(html[data-page="inventory_template-2"]) .layout{grid-template-columns:1fr}
:where(html[data-page="inventory_template-2"]) .side-panel{position:static}}
@media(max-width:992px){:where(html[data-page="inventory_template-2"]) main{margin-right:0;width:100%;padding:72px 13px 18px}}
@media(max-width:650px){:where(html[data-page="inventory_template-2"]) .page-head{padding:15px}
:where(html[data-page="inventory_template-2"]) .page-head h1{font-size:17px}
:where(html[data-page="inventory_template-2"]) .head-icon{width:40px;height:40px;flex-basis:40px}
:where(html[data-page="inventory_template-2"]) .template-meta{grid-template-columns:1fr}
:where(html[data-page="inventory_template-2"]) .field-top{grid-template-columns:24px minmax(0,1fr) auto}
:where(html[data-page="inventory_template-2"]) .field-type-select{grid-column:2/3}
:where(html[data-page="inventory_template-2"]) .field-actions{grid-column:3/4;grid-row:1/3}
:where(html[data-page="inventory_template-2"]) .field-bottom,:where(html[data-page="inventory_template-2"]) .options-wrap{padding-right:30px}
:where(html[data-page="inventory_template-2"]) .panel-body{padding:13px}
:where(html[data-page="inventory_template-2"]) .save-bar{flex-direction:column-reverse}
:where(html[data-page="inventory_template-2"]) .save-bar .btn{width:100%}
:where(html[data-page="inventory_template-2"]) .confirm-actions{flex-direction:column}}
:where(html[data-page="inventory_template-2"]) .extra-head{display:flex;align-items:center;gap:10px}
:where(html[data-page="inventory_template-2"]) .config-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
:where(html[data-page="inventory_template-2"]) .switch-card{border:1px solid #e5ebe8;border-radius:12px;padding:12px}
:where(html[data-page="inventory_template-2"]) .switch-card label{display:flex;gap:8px;align-items:center;font-size:12px}
:where(html[data-page="inventory_template-2"]) .switch-card input{accent-color:#03AF46}
:where(html[data-page="inventory_template-2"]) .section-heading{font-weight:800;color:#0F2C25;margin:18px 0 10px;font-size:13px}
:where(html[data-page="inventory_template-2"]) .group-label{background:#f0fdf4;border-radius:9px;padding:8px 12px;color:#166534;font-weight:800;font-size:12px;margin:12px 0}
:where(html[data-page="inventory_template-2"]) .field-row select{cursor:pointer}
:where(html[data-page="inventory_template-2"]) .preview-sheet{max-height:650px;overflow:auto}
:where(html[data-page="inventory_template-2"]) .muted{color:#64748b;font-size:12px}
:where(html[data-page="inventory_template-2"]) .small-note{font-size:12px;color:#64748b;line-height:1.9;margin-top:9px}
:where(html[data-page="inventory_template-2"]) .options-wrap textarea{height:65px;padding:8px;resize:vertical}
:where(html[data-page="inventory_template-2"]) .inline-check{display:flex;align-items:center;gap:7px}
:where(html[data-page="inventory_template-2"]) .supplier-hidden{opacity:.6}
@media(max-width:650px){:where(html[data-page="inventory_template-2"]) .config-grid{grid-template-columns:1fr}}

/* ledger_template */
:where(html[data-page="ledger_template"]){
    --green:#03AF46;
    --green-dark:#05642F;
    --deep:#0F2C25;
    --red:#DA0C11;
    --teal:#308E9E;
    --mint:#D7FFF0;
    --bg:#F6F8F7;
    --white:#fff;
    --text:#17231f;
    --gray:#64748b;
    --line:#e4ebe7;
    --orange:#d97706;
    --sidebar:260px;
}
:where(html[data-page="ledger_template"]) *{box-sizing:border-box;margin:0;padding:0;font-family:var(--font-ui)}
:where(html[data-page="ledger_template"]) body{background:var(--bg);color:var(--text);min-height:100vh;overflow-x:hidden}
:where(html[data-page="ledger_template"]) a{text-decoration:none}
:where(html[data-page="ledger_template"]) button,:where(html[data-page="ledger_template"]) input,:where(html[data-page="ledger_template"]) select,:where(html[data-page="ledger_template"]) textarea{font:inherit}
:where(html[data-page="ledger_template"]) main{margin-right:var(--sidebar);width:calc(100% - var(--sidebar));padding:25px}
:where(html[data-page="ledger_template"]) .page-head{background:#fff;border:1px solid var(--line);border-radius:17px;padding:19px 21px;margin-bottom:15px;display:flex;align-items:center;justify-content:space-between;gap:15px;box-shadow:0 4px 15px rgba(15,44,37,.035)}
:where(html[data-page="ledger_template"]) .page-head h1{font-size:20px;color:var(--deep);margin-bottom:4px}
:where(html[data-page="ledger_template"]) .page-head p{font-size:11.5px;color:var(--gray);line-height:1.7}
:where(html[data-page="ledger_template"]) .head-icon{width:48px;height:48px;flex:0 0 48px;border-radius:14px;background:var(--mint);color:var(--green-dark);display:grid;place-items:center;font-size:20px}
:where(html[data-page="ledger_template"]) .alert{border:1px solid;border-radius:13px;padding:13px 15px;margin-bottom:14px;font-size:12px;line-height:1.8}
:where(html[data-page="ledger_template"]) .alert i{margin-left:5px}
:where(html[data-page="ledger_template"]) .alert-warning{background:#fff7ed;border-color:#fed7aa;color:#9a3412}
:where(html[data-page="ledger_template"]) .alert-success{background:#f0fdf4;border-color:#bbf7d0;color:#166534}
:where(html[data-page="ledger_template"]) .alert-error{background:#fef2f2;border-color:#fecaca;color:#991b1b}
:where(html[data-page="ledger_template"]) .layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(285px,.72fr);gap:14px;align-items:start}
:where(html[data-page="ledger_template"]) .panel{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 3px 12px rgba(15,44,37,.025)}
:where(html[data-page="ledger_template"]) .panel-head{padding:16px 17px;border-bottom:1px solid #edf2ef;display:flex;justify-content:space-between;align-items:center;gap:10px}
:where(html[data-page="ledger_template"]) .panel-head h2{font-size:14px;color:var(--deep)}
:where(html[data-page="ledger_template"]) .panel-head p{font-size:12px;color:#94a3b8;margin-top:2px}
:where(html[data-page="ledger_template"]) .panel-body{padding:17px}
:where(html[data-page="ledger_template"]) .form-group{margin-bottom:16px}
:where(html[data-page="ledger_template"]) .form-label{display:block;font-size:12px;font-weight:800;color:#334155;margin-bottom:6px}
:where(html[data-page="ledger_template"]) .form-control{width:100%;height:43px;border:1px solid #dce5e0;border-radius:10px;background:#fff;padding:0 12px;color:#1f2937;outline:none;transition:.15s}
:where(html[data-page="ledger_template"]) .form-control:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(3,175,70,.09)}
:where(html[data-page="ledger_template"]) .template-meta{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end}
:where(html[data-page="ledger_template"]) .badge{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:6px 10px;font-size:9.5px;font-weight:800;background:#ecfdf3;color:#166534}
:where(html[data-page="ledger_template"]) .fields-list{display:flex;flex-direction:column;gap:9px}
:where(html[data-page="ledger_template"]) .field-row{border:1px solid #e5ebe8;border-radius:13px;background:#fff;padding:12px;transition:.15s}
:where(html[data-page="ledger_template"]) .field-row:hover{border-color:#cfdcd5}
:where(html[data-page="ledger_template"]) .field-row.is-disabled{background:#fafbfb;opacity:.72}
:where(html[data-page="ledger_template"]) .field-top{display:grid;grid-template-columns:28px minmax(150px,1fr) minmax(135px,.65fr) auto;gap:9px;align-items:center}
:where(html[data-page="ledger_template"]) .drag-handle{width:28px;height:38px;display:grid;place-items:center;color:#94a3b8;cursor:grab}
:where(html[data-page="ledger_template"]) .field-label-input,:where(html[data-page="ledger_template"]) .field-type-select,:where(html[data-page="ledger_template"]) .options-input{width:100%;height:38px;border:1px solid #dce5e0;border-radius:9px;padding:0 10px;background:#fff;font-size:10.5px;outline:none}
:where(html[data-page="ledger_template"]) .field-label-input:focus,:where(html[data-page="ledger_template"]) .field-type-select:focus,:where(html[data-page="ledger_template"]) .options-input:focus{border-color:var(--green)}
:where(html[data-page="ledger_template"]) .field-actions{display:flex;align-items:center;gap:7px}
:where(html[data-page="ledger_template"]) .icon-btn{width:35px;height:35px;border:0;border-radius:9px;display:grid;place-items:center;cursor:pointer;background:#f1f5f9;color:#64748b}
:where(html[data-page="ledger_template"]) .icon-btn.delete{background:#fef2f2;color:#b91c1c}
:where(html[data-page="ledger_template"]) .icon-btn:disabled{opacity:.35;cursor:not-allowed}
:where(html[data-page="ledger_template"]) .field-bottom{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:10px;padding-right:37px}
:where(html[data-page="ledger_template"]) .check-wrap{display:flex;align-items:center;gap:6px;font-size:12px;color:#475569;cursor:pointer}
:where(html[data-page="ledger_template"]) .check-wrap input{accent-color:var(--green);width:15px;height:15px}
:where(html[data-page="ledger_template"]) .system-tag{font-size:12px;padding:3px 7px;border-radius:999px;background:#f1f5f9;color:#64748b}
:where(html[data-page="ledger_template"]) .options-wrap{margin-top:9px;padding-right:37px;display:none}
:where(html[data-page="ledger_template"]) .options-wrap.visible{display:block}
:where(html[data-page="ledger_template"]) .options-help{font-size:12px;color:#94a3b8;margin-top:4px}
:where(html[data-page="ledger_template"]) .option-editor{display:flex;flex-direction:column;gap:8px}
:where(html[data-page="ledger_template"]) .option-chips{display:flex;flex-wrap:wrap;gap:6px}
:where(html[data-page="ledger_template"]) .option-chip{display:inline-flex;align-items:center;gap:6px;background:#eefbf4;border:1px solid #ccebd9;color:#166534;border-radius:999px;padding:5px 9px;font-size:9.5px;font-weight:700}
:where(html[data-page="ledger_template"]) .option-chip button{border:0;background:transparent;color:#b91c1c;cursor:pointer;padding:0;line-height:1}
:where(html[data-page="ledger_template"]) .option-add-row{display:grid;grid-template-columns:1fr auto;gap:7px}
:where(html[data-page="ledger_template"]) .option-add-btn{border:0;border-radius:9px;background:#eaf8f0;color:var(--green-dark);padding:0 12px;font-size:12px;font-weight:800;cursor:pointer}
:where(html[data-page="ledger_template"]) .add-field{width:100%;border:1.5px dashed #b9d8c8;background:#f8fffb;color:var(--green-dark);border-radius:12px;padding:12px;font-size:12px;font-weight:800;cursor:pointer;margin-top:11px}
:where(html[data-page="ledger_template"]) .add-field:hover{background:#effcf5;border-color:var(--green)}
:where(html[data-page="ledger_template"]) .save-bar{display:flex;justify-content:flex-end;gap:9px;border-top:1px solid #edf2ef;margin-top:17px;padding-top:16px}
:where(html[data-page="ledger_template"]) .btn{border:0;border-radius:10px;padding:10px 16px;font-size:12px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px}
:where(html[data-page="ledger_template"]) .btn-primary{background:var(--green);color:#fff;min-width:145px}
:where(html[data-page="ledger_template"]) .btn-secondary{background:#f1f5f9;color:#334155}
:where(html[data-page="ledger_template"]) .side-panel{position:sticky;top:18px}
:where(html[data-page="ledger_template"]) .preview-title{font-size:12px;font-weight:800;color:var(--deep);margin-bottom:3px}
:where(html[data-page="ledger_template"]) .preview-sub{font-size:9.5px;color:#94a3b8;margin-bottom:13px}
:where(html[data-page="ledger_template"]) .preview-sheet{border:1px solid #dce7e1;border-radius:14px;padding:14px;background:linear-gradient(#fff,#fbfdfc);min-height:250px}
:where(html[data-page="ledger_template"]) .preview-brand{display:flex;align-items:center;justify-content:space-between;border-bottom:1px dashed #dbe5e0;padding-bottom:10px;margin-bottom:12px}
:where(html[data-page="ledger_template"]) .preview-brand strong{font-size:12px;color:var(--deep)}
:where(html[data-page="ledger_template"]) .preview-brand span{font-size:8.5px;color:#94a3b8}
:where(html[data-page="ledger_template"]) .preview-field{margin-bottom:10px}
:where(html[data-page="ledger_template"]) .preview-field label{display:block;font-size:12px;font-weight:700;color:#64748b;margin-bottom:4px}
:where(html[data-page="ledger_template"]) .preview-box{height:32px;border:1px solid #e0e7e3;border-radius:8px;background:#f9fbfa;display:flex;align-items:center;padding:0 9px;color:#b0bbb5;font-size:12px}
:where(html[data-page="ledger_template"]) .preview-field.required label::after{content:' *';color:var(--red)}
:where(html[data-page="ledger_template"]) .preview-empty{text-align:center;color:#94a3b8;font-size:12px;padding:55px 10px}
:where(html[data-page="ledger_template"]) .info-box{margin-top:13px;border-radius:12px;background:#f8faf9;border:1px solid #e6ece9;padding:12px}
:where(html[data-page="ledger_template"]) .info-box h3{font-size:10.5px;margin-bottom:6px;color:var(--deep)}
:where(html[data-page="ledger_template"]) .info-box p{font-size:9.5px;line-height:1.8;color:#64748b}
:where(html[data-page="ledger_template"]) .info-box strong{color:#334155}
:where(html[data-page="ledger_template"]) .confirm-backdrop{display:none;position:fixed;inset:0;z-index:12000;background:rgba(0,0,0,.58);align-items:center;justify-content:center;padding:18px}
:where(html[data-page="ledger_template"]) .confirm-backdrop.show{display:flex}
:where(html[data-page="ledger_template"]) .confirm-box{width:min(460px,100%);background:#fff;border-radius:18px;padding:22px;text-align:center;box-shadow:0 25px 70px rgba(0,0,0,.24)}
:where(html[data-page="ledger_template"]) .confirm-icon{width:56px;height:56px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;background:#fff7ed;color:#c2410c;font-size:23px}
:where(html[data-page="ledger_template"]) .confirm-box h2{font-size:17px;margin-bottom:7px;color:var(--deep)}
:where(html[data-page="ledger_template"]) .confirm-box p{font-size:11.5px;line-height:1.9;color:#64748b}
:where(html[data-page="ledger_template"]) .confirm-actions{display:flex;gap:8px;margin-top:17px}
:where(html[data-page="ledger_template"]) .confirm-actions .btn{flex:1}
@media(max-width:1050px){:where(html[data-page="ledger_template"]) .layout{grid-template-columns:1fr}
:where(html[data-page="ledger_template"]) .side-panel{position:static}}
@media(max-width:992px){:where(html[data-page="ledger_template"]) main{margin-right:0;width:100%;padding:72px 13px 18px}}
@media(max-width:650px){:where(html[data-page="ledger_template"]) .page-head{padding:15px}
:where(html[data-page="ledger_template"]) .page-head h1{font-size:17px}
:where(html[data-page="ledger_template"]) .head-icon{width:40px;height:40px;flex-basis:40px}
:where(html[data-page="ledger_template"]) .template-meta{grid-template-columns:1fr}
:where(html[data-page="ledger_template"]) .field-top{grid-template-columns:24px 1fr auto}
:where(html[data-page="ledger_template"]) .field-type-select{grid-column:2/3}
:where(html[data-page="ledger_template"]) .field-actions{grid-column:3/4;grid-row:1/3}
:where(html[data-page="ledger_template"]) .field-bottom,:where(html[data-page="ledger_template"]) .options-wrap{padding-right:30px}
:where(html[data-page="ledger_template"]) .panel-body{padding:13px}
:where(html[data-page="ledger_template"]) .save-bar{flex-direction:column-reverse}
:where(html[data-page="ledger_template"]) .save-bar .btn{width:100%}
:where(html[data-page="ledger_template"]) .confirm-actions{flex-direction:column}}

/* login */
:where(html[data-page="login"]){
            --salvation-red: #E51A1A;
            --salvation-black: #111111;
            --salvation-white: #FFFFFF;
            --salvation-green: #03AF46;
            --salvation-dark-green: #05642F;
            --salvation-gray: #4A4A4A;
        }
:where(html[data-page="login"]) *{
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family:var(--font-ui);
        }
:where(html[data-page="login"]) body{
            background-color: #f8fafc;
            color: var(--salvation-black);
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding: 20px;
        }
:where(html[data-page="login"]) .login-container{
            background-color:
                var(--salvation-white);

            width: 100%;
            max-width: 480px;

            padding: 40px;

            border-radius: 16px;

            box-shadow:
                0 10px 25px
                rgba(0, 0, 0, 0.05);

            border-top:
                6px solid
                var(--salvation-green);

            border-bottom:
                2px solid #e2e8f0;
        }
:where(html[data-page="login"]) .logo-area{
            text-align: center;
            margin-bottom: 30px;
        }
:where(html[data-page="login"]) .logo-area img{
            width: 85px;
            height: auto;
            margin-bottom: 12px;
        }
:where(html[data-page="login"]) .logo-area h1{
            font-size: 24px;
            font-weight: 700;
            color:
                var(--salvation-black);
            margin-bottom: 6px;
        }
:where(html[data-page="login"]) .logo-area p{
            font-size: 14px;
            color:
                var(--salvation-gray);
        }
:where(html[data-page="login"]) .alert{
            padding: 14px;
            border-radius: 8px;
            margin-bottom: 24px;
            font-size: 14px;
            font-weight: 600;
            text-align: center;
        }
:where(html[data-page="login"]) .alert-error{
            background-color: #fef2f2;
            color:
                var(--salvation-red);
            border:
                1px solid #fecaca;
        }
:where(html[data-page="login"]) .form-group{
            margin-bottom: 20px;
        }
:where(html[data-page="login"]) .form-group label{
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            font-size: 14px;
            color:
                var(--salvation-black);
        }
:where(html[data-page="login"]) .form-group input{
            width: 100%;
            padding: 12px 15px;
            border:
                1px solid #cbd5e1;
            border-radius: 8px;
            font-size: 14px;
            color:
                var(--salvation-black);
            background-color: #f8fafc;
            transition: all 0.3s ease;
        }
:where(html[data-page="login"]) .form-group input:focus{
            outline: none;

            border-color:
                var(--salvation-green);

            background-color:
                var(--salvation-white);

            box-shadow:
                0 0 0 3px
                rgba(3, 175, 70, 0.12);
        }
:where(html[data-page="login"]) .note{
            font-size: 12px;
            color:
                var(--salvation-gray);
            margin-top: 6px;
            display: block;
        }
:where(html[data-page="login"]) .flex-row{
            display: flex;
            justify-content:
                space-between;
            align-items: center;
            margin-bottom: 20px;
            font-size: 14px;
        }
:where(html[data-page="login"]) .forgot-link{
            color:
                var(--salvation-red);
            text-decoration: none;
            font-weight: 600;
        }
:where(html[data-page="login"]) .forgot-link:hover{
            text-decoration: underline;
        }
:where(html[data-page="login"]) .btn-submit{
            background-color:
                var(--salvation-green);

            color:
                var(--salvation-white);

            border: none;
            width: 100%;
            padding: 14px;

            font-size: 16px;
            font-weight: 700;

            border-radius: 8px;
            cursor: pointer;

            transition:
                background-color 0.3s ease;

            box-shadow:
                0 4px 12px
                rgba(3, 175, 70, 0.22);
        }
:where(html[data-page="login"]) .btn-submit:hover{
            background-color:
                var(--salvation-dark-green);
        }
:where(html[data-page="login"]) .footer-links{
            text-align: center;
            margin-top: 25px;
            font-size: 14px;
            color:
                var(--salvation-gray);
        }
:where(html[data-page="login"]) .footer-links a{
            color:
                var(--salvation-green);
            text-decoration: none;
            font-weight: 700;
        }
:where(html[data-page="login"]) .footer-links a:hover{
            text-decoration: underline;
        }
@media (
            max-width: 520px
        ){:where(html[data-page="login"]) body{
                padding: 12px;
            }
:where(html[data-page="login"]) .login-container{
                padding:
                    30px 20px;
            }}

/* operations-1 */
:where(html[data-page="operations-1"]){--green:#03AF46;--deep:#0F2C25;--bg:#F6F8F7;--line:#e3ebe7;--gray:#64748b;--sidebar:260px}
:where(html[data-page="operations-1"]) *{box-sizing:border-box;margin:0;padding:0;font-family:var(--font-ui)}
:where(html[data-page="operations-1"]) body{background:var(--bg);color:#17231f;min-height:100vh}
:where(html[data-page="operations-1"]) a{text-decoration:none}
:where(html[data-page="operations-1"]) main{margin-right:var(--sidebar);width:calc(100% - var(--sidebar));min-height:100vh;padding:25px;display:grid;place-items:center}
:where(html[data-page="operations-1"]) .setup-card{width:min(620px,100%);background:#fff;border:1px solid var(--line);border-radius:20px;padding:34px 28px;text-align:center;box-shadow:0 12px 35px rgba(15,44,37,.06)}
:where(html[data-page="operations-1"]) .setup-icon{width:72px;height:72px;border-radius:20px;margin:0 auto 17px;display:grid;place-items:center;background:#effcf5;color:var(--green);font-size:29px}
:where(html[data-page="operations-1"]) .setup-card h1{font-size:22px;color:var(--deep);margin-bottom:8px}
:where(html[data-page="operations-1"]) .setup-card p{font-size:12px;line-height:2;color:var(--gray);max-width:480px;margin:0 auto}
:where(html[data-page="operations-1"]) .setup-actions{display:flex;justify-content:center;gap:9px;margin-top:22px;flex-wrap:wrap}
:where(html[data-page="operations-1"]) .btn{border:0;border-radius:11px;padding:11px 18px;font-size:12px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer}
:where(html[data-page="operations-1"]) .primary{background:var(--green);color:#fff}
:where(html[data-page="operations-1"]) .secondary{background:#f1f5f9;color:#334155}
@media(max-width:992px){:where(html[data-page="operations-1"]) main{margin-right:0;width:100%;padding:80px 14px 20px}}
@media(max-width:520px){:where(html[data-page="operations-1"]) .setup-card{padding:27px 17px}
:where(html[data-page="operations-1"]) .setup-card h1{font-size:19px}
:where(html[data-page="operations-1"]) .setup-actions{flex-direction:column}
:where(html[data-page="operations-1"]) .btn{width:100%}}
:where(html[data-page="operations-1"]) .stock-sale-lines{display:grid;gap:12px;margin:12px 0}
:where(html[data-page="operations-1"]) .sale-item-row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:9px!important;padding:13px!important;border:1px solid #d9e9df!important;border-radius:13px;background:#fff}
:where(html[data-page="operations-1"]) .sale-item-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}
:where(html[data-page="operations-1"]) .sale-item-kind{font-size:12px;font-weight:800;color:#08743b;background:#eaf9f0;border-radius:8px;padding:4px 9px}
:where(html[data-page="operations-1"]) .sale-item-values{display:grid;grid-template-columns:1fr 1fr;gap:9px}
:where(html[data-page="operations-1"]) .sale-item-values label{font-size:12px;color:#52665b;font-weight:700}
:where(html[data-page="operations-1"]) .sale-item-values input{margin-top:5px}
:where(html[data-page="operations-1"]) .sale-item-row .stock-info{font-size:12px;color:#61756a;line-height:1.8}
:where(html[data-page="operations-1"]) .stock-search-box{margin-top:4px!important}
:where(html[data-page="operations-1"]) .stock-search-box strong{color:#086b37}
:where(html[data-page="operations-1"]) .stock-search-box .hint{margin:6px 0}
:where(html[data-page="operations-1"]) .stock-results[hidden],:where(html[data-page="operations-1"]) #barcodeReader[hidden]{display:none!important}
@media(max-width:520px){:where(html[data-page="operations-1"]) .sale-item-values{grid-template-columns:1fr 1fr}
:where(html[data-page="operations-1"]) .stock-search-controls{flex-wrap:wrap}}

/* operations-2 */
:where(html[data-page="operations-2"]){--green:#03AF46;--green2:#05642F;--deep:#0F2C25;--red:#DA0C11;--teal:#308E9E;--bg:#F6F8F7;--line:#e3ebe7;--gray:#64748b;--sidebar:260px}
:where(html[data-page="operations-2"]) *{box-sizing:border-box;margin:0;padding:0;font-family:var(--font-ui)}
:where(html[data-page="operations-2"]) body{background:var(--bg);color:#17231f;min-height:100vh}
:where(html[data-page="operations-2"]) button,:where(html[data-page="operations-2"]) input,:where(html[data-page="operations-2"]) select,:where(html[data-page="operations-2"]) textarea{font:inherit}
:where(html[data-page="operations-2"]) a{text-decoration:none}
:where(html[data-page="operations-2"]) main{margin-right:var(--sidebar);width:calc(100% - var(--sidebar));padding:25px}
:where(html[data-page="operations-2"]) .head{display:flex;justify-content:space-between;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);border-radius:17px;padding:18px 20px;margin-bottom:14px}
:where(html[data-page="operations-2"]) .head h1{font-size:19px;color:var(--deep)}
:where(html[data-page="operations-2"]) .head p{font-size:12px;color:var(--gray);margin-top:3px}
:where(html[data-page="operations-2"]) .head img{width:45px;height:45px;object-fit:contain}
:where(html[data-page="operations-2"]) .alert{padding:12px 14px;border-radius:12px;margin-bottom:13px;font-size:11.5px;line-height:1.8;border:1px solid}
:where(html[data-page="operations-2"]) .alert.error{background:#fef2f2;border-color:#fecaca;color:#991b1b}
:where(html[data-page="operations-2"]) .alert.limit{background:#fff7ed;border-color:#fed7aa;color:#9a3412}
:where(html[data-page="operations-2"]) .layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(290px,.65fr);gap:14px;align-items:start}
:where(html[data-page="operations-2"]) .panel{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 3px 12px rgba(15,44,37,.025)}
:where(html[data-page="operations-2"]) .panel-head{padding:15px 17px;border-bottom:1px solid #edf2ef;display:flex;justify-content:space-between;align-items:center;gap:10px}
:where(html[data-page="operations-2"]) .panel-head h2{font-size:14px;color:var(--deep)}
:where(html[data-page="operations-2"]) .panel-head p{font-size:9.5px;color:#94a3b8;margin-top:2px}
:where(html[data-page="operations-2"]) .panel-body{padding:17px}
:where(html[data-page="operations-2"]) .type-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:18px}
:where(html[data-page="operations-2"]) .type-option{position:relative}
:where(html[data-page="operations-2"]) .type-option input{position:absolute;opacity:0;pointer-events:none}
:where(html[data-page="operations-2"]) .type-card{display:block;border:1px solid #dfe7e3;border-radius:12px;padding:12px;text-align:center;cursor:pointer;transition:.15s;background:#fff}
:where(html[data-page="operations-2"]) .type-card i{font-size:17px;margin-bottom:5px;color:#64748b}
:where(html[data-page="operations-2"]) .type-card strong{display:block;font-size:12px}
:where(html[data-page="operations-2"]) .type-card span{font-size:8.5px;color:#94a3b8}
:where(html[data-page="operations-2"]) .type-option input:checked + .type-card{border-color:var(--green);background:#effcf5;box-shadow:0 0 0 2px rgba(3,175,70,.08)}
:where(html[data-page="operations-2"]) .type-option input:checked + .type-card i{color:var(--green2)}
:where(html[data-page="operations-2"]) .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
:where(html[data-page="operations-2"]) .full{grid-column:1/-1}
:where(html[data-page="operations-2"]) label.lbl{display:block;font-size:12px;font-weight:800;color:#475569;margin-bottom:5px}
:where(html[data-page="operations-2"]) .req{color:var(--red)}
:where(html[data-page="operations-2"]) .control{width:100%;height:42px;border:1px solid #dbe5e0;border-radius:10px;background:#fff;padding:0 11px;outline:none;font-size:12px;color:#1f2937}
:where(html[data-page="operations-2"]) .control:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(3,175,70,.08)}
:where(html[data-page="operations-2"]) textarea.control{height:85px;padding:10px;resize:vertical}
:where(html[data-page="operations-2"]) .hint{font-size:8.5px;color:#94a3b8;margin-top:4px}
:where(html[data-page="operations-2"]) .customer-box{position:relative}
:where(html[data-page="operations-2"]) .customer-results{position:absolute;z-index:50;top:100%;right:0;left:0;background:#fff;border:1px solid #dbe5e0;border-radius:10px;margin-top:4px;box-shadow:0 12px 30px rgba(15,23,42,.13);display:none;max-height:260px;overflow:auto}
:where(html[data-page="operations-2"]) .customer-result{padding:9px 11px;border-bottom:1px solid #eef2f0;cursor:pointer;display:flex;justify-content:space-between;gap:8px}
:where(html[data-page="operations-2"]) .customer-result:hover{background:#f3fbf6}
:where(html[data-page="operations-2"]) .customer-result:last-child{border:0}
:where(html[data-page="operations-2"]) .customer-result strong{font-size:10.5px}
:where(html[data-page="operations-2"]) .customer-result small{display:block;color:#94a3b8;font-size:8.5px}
:where(html[data-page="operations-2"]) .customer-result .debt{color:var(--red);font-size:12px;font-weight:800;white-space:nowrap}
:where(html[data-page="operations-2"]) .customer-selected{display:none;margin-top:6px;padding:8px 10px;border-radius:9px;background:#effcf5;color:#166534;font-size:9.5px;justify-content:space-between;align-items:center}
:where(html[data-page="operations-2"]) .customer-selected.show{display:flex}
:where(html[data-page="operations-2"]) .inline-check{display:flex;align-items:center;gap:6px;font-size:9.5px;color:#475569;margin-top:7px}
:where(html[data-page="operations-2"]) .inline-check input{accent-color:var(--green)}
:where(html[data-page="operations-2"]) .amount-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:15px;padding:12px;border-radius:12px;background:#f8faf9;border:1px solid #e7eeea}
:where(html[data-page="operations-2"]) .amount-summary div{text-align:center}
:where(html[data-page="operations-2"]) .amount-summary span{display:block;font-size:8.5px;color:#94a3b8}
:where(html[data-page="operations-2"]) .amount-summary strong{font-size:14px;color:var(--deep)}
:where(html[data-page="operations-2"]) .amount-summary .remaining strong{color:var(--red)}
:where(html[data-page="operations-2"]) .items{border:1px solid #e5ebe8;border-radius:12px;padding:11px}
:where(html[data-page="operations-2"]) .item-row{display:grid;grid-template-columns:minmax(120px,1fr) 80px 100px 34px;gap:7px;margin-bottom:7px}
:where(html[data-page="operations-2"]) .item-row:last-child{margin-bottom:0}
:where(html[data-page="operations-2"]) .item-row input{height:36px}
:where(html[data-page="operations-2"]) .remove-item{border:0;border-radius:8px;background:#fef2f2;color:#b91c1c;cursor:pointer}
:where(html[data-page="operations-2"]) .add-item{margin-top:8px;border:1px dashed #b9d8c8;background:#f7fdf9;color:var(--green2);border-radius:9px;padding:8px 11px;font-size:9.5px;font-weight:800;cursor:pointer}
:where(html[data-page="operations-2"]) .actions{display:flex;gap:8px;margin-top:17px;padding-top:15px;border-top:1px solid #edf2ef}
:where(html[data-page="operations-2"]) .btn{border:0;border-radius:10px;padding:11px 16px;font-size:12px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px}
:where(html[data-page="operations-2"]) .primary{background:var(--green);color:#fff;flex:1}
:where(html[data-page="operations-2"]) .secondary{background:#f1f5f9;color:#334155}
:where(html[data-page="operations-2"]) .side{position:sticky;top:18px}
:where(html[data-page="operations-2"]) .quick-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
:where(html[data-page="operations-2"]) .quick-stat{padding:10px 6px;border-radius:10px;background:#f8faf9;text-align:center}
:where(html[data-page="operations-2"]) .quick-stat span{font-size:12px;color:#94a3b8;display:block}
:where(html[data-page="operations-2"]) .quick-stat strong{font-size:12px;color:var(--deep)}
:where(html[data-page="operations-2"]) .tip{margin-top:12px;padding:11px;border-radius:11px;background:#effcf5;color:#166534;font-size:9.5px;line-height:1.8}
:where(html[data-page="operations-2"]) .tip strong{font-size:12px}
:where(html[data-page="operations-2"]) .recent{margin-top:14px}
:where(html[data-page="operations-2"]) .recent-item{padding:10px 0;border-bottom:1px solid #eef2f0;display:flex;justify-content:space-between;gap:8px}
:where(html[data-page="operations-2"]) .recent-item:last-child{border:0}
:where(html[data-page="operations-2"]) .recent-name{font-size:12px;font-weight:800}
:where(html[data-page="operations-2"]) .recent-meta{font-size:12px;color:#94a3b8}
:where(html[data-page="operations-2"]) .recent-amount{text-align:left;font-size:12px;font-weight:800;white-space:nowrap}
:where(html[data-page="operations-2"]) .status{display:inline-block;margin-top:3px;padding:2px 6px;border-radius:999px;font-size:7.5px}
:where(html[data-page="operations-2"]) .paid{background:#dcfce7;color:#166534}
:where(html[data-page="operations-2"]) .partial{background:#fff7ed;color:#9a3412}
:where(html[data-page="operations-2"]) .unpaid{background:#fee2e2;color:#991b1b}
:where(html[data-page="operations-2"]) .cancelled{background:#f1f5f9;color:#64748b}
:where(html[data-page="operations-2"]) .success-modal{position:fixed;inset:0;background:rgba(0,0,0,.58);z-index:12000;display:flex;align-items:center;justify-content:center;padding:18px}
:where(html[data-page="operations-2"]) .success-card{background:#fff;width:min(440px,100%);border-radius:18px;padding:23px;text-align:center}
:where(html[data-page="operations-2"]) .success-icon{width:60px;height:60px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;background:#dcfce7;color:#166534;font-size:25px}
:where(html[data-page="operations-2"]) .success-card h2{font-size:18px;color:var(--deep);margin-bottom:5px}
:where(html[data-page="operations-2"]) .success-card p{font-size:10.5px;color:#64748b;line-height:1.8}
:where(html[data-page="operations-2"]) .success-numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:14px 0}
:where(html[data-page="operations-2"]) .success-numbers div{background:#f8faf9;border-radius:9px;padding:8px}
:where(html[data-page="operations-2"]) .success-numbers span{font-size:7.5px;color:#94a3b8;display:block}
:where(html[data-page="operations-2"]) .success-numbers strong{font-size:12px}
@media(max-width:1050px){:where(html[data-page="operations-2"]) .layout{grid-template-columns:1fr}
:where(html[data-page="operations-2"]) .side{position:static}}
@media(max-width:992px){:where(html[data-page="operations-2"]) main{margin-right:0;width:100%;padding:72px 13px 18px}}
@media(max-width:650px){:where(html[data-page="operations-2"]) .head{padding:14px}
:where(html[data-page="operations-2"]) .head h1{font-size:16px}
:where(html[data-page="operations-2"]) .form-grid{grid-template-columns:1fr}
:where(html[data-page="operations-2"]) .full{grid-column:auto}
:where(html[data-page="operations-2"]) .type-grid{gap:5px}
:where(html[data-page="operations-2"]) .type-card{padding:9px 5px}
:where(html[data-page="operations-2"]) .type-card strong{font-size:9.5px}
:where(html[data-page="operations-2"]) .type-card span{font-size:7.5px}
:where(html[data-page="operations-2"]) .item-row{grid-template-columns:1fr 65px 85px 32px}
:where(html[data-page="operations-2"]) .amount-summary{gap:4px}
:where(html[data-page="operations-2"]) .amount-summary strong{font-size:11.5px}
:where(html[data-page="operations-2"]) .actions{flex-direction:column-reverse}
:where(html[data-page="operations-2"]) .actions .btn{width:100%}}
@media(max-width:480px){:where(html[data-page="operations-2"]) main{padding:68px 9px 15px}
:where(html[data-page="operations-2"]) .head{border-radius:13px;padding:12px}
:where(html[data-page="operations-2"]) .head img{width:38px;height:38px}
:where(html[data-page="operations-2"]) .head p{font-size:12px}
:where(html[data-page="operations-2"]) .panel{border-radius:13px}
:where(html[data-page="operations-2"]) .panel-head{padding:12px}
:where(html[data-page="operations-2"]) .panel-body{padding:12px}
:where(html[data-page="operations-2"]) .type-grid{grid-template-columns:1fr;gap:7px}
:where(html[data-page="operations-2"]) .type-card{display:flex;align-items:center;text-align:right;gap:9px;padding:10px 12px}
:where(html[data-page="operations-2"]) .type-card i{margin:0;font-size:16px}
:where(html[data-page="operations-2"]) .type-card strong{font-size:10.5px}
:where(html[data-page="operations-2"]) .type-card span{margin-right:auto}
:where(html[data-page="operations-2"]) .item-row{grid-template-columns:minmax(0,1fr) 58px 72px 32px;gap:4px}
:where(html[data-page="operations-2"]) .item-row .control{padding:0 6px;font-size:12px}
:where(html[data-page="operations-2"]) .amount-summary{grid-template-columns:repeat(3,minmax(0,1fr));padding:9px 5px}
:where(html[data-page="operations-2"]) .amount-summary span{font-size:7.5px}
:where(html[data-page="operations-2"]) .amount-summary strong{font-size:10.5px}
:where(html[data-page="operations-2"]) .control{height:41px}
:where(html[data-page="operations-2"]) .success-card{padding:18px 13px}
:where(html[data-page="operations-2"]) .success-numbers{gap:4px}}
:where(html[data-page="operations-2"]) .stock-search-box{background:#f5fbf7;border:1px solid #cce9d6;padding:12px;border-radius:12px;margin:10px 0}
:where(html[data-page="operations-2"]) .stock-search-controls{display:flex;gap:8px;align-items:center}
:where(html[data-page="operations-2"]) .stock-search-controls input{flex:1}
:where(html[data-page="operations-2"]) .stock-results{max-height:240px;overflow:auto;background:white;border:1px solid #d7e8de;border-radius:10px;margin-top:8px}
:where(html[data-page="operations-2"]) .stock-choice{display:block;width:100%;border:0;border-bottom:1px solid #edf2ef;background:#fff;padding:10px;text-align:right;cursor:pointer;font:inherit}
:where(html[data-page="operations-2"]) .stock-choice:hover{background:#f1faf4}
:where(html[data-page="operations-2"]) .stock-meta{display:block;font-size:12px;color:#64748b}
:where(html[data-page="operations-2"]) .stock-info{font-size:12px;color:#64748b;grid-column:1/-1}
:where(html[data-page="operations-2"]) .stock-info.warning{color:#a16207}
:where(html[data-page="operations-2"]) #barcodeVideo{max-width:100%;max-height:260px;border-radius:10px}
:where(html[data-page="operations-2"]) .stock-sale-lines{display:grid;gap:10px;margin:12px 0}
:where(html[data-page="operations-2"]) .stock-sale-lines .sale-item-row{display:grid!important;grid-template-columns:minmax(0,1fr) 110px 130px 36px!important;gap:10px!important;align-items:end!important;padding:13px!important;border:1px solid #d9e9df!important;border-radius:13px;background:#fff;min-width:0}
:where(html[data-page="operations-2"]) .stock-sale-lines .sale-item-heading{display:contents!important}
:where(html[data-page="operations-2"]) .stock-sale-lines .sale-item-kind{grid-column:1/-1;justify-self:start;font-size:12px;font-weight:800;color:#08743b;background:#eaf9f0;border-radius:8px;padding:4px 9px}
:where(html[data-page="operations-2"]) .stock-sale-lines .sale-item-heading .remove-item{grid-column:4;grid-row:2;height:38px;width:36px;align-self:end}
:where(html[data-page="operations-2"]) .stock-sale-lines .item-name{grid-column:1;grid-row:2;min-width:0}
:where(html[data-page="operations-2"]) .stock-sale-lines .sale-item-values{display:contents!important}
:where(html[data-page="operations-2"]) .stock-sale-lines .sale-item-values label{font-size:12px;font-weight:700;min-width:0;color:#52665b}
:where(html[data-page="operations-2"]) .stock-sale-lines .sale-item-values label:first-child{grid-column:2;grid-row:2}
:where(html[data-page="operations-2"]) .stock-sale-lines .sale-item-values label:last-child{grid-column:3;grid-row:2}
:where(html[data-page="operations-2"]) .stock-sale-lines .sale-item-values input{width:100%;margin-top:4px;height:38px;min-width:0}
:where(html[data-page="operations-2"]) .stock-sale-lines .stock-info{grid-column:1/-1;grid-row:3;font-size:12px;line-height:1.8;color:#61756a;overflow-wrap:anywhere}
@media(max-width:620px){:where(html[data-page="operations-2"]) .stock-sale-lines .sale-item-row{grid-template-columns:minmax(0,1fr) minmax(85px,.6fr) 34px!important;gap:8px!important}
:where(html[data-page="operations-2"]) .stock-sale-lines .item-name{grid-column:1/-1;grid-row:2}
:where(html[data-page="operations-2"]) .stock-sale-lines .sale-item-values label:first-child{grid-column:1;grid-row:3}
:where(html[data-page="operations-2"]) .stock-sale-lines .sale-item-values label:last-child{grid-column:2;grid-row:3}
:where(html[data-page="operations-2"]) .stock-sale-lines .sale-item-heading .remove-item{grid-column:3;grid-row:3}
:where(html[data-page="operations-2"]) .stock-sale-lines .stock-info{grid-row:4}}

/* operations1-1 */
:where(html[data-page="operations1-1"]){--green:#03AF46;--deep:#0F2C25;--bg:#F6F8F7;--line:#e3ebe7;--gray:#64748b;--sidebar:260px}
:where(html[data-page="operations1-1"]) *{box-sizing:border-box;margin:0;padding:0;font-family:var(--font-ui)}
:where(html[data-page="operations1-1"]) body{background:var(--bg);color:#17231f;min-height:100vh}
:where(html[data-page="operations1-1"]) a{text-decoration:none}
:where(html[data-page="operations1-1"]) main{margin-right:var(--sidebar);width:calc(100% - var(--sidebar));min-height:100vh;padding:25px;display:grid;place-items:center}
:where(html[data-page="operations1-1"]) .setup-card{width:min(620px,100%);background:#fff;border:1px solid var(--line);border-radius:20px;padding:34px 28px;text-align:center;box-shadow:0 12px 35px rgba(15,44,37,.06)}
:where(html[data-page="operations1-1"]) .setup-icon{width:72px;height:72px;border-radius:20px;margin:0 auto 17px;display:grid;place-items:center;background:#effcf5;color:var(--green);font-size:29px}
:where(html[data-page="operations1-1"]) .setup-card h1{font-size:22px;color:var(--deep);margin-bottom:8px}
:where(html[data-page="operations1-1"]) .setup-card p{font-size:12px;line-height:2;color:var(--gray);max-width:480px;margin:0 auto}
:where(html[data-page="operations1-1"]) .setup-actions{display:flex;justify-content:center;gap:9px;margin-top:22px;flex-wrap:wrap}
:where(html[data-page="operations1-1"]) .btn{border:0;border-radius:11px;padding:11px 18px;font-size:12px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer}
:where(html[data-page="operations1-1"]) .primary{background:var(--green);color:#fff}
:where(html[data-page="operations1-1"]) .secondary{background:#f1f5f9;color:#334155}
@media(max-width:992px){:where(html[data-page="operations1-1"]) main{margin-right:0;width:100%;padding:80px 14px 20px}}
@media(max-width:520px){:where(html[data-page="operations1-1"]) .setup-card{padding:27px 17px}
:where(html[data-page="operations1-1"]) .setup-card h1{font-size:19px}
:where(html[data-page="operations1-1"]) .setup-actions{flex-direction:column}
:where(html[data-page="operations1-1"]) .btn{width:100%}}

/* operations1-2 */
:where(html[data-page="operations1-2"]){--green:#03AF46;--green2:#05642F;--deep:#0F2C25;--red:#DA0C11;--teal:#308E9E;--bg:#F6F8F7;--line:#e3ebe7;--gray:#64748b;--sidebar:260px}
:where(html[data-page="operations1-2"]) *{box-sizing:border-box;margin:0;padding:0;font-family:var(--font-ui)}
:where(html[data-page="operations1-2"]) body{background:var(--bg);color:#17231f;min-height:100vh}
:where(html[data-page="operations1-2"]) button,:where(html[data-page="operations1-2"]) input,:where(html[data-page="operations1-2"]) select,:where(html[data-page="operations1-2"]) textarea{font:inherit}
:where(html[data-page="operations1-2"]) a{text-decoration:none}
:where(html[data-page="operations1-2"]) main{margin-right:var(--sidebar);width:calc(100% - var(--sidebar));padding:25px}
:where(html[data-page="operations1-2"]) .head{display:flex;justify-content:space-between;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);border-radius:17px;padding:18px 20px;margin-bottom:14px}
:where(html[data-page="operations1-2"]) .head h1{font-size:19px;color:var(--deep)}
:where(html[data-page="operations1-2"]) .head p{font-size:12px;color:var(--gray);margin-top:3px}
:where(html[data-page="operations1-2"]) .head img{width:45px;height:45px;object-fit:contain}
:where(html[data-page="operations1-2"]) .alert{padding:12px 14px;border-radius:12px;margin-bottom:13px;font-size:11.5px;line-height:1.8;border:1px solid}
:where(html[data-page="operations1-2"]) .alert.error{background:#fef2f2;border-color:#fecaca;color:#991b1b}
:where(html[data-page="operations1-2"]) .alert.limit{background:#fff7ed;border-color:#fed7aa;color:#9a3412}
:where(html[data-page="operations1-2"]) .layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(290px,.65fr);gap:14px;align-items:start}
:where(html[data-page="operations1-2"]) .panel{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 3px 12px rgba(15,44,37,.025)}
:where(html[data-page="operations1-2"]) .panel-head{padding:15px 17px;border-bottom:1px solid #edf2ef;display:flex;justify-content:space-between;align-items:center;gap:10px}
:where(html[data-page="operations1-2"]) .panel-head h2{font-size:14px;color:var(--deep)}
:where(html[data-page="operations1-2"]) .panel-head p{font-size:9.5px;color:#94a3b8;margin-top:2px}
:where(html[data-page="operations1-2"]) .panel-body{padding:17px}
:where(html[data-page="operations1-2"]) .type-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:18px}
:where(html[data-page="operations1-2"]) .type-option{position:relative}
:where(html[data-page="operations1-2"]) .type-option input{position:absolute;opacity:0;pointer-events:none}
:where(html[data-page="operations1-2"]) .type-card{display:block;border:1px solid #dfe7e3;border-radius:12px;padding:12px;text-align:center;cursor:pointer;transition:.15s;background:#fff}
:where(html[data-page="operations1-2"]) .type-card i{font-size:17px;margin-bottom:5px;color:#64748b}
:where(html[data-page="operations1-2"]) .type-card strong{display:block;font-size:12px}
:where(html[data-page="operations1-2"]) .type-card span{font-size:8.5px;color:#94a3b8}
:where(html[data-page="operations1-2"]) .type-option input:checked + .type-card{border-color:var(--green);background:#effcf5;box-shadow:0 0 0 2px rgba(3,175,70,.08)}
:where(html[data-page="operations1-2"]) .type-option input:checked + .type-card i{color:var(--green2)}
:where(html[data-page="operations1-2"]) .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
:where(html[data-page="operations1-2"]) .full{grid-column:1/-1}
:where(html[data-page="operations1-2"]) label.lbl{display:block;font-size:12px;font-weight:800;color:#475569;margin-bottom:5px}
:where(html[data-page="operations1-2"]) .req{color:var(--red)}
:where(html[data-page="operations1-2"]) .control{width:100%;height:42px;border:1px solid #dbe5e0;border-radius:10px;background:#fff;padding:0 11px;outline:none;font-size:12px;color:#1f2937}
:where(html[data-page="operations1-2"]) .control:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(3,175,70,.08)}
:where(html[data-page="operations1-2"]) textarea.control{height:85px;padding:10px;resize:vertical}
:where(html[data-page="operations1-2"]) .hint{font-size:8.5px;color:#94a3b8;margin-top:4px}
:where(html[data-page="operations1-2"]) .customer-box{position:relative}
:where(html[data-page="operations1-2"]) .customer-results{position:absolute;z-index:50;top:100%;right:0;left:0;background:#fff;border:1px solid #dbe5e0;border-radius:10px;margin-top:4px;box-shadow:0 12px 30px rgba(15,23,42,.13);display:none;max-height:260px;overflow:auto}
:where(html[data-page="operations1-2"]) .customer-result{padding:9px 11px;border-bottom:1px solid #eef2f0;cursor:pointer;display:flex;justify-content:space-between;gap:8px}
:where(html[data-page="operations1-2"]) .customer-result:hover{background:#f3fbf6}
:where(html[data-page="operations1-2"]) .customer-result:last-child{border:0}
:where(html[data-page="operations1-2"]) .customer-result strong{font-size:10.5px}
:where(html[data-page="operations1-2"]) .customer-result small{display:block;color:#94a3b8;font-size:8.5px}
:where(html[data-page="operations1-2"]) .customer-result .debt{color:var(--red);font-size:12px;font-weight:800;white-space:nowrap}
:where(html[data-page="operations1-2"]) .customer-selected{display:none;margin-top:6px;padding:8px 10px;border-radius:9px;background:#effcf5;color:#166534;font-size:9.5px;justify-content:space-between;align-items:center}
:where(html[data-page="operations1-2"]) .customer-selected.show{display:flex}
:where(html[data-page="operations1-2"]) .inline-check{display:flex;align-items:center;gap:6px;font-size:9.5px;color:#475569;margin-top:7px}
:where(html[data-page="operations1-2"]) .inline-check input{accent-color:var(--green)}
:where(html[data-page="operations1-2"]) .amount-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:15px;padding:12px;border-radius:12px;background:#f8faf9;border:1px solid #e7eeea}
:where(html[data-page="operations1-2"]) .amount-summary div{text-align:center}
:where(html[data-page="operations1-2"]) .amount-summary span{display:block;font-size:8.5px;color:#94a3b8}
:where(html[data-page="operations1-2"]) .amount-summary strong{font-size:14px;color:var(--deep)}
:where(html[data-page="operations1-2"]) .amount-summary .remaining strong{color:var(--red)}
:where(html[data-page="operations1-2"]) .items{border:1px solid #e5ebe8;border-radius:12px;padding:11px}
:where(html[data-page="operations1-2"]) .item-row{display:grid;grid-template-columns:minmax(120px,1fr) 80px 100px 34px;gap:7px;margin-bottom:7px}
:where(html[data-page="operations1-2"]) .item-row:last-child{margin-bottom:0}
:where(html[data-page="operations1-2"]) .item-row input{height:36px}
:where(html[data-page="operations1-2"]) .remove-item{border:0;border-radius:8px;background:#fef2f2;color:#b91c1c;cursor:pointer}
:where(html[data-page="operations1-2"]) .add-item{margin-top:8px;border:1px dashed #b9d8c8;background:#f7fdf9;color:var(--green2);border-radius:9px;padding:8px 11px;font-size:9.5px;font-weight:800;cursor:pointer}
:where(html[data-page="operations1-2"]) .actions{display:flex;gap:8px;margin-top:17px;padding-top:15px;border-top:1px solid #edf2ef}
:where(html[data-page="operations1-2"]) .btn{border:0;border-radius:10px;padding:11px 16px;font-size:12px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px}
:where(html[data-page="operations1-2"]) .primary{background:var(--green);color:#fff;flex:1}
:where(html[data-page="operations1-2"]) .secondary{background:#f1f5f9;color:#334155}
:where(html[data-page="operations1-2"]) .side{position:sticky;top:18px}
:where(html[data-page="operations1-2"]) .quick-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
:where(html[data-page="operations1-2"]) .quick-stat{padding:10px 6px;border-radius:10px;background:#f8faf9;text-align:center}
:where(html[data-page="operations1-2"]) .quick-stat span{font-size:12px;color:#94a3b8;display:block}
:where(html[data-page="operations1-2"]) .quick-stat strong{font-size:12px;color:var(--deep)}
:where(html[data-page="operations1-2"]) .tip{margin-top:12px;padding:11px;border-radius:11px;background:#effcf5;color:#166534;font-size:9.5px;line-height:1.8}
:where(html[data-page="operations1-2"]) .tip strong{font-size:12px}
:where(html[data-page="operations1-2"]) .recent{margin-top:14px}
:where(html[data-page="operations1-2"]) .recent-item{padding:10px 0;border-bottom:1px solid #eef2f0;display:flex;justify-content:space-between;gap:8px}
:where(html[data-page="operations1-2"]) .recent-item:last-child{border:0}
:where(html[data-page="operations1-2"]) .recent-name{font-size:12px;font-weight:800}
:where(html[data-page="operations1-2"]) .recent-meta{font-size:12px;color:#94a3b8}
:where(html[data-page="operations1-2"]) .recent-amount{text-align:left;font-size:12px;font-weight:800;white-space:nowrap}
:where(html[data-page="operations1-2"]) .status{display:inline-block;margin-top:3px;padding:2px 6px;border-radius:999px;font-size:7.5px}
:where(html[data-page="operations1-2"]) .paid{background:#dcfce7;color:#166534}
:where(html[data-page="operations1-2"]) .partial{background:#fff7ed;color:#9a3412}
:where(html[data-page="operations1-2"]) .unpaid{background:#fee2e2;color:#991b1b}
:where(html[data-page="operations1-2"]) .cancelled{background:#f1f5f9;color:#64748b}
:where(html[data-page="operations1-2"]) .success-modal{position:fixed;inset:0;background:rgba(0,0,0,.58);z-index:12000;display:flex;align-items:center;justify-content:center;padding:18px}
:where(html[data-page="operations1-2"]) .success-card{background:#fff;width:min(440px,100%);border-radius:18px;padding:23px;text-align:center}
:where(html[data-page="operations1-2"]) .success-icon{width:60px;height:60px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;background:#dcfce7;color:#166534;font-size:25px}
:where(html[data-page="operations1-2"]) .success-card h2{font-size:18px;color:var(--deep);margin-bottom:5px}
:where(html[data-page="operations1-2"]) .success-card p{font-size:10.5px;color:#64748b;line-height:1.8}
:where(html[data-page="operations1-2"]) .success-numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:14px 0}
:where(html[data-page="operations1-2"]) .success-numbers div{background:#f8faf9;border-radius:9px;padding:8px}
:where(html[data-page="operations1-2"]) .success-numbers span{font-size:7.5px;color:#94a3b8;display:block}
:where(html[data-page="operations1-2"]) .success-numbers strong{font-size:12px}
@media(max-width:1050px){:where(html[data-page="operations1-2"]) .layout{grid-template-columns:1fr}
:where(html[data-page="operations1-2"]) .side{position:static}}
@media(max-width:992px){:where(html[data-page="operations1-2"]) main{margin-right:0;width:100%;padding:72px 13px 18px}}
@media(max-width:650px){:where(html[data-page="operations1-2"]) .head{padding:14px}
:where(html[data-page="operations1-2"]) .head h1{font-size:16px}
:where(html[data-page="operations1-2"]) .form-grid{grid-template-columns:1fr}
:where(html[data-page="operations1-2"]) .full{grid-column:auto}
:where(html[data-page="operations1-2"]) .type-grid{gap:5px}
:where(html[data-page="operations1-2"]) .type-card{padding:9px 5px}
:where(html[data-page="operations1-2"]) .type-card strong{font-size:9.5px}
:where(html[data-page="operations1-2"]) .type-card span{font-size:7.5px}
:where(html[data-page="operations1-2"]) .item-row{grid-template-columns:1fr 65px 85px 32px}
:where(html[data-page="operations1-2"]) .amount-summary{gap:4px}
:where(html[data-page="operations1-2"]) .amount-summary strong{font-size:11.5px}
:where(html[data-page="operations1-2"]) .actions{flex-direction:column-reverse}
:where(html[data-page="operations1-2"]) .actions .btn{width:100%}}
@media(max-width:480px){:where(html[data-page="operations1-2"]) main{padding:68px 9px 15px}
:where(html[data-page="operations1-2"]) .head{border-radius:13px;padding:12px}
:where(html[data-page="operations1-2"]) .head img{width:38px;height:38px}
:where(html[data-page="operations1-2"]) .head p{font-size:12px}
:where(html[data-page="operations1-2"]) .panel{border-radius:13px}
:where(html[data-page="operations1-2"]) .panel-head{padding:12px}
:where(html[data-page="operations1-2"]) .panel-body{padding:12px}
:where(html[data-page="operations1-2"]) .type-grid{grid-template-columns:1fr;gap:7px}
:where(html[data-page="operations1-2"]) .type-card{display:flex;align-items:center;text-align:right;gap:9px;padding:10px 12px}
:where(html[data-page="operations1-2"]) .type-card i{margin:0;font-size:16px}
:where(html[data-page="operations1-2"]) .type-card strong{font-size:10.5px}
:where(html[data-page="operations1-2"]) .type-card span{margin-right:auto}
:where(html[data-page="operations1-2"]) .item-row{grid-template-columns:minmax(0,1fr) 58px 72px 32px;gap:4px}
:where(html[data-page="operations1-2"]) .item-row .control{padding:0 6px;font-size:12px}
:where(html[data-page="operations1-2"]) .amount-summary{grid-template-columns:repeat(3,minmax(0,1fr));padding:9px 5px}
:where(html[data-page="operations1-2"]) .amount-summary span{font-size:7.5px}
:where(html[data-page="operations1-2"]) .amount-summary strong{font-size:10.5px}
:where(html[data-page="operations1-2"]) .control{height:41px}
:where(html[data-page="operations1-2"]) .success-card{padding:18px 13px}
:where(html[data-page="operations1-2"]) .success-numbers{gap:4px}}

/* operations_log */
:where(html[data-page="operations_log"]){--green:#03AF46;--green2:#05642F;--deep:#0F2C25;--red:#DA0C11;--bg:#F6F8F7;--line:#e3ebe7;--gray:#64748b;--sidebar:260px}
:where(html[data-page="operations_log"]) *{box-sizing:border-box;margin:0;padding:0;font-family:var(--font-ui)}
:where(html[data-page="operations_log"]) body{background:var(--bg);color:#17231f;min-height:100vh}
:where(html[data-page="operations_log"]) button,:where(html[data-page="operations_log"]) input,:where(html[data-page="operations_log"]) select{font:inherit}
:where(html[data-page="operations_log"]) a{text-decoration:none;color:inherit}
:where(html[data-page="operations_log"]) main{margin-right:var(--sidebar);width:calc(100% - var(--sidebar));padding:25px}
:where(html[data-page="operations_log"]) .head{display:flex;justify-content:space-between;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);border-radius:17px;padding:18px 20px;margin-bottom:14px}
:where(html[data-page="operations_log"]) .head h1{font-size:19px;color:var(--deep)}
:where(html[data-page="operations_log"]) .head p{font-size:12px;color:var(--gray);margin-top:3px}
:where(html[data-page="operations_log"]) .head-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
:where(html[data-page="operations_log"]) .btn{border:0;border-radius:10px;padding:10px 13px;font-size:12px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px}
:where(html[data-page="operations_log"]) .btn.green{background:var(--green);color:#fff}
:where(html[data-page="operations_log"]) .btn.soft{background:#effcf5;color:#166534;border:1px solid #ccebd8}
:where(html[data-page="operations_log"]) .btn.gray{background:#f1f5f9;color:#334155}
:where(html[data-page="operations_log"]) .btn.dark{background:var(--deep);color:#fff}
:where(html[data-page="operations_log"]) .panel{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 3px 12px rgba(15,44,37,.025);margin-bottom:14px}
:where(html[data-page="operations_log"]) .filters{padding:14px;display:grid;grid-template-columns:1.3fr repeat(4,minmax(115px,1fr)) 1.1fr auto;gap:8px;align-items:end;position:relative;z-index:20;overflow:visible}
:where(html[data-page="operations_log"]) .field{position:relative;min-width:0}
:where(html[data-page="operations_log"]) .field label{display:block;font-size:8.5px;font-weight:800;color:#64748b;margin:0 2px 4px}
:where(html[data-page="operations_log"]) .control{width:100%;height:40px;border:1px solid #dce5e0;border-radius:9px;padding:0 9px;background:#fff;font-size:12px;outline:none}
:where(html[data-page="operations_log"]) .control:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(3,175,70,.08)}
:where(html[data-page="operations_log"]) .customer-results{display:none;position:absolute;top:calc(100% + 5px);right:0;left:0;z-index:999;background:#fff;border:1px solid #dce5e0;border-radius:10px;max-height:260px;overflow:auto;box-shadow:0 14px 30px rgba(15,44,37,.14);min-width:250px}
:where(html[data-page="operations_log"]) .customer-result{padding:9px 11px;border-bottom:1px solid #eef2f0;cursor:pointer}
:where(html[data-page="operations_log"]) .customer-result:last-child{border:0}
:where(html[data-page="operations_log"]) .customer-result:hover{background:#f2fbf6}
:where(html[data-page="operations_log"]) .customer-result strong{display:block;font-size:12px}
:where(html[data-page="operations_log"]) .customer-result small{font-size:12px;color:#94a3b8;direction:ltr;display:block;text-align:right}
:where(html[data-page="operations_log"]) .selected-customer{margin-top:5px;font-size:12px;color:#166534;font-weight:800;display:flex;gap:5px;align-items:center}
:where(html[data-page="operations_log"]) .selected-customer button{border:0;background:#fee2e2;color:#991b1b;border-radius:50%;width:18px;height:18px;cursor:pointer}
:where(html[data-page="operations_log"]) .stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:14px}
:where(html[data-page="operations_log"]) .stat{background:#fff;border:1px solid var(--line);border-radius:13px;padding:12px}
:where(html[data-page="operations_log"]) .stat span{font-size:12px;color:#94a3b8;display:block}
:where(html[data-page="operations_log"]) .stat strong{font-size:16px;color:var(--deep)}
:where(html[data-page="operations_log"]) .stat.rem strong{color:var(--red)}
:where(html[data-page="operations_log"]) .table-panel{overflow:hidden}
:where(html[data-page="operations_log"]) .table-head{padding:13px 15px;border-bottom:1px solid #edf2ef;display:flex;justify-content:space-between;align-items:center;gap:10px}
:where(html[data-page="operations_log"]) .table-head h2{font-size:13px;color:var(--deep)}
:where(html[data-page="operations_log"]) .table-head p{font-size:8.5px;color:#94a3b8}
:where(html[data-page="operations_log"]) .table-wrap{overflow:auto;max-width:100%}
:where(html[data-page="operations_log"]) table{width:100%;border-collapse:collapse;min-width:1050px}
:where(html[data-page="operations_log"]) th{background:#f7faf8;color:#475569;font-size:8.5px;padding:9px 8px;text-align:right;white-space:nowrap;border-bottom:1px solid #e5ebe8;position:sticky;top:0;z-index:2}
:where(html[data-page="operations_log"]) td{font-size:12px;padding:9px 8px;border-bottom:1px solid #eef2f0;vertical-align:top;max-width:260px}
:where(html[data-page="operations_log"]) .row:hover{background:#fbfefc}
:where(html[data-page="operations_log"]) .num{font-weight:800;color:var(--green2);white-space:nowrap}
:where(html[data-page="operations_log"]) .date{white-space:nowrap;color:#64748b}
:where(html[data-page="operations_log"]) .money{white-space:nowrap;font-weight:800}
:where(html[data-page="operations_log"]) .muted{color:#94a3b8}
:where(html[data-page="operations_log"]) .items-cell{min-width:220px;line-height:1.8}
:where(html[data-page="operations_log"]) .status{display:inline-flex;padding:3px 7px;border-radius:999px;font-size:7.5px;font-weight:800;white-space:nowrap}
:where(html[data-page="operations_log"]) .paid{background:#dcfce7;color:#166534}
:where(html[data-page="operations_log"]) .partial{background:#fff7ed;color:#9a3412}
:where(html[data-page="operations_log"]) .unpaid{background:#fee2e2;color:#991b1b}
:where(html[data-page="operations_log"]) .cancelled{background:#f1f5f9;color:#64748b}
:where(html[data-page="operations_log"]) .remain{font-weight:800;color:var(--red);white-space:nowrap}
:where(html[data-page="operations_log"]) .zero{color:#166534}
:where(html[data-page="operations_log"]) .empty{text-align:center;padding:45px 15px;color:#94a3b8;font-size:12px}
:where(html[data-page="operations_log"]) .pagination{display:flex;justify-content:center;align-items:center;gap:5px;padding:14px;flex-wrap:wrap}
:where(html[data-page="operations_log"]) .page{min-width:32px;height:32px;border-radius:8px;border:1px solid #dfe7e3;background:#fff;display:grid;place-items:center;font-size:12px}
:where(html[data-page="operations_log"]) .page.active{background:var(--green);border-color:var(--green);color:#fff;font-weight:800}
:where(html[data-page="operations_log"]) .page.disabled{opacity:.45;pointer-events:none}
:where(html[data-page="operations_log"]) .print-only{display:none}
@media(max-width:1200px){:where(html[data-page="operations_log"]) .filters{grid-template-columns:repeat(3,1fr)}}
@media(max-width:992px){:where(html[data-page="operations_log"]) main{margin-right:0;width:100%;padding:72px 13px 18px}
:where(html[data-page="operations_log"]) .stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){:where(html[data-page="operations_log"]) .head{align-items:flex-start;flex-direction:column}
:where(html[data-page="operations_log"]) .filters{grid-template-columns:1fr 1fr}
:where(html[data-page="operations_log"]) .filters .wide{grid-column:1/-1}
:where(html[data-page="operations_log"]) .stats{gap:6px}
:where(html[data-page="operations_log"]) .stat{padding:10px}
:where(html[data-page="operations_log"]) .stat strong{font-size:13px}}
@media(max-width:430px){:where(html[data-page="operations_log"]) .filters{grid-template-columns:1fr}
:where(html[data-page="operations_log"]) .filters .wide{grid-column:auto}
:where(html[data-page="operations_log"]) .head-actions{width:100%}
:where(html[data-page="operations_log"]) .head-actions .btn{flex:1}
:where(html[data-page="operations_log"]) .stats{grid-template-columns:1fr 1fr}}
@media print{@page{size:A4 landscape;margin:8mm}
:where(html[data-page="operations_log"]) body{background:#fff}
:where(html[data-page="operations_log"]) .no-print,:where(html[data-page="operations_log"]) aside{display:none!important}
:where(html[data-page="operations_log"]) main{margin:0!important;width:100%!important;padding:0!important}
:where(html[data-page="operations_log"]) .print-only{display:block}
:where(html[data-page="operations_log"]) .panel{border:0;box-shadow:none}
:where(html[data-page="operations_log"]) .table-panel{overflow:visible}
:where(html[data-page="operations_log"]) .table-wrap{overflow:visible}
:where(html[data-page="operations_log"]) table{min-width:0;font-size:7px}
:where(html[data-page="operations_log"]) th,:where(html[data-page="operations_log"]) td{font-size:6.5px;padding:4px 3px;position:static;max-width:none}
:where(html[data-page="operations_log"]) .items-cell{min-width:0}
:where(html[data-page="operations_log"]) .status{font-size:6px;padding:2px 4px}
:where(html[data-page="operations_log"]) .print-title{text-align:center;margin-bottom:8px}
:where(html[data-page="operations_log"]) .print-title h1{font-size:15px}
:where(html[data-page="operations_log"]) .print-title p{font-size:12px;color:#555}
:where(html[data-page="operations_log"]) .print-summary{display:flex;justify-content:center;gap:20px;font-size:12px;margin:7px 0 10px}}

/* register */
:where(html[data-page="register"]){
            --salvation-red: #E51A1A;
            --salvation-black: #111111;
            --salvation-white: #FFFFFF;
            --salvation-green: #03AF46;
            --salvation-gray: #4A4A4A;
        }
:where(html[data-page="register"]) *{ box-sizing: border-box; margin: 0; padding: 0; font-family:var(--font-ui); }
:where(html[data-page="register"]) body{ background-color: #f8fafc; color: var(--salvation-black); display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; }
:where(html[data-page="register"]) .register-container{ background-color: var(--salvation-white); width: 100%; max-width: 600px; padding: 40px; border-radius: 16px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); border-top: 6px solid var(--salvation-green); border-bottom: 2px solid #e2e8f0; }
:where(html[data-page="register"]) .logo-area{ text-align: center; margin-bottom: 30px; }
:where(html[data-page="register"]) .logo-area img{ width: 85px; height: auto; margin-bottom: 12px; }
:where(html[data-page="register"]) .logo-area h1{ font-size: 24px; font-weight: 700; color: var(--salvation-black); margin-bottom: 6px; }
:where(html[data-page="register"]) .logo-area p{ font-size: 14px; color: var(--salvation-gray); }
:where(html[data-page="register"]) .alert{ padding: 14px; border-radius: 8px; margin-bottom: 24px; font-size: 14px; font-weight: 600; text-align: center; }
:where(html[data-page="register"]) .alert-error{ background-color: #fef2f2; color: var(--salvation-red); border: 1px solid #fecaca; }
:where(html[data-page="register"]) .alert-success{ background-color: #f0fdf4; color: var(--salvation-green); border: 1px solid #bbf7d0; }
:where(html[data-page="register"]) .form-group{ margin-bottom: 20px; }
:where(html[data-page="register"]) .form-group label{ display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; color: var(--salvation-black); }
:where(html[data-page="register"]) .form-group input,:where(html[data-page="register"]) .form-group textarea{ width: 100%; padding: 12px 15px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; color: var(--salvation-black); background-color: #f8fafc; transition: all 0.3s ease; }
:where(html[data-page="register"]) .form-group input:focus,:where(html[data-page="register"]) .form-group textarea:focus{ outline: none; border-color: var(--salvation-green); background-color: var(--salvation-white); box-shadow: 0 0 0 3px rgba(3, 175, 70, 0.12); }
:where(html[data-page="register"]) .checkbox-group{ display: flex; align-items: flex-start; gap: 10px; margin-bottom: 15px; font-size: 14px; cursor: pointer; user-select: none; }
:where(html[data-page="register"]) .checkbox-group input[type="checkbox"]{ width: 18px; height: 18px; accent-color: var(--salvation-green); margin-top: 2px; cursor: pointer; }
:where(html[data-page="register"]) .checkbox-group label{ font-weight: 600; color: var(--salvation-black); cursor: pointer; }
:where(html[data-page="register"]) .terms-link{ color: var(--salvation-green); text-decoration: underline; cursor: pointer; font-weight: 700; }
:where(html[data-page="register"]) #referral-wrapper{ display: none; margin-top: 10px; margin-bottom: 20px; }
:where(html[data-page="register"]) .note{ font-size: 12px; color: var(--salvation-gray); margin-top: 6px; display: block; }
:where(html[data-page="register"]) .btn-submit{ background-color: var(--salvation-green); color: var(--salvation-white); border: none; width: 100%; padding: 14px; font-size: 16px; font-weight: 700; border-radius: 8px; cursor: pointer; transition: background-color 0.3s ease; margin-top: 10px; box-shadow: 0 4px 12px rgba(3, 175, 70, 0.22); }
:where(html[data-page="register"]) .btn-submit:hover{ background-color: #05642F; }
:where(html[data-page="register"]) #loading-text{ font-size: 12px; font-weight: 600; color: var(--salvation-red); margin-top: 6px; display: none; }
:where(html[data-page="register"]) .modal-overlay{ display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); z-index: 1000; justify-content: center; align-items: center; padding: 20px; }
:where(html[data-page="register"]) .modal-content{ background-color: var(--salvation-white); width: 100%; max-width: 650px; max-height: 85vh; border-radius: 12px; display: flex; flex-direction: column; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); overflow: hidden; }
:where(html[data-page="register"]) .modal-header{ padding: 20px; background-color: #f8fafc; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; }
:where(html[data-page="register"]) .modal-header h2{ font-size: 18px; font-weight: 700; color: var(--salvation-black); }
:where(html[data-page="register"]) .modal-close{ background: none; border: none; font-size: 22px; cursor: pointer; color: var(--salvation-gray); font-weight: bold; }
:where(html[data-page="register"]) .modal-body{ padding: 25px; overflow-y: auto; font-size: 14px; line-height: 1.8; color: var(--salvation-gray); }
:where(html[data-page="register"]) .modal-footer{ padding: 15px 20px; background-color: #f8fafc; border-top: 1px solid #e2e8f0; text-align: left; }
:where(html[data-page="register"]) .btn-modal-close{ background-color: var(--salvation-black); color: var(--salvation-white); border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: 600; }

/* report_export */
@page{size:A4 landscape;margin:10mm}
:where(html[data-page="report_export"]) *{box-sizing:border-box}
:where(html[data-page="report_export"]) body{font-family:var(--font-ui);color:#17231f;margin:0;background:#fff;font-size:12px}
:where(html[data-page="report_export"]) .sheet{max-width:1120px;margin:auto}
:where(html[data-page="report_export"]) .brand{display:flex;justify-content:space-between;align-items:center;border-bottom:3px solid #03AF46;padding-bottom:10px;margin-bottom:12px}
:where(html[data-page="report_export"]) .brand-left{display:flex;align-items:center;gap:10px}
:where(html[data-page="report_export"]) .brand img{width:52px;height:52px;object-fit:contain}
:where(html[data-page="report_export"]) .brand h1{font-size:18px;margin:0;color:#0F2C25}
:where(html[data-page="report_export"]) .brand p{margin:3px 0 0;color:#64748b;font-size:12px}
:where(html[data-page="report_export"]) .meta{text-align:left;font-size:12px;color:#64748b}
:where(html[data-page="report_export"]) .summary{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-bottom:12px}
:where(html[data-page="report_export"]) .box{border:1px solid #dfe8e3;border-radius:7px;padding:8px}
:where(html[data-page="report_export"]) .box span{display:block;color:#64748b;font-size:12px}
:where(html[data-page="report_export"]) .box strong{font-size:12px;color:#0F2C25}
:where(html[data-page="report_export"]) .red{color:#DA0C11!important}
:where(html[data-page="report_export"]) .green{color:#05642F!important}
:where(html[data-page="report_export"]) table{width:100%;border-collapse:collapse}
:where(html[data-page="report_export"]) th,:where(html[data-page="report_export"]) td{border:1px solid #dfe6e2;padding:6px;text-align:right;font-size:8.5px}
:where(html[data-page="report_export"]) th{background:#f1f7f4;color:#0F2C25}
:where(html[data-page="report_export"]) .footer{margin-top:12px;padding-top:7px;border-top:1px solid #dfe6e2;display:flex;justify-content:space-between;color:#64748b;font-size:12px}
:where(html[data-page="report_export"]) .screen{position:fixed;left:15px;bottom:15px;background:#03AF46;color:#fff;border:0;border-radius:9px;padding:10px 14px;font-weight:bold;cursor:pointer}
@media print{:where(html[data-page="report_export"]) .screen{display:none}}

/* reports */
:where(html[data-page="reports"]){--g:#03AF46;--gd:#05642F;--d:#0F2C25;--r:#DA0C11;--bg:#F6F8F7;--line:#e3ebe7;--mut:#64748b;--sidebar:260px}
:where(html[data-page="reports"]) *{box-sizing:border-box}
:where(html[data-page="reports"]) body{margin:0;background:var(--bg);color:#17231f;font-family:var(--font-ui)}
:where(html[data-page="reports"]) a{text-decoration:none;color:inherit}
:where(html[data-page="reports"]) button,:where(html[data-page="reports"]) input,:where(html[data-page="reports"]) select{font:inherit}
:where(html[data-page="reports"]) main{margin-right:var(--sidebar);width:calc(100% - var(--sidebar));padding:25px}
:where(html[data-page="reports"]) .head,:where(html[data-page="reports"]) .panel,:where(html[data-page="reports"]) .card{background:#fff;border:1px solid var(--line);border-radius:16px}
:where(html[data-page="reports"]) .head{padding:18px 20px;margin-bottom:13px;display:flex;justify-content:space-between;align-items:center;gap:10px}
:where(html[data-page="reports"]) .head h1{margin:0;font-size:19px;color:var(--d)}
:where(html[data-page="reports"]) .head p{margin:3px 0 0;font-size:12px;color:var(--mut)}
:where(html[data-page="reports"]) .export{display:flex;gap:7px}
:where(html[data-page="reports"]) .btn{border:0;border-radius:10px;padding:10px 13px;font-size:12px;font-weight:800;cursor:pointer;display:inline-flex;gap:6px;align-items:center}
:where(html[data-page="reports"]) .green{background:var(--g);color:#fff}
:where(html[data-page="reports"]) .light{background:#f1f5f9;color:#334155}
:where(html[data-page="reports"]) .filters{padding:13px;margin-bottom:12px;display:grid;grid-template-columns:1.15fr repeat(4,1fr) auto;gap:8px;overflow:visible!important;position:relative;z-index:40}
:where(html[data-page="reports"]) .field{position:relative;min-width:0}
:where(html[data-page="reports"]) .field label{display:block;font-size:12px;font-weight:800;color:#64748b;margin:0 2px 4px}
:where(html[data-page="reports"]) .control{width:100%;height:40px;border:1px solid #dce5e0;border-radius:9px;padding:0 9px;background:#fff;font-size:12px;outline:none}
:where(html[data-page="reports"]) .control:focus{border-color:var(--g);box-shadow:0 0 0 3px rgba(3,175,70,.08)}
:where(html[data-page="reports"]) .customer-field{z-index:60}
:where(html[data-page="reports"]) .customer-results{display:none;position:absolute;top:calc(100% + 5px);right:0;left:0;z-index:9999;background:#fff;border:1px solid #dce5e0;border-radius:11px;max-height:260px;overflow-y:auto;overflow-x:hidden;box-shadow:0 14px 32px rgba(15,44,37,.14);min-width:260px}
:where(html[data-page="reports"]) .customer-result{display:block;width:100%;text-align:right;border:0;border-bottom:1px solid #eef2f0;background:#fff;padding:10px 12px;cursor:pointer;color:#17231f}
:where(html[data-page="reports"]) .customer-result:last-child{border-bottom:0}
:where(html[data-page="reports"]) .customer-result:hover,:where(html[data-page="reports"]) .customer-result:focus{background:#f1fbf5;outline:none}
:where(html[data-page="reports"]) .customer-result strong{display:block;font-size:12px}
:where(html[data-page="reports"]) .customer-result small{display:block;color:#64748b;font-size:8.5px;margin-top:2px;direction:ltr;text-align:right}
:where(html[data-page="reports"]) .customer-empty{padding:13px;font-size:12px;color:#94a3b8;text-align:center}
:where(html[data-page="reports"]) .selected-customer{display:flex;align-items:center;gap:6px;margin-top:6px;font-size:12px;color:#166534;font-weight:700}
:where(html[data-page="reports"]) .clear-customer{border:0;background:#fee2e2;color:#991b1b;border-radius:99px;width:20px;height:20px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
:where(html[data-page="reports"]) .stats{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:12px}
:where(html[data-page="reports"]) .card{padding:13px}
:where(html[data-page="reports"]) .card span{font-size:12px;color:#94a3b8}
:where(html[data-page="reports"]) .card strong{display:block;font-size:15px;color:var(--d);margin-top:3px}
:where(html[data-page="reports"]) .card.red strong{color:var(--r)}
:where(html[data-page="reports"]) .card.greenish strong{color:#166534}
:where(html[data-page="reports"]) .panel{overflow:hidden}
:where(html[data-page="reports"]) .filters.panel{overflow:visible!important}
:where(html[data-page="reports"]) .panel-title{padding:13px 15px;border-bottom:1px solid #edf2ef;display:flex;justify-content:space-between;align-items:center}
:where(html[data-page="reports"]) .panel-title h2{margin:0;font-size:12px;color:var(--d)}
:where(html[data-page="reports"]) .panel-title span{font-size:12px;color:#94a3b8}
:where(html[data-page="reports"]) .table{overflow:auto}
:where(html[data-page="reports"]) table{width:100%;border-collapse:collapse;min-width:900px}
:where(html[data-page="reports"]) th,:where(html[data-page="reports"]) td{text-align:right;padding:10px;border-bottom:1px solid #eef2f0;font-size:12px;white-space:nowrap}
:where(html[data-page="reports"]) th{background:#fafcfb;color:#64748b;font-size:12px}
:where(html[data-page="reports"]) .money{font-weight:800}
:where(html[data-page="reports"]) .debt{color:var(--r);font-weight:800}
:where(html[data-page="reports"]) .paid{color:#166534;font-weight:800}
:where(html[data-page="reports"]) .tag{padding:3px 7px;border-radius:99px;background:#f1f5f9;font-size:7.5px;font-weight:800}
:where(html[data-page="reports"]) .empty{text-align:center;padding:45px;color:#94a3b8;font-size:12px}
:where(html[data-page="reports"]) .empty i{font-size:28px;display:block;margin-bottom:8px}
:where(html[data-page="reports"]) .note{font-size:12px;color:#94a3b8;padding:10px 14px;border-top:1px solid #eef2f0}
@media(max-width:1150px){:where(html[data-page="reports"]) .stats{grid-template-columns:repeat(3,1fr)}
:where(html[data-page="reports"]) .filters{grid-template-columns:repeat(2,1fr)}}
@media(max-width:992px){:where(html[data-page="reports"]) main{margin-right:0;width:100%;padding:72px 13px 18px}}
@media(max-width:650px){:where(html[data-page="reports"]) .head{align-items:flex-start;flex-direction:column}
:where(html[data-page="reports"]) .export{width:100%}
:where(html[data-page="reports"]) .export .btn{flex:1;justify-content:center}
:where(html[data-page="reports"]) .stats{grid-template-columns:repeat(2,1fr)}
:where(html[data-page="reports"]) .filters{grid-template-columns:1fr}}

/* settings */
:where(html[data-page="settings"]){--g:#03AF46;--gd:#05642F;--d:#0F2C25;--r:#DA0C11;--t:#308E9E;--bg:#F6F8F7;--line:#e3ebe7;--mut:#64748b;--sidebar:260px}
:where(html[data-page="settings"]) *{box-sizing:border-box}
:where(html[data-page="settings"]) body{margin:0;background:var(--bg);color:#17231f;font-family:var(--font-ui)}
:where(html[data-page="settings"]) a{text-decoration:none;color:inherit}
:where(html[data-page="settings"]) button,:where(html[data-page="settings"]) input,:where(html[data-page="settings"]) select,:where(html[data-page="settings"]) textarea{font:inherit}
:where(html[data-page="settings"]) main{margin-right:var(--sidebar);width:calc(100% - var(--sidebar));padding:25px}
:where(html[data-page="settings"]) .head,:where(html[data-page="settings"]) .panel{background:#fff;border:1px solid var(--line);border-radius:16px}
:where(html[data-page="settings"]) .head{padding:18px 20px;margin-bottom:12px}
:where(html[data-page="settings"]) .head h1{font-size:19px;margin:0;color:var(--d)}
:where(html[data-page="settings"]) .head p{font-size:12px;color:var(--mut);margin:3px 0 0}
:where(html[data-page="settings"]) .alert{padding:11px 13px;border:1px solid;border-radius:11px;margin-bottom:11px;font-size:12px}
:where(html[data-page="settings"]) .ok{background:#f0fdf4;border-color:#bbf7d0;color:#166534}
:where(html[data-page="settings"]) .err{background:#fef2f2;border-color:#fecaca;color:#991b1b}
:where(html[data-page="settings"]) .layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:12px}
:where(html[data-page="settings"]) .nav{background:#fff;border:1px solid var(--line);border-radius:16px;padding:7px;height:max-content}
:where(html[data-page="settings"]) .nav a{display:flex;align-items:center;gap:8px;padding:10px;border-radius:9px;font-size:8.8px;font-weight:800;color:#64748b;margin-bottom:2px}
:where(html[data-page="settings"]) .nav a.on{background:#ecfdf3;color:#166534}
:where(html[data-page="settings"]) .nav i{width:17px;text-align:center}
:where(html[data-page="settings"]) .panel{overflow:hidden}
:where(html[data-page="settings"]) .title{padding:14px 16px;border-bottom:1px solid #edf2ef}
:where(html[data-page="settings"]) .title h2{font-size:13px;margin:0;color:var(--d)}
:where(html[data-page="settings"]) .title p{font-size:12px;color:#94a3b8;margin:3px 0 0}
:where(html[data-page="settings"]) .body{padding:16px}
:where(html[data-page="settings"]) .grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
:where(html[data-page="settings"]) .field.full{grid-column:1/-1}
:where(html[data-page="settings"]) .field label{display:block;font-size:8.5px;font-weight:800;color:#475569;margin-bottom:4px}
:where(html[data-page="settings"]) .control{width:100%;height:40px;border:1px solid #dce5e0;border-radius:9px;padding:0 10px;background:#fff;outline:none;font-size:9.5px}
:where(html[data-page="settings"]) .control:focus{border-color:var(--g)}
:where(html[data-page="settings"]) textarea.control{height:90px;padding:9px;resize:vertical}
:where(html[data-page="settings"]) .readonly{background:#f8faf9;color:#64748b}
:where(html[data-page="settings"]) .actions{display:flex;justify-content:flex-end;border-top:1px solid #edf2ef;margin-top:15px;padding-top:13px}
:where(html[data-page="settings"]) .btn{border:0;border-radius:10px;padding:10px 16px;font-size:12px;font-weight:800;cursor:pointer;background:var(--g);color:#fff;display:inline-flex;align-items:center;gap:6px}
:where(html[data-page="settings"]) .switches{display:grid;gap:7px}
:where(html[data-page="settings"]) .switch{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid #e5ece8;border-radius:10px;padding:10px}
:where(html[data-page="settings"]) .switch strong{font-size:12px;display:block}
:where(html[data-page="settings"]) .switch small{font-size:7.5px;color:#94a3b8}
:where(html[data-page="settings"]) .toggle{position:relative;width:40px;height:22px;flex:none}
:where(html[data-page="settings"]) .toggle input{display:none}
:where(html[data-page="settings"]) .toggle span{position:absolute;inset:0;background:#cbd5e1;border-radius:99px;cursor:pointer}
:where(html[data-page="settings"]) .toggle span:after{content:"";position:absolute;width:16px;height:16px;right:3px;top:3px;background:#fff;border-radius:50%;transition:.2s}
:where(html[data-page="settings"]) .toggle input:checked+span{background:var(--g)}
:where(html[data-page="settings"]) .toggle input:checked+span:after{right:21px}
:where(html[data-page="settings"]) .account-card{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
:where(html[data-page="settings"]) .info{background:#f8faf9;border-radius:10px;padding:11px}
:where(html[data-page="settings"]) .info span{font-size:7.5px;color:#94a3b8}
:where(html[data-page="settings"]) .info strong{display:block;font-size:9.5px;margin-top:3px}
:where(html[data-page="settings"]) .note{background:#eff8ff;border:1px solid #bfdbfe;color:#1e40af;border-radius:10px;padding:10px;font-size:12px;line-height:1.8;margin-top:12px}
@media(max-width:992px){:where(html[data-page="settings"]) main{margin-right:0;width:100%;padding:72px 13px 18px}
:where(html[data-page="settings"]) .layout{grid-template-columns:1fr}
:where(html[data-page="settings"]) .nav{display:flex;overflow:auto}
:where(html[data-page="settings"]) .nav a{white-space:nowrap;margin:0}}
@media(max-width:650px){:where(html[data-page="settings"]) .grid,:where(html[data-page="settings"]) .account-card{grid-template-columns:1fr}
:where(html[data-page="settings"]) .field.full{grid-column:auto}
:where(html[data-page="settings"]) .actions .btn{width:100%;justify-content:center}}
:where(html[data-page="settings"]) .menu-sort{display:grid;gap:7px}
:where(html[data-page="settings"]) .menu-row{display:flex;align-items:center;gap:9px;border:1px solid #e5ece8;border-radius:11px;padding:10px;background:#fff}
:where(html[data-page="settings"]) .menu-row.dragging{opacity:.45}
:where(html[data-page="settings"]) .menu-handle{cursor:grab;color:#94a3b8;width:24px;text-align:center}
:where(html[data-page="settings"]) .menu-row .mi{width:24px;text-align:center;color:#166534}
:where(html[data-page="settings"]) .menu-row .ml{flex:1;font-size:12px;font-weight:800}
:where(html[data-page="settings"]) .menu-row .ms{font-size:7px;color:#94a3b8;display:block;font-weight:600}
:where(html[data-page="settings"]) .menu-visibility{display:flex;align-items:center;gap:8px;font-size:12px;color:#64748b;cursor:pointer}
:where(html[data-page="settings"]) .menu-visibility-text{min-width:30px;text-align:center;font-weight:800}
:where(html[data-page="settings"]) .menu-toggle{position:relative;width:42px;height:23px;flex:none}
:where(html[data-page="settings"]) .menu-toggle input{display:none}
:where(html[data-page="settings"]) .menu-toggle>span{position:absolute;inset:0;background:#cbd5e1;border-radius:99px;cursor:pointer;transition:.2s}
:where(html[data-page="settings"]) .menu-toggle>span:after{content:"";position:absolute;width:17px;height:17px;right:3px;top:3px;background:#fff;border-radius:50%;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.18)}
:where(html[data-page="settings"]) .menu-toggle input:checked+span{background:var(--g)}
:where(html[data-page="settings"]) .menu-toggle input:checked+span:after{right:22px}
:where(html[data-page="settings"]) .menu-open{color:#17231f}
:where(html[data-page="settings"]) .menu-open:hover{color:var(--g)}
:where(html[data-page="settings"]) .menu-open i{font-size:7px;margin-right:3px}
:where(html[data-page="settings"]) .fixed-note{background:#f8faf9;border:1px solid #e5ece8;border-radius:10px;padding:10px;font-size:12px;line-height:1.8;margin-bottom:10px}

/* sms_center */
:where(html[data-page="sms_center"]){--green:#03AF46;--dark:#111;--bg:#f6f8f7;--line:#e3ebe7;--muted:#64748b;--red:#dc2626;--sidebar:260px}
:where(html[data-page="sms_center"]) *{box-sizing:border-box}
:where(html[data-page="sms_center"]) body{margin:0;background:var(--bg);font-family:var(--font-ui);color:#17231f}
:where(html[data-page="sms_center"]) button,:where(html[data-page="sms_center"]) input,:where(html[data-page="sms_center"]) select{font:inherit}
:where(html[data-page="sms_center"]) a{text-decoration:none;color:inherit}
:where(html[data-page="sms_center"]) .sms-page{margin-right:var(--sidebar);padding:24px;min-height:100vh}
:where(html[data-page="sms_center"]) .box{background:#fff;border:1px solid var(--line);border-radius:16px;margin-bottom:14px;padding:16px}
:where(html[data-page="sms_center"]) .top{display:flex;justify-content:space-between;align-items:center;gap:12px}
:where(html[data-page="sms_center"]) .top h1{margin:0;font-size:20px}
:where(html[data-page="sms_center"]) .top p,:where(html[data-page="sms_center"]) .hint{margin:4px 0 0;color:var(--muted);font-size:12px}
:where(html[data-page="sms_center"]) .btn{border:0;border-radius:9px;padding:9px 12px;font-size:12px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
:where(html[data-page="sms_center"]) .btn-green{background:var(--green);color:#fff}
:where(html[data-page="sms_center"]) .btn-light{background:#f1f5f9;color:#334155}
:where(html[data-page="sms_center"]) .btn-red{background:#fee2e2;color:#991b1b}
:where(html[data-page="sms_center"]) .btn-outline{background:#fff;border:1px solid #dce5e0;color:#334155}
:where(html[data-page="sms_center"]) .alert{padding:10px 12px;border-radius:10px;margin-bottom:12px;font-size:12px}
:where(html[data-page="sms_center"]) .success{background:#f0fdf4;color:#166534}
:where(html[data-page="sms_center"]) .error{background:#fef2f2;color:#991b1b}
:where(html[data-page="sms_center"]) .template-bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
:where(html[data-page="sms_center"]) .control{border:1px solid #dce5e0;border-radius:9px;padding:9px 10px;background:#fff;font-size:12px;min-height:38px}
:where(html[data-page="sms_center"]) .grow{flex:1;min-width:190px}
:where(html[data-page="sms_center"]) .editor{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
:where(html[data-page="sms_center"]) .editor-main,:where(html[data-page="sms_center"]) .preview{border:1px solid var(--line);border-radius:13px;padding:13px}
:where(html[data-page="sms_center"]) .field{margin-bottom:10px}
:where(html[data-page="sms_center"]) .field>label{display:block;font-size:12px;font-weight:800;margin-bottom:5px}
:where(html[data-page="sms_center"]) .element{border:1px solid #e6ece9;border-radius:11px;padding:10px;margin-bottom:8px}
:where(html[data-page="sms_center"]) .element-head{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:800;margin-bottom:7px}
:where(html[data-page="sms_center"]) .element select{width:100%}
:where(html[data-page="sms_center"]) .payment-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:8px}
:where(html[data-page="sms_center"]) .preview-message{white-space:pre-wrap;line-height:1.9;background:#f8faf9;border:1px dashed #cbd8d1;border-radius:11px;padding:13px;font-size:12px;min-height:180px}
:where(html[data-page="sms_center"]) .badge{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:7px;font-weight:800}
:where(html[data-page="sms_center"]) .badge-default{background:#dcfce7;color:#166534}
:where(html[data-page="sms_center"]) .filters{display:grid;grid-template-columns:1fr auto auto;gap:8px}
:where(html[data-page="sms_center"]) .tabs{display:flex;gap:5px;flex-wrap:wrap;margin-top:10px}
:where(html[data-page="sms_center"]) .tab{padding:7px 10px;border-radius:8px;background:#f1f5f9;font-size:12px}
:where(html[data-page="sms_center"]) .tab.active{background:#111;color:#fff}
:where(html[data-page="sms_center"]) .table-wrap{overflow:auto;margin-top:10px}
:where(html[data-page="sms_center"]) table{width:100%;border-collapse:collapse;min-width:880px}
:where(html[data-page="sms_center"]) th,:where(html[data-page="sms_center"]) td{padding:10px 8px;border-bottom:1px solid #edf2ef;text-align:right;font-size:8.5px;vertical-align:top}
:where(html[data-page="sms_center"]) th{background:#fafcfb;color:#64748b}
:where(html[data-page="sms_center"]) .message{white-space:pre-wrap;line-height:1.7;max-width:390px}
:where(html[data-page="sms_center"]) .phone-row{display:flex;gap:5px;align-items:center}
:where(html[data-page="sms_center"]) .phone-input{width:135px}
:where(html[data-page="sms_center"]) .actions{display:flex;gap:5px;flex-wrap:wrap}
:where(html[data-page="sms_center"]) .pagination{display:flex;justify-content:center;gap:4px;margin-top:12px}
:where(html[data-page="sms_center"]) .page{padding:6px 9px;background:#f1f5f9;border-radius:7px;font-size:12px}
:where(html[data-page="sms_center"]) .page.active{background:var(--green);color:#fff}
:where(html[data-page="sms_center"]) .empty{text-align:center;padding:30px;color:#94a3b8;font-size:12px}
@media(max-width:992px){:where(html[data-page="sms_center"]) .sms-page{margin-right:0;padding:72px 12px 20px}
:where(html[data-page="sms_center"]) .top{align-items:flex-start;flex-direction:column}
:where(html[data-page="sms_center"]) .editor{grid-template-columns:1fr}
:where(html[data-page="sms_center"]) .payment-fields{grid-template-columns:1fr}
:where(html[data-page="sms_center"]) .filters{grid-template-columns:1fr}
:where(html[data-page="sms_center"]) .template-bar{align-items:stretch}
:where(html[data-page="sms_center"]) .template-bar>*{width:100%}}

/* sms_external */
:where(html[data-page="sms_external"]){--g:#03AF46;--ink:#17231f;--mut:#64748b;--line:#e2e8f0;--bg:#f7f9f8;--sidebar:260px}
:where(html[data-page="sms_external"]) *{box-sizing:border-box}
:where(html[data-page="sms_external"]) body{margin:0;background:var(--bg);color:var(--ink);font:13px var(--font-ui)}
:where(html[data-page="sms_external"]) main{margin-right:var(--sidebar);padding:25px}
:where(html[data-page="sms_external"]) button,:where(html[data-page="sms_external"]) input,:where(html[data-page="sms_external"]) textarea,:where(html[data-page="sms_external"]) select{font:inherit}
:where(html[data-page="sms_external"]) .top,:where(html[data-page="sms_external"]) .card{background:#fff;border:1px solid var(--line);border-radius:16px}
:where(html[data-page="sms_external"]) .top{padding:18px 20px;margin-bottom:15px;display:flex;justify-content:space-between;gap:10px}
:where(html[data-page="sms_external"]) .top h1{margin:0;font-size:21px}
:where(html[data-page="sms_external"]) .mut{color:var(--mut);font-size:12px}
:where(html[data-page="sms_external"]) .card{padding:20px;margin-bottom:15px}
:where(html[data-page="sms_external"]) .btn,:where(html[data-page="sms_external"]) button{border:0;border-radius:9px;padding:10px 15px;background:var(--g);color:#fff;font-weight:700;cursor:pointer}
:where(html[data-page="sms_external"]) .light{background:#eef3f0;color:#24513d}
:where(html[data-page="sms_external"]) .danger{background:#fee2e2;color:#991b1b}
:where(html[data-page="sms_external"]) .grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
:where(html[data-page="sms_external"]) .full{grid-column:1/-1}
:where(html[data-page="sms_external"]) input,:where(html[data-page="sms_external"]) textarea,:where(html[data-page="sms_external"]) select{width:100%;border:1px solid #ccd8d1;border-radius:9px;padding:10px;background:#fff}
:where(html[data-page="sms_external"]) textarea{min-height:130px;line-height:1.9}
:where(html[data-page="sms_external"]) .tokens{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
:where(html[data-page="sms_external"]) .tokens button{background:#eaf6ef;color:#17613a;padding:6px 9px;font-size:12px}
:where(html[data-page="sms_external"]) .builder{display:grid;gap:8px}
:where(html[data-page="sms_external"]) .row{display:grid;grid-template-columns:30px 120px 1fr 120px;gap:7px;align-items:center;border:1px solid var(--line);padding:8px;border-radius:10px}
:where(html[data-page="sms_external"]) .notice{padding:12px;border-radius:10px;background:#f0fdf4;margin:10px 0}
:where(html[data-page="sms_external"]) .warn{background:#fff7e6}
:where(html[data-page="sms_external"]) .err{background:#fef2f2}
:where(html[data-page="sms_external"]) .table{overflow:auto}
:where(html[data-page="sms_external"]) table{width:100%;border-collapse:collapse;min-width:700px}
:where(html[data-page="sms_external"]) th,:where(html[data-page="sms_external"]) td{padding:10px;border-bottom:1px solid #edf1ef;text-align:right;font-size:12px}
:where(html[data-page="sms_external"]) .tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}
:where(html[data-page="sms_external"]) .tabs button{background:#fff;color:#64748b;border:1px solid var(--line)}
:where(html[data-page="sms_external"]) .tabs button.active{background:var(--g);color:#fff}
:where(html[data-page="sms_external"]) .preview{white-space:pre-wrap;background:#f8faf9;border:1px solid var(--line);border-radius:10px;padding:12px;line-height:1.9}
:where(html[data-page="sms_external"]) .actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
:where(html[data-page="sms_external"]) .hero{background:linear-gradient(120deg,#004c35,#008045);color:#fff;padding:28px}
:where(html[data-page="sms_external"]) .hero .mut{color:#d9f4e4}
:where(html[data-page="sms_external"]) .pill{display:inline-block;padding:4px 11px;border-radius:30px;background:#e7f3eb;color:#13663c;font-size:12px}
:where(html[data-page="sms_external"]) .steps{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}
:where(html[data-page="sms_external"]) .steps span{background:#edf4ef;padding:7px 12px;border-radius:30px;font-size:12px}
:where(html[data-page="sms_external"]) .copy-text{white-space:pre-wrap;line-height:2;background:#f8faf8;padding:16px;border-radius:10px;border:1px solid var(--line)}
:where(html[data-page="sms_external"]) .inline{display:flex;gap:8px;align-items:flex-start}
:where(html[data-page="sms_external"]) .inline input{width:auto;margin-top:5px}
:where(html[data-page="sms_external"]) .paybox{border:1px solid #f0d797;background:#fff9e9;border-radius:12px;padding:15px;margin:12px 0}
:where(html[data-page="sms_external"]) .statusline{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}
:where(html[data-page="sms_external"]) [hidden]{display:none!important}
@media(max-width:992px){:where(html[data-page="sms_external"]) main{margin-right:0;padding:72px 12px}
:where(html[data-page="sms_external"]) .grid,:where(html[data-page="sms_external"]) .row{grid-template-columns:1fr}
:where(html[data-page="sms_external"]) .full{grid-column:auto}}

/* sms_sender */
:where(html[data-page="sms_sender"]){--g:#03AF46;--bg:#f6f8f7;--line:#e3ebe7;--mut:#64748b;--sidebar:260px}
:where(html[data-page="sms_sender"]) *{box-sizing:border-box}
:where(html[data-page="sms_sender"]) body{margin:0;background:var(--bg);font-family:var(--font-ui);color:#17231f}
:where(html[data-page="sms_sender"]) a{text-decoration:none;color:inherit}
:where(html[data-page="sms_sender"]) button,:where(html[data-page="sms_sender"]) input,:where(html[data-page="sms_sender"]) select{font:inherit}
:where(html[data-page="sms_sender"]) main{margin-right:var(--sidebar);padding:24px}
:where(html[data-page="sms_sender"]) .head,:where(html[data-page="sms_sender"]) .card{background:#fff;border:1px solid var(--line);border-radius:16px}
:where(html[data-page="sms_sender"]) .head{padding:18px 20px;margin-bottom:12px;display:flex;justify-content:space-between;gap:10px;align-items:center}
:where(html[data-page="sms_sender"]) .head h1{font-size:19px;margin:0}
:where(html[data-page="sms_sender"]) .mut,:where(html[data-page="sms_sender"]) .head p{font-size:12px;color:var(--mut)}
:where(html[data-page="sms_sender"]) .grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
:where(html[data-page="sms_sender"]) .card{padding:15px;margin-bottom:12px}
:where(html[data-page="sms_sender"]) .stat{border:1px solid var(--line);border-radius:12px;padding:12px}
:where(html[data-page="sms_sender"]) .stat span{font-size:12px;color:#94a3b8}
:where(html[data-page="sms_sender"]) .stat strong{display:block;font-size:15px}
:where(html[data-page="sms_sender"]) .btn{border:0;border-radius:9px;padding:9px 12px;font-size:12px;font-weight:800;cursor:pointer;display:inline-flex;gap:5px;align-items:center}
:where(html[data-page="sms_sender"]) .green{background:var(--g);color:#fff}
:where(html[data-page="sms_sender"]) .light{background:#f1f5f9;color:#334155}
:where(html[data-page="sms_sender"]) .control{width:100%;border:1px solid #dce5e0;border-radius:9px;padding:9px;background:#fff;font-size:12px}
:where(html[data-page="sms_sender"]) .formgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
:where(html[data-page="sms_sender"]) .full{grid-column:1/-1}
:where(html[data-page="sms_sender"]) .alert{padding:10px;border-radius:10px;margin-bottom:10px;font-size:12px}
:where(html[data-page="sms_sender"]) .ok{background:#f0fdf4;color:#166534}
:where(html[data-page="sms_sender"]) .err{background:#fef2f2;color:#991b1b}
:where(html[data-page="sms_sender"]) .info{background:#f8faf9;border:1px dashed #cbd8d1;padding:12px;border-radius:11px;font-size:12px;line-height:1.9}
:where(html[data-page="sms_sender"]) .table{overflow:auto}
:where(html[data-page="sms_sender"]) table{width:100%;border-collapse:collapse;min-width:760px}
:where(html[data-page="sms_sender"]) th,:where(html[data-page="sms_sender"]) td{padding:9px;border-bottom:1px solid #edf2ef;font-size:8.5px;text-align:right}
:where(html[data-page="sms_sender"]) th{background:#fafcfb;color:#64748b}
:where(html[data-page="sms_sender"]) .pill{padding:4px 7px;border-radius:999px;background:#f1f5f9;font-size:7px;font-weight:800}
:where(html[data-page="sms_sender"]) .lots{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
:where(html[data-page="sms_sender"]) .lot{border:1px solid var(--line);border-radius:10px;padding:9px;font-size:12px}
:where(html[data-page="sms_sender"]) .preview{border:1px solid var(--line);border-radius:12px;padding:11px;margin-top:8px;background:#fbfdfc}
:where(html[data-page="sms_sender"]) .preview-head{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#64748b}
:where(html[data-page="sms_sender"]) .preview-msg{white-space:pre-wrap;line-height:1.9;font-size:12px;margin-top:6px}
:where(html[data-page="sms_sender"]) .paybox{background:#f8faf9;border:1px solid #dce8e1;border-radius:12px;padding:12px;margin:10px 0;font-size:12px;line-height:2}
:where(html[data-page="sms_sender"]) .disabled{opacity:.5;cursor:not-allowed}
@media(max-width:992px){:where(html[data-page="sms_sender"]) main{margin-right:0;padding:72px 12px 18px}
:where(html[data-page="sms_sender"]) .grid,:where(html[data-page="sms_sender"]) .formgrid,:where(html[data-page="sms_sender"]) .lots{grid-template-columns:1fr}
:where(html[data-page="sms_sender"]) .head{flex-direction:column;align-items:flex-start}}

/* sms_sim */
:where(html[data-page="sms_sim"]){--g:#03AF46;--bg:#f6f8f7;--line:#e3ebe7;--mut:#64748b;--sidebar:260px}
:where(html[data-page="sms_sim"]) *{box-sizing:border-box}
:where(html[data-page="sms_sim"]) body{margin:0;background:var(--bg);font-family:var(--font-ui);color:#17231f}
:where(html[data-page="sms_sim"]) a{text-decoration:none;color:inherit}
:where(html[data-page="sms_sim"]) button,:where(html[data-page="sms_sim"]) input,:where(html[data-page="sms_sim"]) select,:where(html[data-page="sms_sim"]) textarea{font:inherit}
:where(html[data-page="sms_sim"]) main{margin-right:var(--sidebar);padding:24px}
:where(html[data-page="sms_sim"]) .head,:where(html[data-page="sms_sim"]) .card{background:#fff;border:1px solid var(--line);border-radius:16px}
:where(html[data-page="sms_sim"]) .head{padding:18px 20px;margin-bottom:12px;display:flex;justify-content:space-between;gap:10px;align-items:center}
:where(html[data-page="sms_sim"]) .head h1{font-size:19px;margin:0}
:where(html[data-page="sms_sim"]) .head p,:where(html[data-page="sms_sim"]) .mut{font-size:12px;color:var(--mut);margin:4px 0}
:where(html[data-page="sms_sim"]) .btn{border:0;border-radius:9px;padding:9px 12px;font-size:12px;font-weight:800;cursor:pointer;display:inline-flex;gap:5px;align-items:center}
:where(html[data-page="sms_sim"]) .green{background:var(--g);color:#fff}
:where(html[data-page="sms_sim"]) .light{background:#f1f5f9;color:#334155}
:where(html[data-page="sms_sim"]) .red{background:#fee2e2;color:#991b1b}
:where(html[data-page="sms_sim"]) .tabs{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:12px}
:where(html[data-page="sms_sim"]) .tab{background:#fff;border:1px solid var(--line);padding:8px 11px;border-radius:9px;font-size:12px;font-weight:800}
:where(html[data-page="sms_sim"]) .tab.active{background:#111;color:#fff}
:where(html[data-page="sms_sim"]) .card{padding:15px;margin-bottom:12px}
:where(html[data-page="sms_sim"]) .grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
:where(html[data-page="sms_sim"]) .stat{padding:12px;border:1px solid var(--line);border-radius:12px}
:where(html[data-page="sms_sim"]) .stat span{font-size:12px;color:#94a3b8}
:where(html[data-page="sms_sim"]) .stat strong{display:block;font-size:14px;margin-top:3px}
:where(html[data-page="sms_sim"]) .control{width:100%;border:1px solid #dce5e0;border-radius:9px;padding:9px;background:#fff;font-size:12px}
:where(html[data-page="sms_sim"]) .formgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
:where(html[data-page="sms_sim"]) .full{grid-column:1/-1}
:where(html[data-page="sms_sim"]) .alert{padding:10px;border-radius:10px;margin-bottom:10px;font-size:12px}
:where(html[data-page="sms_sim"]) .ok{background:#f0fdf4;color:#166534}
:where(html[data-page="sms_sim"]) .err{background:#fef2f2;color:#991b1b}
:where(html[data-page="sms_sim"]) .table{overflow:auto}
:where(html[data-page="sms_sim"]) table{width:100%;border-collapse:collapse;min-width:800px}
:where(html[data-page="sms_sim"]) th,:where(html[data-page="sms_sim"]) td{padding:9px;border-bottom:1px solid #edf2ef;font-size:8.5px;text-align:right;vertical-align:top}
:where(html[data-page="sms_sim"]) th{color:#64748b;background:#fafcfb}
:where(html[data-page="sms_sim"]) .pill{padding:4px 7px;border-radius:999px;background:#f1f5f9;font-size:7px;font-weight:800}
:where(html[data-page="sms_sim"]) .actions{display:flex;gap:5px;flex-wrap:wrap}
:where(html[data-page="sms_sim"]) .info{background:#f8faf9;border:1px dashed #cbd8d1;padding:12px;border-radius:11px;font-size:12px;line-height:1.9}
:where(html[data-page="sms_sim"]) .two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media(max-width:992px){:where(html[data-page="sms_sim"]) main{margin-right:0;padding:72px 12px 18px}
:where(html[data-page="sms_sim"]) .grid,:where(html[data-page="sms_sim"]) .formgrid,:where(html[data-page="sms_sim"]) .two{grid-template-columns:1fr}
:where(html[data-page="sms_sim"]) .head{flex-direction:column;align-items:flex-start}}

/* sub_users */
:where(html[data-page="sub_users"]){--g:#03AF46;--gd:#05642F;--d:#0F2C25;--r:#DA0C11;--bg:#F6F8F7;--line:#e3ebe7;--mut:#64748b;--sidebar:260px}
:where(html[data-page="sub_users"]) *{box-sizing:border-box}
:where(html[data-page="sub_users"]) body{margin:0;background:var(--bg);color:#17231f;font-family:var(--font-ui)}
:where(html[data-page="sub_users"]) a{text-decoration:none;color:inherit}
:where(html[data-page="sub_users"]) button,:where(html[data-page="sub_users"]) input,:where(html[data-page="sub_users"]) select{font:inherit}
:where(html[data-page="sub_users"]) main{margin-right:var(--sidebar);width:calc(100% - var(--sidebar));padding:25px}
:where(html[data-page="sub_users"]) .head,:where(html[data-page="sub_users"]) .panel,:where(html[data-page="sub_users"]) .stat{background:#fff;border:1px solid var(--line);border-radius:16px}
:where(html[data-page="sub_users"]) .head{padding:18px 20px;margin-bottom:12px;display:flex;justify-content:space-between;align-items:center;gap:10px}
:where(html[data-page="sub_users"]) .head h1{font-size:19px;margin:0;color:var(--d)}
:where(html[data-page="sub_users"]) .head p{font-size:12px;color:var(--mut);margin:3px 0 0}
:where(html[data-page="sub_users"]) .btn{border:0;border-radius:10px;padding:10px 13px;font-size:12px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px}
:where(html[data-page="sub_users"]) .green{background:var(--g);color:#fff}
:where(html[data-page="sub_users"]) .light{background:#f1f5f9;color:#334155}
:where(html[data-page="sub_users"]) .red{background:#fff1f2;color:#b91c1c}
:where(html[data-page="sub_users"]) .btn:disabled{opacity:.45;cursor:not-allowed}
:where(html[data-page="sub_users"]) .alert{padding:11px 13px;border:1px solid;border-radius:11px;margin-bottom:11px;font-size:12px}
:where(html[data-page="sub_users"]) .ok{background:#f0fdf4;border-color:#bbf7d0;color:#166534}
:where(html[data-page="sub_users"]) .err{background:#fef2f2;border-color:#fecaca;color:#991b1b}
:where(html[data-page="sub_users"]) .stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px}
:where(html[data-page="sub_users"]) .stat{padding:12px}
:where(html[data-page="sub_users"]) .stat span{font-size:12px;color:#94a3b8}
:where(html[data-page="sub_users"]) .stat strong{display:block;font-size:14px;color:var(--d);margin-top:3px}
:where(html[data-page="sub_users"]) .stat.good strong{color:#166534}
:where(html[data-page="sub_users"]) .panel{overflow:hidden}
:where(html[data-page="sub_users"]) .title{padding:13px 15px;border-bottom:1px solid #edf2ef;display:flex;justify-content:space-between;align-items:center}
:where(html[data-page="sub_users"]) .title h2{font-size:12px;margin:0;color:var(--d)}
:where(html[data-page="sub_users"]) .title small{font-size:12px;color:#94a3b8}
:where(html[data-page="sub_users"]) .table{overflow:auto}
:where(html[data-page="sub_users"]) table{width:100%;border-collapse:collapse;min-width:900px}
:where(html[data-page="sub_users"]) th,:where(html[data-page="sub_users"]) td{text-align:right;padding:10px;border-bottom:1px solid #eef2f0;font-size:8.8px;white-space:nowrap}
:where(html[data-page="sub_users"]) th{background:#fafcfb;color:#64748b;font-size:12px}
:where(html[data-page="sub_users"]) .name{font-weight:800;font-size:9.5px}
:where(html[data-page="sub_users"]) .sub{font-size:7.5px;color:#94a3b8}
:where(html[data-page="sub_users"]) .badge{display:inline-block;padding:3px 7px;border-radius:99px;font-size:7px;font-weight:800}
:where(html[data-page="sub_users"]) .active{background:#dcfce7;color:#166534}
:where(html[data-page="sub_users"]) .disabled{background:#fee2e2;color:#991b1b}
:where(html[data-page="sub_users"]) .perms{display:flex;flex-wrap:wrap;gap:3px;max-width:330px}
:where(html[data-page="sub_users"]) .perm{background:#f1f5f9;border-radius:99px;padding:2px 5px;font-size:6.8px;color:#475569}
:where(html[data-page="sub_users"]) .actions{display:flex;gap:4px}
:where(html[data-page="sub_users"]) .icon{width:30px;height:30px;border:0;border-radius:8px;background:#f1f5f9;display:grid;place-items:center;cursor:pointer;color:#475569}
:where(html[data-page="sub_users"]) .icon.warn{background:#fff7ed;color:#9a3412}
:where(html[data-page="sub_users"]) .icon.red{background:#fff1f2;color:#b91c1c}
:where(html[data-page="sub_users"]) .empty{text-align:center;padding:40px;color:#94a3b8;font-size:12px}
:where(html[data-page="sub_users"]) .empty i{display:block;font-size:28px;margin-bottom:7px}
:where(html[data-page="sub_users"]) .modal-bg{position:fixed;inset:0;background:rgba(0,0,0,.58);z-index:12000;display:none;align-items:center;justify-content:center;padding:15px}
:where(html[data-page="sub_users"]) .modal-bg.show{display:flex}
:where(html[data-page="sub_users"]) .modal{background:#fff;width:min(720px,100%);max-height:92vh;overflow:auto;border-radius:18px}
:where(html[data-page="sub_users"]) .modal-head{padding:15px 17px;border-bottom:1px solid #edf2ef;display:flex;justify-content:space-between;align-items:center}
:where(html[data-page="sub_users"]) .modal-head h2{font-size:14px;margin:0}
:where(html[data-page="sub_users"]) .close{width:31px;height:31px;border:0;border-radius:8px;background:#f1f5f9;cursor:pointer}
:where(html[data-page="sub_users"]) .body{padding:16px}
:where(html[data-page="sub_users"]) .grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}
:where(html[data-page="sub_users"]) .field label{display:block;font-size:8.5px;font-weight:800;color:#475569;margin-bottom:4px}
:where(html[data-page="sub_users"]) .control{width:100%;height:39px;border:1px solid #dce5e0;border-radius:9px;padding:0 9px;outline:none;font-size:9.5px}
:where(html[data-page="sub_users"]) .control:focus{border-color:var(--g)}
:where(html[data-page="sub_users"]) .permission-title{font-size:12px;font-weight:800;margin:15px 0 7px}
:where(html[data-page="sub_users"]) .permission-tools{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}
:where(html[data-page="sub_users"]) .preset{border:1px solid #dce5e0;background:#fff;border-radius:8px;padding:7px 10px;font-size:12px;font-weight:800;cursor:pointer}
:where(html[data-page="sub_users"]) .preset:hover{border-color:#86efac;background:#f0fdf4}
:where(html[data-page="sub_users"]) .perm-help{font-size:7.8px;color:#64748b;line-height:1.8;margin-bottom:8px;background:#f8faf9;border:1px solid #e6ede9;border-radius:9px;padding:8px}
:where(html[data-page="sub_users"]) .permission-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
:where(html[data-page="sub_users"]) .check{border:1px solid #e2e9e5;border-radius:9px;padding:8px;display:flex;align-items:center;gap:6px;font-size:12px;cursor:pointer}
:where(html[data-page="sub_users"]) .check:has(input:checked){border-color:#a7f3d0;background:#f0fdf4;color:#166534}
:where(html[data-page="sub_users"]) .check input{accent-color:var(--g)}
:where(html[data-page="sub_users"]) .modal-actions{display:flex;gap:7px;border-top:1px solid #edf2ef;padding-top:13px;margin-top:14px}
:where(html[data-page="sub_users"]) .modal-actions .green{flex:1}
:where(html[data-page="sub_users"]) .limit-note{background:#f8faf9;border:1px solid #e6ede9;border-radius:10px;padding:9px;font-size:12px;color:#64748b;margin-bottom:10px}
@media(max-width:1100px){:where(html[data-page="sub_users"]) .stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:992px){:where(html[data-page="sub_users"]) main{margin-right:0;width:100%;padding:72px 13px 18px}}
@media(max-width:650px){:where(html[data-page="sub_users"]) .head{align-items:flex-start;flex-direction:column}
:where(html[data-page="sub_users"]) .head .btn{width:100%}
:where(html[data-page="sub_users"]) .grid,:where(html[data-page="sub_users"]) .permission-grid{grid-template-columns:1fr}
:where(html[data-page="sub_users"]) .stats{gap:6px}
:where(html[data-page="sub_users"]) .modal-actions{flex-direction:column-reverse}}

/* subscription */
:where(html[data-page="subscription"]){--g:#03AF46;--gd:#05642F;--d:#0F2C25;--r:#DA0C11;--bg:#F6F8F7;--line:#e3ebe7;--mut:#64748b;--sidebar:260px}
:where(html[data-page="subscription"]) *{box-sizing:border-box}
:where(html[data-page="subscription"]) body{margin:0;background:var(--bg);color:#17231f;font-family:var(--font-ui)}
:where(html[data-page="subscription"]) a{text-decoration:none;color:inherit}
:where(html[data-page="subscription"]) main{margin-right:var(--sidebar);width:calc(100% - var(--sidebar));padding:25px}
:where(html[data-page="subscription"]) .head,:where(html[data-page="subscription"]) .panel,:where(html[data-page="subscription"]) .stat,:where(html[data-page="subscription"]) .plan,:where(html[data-page="subscription"]) .checkout{background:#fff;border:1px solid var(--line);border-radius:16px}
:where(html[data-page="subscription"]) .head{padding:18px 20px;margin-bottom:12px;display:flex;justify-content:space-between;align-items:center;gap:10px}
:where(html[data-page="subscription"]) .head h1{font-size:19px;margin:0;color:var(--d)}
:where(html[data-page="subscription"]) .head p{font-size:12px;color:var(--mut);margin:3px 0 0}
:where(html[data-page="subscription"]) .btn{border:0;border-radius:10px;padding:10px 13px;font-size:12px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:6px;background:var(--g);color:#fff;cursor:pointer}
:where(html[data-page="subscription"]) .alert{padding:11px 13px;border-radius:11px;font-size:12px;margin-bottom:12px}
:where(html[data-page="subscription"]) .ok{background:#ecfdf3;color:#166534;border:1px solid #bbf7d0}
:where(html[data-page="subscription"]) .err{background:#fff1f2;color:#9f1239;border:1px solid #fecdd3}
:where(html[data-page="subscription"]) .stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px}
:where(html[data-page="subscription"]) .stat{padding:12px}
:where(html[data-page="subscription"]) .stat span{font-size:12px;color:#94a3b8}
:where(html[data-page="subscription"]) .stat strong{display:block;font-size:14px;color:var(--d);margin-top:3px}
:where(html[data-page="subscription"]) .stat.green strong{color:#166534}
:where(html[data-page="subscription"]) .stat.red strong{color:var(--r)}
:where(html[data-page="subscription"]) .current{background:linear-gradient(135deg,#0F2C25,#05642F);color:#fff;border-radius:16px;padding:18px;margin-bottom:12px;display:grid;grid-template-columns:1fr auto;gap:15px;align-items:center}
:where(html[data-page="subscription"]) .current span{font-size:12px;opacity:.75}
:where(html[data-page="subscription"]) .current h2{font-size:19px;margin:3px 0}
:where(html[data-page="subscription"]) .current p{font-size:12px;margin:0;opacity:.85}
:where(html[data-page="subscription"]) .state{padding:7px 11px;border-radius:99px;background:rgba(255,255,255,.15);font-size:12px;font-weight:800}
:where(html[data-page="subscription"]) .tabs{display:flex;gap:5px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:5px;margin-bottom:12px;overflow:auto}
:where(html[data-page="subscription"]) .tab{padding:8px 11px;border-radius:9px;font-size:8.5px;font-weight:800;white-space:nowrap;color:#64748b}
:where(html[data-page="subscription"]) .tab.on{background:#ecfdf3;color:#166534}
:where(html[data-page="subscription"]) .panel{overflow:hidden}
:where(html[data-page="subscription"]) .title{padding:13px 15px;border-bottom:1px solid #edf2ef;display:flex;justify-content:space-between;align-items:center}
:where(html[data-page="subscription"]) .title h2{font-size:12px;margin:0;color:var(--d)}
:where(html[data-page="subscription"]) .title small{font-size:12px;color:#94a3b8}
:where(html[data-page="subscription"]) .body{padding:13px}
:where(html[data-page="subscription"]) .plans{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
:where(html[data-page="subscription"]) .plan{padding:15px;position:relative}
:where(html[data-page="subscription"]) .plan.current-plan{border:2px solid var(--g)}
:where(html[data-page="subscription"]) .plan .mark{position:absolute;top:9px;left:9px;background:#dcfce7;color:#166534;border-radius:99px;padding:3px 7px;font-size:7px;font-weight:800}
:where(html[data-page="subscription"]) .plan h3{font-size:13px;margin:0;color:var(--d)}
:where(html[data-page="subscription"]) .price{font-size:21px;font-weight:800;color:var(--g);margin:7px 0}
:where(html[data-page="subscription"]) .price small{font-size:12px;color:#94a3b8}
:where(html[data-page="subscription"]) .features{display:grid;gap:6px;font-size:12px;color:#475569}
:where(html[data-page="subscription"]) .features i{color:var(--g);width:15px}
:where(html[data-page="subscription"]) .plan .btn{width:100%;margin-top:12px;background:#f1f5f9;color:#334155}
:where(html[data-page="subscription"]) .plan.current-plan .btn{background:var(--g);color:#fff}
:where(html[data-page="subscription"]) .usage{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
:where(html[data-page="subscription"]) .use{background:#f8faf9;border-radius:10px;padding:10px}
:where(html[data-page="subscription"]) .use-top{display:flex;justify-content:space-between;font-size:12px;margin-bottom:6px}
:where(html[data-page="subscription"]) .bar{height:6px;background:#e8eeeb;border-radius:99px;overflow:hidden}
:where(html[data-page="subscription"]) .bar span{display:block;height:100%;background:var(--g);border-radius:99px}
:where(html[data-page="subscription"]) .checkout{margin-top:12px;overflow:hidden}
:where(html[data-page="subscription"]) .checkout-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
:where(html[data-page="subscription"]) .field label{display:block;font-size:12px;font-weight:800;margin-bottom:5px}
:where(html[data-page="subscription"]) .field input,:where(html[data-page="subscription"]) .field select{width:100%;border:1px solid #dce5e1;border-radius:9px;padding:10px;font-family:var(--font-ui);font-size:12px;background:#fff}
:where(html[data-page="subscription"]) .paybox{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:12px;padding:12px;margin-bottom:10px;font-size:12px;line-height:1.9}
:where(html[data-page="subscription"]) .paybox strong{font-size:12px;color:#166534}
:where(html[data-page="subscription"]) .summary{background:#f8faf9;border-radius:11px;padding:11px;margin:10px 0;font-size:12px}
:where(html[data-page="subscription"]) .summary b{color:#166534}
:where(html[data-page="subscription"]) .year{background:#fffbeb;border:1px solid #fde68a;border-radius:9px;padding:8px;font-size:12px;color:#92400e;margin-top:6px}
:where(html[data-page="subscription"]) .table{overflow:auto}
:where(html[data-page="subscription"]) table{width:100%;border-collapse:collapse;min-width:850px}
:where(html[data-page="subscription"]) th,:where(html[data-page="subscription"]) td{text-align:right;padding:10px;border-bottom:1px solid #eef2f0;font-size:8.7px;white-space:nowrap}
:where(html[data-page="subscription"]) th{background:#fafcfb;color:#64748b;font-size:12px}
:where(html[data-page="subscription"]) .amount{font-weight:800;color:#166534}
:where(html[data-page="subscription"]) .badge{display:inline-block;padding:3px 7px;border-radius:99px;font-size:7px;font-weight:800}
:where(html[data-page="subscription"]) .good{background:#dcfce7;color:#166534}
:where(html[data-page="subscription"]) .pending{background:#fff7ed;color:#9a3412}
:where(html[data-page="subscription"]) .bad{background:#fee2e2;color:#991b1b}
:where(html[data-page="subscription"]) .expired{background:#f1f5f9;color:#64748b}
:where(html[data-page="subscription"]) .neutral{background:#eef2ff;color:#4338ca}
:where(html[data-page="subscription"]) .empty{text-align:center;padding:38px;color:#94a3b8;font-size:12px}
:where(html[data-page="subscription"]) .empty i{display:block;font-size:28px;margin-bottom:7px}
:where(html[data-page="subscription"]) .note{background:#eff8ff;border:1px solid #bfdbfe;color:#1e40af;border-radius:10px;padding:10px;font-size:12px;line-height:1.8;margin-top:10px}
:where(html[data-page="subscription"]) .modal-back{position:fixed;inset:0;background:rgba(15,44,37,.58);z-index:9999;display:none;align-items:center;justify-content:center;padding:15px}
:where(html[data-page="subscription"]) .modal-back.open{display:flex}
:where(html[data-page="subscription"]) .modal-card{background:#fff;width:min(650px,100%);max-height:92vh;overflow:auto;border-radius:17px;border:1px solid var(--line);box-shadow:0 20px 60px rgba(0,0,0,.18)}
:where(html[data-page="subscription"]) .modal-head{padding:14px 16px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}
:where(html[data-page="subscription"]) .modal-head h3{margin:0;font-size:13px}
:where(html[data-page="subscription"]) .close-modal{border:0;background:#f1f5f9;border-radius:8px;width:32px;height:32px;cursor:pointer}
:where(html[data-page="subscription"]) .modal-body{padding:15px}
:where(html[data-page="subscription"]) .calc-extra{background:#f8faf9;border-radius:10px;padding:11px;font-size:12px;margin:10px 0}
:where(html[data-page="subscription"]) .calc-extra strong{color:#166534;font-size:13px}
@media(max-width:1100px){:where(html[data-page="subscription"]) .plans{grid-template-columns:1fr}
:where(html[data-page="subscription"]) .stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:992px){:where(html[data-page="subscription"]) main{margin-right:0;width:100%;padding:72px 13px 18px}}
@media(max-width:650px){:where(html[data-page="subscription"]) .head,:where(html[data-page="subscription"]) .current{align-items:flex-start;grid-template-columns:1fr;flex-direction:column}
:where(html[data-page="subscription"]) .head .btn{width:100%}
:where(html[data-page="subscription"]) .usage,:where(html[data-page="subscription"]) .checkout-grid{grid-template-columns:1fr}
:where(html[data-page="subscription"]) .stats{gap:6px}}

/* Public legal: privacy */
:where(html[data-page="privacy"]){--r:#E30613;--d:#111827;--m:#667085;--l:#e5e7eb;--w:#fff}
:where(html[data-page="privacy"]) *{box-sizing:border-box}
:where(html[data-page="privacy"]){scroll-behavior:smooth;scroll-padding-top:95px}
:where(html[data-page="privacy"]) body{margin:0;background:#f5f6f8;color:#1f2937;font-family:var(--font-ui);line-height:2}
:where(html[data-page="privacy"]) .top{position:sticky;top:0;z-index:9;background:#fff;border-bottom:1px solid var(--l)}
:where(html[data-page="privacy"]) .topin{max-width:1380px;margin:auto;padding:10px 20px;display:flex;align-items:center;gap:12px}
:where(html[data-page="privacy"]) .logos{display:flex;gap:7px}
:where(html[data-page="privacy"]) .logos img{width:46px;height:46px;object-fit:contain;border:1px solid #eee;border-radius:11px;padding:3px}
:where(html[data-page="privacy"]) .brand b{display:block;font-size:14px}
:where(html[data-page="privacy"]) .brand span{font-size:12px;color:var(--m)}
:where(html[data-page="privacy"]) .back{margin-right:auto;background:var(--d);color:#fff;text-decoration:none;padding:8px 12px;border-radius:10px;font-weight:bold;font-size:12px}
:where(html[data-page="privacy"]) .hero{background:linear-gradient(135deg,#111827,#293548);color:#fff}
:where(html[data-page="privacy"]) .heroin{max-width:1380px;margin:auto;padding:36px 20px}
:where(html[data-page="privacy"]) .hero small{color:#fecaca;font-weight:bold}
:where(html[data-page="privacy"]) .hero h1{margin:5px 0;font-size:clamp(25px,4vw,40px)}
:where(html[data-page="privacy"]) .hero p{max-width:950px;color:#e5e7eb}
:where(html[data-page="privacy"]) .layout{max-width:1380px;margin:22px auto 60px;padding:0 20px;display:grid;grid-template-columns:290px 1fr;gap:22px}
:where(html[data-page="privacy"]) .side{position:sticky;top:85px;background:#fff;border:1px solid var(--l);border-radius:16px;padding:14px;max-height:calc(100vh - 105px);overflow:auto}
:where(html[data-page="privacy"]) .side a{display:block;text-decoration:none;color:#475467;padding:8px 10px;border-radius:9px;font-size:13px;border-right:3px solid transparent}
:where(html[data-page="privacy"]) .side a.active,:where(html[data-page="privacy"]) .side a:hover{background:#fff1f2;color:#b8000a;border-color:var(--r)}
:where(html[data-page="privacy"]) .sec{background:#fff;border:1px solid var(--l);border-radius:17px;padding:clamp(18px,4vw,36px);margin-bottom:18px;scroll-margin-top:100px}
:where(html[data-page="privacy"]) .sec h2{margin-top:0;border-bottom:2px solid #f1f2f4;padding-bottom:12px}
:where(html[data-page="privacy"]) .art{scroll-margin-top:105px;margin:0 0 22px}
:where(html[data-page="privacy"]) .art h3{font-size:17px;margin:12px 0 5px;color:#111827}
:where(html[data-page="privacy"]) .art p{margin:0 0 9px;color:#344054}
:where(html[data-page="privacy"]) .notice{background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;padding:13px;margin-bottom:16px;font-size:13px}
:where(html[data-page="privacy"]) .mobile{display:none;margin:14px 12px}
:where(html[data-page="privacy"]) .mobile select{width:100%;padding:11px;border:1px solid var(--l);border-radius:10px}
:where(html[data-page="privacy"]) .foot{background:#0f172a;color:#cbd5e1;text-align:center;padding:25px 15px;font-size:12px}
:where(html[data-page="privacy"]) .up{position:fixed;left:15px;bottom:15px;width:42px;height:42px;border:0;border-radius:50%;background:var(--r);color:#fff;font-size:20px;display:none}
@media(max-width:850px){:where(html[data-page="privacy"]) .layout{grid-template-columns:1fr}
:where(html[data-page="privacy"]) .side{display:none}
:where(html[data-page="privacy"]) .mobile{display:block}
:where(html[data-page="privacy"]) .brand span{display:none}}
@media(max-width:560px){:where(html[data-page="privacy"]) .topin{padding:8px 10px}
:where(html[data-page="privacy"]) .logos img{width:38px;height:38px}
:where(html[data-page="privacy"]) .brand b{font-size:12px}
:where(html[data-page="privacy"]) .back{font-size:12px;padding:7px 8px}
:where(html[data-page="privacy"]) .layout{padding:0 10px}
:where(html[data-page="privacy"]) .heroin{padding:26px 13px}
:where(html[data-page="privacy"]) .sec{padding:17px 14px}
:where(html[data-page="privacy"]) .art p{font-size:14px}}

/* Public legal: service-agreement */
:where(html[data-page="service-agreement"]){--r:#E30613;--d:#111827;--m:#667085;--l:#e5e7eb;--w:#fff}
:where(html[data-page="service-agreement"]) *{box-sizing:border-box}
:where(html[data-page="service-agreement"]){scroll-behavior:smooth;scroll-padding-top:95px}
:where(html[data-page="service-agreement"]) body{margin:0;background:#f5f6f8;color:#1f2937;font-family:var(--font-ui);line-height:2}
:where(html[data-page="service-agreement"]) .top{position:sticky;top:0;z-index:9;background:#fff;border-bottom:1px solid var(--l)}
:where(html[data-page="service-agreement"]) .topin{max-width:1380px;margin:auto;padding:10px 20px;display:flex;align-items:center;gap:12px}
:where(html[data-page="service-agreement"]) .logos{display:flex;gap:7px}
:where(html[data-page="service-agreement"]) .logos img{width:46px;height:46px;object-fit:contain;border:1px solid #eee;border-radius:11px;padding:3px}
:where(html[data-page="service-agreement"]) .brand b{display:block;font-size:14px}
:where(html[data-page="service-agreement"]) .brand span{font-size:12px;color:var(--m)}
:where(html[data-page="service-agreement"]) .back{margin-right:auto;background:var(--d);color:#fff;text-decoration:none;padding:8px 12px;border-radius:10px;font-weight:bold;font-size:12px}
:where(html[data-page="service-agreement"]) .hero{background:linear-gradient(135deg,#111827,#293548);color:#fff}
:where(html[data-page="service-agreement"]) .heroin{max-width:1380px;margin:auto;padding:36px 20px}
:where(html[data-page="service-agreement"]) .hero small{color:#fecaca;font-weight:bold}
:where(html[data-page="service-agreement"]) .hero h1{margin:5px 0;font-size:clamp(25px,4vw,40px)}
:where(html[data-page="service-agreement"]) .hero p{max-width:950px;color:#e5e7eb}
:where(html[data-page="service-agreement"]) .layout{max-width:1380px;margin:22px auto 60px;padding:0 20px;display:grid;grid-template-columns:290px 1fr;gap:22px}
:where(html[data-page="service-agreement"]) .side{position:sticky;top:85px;background:#fff;border:1px solid var(--l);border-radius:16px;padding:14px;max-height:calc(100vh - 105px);overflow:auto}
:where(html[data-page="service-agreement"]) .side a{display:block;text-decoration:none;color:#475467;padding:8px 10px;border-radius:9px;font-size:13px;border-right:3px solid transparent}
:where(html[data-page="service-agreement"]) .side a.active,:where(html[data-page="service-agreement"]) .side a:hover{background:#fff1f2;color:#b8000a;border-color:var(--r)}
:where(html[data-page="service-agreement"]) .sec{background:#fff;border:1px solid var(--l);border-radius:17px;padding:clamp(18px,4vw,36px);margin-bottom:18px;scroll-margin-top:100px}
:where(html[data-page="service-agreement"]) .sec h2{margin-top:0;border-bottom:2px solid #f1f2f4;padding-bottom:12px}
:where(html[data-page="service-agreement"]) .art{scroll-margin-top:105px;margin:0 0 22px}
:where(html[data-page="service-agreement"]) .art h3{font-size:17px;margin:12px 0 5px;color:#111827}
:where(html[data-page="service-agreement"]) .art p{margin:0 0 9px;color:#344054}
:where(html[data-page="service-agreement"]) .notice{background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;padding:13px;margin-bottom:16px;font-size:13px}
:where(html[data-page="service-agreement"]) .mobile{display:none;margin:14px 12px}
:where(html[data-page="service-agreement"]) .mobile select{width:100%;padding:11px;border:1px solid var(--l);border-radius:10px}
:where(html[data-page="service-agreement"]) .foot{background:#0f172a;color:#cbd5e1;text-align:center;padding:25px 15px;font-size:12px}
:where(html[data-page="service-agreement"]) .up{position:fixed;left:15px;bottom:15px;width:42px;height:42px;border:0;border-radius:50%;background:var(--r);color:#fff;font-size:20px;display:none}
@media(max-width:850px){:where(html[data-page="service-agreement"]) .layout{grid-template-columns:1fr}
:where(html[data-page="service-agreement"]) .side{display:none}
:where(html[data-page="service-agreement"]) .mobile{display:block}
:where(html[data-page="service-agreement"]) .brand span{display:none}}
@media(max-width:560px){:where(html[data-page="service-agreement"]) .topin{padding:8px 10px}
:where(html[data-page="service-agreement"]) .logos img{width:38px;height:38px}
:where(html[data-page="service-agreement"]) .brand b{font-size:12px}
:where(html[data-page="service-agreement"]) .back{font-size:12px;padding:7px 8px}
:where(html[data-page="service-agreement"]) .layout{padding:0 10px}
:where(html[data-page="service-agreement"]) .heroin{padding:26px 13px}
:where(html[data-page="service-agreement"]) .sec{padding:17px 14px}
:where(html[data-page="service-agreement"]) .art p{font-size:14px}}

/* Public legal: terms */
:where(html[data-page="terms"]){--r:#E30613;--d:#111827;--m:#667085;--l:#e5e7eb;--w:#fff}
:where(html[data-page="terms"]) *{box-sizing:border-box}
:where(html[data-page="terms"]){scroll-behavior:smooth;scroll-padding-top:95px}
:where(html[data-page="terms"]) body{margin:0;background:#f5f6f8;color:#1f2937;font-family:var(--font-ui);line-height:2}
:where(html[data-page="terms"]) .top{position:sticky;top:0;z-index:9;background:#fff;border-bottom:1px solid var(--l)}
:where(html[data-page="terms"]) .topin{max-width:1380px;margin:auto;padding:10px 20px;display:flex;align-items:center;gap:12px}
:where(html[data-page="terms"]) .logos{display:flex;gap:7px}
:where(html[data-page="terms"]) .logos img{width:46px;height:46px;object-fit:contain;border:1px solid #eee;border-radius:11px;padding:3px}
:where(html[data-page="terms"]) .brand b{display:block;font-size:14px}
:where(html[data-page="terms"]) .brand span{font-size:12px;color:var(--m)}
:where(html[data-page="terms"]) .back{margin-right:auto;background:var(--d);color:#fff;text-decoration:none;padding:8px 12px;border-radius:10px;font-weight:bold;font-size:12px}
:where(html[data-page="terms"]) .hero{background:linear-gradient(135deg,#111827,#293548);color:#fff}
:where(html[data-page="terms"]) .heroin{max-width:1380px;margin:auto;padding:36px 20px}
:where(html[data-page="terms"]) .hero small{color:#fecaca;font-weight:bold}
:where(html[data-page="terms"]) .hero h1{margin:5px 0;font-size:clamp(25px,4vw,40px)}
:where(html[data-page="terms"]) .hero p{max-width:950px;color:#e5e7eb}
:where(html[data-page="terms"]) .layout{max-width:1380px;margin:22px auto 60px;padding:0 20px;display:grid;grid-template-columns:290px 1fr;gap:22px}
:where(html[data-page="terms"]) .side{position:sticky;top:85px;background:#fff;border:1px solid var(--l);border-radius:16px;padding:14px;max-height:calc(100vh - 105px);overflow:auto}
:where(html[data-page="terms"]) .side a{display:block;text-decoration:none;color:#475467;padding:8px 10px;border-radius:9px;font-size:13px;border-right:3px solid transparent}
:where(html[data-page="terms"]) .side a.active,:where(html[data-page="terms"]) .side a:hover{background:#fff1f2;color:#b8000a;border-color:var(--r)}
:where(html[data-page="terms"]) .sec{background:#fff;border:1px solid var(--l);border-radius:17px;padding:clamp(18px,4vw,36px);margin-bottom:18px;scroll-margin-top:100px}
:where(html[data-page="terms"]) .sec h2{margin-top:0;border-bottom:2px solid #f1f2f4;padding-bottom:12px}
:where(html[data-page="terms"]) .art{scroll-margin-top:105px;margin:0 0 22px}
:where(html[data-page="terms"]) .art h3{font-size:17px;margin:12px 0 5px;color:#111827}
:where(html[data-page="terms"]) .art p{margin:0 0 9px;color:#344054}
:where(html[data-page="terms"]) .notice{background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;padding:13px;margin-bottom:16px;font-size:13px}
:where(html[data-page="terms"]) .mobile{display:none;margin:14px 12px}
:where(html[data-page="terms"]) .mobile select{width:100%;padding:11px;border:1px solid var(--l);border-radius:10px}
:where(html[data-page="terms"]) .foot{background:#0f172a;color:#cbd5e1;text-align:center;padding:25px 15px;font-size:12px}
:where(html[data-page="terms"]) .up{position:fixed;left:15px;bottom:15px;width:42px;height:42px;border:0;border-radius:50%;background:var(--r);color:#fff;font-size:20px;display:none}
@media(max-width:850px){:where(html[data-page="terms"]) .layout{grid-template-columns:1fr}
:where(html[data-page="terms"]) .side{display:none}
:where(html[data-page="terms"]) .mobile{display:block}
:where(html[data-page="terms"]) .brand span{display:none}}
@media(max-width:560px){:where(html[data-page="terms"]) .topin{padding:8px 10px}
:where(html[data-page="terms"]) .logos img{width:38px;height:38px}
:where(html[data-page="terms"]) .brand b{font-size:12px}
:where(html[data-page="terms"]) .back{font-size:12px;padding:7px 8px}
:where(html[data-page="terms"]) .layout{padding:0 10px}
:where(html[data-page="terms"]) .heroin{padding:26px 13px}
:where(html[data-page="terms"]) .sec{padding:17px 14px}
:where(html[data-page="terms"]) .art p{font-size:14px}}
/* Static markup utilities, extracted from inline styles. */
.u-015308db49{color:#166534;margin-top:12px}
.u-05d8c9eaf5{line-height:2.1}
.u-068a8ddc17{grid-column:1/-1}
.u-0d5be05fd9{font-size:10px}
.u-1169661891{margin:0}
.u-1242f90f65{background:#dcfce7;color:#166534}
.u-1444c6eaca{font-size:16px}
.u-20fb378419{padding-right:0}
.u-243ca5210f{color:#03AF46}
.u-27f2ca5ecd{color:var(--deep)}
.u-283830de2f{margin-top:8px;color:#05642F;font-weight:800}
.u-4260ebea52{padding-top:0}
.u-4353e80e05{max-width:650px;margin:40px auto}
.u-45e7ae4da6{color:var(--red)}
.u-4c629856ba{padding:10px 0}
.u-53cf909312{align-self:end}
.u-54c2afb7ba{text-align:right}
.u-55cec09fd9{margin-top:5px}
.u-56f4356299{margin-top:12px}
.u-62da0679da{flex-wrap:wrap}
.u-6586fcf770{grid-template-columns:repeat(4,minmax(0,1fr))}
.u-658d20698f{background:#fef3c7;color:#92400e}
.u-6be0d8ba2c{text-align:left}
.u-761d3addb2{margin-bottom:10px}
.u-7c07cdf8bd{width:150px}
.u-85f7e34126{text-align:center;padding:25px;color:#94a3b8;font-size:10px}
.u-8a77e5a311{margin-top:8px}
.u-8ed88b2eda{border:0;background:none;color:#b91c1c;cursor:pointer}
.u-91851974b0{font-size:9px;color:#94a3b8}
.u-97445a8d93{flex:1}
.u-9949aebc47{background:#fee2e2;color:#b91c1c}
.u-a5262242b4{color:#94a3b8;font-weight:600}
.u-a753dac283{margin-top:15px}
.u-a8970c80b6{height:17px}
.u-ab678e16db{font-size:9.5px;line-height:1.8;color:#475569}
.u-b492141497{width:min(430px,100%)}
.u-c4923330c9{width:min(95vw,900px);border:0;border-radius:16px;padding:20px}
.u-c70ea73786{width:min(440px,100%)}
.u-ce949e7e08{max-width:760px;margin:25px auto}
.u-d2c171b18b{margin-top:10px}
.u-d311dedebc{color:#166534}
.u-d44f6d7db7{margin-bottom:3px}
.u-d60550f657{margin:12px 0}
.u-d63be4b02c{font-size:8px;margin:0 5px}
.u-d6f2af6e0a{margin-top:14px}
.u-da12f2858b{margin-bottom:12px}
.u-de00808e96{font-size:15px}
.u-eb6d4d551f{max-width:430px}
.u-ec32d3a7f2{margin-top:10px;margin-bottom:0}
.u-ec78409dac{text-decoration:underline;font-weight:800}
.u-ee21e023cd{border:0;padding:0;margin:0 0 10px}
.u-ef0b7a1148{margin-bottom:0}
.u-fb2957a37e{font-size:9px}
/* Shared design system: typography, controls, spacing, and responsive layout. */
body,input,select,textarea,button{font-family:var(--font-ui)!important}
body{line-height:1.8}
button,input,select,textarea{font-size:14px}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
:where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid var(--ui-focus);outline-offset:3px}
:where(button,[role="button"],.btn){transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease}
:where(button,[type="submit"],.btn):disabled{opacity:.55;cursor:not-allowed}
:where(input,select,textarea):disabled{background:#f1f5f3;cursor:not-allowed}
:where(input,textarea)::placeholder{color:#75867d;opacity:1}
:where(img){max-width:100%}
:where(textarea){resize:vertical}
[hidden]{display:none!important}
:where(html[data-area="app"],html[data-area="admin"]) body{font-size:14px;color:var(--ui-text)}
:where(html[data-area="app"]) main{margin-right:260px;width:calc(100% - 260px);padding:28px;min-width:0}
:where(html[data-area="app"],html[data-area="admin"]) :is(.card,.panel,.stat,.box){border-radius:var(--ui-radius);border-color:var(--ui-border)}
:where(html[data-area="app"],html[data-area="admin"]) :is(.head,.pagehead,.page-head) h1{font-size:clamp(22px,2.2vw,28px);line-height:1.55;font-weight:800}
:where(html[data-area="app"],html[data-area="admin"]) :is(.btn,button[type="submit"]){min-height:42px;font-size:13px;border-radius:10px}
:where(html[data-area="app"],html[data-area="admin"]) button:not(.dx-nav-slot):not(.dx-nav-center){min-height:40px}
:where(html[data-area="app"],html[data-area="admin"]) :is(.btn,.action-btn,.icon-btn,button[type="submit"]){min-height:42px}
:where(html[data-area="app"],html[data-area="admin"]) :is(.icon-btn){min-width:42px}
:where(html[data-area="app"],html[data-area="admin"]) :is(.btn,.action-btn,.icon-btn) :is(i,svg){inline-size:1.15em;block-size:1.15em;display:inline-grid;place-items:center;flex:none}
:where(html[data-area="app"],html[data-area="admin"]) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea){min-height:42px;font-size:14px;border-radius:10px;padding:9px 12px}
:where(html[data-area="app"],html[data-area="admin"]) :is(th,td){font-size:13px;line-height:1.75;padding:12px 10px}
:where(html[data-area="app"],html[data-area="admin"]) th{font-weight:800}
:where(html[data-area="app"],html[data-area="admin"]) :is(.muted,.small,.mut,.hint){font-size:12px;line-height:1.8}
:where(html[data-page="dashboard"]) .section-title a{display:inline-flex;align-items:center;min-height:40px;padding:.25rem .55rem;border-radius:.5rem}
:where(html[data-page="ledger_template"]) [aria-label="حذف الخيار"],:where(html[data-page="ledger_template"]) .option-add-btn{min-width:40px;min-height:40px}
:where(html[data-area="admin"]) .dx-admin-main .card > a{display:inline-flex;align-items:center;min-height:40px;padding:.25rem .45rem}
:where(html[data-area="app"],html[data-area="admin"]) :is(.actions,.head,.pagehead){gap:12px}
.kashf-sidebar{font-family:var(--font-ui);background:#10251c;--kashf-sidebar-bg:#10251c;--kashf-sidebar-border:#284136}
.kashf-account-card{background:#173326;border-color:#2a4938}
.kashf-sidebar-link,.kashf-sidebar-logout{font-size:13px;min-height:43px}
.kashf-sidebar-brand small,.kashf-account-card span,.kashf-sidebar-section{font-size:11px;line-height:1.8}
.kashf-account-card strong{font-size:13px}
.kashf-sidebar-section{color:#a3b7aa}
.kashf-sidebar-menu-button{background:#10251c}
.ui-message-page{margin:0;background:#f4f7f5;min-height:100vh;display:grid;place-items:center;padding:24px;text-align:center}
.ui-message-card{max-width:580px;background:white;border:1px solid var(--ui-border);border-radius:18px;padding:32px;box-shadow:0 12px 40px #10251c0a}
.ui-message-card h1{font-size:24px;margin:0 0 12px}
.ui-message-card p{color:var(--ui-muted);margin:0 0 22px}
.ui-message-card a{display:inline-flex;padding:10px 20px;background:var(--ui-green);color:white;border-radius:10px;text-decoration:none}
@media(max-width:992px){
 :where(html[data-area="app"]) main{margin-right:0;width:100%;padding:78px 18px 24px}
 .kashf-sidebar{max-width:calc(100vw - 50px)}
 :where(html[data-area="app"]) :is(.head,.page-head){flex-wrap:wrap;gap:12px}
}
@media(max-width:560px){
 :where(html[data-area="app"]) main{padding:74px 12px 20px}
 :where(html[data-area="app"],html[data-area="admin"]) :is(.card,.panel){padding:16px}
 :where(html[data-area="app"],html[data-area="admin"]) :is(th,td){padding:10px 8px}
 .ui-message-card{padding:24px 18px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
@media print{
 .kashf-sidebar,.kashf-sidebar-menu-button,.kashf-sidebar-overlay{display:none!important}
 :where(html[data-area="app"]) main{margin:0!important;width:100%!important;padding:0!important}
 body{background:#fff!important;color:#000}
}

/* Additional layout utilities. Initial JS visibility stays in markup. */
.u-187a4ba697{display:flex;gap:7px;margin-top:13px}
.u-49cd09213e{display:flex;gap:6px}
.u-6157e89086{display:flex;gap:6px;flex-wrap:wrap}
.u-79bf2c0e09{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:12px}
.u-7e30d285d2{display:flex;align-items:center;gap:10px;}
.u-8bd7aabd8c{display:block;text-align:center;text-decoration:none}
.u-b06d711a72{position:fixed;left:16px;bottom:16px;display:flex;gap:7px}

/* Login identifier preference and accessible password visibility control. */
:where(html[data-page="login"][data-area="public"]) .login-password-field{position:relative}
:where(html[data-page="login"][data-area="public"]) .login-password-field input{padding-inline-end:52px}
:where(html[data-page="login"][data-area="public"]) .login-password-toggle{position:absolute;inset-inline-end:8px;top:50%;transform:translateY(-50%);width:40px;height:40px;border:0;background:transparent;color:var(--ui-green);cursor:pointer;display:grid;place-items:center;font-size:18px}
:where(html[data-page="login"][data-area="public"]) .login-password-toggle:focus-visible{outline:2px solid var(--ui-focus);border-radius:6px}
:where(html[data-page="login"][data-area="public"]) .login-remember{display:inline-flex;align-items:center;gap:8px;cursor:pointer;font-size:12px;margin:0}
:where(html[data-page="login"][data-area="public"]) .login-remember input{width:17px;height:17px;margin:0;accent-color:var(--ui-green)}
:where(html[data-page="login"][data-area="public"]) .flex-row{flex-wrap:wrap;gap:12px}


/* Quick unlock uses the public login form and the shared theme palette. */
:where(html[data-page="login"]) .dx-quick-dialog {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(360px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    padding: clamp(16px, 5vw, 28px);
    border: 1px solid var(--kf-line);
    border-radius: 22px;
    background: var(--kf-surface);
    color: var(--kf-text);
    box-shadow: 0 12px 60px #142a2148;
    text-align: center;
    overflow: auto;
}
.dx-quick-dialog::backdrop { background: #12271b8c; }
.dx-quick-dialog form { display: grid; gap: 12px; margin: 0; }
.dx-quick-dialog img { margin-inline: auto; object-fit: contain; }
.dx-quick-dialog h2, .dx-quick-dialog p, .dx-quick-dialog .form-group { margin: 0; }
.dx-quick-dialog .form-group label { text-align: center; }
.dx-quick-dialog .form-group input[name="pin"] {
    box-sizing: border-box;
    width: 100%;
    min-height: 54px;
    padding-inline: 16px;
    border-color: var(--kf-line);
    border-radius: 12px;
    background: var(--kf-soft);
    color: var(--kf-text);
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: .3em;
}
.dx-quick-dialog :is(.btn-submit, .dx-quick-exit) { width: 100%; min-height: 46px; }
.dx-quick-dialog .dx-quick-exit {
    border: 1px solid var(--kf-line);
    border-radius: 12px;
    background: var(--kf-surface);
    color: var(--kf-text);
    font: inherit;
    cursor: pointer;
}
.dx-quick-dialog .dx-quick-exit:hover { background: var(--kf-soft); }
.dx-quick-dialog :is(input, button):focus-visible { outline: 2px solid var(--kf-accent); outline-offset: 2px; }

:where(html[data-page="subscription"]) #subscriptionFeedback{width:min(440px,calc(100% - 32px));padding:0;background:var(--kf-surface);color:var(--kf-text);border-color:var(--kf-line)}
:where(html[data-page="subscription"]) #subscriptionFeedback::backdrop{background:rgba(15,44,37,.58)}
