/* WFX One v0.2: Original Voltify-inspired dark workspace, white-label per vendor. */
:root{--accent:#357DF5;--bg:#030817;--side:#11192b;--card:#111a2d;--panel:#20252a;--field:#121c31;--line:#233149;--text:#f7f9ff;--muted:#91a5c1;--green:#13be90;--red:#ee4262;--cyan:#00c5eb;--yellow:#ffc514;color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',Arial,sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:#8bbbff;text-decoration:none}a:hover{text-decoration:none;color:#cfe5ff}h1,h2,h3{margin:0 0 12px;font-weight:750}h1{font-size:clamp(26px,3.2vw,36px);letter-spacing:-.65px}h2{font-size:21px}h3{font-size:16px}.muted,.field>span,small{color:var(--muted)}.small,.hint{font-size:12px}.pre{white-space:pre-wrap}.green{color:var(--green)!important}.red{color:var(--red)!important}.blue{color:var(--accent)!important}.cyan{color:var(--cyan)!important}.yellow{color:var(--yellow)!important}.shell{display:grid;grid-template-columns:280px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:var(--side);border-right:1px solid #1c2941;display:flex;flex-direction:column;overflow:hidden}.sidebar-brand{padding:27px 16px 23px;min-height:125px;display:flex;align-items:flex-start;justify-content:center}.brand-display{display:flex;align-items:center;gap:12px;max-width:100%}.brand-mark{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:40px;height:40px;border-radius:11px;background:rgba(53,125,245,.13);color:var(--accent);font-size:27px;font-weight:850}.brand-mark-large{width:56px;height:56px;font-size:36px}.brand-mark img{max-height:100%;max-width:100%;object-fit:contain}.brand-name{font-size:20px;font-weight:850;color:#fff;line-height:1.12;max-width:160px;overflow-wrap:anywhere}.sidebar-brand .brand-name{font-size:21px}.side-links{flex:1;overflow-y:auto;padding:0 9px 24px;scrollbar-color:#35425a transparent}.sidehead{font-size:11px;letter-spacing:.45px;font-weight:800;color:#71849f;padding:18px 9px 10px}.side-link{color:#abc2dc;display:flex;gap:13px;align-items:center;padding:13px 19px;border-radius:6px;font-size:14px;min-height:49px;margin:2px 0}.side-link:hover{background:#1b2b49;color:#fff}.side-link.active{background:#1d52d8;color:white;font-weight:750}.nav-icon{display:inline-flex;justify-content:center;align-items:center;font-size:19px;min-width:20px}.sidebar-bottom{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:18px 15px;min-height:76px}.user-avatar{height:36px;width:36px;border-radius:100%;background:#364458;display:grid;place-items:center;font-weight:800}.sidebar-user{min-width:0;flex:1}.sidebar-user strong,.sidebar-user small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.sidebar-user small{font-size:11px;margin-top:3px;color:#88a7ff}.sidebar-bottom form{margin:0}.logout{background:transparent;border:0;color:#fb3d56;font-size:24px;padding:4px}.mobile-top{display:none}.main{min-width:0;padding:30px 34px 16px;max-width:1800px;width:100%;margin:0 auto;display:flex;flex-direction:column}.main-top{display:flex;justify-content:flex-end;align-items:center;gap:20px;margin-bottom:13px;min-height:24px;color:#9cb3d5}.top-actions{display:flex;align-items:center;gap:8px}.pagehead{margin:0 0 24px}.pagehead p{margin:1px 0 0;font-size:16px}.pagehead h1{margin:0}.powered{font-size:12px;color:#647996;text-align:center;margin-top:auto;padding:26px 4px 10px}.powered strong{color:#8aaaf0}.auth-main{min-height:100vh;padding:35px 20px;display:flex;flex-direction:column;align-items:stretch}.card{border:1px solid #222f46;border-radius:11px;background:var(--card);padding:24px;margin:0 0 22px;box-shadow:0 1px 4px #0002}.card h2{margin-bottom:18px}.card p{line-height:1.55}.auth{max-width:520px;width:100%;margin:8vh auto 20px;padding:32px}.auth form{display:grid;gap:14px;margin-top:22px}.auth .brand-display{margin-bottom:28px}.auth .brand-name{max-width:320px;font-size:24px}.auth h1{font-size:32px}.auth-main>.powered{width:100%}.settings-preview .brand-display{margin-bottom:14px}.btn,.smallbtn,.pill,.iconbtn{border:1px solid var(--accent);border-radius:8px;padding:12px 17px;background:var(--accent);color:white;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:680;font-size:14px;text-decoration:none;white-space:nowrap;line-height:1.3}.btn:hover,.smallbtn:hover{filter:brightness(1.12);color:#fff}.btn.ghost,.smallbtn.ghost{background:transparent;border-color:#30405b;color:#d7e6ff}.btn.ghost:hover,.smallbtn.ghost:hover{background:#1e2d48}.btn.full{width:100%}.smallbtn{font-size:12px;padding:8px 12px}.smallbtn.positive{color:#00db93;border-color:#235c50;background:#102922}.smallbtn.danger{color:#ff637a;background:#271820;border-color:#713042}.cyan-btn{background:#00b7d9;color:#06121c;border-color:#00b7d9}.toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0 22px}.toolbar.align-right{justify-content:flex-end;margin-top:-71px;min-height:44px;margin-bottom:30px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:23px}.stat{background:var(--card);border:1px solid #222f43;border-radius:13px;min-height:120px;padding:22px 23px;position:relative;display:flex;flex-direction:column;justify-content:center;gap:10px}.stat span{font-size:14px;color:#97b1cf}.stat strong{font-size:28px;line-height:1.2;letter-spacing:-.5px}.stat-icon{position:absolute;right:25px;top:25px;background:#142d55;color:var(--accent);padding:12px;border-radius:11px;font-size:20px}.voltify-stats .stat{min-height:145px}.period-filter{display:flex;justify-content:flex-end;margin-top:-78px;margin-bottom:30px;align-items:center;min-height:54px}.period-filter label{display:flex;align-items:center;gap:10px;color:var(--muted)}.period-filter input{width:190px;background:#e53645;color:#fff;border:0}.tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.tile{display:flex;justify-content:space-between;gap:10px;align-items:center;border:1px solid #2c3a54;border-radius:8px;background:#131d32;padding:16px 17px;font-weight:700;color:#e4eeff;min-height:68px}.tile:hover{border-color:var(--accent);background:#1b2e51}.tile span{color:var(--accent);font-size:19px}.tablewrap{max-width:100%;overflow:auto;margin:10px 0 23px}table{width:100%;border-collapse:collapse;min-width:740px}thead{background:#11192c}th,td{padding:16px 12px;border-bottom:1px solid #283246;vertical-align:middle;text-align:left}th{color:#aac4e0;font-weight:650;font-size:14px}td{font-size:14px;color:#e8eff9}td strong{font-size:14px}td small{display:block;margin-top:5px;font-size:12px}tr:hover td{background:#151e30}.no-records{text-align:center;padding:42px 15px!important;color:#91a5bc!important}.reversed{opacity:.48}.tag,.badge{display:inline-block;font-size:11px;font-weight:800;padding:5px 8px;border-radius:6px;color:#a3c4ff;background:#192b49;white-space:nowrap}.green-tag{background:#0b3430;color:#06e2a5}.red-tag{background:#301b2a;color:#fc4c68}.yellow-tag{background:#a67900;color:#0d1524}.blue-tag{background:#193978;color:#b5d0ff}.list-search{margin:7px 0 17px;width:min(100%,430px)}.pill-tabs{display:flex;flex-wrap:wrap;gap:25px;padding:12px 8px;margin-bottom:22px;border-bottom:1px solid #26344a}.pill{background:#1d2a40;border:0;padding:10px 24px;border-radius:35px;font-size:13px}.pill.active{background:var(--accent)}.tab-panel{display:none}.tab-panel.active{display:block}input,select,textarea{background:var(--field);border:1px solid #34445e;color:var(--text);border-radius:7px;padding:10px 12px;min-width:0;width:100%}input::placeholder,textarea::placeholder{color:#72839b}input:focus,select:focus,textarea:focus{outline:2px solid #416fc3;outline-offset:1px}input[readonly]{opacity:.7}input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent)}input[type=file]{padding:9px}option{background:#111d30}textarea{resize:vertical}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.field{display:flex;flex-direction:column;gap:7px;font-weight:600;margin-bottom:5px;font-size:13px}.field>span{font-size:13px;color:#8ea5be}.field select,.field input,.field textarea{font-weight:500}.field .smallbtn{align-self:flex-start}.form-wide,.form-actions{grid-column:1/-1}.form-actions{margin-top:12px}.feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(225px,1fr));gap:12px;margin:15px 0 25px}.feature{border:1px solid #2b3e60;background:#131d32;padding:13px;border-radius:9px;display:flex;align-items:center;gap:10px}.feature input{width:18px;height:18px;flex-shrink:0}.feature strong,.feature small{display:block}.feature small{font-size:11px;color:#8da8c4;margin-top:3px}.alert{background:#12332e;border:1px solid #2a695a;color:#8df4cc;padding:15px;border-radius:9px;margin-bottom:21px}.alert.error{background:#3a1722;border-color:#903446;color:#ffc5ca}.hint{margin-top:13px}.iconbtn{padding:6px 9px;font-size:15px;border:1px solid #29486f;border-radius:5px;background:#e6ebf3;color:var(--accent)}.iconbtn:hover{background:white;color:#145bba}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:18px}.section-heading h2{margin:0}.quote-grid-head,.quote-row{display:grid;grid-template-columns:.9fr 2.8fr .9fr .7fr 1.05fr .7fr 1.1fr .6fr;gap:7px;min-width:900px}.quote-grid-head{color:#9eb6d1;margin-bottom:8px;font-size:12px;font-weight:750}.quote-row{margin-bottom:9px;align-items:center}.quote-row>input,.quote-row>select{padding:9px 8px;font-size:12px}.quote-row output{display:block;text-align:right;font-weight:700}.quote-row .quote-remove{width:100%;padding:8px 5px}.quote-totals{display:grid;justify-content:end;text-align:right;margin-top:24px}.quote-totals p{margin:4px 0}.quote-totals h2{margin:12px 0;color:#e7f4ff}.wfx-modal{max-width:min(95vw,740px);width:100%;border:1px solid #40516a;background:#121b2c;color:var(--text);padding:25px;border-radius:12px;box-shadow:0 28px 100px #000a;max-height:90vh;overflow:auto}.wfx-modal::backdrop{background:#000b}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.modal-head h2{margin:0}.modal-close{border:0;background:transparent;color:#aec0d8;font-size:23px}.wfx-modal form>.btn{margin-top:16px}.amc-detail-list{display:grid;gap:5px}.amc-detail-list>div{display:flex;justify-content:space-between;gap:20px;padding:11px 3px;border-bottom:1px solid #354056}.amc-detail-list b{max-width:56%;overflow-wrap:anywhere;text-align:right}.signature-pad{display:block;width:100%;max-width:850px;height:205px;background:#fff;border:2px dashed #91a8c9;border-radius:10px;touch-action:none;cursor:crosshair}.sign-page{max-width:750px;margin:25px auto}.signature-grid{display:flex;flex-wrap:wrap;gap:30px}.signed-img{background:white;max-height:125px;max-width:250px;border-radius:7px}.check{display:flex;align-items:center;gap:10px;margin:16px 0}.check input{width:18px}.inline{display:inline;margin:0 3px}.auth-main .brand-display{justify-content:center}.auth-main .card{margin:5vh auto 20px}.auth-main footer{margin-top:auto}
@media(max-width:1220px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.shell{grid-template-columns:228px minmax(0,1fr)}.main{padding:25px 21px}.side-link{padding:12px 10px}.sidebar-brand .brand-name{font-size:17px}.brand-mark-large{width:45px;height:45px}}
@media(max-width:700px){.mobile-top{height:62px;background:var(--side);border-bottom:1px solid #29364e;display:flex;gap:15px;align-items:center;padding:0 16px;position:sticky;top:0;z-index:22}.mobile-brand{display:flex;align-items:center}.mobile-brand .brand-name{font-size:16px;max-width:240px}.mobile-brand .brand-mark{width:34px;height:34px;font-size:21px}.nav-toggle{border:0;background:none;color:white;font-size:22px}.shell{display:block}.sidebar{position:fixed;z-index:28;width:min(82vw,280px);top:62px;left:0;height:calc(100vh - 62px);transform:translateX(-110%);transition:transform .2s;box-shadow:10px 0 45px #0008}.sidebar.open{transform:translateX(0)}.sidebar-brand{min-height:93px;padding:18px}.main{padding:17px 14px}.main-top{font-size:11px;margin:0 0 12px}.pagehead{margin-bottom:20px}.pagehead h1{font-size:25px}.pagehead p{font-size:13px}.stats{gap:10px}.stat{min-height:105px;padding:14px}.stat strong{font-size:22px}.stat span{font-size:12px}.stat-icon{font-size:16px;padding:7px;right:11px;top:12px}.tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.tile{font-size:12px;padding:12px;min-height:56px}.card{padding:16px}.form-grid{grid-template-columns:1fr}.toolbar.align-right{margin:0 0 16px;justify-content:flex-start}.period-filter{margin:0 0 18px;justify-content:flex-start}.period-filter input{width:160px}.tablewrap{overflow-x:auto}.wfx-modal{padding:17px}.quote-grid-head,.quote-row{min-width:770px}.quote-row input,.quote-row select{font-size:11px}.quote-row{gap:4px}.section-heading{flex-wrap:wrap}.powered{padding-top:16px}}

/* Quotations retain their dense original-style table layout and scroll on smaller screens. */
.card:has(.quote-grid-head){overflow-x:auto}.settings-preview .brand-display{justify-content:flex-start}

.fsr-steps{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 24px}.fsr-steps span{border:1px solid #273854;border-radius:7px;padding:10px 13px;background:#121e31;color:#b7d1f2}.fsr-steps span:first-child{color:#fff;background:#1d4da0}.sign-page{max-width:780px}.sign-page>h1{margin-bottom:14px}
