@import url('data:text/css,');
:root{--orange:#ff914d;--orange-dark:#bc4b0b;--ink:#192533;--muted:#748091;--line:#e6eaf0;--bg:#f6f8fb;--paper:#fff;--green:#158263;--soft-orange:#fff2e8;--radius:14px;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);font-size:14px;background:var(--bg)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{cursor:pointer}a{color:inherit;text-decoration:none}button{color:inherit}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #ffb27f;outline-offset:3px}button{border:0;background:none}input,select,textarea{border:1px solid #dce1e8;padding:11px 13px;border-radius:9px;background:white;color:var(--ink);min-width:0;max-width:100%}input:focus,textarea:focus{border-color:var(--orange);outline:2px solid #ff914d22}label{font-size:12px;font-weight:600;display:grid;gap:8px}label small{font-size:11px;font-weight:400;color:var(--muted);line-height:1.5}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-1px;font-weight:700}h2{font-size:17px;letter-spacing:-.3px}h3{font-size:14px}p{line-height:1.65}small,.muted{color:var(--muted)}.skip{position:absolute;left:12px;top:-60px;background:white;padding:12px;z-index:20}.skip:focus{top:12px}.loading{display:grid;gap:15px;padding:100px;text-align:center;font-weight:700;font-size:25px}.loading span{font-size:14px;font-weight:400;color:var(--muted)}.icon{width:19px;height:19px;display:inline-flex;flex:none;align-items:center;justify-content:center}.icon svg{width:100%;height:100%;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}.logo{display:flex;align-items:center;gap:10px;font-weight:750;font-size:18px;letter-spacing:-.6px}.logo .logo-mark{background:var(--orange);color:white;border-radius:11px;padding:10px;display:flex}.logo small{font-size:9px;display:block;letter-spacing:1.8px;margin-top:4px;text-transform:uppercase}.shell{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh}.sidebar{background:white;border-right:1px solid var(--line);padding:29px 17px;position:fixed;width:232px;inset:0 auto 0 0;display:flex;flex-direction:column;z-index:5}.sidebar .logo{padding:0 10px 32px}.nav-caption{padding:12px 15px;color:#a0a8b4;font-size:10px;letter-spacing:1.5px;font-weight:600}.nav-link{display:flex;align-items:center;gap:12px;padding:13px 14px;margin:3px 0;border-radius:9px;color:#687484;font-size:13px;font-weight:550}.nav-link:hover{background:var(--bg);color:var(--ink)}.nav-link.active{background:var(--soft-orange);color:#c55d1c}.nav-link .nav-count{margin-left:auto;font-size:10px;background:#ffd9bf;border-radius:5px;padding:3px 5px}.sidebar-bottom{margin-top:auto;padding-top:30px}.trial-mini{border:1px solid #f5d7c0;background:#fffaf5;padding:14px;border-radius:11px;margin:20px 5px}.trial-mini strong{font-size:12px}.trial-mini p{font-size:11px;margin:8px 0;color:var(--muted)}.progress{height:5px;background:#f0e4da;border-radius:8px;overflow:hidden;margin:10px 0}.progress span{display:block;background:var(--orange);height:100%;border-radius:8px}.made-by{padding:12px 10px;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted)}.made-by img{width:105px;border-radius:4px}.workspace{grid-column:2;min-width:0}.topbar{height:82px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 38px;gap:16px}.crumb{font-size:12px;color:#98a1ae;display:flex;gap:11px;align-items:center}.crumb strong{color:var(--ink);font-weight:550}.top-actions{display:flex;gap:18px;align-items:center}.lang{padding:7px 9px;font-size:11px;background:transparent;border-color:var(--line)}.avatar{height:33px;width:33px;display:grid;place-items:center;border-radius:50%;background:#f7e5d7;font-size:11px;font-weight:700;color:#96613d}.company{font-size:11px}.company strong{font-size:12px;display:block;margin-bottom:3px}.preview-notice{padding:10px 38px;background:#fff7ee;border-bottom:1px solid #f6e4d1;display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#986032;align-items:center}.preview-notice a{text-decoration:underline;white-space:nowrap}.main{padding:33px 38px 40px;max-width:1600px;margin:auto}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.heading p{margin-top:8px;color:var(--muted);font-size:12px}.eyebrow{font-size:9px;text-transform:uppercase;font-weight:700;letter-spacing:1.7px;color:#b0b7c0;margin-bottom:10px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:11px 17px;border:1px solid #dde2e9;background:white;border-radius:9px;font-size:12px;font-weight:600;white-space:nowrap;min-height:39px}.btn:hover{border-color:#c4cdd8;background:#fcfcfd}.btn.primary{background:var(--orange);border-color:var(--orange);color:#40200d;box-shadow:0 3px 6px #e9781c10}.btn.primary:hover{background:#ff9e63}.btn.subtle{color:var(--muted);font-weight:500}.btn.small{font-size:11px;padding:8px 11px;min-height:30px}.button-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:24px}.stat{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:22px;position:relative}.stat-top{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px}.stat-icon{background:#f4f6f9;border-radius:9px;padding:9px;display:flex;color:#74839a}.stat-icon.orange{background:var(--soft-orange);color:var(--orange-dark)}.stat-icon.green{background:#edf8f3;color:var(--green)}.stat-icon.purple{background:#f2f0ff;color:#8870b9}.stat-value{font-size:29px;font-weight:700;letter-spacing:-.8px;margin:16px 0 11px}.stat-bottom{font-size:10px;color:var(--muted)}.trend{color:var(--green);font-weight:600}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.panel-header{padding:21px 23px;display:flex;justify-content:space-between;align-items:center;gap:20px}.panel-header small{display:block;font-size:11px;margin-top:7px}.panel-body{padding:23px}.toolbar{border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:13px 22px;gap:15px}.tabs{display:flex;gap:6px}.tab{font-size:11px;color:var(--muted);padding:8px 11px;border-radius:7px}.tab.active{color:var(--ink);background:#f1f4f7;font-weight:600}.tab span{padding:2px 5px;font-size:9px;border-radius:4px;background:#e6ebf1;margin-left:6px}.search-wrap{display:flex;align-items:center;gap:8px;color:#919ba8;max-width:340px;width:100%}.search-wrap input{border:0;background:transparent;width:100%;font-size:11px;padding:7px;outline:none}.filters{display:flex;gap:8px;align-items:center}.filters select{font-size:11px;padding:7px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;min-width:670px;text-align:left}thead{background:#fcfcfd}th{font-size:9px;letter-spacing:.8px;text-transform:uppercase;color:#8f99a7;font-weight:550;padding:14px 22px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:16px 22px;font-size:11px;border-bottom:1px solid #eef1f5;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfdff}.supplier{display:flex;align-items:center;gap:11px}.supplier-avatar{width:32px;height:35px;background:#eff2f7;display:grid;place-items:center;border-radius:8px;font-size:9px;font-weight:700;color:#667388}.supplier strong{display:block;font-size:11px;font-weight:600}.supplier small{font-size:10px;display:block;margin-top:5px}.number{font-weight:600;font-variant-numeric:tabular-nums}.badge{display:inline-flex;align-items:center;gap:5px;font-size:9px;border-radius:5px;padding:5px 8px;white-space:nowrap}.badge:before{content:'';width:4px;height:4px;border-radius:50%;background:currentColor}.badge.green{color:#208260;background:#edf8f1}.badge.orange{color:#ac6920;background:#fff6e6}.badge.blue{color:#6477a7;background:#eff3ff}.badge.gray{color:#85909f;background:#f2f4f7}.badge.red{color:#c05d5d;background:#fdefed}.table-footer{border-top:1px solid var(--line);padding:14px 22px;display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--muted)}.bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:23px}.connection-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 23px;border-top:1px solid #f0f2f6}.connection-main{display:flex;align-items:center;gap:13px;min-width:0}.provider-icon{width:34px;height:34px;background:#f5f7fb;display:grid;place-items:center;border-radius:9px;font-weight:650;color:#72829b}.connection-main strong{font-size:11px;display:block}.connection-main small{font-size:10px;display:block;margin-top:5px;overflow-wrap:anywhere}.activity{padding:4px 23px 17px}.activity-row{display:flex;gap:13px;padding:12px 0}.activity-dot{height:24px;width:24px;border-radius:50%;background:#fff2e8;color:#db8e57;display:grid;place-items:center;font-size:10px;flex:none}.activity-row strong{font-size:10px;display:block;font-weight:550}.activity-row small{font-size:10px;margin-top:6px;display:block}.empty{padding:50px 25px;text-align:center;color:var(--muted)}.empty h3{color:var(--ink);margin:12px 0}.empty .icon{width:35px;height:35px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.integration-card{padding:24px;background:white;border:1px solid var(--line);border-radius:14px;display:flex;flex-direction:column;gap:16px}.integration-card p{font-size:11px;color:var(--muted)}.integration-card .btn{margin-top:auto;align-self:flex-start}.provider-big{width:45px;height:45px;display:grid;place-items:center;border:1px solid var(--line);border-radius:11px;font-size:19px;font-weight:600;color:#60739c}.notice{padding:14px 17px;border:1px solid #f3dfcc;background:#fffbf7;border-radius:10px;color:#986a48;font-size:11px;line-height:1.7;margin-bottom:22px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.form{display:grid;gap:19px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.form .full{grid-column:1/-1}.form .form-error{color:#b64a37;font-size:12px;min-height:0}.field-note{font-size:11px;color:var(--muted);line-height:1.6}.plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.plan{padding:28px;border:1px solid var(--line);border-radius:15px;background:white;position:relative}.plan.featured{border-color:var(--orange);box-shadow:0 0 0 3px #ff914d10}.plan-label{font-size:9px;font-weight:600;letter-spacing:1px;color:#bc6c35;margin-bottom:17px}.plan-price{font-size:38px;font-weight:700;letter-spacing:-1.6px;margin:23px 0 8px}.plan-price small{font-size:11px;letter-spacing:0;font-weight:400}.plan p{font-size:11px;color:var(--muted)}.plan ul{padding:0;list-style:none;margin:25px 0}.plan li{font-size:11px;margin:15px 0}.plan li:before{content:'✓';color:var(--green);margin-right:9px}.plan .btn{width:100%}.billing-summary{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px;padding:23px;background:#fff8f2;border:1px solid #f5dac5;border-radius:14px}.billing-summary h3{margin-bottom:8px}.billing-summary p{font-size:11px;color:#926c50}.dropzone{border:1.5px dashed #e5ba99;background:#fffaf6;border-radius:13px;padding:30px;text-align:center;color:#926746}.dropzone p{font-size:11px;margin:12px}.dropzone input{max-width:100%;font-size:11px}.dropzone.drag{background:#ffe8d7}.upload-row{padding:12px;border-bottom:1px solid var(--line);font-size:11px;overflow-wrap:anywhere}.site{background:#fff;min-height:100vh}.site-header{height:90px;max-width:1220px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:0 35px;border-bottom:1px solid #f1f3f6;gap:22px}.site-header nav{display:flex;align-items:center;gap:30px;font-size:12px;color:var(--muted)}.hero{max-width:1220px;margin:auto;display:grid;grid-template-columns:1.05fr 1fr;gap:60px;padding:90px 35px 80px;align-items:center}.hero-tag{display:inline-flex;padding:7px 11px;border:1px solid #ffe3cc;border-radius:99px;background:#fff9f3;color:#ab744e;font-size:10px;margin-bottom:27px}.hero h1{font-size:53px;line-height:1.14;letter-spacing:-2.4px;font-weight:720;max-width:550px}.hero h1 em{font-style:normal;color:#e78543}.hero p{font-size:14px;color:var(--muted);max-width:420px;margin:23px 0 26px}.hero-fine{font-size:10px;color:#a0a8b2;display:flex;gap:17px;margin-top:17px}.hero-visual{background:#fbf3ed;border-radius:24px;padding:31px 22px;transform:rotate(-1deg);position:relative}.visual-card{background:white;box-shadow:0 20px 60px #6e503616;border:1px solid #f2e7df;border-radius:13px;overflow:hidden}.visual-top{padding:19px 20px;border-bottom:1px solid var(--line);font-size:11px;font-weight:600;display:flex;justify-content:space-between}.mini-row{padding:17px 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:14px;font-size:10px}.mini-row .supplier-avatar{height:29px;width:29px}.visual-bubble{position:absolute;right:-13px;bottom:0;background:white;box-shadow:0 9px 25px #5a382c12;padding:16px 21px;border-radius:12px;font-size:11px;display:flex;gap:12px;align-items:center;transform:rotate(1deg)}.visual-bubble .icon{color:var(--green)}.brand-band{border-top:1px solid #f1f3f6;border-bottom:1px solid #f1f3f6;padding:25px;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:50px;color:#9099a7;font-size:14px;font-weight:650}.brand-band small{font-size:10px;font-weight:400;color:#a0a8b2}.site-section{max-width:1220px;padding:70px 35px;margin:auto}.section-heading{text-align:center;margin-bottom:37px}.section-heading h2{font-size:29px;letter-spacing:-1px;margin:12px 0}.section-heading p{font-size:12px;color:var(--muted)}.how-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:45px}.how-number{font-size:11px;border:1px solid #f8d9c1;background:#fff6ed;width:36px;height:36px;display:grid;place-items:center;border-radius:10px;color:#bd7544;margin-bottom:23px}.how-grid h3{font-size:15px;margin-bottom:12px}.how-grid p{font-size:12px;color:var(--muted)}.site-muted{background:#f8fafc;border-block:1px solid #edf0f5}.site-footer{max-width:1220px;margin:auto;padding:30px 35px;display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--muted);gap:22px}.site-footer .made-by{gap:15px}.mobile-menu{display:none}.key-value{display:flex;justify-content:space-between;gap:14px;padding:13px 0;border-bottom:1px solid var(--line);font-size:12px}.key-value span:first-child{color:var(--muted)}dialog{border:1px solid var(--line);border-radius:17px;box-shadow:0 25px 80px #15213122;width:min(540px,calc(100% - 30px));max-height:90vh;overflow:auto;padding:28px}dialog::backdrop{background:#17243b55;backdrop-filter:blur(3px)}.modal-title{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:8px}.modal-title h2{font-size:22px}.modal-intro{font-size:12px;color:var(--muted);margin:10px 0 23px}.modal-close{font-size:24px;color:var(--muted);padding:3px}.modal-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:22px}.modal-actions>.btn{max-width:100%;white-space:normal;text-align:center;justify-content:center;min-width:0}.check-row{display:flex;gap:10px;align-items:flex-start;font-weight:400;line-height:1.5}.check-row input{margin-top:2px}.error-text{color:#b34f43;font-size:12px}#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%) translateY(90px);background:#22303f;color:white;box-shadow:0 8px 30px #14253a22;padding:13px 22px;border-radius:10px;font-size:12px;max-width:calc(100% - 30px);z-index:30;transition:.25s}#toast.show{transform:translateX(-50%) translateY(0)}.detail-lines{display:grid;gap:16px;margin-top:20px}.detail-lines p{font-size:12px;color:var(--muted)}.status-line{display:flex;align-items:center;gap:10px;font-size:12px}.auth-shell{min-height:100vh;background:radial-gradient(ellipse at top,#fff5ec,transparent 55%);display:grid;place-items:center;padding:30px}.auth-card{background:white;border:1px solid var(--line);border-radius:18px;padding:35px;width:min(440px,100%)}.auth-card .logo{margin-bottom:32px}.auth-card h1{font-size:27px}.auth-card p{font-size:12px;margin:12px 0 24px;color:var(--muted)}.auth-card .btn{width:100%}.text-link{color:#be6d39;text-decoration:underline}.reveal{animation:appear .35s ease-out}@keyframes appear{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}@media(max-width:1200px){.main{padding:28px}.topbar{padding:0 28px}.stat{padding:17px}.stats{gap:12px}td,th{padding-left:15px;padding-right:15px}.hero{gap:30px}.hero h1{font-size:45px}}@media(max-width:980px){.shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{width:190px;padding:25px 12px}.sidebar .logo{font-size:15px;padding:0 5px 25px}.logo .logo-mark{padding:8px}.stats{grid-template-columns:repeat(2,1fr)}.bottom-grid,.settings-grid{grid-template-columns:1fr}.main{padding:25px}.cards{grid-template-columns:repeat(2,1fr)}.topbar{padding:0 25px}.crumb{display:none}.top-actions{margin-left:auto}.hero{padding-top:60px}.hero h1{font-size:39px}.site-header nav{gap:16px}.company{display:none}}@media(max-width:720px){.shell{display:block}.sidebar{position:fixed;inset:0 auto 0 0;width:232px;transform:translateX(-100%);transition:.2s;box-shadow:20px 0 50px #19253315}.shell.menu-open .sidebar{transform:none}.workspace{margin:0}.mobile-menu{display:flex}.topbar{height:66px;padding:0 19px}.top-actions{gap:12px}.preview-notice{padding:10px 19px;font-size:10px;line-height:1.5}.preview-notice a{display:none}.main{padding:25px 18px}.heading{align-items:flex-start;gap:12px}.heading h1{font-size:25px}.heading .button-row{max-width:160px;justify-content:flex-end;gap:7px}.btn{font-size:11px;padding:10px 12px}.heading .btn.subtle{display:none}.stats{gap:10px}.stat{padding:15px}.stat-value{font-size:26px;margin:13px 0}.stat-top{font-size:10px}.stat-icon{padding:6px}.stat-bottom{font-size:9px}.toolbar{flex-wrap:wrap;padding:10px 14px}.tabs{order:2;width:100%;justify-content:space-between}.search-wrap{max-width:100%;flex:1}.filters{flex:none}.panel-header{padding:18px}.panel-header h2{font-size:15px}.panel-body{padding:19px}.cards,.plan-grid{grid-template-columns:1fr}.integration-card{gap:13px;padding:21px}.form-grid{grid-template-columns:1fr}.site-header{height:77px;padding:0 20px;gap:10px}.site-header .logo{font-size:16px}.site-header nav a{display:none}.site-header nav{gap:10px}.site-header .btn{display:none}.hero{grid-template-columns:1fr;padding:45px 23px 55px;gap:35px}.hero h1{font-size:43px;letter-spacing:-1.8px}.hero p{font-size:13px}.hero-visual{padding:25px 16px;margin-right:9px}.visual-bubble{right:-10px;font-size:10px}.brand-band{gap:23px;font-size:12px;padding:22px}.brand-band small{width:100%;text-align:center}.site-section{padding:48px 22px}.section-heading h2{font-size:25px}.how-grid{grid-template-columns:1fr;gap:28px}.how-number{margin-bottom:15px}.site-footer{padding:22px;flex-wrap:wrap;justify-content:center;text-align:center}.billing-summary{flex-wrap:wrap;padding:19px}.plan{padding:25px}.form-grid .full{grid-column:auto}.main .field-note{font-size:10px}.heading p{max-width:230px;line-height:1.5}.heading .button-row .btn{min-height:37px}.top-actions .company{display:none}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Internetraket family: Avenir typography, orange pill buttons and quiet motion. */
:root{font-family:'Avenir Next',Avenir,'Century Gothic',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif}.btn{border-radius:32px;padding:12px 20px;transition:transform .2s,background .2s,border-color .2s}.btn:hover{transform:translateY(-2px)}.btn.primary{color:#101320;box-shadow:none}.btn.primary:hover{background:#ffc19a;border-color:#ffc19a}.btn.small{padding:8px 13px}.site .eyebrow{color:#d88043}.site .hero h1{font-weight:650}.btn .icon-arrow{transform:rotate(-35deg)}

/* Layout follows the selected language, including Arabic and Urdu. */
html[dir="rtl"] .sidebar{inset:0 0 0 auto;border-right:0;border-left:1px solid var(--line)}
html[dir="rtl"] .nav-count{margin-left:0;margin-right:auto}
html[dir="rtl"] th,html[dir="rtl"] td{text-align:start}
html[dir="rtl"] input[type="email"],html[dir="rtl"] input[type="url"],html[dir="rtl"] input[type="number"]{direction:ltr;text-align:end}
html[dir="rtl"] .icon-chevron{transform:scaleX(-1)}
.lang{max-width:165px;min-width:100px}
@media(max-width:760px){html[dir="rtl"] .sidebar{transform:translateX(100%)}html[dir="rtl"] .menu-open .sidebar{transform:translateX(0)}.lang{max-width:120px}}
.sales-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,1fr);gap:24px;align-items:start}.sales-form{display:grid;gap:20px}.sales-preview{position:sticky;top:20px;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;padding-bottom:15px}.sales-preview iframe{width:100%;height:800px;border:0;background:white}.sales-preview>.field-note{padding:0 20px}.sales-line{display:grid;grid-template-columns:minmax(120px,1fr) 65px 85px 65px 32px;gap:8px;padding:12px 0;border-bottom:1px solid var(--line);align-items:end}.sales-line input{width:100%;padding:9px 7px}.sales-line label{font-size:10px}.template-options{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.template-option{display:grid;justify-items:center;gap:10px;border:1px solid var(--line);border-radius:9px;padding:12px 4px;font-size:11px}.template-option.selected{border-color:var(--orange);background:#fff7f0}.template-option>span{width:30px;height:35px;border:1px solid #ddd;border-top:5px solid;background:repeating-linear-gradient(white,white 5px,#e8ecf0 5px,#e8ecf0 6px)}.sales-block{border:1px solid var(--line);padding:9px;margin:8px 0;border-radius:9px;display:flex;justify-content:space-between;align-items:center;gap:10px;background:#fafbfd;font-size:12px;cursor:grab}.sales-block>div{display:flex;gap:3px}.sales-block .btn{padding:4px 8px;min-height:25px}.routing-grid{margin-bottom:24px}.routing-card p{font-size:12px;color:var(--muted);margin:10px 0 20px}.routing-card .icon{color:var(--orange-dark)}@media(max-width:1100px){.sales-editor{grid-template-columns:1fr}.sales-preview{position:static}.sales-line{grid-template-columns:minmax(110px,1fr) 65px 85px 65px 30px}}@media(max-width:520px){.sales-line{grid-template-columns:1fr 1fr 1fr 32px}.sales-line .line-description{grid-column:1/-1}.sales-preview iframe{height:680px}.template-options{grid-template-columns:repeat(2,1fr)}}

.invoice-row-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:245px}.invoice-row-actions .btn{white-space:nowrap}.invoice-row-actions .btn:disabled{opacity:.65;cursor:default}

.style-block{border:1px solid var(--line);border-radius:12px;background:white;margin:16px 0;padding:16px}.style-block-toolbar,.style-element-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.style-block-toolbar>div,.style-element-head>div{display:flex;gap:4px}.style-block-toolbar [draggable]{cursor:grab}.style-element{padding:12px;background:#f5f7fa;border:1px solid var(--line);border-radius:9px;display:grid;gap:10px}.style-element textarea,.style-element input,.style-element select{width:100%;box-sizing:border-box}.style-element-head{font-size:12px;margin:0}.style-block .btn.small{padding:5px 9px}.style-block>.form{gap:14px}.style-block input[type=color]{min-height:42px}
/* Brand controls and template previews. */
.brand-color-editor{display:flex;gap:24px;align-items:center;flex-wrap:wrap}.color-wheel{width:160px;height:160px;border-radius:50%;background:radial-gradient(circle,white,transparent),conic-gradient(from 90deg,red,#ff0,#0f0,#0ff,#00f,#f0f,red);flex:none;touch-action:none;cursor:crosshair;border:1px solid #dce1e8}.brand-color-editor>.form{flex:1;min-width:130px}.brand-color-editor input[type=color]{width:100%;height:46px;padding:4px}.logo-upload-preview{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:16px;background:#f5f7fa;border:1px dashed var(--line);border-radius:10px}.logo-upload-preview img{max-width:180px;max-height:90px;object-fit:contain}.template-option{min-width:0}.template-option small{font-size:10px;line-height:1.4}.template-option>.template-thumbnail{width:56px;height:68px;padding:7px 5px;border:1px solid #dce1e8;background:white;display:grid;gap:6px;align-content:start}.template-thumbnail i{display:block;height:4px;background:#dce1e8}.template-thumbnail i:last-child{height:17px;background:repeating-linear-gradient(#edf0f4 0 2px,white 2px 5px)}.template-option>.thumb-modern{border-top:5px solid var(--orange)}.thumb-modern i:first-child{width:50%;justify-self:end;background:var(--orange)}.template-option>.thumb-classic{border-top:3px double #344256}.thumb-classic i:first-child{width:60%;justify-self:center;background:#344256}.thumb-classic i:nth-child(2){height:8px;border-top:1px solid #aaa;border-bottom:1px solid #aaa;background:white}.template-option>.thumb-minimal{padding:12px 7px;gap:10px}.thumb-minimal i{height:2px}.template-option>.thumb-bold{border:1px solid #2563eb;padding:0 4px 5px}.thumb-bold i:first-child{background:#2563eb;height:22px;margin:0 -4px}.sales-preview>summary{cursor:pointer;list-style:none}.sales-preview>summary::after{content:'⌄';font-size:20px;margin-left:auto}.sales-preview:not([open]){padding-bottom:0}.sales-preview:not([open])>summary::after{content:'›'}
/* Phone layouts: readable records without sideways table scrolling. */
@media(max-width:720px){
 body{font-size:15px}.main{padding:20px 14px}.heading{flex-direction:column;gap:16px}.heading p{font-size:14px}.heading .button-row{max-width:none;width:100%;justify-content:flex-start;flex-wrap:wrap}.heading .button-row>.btn{flex:1 1 140px}.btn,.btn.small,button.tab{font-size:13px;min-height:44px;padding:10px 14px}.btn{white-space:normal;line-height:1.4;text-align:center}.btn:hover{transform:none}input,select,textarea{font-size:16px;min-height:44px;width:100%}input[type=checkbox],input[type=radio]{width:20px;height:20px;min-height:20px;flex:none}.check-row{align-items:center;gap:10px}label{font-size:14px}label small,.field-note{font-size:12px}.form-grid{grid-template-columns:minmax(0,1fr)}.form,.sales-form,.panel-body,.settings-grid,.sales-editor{min-width:0}.panel-body{padding:16px}.panel-header{padding:16px;gap:12px;flex-wrap:wrap}.panel-header h2{font-size:17px}.panel-header small{font-size:12px}.panel-header>.btn{max-width:100%}.toolbar{gap:12px}.tabs{justify-content:flex-start;gap:6px;flex-wrap:wrap}.tab{padding:8px 12px!important}.filters{width:100%;min-width:0}.search-wrap{width:100%;min-width:0}.search-wrap input{font-size:16px}.table-scroll{overflow:visible}.responsive-records,.responsive-records tbody{display:block;width:100%;min-width:0}.responsive-records thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.responsive-records tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;padding:18px 16px;border-bottom:1px solid var(--line);background:#fff}.responsive-records td{display:block;padding:0!important;border:0;min-width:0;white-space:normal;overflow-wrap:anywhere;font-size:14px;text-align:start!important}.responsive-records td::before{content:attr(data-label);display:block;font-size:11px;font-weight:600;color:#697587;margin-bottom:6px}.responsive-records td:first-child{grid-column:1/-1;font-size:16px}.responsive-records td:first-child::before,.responsive-records td:last-child::before{display:none}.responsive-records td:last-child{grid-column:1/-1;display:flex;justify-content:flex-end}.responsive-records td:last-child>button{min-height:44px;min-width:44px}.responsive-records td[colspan]{grid-column:1/-1}.responsive-records .supplier-avatar{width:36px;height:36px;flex:none}.responsive-records .supplier{align-items:flex-start;min-width:0}.responsive-records .supplier>div{min-width:0}.responsive-records .supplier small{white-space:normal;font-size:12px;overflow-wrap:anywhere}.responsive-records td:has(.invoice-row-actions){grid-column:1/-1}.invoice-row-actions{min-width:0;gap:12px;justify-content:space-between}.invoice-row-actions .btn{font-size:13px}.table-footer{gap:12px;flex-wrap:wrap;padding:16px;font-size:12px}.stats .stat-value{font-size:28px}.stat-top,.stat-bottom{font-size:12px}.stat{min-width:0}.stat-top{gap:6px;flex-wrap:wrap}.key-value{gap:12px;align-items:flex-start;flex-wrap:wrap;font-size:14px}.key-value strong{overflow-wrap:anywhere;max-width:100%;text-align:start}.integration-card{padding:18px;min-width:0}.integration-card p{overflow-wrap:anywhere}.button-row{flex-wrap:wrap}.lang{width:auto;min-width:0;max-width:145px;font-size:14px}.topbar .mobile-menu{min-height:44px;min-width:44px;align-items:center;justify-content:center}.topbar{padding:0 12px}.sidebar{width:min(290px,90vw);overflow-y:auto}.nav-link{min-height:46px;font-size:15px}.nav-caption{font-size:11px}.preview-notice{font-size:12px;padding:12px 16px}.preview-notice .icon{display:none}.sales-editor{display:flex;flex-direction:column;gap:18px}.sales-form,.sales-preview{width:100%}.sales-preview{position:static}.sales-preview iframe{height:780px}.sales-line{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.sales-line .line-description{grid-column:1/-1}.sales-line label{font-size:13px}.sales-line input{padding:11px}.sales-line>button{justify-self:end;min-width:44px}.template-options{grid-template-columns:repeat(2,minmax(0,1fr))}.template-option{font-size:14px;padding:16px 10px;min-height:120px}.template-option small{font-size:12px}.style-block{padding:12px}.style-block-toolbar{flex-wrap:wrap}.style-block-toolbar>strong{font-size:15px;flex:1 1 110px}.style-block .btn.small{min-width:44px;min-height:44px;padding:8px}.style-element-head{flex-wrap:wrap;font-size:13px}.style-element-head>div{margin-left:auto}.brand-color-editor{gap:16px}.color-wheel{width:145px;height:145px}.brand-color-editor>.form{min-width:110px}.modal-actions{width:100%}.modal-actions>.btn{flex:1 1 130px;min-height:46px}dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);padding:20px;overflow:auto}.modal-title h2{font-size:22px}.modal-close{min-width:44px;min-height:44px}.modal-intro{font-size:14px}.site-header{height:auto;min-height:78px;flex-wrap:wrap;padding:15px;gap:15px}.site-header nav{margin-left:auto}.hero h1{font-size:37px}.hero p{font-size:16px}.site-footer{gap:14px;flex-wrap:wrap}.auth-card{padding:24px;max-width:100%}.auth-wrap{padding:22px 14px}
}
@media(max-width:370px){.brand-color-editor{flex-direction:column;align-items:stretch}.color-wheel{align-self:center}.stats{grid-template-columns:1fr}.responsive-records tr{gap:12px}.top-actions{gap:6px}.lang{max-width:120px}.hero h1{font-size:32px}}
