@charset "UTF-8";
:root{--ink:#242a2e;--muted:#737b82;--yellow:#f3d23b;--line:#e7e9e9;--canvas:#f7f8f8;--green:#187351;--red:#bc3b34;--radius:12px}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--canvas);font:14px/1.6 "Segoe UI",Arial,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:wait;opacity:.7}img{max-width:100%}.sidebar{width:238px;position:fixed;inset:0 auto 0 0;background:#242a2e;color:#d9dddf;display:flex;flex-direction:column;z-index:40;padding:30px 18px 20px}.brand{display:flex;align-items:center;gap:12px;padding:0 4px 35px;white-space:nowrap}.brand img{width:42px;height:42px}.brand>span{font-size:20px;font-weight:750;color:var(--yellow);letter-spacing:1px}.brand b{color:white}.brand small{display:block;font-size:8px;letter-spacing:2px;color:#a9afb3}.nav-label{color:#8e989f;font-size:11px;padding:0 14px 12px}.sidebar nav{display:grid;gap:5px}.sidebar nav a{padding:11px 14px;display:flex;align-items:center;gap:13px;border-radius:8px;font-size:13px;font-weight:500}.sidebar nav a:hover{background:#333a3f;color:white}.sidebar nav a.active{background:var(--yellow);color:#242a2e;font-weight:700}.nav-icon{font-size:21px;width:24px;text-align:center;line-height:1}.shop-card{margin-top:auto;padding:18px 14px 0;border-top:1px solid #3b4145;font-size:12px}.shop-card small,.shop-card a{display:block;margin-top:4px;color:#aeb6bb;font-size:11px}.shop-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--yellow);margin-right:5px}.workspace{margin-left:238px}.topbar{height:86px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:14px;justify-content:space-between;padding:0 36px}.topbar strong{font-size:17px}.topbar small{display:block;font-size:11px;color:var(--muted);margin-top:2px}.account{display:flex;align-items:center;gap:12px;font-size:12px}.date{color:var(--muted);margin-right:15px}.avatar{width:33px;height:33px;background:#faf1c4;border:1px solid #eddf91;border-radius:50%;display:grid;place-items:center;font-weight:700;text-transform:uppercase}.text-button{border:0;background:transparent;color:var(--muted);padding:5px}.menu-button{display:none;background:none;border:0;font-size:24px}main{max-width:1500px;margin:auto;padding:30px 36px 40px}footer{max-width:1500px;margin:auto;padding:18px 36px;border-top:1px solid var(--line);font-size:10px;letter-spacing:1px;color:#7f878c}footer span{float:right;letter-spacing:0}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:24px}.page-heading h1{font-size:25px;line-height:1.4;margin:0 0 5px;font-weight:650;letter-spacing:-.6px}.page-heading p{margin:0;color:var(--muted);font-size:13px}.eyebrow{font-size:10px;letter-spacing:1.7px;color:var(--muted);text-transform:uppercase}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border:1px solid var(--line);border-radius:8px;background:white;padding:9px 17px;font-size:13px;font-weight:600;white-space:nowrap}.btn:hover{filter:brightness(.96)}.btn.primary{background:var(--yellow);border-color:var(--yellow);color:#252a2d}.btn.dark{background:#252b2f;color:white;border-color:#252b2f}.btn.small{min-height:32px;padding:5px 11px;font-size:12px}.full{width:100%}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:25px}.stat{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:20px}.stat .stat-label{font-size:12px;color:var(--muted)}.stat strong{font-size:25px;display:block;line-height:1.3;margin:14px 0 8px;letter-spacing:-.7px}.stat small{color:var(--muted);font-size:11px}.stat .stat-icon{float:right;width:30px;height:30px;display:grid;place-items:center;background:#faf6df;border-radius:8px;color:#8a7520}.actions{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:26px}.action-card{border:1px solid var(--line);background:white;border-radius:var(--radius);padding:20px;display:flex;align-items:center;gap:15px}.action-card:hover{border-color:#d0b637;background:#fffdf2}.action-card .symbol{font-size:25px;border-radius:10px;background:#faf2c9;width:45px;height:45px;display:grid;place-items:center;flex-shrink:0}.action-card b{display:block;font-size:16px}.action-card small{font-size:11px;color:var(--muted)}.action-card .arrow{margin-left:auto;font-size:18px}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:22px;overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:19px 22px;border-bottom:1px solid var(--line)}.panel-head h2{font-size:15px;margin:0;font-weight:650}.panel-head a{font-size:12px;color:#777245}.panel-body{padding:22px}.grid-two{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:22px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:12px}th{text-align:left;background:#fafbfb;color:#7b8389;font-weight:500;font-size:11px;padding:13px 20px;border-bottom:1px solid var(--line)}td{padding:15px 20px;border-bottom:1px solid #f0f1f1;vertical-align:middle}tbody tr:last-child td{border:0}td small{display:block;color:var(--muted);font-size:10px}td b{font-size:12px;font-weight:600}.amount{text-align:right;font-variant-numeric:tabular-nums}.muted{color:var(--muted)}.badge{display:inline-block;padding:3px 8px;border-radius:5px;font-size:10px;background:#f1f3f4;color:#5a666c}.badge.sell{color:#257b59;background:#edf7f0}.badge.buy{color:#567aa1;background:#eef4fa}.badge.exchange{color:#88732d;background:#fbf4d9}.badge.due{color:#b16524;background:#fff4e6}.positive{color:var(--green)}.negative{color:var(--red)}.empty{padding:48px 25px;text-align:center;white-space:normal}.empty .empty-symbol{font-size:35px;color:#b8bdc0}.empty h3{font-size:17px;margin:8px 0}.empty p{font-size:12px;color:var(--muted);margin:0 0 18px}.guide{padding:23px;background:#fffced;border:1px solid #eee4b4;border-radius:var(--radius);margin-bottom:24px}.guide h2{font-size:16px;margin:0 0 7px}.guide p{font-size:12px;color:#837954;margin:0 0 14px}.guide-steps{display:flex;flex-wrap:wrap;gap:20px;font-size:12px}.guide-steps b{background:#f2dc72;width:24px;height:24px;display:inline-grid;place-items:center;border-radius:50%;margin-right:8px}.balance-row{display:flex;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}.balance-row:last-child{border:0}.balance-row small{display:block;font-size:11px;color:var(--muted)}.section-note{font-size:11px;color:var(--muted);margin:14px 0 0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px}.span-two{grid-column:1/-1}label{display:block;font-size:12px;color:#4b565d;font-weight:500}input,select,textarea{display:block;width:100%;background:white;border:1px solid #dce0e2;border-radius:7px;min-height:43px;padding:10px 12px;color:var(--ink);margin-top:6px;font-size:13px}input:focus,select:focus,textarea:focus{border-color:#b99b10;box-shadow:0 0 0 3px #fbf4d6}input[readonly]{background:#f6f7f7}input[type=checkbox]{display:inline-block;width:auto;min-height:0;margin-right:8px}textarea{min-height:80px;resize:vertical}.label-help{display:block;font-size:10px;color:var(--muted);margin-top:5px;font-weight:400}.required{color:#b39a24}.form-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding-top:22px}.form-section h2{font-size:16px;margin:0 0 19px}.notice{padding:13px 16px;border:1px solid;border-radius:9px;margin:0 0 20px;font-size:13px;white-space:normal}.notice.success{color:#216d50;background:#edf8f0;border-color:#c7e4d2}.notice.error{color:#a52b27;background:#fff0ef;border-color:#ecc2c0}.payment-summary{background:#faf7e9;border:1px solid #eee4b5;border-radius:10px;padding:20px;margin-bottom:17px}.payment-summary .sum-row{display:flex;justify-content:space-between;margin:6px 0;color:#736c52;font-size:12px}.payment-summary .sum-main{display:flex;justify-content:space-between;font-size:17px;font-weight:650;color:#33342b;border-top:1px solid #e4dba8;margin-top:15px;padding-top:12px}.form-sidebar{position:sticky;top:20px;align-self:start}.stock-info{font-size:12px;margin-top:10px;padding:12px;background:#f6f7f7;border-radius:7px}.search-bar{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-bottom:22px}.search-bar input{width:310px;max-width:100%;margin-top:0}.search-bar select{width:auto;margin:0}.search-bar label{max-width:100%}.pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:15px;font-size:12px}.auth-page{background:#242a2e;min-height:100vh;display:grid;place-items:center;padding:30px 20px}.auth-wrap{width:410px;max-width:100%}.auth-brand{text-align:center;margin-bottom:26px}.auth-brand img{width:55px}.auth-brand h1{color:var(--yellow);font-size:30px;letter-spacing:3px;margin:12px 0 0}.auth-brand h1 span{color:white}.auth-brand p{color:#aeb6bb;letter-spacing:2px;font-size:11px;margin:4px 0}.auth-card{padding:30px;background:white;border-radius:16px}.auth-card h2{font-size:20px;margin:0 0 8px}.auth-card p{font-size:12px;margin:0 0 22px}.auth-card label{margin-bottom:17px}.auth-card .btn{margin-top:8px}.auth-address{text-align:center;color:#929ca2;font-size:11px;margin:20px 0 0}.invoice{max-width:800px;margin:30px auto;background:white;padding:45px;border:1px solid var(--line)}.invoice-head{display:flex;justify-content:space-between;gap:30px;border-bottom:3px solid var(--yellow);padding-bottom:23px;margin-bottom:25px}.invoice-brand{font-size:30px;font-weight:800;letter-spacing:2px}.invoice-brand span{color:#9d851c}.invoice-meta{text-align:right;font-size:12px}.invoice address{font-style:normal;font-size:12px;color:var(--muted)}.invoice-total{max-width:340px;margin:20px 0 20px auto}.signature-row{display:flex;justify-content:space-between;margin-top:70px;gap:30px}.signature-row span{border-top:1px solid #999;padding-top:8px;min-width:160px;text-align:center;font-size:11px}.print-tools{max-width:800px;margin:20px auto;display:flex;justify-content:space-between;gap:12px}.detail-list{display:flex;flex-wrap:wrap;gap:8px 20px;font-size:12px}.detail-list span{color:var(--muted)}
@media(min-width:1450px){main{padding-top:38px}.stats{gap:20px}.stat{padding:25px}}
@media(max-width:1100px){.sidebar{width:212px}.workspace{margin-left:212px}main{padding:24px}.topbar{padding:0 24px}.user-name{display:none}.stats{gap:12px}.stat{padding:16px}.stat strong{font-size:22px}.actions{gap:12px}.action-card{padding:16px;gap:10px}.action-card b{font-size:14px}.grid-two{grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr)}}
@media(max-width:850px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:238px;box-shadow:10px 0 40px #0003}.sidebar.open{transform:translateX(0)}.workspace{margin-left:0}.menu-button{display:block}.topbar{height:75px;padding:0 20px}.topbar>div:first-of-type{margin-right:auto}.date{display:none}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-two{grid-template-columns:1fr}.form-sidebar{position:static}.actions{gap:10px}.action-card{flex-wrap:wrap}.action-card .arrow{display:none}.action-card .symbol{width:36px;height:36px}.invoice{margin:20px;padding:25px}.print-tools{margin:20px}}
@media(max-width:520px){main{padding:22px 16px}.topbar{padding:0 16px}.topbar strong{font-size:15px}.topbar small{font-size:9px}.account{gap:8px}.avatar{display:none}.page-heading{align-items:start;flex-wrap:wrap}.page-heading h1{font-size:22px}.stat strong{font-size:22px}.stat .stat-icon{display:none}.actions{grid-template-columns:1fr}.action-card{flex-wrap:nowrap}.action-card .arrow{display:block}.panel-head,.panel-body{padding:17px}.form-grid{grid-template-columns:1fr}.span-two{grid-column:auto}.search-bar input{width:100%}.search-bar label{flex:1 1 100%}.invoice-head{flex-direction:column;gap:12px}.invoice-meta{text-align:left}.invoice{padding:20px}.signature-row span{min-width:100px}.stats{gap:10px}.guide-steps{display:grid;gap:8px}footer{padding:18px 16px}.form-actions{flex-wrap:wrap}.form-actions .primary{width:100%}}
.brand img{object-fit:contain}.auth-brand img{max-height:90px;width:auto;max-width:170px;object-fit:contain}.invoice-logo{height:52px;width:auto;max-width:180px;object-fit:contain;float:left;margin:4px 14px 5px 0}.logo-settings{display:grid;grid-template-columns:170px 1fr;gap:25px;align-items:center}.logo-preview{background:#f4f5f5;border:1px solid var(--line);border-radius:10px;min-height:150px;display:grid;place-items:center;padding:20px}.logo-preview img{max-height:100px;max-width:130px;object-fit:contain}.report-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px}.report-tabs a{border:1px solid var(--line);background:#fff;border-radius:7px;font-size:11px;padding:7px 12px}.report-tabs a:hover,.report-tabs a.active{background:#fff7d4;border-color:#e2cd67;color:#514812}.report-tabs a.active{font-weight:650}.report-filters{display:flex;flex-wrap:wrap;gap:14px;align-items:end;background:#fff;border:1px solid var(--line);border-radius:10px;padding:18px;margin-bottom:14px}.report-filters input,.report-filters select{min-height:39px}.report-search{flex:1;min-width:220px}.report-period{font-size:11px;color:var(--muted);margin:12px 0 20px}.report-stats .stat strong{font-size:22px;margin-bottom:0}.report-link{color:#71601e;text-decoration:underline;text-underline-offset:3px}.report-tools{display:flex;gap:8px;flex-wrap:wrap}.report-print-brand{display:none}.history-parties{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:24px}.history-parties h3{font-size:12px;color:var(--muted);font-weight:500;margin:0 0 8px}.history-parties p{font-size:12px;margin:5px 0}.wallet-openings{display:flex;flex-wrap:wrap;gap:25px}.wallet-openings span{display:block;font-size:11px;color:var(--muted)}.wallet-openings b{font-size:15px}.report-table td{white-space:normal;min-width:100px}.report-table th{white-space:normal;min-width:100px}.report-table td:first-child{min-width:115px}
@media(max-width:520px){.logo-settings,.history-parties{grid-template-columns:1fr}.report-filters label{width:100%}.report-search{min-width:0}.report-filters button{width:100%}.report-tabs{gap:6px}.report-tabs a{font-size:10px;padding:6px 8px}.report-stats .stat strong{font-size:19px}.report-tools .btn{min-height:37px}.logo-preview{min-height:120px}.sidebar nav a{padding:9px 14px}.sidebar .brand{padding-bottom:23px}}
@media print{body{background:white}.print-tools{display:none}.invoice{max-width:none;border:0;padding:0;margin:0}.invoice .table-wrap{overflow:visible}a{color:inherit}.invoice-head{flex-direction:row}.signature-row{break-inside:avoid}.invoice table{white-space:normal}.sidebar,.topbar,.workspace>footer{display:none}.workspace{margin:0}.workspace>main{padding:0;max-width:none}.report-tools,.report-tabs,.report-filters,.pagination,.notice{display:none!important}.report-print-brand{display:flex;gap:14px;align-items:center;margin-bottom:20px;border-bottom:2px solid #999;padding-bottom:12px}.report-print-brand img{max-width:100px;max-height:50px;object-fit:contain}.report-print-brand strong{font-size:20px}.report-print-brand small{display:block;font-size:10px}.report-area .page-heading h1{font-size:21px}.report-area .table-wrap{overflow:visible}.report-area table{table-layout:fixed;white-space:normal;font-size:9px}.report-area th,.report-area td{min-width:0!important;white-space:normal;overflow-wrap:anywhere;padding:7px 5px;font-size:9px}.report-area tr{break-inside:avoid}.report-area thead{display:table-header-group}.report-area .panel{border:0;border-radius:0}.report-area .stats{gap:8px}.report-area .stat{padding:10px;border-radius:0}.report-area .stat strong{font-size:17px}.report-area .panel-head{padding:10px 0}.report-area .panel-body{padding:10px 0}.report-area .section-note{font-size:9px}}
