:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif;color:#182b43;background:#f4f7fa;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}input,select,textarea{min-width:0}h1,h2,h3,p{margin-top:0}.shell{display:flex;min-height:100vh}.sidebar{width:244px;flex-shrink:0;background:#10243a;color:#e7edf4;display:flex;flex-direction:column;min-height:100vh;position:sticky;top:0;height:100vh;padding:26px 16px}.brand{display:flex;align-items:center;gap:11px;font-size:18px;font-weight:750;letter-spacing:-.5px;padding:0 10px}.brand-mark{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#6dcdb8;color:#10243a;font-weight:850;font-size:21px}.brand-sub{font-size:11px;color:#8da0b5;padding:10px 10px 0;margin-bottom:38px}.sidebar nav{display:grid;gap:6px}.sidebar nav button{border:0;background:transparent;color:#a9b8c8;display:flex;align-items:center;gap:14px;text-align:left;padding:13px 15px;border-radius:10px;font-weight:600;width:100%}.sidebar nav button:hover,.sidebar nav button.active{background:#213b53;color:#fff}.sidebar nav button.active:before{content:"";width:3px;background:#6dcdb8;height:20px;position:absolute;left:16px;border-radius:4px}.sidebar-bottom{margin-top:auto;padding:18px 10px;color:#8da0b5;font-size:11px;border-top:1px solid #2b4057}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#6dcdb8;margin-right:7px}.main-wrap{flex:1;min-width:0}.topbar{height:70px;background:#fff;border-bottom:1px solid #e7edf3;display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:20px}.breadcrumb{font-size:13px;color:#687b90;font-weight:600}.top-actions{display:flex;gap:9px}.top-actions select{background:#f7fafc;border:1px solid #e0e8ee;border-radius:8px;padding:9px 11px;color:#273c55;font-size:12px;max-width:200px}.menu-btn,.mobile-close{display:none}.main{max-width:1600px;margin:auto;padding:36px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:27px}.page-heading h1{font-size:29px;line-height:1.2;letter-spacing:-.8px;margin:7px 0 8px;color:#172f4c}.page-heading p{margin:0;color:#748397;font-size:14px}.eyebrow{font-size:10px;font-weight:800;color:#4a9b8e;letter-spacing:2px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #d9e3eb;background:#fff;color:#18344e;border-radius:9px;font-size:12px;font-weight:700;padding:11px 15px;white-space:nowrap;min-height:40px}.btn:hover{background:#eef4f7}.btn.primary{background:#183c5a;color:#fff;border-color:#183c5a}.btn.primary:hover{background:#255575}.btn.secondary{background:#fff}.btn.small{padding:8px 10px;min-height:35px;font-size:11px}.heading-actions,.card-actions,.logo-buttons,.setting-actions,.profile-save{display:flex;flex-wrap:wrap;gap:8px}.panel{background:#fff;border:1px solid #e5ebf0;border-radius:14px;box-shadow:0 5px 24px #1c334c09}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:21px 24px}.panel h2{font-size:15px;letter-spacing:-.2px;margin:0;color:#1e3853}.panel-head h2{margin:0}.text-btn{border:0;background:none;color:#2d7c74;font-size:12px;font-weight:700}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:26px}.stat{background:#fff;border:1px solid #e4ebf0;border-radius:14px;padding:21px;display:flex;flex-direction:column;min-height:145px}.stat-icon{height:34px;color:#4c978c}.stat strong{font-size:28px;color:#1a3551;line-height:1.3}.stat span{font-size:12px;color:#7b8b9d}.invoice-list{padding:0 12px}.invoice-item{display:flex;align-items:center;gap:15px;padding:15px 12px;border-top:1px solid #eef2f5;min-width:0}.invoice-item:first-child{border-top:0}.invoice-icon,.company-avatar,.settings-icon{width:42px;height:42px;display:grid;place-items:center;background:#eaf5f3;color:#337d76;border-radius:10px;flex-shrink:0}.invoice-info{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}.invoice-info strong{font-size:13px}.invoice-info span,.invoice-meta span{color:#8391a2;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.invoice-meta{display:flex;flex-direction:column;text-align:right;gap:5px;min-width:115px}.invoice-meta strong{font-size:13px}.status{display:inline-flex;padding:5px 10px;border-radius:30px;font-size:10px;font-weight:750;min-width:72px;justify-content:center}.status.draft{color:#a16b2e;background:#fff2df}.status.issued{color:#27816d;background:#e5f6f0}.list-actions{display:flex}.icon-btn{width:33px;height:33px;border:0;background:transparent;color:#73879a;border-radius:7px;display:grid;place-items:center}.icon-btn:hover{background:#eef3f6;color:#163a58}.icon-btn.danger:hover,.danger-text{color:#b45656}.empty-list,.empty-cta{padding:48px 18px;text-align:center;color:#91a2b2}.empty-list p{margin:8px 0 0}.empty-cta{border:1px dashed #cbd8e1;border-radius:14px;margin-top:22px}.empty-cta h3{color:#31495f;font-size:16px;margin:10px 0 19px}.filters{display:flex;gap:10px;padding:14px;margin-bottom:18px}.filters input,.filters select{height:40px;border:1px solid #dce5ed;border-radius:8px;padding:0 11px;background:#fff;color:#334d63;flex:1}.filters input:first-child{flex:2}.editor-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(380px,.9fr);gap:20px;align-items:start}.editor-form{display:grid;gap:17px;min-width:0}.form-section{padding:24px}.form-section h2{margin-bottom:21px}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field.wide{grid-column:1/-1}.field>span{font-size:11px;font-weight:700;color:#536a7f}.field input:not([type=checkbox]):not([type=range]),.field select,.field textarea{width:100%;background:#fff;border:1px solid #dce5ed;border-radius:8px;padding:10px 11px;color:#243d55;outline:0;font-size:12px;min-height:40px}.field textarea{resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:#5ea999;box-shadow:0 0 0 3px #5ea99922}.field input[type=checkbox]{width:22px;height:22px;accent-color:#237e73;margin-top:8px}.field input[type=range]{width:100%;accent-color:#237e73}.line-card{background:#f8fafb;border:1px solid #e7edf2;border-radius:11px;padding:16px;margin-top:15px}.line-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.line-head strong{font-size:12px}.line-total{font-size:11px;color:#5b7083;padding-top:14px;line-height:1.8}.hint{font-size:11px;color:#7d8d9e;line-height:1.6;margin:13px 0 0}.preview-column{position:sticky;top:17px;min-width:0}.preview-toolbar{background:#fff;border:1px solid #e4ebf0;border-radius:12px 12px 0 0;padding:13px;display:flex;justify-content:space-between;gap:10px;align-items:center}.preview-toolbar>div:first-child{display:flex;flex-direction:column;gap:4px}.preview-toolbar strong{font-size:12px}.preview-toolbar small{font-size:10px;color:#8b9aaa}.preview-toolbar>div:last-child{display:flex;gap:5px}.pdf-frame{display:block;width:100%;height:min(73vh,950px);border:1px solid #d8e2e9;border-top:0;background:#e7edf2}.preview-empty{height:500px;background:#e9eef3;border:1px solid #d8e2e9;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#8799a9;text-align:center;padding:22px}.preview-empty p{max-width:260px;font-size:12px;line-height:1.5;margin:12px}.open-pdf{display:block;padding:11px;text-align:center;background:#fff;border:1px solid #d8e2e9;border-top:0;color:#327e7b;font-size:11px;font-weight:700;text-decoration:none}.total-card{display:flex;align-items:center;justify-content:space-between;background:#143653;color:#fff;border-radius:0 0 12px 12px;padding:17px 20px}.total-card span{font-size:12px}.total-card strong{font-size:19px}.notice{padding:14px 17px;background:#fff8e9;border:1px solid #f6dfa7;border-radius:9px;color:#80642d;font-size:12px;margin-bottom:18px}.company-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.company-card{padding:22px}.company-avatar{width:55px;height:55px;margin-bottom:16px;overflow:hidden}.company-avatar img{max-width:85%;max-height:85%;object-fit:contain}.company-card h2{font-size:17px;margin:0 0 6px}.company-card p{color:#8291a1;font-size:12px;margin:0 0 14px}.badge{font-size:10px;color:#248574;background:#e5f6f0;padding:5px 8px;border-radius:20px}.card-actions{margin-top:19px}.profile-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:18px}.profile-main{display:grid;gap:18px}.profile-side{align-self:start;position:sticky;top:15px}.logo-zone{height:145px;border:1px dashed #99b4c5;background:#f7fafb;border-radius:8px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;color:#b0c1ce}.logo-zone img{position:absolute;object-fit:contain;max-height:90px;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}.logo-zone span{position:absolute;bottom:8px;left:10px;color:#a4b3c0;font-size:10px;pointer-events:none}.logo-buttons{margin:16px 0}.profile-save{display:flex;justify-content:flex-end;padding:18px 0}.settings-panel{max-width:700px;padding:28px}.settings-icon{margin-bottom:18px}.settings-panel h2{font-size:18px;margin:0 0 11px}.settings-panel p{font-size:13px;color:#667b8e;line-height:1.7;max-width:570px;margin-bottom:23px}.toast{position:fixed;bottom:25px;right:25px;background:#1c3e57;color:#fff;border-radius:10px;padding:13px 19px;font-size:12px;z-index:20;box-shadow:0 10px 25px #122b4240}.mobile-tabs{display:none}@media(max-width:1120px){.sidebar{width:205px}.main{padding:25px}.editor-grid{grid-template-columns:minmax(0,1fr) minmax(330px,.85fr)}.preview-toolbar{flex-wrap:wrap}.company-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:830px){.sidebar{position:fixed;left:-260px;top:0;z-index:30;width:244px;transition:left .2s;box-shadow:10px 0 30px #10243a20}.sidebar.open{left:0}.mobile-close,.menu-btn{display:grid;place-items:center;background:transparent;border:0;color:inherit}.mobile-close{margin-left:auto}.menu-btn{color:#31506a}.topbar{padding:0 18px;height:64px}.breadcrumb{margin-right:auto}.main{padding:23px 17px}.editor-grid{display:block}.editor-form.mobile-hidden,.preview-column.mobile-hidden{display:none}.mobile-tabs{display:flex;background:#e7eef2;padding:4px;border-radius:10px;margin-bottom:15px}.mobile-tabs button{flex:1;border:0;background:none;color:#60768c;padding:11px;border-radius:8px;font-weight:700;font-size:12px}.mobile-tabs button.active{background:#fff;color:#193b58;box-shadow:0 2px 5px #263d5018}.preview-column{position:static}.pdf-frame{height:75vh}.profile-layout{display:block}.profile-side{position:static}.profile-main{margin-bottom:18px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.top-actions{gap:4px}.top-actions select{max-width:110px;padding:8px 5px;font-size:11px}.top-actions select:first-child{max-width:130px}.main{padding:20px 12px}.page-heading{align-items:flex-start}.page-heading h1{font-size:24px}.page-heading>.btn{font-size:0;padding:11px}.page-heading>.btn svg{width:19px}.editor-heading{display:block}.heading-actions{margin-top:15px}.heading-actions .btn{flex:1;font-size:11px;padding:8px}.form-section{padding:17px}.field-grid{gap:11px}.field input:not([type=checkbox]):not([type=range]),.field select,.field textarea{padding:9px}.filters{flex-wrap:wrap}.filters>*{flex:1 1 calc(50% - 10px)!important}.invoice-item{gap:8px;flex-wrap:wrap}.invoice-icon{width:35px;height:35px}.invoice-info{flex:1 1 50%}.invoice-meta{min-width:100px}.status{margin-left:43px}.list-actions{margin-left:auto}.company-grid{grid-template-columns:1fr}.stat{min-height:120px;padding:16px}.preview-toolbar>div:last-child{width:100%;display:flex}.preview-toolbar .btn{flex:1}.toast{left:12px;right:12px;bottom:12px}.profile-layout{min-width:0}}
