:root{--bg:#f5f7fb;--panel:#fff;--ink:#172033;--muted:#6d778b;--line:#e5e9f1;--brand:#4f46e5;--brand2:#7c3aed}
.settings-tabs.ten-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}@media(max-width:1050px){.settings-tabs.ten-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.settings-tabs.ten-tabs{grid-template-columns:1fr 1fr}}
.header-admin-menu{position:relative;flex:0 0 auto}.header-admin-menu>summary{display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--line);border-radius:10px;color:#475569;font-size:18px;line-height:1;list-style:none;background:#fff;cursor:pointer;transition:border-color .15s ease,color .15s ease,background-color .15s ease}.header-admin-menu>summary::-webkit-details-marker{display:none}.header-admin-menu>summary:hover,.header-admin-menu[open]>summary{border-color:#a5b4fc;color:#4338ca;background:#eef2ff}.header-admin-menu>nav{position:absolute;z-index:85;top:calc(100% + 9px);right:0;display:grid;gap:4px;width:210px;padding:10px;border:1px solid #dfe4ee;border-radius:13px;background:#fff;box-shadow:0 18px 44px #1720332e}.header-admin-menu>nav strong{padding:7px 9px 8px;color:#64748b;font-size:10px;letter-spacing:.1em;text-transform:uppercase}.header-admin-menu>nav a{padding:10px 11px;border-radius:9px;color:#334155;font-size:13px;font-weight:800;text-decoration:none}.header-admin-menu>nav a:hover,.header-admin-menu>nav a.active{color:#3730a3;background:#eef2ff}html[dir="rtl"] .header-admin-menu>nav{right:auto;left:0}@media(max-width:700px){.header-admin-menu>summary{width:34px;height:34px}.header-admin-menu>nav{position:fixed;top:72px;right:12px;left:auto;width:min(250px,calc(100vw - 24px))}html[dir="rtl"] .header-admin-menu>nav{right:auto;left:12px}}
.settings-tabs.nine-tabs{grid-template-columns:repeat(9,minmax(0,1fr))}.modal-head-actions{display:flex;align-items:center;gap:8px}.openai-settings{display:grid;gap:16px;max-width:1180px;color:var(--ink);text-align:start}.openai-settings-head,.openai-settings-card{padding:22px 24px;border:1px solid #dfe5f2;border-radius:16px;background:#fff;box-shadow:0 10px 28px #27345d0a}.openai-settings-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;background:radial-gradient(circle at 90% 10%,#ede9fe,transparent 34%),linear-gradient(135deg,#fff,#f8f7ff)}.openai-settings-head h3,.openai-settings-head p{margin:0}.openai-settings-head h3{margin:4px 0 7px;font-size:22px}.openai-settings-head>div>p:last-child{max-width:800px;color:var(--muted);line-height:1.55}.openai-settings-card{display:grid;gap:15px}.openai-settings-card>label{display:grid;gap:6px}.openai-settings-card>label small,.openai-settings-card .form-grid small{display:block;margin-top:5px;color:var(--muted);font-size:11px;line-height:1.45}.openai-usage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.openai-usage>div{display:grid;gap:4px;padding:13px 15px;border:1px solid #e0e7ff;border-radius:12px;background:#f8faff}.openai-usage small{color:var(--muted);font-size:11px;font-weight:700}.openai-usage strong{color:#3730a3;font-size:20px}.openai-assistant-launcher{position:fixed;right:24px;bottom:24px;z-index:40;display:grid;place-items:center;width:54px;height:54px;padding:0;border:0;border-radius:50%;color:#fff;font-size:24px;line-height:1;cursor:grab;background:linear-gradient(135deg,#4f46e5,#7c3aed);box-shadow:0 12px 28px #312e8180}.openai-assistant-launcher:hover{transform:translateY(-2px);box-shadow:0 16px 32px #312e81a0}.openai-assistant-launcher.dragging{cursor:grabbing;transform:none}.openai-chat-modal,.openai-review-modal{display:grid;gap:14px;max-width:620px}.openai-chat-backdrop{z-index:50}.openai-privacy-note{margin:0;padding:12px 14px;border:1px solid #ddd6fe;border-radius:10px;color:#4c1d95;font-size:12px;line-height:1.5;background:#f5f3ff}.openai-chat-log{display:grid;gap:10px;min-height:155px;max-height:360px;padding:6px;overflow:auto}.openai-chat-log>p{margin:auto;color:var(--muted);font-size:13px}.openai-chat-log article{display:grid;gap:4px;max-width:88%;padding:10px 12px;border-radius:12px;background:#f1f5f9}.openai-chat-log article.user{justify-self:end;color:#fff;background:#4f46e5}.openai-chat-log article strong{font-size:11px}.openai-chat-log article p{margin:0;white-space:pre-wrap;font-size:13px;line-height:1.48}.openai-chat-log article small{display:grid;gap:3px;font-size:10px}.openai-chat-log article a{overflow-wrap:anywhere;color:inherit}.openai-chat-compose{display:grid;gap:8px}.openai-chat-compose textarea{width:100%;resize:vertical}.openai-chat-compose>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.openai-chat-compose small{margin-inline-end:auto;color:var(--muted);font-size:11px}.openai-review-button{color:#6d28d9!important}.openai-review-result{display:grid;gap:8px;padding:15px;border:1px solid #ddd6fe;border-radius:12px;background:#faf9ff}.openai-review-result h4,.openai-review-result p{margin:0}.openai-review-result p{white-space:pre-wrap;line-height:1.55}.openai-review-result ul{display:grid;gap:6px;margin:0;padding-inline-start:20px}.openai-review-result a{overflow-wrap:anywhere}@media(max-width:1050px){.settings-tabs.nine-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.settings-tabs.nine-tabs{grid-template-columns:1fr 1fr}.openai-settings-head{display:grid;padding:18px}.openai-settings-card{padding:18px}.openai-chat-modal,.openai-review-modal{width:min(100%,calc(100vw - 24px))}.openai-chat-compose>div{flex-wrap:wrap}.openai-chat-compose small{width:100%}}
.customers-loading{display:flex;align-items:center;gap:13px;min-height:88px;padding:19px 21px;border:1px solid #c7d2fe;border-radius:17px;color:#312e81;background:linear-gradient(135deg,#eef2ff,#fafbff);box-shadow:0 8px 24px #29335508}.customers-loading>span{width:25px;height:25px;border:3px solid #c7d2fe;border-top-color:#4f46e5;border-radius:50%;animation:customers-loading-spin .8s linear infinite}.customers-loading strong,.customers-loading p{display:block;margin:0}.customers-loading strong{font-size:14px}.customers-loading p{margin-top:3px;color:#64748b;font-size:13px}@keyframes customers-loading-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.customers-loading>span{animation:none}}
.operation-progress{display:flex;align-items:center;gap:11px;margin-top:12px;padding:12px 14px;border:1px solid #c7d2fe;border-radius:11px;color:#312e81;background:#eef2ff}.operation-progress>span{width:18px;height:18px;border:2px solid #c7d2fe;border-top-color:#4f46e5;border-radius:50%;animation:operation-progress-spin .8s linear infinite}.operation-progress strong,.operation-progress small{display:block}.operation-progress strong{font-size:12px}.operation-progress small{margin-top:2px;color:#64748b;font-size:11px;line-height:1.4}@keyframes operation-progress-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.operation-progress>span{animation:none}}.legacy-import-item-preview{display:grid;gap:6px}.legacy-import-item-preview>div{display:grid;gap:2px;min-width:150px}.legacy-import-item-preview small{color:var(--muted);font-size:11px;line-height:1.35}
.company-logo-settings{margin-top:18px;padding:18px;border:1px solid #dfe5ef;border-radius:14px;background:#fbfcff}.company-logo-settings .section-head{margin-bottom:13px}.company-logo-preview{display:flex;align-items:center;gap:14px;margin-top:13px}.company-logo-preview img{width:54px;height:54px;object-fit:contain;padding:5px;border:1px solid #dfe5ef;border-radius:10px;background:#fff}.brand .brand-logo{width:36px;height:36px;flex:0 0 36px;object-fit:contain;padding:3px;border-radius:11px;background:#fff}
.overview-dashboard{display:grid;gap:20px;max-width:1440px}.overview-hero{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:30px 32px;border:1px solid #dce4ff;border-radius:22px;color:#eef2ff;background:radial-gradient(circle at 88% 12%,#818cf860,transparent 30%),linear-gradient(135deg,#172554,#312e81)}.overview-hero .kicker{color:#c7d2fe}.overview-hero h1{margin:0;font-size:31px;letter-spacing:-.03em}.overview-hero p:not(.kicker){max-width:650px;margin:9px 0 0;color:#cbd5e1;line-height:1.55}.overview-hero-actions{display:flex;gap:10px;flex:0 0 auto}.overview-hero .action{border-color:#ffffff35;color:#fff;background:#ffffff12}.overview-hero .primary{box-shadow:0 12px 28px #02061750}.overview-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.overview-kpi{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:13px;padding:18px;border:1px solid var(--line);border-radius:17px;color:var(--ink);text-decoration:none;background:#fff;box-shadow:0 8px 24px #29335508;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.overview-kpi:hover{border-color:#c7d2fe;box-shadow:0 14px 30px #3730a318;transform:translateY(-2px)}.overview-kpi>span{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;color:#4f46e5;font-size:21px;font-weight:900;background:#eef2ff}.overview-kpi.pipeline>span{color:#0369a1;background:#e0f2fe}.overview-kpi.warning>span{color:#a16207;background:#fef3c7}.overview-kpi.lead>span{color:#7e22ce;background:#f3e8ff}.overview-kpi small,.overview-kpi p{margin:0;color:var(--muted);font-size:12px;font-weight:700}.overview-kpi strong{display:block;margin:3px 0;font-size:23px;letter-spacing:-.03em}.overview-kpi p{color:#4f46e5}.overview-kpi>b{color:#94a3b8;font-size:19px}.overview-main-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:20px}.overview-lower-grid{grid-template-columns:1.1fr .9fr}.overview-panel{min-width:0;padding:22px;border:1px solid var(--line);border-radius:18px;background:var(--panel);box-shadow:0 8px 24px #29335508}.overview-panel>header{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:17px}.overview-panel .kicker{margin-bottom:4px;font-size:10px}.overview-panel h2{margin:0;font-size:19px;letter-spacing:-.02em}.overview-panel header>div>small{display:block;margin-top:5px;color:var(--muted);font-size:12px}.lead-stage-list,.attention-list,.lead-preview-list{display:grid;gap:7px}.lead-stage,.attention-item,.lead-preview{display:flex;align-items:center;gap:11px;padding:10px 11px;border-radius:12px;color:var(--ink);text-decoration:none}.lead-stage:hover,.attention-item:hover,.lead-preview:hover{background:#f7f8ff}.lead-stage-dot{width:9px;height:9px;border-radius:50%;background:#94a3b8;box-shadow:0 0 0 4px #94a3b822}.lead-stage-dot.new{background:#6366f1;box-shadow:0 0 0 4px #6366f122}.lead-stage-dot.contacted{background:#0ea5e9;box-shadow:0 0 0 4px #0ea5e922}.lead-stage-dot.qualified{background:#10b981;box-shadow:0 0 0 4px #10b98122}.lead-stage-dot.lost{background:#94a3b8}.lead-stage div{display:grid;gap:2px}.lead-stage strong,.attention-item strong,.lead-preview strong{font-size:13px}.lead-stage small,.attention-item small,.lead-preview small{color:var(--muted);font-size:12px}.lead-stage>b{margin-inline-start:auto;display:grid;place-items:center;min-width:28px;height:28px;border-radius:9px;color:#475569;font-size:12px;background:#f1f5f9}.attention-item{padding:11px}.attention-icon{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:10px;color:#4f46e5;font-weight:900;background:#eef2ff}.attention-icon.lead-icon{color:#7e22ce;background:#f3e8ff}.attention-item>div{display:grid;min-width:0;gap:3px}.attention-item .priority{margin-inline-start:auto}.overview-empty{display:grid;justify-items:start;gap:7px;padding:19px 11px;color:var(--muted);text-align:start}.overview-empty strong{color:#334155;font-size:14px}.overview-empty p{margin:0;font-size:13px;line-height:1.45}.lead-preview{padding:10px}.lead-preview>span{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:11px;color:#7e22ce;font-size:12px;font-weight:900;background:#f3e8ff}.lead-preview>div{display:grid;min-width:0;gap:3px}.lead-badge{margin-inline-start:auto;padding:5px 8px;border-radius:999px;color:#64748b;font-size:10px;font-style:normal;font-weight:800;background:#f1f5f9}.lead-badge.qualified{color:#047857;background:#d1fae5}.lead-badge.new{color:#4338ca;background:#e0e7ff}.lead-badge.contacted{color:#0369a1;background:#e0f2fe}.revenue-breakdown{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.revenue-breakdown>div{padding:13px;border-radius:12px;background:#f8fafc}.revenue-breakdown small{display:block;color:var(--muted);font-size:11px;font-weight:700}.revenue-breakdown strong{display:block;margin-top:5px;font-size:17px;letter-spacing:-.03em}.revenue-meter{height:9px;margin-top:21px;overflow:hidden;border-radius:999px;background:#e9edf5}.revenue-meter span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#4f46e5,#8b5cf6)}.revenue-note{margin:9px 0 0;color:var(--muted);font-size:12px}.overview-documents{padding-bottom:18px}.overview-documents .table-wrap{border-radius:12px}.overview-documents td small{display:block;margin-top:3px;color:var(--muted);font-size:11px}
.customer-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.customer-stat-grid>div{padding:15px;border:1px solid #e5e7f5;border-radius:13px;background:linear-gradient(135deg,#fafbff,#f5f3ff)}.customer-stat-grid small{display:block;color:var(--muted);font-size:11px;font-weight:800}.customer-stat-grid strong{display:block;margin-top:7px;color:#312e81;font-size:25px;letter-spacing:-.04em}.customer-status-summary{display:flex;flex-wrap:wrap;gap:13px;margin-top:16px;color:var(--muted);font-size:12px;font-weight:700}.customer-status-summary span{display:flex;align-items:center;gap:6px}.status-dot{width:8px;height:8px;border-radius:50%;background:#94a3b8}.status-dot.active{background:#10b981}.status-dot.prospect{background:#8b5cf6}.status-dot.inactive{background:#94a3b8}.overview-widget-editor{width:min(660px,100%)}.overview-widget-editor>p{margin:0 0 16px;color:var(--muted);font-size:13px}.overview-widget-options{display:grid;gap:8px;max-height:52vh;overflow:auto;padding-right:3px}.overview-widget-options label{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:#fafbff}.overview-widget-options label>span{display:grid;gap:4px}.overview-widget-options strong{color:var(--ink);font-size:13px}.overview-widget-options small{color:var(--muted);font-size:12px;font-weight:600}.overview-widget-options input{width:18px;height:18px;accent-color:var(--brand)}
@media(max-width:1050px){.overview-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-main-grid,.overview-lower-grid{grid-template-columns:1fr}}@media(max-width:650px){.overview-hero{align-items:stretch;flex-direction:column;padding:24px}.overview-hero h1{font-size:25px}.overview-hero-actions{display:grid;grid-template-columns:1fr 1fr}.overview-hero-actions a,.overview-hero-actions button{text-align:center}.overview-kpis{grid-template-columns:1fr}.overview-panel{padding:17px}.revenue-breakdown,.customer-stat-grid{grid-template-columns:1fr}.overview-documents table{min-width:650px}.overview-widget-options label{align-items:start}.overview-widget-options input{margin-top:4px}}
.customers-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 2px 0;color:var(--muted);font-size:13px;font-weight:700}.customers-pagination>div{display:flex;gap:8px}.customers-pagination .action{min-width:80px}.customers-pagination .action:disabled{cursor:not-allowed;opacity:.45}
*{box-sizing:border-box}html{min-width:320px}body{margin:0;overflow-x:hidden;background:var(--bg);color:var(--ink);font-family:Arial,Helvetica,sans-serif}button,input,select,textarea{font:inherit}.brand{display:flex;align-items:center;gap:12px;font-size:19px;font-weight:800}.brand span{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;color:#fff;background:linear-gradient(135deg,var(--brand),var(--brand2))}
.login-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 20% 20%,#dfe6ff,transparent 35%),radial-gradient(circle at 80% 80%,#eadcff,transparent 35%),#f7f8fc}.login-card{width:min(440px,100%);padding:38px;border:1px solid #e4e7ef;border-radius:24px;background:#fffffff2;box-shadow:0 30px 80px #2b35601a}.kicker{margin:0 0 7px;color:var(--brand);font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.login-card .kicker{margin-top:28px}.login-card h1{font-size:36px;margin:8px 0}.muted,.page-head p{color:var(--muted);line-height:1.6}.login-card form{display:grid;gap:17px;margin-top:25px}label{display:grid;gap:7px;color:#424b5f;font-size:13px;font-weight:700}input{padding:12px 13px;border:1px solid #d9deea;border-radius:10px;background:#fff;outline:none}.primary{border:0;border-radius:10px;padding:13px 18px;color:#fff;font-weight:800;background:linear-gradient(135deg,var(--brand),var(--brand2));cursor:pointer}.demo-note{margin-top:20px;padding:12px;border-radius:10px;color:#59657b;font-size:13px;background:#f2f4f8}.app-version{color:#8a94a8;font-size:11px;font-weight:700;letter-spacing:.02em}.login-card>.app-version{margin-top:12px;text-align:center}.aside-footer .app-version{padding-top:0;color:#66738b}
.app-shell{min-height:100vh;display:grid;grid-template-columns:280px 1fr}aside{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:26px 20px 20px;overflow:hidden;color:#dbe2f3;background:linear-gradient(180deg,#0f172a 0%,#111827 100%);box-shadow:inset -1px 0 0 #ffffff0d}.aside-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-bottom:18px}.aside-head .brand{flex:1 1 auto;padding:0;color:#fff;text-decoration:none}.brand{display:flex;align-items:center;gap:12px}.brand span{display:grid;place-items:center;flex:0 0 auto;width:42px;height:42px;border-radius:14px;color:#fff;font-size:17px;font-weight:800;background:linear-gradient(135deg,var(--brand),var(--brand2));box-shadow:0 16px 32px #4f46e53d}.brand div{display:grid;gap:2px}.brand strong{font-size:18px;line-height:1.1}.brand small{color:#94a3b8;font-size:12px;font-weight:600}.mobile-nav-close{width:38px;height:38px;border:1px solid #ffffff14;border-radius:12px;color:#dbe4f3;font-size:26px;line-height:1;background:#ffffff0f;cursor:pointer;transition:background-color .15s ease,transform .15s ease}.mobile-nav-close:hover{background:#ffffff18;transform:translateY(-1px)}.nav-section{display:grid;gap:10px;min-height:0;padding-top:14px}.nav-label{margin:0;padding:0 10px;color:#94a3b8;font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.nav-list{display:grid;gap:6px;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:4px;scrollbar-width:thin;scrollbar-color:#475569 transparent}.nav-list::-webkit-scrollbar{width:6px}.nav-list::-webkit-scrollbar-thumb{border-radius:99px;background:#475569}.nav-link{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;color:#b9c3d8;text-decoration:none;font-weight:700;line-height:1.2;transition:background-color .15s ease,color .15s ease,transform .15s ease,box-shadow .15s ease}.nav-link::before{content:"";width:8px;height:8px;border-radius:50%;background:#64748b;box-shadow:0 0 0 4px #64748b1a;transition:background-color .15s ease,box-shadow .15s ease}.nav-link:hover{color:#fff;transform:translateX(2px);background:#ffffff0d}.nav-link:hover::before{background:#93c5fd;box-shadow:0 0 0 4px #60a5fa26}.nav-link.active{color:#fff;background:linear-gradient(135deg,#4f46e533,#7c3aed26);box-shadow:inset 0 0 0 1px #8b5cf633}.nav-link.active::before{background:#fff;box-shadow:0 0 0 4px #ffffff22}.aside-footer{position:static;flex:0 0 auto;display:grid;gap:12px;margin-top:auto;padding-top:18px}.tenant-card{display:grid;gap:3px;padding:14px 15px;border:1px solid #ffffff12;border-radius:16px;background:#ffffff09}.tenant-card small{color:#aab4c7;font-size:12px;font-weight:600}.tenant-card strong{color:#f8fafc;font-size:13px;font-weight:700}.signout-button{width:100%;padding:11px 14px;border:1px solid #ffffff14;border-radius:14px;color:#dbe4f3;font-weight:800;background:#ffffff0d;cursor:pointer;transition:background-color .15s ease,transform .15s ease}.signout-button:hover{background:#ffffff18;transform:translateY(-1px)}.workspace{min-width:0}.workspace header{height:88px;display:flex;align-items:center;justify-content:space-between;padding:0 34px;border-bottom:1px solid var(--line);background:#fff}.workspace h2{margin:0;font-size:27px}.user{display:flex;align-items:center;gap:11px}.user>span{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;color:#fff;font-weight:800;background:linear-gradient(135deg,#0ea5e9,#4f46e5)}.user div{display:grid}.user small{color:var(--muted)}.content{padding:30px 34px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}.card{padding:22px;border:1px solid var(--line);border-radius:16px;background:var(--panel);box-shadow:0 8px 24px #29335508}.stat small{color:var(--muted);font-weight:700}.stat strong{display:block;margin-top:10px;font-size:30px}.stat p{margin:8px 0 0;color:#0f9d68;font-size:12px}.two-col{display:grid;grid-template-columns:1.2fr .8fr;gap:18px}.section-head,.page-head{display:flex;align-items:center;justify-content:space-between;margin:28px 0 14px}.section-head h3,.page-head h3{margin:0;font-size:19px}.page-head p{margin:5px 0}.action{padding:9px 13px;border:1px solid #d8ddea;border-radius:9px;color:#394258;font-weight:700;background:#fff;cursor:pointer}.small{padding:10px 14px}.chart{height:215px;display:flex;align-items:end;gap:12px}.chart span{flex:1;min-height:20px;border-radius:8px 8px 3px 3px;background:linear-gradient(#818cf8,#4f46e5)}.platform{display:grid;gap:20px}.platform p{display:grid;grid-template-columns:12px 1fr;margin:0;font-weight:700}.platform i{width:9px;height:9px;margin-top:4px;border-radius:50%;background:#6366f1}.platform small{grid-column:2;color:var(--muted);font-weight:400}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px;background:#fff}table{width:100%;border-collapse:collapse}th,td{padding:14px 16px;border-bottom:1px solid #edf0f5;text-align:left;white-space:nowrap}th{color:#6d778b;font-size:11px;letter-spacing:.08em;text-transform:uppercase;background:#fafbfc}td{font-size:14px}.badge{display:inline-block;padding:5px 9px;border-radius:999px;color:#197251;font-size:11px;font-weight:800;background:#e6f8f0}.notice{padding:13px 16px;border:1px solid #b7ead5;border-radius:10px;color:#126746;background:#ecfbf5}
.customer-table table{min-width:2250px}.customer-table th:first-child,.customer-table td:first-child{position:sticky;z-index:1;left:0;background:#fff}.customer-table th:first-child{z-index:2;background:#fafbfc}.customer-table th:last-child,.customer-table td:last-child{position:sticky;z-index:1;right:0;background:#fff}.customer-table th:last-child{z-index:2;background:#fafbfc}[dir="rtl"] .customer-table th:first-child,[dir="rtl"] .customer-table td:first-child{right:0;left:auto}[dir="rtl"] .customer-table th:last-child,[dir="rtl"] .customer-table td:last-child{right:auto;left:0}
input[readonly]{background:#f3f5f7;color:#53606d;cursor:not-allowed}.field-help{display:block;margin-top:5px;color:#6b7785;font-size:12px;font-weight:500}
@media(max-width:950px){.stats{grid-template-columns:repeat(2,1fr)}.two-col{grid-template-columns:1fr}}@media(max-width:700px){.app-shell{grid-template-columns:1fr}aside{position:fixed;z-index:60;inset:0 auto 0 0;width:min(320px,88vw);height:100vh;transform:translateX(-100%);transition:transform .2s ease}.app-shell.mobile-menu-open aside{transform:translateX(0)}.mobile-menu-backdrop{position:fixed;inset:0;z-index:55;display:none;border:0;background:#0f172acc;backdrop-filter:blur(3px)}.app-shell.mobile-menu-open .mobile-menu-backdrop{display:block}.nav-list{max-height:calc(100vh - 290px)}.workspace header{padding:18px;height:auto}.content{padding:20px}.stats{grid-template-columns:1fr}.mobile-header-title{gap:12px}}
.text-button{border:0;color:var(--brand);font-weight:800;background:transparent;cursor:pointer}.badge.draft{color:#8a5a06;background:#fff4d6}.modal-backdrop{position:fixed;z-index:50;inset:0;display:grid;place-items:center;padding:24px;background:#111827aa;backdrop-filter:blur(3px)}.modal{width:min(720px,100%);max-height:92vh;overflow:auto;padding:26px;border-radius:18px;background:#fff;box-shadow:0 30px 90px #0004}.modal-head{display:flex;align-items:start;justify-content:space-between;padding-bottom:18px;border-bottom:1px solid var(--line)}.modal-head h3{margin:0;font-size:24px}.close{width:38px;height:38px;border:0;border-radius:10px;color:#657086;font-size:26px;background:#f1f3f7;cursor:pointer}.invoice-form{display:grid;gap:17px;padding-top:20px}.invoice-form select{padding:12px 13px;border:1px solid #d9deea;border-radius:10px;background:#fff}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-grid.three{grid-template-columns:repeat(3,1fr)}.invoice-totals{margin-top:6px;margin-left:auto;width:min(340px,100%);border:1px solid var(--line);border-radius:12px;overflow:hidden}.invoice-totals div{display:flex;justify-content:space-between;padding:10px 13px;border-bottom:1px solid var(--line)}.invoice-totals div:last-child{border-bottom:0}.invoice-totals .total{font-size:17px;background:#eef2ff}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.invoice-preview{width:min(850px,100%)}.document{padding:30px 6px}.document-head{display:flex;justify-content:space-between;padding-bottom:22px;border-bottom:3px solid var(--brand);line-height:1.7}.document-head h2{margin:0;font-size:30px}.document-meta{display:grid;grid-template-columns:2fr 1fr 1fr;gap:18px;margin:25px 0}.document-meta p{display:grid;gap:5px}.document-meta span{color:var(--muted);font-size:12px}.document table th,.document table td{text-align:right}.document-total{margin-top:25px;margin-right:auto;margin-left:0}
@media print{body *{visibility:hidden}.invoice-preview,.invoice-preview *{visibility:visible}.invoice-preview{position:fixed;inset:0;width:100%;max-height:none;padding:0;box-shadow:none}.no-print{display:none!important}.document{padding:20px}}
@media(max-width:700px){.form-grid,.form-grid.three,.document-meta{grid-template-columns:1fr}.modal-backdrop{padding:10px}.modal{padding:18px}}
.security-note{margin-top:18px;padding:14px 16px;border:1px solid #c7d2fe;border-radius:12px;color:#44506a;background:#eef2ff}.modal.wide{width:min(1050px,100%)}.builder-head{display:flex;align-items:center;justify-content:space-between}.builder-head h4{margin:5px 0}.field-list{display:grid;gap:10px}.field-row{display:grid;grid-template-columns:1.1fr 1fr 130px 1.4fr 38px;gap:9px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fafbfc}.field-row input,.field-row select{width:100%;padding:10px;border:1px solid #d9deea;border-radius:8px;background:#fff}.check{display:flex;grid-auto-flow:column;justify-content:start;align-items:center}.check input{width:auto}.remove{height:36px;border:0;border-radius:8px;color:#b42318;font-size:20px;background:#feeceb;cursor:pointer}.remove:disabled{opacity:.3}.formula-output{padding:13px;border:1px solid #c7d2fe;border-radius:10px;color:#3730a3;font-size:18px;font-weight:800;background:#eef2ff}.invoice-form label small{color:var(--muted);font-weight:400}
@media(max-width:900px){.field-row{grid-template-columns:1fr 1fr}.field-row .remove{grid-column:2}} 
.admin-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:18px;align-items:start}.permission-card{padding:22px;border:1px solid var(--line);border-radius:14px;background:#fff}.permission-card h3{margin:0}.role-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:20px 0}.role-tabs button{padding:8px 11px;border:1px solid var(--line);border-radius:8px;color:var(--muted);background:#fff;cursor:pointer}.role-tabs button.selected{border-color:#a5b4fc;color:#3730a3;font-weight:800;background:#eef2ff}.permission-list{display:grid}.permission-list label{display:flex;align-items:center;justify-content:space-between;padding:12px 3px;border-bottom:1px solid var(--line)}.permission-list label span{display:grid;gap:2px}.permission-list small{color:var(--muted);font-weight:400}.permission-list input{width:18px;height:18px}.badge.inactive{color:#7f1d1d;background:#fee2e2}
@media(max-width:1000px){.admin-grid{grid-template-columns:1fr}}
.workflow-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.workflow-card{padding:20px;border:1px solid var(--line);border-radius:14px;background:#fff}.workflow-top{display:flex;align-items:center;gap:12px}.workflow-top h3{margin:0}.workflow-top p{margin:4px 0;color:var(--muted);font-size:13px}.workflow-dot{width:11px;height:11px;border-radius:50%;background:#cbd5e1}.workflow-dot.on{background:#22c55e}.switch{display:block;margin-left:auto}.switch input{position:absolute;opacity:0}.switch span{display:block;width:42px;height:24px;padding:3px;border-radius:99px;background:#cbd5e1}.switch span:after{content:"";display:block;width:18px;height:18px;border-radius:50%;background:#fff;transition:.2s}.switch input:checked+span{background:#4f46e5}.switch input:checked+span:after{transform:translateX(18px)}.workflow-flow{display:flex;align-items:center;gap:8px;margin-top:18px;padding:12px;border-radius:10px;background:#f8fafc}.workflow-flow>span{color:#6366f1;font-size:10px;font-weight:900}.workflow-flow code{padding:4px 7px;border-radius:6px;color:#334155;background:#e2e8f0}.workflow-flow strong{font-size:13px}.test-ok,.test-info{padding:11px;border-radius:9px}.test-ok{color:#166534;background:#dcfce7}.test-info{color:#92400e;background:#fef3c7}@media(max-width:850px){.workflow-grid{grid-template-columns:1fr}}
.settings-card{display:grid;gap:20px;max-width:980px;padding:26px;border:1px solid #e3e8f2;border-radius:18px;background:#fff;box-shadow:0 12px 34px #27345d0a}.settings-card input,.settings-card select{width:100%;min-height:44px;padding:11px 13px;border:1px solid #d6dce8;border-radius:10px;background:#fff;transition:border-color .15s ease,box-shadow .15s ease}.settings-card input:focus,.settings-card select:focus{border-color:#818cf8;box-shadow:0 0 0 3px #e0e7ff;outline:0}.audit-tools{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:14px}.audit-tools label{width:min(420px,100%)}.audit-tools span{color:var(--muted);font-size:13px}
.pipeline-stats{grid-template-columns:repeat(3,1fr);margin-bottom:18px}.deal-list{display:grid;gap:11px}.deal-card{display:grid;grid-template-columns:1.5fr .7fr .7fr .8fr;align-items:center;gap:18px;padding:17px 20px;border:1px solid var(--line);border-radius:14px;background:#fff}.deal-card h3{margin:7px 0 3px}.deal-card p{margin:0;color:var(--muted)}.deal-card label{display:flex;align-items:center;gap:7px}.deal-card input{width:72px}.deal-card select,.invoice-form select{padding:10px;border:1px solid #d9deea;border-radius:9px;background:#fff}@media(max-width:900px){.deal-card{grid-template-columns:1fr 1fr}.pipeline-stats{grid-template-columns:1fr}}
.document-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin-bottom:18px}.document-toolbar{display:flex;align-items:center;justify-content:space-between;margin:10px 0}.document-toolbar>div{display:flex;gap:7px}.document-toolbar button{padding:8px 12px;border:1px solid var(--line);border-radius:9px;color:var(--muted);background:#fff;cursor:pointer}.document-toolbar button.selected{border-color:#a5b4fc;color:#3730a3;font-weight:800;background:#eef2ff}.document-toolbar span{color:var(--muted);font-size:13px}.inline-select{padding:7px;border:1px solid var(--line);border-radius:8px;background:#fff}.quote-total{display:flex;align-items:center;justify-content:space-between;padding:16px;border-radius:12px;background:#eef2ff}.quote-total strong{font-size:22px;color:#3730a3}@media(max-width:800px){.document-summary{grid-template-columns:1fr}.document-toolbar{align-items:start;gap:10px;flex-direction:column}}
.page-head-actions{display:flex;align-items:center;gap:9px}.customer-workspace{position:relative;z-index:8;display:grid;grid-template-columns:minmax(260px,.8fr) minmax(480px,1.4fr);align-items:center;gap:22px;margin:0 0 18px;padding:18px 20px;border:1px solid #dfe4ee;border-radius:16px;background:linear-gradient(135deg,#fff,#fafbff);box-shadow:0 8px 24px #29335508}.customer-workspace.active{border-color:#a5b4fc;background:linear-gradient(135deg,#f8faff,#eef2ff)}.customer-workspace-summary>p{margin:0 0 8px;color:#6366f1;font-size:10px;font-weight:900;letter-spacing:.11em;text-transform:uppercase}.customer-workspace-summary>div{display:flex;align-items:center;gap:12px}.customer-workspace-avatar{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:12px;color:#fff;font-size:18px;font-weight:900;background:linear-gradient(135deg,#6366f1,#4338ca)}.customer-workspace-summary h4,.customer-workspace-summary small{margin:0}.customer-workspace-summary h4{font-size:17px}.customer-workspace-summary small{display:block;margin-top:4px;color:#64748b;font-size:11px;line-height:1.45}.customer-workspace-controls{display:grid;grid-template-columns:minmax(260px,1.35fr) minmax(210px,.9fr) auto;align-items:end;gap:10px}.customer-workspace-controls>label{gap:5px;color:#64748b;font-size:11px}.customer-workspace-controls input{width:100%;height:42px}.customer-picker{position:relative}.customer-picker>input{padding:9px 12px;border-color:#cbd5e1}.customer-picker-results{position:absolute;z-index:30;inset-inline:0;top:calc(100% + 7px);max-height:320px;overflow:auto;padding:6px;border:1px solid #d8ddea;border-radius:12px;background:#fff;box-shadow:0 20px 50px #1e293b24}.customer-picker-results button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:10px;border:0;border-radius:8px;color:#1f2937;text-align:start;background:transparent;cursor:pointer}.customer-picker-results button:hover,.customer-picker-results button[aria-selected="true"]{background:#eef2ff}.customer-picker-results button>span{display:grid;gap:2px;min-width:0}.customer-picker-results strong,.customer-picker-results small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.customer-picker-results strong{font-size:12px}.customer-picker-results small{color:#64748b;font-size:10px}.customer-picker-results b{flex:0 0 auto;padding:4px 7px;border-radius:7px;color:#4338ca;font-size:10px;background:#eef2ff}.customer-picker-results>p{margin:0;padding:14px;color:#64748b;font-size:12px;text-align:center}.customer-workspace-clear{min-height:42px;white-space:nowrap}@media(max-width:1100px){.customer-workspace{grid-template-columns:1fr}.customer-workspace-controls{grid-template-columns:minmax(240px,1.3fr) minmax(200px,1fr) auto}}@media(max-width:700px){.page-head-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.page-head-actions button{width:100%}.customer-workspace{padding:16px}.customer-workspace-controls{grid-template-columns:1fr}.customer-workspace-clear{width:100%}}
.row-actions{display:flex;align-items:center;gap:7px;min-width:126px}.icon-button{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #d8ddea;border-radius:9px;color:var(--brand);background:#fff;cursor:pointer;transition:border-color .15s ease,background-color .15s ease,transform .15s ease}.icon-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.icon-button:hover{border-color:#a5b4fc;background:#eef2ff;transform:translateY(-1px)}.icon-button:focus-visible{outline:3px solid #c7d2fe;outline-offset:2px}.icon-button.convert{color:#087a55}.icon-button.convert:hover{border-color:#86d8bb;background:#ecfdf5}.icon-button.danger{color:#b42318}.icon-button.danger:hover{border-color:#f3a6a0;background:#fff1f0}.text-button.danger{color:#b42318}.danger-button{padding:11px 18px;border:0;border-radius:10px;color:#fff;font-weight:800;background:#b42318;cursor:pointer}.danger-button:hover{background:#912018}.confirm-modal{width:min(520px,100%)}.confirm-copy{margin:22px 0 8px;color:#475569;line-height:1.65}
.icon-button.invoice{color:#6d28d9}.icon-button.invoice:hover{border-color:#c4b5fd;background:#f5f3ff}.icon-button.invoice.converted,.icon-button:disabled{cursor:not-allowed;transform:none;opacity:.55}.invoice-row-link{display:block;margin-top:4px;color:#6d28d9;font-size:10px;font-weight:800}.source-document-reference{color:#6d28d9;font-weight:800}.conversion-loading{width:min(480px,100%)}.conversion-loading>p{margin:22px 0 4px;color:#64748b;line-height:1.6}.conversion-source-note{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:4px 12px;padding:15px 17px;border:1px solid #c4b5fd;border-radius:12px;background:#f5f3ff}.conversion-source-note>span{grid-row:1/3;color:#6d28d9;font-size:12px;font-weight:900}.conversion-source-note>strong{font-size:16px}.conversion-source-note>small{color:#64748b}.conversion-totals{width:min(440px,100%)}.invoice-source-print{margin:-12px 0 22px;color:#64748b;font-size:12px;font-weight:700;text-align:right}
.editable-row{cursor:pointer}.editable-row:hover td{background:#f8faff}.editable-row:active td{background:#eef2ff}.editable-row td{transition:background-color .15s ease}
.empty-state{padding:35px;text-align:center;color:var(--muted)}.primary:disabled{cursor:not-allowed;opacity:.45}.receipt-amount{display:grid;gap:8px;margin:34px auto;padding:28px;border:2px solid #c7d2fe;border-radius:16px;text-align:center;background:#eef2ff}.receipt-amount span{color:var(--muted)}.receipt-amount strong{color:#3730a3;font-size:36px}.receipt-amount small{color:var(--muted)}
.report-actions{display:flex;gap:9px}.report-actions select{padding:10px;border:1px solid var(--line);border-radius:9px;background:#fff}.report-period{margin:-5px 0 16px;color:var(--muted);font-size:13px}.report-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}.report-layout{display:grid;grid-template-columns:1.2fr .8fr;gap:18px;margin-top:18px}.report-card{padding:20px}.report-card .section-head{margin:0 0 18px}.report-card .section-head p{margin:4px 0 0;color:var(--muted);font-size:13px}.horizontal-chart{display:grid;gap:16px}.horizontal-chart>div{display:grid;grid-template-columns:130px 1fr 110px;align-items:center;gap:12px;font-size:13px}.horizontal-chart>div>div{height:12px;overflow:hidden;border-radius:99px;background:#eef0f5}.horizontal-chart i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#818cf8,#4f46e5)}.horizontal-chart strong{text-align:right}.stage-report{display:grid;gap:4px}.stage-report>div{display:grid;grid-template-columns:1fr auto;gap:4px;padding:10px 0;border-bottom:1px solid var(--line)}.stage-report small{grid-column:1;color:var(--muted)}.report-table-head{margin-top:26px}@media(max-width:1050px){.report-kpis{grid-template-columns:repeat(2,1fr)}.report-layout{grid-template-columns:1fr}}@media(max-width:700px){.report-kpis{grid-template-columns:1fr}.report-actions{align-items:stretch;flex-direction:column}.horizontal-chart>div{grid-template-columns:95px 1fr}.horizontal-chart strong{grid-column:2}}
.tenant-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.tenant-card{padding:21px;border:1px solid var(--line);border-radius:15px;background:#fff}.tenant-card.suspended{opacity:.72;background:#fafafa}.tenant-head{display:flex;align-items:center;gap:12px}.tenant-head>span{margin-left:auto}.tenant-logo{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;color:#fff;font-weight:900;background:linear-gradient(135deg,#0ea5e9,#4f46e5)}.tenant-head h3{margin:0}.tenant-head p{margin:4px 0 0;color:var(--muted);font-size:12px}.tenant-meta{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:22px 0}.tenant-meta div{display:grid;gap:4px}.tenant-meta small{color:var(--muted)}.usage-bar{height:7px;overflow:hidden;border-radius:99px;background:#edf0f5}.usage-bar i{display:block;height:100%;border-radius:99px;background:#6366f1}.tenant-actions{display:flex;align-items:center;justify-content:space-between;margin-top:18px}.text-button.danger{color:#b42318}@media(max-width:900px){.tenant-grid{grid-template-columns:1fr}}@media(max-width:600px){.tenant-meta{grid-template-columns:1fr 1fr}}
.activity-list{display:grid;gap:10px}.activity-card{display:grid;grid-template-columns:36px 1fr 130px 80px;align-items:center;gap:14px;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:#fff}.activity-card.done{opacity:.62}.activity-card.done h3{text-decoration:line-through}.activity-check{width:28px;height:28px;border:2px solid #cbd5e1;border-radius:8px;color:#fff;font-weight:900;background:#fff;cursor:pointer}.activity-check.checked{border-color:#22c55e;background:#22c55e}.activity-title{display:flex;align-items:center;gap:9px}.activity-title h3{margin:0;font-size:15px}.activity-card p{margin:5px 0 0;color:var(--muted);font-size:13px}.activity-type,.priority{padding:5px 8px;border-radius:7px;font-size:10px;font-weight:900;text-transform:uppercase}.activity-type.task{color:#3730a3;background:#eef2ff}.activity-type.call{color:#0369a1;background:#e0f2fe}.activity-type.meeting{color:#7e22ce;background:#f3e8ff}.activity-due{display:grid;gap:4px}.activity-due small{color:var(--muted)}.priority{text-align:center;color:#475569;background:#f1f5f9}.priority.high{color:#b42318;background:#feeceb}.priority.low{color:#166534;background:#dcfce7}@media(max-width:800px){.activity-card{grid-template-columns:36px 1fr}.activity-due,.priority{grid-column:2}.activity-due{display:flex;gap:8px}}
.permission-pills{display:flex;flex-wrap:wrap;gap:5px}.permission-pills span{padding:4px 7px;border-radius:6px;color:#3730a3;font-size:10px;font-weight:800;background:#eef2ff}.portal-permissions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.portal-permissions label{display:flex;align-items:center;gap:8px;padding:12px;border:1px solid var(--line);border-radius:10px}.portal-permissions input{width:auto}.portal-preview-backdrop{position:fixed;z-index:60;inset:0;overflow:auto;padding:32px;background:#0f172acc}.portal-preview{width:min(980px,100%);min-height:620px;margin:auto;border-radius:20px;overflow:hidden;background:#f7f8fc;box-shadow:0 30px 90px #0005}.portal-preview>header{display:flex;align-items:center;justify-content:space-between;padding:20px 26px;background:#fff}.portal-hero{padding:36px 42px;color:#fff;background:linear-gradient(135deg,#312e81,#6366f1)}.portal-hero h2{margin:5px 0;font-size:32px}.portal-hero p:last-child{margin-bottom:0;color:#dbeafe}.portal-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;padding:24px 32px}.portal-stats article{display:grid;gap:8px;padding:18px;border:1px solid var(--line);border-radius:13px;background:#fff}.portal-stats small{color:var(--muted)}.portal-stats strong{font-size:25px}.portal-documents{margin:0 32px 32px;padding:22px;border:1px solid var(--line);border-radius:14px;background:#fff}.portal-documents>div{display:grid;grid-template-columns:1fr 90px 130px auto;align-items:center;gap:12px;padding:13px 0;border-top:1px solid var(--line)}.portal-documents>div>span:first-child{display:grid}.portal-documents small{color:var(--muted)}@media(max-width:700px){.portal-permissions{grid-template-columns:1fr}.portal-preview-backdrop{padding:10px}.portal-stats{grid-template-columns:1fr}.portal-documents>div{grid-template-columns:1fr 1fr}.portal-documents{margin:0 14px 14px}.portal-hero{padding:28px 24px}}
.file-toolbar{display:flex;align-items:end;gap:14px;margin:14px 0}.file-toolbar label:first-child{width:min(430px,100%)}.file-toolbar select{padding:12px;border:1px solid var(--line);border-radius:10px;background:#fff}.file-grid{display:grid;gap:10px}.file-card{display:grid;grid-template-columns:54px 1fr 150px auto;align-items:center;gap:15px;padding:15px 18px;border:1px solid var(--line);border-radius:14px;background:#fff}.file-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:12px;color:#475569;font-size:10px;font-weight:900;background:#f1f5f9}.file-icon.pdf{color:#b42318;background:#feeceb}.file-icon.image{color:#0369a1;background:#e0f2fe}.file-main h3{margin:0;font-size:15px}.file-main p{margin:5px 0;color:#475569;font-size:13px}.file-main small{color:var(--muted)}.portal-toggle,.share-file{display:flex;align-items:center;gap:7px}.portal-toggle input,.share-file input{width:auto}.upload-zone{padding:24px;border:2px dashed #c7d2fe;border-radius:14px;text-align:center;background:#f5f7ff}.upload-zone input{width:100%;margin:8px 0}.upload-zone span{color:var(--muted);font-weight:400}@media(max-width:800px){.file-card{grid-template-columns:54px 1fr}.portal-toggle,.file-card>.action{grid-column:2}.file-toolbar{align-items:stretch;flex-direction:column}}
.communication-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.communication-grid .section-head{margin-top:8px}.template-list{display:grid;gap:9px}.template-card{display:flex;align-items:center;justify-content:space-between;padding:16px;border:1px solid var(--line);border-radius:13px;background:#fff}.template-card>div{display:flex;align-items:center;gap:11px}.template-card h3{margin:0;font-size:15px}.template-card p{margin:5px 0 0;color:var(--muted);font-size:12px}.delivery-list{padding:6px 18px}.delivery-list>div{display:grid;grid-template-columns:1fr auto 70px;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid var(--line)}.delivery-list>div>span:first-child{display:grid;gap:4px}.delivery-list small{color:var(--muted)}textarea{width:100%;padding:12px;border:1px solid #d9deea;border-radius:10px;resize:vertical;font:inherit}.merge-help{padding:10px;border-radius:8px;color:#475569;font-size:12px;background:#f1f5f9}.readiness-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.readiness-grid article{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:12px;padding:16px;border:1px solid var(--line);border-radius:13px;background:#fff}.readiness-grid h3{margin:0;font-size:14px}.readiness-grid p{margin:4px 0 0;color:var(--muted);font-size:12px}.readiness-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;font-weight:900}.readiness-icon.ready{color:#166534;background:#dcfce7}.readiness-icon.review{color:#92400e;background:#fef3c7}.readiness-icon.deferred{color:#475569;background:#e2e8f0}.import-preview{max-height:300px}@media(max-width:850px){.communication-grid,.readiness-grid{grid-template-columns:1fr}}
.header-actions{display:flex;align-items:center;gap:18px}.language-switch{display:inline-flex;padding:3px;border:1px solid var(--line);border-radius:10px;background:#f7f8fc;direction:ltr}.language-switch button{padding:7px 10px;border:0;border-radius:7px;color:#687386;font-weight:800;background:transparent;cursor:pointer}.language-switch button.selected{color:#fff;background:#4f46e5;box-shadow:0 2px 7px #4f46e533}.login-card>.language-switch{position:absolute;top:20px;right:20px}.login-card{position:relative}
.save-state{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;color:#166534;font-size:12px;font-weight:800;background:#dcfce7;white-space:nowrap}.save-state.loading,.save-state.saving{color:#475569;background:#f1f5f9}.save-state.failed{color:#991b1b;background:#fee2e2}.save-state button{padding:2px 6px;border:0;border-radius:5px;color:inherit;font:inherit;text-decoration:underline;background:transparent;cursor:pointer}
.global-form-opening{position:fixed;z-index:1200;inset:0;display:grid;place-items:center;padding:22px;color:#172033;background:#11182752;backdrop-filter:blur(2px);cursor:wait}.global-form-opening-card{display:flex;align-items:center;gap:15px;min-width:320px;padding:17px 20px;border:1px solid #dfe4ee;border-radius:15px;background:#fff;box-shadow:0 24px 70px #11182738}.global-form-opening-card>span:last-child{display:grid;gap:3px}.global-form-opening strong{font-size:15px}.global-form-opening small{color:#64748b;font-size:11px}.form-opening-spinner{flex:0 0 28px;width:28px;height:28px;border:3px solid #dbe2ff;border-top-color:#4f46e5;border-radius:50%;animation:form-opening-spin .75s linear infinite}@keyframes form-opening-spin{to{transform:rotate(360deg)}}@media(max-width:480px){.global-form-opening-card{min-width:0;width:min(320px,100%);padding:16px 18px}}@media(prefers-reduced-motion:reduce){.form-opening-spinner{animation-duration:1.5s}}
.item-picker{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.item-picker select{min-width:0;width:100%}.add-item{white-space:nowrap}.inline-help{margin:0;padding:11px 13px;border-radius:9px;color:#475569;font-size:13px;background:#f1f5f9}
.line-items{display:grid;gap:12px}.line-items-head{display:flex;align-items:end;justify-content:space-between;gap:16px}.line-items-head h4,.line-items-head p{margin:0}.line-items-head p{margin-top:4px;color:var(--muted);font-size:13px}.line-items-head>div:last-child{display:flex;gap:8px}.line-items-table{overflow-x:auto;border:1px solid var(--line);border-radius:12px}.line-item-row{display:grid;grid-template-columns:minmax(210px,2fr) 90px 120px 110px 90px 130px 38px;gap:8px;align-items:center;min-width:850px;padding:10px;border-top:1px solid var(--line)}.line-item-row.with-cost{grid-template-columns:minmax(250px,2.4fr) 90px 120px 120px 110px 90px 130px 38px;min-width:1060px}.line-item-row:first-child{border-top:0}.line-item-row input,.line-item-row select{width:100%;padding:9px;border:1px solid #d9deea;border-radius:8px;background:#fff}.line-item-picker{position:relative;min-width:0}.line-item-picker-results{position:absolute;z-index:20;top:calc(100% + 4px);right:0;left:0;display:grid;max-height:230px;overflow:auto;border:1px solid #d9deea;border-radius:9px;background:#fff;box-shadow:0 12px 25px #17203326}.line-item-picker-results button{display:grid;gap:2px;padding:9px 11px;border:0;border-bottom:1px solid #eef1f6;text-align:left;color:#172033;background:#fff;cursor:pointer}.line-item-picker-results button:hover{background:#f4f5ff}.line-item-picker-results small,.line-item-picker-results>span{color:#6d778b;font-size:11px}.line-item-picker-results>span{padding:10px 11px}.line-item-row>strong{text-align:end}.line-item-header{color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase;background:#f8fafc}.line-item-header span:nth-child(n+2){text-align:end}.product-table td:nth-child(3),.product-table td:nth-child(4){font-variant-numeric:tabular-nums;font-weight:700}.product-table th:nth-child(3),.product-table td:nth-child(3){color:#7c3aed}.product-table th:nth-child(4),.product-table td:nth-child(4){color:#087a55}@media(max-width:700px){.line-items-head{align-items:stretch;flex-direction:column}.line-items-head>div:last-child{display:grid;grid-template-columns:1fr 1fr}}
.line-items{display:grid;gap:12px}.line-items-head{display:flex;align-items:end;justify-content:space-between;gap:16px}.line-items-head h4,.line-items-head p{margin:0}.line-items-head p{margin-top:4px;color:var(--muted);font-size:13px}.line-items-head>div:last-child{display:flex;gap:8px}.line-items-table{overflow-x:auto;border:1px solid var(--line);border-radius:12px}.line-item-row{display:grid;grid-template-columns:minmax(210px,2fr) 90px 120px 110px 90px 130px 38px;gap:8px;align-items:center;min-width:850px;padding:10px;border-top:1px solid var(--line)}.line-item-row.with-cost{grid-template-columns:minmax(250px,2.4fr) 90px 120px 120px 110px 90px 130px 38px;min-width:1060px}.line-item-row:first-child{border-top:0}.line-item-row input,.line-item-row select{width:100%;padding:9px;border:1px solid #d9deea;border-radius:8px;background:#fff}.line-item-picker{position:relative;min-width:0}.line-item-picker-results{position:absolute;z-index:20;top:calc(100% + 4px);right:0;left:0;display:grid;max-height:230px;overflow:auto;border:1px solid #d9deea;border-radius:9px;background:#fff;box-shadow:0 12px 25px #17203326}.line-item-picker-results button{display:grid;gap:2px;padding:9px 11px;border:0;border-bottom:1px solid #eef1f6;text-align:left;color:#172033;background:#fff;cursor:pointer}.line-item-picker-results button:hover{background:#f4f5ff}.line-item-picker-results small,.line-item-picker-results>span{color:#6d778b;font-size:11px}.line-item-picker-results>span{padding:10px 11px}.table-column-editor{width:min(580px,calc(100vw - 32px))}.table-column-editor>p{margin:0;color:#6d778b;line-height:1.5}.table-layout-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.table-layout-options select{min-height:42px;padding:9px 11px;border:1px solid #d9deea;border-radius:9px;background:#fff}.page-section-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.page-section-options label{display:flex;align-items:center;gap:8px;padding:10px 11px;border:1px solid #e5e9f1;border-radius:9px;background:#fafbff}.page-section-options input{width:16px;height:16px;padding:0}.quotes-orders-page.page-density-compact .page-head{margin-top:14px;margin-bottom:8px}.quotes-orders-page.page-density-compact .customer-workspace,.quotes-orders-page.page-density-compact .document-summary,.quotes-orders-page.page-density-compact .document-toolbar{margin-top:10px;margin-bottom:10px}.quotes-orders-page.page-density-comfortable .page-head{margin-top:40px;margin-bottom:24px}.quotes-orders-page.page-density-comfortable .customer-workspace,.quotes-orders-page.page-density-comfortable .document-summary,.quotes-orders-page.page-density-comfortable .document-toolbar{margin-top:28px;margin-bottom:28px}.quotes-orders-page.page-font-small{font-size:13px}.quotes-orders-page.page-font-small .page-head h3{font-size:18px}.quotes-orders-page.page-font-large{font-size:16px}.quotes-orders-page.page-font-large .page-head h3{font-size:25px}.table-column-list{display:grid;gap:8px;margin-top:18px;max-height:min(55vh,560px);overflow:auto}.table-column-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:11px 12px;border:1px solid #e5e9f1;border-radius:11px;background:#fafbff}.table-column-row label{display:flex;align-items:center;gap:7px;font-size:13px}.table-column-row input{width:16px;height:16px;padding:0}.quote-table-layout.density-compact th,.quote-table-layout.density-compact td{padding:8px 10px}.quote-table-layout.density-comfortable th,.quote-table-layout.density-comfortable td{padding:19px 20px}.quote-table-layout.font-small th,.quote-table-layout.font-small td{font-size:12px}.quote-table-layout.font-small th{font-size:10px}.quote-table-layout.font-large th,.quote-table-layout.font-large td{font-size:16px}.quote-table-layout.font-large th{font-size:12px}.line-item-row>strong{text-align:end}.line-item-header{color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase;background:#f8fafc}.line-item-header span:nth-child(n+2){text-align:end}.product-table td:nth-child(3),.product-table td:nth-child(4){font-variant-numeric:tabular-nums;font-weight:700}.product-table th:nth-child(3),.product-table td:nth-child(3){color:#7c3aed}.product-table th:nth-child(4),.product-table td:nth-child(4){color:#087a55}@media(max-width:700px){.line-items-head{align-items:stretch;flex-direction:column}.line-items-head>div:last-child{display:grid;grid-template-columns:1fr 1fr}.table-layout-options,.page-section-options{grid-template-columns:1fr}.table-column-row{grid-template-columns:28px minmax(0,1fr) auto}.table-column-row>div{grid-column:2/-1}.table-column-row>div .option-action{min-width:42px}}

/* Quotes and sales orders editor */
.modal.quote-editor{width:min(1500px,calc(100vw - 48px));max-height:94vh;padding:0;overflow:hidden}.quote-editor .modal-head{padding:24px 30px 19px}.quote-editor .modal-head h3{font-size:27px}.quote-editor>.invoice-form{max-height:calc(94vh - 91px);overflow:auto;gap:20px;padding:24px 30px 0}.quote-editor .form-grid{grid-template-columns:minmax(220px,.8fr) minmax(360px,1.4fr);gap:18px}.quote-editor label{min-width:0;gap:8px}.quote-editor input,.quote-editor select{min-height:48px;padding:12px 14px;font-size:15px}.quote-editor label>small{font-size:12px}.quote-editor .line-items{gap:16px;padding:20px;border:1px solid #e1e6f0;border-radius:15px;background:#fbfcff}.quote-editor .line-items-head h4{font-size:17px}.quote-editor .line-items-head p{font-size:13px}.quote-editor .line-items-table{background:#fff}.quote-editor .line-item-row{grid-template-columns:minmax(440px,3.4fr) 110px 140px 120px 110px 150px 42px;gap:12px;min-width:1210px;padding:13px 14px}.quote-editor .line-item-row.with-cost{grid-template-columns:minmax(400px,3.2fr) 100px 125px 130px 110px 100px 145px 42px;min-width:1320px}.quote-editor .line-item-row input,.quote-editor .line-item-row select{min-height:48px;padding:11px 12px;font-size:14px}.quote-editor .line-item-header{min-height:44px;padding-top:10px;padding-bottom:10px}.quote-editor .remove{width:42px;height:42px}.quote-commercial-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.quote-commercial-summary>div{display:flex;align-items:center;justify-content:space-between;min-height:70px;padding:17px 20px;border:1px solid #e1e6f0;border-radius:12px;background:#f8fafc}.quote-commercial-summary>div>span{color:#64748b;font-size:13px;font-weight:800}.quote-commercial-summary>div>strong{font-size:20px}.quote-commercial-summary>div:nth-child(2)>strong{color:#087a55}.quote-editor .quote-total{min-height:70px;padding:19px 22px}.quote-editor .quote-total.excl-vat{background:#f8fafc}.quote-editor .quote-total.excl-vat strong{color:#172033}.quote-editor .quote-total span{font-size:15px;font-weight:800}.quote-editor .quote-total strong{font-size:26px}.quote-editor .modal-actions{position:sticky;z-index:3;bottom:0;margin:0 -30px;padding:16px 30px;border-top:1px solid var(--line);background:#fff;box-shadow:0 -8px 22px #1720330a}.quote-editor .modal-actions button{min-width:120px;min-height:44px}
@media(max-width:900px){.modal.quote-editor{width:min(calc(100% - 24px),1500px)}.quote-editor .form-grid{grid-template-columns:1fr}.quote-editor .line-item-row{grid-template-columns:minmax(360px,3fr) 100px 130px 110px 100px 140px 42px;min-width:1060px}.quote-editor .line-item-row.with-cost{grid-template-columns:minmax(340px,3fr) 96px 120px 125px 108px 96px 135px 42px;min-width:1190px}.quote-commercial-summary{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.modal.quote-editor{width:100%;max-height:94dvh;border-radius:20px 20px 0 0}.quote-editor .modal-head{margin:0;padding:18px 18px 14px}.quote-editor>.invoice-form{max-height:calc(94dvh - 76px);gap:16px;padding:16px 18px 0}.quote-editor .line-items{padding:14px}.quote-editor .line-items-table{max-width:calc(100vw - 64px)}.quote-editor .line-item-row{grid-template-columns:minmax(320px,3fr) 96px 125px 108px 96px 130px 42px;min-width:990px}.quote-editor .line-item-row.with-cost{grid-template-columns:minmax(310px,3fr) 92px 115px 120px 104px 92px 125px 42px;min-width:1100px}.quote-commercial-summary{grid-template-columns:1fr}.quote-commercial-summary .quote-total{grid-column:auto}.quote-editor .modal-actions{margin:0 -18px;padding:14px 18px max(14px,env(safe-area-inset-bottom))}.quote-editor .modal-actions button{min-width:0}}

/* Quote editor: a focused commercial-document workspace */
.modal.quote-editor{width:min(1280px,calc(100vw - 48px));border:1px solid #dfe4ee;border-radius:20px;background:#f8fafc;box-shadow:0 32px 90px #0f172a45}
.quote-editor .modal-head{align-items:center;min-height:98px;padding:22px 30px;border-bottom:1px solid #dfe4ee;background:linear-gradient(118deg,#fff 0%,#f5f7ff 67%,#eef2ff 100%)}
.quote-editor .modal-head>div{position:relative;padding-left:17px}.quote-editor .modal-head>div:before{position:absolute;top:2px;bottom:2px;left:0;width:4px;border-radius:99px;content:"";background:linear-gradient(#6366f1,#8b5cf6)}
.quote-editor .modal-head .kicker{margin-bottom:4px;color:#6366f1;font-size:10px;letter-spacing:.14em}.quote-editor .modal-head h3{font-size:26px;letter-spacing:-.025em}.quote-editor .close{border:1px solid #dce2ed;color:#475569;background:#fff;transition:background-color .15s ease,transform .15s ease}.quote-editor .close:hover{background:#f1f5f9;transform:translateY(-1px)}
.quote-editor>.invoice-form{gap:18px;padding:22px 30px 0;background:#f8fafc}.quote-editor .form-grid{gap:14px}.quote-editor .invoice-form>.form-grid{padding:15px 16px;border:1px solid #e1e6ef;border-radius:14px;background:#fff;box-shadow:0 5px 15px #17203306}.quote-editor .invoice-form>.form-grid:nth-child(1){grid-template-columns:minmax(190px,.7fr) minmax(300px,1.3fr)}.quote-editor .invoice-form>.form-grid:nth-child(2){grid-template-columns:minmax(320px,1.35fr) minmax(220px,.65fr)}.quote-editor .invoice-form>.form-grid:nth-child(3){grid-template-columns:minmax(220px,.42fr) 1fr}.quote-editor .invoice-form>.form-grid:nth-child(3):after{align-self:center;padding-left:12px;color:#7b8799;font-size:12px;font-weight:600;content:"Set the current stage for this document."}
.quote-editor label{color:#475569;font-size:12px;letter-spacing:.01em}.quote-editor label>small{margin-top:-1px;color:#8993a5}.quote-editor input,.quote-editor select{border-color:#d8dfeb;border-radius:9px;color:#1e293b;background:#fff;box-shadow:inset 0 1px 1px #0f172a05;transition:border-color .15s ease,box-shadow .15s ease}.quote-editor input:focus,.quote-editor select:focus{border-color:#818cf8;outline:0;box-shadow:0 0 0 3px #e0e7ff}
.quote-editor .line-items{gap:17px;padding:20px;border-color:#dfe5ef;border-radius:16px;background:#fff;box-shadow:0 7px 20px #17203308}.quote-editor .line-items-head{align-items:center;padding-bottom:1px}.quote-editor .line-items-head h4{color:#172033;font-size:18px;letter-spacing:-.01em}.quote-editor .line-items-head p{margin-top:5px;color:#718096}.quote-editor .line-items-head>div:last-child{gap:9px}.quote-editor .line-items-head .action{border-color:#cbd5e1;color:#475569}.quote-editor .line-items-head .primary{box-shadow:0 5px 12px #4f46e52e}
.quote-editor .line-items-table{border-color:#e1e6ef;border-radius:12px;box-shadow:0 1px 2px #17203308}.quote-editor .line-item-header{color:#64748b;background:#f8fafc}.quote-editor .line-item-row{border-top-color:#edf0f5}.quote-editor .line-item-row:not(.line-item-header):hover{background:#fbfcff}.quote-editor .line-item-row>strong{padding:10px 12px;border-radius:9px;color:#3730a3;font-size:14px;font-variant-numeric:tabular-nums;background:#f1f3ff}.quote-editor .line-item-row input,.quote-editor .line-item-row select{min-height:44px;border-color:#e0e5ed;background:#fff}.quote-editor .remove{border:1px solid #fecaca;color:#b42318;background:#fff5f5;transition:background-color .15s ease,transform .15s ease}.quote-editor .remove:hover:not(:disabled){background:#fee2e2;transform:translateY(-1px)}
.quote-commercial-summary{gap:10px;padding:3px}.quote-commercial-summary>div{position:relative;display:grid;grid-template-columns:1fr auto;gap:6px;min-height:86px;padding:16px 17px;border-color:#e1e6ef;border-radius:14px;background:#fff;box-shadow:0 4px 13px #17203306}.quote-commercial-summary>div>span:first-child{align-self:start;color:#64748b;font-size:11px;letter-spacing:.04em;text-transform:uppercase}.quote-commercial-summary>div>strong{align-self:end;font-variant-numeric:tabular-nums}.quote-commercial-summary .gross-profit-summary{display:grid!important}.quote-commercial-summary .gross-profit-summary>.profit-value,.quote-commercial-summary .gross-profit-summary>.profit-masked{align-self:end;justify-self:end}.quote-commercial-summary .profit-inline-toggle{grid-row:1;grid-column:2;min-height:28px;padding:5px 7px;font-size:10px}.quote-editor .quote-total{border-color:#c7d2fe;background:linear-gradient(135deg,#eef2ff,#f5f3ff)}.quote-editor .quote-total.excl-vat{background:#fff}.quote-editor .quote-total strong{font-size:24px}.quote-editor .modal-actions{gap:12px;padding:15px 30px 17px;border-top-color:#dfe4ee;background:#fffffff2;backdrop-filter:blur(10px)}.quote-editor .modal-actions .action{border-color:#d6dce8;background:#fff}.quote-editor .modal-actions .primary{min-width:138px;box-shadow:0 7px 16px #4f46e538}
@media(max-width:900px){.quote-editor .invoice-form>.form-grid:nth-child(1),.quote-editor .invoice-form>.form-grid:nth-child(2),.quote-editor .invoice-form>.form-grid:nth-child(3){grid-template-columns:1fr}.quote-editor .invoice-form>.form-grid:nth-child(3):after{padding-left:0}.quote-editor .quote-commercial-summary{padding:0}}
@media(max-width:700px){.modal.quote-editor{width:100%;border-width:1px 0 0;border-radius:20px 20px 0 0}.quote-editor .modal-head{min-height:76px;padding:16px 18px}.quote-editor .modal-head h3{font-size:22px}.quote-editor>.invoice-form{padding:16px 18px 0}.quote-editor .invoice-form>.form-grid{padding:14px}.quote-editor .line-items{padding:15px}.quote-editor .line-items-head>div:last-child{width:100%}.quote-editor .line-items-head button{min-height:40px}.quote-commercial-summary>div{min-height:76px}.quote-editor .modal-actions{padding:13px 18px max(13px,env(safe-area-inset-bottom))}}

/* Desktop quote composition: editing on the left, commercial totals always visible on the right. */
@media(min-width:901px){
  .quote-editor>.invoice-form{grid-template-columns:minmax(0,1fr) 310px;align-items:start;column-gap:20px;row-gap:14px}
  .quote-editor .invoice-form>.form-grid,.quote-editor .line-items{grid-column:1}
  .quote-editor .invoice-form>.form-grid:nth-child(1){position:relative;margin-top:25px}
  .quote-editor .invoice-form>.form-grid:nth-child(1):before{position:absolute;top:-25px;left:0;color:#64748b;font-size:10px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;content:"Document details"}
  .quote-editor .invoice-form>.form-grid:nth-child(3){margin-bottom:7px}
  .quote-editor .line-items{margin-top:0}
  .quote-commercial-summary{position:sticky;top:0;grid-column:2;grid-row:1 / span 4;display:grid;grid-template-columns:1fr;gap:10px;padding:0}
  .quote-commercial-summary:before{padding:0 2px 1px;color:#64748b;font-size:10px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;content:"Quote summary"}
  .quote-commercial-summary>div{min-height:94px}
  .quote-commercial-summary .quote-total{min-height:104px;border-color:#b9c5ff}
  .quote-commercial-summary .quote-total strong{font-size:27px}
  .quote-editor .modal-actions{grid-column:1/-1}
}
[dir="rtl"]{font-family:Arial,"Noto Sans Hebrew",sans-serif}[dir="rtl"] .app-shell{grid-template-columns:minmax(0,1fr) 242px}[dir="rtl"] aside{grid-column:2;grid-row:1}[dir="rtl"] .workspace{grid-column:1;grid-row:1}[dir="rtl"] th,[dir="rtl"] td{text-align:right}[dir="rtl"] .invoice-totals{margin-right:auto;margin-left:0}[dir="rtl"] .document-total{margin-left:auto;margin-right:0}[dir="rtl"] .switch{margin-right:auto;margin-left:0}[dir="rtl"] .switch input:checked+span:after{transform:translateX(-18px)}[dir="rtl"] .tenant-head>span{margin-right:auto;margin-left:0}[dir="rtl"] .horizontal-chart strong{text-align:left}[dir="rtl"] .login-card>.language-switch{right:auto;left:20px}
@media(max-width:700px){[dir="rtl"] .app-shell{grid-template-columns:1fr}[dir="rtl"] aside,[dir="rtl"] .workspace{grid-column:1;grid-row:auto}.header-actions{gap:10px}.user>div{display:none}.item-picker{grid-template-columns:1fr}.add-item{width:100%}}
.settings-page{max-width:1240px}.settings-page-head{margin-top:0;margin-bottom:20px}.settings-page-head h3{font-size:25px}.settings-eyebrow{margin:0 0 6px!important;color:#6366f1!important;font-size:10px!important;font-weight:900!important;letter-spacing:.12em;text-transform:uppercase}.settings-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:20px;padding:6px;width:100%;border:1px solid #e2e7f0;border-radius:15px;background:#fff;box-shadow:0 8px 26px #27345d08}.settings-tabs button{display:flex;align-items:center;gap:10px;min-height:46px;padding:9px 13px;border:1px solid transparent;border-radius:10px;color:#64748b;font-weight:800;text-align:start;background:transparent;cursor:pointer}.settings-tabs button>span{display:grid;place-items:center;width:25px;height:25px;border-radius:7px;color:#64748b;font-size:10px;background:#f1f5f9}.settings-tabs button:hover{color:#3730a3;background:#f8faff}.settings-tabs button.selected{border-color:#c7d2fe;color:#3730a3;background:#eef2ff}.settings-tabs button.selected>span{color:#fff;background:#4f46e5}.settings-content{min-width:0}.import-center{max-width:1100px}.import-intro{display:flex;align-items:center;justify-content:space-between;gap:18px}.import-intro h3,.import-intro p{margin:0}.import-intro p{margin-top:5px;color:var(--muted)}.import-feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.import-feature-grid article{display:flex;gap:12px;padding:17px;border:1px solid #e3e8f2;border-radius:13px;background:#fafbff}.import-feature-grid article>span{display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:9px;color:#fff;font-weight:900;background:#4f46e5}.import-feature-grid strong{font-size:14px}.import-feature-grid p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.5}.import-modal{width:min(1180px,100%);max-height:94vh}.import-stepper{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:18px 0 22px}.import-stepper div{display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:9px;color:#94a3b8;background:#f8fafc}.import-stepper span{display:grid;place-items:center;width:24px;height:24px;border:1px solid #cbd5e1;border-radius:50%;font-size:11px;font-weight:900}.import-stepper small{font-weight:800}.import-stepper .active{color:#3730a3;background:#eef2ff}.import-stepper .active span{border-color:#6366f1;color:#fff;background:#6366f1}.import-stepper .done{color:#166534;background:#f0fdf4}.import-stepper .done span{border-color:#22c55e;color:#fff;background:#22c55e}.import-body{display:grid;gap:16px}.file-summary{display:flex;align-items:center;gap:11px;padding:13px 15px;border:1px solid #c7d2fe;border-radius:11px;background:#f5f7ff}.file-summary span:not(.badge){color:var(--muted);font-size:13px}.file-summary .badge{margin-inline-start:auto}.section-head.compact{margin:4px 0 0}.section-head.compact h3,.section-head.compact p{margin:0}.section-head.compact p{margin-top:4px;color:var(--muted);font-size:13px}.mapping-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;max-height:240px;overflow:auto;padding:1px}.mapping-grid label{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);align-items:center;gap:8px;padding:9px;border:1px solid var(--line);border-radius:9px;background:#fff}.mapping-grid label>span{overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:800;white-space:nowrap}.mapping-grid select{min-width:0;padding:8px;border:1px solid #d9deea;border-radius:7px;background:#fff}.health-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.health-list article{display:grid;grid-template-columns:30px 1fr;align-items:start;gap:10px;padding:13px;border:1px solid var(--line);border-radius:10px;background:#fff}.health-list article>span{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;font-weight:900}.health-list strong{font-size:13px}.health-list p{margin:4px 0 0;color:var(--muted);font-size:12px;line-height:1.45}.health-list .pass>span{color:#166534;background:#dcfce7}.health-list .warning>span{color:#92400e;background:#fef3c7}.health-list .error>span{color:#b42318;background:#fee2e2}.health-list .error{border-color:#fecaca}.import-progress{padding:24px;border:1px solid #c7d2fe;border-radius:13px;background:#f5f7ff}.import-progress>div{display:flex;justify-content:space-between}.import-progress progress{width:100%;height:14px;margin:15px 0 5px;accent-color:#4f46e5}.import-progress p{margin:0;color:var(--muted);font-size:12px}.import-result{display:grid;gap:16px}.result-hero{display:flex;align-items:center;gap:14px;padding:18px;border:1px solid #bbf7d0;border-radius:13px;background:#f0fdf4}.result-hero>span{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;color:#fff;font-size:21px;font-weight:900;background:#16a34a}.result-hero h3,.result-hero p{margin:0}.result-hero p{margin-top:5px;color:#475569}.import-result.cancelled .result-hero{border-color:#cbd5e1;background:#f8fafc}.import-result.cancelled .result-hero>span{background:#64748b}.result-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.result-stats article{display:grid;gap:5px;padding:15px;border:1px solid var(--line);border-radius:11px;background:#fff}.result-stats small{color:var(--muted)}.result-stats strong{font-size:24px}@media(max-width:900px){.settings-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.import-feature-grid,.mapping-grid{grid-template-columns:1fr 1fr}.health-list{grid-template-columns:1fr}}@media(max-width:650px){.import-intro{align-items:stretch;flex-direction:column}.import-feature-grid,.mapping-grid,.result-stats{grid-template-columns:1fr}.import-stepper small{display:none}.file-summary{align-items:start;flex-direction:column}.file-summary .badge{margin:0}.settings-tabs{grid-template-columns:1fr 1fr}.settings-tabs button{min-width:0;padding:8px;font-size:12px}.settings-tabs button>span{display:none}}
.file-summary .encoding-error{color:#b42318;background:#fee2e2}.encoding-alert{border-color:#fecaca;color:#991b1b;background:#fff1f0}
.validation-errors{display:grid;gap:12px;padding:15px;border:1px solid #fecaca;border-radius:12px;background:#fffafa}.validation-errors-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.validation-errors-head h3,.validation-errors-head p{margin:0}.validation-errors-head p{margin-top:4px;color:var(--muted);font-size:13px}.validation-errors table{min-width:820px}.validation-errors td{vertical-align:top}.error-field{display:inline-flex;margin:2px 5px 2px 0;padding:4px 7px;border-radius:7px;color:#991b1b;font-size:11px;font-weight:800;background:#fee2e2}.source-preview{max-width:340px;color:#475569;font-size:12px}.bypass-note{padding:11px 13px;border-radius:9px;color:#7c2d12;font-size:13px;line-height:1.5;background:#fff7ed}.bypass-button{background:#b45309}.bypass-button:hover{background:#92400e}@media(max-width:650px){.validation-errors-head{align-items:flex-start;flex-direction:column}}
.import-history{display:grid;gap:12px;margin-top:20px;padding-top:20px;border-top:1px solid var(--line)}.import-history table{min-width:920px}.import-history code{white-space:nowrap}.batch-status{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:900}.batch-status.available{color:#166534;background:#dcfce7}.batch-status.undone{color:#475569;background:#e2e8f0}.batch-status.blocked{color:#991b1b;background:#fee2e2}.batch-detail{display:block;max-width:210px;margin-top:5px;color:var(--muted);line-height:1.35}.action:disabled{opacity:.48;cursor:not-allowed}.top-layer{z-index:100}
.import-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.import-options>label{display:grid;grid-template-columns:auto 1fr;align-items:start;gap:10px;padding:14px;border:1px solid #c7d2fe;border-radius:11px;background:#f8faff;cursor:pointer}.import-options>label.danger-option{border-color:#fed7aa;background:#fffaf3}.import-options input{width:17px;height:17px;margin-top:2px;accent-color:#4f46e5}.import-options strong,.import-options small{display:block}.import-options strong{font-size:13px}.import-options small{margin-top:4px;color:var(--muted);font-size:11px;line-height:1.4}.import-options .danger-option strong{color:#9a3412}
.table-explorer{display:grid;gap:11px;margin:0 0 12px;padding:13px;border:1px solid var(--line);border-radius:14px;background:#fff}.table-filters{display:grid;grid-template-columns:minmax(220px,2fr) minmax(150px,1fr) minmax(180px,1.3fr) auto;align-items:end;gap:10px}.table-filters label{display:grid;gap:5px;color:#64748b;font-size:11px;font-weight:800}.table-filters input,.table-filters select{width:100%;height:40px;padding:8px 10px;border:1px solid #d9deea;border-radius:9px;color:#1f2937;background:#fff}.rows-per-page select{min-width:86px}.table-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px}.table-pagination>div{display:flex;align-items:center;gap:4px}.table-pagination>div>span{display:flex;align-items:center;gap:4px}.table-pagination i{padding:0 3px;font-style:normal}.table-pagination button{display:grid;place-items:center;min-width:34px;height:34px;padding:0 8px;border:1px solid var(--line);border-radius:8px;color:#475569;font-weight:800;background:#fff;cursor:pointer}.table-pagination button:hover:not(:disabled),.table-pagination button.selected{border-color:#818cf8;color:#3730a3;background:#eef2ff}.table-pagination button:disabled{opacity:.4;cursor:not-allowed}[dir="rtl"] .table-pagination>div{direction:rtl}@media(max-width:900px){.table-filters{grid-template-columns:1fr 1fr}.table-pagination{align-items:flex-start;flex-direction:column}}@media(max-width:560px){.table-filters{grid-template-columns:1fr}.table-pagination>div{max-width:100%;overflow-x:auto}}

/* Gross-profit privacy and margin display */
.document-toolbar-meta{display:flex!important;align-items:center;justify-content:flex-end;gap:12px}.profit-visibility-toggle,.profit-inline-toggle{border:1px solid #c7d2fe!important;color:#4338ca!important;font-weight:800;background:#f5f7ff!important}.profit-visibility-toggle:hover,.profit-inline-toggle:hover,.profit-visibility-toggle[aria-pressed="true"],.profit-inline-toggle[aria-pressed="true"]{border-color:#818cf8!important;background:#eef2ff!important}.profit-value{display:grid;gap:3px;line-height:1.15;font-variant-numeric:tabular-nums}.profit-value strong{color:#087a55;font-size:14px}.profit-value small{color:#64748b;font-size:10px;font-weight:800}.profit-masked{display:inline-block;min-width:72px;color:#94a3b8;font-size:17px!important;letter-spacing:.12em;white-space:nowrap}.gross-profit-summary{gap:14px}.gross-profit-summary .profit-value{margin-inline-start:auto;text-align:end}.gross-profit-summary .profit-value strong{font-size:20px}.gross-profit-summary .profit-value small{font-size:11px}.profit-inline-toggle{flex:0 0 auto;min-height:34px;padding:7px 10px;border-radius:8px;cursor:pointer}
@media(max-width:800px){.document-toolbar-meta{width:100%;justify-content:space-between}.profit-visibility-toggle{min-height:40px}.gross-profit-summary{display:grid!important;grid-template-columns:1fr auto;align-items:center}.gross-profit-summary>span:first-child{grid-column:1}.gross-profit-summary .profit-value,.gross-profit-summary>.profit-masked{grid-column:1;grid-row:2;margin:0;text-align:start}.gross-profit-summary .profit-inline-toggle{grid-column:2;grid-row:1/3}}

/* Responsive application shell and touch layouts */
.aside-head{display:flex;align-items:center;justify-content:space-between}.mobile-nav-close,.mobile-nav-toggle,.mobile-menu-backdrop{display:none}.app-shell{grid-template-columns:245px minmax(0,1fr)}
@media(max-width:900px){
  .app-shell,[dir="rtl"] .app-shell{display:block;min-height:100dvh}
  .app-shell aside,[dir="rtl"] .app-shell aside{position:fixed;z-index:80;top:0;bottom:0;left:0;right:auto;width:min(86vw,310px);height:100dvh;grid-column:auto;grid-row:auto;transform:translateX(-105%);transition:transform .22s ease;box-shadow:18px 0 45px #02061755}
  [dir="rtl"] .app-shell aside{left:auto;right:0;transform:translateX(105%);box-shadow:-18px 0 45px #02061755}
  .app-shell.mobile-menu-open aside,[dir="rtl"] .app-shell.mobile-menu-open aside{transform:translateX(0)}
  .mobile-menu-backdrop{position:fixed;z-index:70;inset:0;width:100%;height:100%;border:0;background:#0f172a99;opacity:0;pointer-events:none;transition:opacity .2s ease}
  .mobile-menu-open .mobile-menu-backdrop{display:block;opacity:1;pointer-events:auto}
  .mobile-nav-close{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border:1px solid #ffffff18;border-radius:10px;color:#fff;font-size:27px;background:#ffffff10}
  aside .brand{padding-bottom:18px}nav{display:grid;grid-template-columns:1fr}nav button,.aside-footer button{min-height:44px}
  .workspace,[dir="rtl"] .workspace{grid-column:auto;grid-row:auto;width:100%;min-width:0}
  .workspace header{position:sticky;z-index:30;top:0;height:auto;min-height:72px;padding:12px 18px;box-shadow:0 2px 12px #1720330a}
  .mobile-header-title{display:flex;align-items:center;gap:12px;min-width:0}.mobile-header-title>div{min-width:0}.mobile-header-title h2{max-width:44vw;overflow:hidden;font-size:21px;text-overflow:ellipsis;white-space:nowrap}.mobile-header-title .kicker{margin-bottom:3px}
  .mobile-nav-toggle{display:grid;align-content:center;gap:4px;flex:0 0 42px;width:42px;height:42px;padding:10px;border:1px solid var(--line);border-radius:11px;background:#fff}.mobile-nav-toggle span{display:block;width:100%;height:2px;border-radius:2px;background:#334155}
  .content{padding:22px 18px 34px}.page-head,.section-head{gap:14px}.page-head{align-items:flex-start}.page-head>div{min-width:0}
  .table-wrap{-webkit-overflow-scrolling:touch;max-width:calc(100vw - 36px)}.table-wrap:focus-within{outline:2px solid #c7d2fe;outline-offset:2px}
  .modal-backdrop{align-items:end;padding:0}.modal{width:100%;max-height:94dvh;padding:20px;border-radius:20px 20px 0 0}.modal.wide,.import-modal,.invoice-preview,.confirm-modal{width:100%}
  .modal-head{position:sticky;z-index:2;top:-20px;margin:-20px -20px 14px;padding:18px 20px 14px;background:#fff}.modal-actions{position:sticky;z-index:2;bottom:-20px;flex-wrap:wrap;margin:20px -20px -20px;padding:14px 20px max(14px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fff}.modal-actions button{min-height:44px}
  .settings-card{max-width:100%;padding:18px}.settings-tabs{max-width:100%;overflow-x:auto}.settings-tabs button{white-space:nowrap}.document-summary,.pipeline-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .table-filters{grid-template-columns:1fr 1fr}.table-pagination{align-items:flex-start;flex-direction:column}
}
@media(max-width:600px){
  .login-page{padding:14px}.login-card{padding:30px 22px 24px;border-radius:18px}.login-card h1{font-size:30px}.login-card>.language-switch{top:14px;right:14px}[dir="rtl"] .login-card>.language-switch{right:auto;left:14px}
  .workspace header{padding:10px 12px}.header-actions{gap:7px}.header-actions .language-switch button{padding:7px}.save-state{padding:6px 8px;font-size:11px}.user{display:none}.mobile-header-title h2{max-width:31vw;font-size:19px}.content{padding:18px 12px 30px}
  .page-head{align-items:stretch;flex-direction:column;margin-top:10px}.page-head>.primary,.page-head>button{width:100%;min-height:44px}.section-head{align-items:flex-start;flex-wrap:wrap}.stats,.report-kpis,.document-summary,.pipeline-stats{grid-template-columns:1fr}.card{padding:18px}.stat strong{font-size:26px}
  .form-grid,.form-grid.three{grid-template-columns:1fr}.invoice-form input,.invoice-form select,.settings-card input,.settings-card select{min-height:44px}.table-wrap{max-width:calc(100vw - 24px);border-radius:11px}th,td{padding:12px 13px}.customer-table table{min-width:2100px}
  .table-filters{grid-template-columns:1fr}.table-pagination>div{width:100%;max-width:100%;overflow-x:auto;padding-bottom:3px}.table-pagination button{min-width:40px;height:40px}.document-toolbar>div{width:100%;display:grid;grid-template-columns:1fr 1fr}.document-toolbar button{min-height:42px}.row-actions{min-width:132px}.icon-button{width:40px;height:40px}
  .line-items-head>div:last-child{grid-template-columns:1fr}.line-items-head button{min-height:44px}.line-items-table{max-width:calc(100vw - 64px)}.deal-card{grid-template-columns:1fr}.deal-card>*{grid-column:1}.deal-card label{justify-content:space-between}.deal-card input,.deal-card select{min-height:44px}
  .activity-card{grid-template-columns:36px minmax(0,1fr);padding:14px 12px}.activity-title{align-items:flex-start;flex-direction:column}.activity-due,.priority{grid-column:2}.tenant-meta{grid-template-columns:1fr 1fr}.tenant-actions{align-items:stretch;flex-direction:column;gap:10px}.tenant-actions button{min-height:44px}
  .file-card{grid-template-columns:44px minmax(0,1fr);padding:13px 12px}.file-icon{width:42px;height:42px}.file-main{min-width:0}.file-main h3,.file-main p{overflow-wrap:anywhere}.template-card{align-items:flex-start;flex-direction:column;gap:12px}.template-card .action{width:100%}.delivery-list>div{grid-template-columns:1fr auto}.delivery-list>div>:last-child{grid-column:1/-1}
  .portal-preview>header{padding:15px}.portal-preview>header .brand{font-size:16px}.portal-hero{padding:24px 18px}.portal-hero h2{font-size:26px}.portal-stats{padding:16px}.portal-documents>div{grid-template-columns:1fr}.portal-documents>div>*{min-width:0}.report-card{padding:16px}.horizontal-chart>div{grid-template-columns:82px minmax(0,1fr)}
  .document{padding:12px 0}.document-head{gap:14px;flex-direction:column}.document-head h2{font-size:25px}.document-meta{grid-template-columns:1fr}.document .table-wrap{max-width:100%}.import-stepper{gap:3px}.import-stepper div{justify-content:center;padding:7px 4px}.import-stepper small{display:none}.mapping-grid,.health-list,.result-stats,.import-feature-grid{grid-template-columns:1fr}.validation-errors{padding:10px}.file-summary{overflow-wrap:anywhere}
  .import-options{grid-template-columns:1fr}
  .modal-actions>*{flex:1 1 140px}.confirm-modal .modal-actions>*{flex:1}.receipt-amount{margin:22px auto;padding:20px}.receipt-amount strong{font-size:30px}
}
@media(prefers-reduced-motion:reduce){.app-shell aside,.mobile-menu-backdrop{transition:none}}

/* Settings data management */
.data-management{display:grid;gap:18px;max-width:1180px}.management-status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.management-status-grid article{display:flex;align-items:center;gap:12px;padding:17px;border:1px solid var(--line);border-radius:14px;background:#fff}.management-status-grid small,.management-status-grid strong,.management-status-grid p{display:block;margin:0}.management-status-grid small{color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase}.management-status-grid strong{margin-top:3px;font-size:18px}.management-status-grid p{margin-top:3px;color:var(--muted);font-size:11px}.management-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:11px;color:#4338ca;font-weight:900;background:#eef2ff}.management-icon.healthy{color:#166534;background:#dcfce7}.management-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:16px;align-items:start}.management-card{padding:20px;border:1px solid var(--line);border-radius:15px;background:#fff}.management-card.backup-card{grid-row:span 2}.management-card-head{display:flex;gap:11px;margin-bottom:17px}.management-card-head>span{display:grid;place-items:center;flex:0 0 31px;width:31px;height:31px;border-radius:9px;color:#4338ca;font-size:11px;font-weight:900;background:#eef2ff}.management-card-head h3,.management-card-head p{margin:0}.management-card-head h3{font-size:16px}.management-card-head p{margin-top:4px;color:var(--muted);font-size:12px}.backup-create{display:grid;grid-template-columns:minmax(160px,1fr) auto auto;gap:8px;margin-bottom:15px}.backup-create input,.delete-controls select,.maintenance-confirm input{width:100%;min-height:42px;padding:9px 11px;border:1px solid #d9deea;border-radius:9px;background:#fff}.file-action{display:grid;place-items:center;cursor:pointer}.file-action input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0}.backup-list .table-wrap{max-height:430px}.backup-list table{min-width:760px}.backup-list td strong,.backup-list td small{display:block}.backup-list td small{margin-top:4px;color:var(--muted);font-size:10px}.backup-actions{display:flex;align-items:center;gap:9px}.backup-actions a{text-decoration:none}.danger-text{color:#b42318!important}.empty-management{padding:28px;border:1px dashed #cbd5e1;border-radius:11px;color:var(--muted);text-align:center;background:#f8fafc}.maintenance-actions{display:grid}.maintenance-actions>div{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.maintenance-actions>div:last-child{border-bottom:0}.maintenance-actions strong,.maintenance-actions p{margin:0}.maintenance-actions strong{font-size:13px}.maintenance-actions p{margin-top:4px;color:var(--muted);font-size:11px;line-height:1.4}.danger-outline{padding:9px 13px;border:1px solid #f2a7a0;border-radius:9px;color:#b42318;font-weight:800;background:#fff7f6;cursor:pointer}.danger-outline:disabled{opacity:.5;cursor:not-allowed}.danger-zone{border-color:#f5c7c2;background:#fffdfd}.danger-zone .management-card-head>span{color:#b42318;background:#fff0ee}.delete-controls{display:grid;gap:13px}.delete-controls label{display:grid;gap:6px;font-size:12px;font-weight:800}.danger-warning{padding:12px;border:1px solid #fed7aa;border-radius:10px;color:#9a3412;background:#fff7ed}.danger-warning strong,.danger-warning p{margin:0}.danger-warning p{margin-top:3px;font-size:11px}.management-error{display:flex;align-items:center;gap:12px;padding:13px 15px;border:1px solid #fecaca;border-radius:11px;color:#991b1b;background:#fef2f2}.management-error span{flex:1;font-size:12px}.maintenance-confirm label{display:grid;gap:8px;margin-top:18px;font-size:12px;font-weight:700}.maintenance-confirm label strong{color:#b42318;letter-spacing:.08em}.batch-status.manual{color:#3730a3;background:#eef2ff}.batch-status.automatic{color:#854d0e;background:#fef9c3}
@media(max-width:980px){.management-status-grid{grid-template-columns:repeat(2,1fr)}.management-grid{grid-template-columns:1fr}.management-card.backup-card{grid-row:auto}}
@media(max-width:600px){.management-status-grid{grid-template-columns:1fr}.management-card{padding:16px}.backup-create{grid-template-columns:1fr}.backup-create>*{width:100%}.maintenance-actions>div{align-items:stretch;grid-template-columns:1fr}.maintenance-actions button{width:100%;min-height:42px}.management-error{align-items:flex-start;flex-wrap:wrap}.management-error button{width:100%}}

/* Customer editor */
.customer-editor{display:flex;flex-direction:column;width:min(1120px,calc(100vw - 40px));height:min(92dvh,920px);min-height:0;padding:0;overflow:hidden;border:1px solid #e2e8f0;border-radius:24px;background:#f8fafc;box-shadow:0 36px 100px #0f172a52}.customer-editor-header{display:flex;align-items:center;justify-content:space-between;gap:20px;flex:0 0 auto;padding:22px 26px;border-bottom:1px solid #e2e8f0;background:#fff}.customer-editor-title{display:flex;align-items:center;gap:14px;min-width:0}.customer-editor-title>div{min-width:0}.customer-editor-title .kicker,.customer-editor-title h3,.customer-editor-title small{margin:0}.customer-editor-title h3{margin-top:3px;font-size:24px;letter-spacing:-.02em}.customer-editor-title small{display:block;margin-top:4px;color:#64748b;font-size:11px;font-weight:700}.customer-editor-icon{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:14px;color:#fff;font-size:18px;font-weight:900;background:linear-gradient(135deg,#6366f1,#7c3aed);box-shadow:0 10px 22px #6366f138}.customer-editor-header .close{flex:0 0 40px;width:40px;height:40px;border:1px solid #e2e8f0;border-radius:12px;color:#64748b;background:#f8fafc;transition:color .15s ease,background-color .15s ease,transform .15s ease}.customer-editor-header .close:hover{color:#0f172a;background:#eef2ff;transform:translateY(-1px)}.customer-editor>.invoice-form{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;max-height:none;overflow:auto;padding:0 26px 26px;gap:0;scrollbar-color:#cbd5e1 transparent}.customer-editor-commandbar{position:sticky;z-index:4;top:0;display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:72px;margin:0 -26px 20px;padding:13px 26px;border-bottom:1px solid #e2e8f0;background:#fffffff5;box-shadow:0 8px 20px #0f172a0a;backdrop-filter:blur(10px)}.customer-document-links{display:flex;align-items:center;gap:7px;min-width:0}.customer-document-links>span{margin-inline-end:5px;color:#64748b;font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.customer-document-links a{display:inline-flex;align-items:center;min-height:38px;padding:8px 12px;border:1px solid #dbe2ea;border-radius:10px;color:#334155;font-size:12px;font-weight:800;text-decoration:none;background:#fff;transition:border-color .15s ease,color .15s ease,background-color .15s ease,transform .15s ease}.customer-document-links a:hover{border-color:#a5b4fc;color:#4338ca;background:#eef2ff;transform:translateY(-1px)}.customer-editor-actions{display:flex;align-items:center;gap:9px;flex:0 0 auto}.customer-editor-actions button{min-width:118px;min-height:42px}.customer-editor-actions .primary{box-shadow:0 8px 18px #4f46e52e}.customer-form-layout{display:grid;grid-template-columns:1fr 1fr;gap:16px}.customer-form-section{display:grid;align-content:start;gap:16px;padding:20px;border:1px solid #e1e7ef;border-radius:16px;background:#fff;box-shadow:0 5px 18px #0f172a08}.customer-form-section.identity-section,.customer-form-section.notes-section{grid-column:1/-1}.customer-section-head{display:flex;align-items:center;gap:12px;padding-bottom:14px;border-bottom:1px solid #edf1f5}.customer-section-head>span{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:10px;color:#4f46e5;font-size:11px;font-weight:900;background:#eef2ff}.customer-section-head h4,.customer-section-head p{margin:0}.customer-section-head h4{font-size:15px}.customer-section-head p{margin-top:4px;color:#64748b;font-size:11px;font-weight:500}.customer-number-row{display:flex;align-items:flex-start;gap:14px}.compact-id-field{display:flex;flex:0 0 190px;flex-direction:column;align-self:flex-start;gap:7px;width:190px;max-width:190px}.compact-id-field input{display:block;flex:none;width:190px;height:44px;min-height:44px;max-height:44px;padding:10px 12px}.compact-id-field .field-help{min-height:14px;color:#64748b;font-weight:500}.customer-name-row{grid-template-columns:1fr 1fr}.customer-editor label{min-width:0;color:#475569;font-size:12px}.customer-editor input,.customer-editor select,.customer-editor textarea{width:100%;min-width:0;border:1px solid #d8e0ea;border-radius:11px;color:#172033;background:#fff;transition:border-color .15s ease,box-shadow .15s ease}.customer-editor input,.customer-editor select{min-height:44px;padding:10px 12px}.customer-editor textarea{padding:12px}.customer-editor input:focus,.customer-editor select:focus,.customer-editor textarea:focus{border-color:#818cf8;outline:0;box-shadow:0 0 0 3px #e0e7ff}.customer-editor input[readonly]{color:#64748b;background:#f1f5f9}
@media(max-width:820px){.customer-editor-commandbar{align-items:stretch;flex-direction:column}.customer-document-links{overflow-x:auto;padding-bottom:2px}.customer-editor-actions{justify-content:flex-end}.customer-form-layout{grid-template-columns:1fr}.customer-form-section.identity-section,.customer-form-section.notes-section{grid-column:auto}}
@media(max-width:600px){.modal-backdrop{align-items:end;padding:0}.customer-editor{width:100%;height:96dvh;border-width:1px 0 0;border-radius:22px 22px 0 0}.customer-editor-header{padding:17px 16px}.customer-editor-title{gap:11px}.customer-editor-title h3{font-size:20px}.customer-editor-icon{flex-basis:40px;width:40px;height:40px;border-radius:12px}.customer-editor>.invoice-form{padding:0 14px 18px}.customer-editor-commandbar{gap:11px;min-height:0;margin:0 -14px 14px;padding:11px 14px}.customer-document-links>span{display:none}.customer-document-links a{flex:0 0 auto;min-height:40px}.customer-editor-actions{display:grid;grid-template-columns:1fr 1.4fr;width:100%}.customer-editor-actions button{width:100%;min-width:0;min-height:44px}.customer-form-layout{gap:11px}.customer-form-section{gap:13px;padding:15px;border-radius:14px}.customer-section-head p{display:none}.customer-number-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.compact-id-field,.compact-id-field input{width:100%;max-width:none}.customer-name-row{grid-template-columns:1fr}.customer-form-section .form-grid.three{grid-template-columns:1fr}}
[dir="rtl"] .customer-editor{text-align:right}[dir="rtl"] .customer-editor-header,[dir="rtl"] .customer-editor-title,[dir="rtl"] .customer-editor-commandbar,[dir="rtl"] .customer-document-links,[dir="rtl"] .customer-editor-actions,[dir="rtl"] .customer-section-head,[dir="rtl"] .customer-number-row{direction:rtl}[dir="rtl"] .customer-editor-header .close{margin-right:auto;margin-left:0}[dir="rtl"] .customer-editor-title{order:2}[dir="rtl"] .customer-editor-header .close{order:1}[dir="rtl"] .customer-editor-commandbar{flex-direction:row}[dir="rtl"] .customer-editor-actions{margin-right:auto;margin-left:0}[dir="rtl"] .customer-editor input,[dir="rtl"] .customer-editor select,[dir="rtl"] .customer-editor textarea{text-align:right}[dir="rtl"] .customer-editor input[type="number"],[dir="rtl"] .customer-editor input[type="email"],[dir="rtl"] .customer-editor input[type="date"]{direction:rtl;text-align:right}@media(max-width:820px){[dir="rtl"] .customer-editor-commandbar{flex-direction:column}[dir="rtl"] .customer-editor-actions{margin:0}}
[dir="rtl"] .lead-history-topline,[dir="rtl"] .lead-history-footer,[dir="rtl"] .lead-history-meta,[dir="rtl"] .lead-history-actions{direction:rtl}

/* Lead activity timeline */
.lead-history-section{grid-column:1/-1}.lead-history-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.lead-history-head>div:last-child{display:flex;flex-wrap:wrap;gap:8px}.lead-history-list{position:relative;display:grid;gap:10px;padding-inline-start:18px}.lead-history-list::before{position:absolute;top:7px;bottom:7px;inset-inline-start:7px;width:2px;content:"";background:linear-gradient(#c7d2fe,#e2e8f0)}.lead-history-card{position:relative;display:grid;grid-template-columns:36px minmax(0,1fr);gap:12px;padding:15px 16px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;box-shadow:0 5px 15px #0f172a08;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}.lead-history-card:hover{border-color:#c7d2fe;box-shadow:0 9px 21px #4f46e512;transform:translateY(-1px)}.lead-history-card.is-open{border-inline-start:3px solid #f59e0b}.lead-history-card.is-complete{border-inline-start:3px solid #22c55e}.lead-history-card.message-entry{border-inline-start:3px solid #6366f1}.lead-history-icon{position:relative;z-index:1;display:grid;place-items:center;width:36px;height:36px;border-radius:11px;color:#4338ca;font-size:17px;font-weight:900;background:#eef2ff}.lead-history-icon.call{color:#0369a1;background:#e0f2fe}.lead-history-icon.communication{color:#6d28d9;background:#f3e8ff}.lead-history-icon.task{color:#a16207;background:#fef3c7}.lead-history-content{min-width:0}.lead-history-topline,.lead-history-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.lead-history-topline>div{display:grid;gap:4px;min-width:0}.lead-history-topline strong{overflow-wrap:anywhere;color:#172033;font-size:14px}.lead-history-topline time{flex:0 0 auto;color:#64748b;font-size:11px;white-space:nowrap}.lead-history-type{width:max-content;padding:3px 7px;border-radius:999px;color:#4f46e5;font-size:10px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;background:#eef2ff}.lead-history-content p{margin:9px 0;color:#475569;font-size:12px;line-height:1.55;white-space:pre-wrap}.lead-history-footer{align-items:center;margin-top:12px}.lead-history-meta,.lead-history-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px;color:#64748b;font-size:11px;font-weight:700}.lead-history-status{padding:4px 8px;border-radius:999px;font-size:10px;font-weight:900;text-transform:uppercase}.lead-history-status.open{color:#92400e;background:#fef3c7}.lead-history-status.complete{color:#166534;background:#dcfce7}.lead-history-actions .action,.lead-history-actions .history-remove{min-height:32px;padding:6px 9px;font-size:11px}.history-remove{border-radius:8px}.checkbox-field{display:flex!important;align-items:center;gap:9px;cursor:pointer}.checkbox-field input{width:16px!important;min-height:16px!important}
@media(max-width:600px){.lead-history-head{align-items:stretch;flex-direction:column}.lead-history-head>div:last-child{display:grid;grid-template-columns:1fr 1fr}.lead-history-head>div:last-child button{width:100%;min-height:40px}.lead-history-list{padding-inline-start:10px}.lead-history-list::before{inset-inline-start:3px}.lead-history-card{grid-template-columns:32px minmax(0,1fr);gap:10px;padding:13px}.lead-history-icon{width:32px;height:32px;border-radius:10px;font-size:15px}.lead-history-topline{align-items:flex-start;flex-direction:column;gap:7px}.lead-history-topline time{white-space:normal}.lead-history-footer{align-items:stretch;flex-direction:column}.lead-history-actions{display:grid;grid-template-columns:1fr 1fr}.lead-history-actions .action,.lead-history-actions .history-remove{width:100%;min-height:38px}}

/* Hebrew and RTL presentation */
html[dir="rtl"] body{font-family:Arial,"Noto Sans Hebrew",sans-serif;text-align:start}html[dir="rtl"] .app-shell,html[dir="rtl"] .workspace,html[dir="rtl"] .content,html[dir="rtl"] .page-head,html[dir="rtl"] .section-head,html[dir="rtl"] .modal,html[dir="rtl"] .settings-card,html[dir="rtl"] .document{direction:rtl}html[dir="rtl"] th,html[dir="rtl"] td,html[dir="rtl"] .table-wrap,html[dir="rtl"] .invoice-form,html[dir="rtl"] .settings-card,html[dir="rtl"] .page-head,html[dir="rtl"] .section-head{text-align:start}html[dir="rtl"] input:not([type="email"]):not([type="number"]):not([type="date"]),html[dir="rtl"] textarea,html[dir="rtl"] select{text-align:start}html[dir="rtl"] input[type="email"],html[dir="rtl"] input[type="number"],html[dir="rtl"] input[type="date"],html[dir="rtl"] code,html[dir="rtl"] pre{direction:ltr;text-align:start}html[dir="rtl"] .document-head,html[dir="rtl"] .document-meta,html[dir="rtl"] .modal-head,html[dir="rtl"] .modal-actions,html[dir="rtl"] .page-head,html[dir="rtl"] .section-head,html[dir="rtl"] .header-actions{direction:rtl}html[dir="rtl"] .table-wrap{overflow-x:auto}html[dir="rtl"] .customers-pagination>div,html[dir="rtl"] .report-actions,html[dir="rtl"] .row-actions{direction:rtl}

/* Managed lists and reusable dropdowns */
.dropdown-field-row{grid-template-columns:1fr .9fr 120px 150px minmax(170px,1.2fr) 38px}.list-manager{display:grid;grid-template-columns:280px minmax(0,1fr);gap:16px;max-width:1180px;align-items:start}.list-catalog,.list-editor{border:1px solid #dfe4ee;border-radius:14px;background:#fff;box-shadow:0 8px 24px #27345d08}.list-catalog{position:sticky;top:18px;display:grid;gap:14px;padding:16px}.list-catalog h3,.list-catalog p,.list-editor h3,.list-editor p{margin:0}.list-catalog-head{display:flex;align-items:start;justify-content:space-between;gap:10px}.list-catalog-head>div>p:last-child{margin-top:5px;color:var(--muted);font-size:11px;line-height:1.45}.list-count{display:grid;place-items:center;min-width:32px;height:32px;border-radius:9px;color:#4338ca;font-size:11px;font-weight:900;background:#eef2ff}.new-list-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:7px;padding:10px;border:1px solid #e1e7f0;border-radius:10px;background:#f8fafc}.new-list-form label{gap:5px;font-size:11px}.new-list-form button,.add-list-option button,.list-name-actions button{min-height:36px;padding:8px 11px;font-size:12px;line-height:1}.list-catalog input:not([type="checkbox"]),.list-editor input:not([type="checkbox"]){width:100%;min-height:40px;padding:8px 10px;border:1px solid #d6dce8;border-radius:8px;background:#fff;outline:0}.list-catalog input:not([type="checkbox"]):focus,.list-editor input:not([type="checkbox"]):focus{border-color:#818cf8;box-shadow:0 0 0 3px #e0e7ff}.list-catalog-label{display:flex;align-items:center;justify-content:space-between;padding:0 2px;color:#334155;font-size:10px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.list-catalog-label small{color:#94a3b8;font-weight:800;text-transform:none}.list-catalog-items{display:grid;gap:6px;max-height:540px;overflow:auto}.list-catalog-items button{display:grid;grid-template-columns:34px minmax(0,1fr) 12px;align-items:center;gap:9px;width:100%;padding:8px 9px;border:1px solid transparent;border-radius:9px;text-align:start;color:var(--ink);background:#f8fafc;cursor:pointer}.list-catalog-items button:hover,.list-catalog-items button.selected{border-color:#c7d2fe;color:#3730a3;background:#eef2ff}.list-catalog-items button:focus-visible,.option-action:focus-visible,.option-order button:focus-visible{outline:3px solid #c7d2fe;outline-offset:2px}.list-item-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;color:#475569;font-size:12px;font-weight:900;background:#e9eef5}.selected .list-item-icon{color:#fff;background:#6366f1}.list-item-copy{display:grid;gap:2px;min-width:0}.list-item-copy strong{overflow:hidden;text-overflow:ellipsis;font-size:13px;white-space:nowrap}.list-item-copy small{color:var(--muted);font-size:10px}.list-item-arrow{color:#94a3b8;font-size:18px}.list-editor{display:grid;gap:14px;padding:18px}.list-editor-title{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:1px 2px 3px}.list-editor-title h3{font-size:20px}.list-editor-title>div>p:last-child{margin-top:5px;color:var(--muted);font-size:11px}.option-summary{display:grid;justify-items:end;min-width:78px}.option-summary strong{font-size:22px}.option-summary small{color:var(--muted);font-size:10px}.list-details-card,.list-options-card{display:grid;gap:14px;padding:16px;border:1px solid #e3e8f2;border-radius:12px;background:#fff}.settings-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.settings-section-head h4,.settings-section-head p{margin:0}.settings-section-head h4{font-size:14px}.settings-section-head p{margin-top:3px;color:var(--muted);font-size:11px}.list-details{display:grid;grid-template-columns:minmax(250px,1fr) minmax(240px,1.1fr);align-items:start;gap:12px}.list-details label,.list-name-edit label{display:grid;gap:5px;color:#475569;font-size:11px;font-weight:800}.list-details label>small{color:var(--muted);font-weight:500}.list-name-edit{display:grid;grid-template-columns:minmax(160px,1fr) auto;align-items:end;gap:7px}.list-name-edit .field-error{grid-column:1/-1}.list-name-edit input{font-weight:800}.list-name-actions{display:flex;align-items:center;gap:6px}.field-error{color:#b91c1c;font-weight:700}.active-summary{padding:5px 9px;border-radius:999px;color:#166534;font-size:10px;font-weight:900;background:#dcfce7}.add-list-option{display:grid;grid-template-columns:minmax(180px,1fr) auto;align-items:end;gap:7px;padding:11px;border:1px solid #c7d2fe;border-radius:10px;background:#f8faff}.add-list-option label{gap:5px;font-size:11px}.list-options{display:grid;border:1px solid #e2e7f0;border-radius:10px;overflow:hidden}.list-options-head,.list-option-row{display:grid;grid-template-columns:86px minmax(160px,1fr) 80px 132px;align-items:center;column-gap:10px;padding:9px 12px}.list-options-head{color:#64748b;font-size:9px;font-weight:900;letter-spacing:.05em;text-transform:uppercase;background:#f8fafc}.list-option-row{position:relative;min-height:56px;border-top:1px solid #edf0f5}.list-option-row:hover{background:#fafbff}.list-option-row.inactive{color:#94a3b8;background:#fafafa}.option-label-cell{display:grid;gap:2px;min-width:0}.option-label-cell strong{overflow:hidden;text-overflow:ellipsis;font-size:13px;white-space:nowrap}.option-label-cell small{color:#8a94a8;font-size:10px;font-weight:500}.option-label-cell input:not([type="checkbox"]){min-height:34px;padding:6px 9px;font-size:12px}.option-order,.list-option-actions{display:flex;align-items:center;gap:4px}.order-number{min-width:20px;color:#94a3b8;font-size:10px;font-weight:900}.option-order button{display:grid;place-items:center;width:27px;height:27px;padding:0;border:1px solid var(--line);border-radius:7px;color:#475569;font-size:12px;background:#fff;cursor:pointer}.option-order button:disabled{opacity:.35;cursor:not-allowed}.compact-switch{position:relative;display:inline-block;width:42px;height:24px;margin:0}.compact-switch input{position:absolute!important;inset:0!important;width:42px!important;height:24px!important;min-height:0!important;margin:0!important;padding:0!important;opacity:0;cursor:pointer;z-index:1}.compact-switch span{pointer-events:none}.list-option-actions{position:relative;z-index:2;justify-content:flex-end}.option-action{min-width:0;min-height:30px;padding:5px 8px;border:1px solid #d8ddea;border-radius:7px;color:#475569;font-size:11px;font-weight:800;line-height:1;background:#fff;cursor:pointer;white-space:nowrap}.option-action:hover{border-color:#a5b4fc;color:#3730a3;background:#eef2ff}.option-action.primary-action{border-color:#4f46e5;color:#fff;background:#4f46e5}.option-action.danger-text{border-color:#fecaca;background:#fffafa}.list-editor>.inline-help{margin:0}.list-editor.empty-management{min-height:180px;place-items:center}[dir="rtl"] .list-item-arrow{transform:rotate(180deg)}[dir="rtl"] .option-summary{justify-items:start}
@media(max-width:1000px){.dropdown-field-row{grid-template-columns:1fr 1fr}.list-manager{grid-template-columns:1fr}.list-catalog{position:static}.list-catalog-items{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none}.list-details{grid-template-columns:1fr}}
@media(max-width:700px){.list-catalog,.list-editor{padding:14px}.list-catalog-items{grid-template-columns:1fr}.new-list-form,.list-name-edit,.add-list-option{grid-template-columns:1fr}.new-list-form button,.list-name-actions,.add-list-option button{width:100%}.list-name-actions>*{flex:1}.list-editor-title,.settings-section-head{align-items:stretch;flex-direction:column}.option-summary{justify-items:start}.settings-section-head .danger-outline{align-self:flex-start;width:auto}.list-options{overflow:visible}.list-options-head{display:none}.list-option-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"label status" "order actions";gap:10px 12px;padding:12px}.option-label-cell{grid-area:label}.compact-switch{grid-area:status;justify-self:end}.option-order{grid-area:order}.list-option-actions{grid-area:actions;justify-self:end}.dropdown-field-row{grid-template-columns:1fr}.dropdown-field-row .remove{grid-column:1}}
@media(max-width:420px){.list-option-row{grid-template-columns:1fr;grid-template-areas:"label" "status" "order" "actions"}.compact-switch,.option-order,.list-option-actions{justify-self:start}.list-option-actions{flex-wrap:wrap}.settings-section-head .danger-outline{width:100%}}
.list-manager>.list-catalog,.list-manager>.list-editor{min-width:0;color:var(--ink);text-align:start}.list-manager .list-catalog{align-content:start}.list-manager .list-catalog-head>div,.list-manager .list-editor-title>div:first-child,.list-manager .settings-section-head>div,.list-manager .list-name-edit label,.list-manager .add-list-option label{min-width:0}.list-manager .list-catalog input,.list-manager .list-editor input{min-width:0;max-width:100%;box-sizing:border-box}.list-manager .list-editor-title h3{overflow-wrap:anywhere}.list-manager .list-catalog-items button{min-width:0}.list-manager .list-option-status{justify-self:start}.list-manager .list-item-copy strong{white-space:normal;overflow-wrap:anywhere;line-height:1.4}.list-manager .new-list-form{grid-template-columns:minmax(0,1fr)}.list-manager .new-list-form button{width:100%}@media(min-width:701px){.list-manager .list-options{overflow-x:auto}.list-manager .list-options-head,.list-manager .list-option-row{min-width:520px}}@media(max-width:700px){.list-manager .list-option-status{grid-area:status;justify-self:end}}@media(max-width:420px){.list-manager .list-option-status{justify-self:start}}

[data-menu-manager]{display:grid;gap:16px}.menu-manager{display:grid;gap:16px;padding:22px;border:1px solid #dfe5ef;border-radius:16px;background:#fff}.menu-manager-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.menu-manager-head h3,.menu-manager-head p{margin:0}.menu-manager-head h3{margin:4px 0 6px}.menu-manager-head p:last-child{color:var(--muted);font-size:12px;line-height:1.5}.menu-manager-head>span{padding:6px 9px;border-radius:999px;color:#4f46e5;font-size:10px;font-weight:800;background:#eef2ff}.menu-entry-create{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:10px;padding:14px;border:1px solid #dfe5ef;border-radius:12px;background:#fafbfe}.menu-entry-create label{display:grid;gap:6px;color:#4a5669;font-size:11px;font-weight:800}.menu-entry-create input,.menu-entry-row>input{width:100%;min-height:38px;padding:8px 10px;border:1px solid #d9e0eb;border-radius:8px;background:#fff}.menu-entry-list{overflow:auto;border:1px solid #e1e6ef;border-radius:12px}.menu-entry-head,.menu-entry-row{display:grid;grid-template-columns:108px minmax(130px,1fr) minmax(150px,1fr) 86px 128px;align-items:center;gap:10px;padding:10px 12px}.menu-entry-head{color:#7a8698;font-size:10px;font-weight:900;letter-spacing:.07em;text-transform:uppercase;background:#f7f8fb}.menu-entry-row{border-top:1px solid #edf0f5;background:#fff}.menu-entry-order{display:flex;align-items:center;gap:5px}.menu-entry-order strong{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;color:#5b6476;font-size:10px;background:#eef1f6}.menu-entry-order button{width:24px;height:24px;padding:0;border:1px solid #dce3ed;border-radius:6px;color:#65738a;background:#fff;cursor:pointer}.menu-entry-order button:disabled{opacity:.4;cursor:not-allowed}.menu-entry-visible{display:flex!important;align-items:center;gap:6px;color:#58657a!important;font-size:11px!important}.menu-entry-visible input{width:16px!important;min-height:16px!important;padding:0}.menu-entry-row>div:last-child{display:flex;gap:7px}.menu-entry-empty{padding:35px 16px;border:1px dashed #cbd5e1;border-radius:12px;color:#7b8798;font-size:12px;text-align:center;background:#fafbfe}@media(max-width:780px){.menu-manager{padding:16px}.menu-manager-head{flex-direction:column}.menu-entry-create{grid-template-columns:1fr}.menu-entry-create .primary{width:100%}.menu-entry-list{border:0;overflow:visible}.menu-entry-head{display:none}.menu-entry-row{grid-template-columns:1fr;gap:9px;padding:13px;border:1px solid #e1e6ef;border-radius:11px}.menu-entry-row+.menu-entry-row{margin-top:9px}.menu-entry-order{order:5}.menu-entry-row>div:last-child{order:6}}

/* Customers dashboard */
.customers-page{display:grid;gap:20px;max-width:1440px;margin:0 auto}.customers-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:4px 2px}.customers-hero h3,.customers-hero p{margin:0}.customers-hero h3{font-size:30px;letter-spacing:-.035em}.customers-hero p:last-child{margin-top:7px;color:#64748b;font-size:14px}.customers-new{display:inline-flex;align-items:center;gap:9px;min-height:46px;padding:11px 18px;box-shadow:0 10px 22px #4f46e529}.customers-new span{font-size:20px;line-height:1}.customers-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.customers-kpis article{display:flex;align-items:center;gap:14px;min-height:96px;padding:19px 20px;border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 8px 24px #0f172a08}.customers-kpis article>div{display:grid;gap:5px}.customers-kpis small{color:#64748b;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.customers-kpis strong{font-size:25px;letter-spacing:-.03em}.customer-kpi-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:13px;color:#4338ca;font-size:18px;font-weight:900;background:#eef2ff}.customer-kpi-icon.active{color:#047857;background:#d1fae5}.customer-kpi-icon.prospect{color:#b45309;background:#fef3c7}.customers-panel{overflow:hidden;border:1px solid #e2e8f0;border-radius:18px;background:#fff;box-shadow:0 12px 34px #0f172a0a}.customers-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;border-bottom:1px solid #e8edf3;background:#fff}.customers-search{position:relative;display:block;width:min(520px,100%)}.customers-search>span{position:absolute;z-index:1;inset-inline-start:14px;top:50%;color:#94a3b8;font-size:20px;transform:translateY(-50%)}.customers-search input{width:100%;height:44px;padding-inline-start:43px;border:1px solid #d8e0ea;border-radius:11px;background:#f8fafc}.customers-search input:focus{border-color:#818cf8;outline:0;box-shadow:0 0 0 3px #e0e7ff;background:#fff}.customers-toolbar-meta{display:flex;align-items:center;gap:18px;color:#64748b;font-size:12px}.customers-toolbar-meta>span{white-space:nowrap}.customers-toolbar-meta>span strong{color:#172033}.customers-toolbar-meta label{display:flex;align-items:center;gap:8px;white-space:nowrap}.customers-toolbar-meta select{height:38px;padding:7px 28px 7px 10px;border:1px solid #d8e0ea;border-radius:9px;background:#fff}.customers-panel .customer-table{border:0;border-radius:0}.customers-panel .customer-table table{min-width:900px}.customers-panel .customer-table th{padding:12px 18px;color:#64748b;font-size:10px;background:#f8fafc}.customers-panel .customer-table td{height:76px;padding:13px 18px;vertical-align:middle}.customers-panel .customer-table tbody tr{transition:background-color .15s ease}.customers-panel .customer-table tbody tr:hover{background:#f8faff}.customer-cell{display:flex;align-items:center;gap:12px}.customer-cell>span{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:12px;color:#4338ca;font-size:12px;font-weight:900;background:#eef2ff}.customer-cell>div,.customer-contact{display:grid;gap:4px;min-width:0}.customer-cell strong{font-size:13px}.customer-cell small,.customer-contact small,.customer-secondary{display:block;color:#64748b;font-size:10px;font-weight:500}.customer-contact span{font-size:12px;font-weight:700}.customer-status{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:900}.customer-status.active{color:#047857;background:#d1fae5}.customer-status.prospect{color:#b45309;background:#fef3c7}.customer-status.inactive{color:#b42318;background:#fee2e2}.customer-status.neutral{color:#475569;background:#e2e8f0}.customer-number{font-variant-numeric:tabular-nums;color:#334155}.customer-edit-button{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid #d8e0ea;border-radius:9px;color:#4338ca;font-size:11px;font-weight:900;background:#fff;cursor:pointer}.customer-edit-button:hover{border-color:#a5b4fc;background:#eef2ff}.customers-empty{display:grid;justify-items:center;gap:6px;padding:50px 20px;color:#64748b;text-align:center}.customers-empty>span{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;color:#4f46e5;font-size:24px;background:#eef2ff}.customers-empty strong{color:#334155}.customers-empty p{margin:0;font-size:12px}
.customer-modal-backdrop{padding:24px;background:#0f172ab8}.customer-editor.modal{display:block;width:min(1060px,calc(100vw - 48px));height:min(90dvh,860px);max-height:none;padding:0;overflow:hidden;border:1px solid #dce3ec;border-radius:22px;background:#fff;box-shadow:0 40px 110px #02061766}.customer-editor-form{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;width:100%;height:100%;min-height:0}.customer-editor-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 24px;border-bottom:1px solid #e6ebf1;background:#fff}.customer-editor-title{display:flex;align-items:center;gap:13px}.customer-editor-title h3,.customer-editor-title p,.customer-editor-title small{margin:0}.customer-editor-title h3{margin-top:2px;font-size:22px;letter-spacing:-.025em}.customer-editor-title small{display:block;margin-top:4px;color:#64748b;font-size:11px;font-weight:700}.customer-editor-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:13px;color:#fff;font-size:14px;font-weight:900;background:linear-gradient(135deg,#4f46e5,#7c3aed);box-shadow:0 10px 22px #4f46e533}.customer-editor-header .close{flex:0 0 40px;width:40px;height:40px;border:1px solid #e2e8f0;border-radius:11px;color:#64748b;background:#f8fafc}.customer-document-links{display:flex;align-items:center;gap:8px;padding:11px 24px;border-bottom:1px solid #e8edf3;background:#f8fafc}.customer-document-links>span{margin-inline-end:6px;color:#64748b;font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.customer-document-links a{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:7px 11px;border:1px solid #dce3ec;border-radius:9px;color:#334155;font-size:11px;font-weight:800;text-decoration:none;background:#fff}.customer-document-links a:hover{border-color:#a5b4fc;color:#4338ca;background:#eef2ff}.customer-document-links b{color:#6366f1}.customer-editor-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px 24px 24px;background:#f6f8fb}.customer-editor .customer-form-layout{display:grid;grid-template-columns:1fr 1fr;gap:14px;direction:ltr}.customer-editor .customer-form-section{display:grid;align-content:start;gap:14px;padding:18px;border:1px solid #e1e7ef;border-radius:15px;background:#fff;box-shadow:0 4px 14px #0f172a08}.customer-editor .customer-form-section.identity-section,.customer-editor .customer-form-section.notes-section{grid-column:1/-1}.customer-editor .customer-section-head{display:flex;align-items:center;gap:11px;padding-bottom:12px;border-bottom:1px solid #edf1f5}.customer-editor .customer-section-head>span{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:9px;color:#4f46e5;font-size:10px;font-weight:900;background:#eef2ff}.customer-editor .customer-section-head h4,.customer-editor .customer-section-head p{margin:0}.customer-editor .customer-section-head h4{font-size:14px}.customer-editor .customer-section-head p{margin-top:3px;color:#64748b;font-size:10px;font-weight:500}.customer-editor .customer-number-row{display:flex;gap:12px}.customer-editor .compact-id-field{flex:0 1 190px;width:190px;max-width:190px}.customer-editor label{gap:6px;color:#475569;font-size:11px}.customer-editor input,.customer-editor select,.customer-editor textarea{width:100%;min-width:0;border:1px solid #d7e0ea;border-radius:10px;color:#172033;background:#fff}.customer-editor input,.customer-editor select{min-height:42px;padding:9px 11px}.customer-editor textarea{padding:11px}.customer-editor input:focus,.customer-editor select:focus,.customer-editor textarea:focus{border-color:#818cf8;outline:0;box-shadow:0 0 0 3px #e0e7ff}.customer-editor input[readonly]{color:#64748b;background:#f1f5f9}.customer-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 24px;border-top:1px solid #dfe6ee;background:#fff;box-shadow:0 -8px 22px #0f172a0d}.customer-editor-footer p{margin:0;color:#64748b;font-size:11px}.customer-editor-footer>div{display:flex;gap:9px}.customer-editor-footer button{min-width:120px;min-height:42px}.customer-editor-footer .primary{box-shadow:0 8px 18px #4f46e529}
@media(max-width:900px){.customers-kpis{grid-template-columns:1fr 1fr}.customers-kpis article:last-child{grid-column:1/-1}.customer-editor .customer-form-layout{grid-template-columns:1fr}.customer-editor .customer-form-section.identity-section,.customer-editor .customer-form-section.notes-section{grid-column:auto}}
@media(max-width:650px){.customers-page{gap:14px}.customers-hero{align-items:stretch;flex-direction:column}.customers-hero h3{font-size:26px}.customers-new{justify-content:center;width:100%}.customers-kpis{grid-template-columns:1fr}.customers-kpis article:last-child{grid-column:auto}.customers-toolbar{align-items:stretch;flex-direction:column}.customers-toolbar-meta{justify-content:space-between}.customer-modal-backdrop{align-items:end;padding:0}.customer-editor.modal{width:100%;height:96dvh;border-width:1px 0 0;border-radius:20px 20px 0 0}.customer-editor-header{padding:16px}.customer-editor-title h3{font-size:19px}.customer-document-links{overflow-x:auto;padding:10px 14px}.customer-document-links>span{display:none}.customer-document-links a{flex:0 0 auto}.customer-editor-body{padding:14px}.customer-editor .customer-form-section{padding:14px}.customer-editor .customer-number-row{display:grid;grid-template-columns:1fr 1fr}.customer-editor .compact-id-field,.customer-editor .compact-id-field input{width:100%;max-width:none}.customer-editor .customer-name-row,.customer-editor .form-grid,.customer-editor .form-grid.three{grid-template-columns:1fr}.customer-editor-footer{align-items:stretch;flex-direction:column;padding:12px 14px max(12px,env(safe-area-inset-bottom))}.customer-editor-footer p{display:none}.customer-editor-footer>div{display:grid;grid-template-columns:1fr 1.35fr}.customer-editor-footer button{width:100%;min-width:0}}
[dir="rtl"] .customers-page,[dir="rtl"] .customer-editor.modal{text-align:right}[dir="rtl"] .customers-hero,[dir="rtl"] .customers-toolbar,[dir="rtl"] .customer-cell,[dir="rtl"] .customer-editor-header,[dir="rtl"] .customer-editor-title,[dir="rtl"] .customer-document-links,[dir="rtl"] .customer-editor-footer,[dir="rtl"] .customer-editor-footer>div,[dir="rtl"] .customer-editor .customer-section-head,[dir="rtl"] .customer-editor .customer-number-row{direction:rtl}[dir="rtl"] .customer-editor .customer-form-layout,[dir="rtl"] .customer-editor .form-grid{direction:rtl}[dir="rtl"] .customer-editor input,[dir="rtl"] .customer-editor select,[dir="rtl"] .customer-editor textarea{text-align:right}[dir="rtl"] .customer-editor-header .close{margin-right:auto;margin-left:0}[dir="rtl"] .customer-edit-button span{transform:rotate(180deg)}

.settings-tabs.five-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}.legacy-import-panel{display:grid;gap:18px;max-width:1180px;padding:22px;border:1px solid #dde3ee;border-radius:16px;background:#fff;box-shadow:0 10px 28px #27345d0a}.legacy-import-head,.legacy-preview-title{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.legacy-import-head h3,.legacy-import-head p,.legacy-preview-title h3,.legacy-preview-title p{margin:0}.legacy-import-head h3,.legacy-preview-title h3{font-size:20px}.legacy-import-head p:last-child,.legacy-preview-title p:last-child{margin-top:6px;color:var(--muted);font-size:12px;line-height:1.5}.owner-chip{display:inline-flex;align-items:center;min-height:30px;padding:5px 10px;border:1px solid #c7d2fe;border-radius:999px;color:#3730a3;font-size:10px;font-weight:900;white-space:nowrap;background:#eef2ff}.owner-chip.compact{min-height:25px;padding:4px 8px}.legacy-file-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.legacy-file-grid>label{position:relative;display:grid;grid-template-columns:38px 1fr;gap:3px 12px;padding:17px;border:1px dashed #cbd5e1;border-radius:13px;background:#f8fafc;cursor:pointer}.legacy-file-grid>label.selected{border-style:solid;border-color:#a5b4fc;background:#f5f7ff}.legacy-file-grid>label>span{grid-row:1/4;display:grid;place-items:center;width:38px;height:38px;border-radius:11px;color:#4338ca;font-size:11px;font-weight:900;background:#e0e7ff}.legacy-file-grid strong{font-size:14px}.legacy-file-grid small{color:var(--muted);font-size:11px}.legacy-file-grid input{position:absolute;width:1px;height:1px;opacity:0}.legacy-file-grid em{grid-column:2;margin-top:6px;color:#166534;font-size:11px;font-style:normal;font-weight:800}.legacy-import-controls{display:grid;grid-template-columns:minmax(240px,1fr) minmax(260px,1fr) auto;align-items:end;gap:12px;padding:14px;border:1px solid #e2e8f0;border-radius:12px;background:#fafbfc}.legacy-import-controls>label{display:grid;gap:6px;font-size:11px;font-weight:800}.legacy-import-controls select,.legacy-approval input{width:100%;min-height:42px;padding:9px 11px;border:1px solid #d6dce8;border-radius:9px;background:#fff}.safety-lock{display:grid;gap:3px;padding:9px 12px;border-left:3px solid #22c55e}.safety-lock strong{font-size:12px}.safety-lock small{color:var(--muted);font-size:10px}.legacy-field-map{border:1px solid #e2e8f0;border-radius:11px;overflow:hidden}.legacy-field-map summary{padding:12px 14px;font-size:12px;font-weight:900;background:#f8fafc;cursor:pointer}.legacy-field-map>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:15px}.legacy-field-map h4{margin:0 0 8px;font-size:13px}.legacy-field-map p{display:grid;grid-template-columns:minmax(105px,.6fr) 1fr;gap:10px;margin:0;padding:7px 0;border-top:1px solid #eef1f5;font-size:11px}.legacy-field-map code{color:#4338ca;font-weight:800}.legacy-field-map span{color:#475569}.legacy-preview{display:grid;gap:15px;padding-top:18px;border-top:1px solid #e2e8f0}.legacy-preview-title>span{padding:8px 11px;border-radius:9px;color:#166534;font-size:12px;font-weight:900;background:#dcfce7}.legacy-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.legacy-stat-grid article{display:grid;gap:4px;padding:13px;border:1px solid #e2e8f0;border-radius:10px;background:#fff}.legacy-stat-grid small{color:var(--muted);font-size:10px;font-weight:800}.legacy-stat-grid strong{font-size:18px}.legacy-sample,.legacy-quarantine{display:grid;gap:10px;padding:15px;border:1px solid #e2e8f0;border-radius:12px}.legacy-sample table{min-width:860px}.legacy-quarantine{border-color:#fed7aa;background:#fffaf3}.legacy-quarantine h4,.legacy-quarantine p{margin:0}.legacy-quarantine h4{font-size:13px;color:#9a3412}.legacy-quarantine p{font-size:11px;color:#7c2d12}.legacy-quarantine>div{display:flex;gap:6px;flex-wrap:wrap}.legacy-quarantine span{padding:5px 7px;border-radius:7px;color:#7c2d12;font-size:10px;background:#ffedd5}.legacy-approval{display:grid;grid-template-columns:minmax(260px,1fr) auto;align-items:end;gap:12px;padding:15px;border:1px solid #c7d2fe;border-radius:12px;background:#f5f7ff}.legacy-approval label{display:grid;gap:6px;font-size:11px;font-weight:800}.legacy-approval label strong{color:#4338ca;letter-spacing:.05em}.legacy-row-source{display:block;margin-top:3px;color:#64748b;font-size:9px;font-weight:600}
.legacy-progress{padding:13px;border:1px solid #c7d2fe;border-radius:11px;background:#f5f7ff}.legacy-progress>div{display:flex;justify-content:space-between;gap:10px;font-size:12px}.legacy-progress progress{width:100%;height:12px;margin:10px 0 4px;accent-color:#4f46e5}.legacy-progress small{color:var(--muted);font-size:10px}
@media(max-width:980px){.settings-tabs.five-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.legacy-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.legacy-import-controls{grid-template-columns:1fr 1fr}.legacy-import-controls>button{grid-column:1/-1}}
@media(max-width:650px){.settings-tabs.five-tabs{grid-template-columns:1fr 1fr}.legacy-import-panel{padding:16px}.legacy-import-head,.legacy-preview-title{flex-direction:column}.legacy-file-grid,.legacy-field-map>div,.legacy-import-controls,.legacy-approval{grid-template-columns:1fr}.legacy-import-controls>button{grid-column:auto}.legacy-stat-grid{grid-template-columns:1fr 1fr}.legacy-approval button{width:100%}}
/* Rivhit integration */
.settings-tabs.six-tabs{grid-template-columns:repeat(6,minmax(0,1fr))}.integration-panel{display:grid;gap:18px;max-width:1180px}.integration-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px;border:1px solid #dfe4ee;border-radius:16px;background:linear-gradient(135deg,#fff,#f8faff)}.integration-head h3,.integration-head p{margin:0}.integration-head h3{margin:5px 0 7px;font-size:23px}.integration-head>div>p:last-child{color:var(--muted);line-height:1.55}.integration-toggle{display:flex;align-items:center;gap:12px;flex:0 0 auto;padding:10px 13px;border:1px solid #d8ddea;border-radius:12px;background:#fff}.integration-toggle>span:first-child{font-weight:800}.integration-state{display:flex;align-items:center;gap:13px;padding:15px 18px;border:1px solid #f5d58b;border-radius:13px;background:#fff9e9}.integration-state.connected{border-color:#a7e3ca;background:#effbf6}.integration-state>span{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:10px;color:#986307;font-weight:900;background:#ffe7ae}.integration-state.connected>span{color:#087a55;background:#c9f2e1}.integration-state strong,.integration-state p{margin:0}.integration-state p{margin-top:3px;color:var(--muted);font-size:12px}.integration-form{display:grid;gap:15px}.integration-section{display:grid;gap:17px;padding:22px;border:1px solid #dfe4ee;border-radius:16px;background:#fff}.integration-section-title{display:flex;align-items:center;gap:12px;padding-bottom:14px;border-bottom:1px solid #e9edf4}.integration-section-title>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;color:#4338ca;font-size:11px;font-weight:900;background:#eef2ff}.integration-section-title h4,.integration-section-title p{margin:0}.integration-section-title h4{font-size:16px}.integration-section-title p{margin-top:3px;color:var(--muted);font-size:11px}.integration-form label{display:grid;gap:7px;color:#3f485b;font-size:12px;font-weight:800}.integration-form input,.integration-form select{width:100%;min-height:44px;padding:10px 12px;border:1px solid #d9deea;border-radius:9px;background:#fff}.integration-form input:disabled{color:#64748b;background:#f3f5f8}.integration-form label small{color:var(--muted);font-weight:400;line-height:1.45}.integration-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.integration-options label{display:flex;align-items:flex-start;gap:10px;padding:14px;border:1px solid #e1e6f0;border-radius:11px;background:#fafbfc}.integration-options label>input{flex:0 0 auto;width:17px;min-height:17px;margin-top:2px}.integration-options label>span{display:grid;gap:4px}.integration-options .locked-option{opacity:.72}.invoice-integration-status{display:inline-block;margin-top:8px;padding:4px 8px;border-radius:999px;color:#7c5d18;font-size:10px;font-weight:900;background:#fff4d6}.invoice-integration-status.active{color:#087a55;background:#e6f8f0}.rivhit-created{display:flex;align-items:center;gap:8px}.rivhit-created a,.rivhit-link{color:#4338ca;font-weight:800}.rivhit-create{white-space:nowrap}.rivhit-page-error{margin-bottom:15px}
@media(max-width:1050px){.settings-tabs.six-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.settings-tabs.six-tabs{grid-template-columns:1fr 1fr}.integration-head{display:grid;padding:18px}.integration-toggle{justify-content:space-between}.integration-options{grid-template-columns:1fr}.integration-section{padding:17px}}

/* Rivhit API modes and diagnostics */
.integration-mode-section{display:grid;gap:17px;padding:22px;border:1px solid #dfe4ee;border-radius:16px;background:#fff}.rivhit-mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.rivhit-mode-grid>label{position:relative;display:grid;grid-template-columns:38px 1fr;align-items:start;gap:12px;padding:18px;border:2px solid #e2e7f0;border-radius:14px;background:#fafbfc;cursor:pointer}.rivhit-mode-grid>label.selected{border-color:#6366f1;background:#f4f5ff;box-shadow:0 8px 24px #4f46e50d}.rivhit-mode-grid input{position:absolute;opacity:0;pointer-events:none}.rivhit-mode-grid .mode-number{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;color:#64748b;font-size:15px;font-weight:900;background:#e9edf4}.rivhit-mode-grid label.selected .mode-number{color:#fff;background:#6366f1}.rivhit-mode-grid label>span:last-child{display:grid;gap:6px}.rivhit-mode-grid strong{font-size:15px}.rivhit-mode-grid small{color:var(--muted);font-size:11px;font-weight:400;line-height:1.55}.integration-state.contract-required{border-color:#c7d2fe;background:#f3f5ff}.integration-state.contract-required>span{color:#4338ca;background:#dfe3ff}.software-house-notice{padding:15px 17px;border:1px solid #f3cc73;border-radius:12px;background:#fff9e8}.software-house-notice strong,.software-house-notice p{margin:0}.software-house-notice p{margin-top:5px;color:#71551b;font-size:12px;line-height:1.55}.rivhit-test-logs{display:grid;gap:14px;padding:22px;border:1px solid #dfe4ee;border-radius:16px;background:#fff}.rivhit-log-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.rivhit-log-head h3,.rivhit-log-head p{margin:0}.rivhit-log-head h3{margin:4px 0 5px}.rivhit-log-head>div>p:last-child{color:var(--muted);font-size:12px}.rivhit-log-head>span{padding:6px 9px;border-radius:999px;color:#4338ca;font-size:10px;font-weight:900;background:#eef2ff}.rivhit-log-list{display:grid;gap:9px}.rivhit-log-list details{overflow:hidden;border:1px solid #e1e6ef;border-radius:12px;background:#fbfcfe}.rivhit-log-list summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 16px;cursor:pointer;list-style:none}.rivhit-log-list summary::-webkit-details-marker{display:none}.rivhit-log-list summary>span:nth-child(2){display:grid;gap:4px;min-width:0}.rivhit-log-list summary strong,.rivhit-log-list summary small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rivhit-log-list summary small{color:var(--muted);font-size:10px}.rivhit-log-list summary>b{color:#64748b}.log-result{padding:5px 8px;border-radius:999px;font-size:9px;font-weight:900;text-transform:uppercase}.log-result.success{color:#087a55;background:#e6f8f0}.log-result.warning{color:#7c5d18;background:#fff4d6}.log-result.error{color:#a3261d;background:#feeceb}.log-detail{display:grid;gap:14px;padding:0 16px 16px;border-top:1px solid #e7eaf1;background:#fff}.log-meta{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:14px}.log-meta>span{display:grid;gap:5px;min-width:0}.log-meta small{color:var(--muted);font-size:9px;font-weight:900;text-transform:uppercase}.log-meta code,.log-meta strong{overflow-wrap:anywhere;font-size:11px}.log-detail ol{display:grid;gap:8px;margin:0;padding:0;list-style:none}.log-detail li{display:grid;grid-template-columns:28px 1fr;gap:10px;padding:10px;border:1px solid #e8ecf3;border-radius:10px}.log-detail li>span{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;color:#475569;font-size:11px;font-weight:900;background:#eef2f7}.log-detail li.success>span{color:#087a55;background:#e6f8f0}.log-detail li.warning>span{color:#7c5d18;background:#fff4d6}.log-detail li.error>span{color:#a3261d;background:#feeceb}.log-detail li div{display:grid;gap:2px}.log-detail li strong,.log-detail li p,.log-detail li small{margin:0}.log-detail li strong{font-size:11px}.log-detail li p{color:#4f596c;font-size:11px;line-height:1.45}.log-detail li small{color:#8b95a8;font-size:9px}
.invoice-test-section{border-color:#c7d2fe;background:linear-gradient(135deg,#fff,#f8f9ff)}.invoice-test-safety{display:flex;align-items:flex-start;gap:10px;padding:13px 15px;border:1px solid #a7e3ca;border-radius:11px;color:#145b47;background:#effbf6}.invoice-test-safety strong{white-space:nowrap}.invoice-test-safety span{font-size:11px;line-height:1.5}.invoice-test-safety code{padding:2px 5px;border-radius:5px;color:#087a55;background:#d9f5e8}.invoice-test-button{justify-self:start;min-height:42px;border-color:#6366f1;color:#4338ca;background:#f5f6ff}.invoice-test-button:disabled{opacity:.55;cursor:not-allowed}.invoice-log-json{display:grid;grid-template-columns:1fr 1fr;gap:12px}.invoice-log-json section{display:grid;gap:6px;min-width:0}.invoice-log-json small{color:#64748b;font-size:9px;font-weight:900;letter-spacing:.05em;text-transform:uppercase}.invoice-log-json pre{max-height:360px;margin:0;padding:13px;overflow:auto;border:1px solid #dfe4ee;border-radius:10px;color:#dbeafe;font-size:10px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;background:#111827}
@media(max-width:800px){.rivhit-mode-grid,.log-meta{grid-template-columns:1fr}.rivhit-log-head{display:grid}.rivhit-log-head>span{width:max-content}.rivhit-log-list summary{grid-template-columns:auto minmax(0,1fr)}.rivhit-log-list summary>b{display:none}}
@media(max-width:800px){.invoice-log-json{grid-template-columns:1fr}.invoice-test-safety{display:grid}}
.stats article{display:grid;gap:7px;padding:20px;border:1px solid var(--line);border-radius:15px;background:#fff}.stats article span,.stats article small{color:var(--muted)}.stats article strong{font-size:25px}.overview-grid{display:grid;grid-template-columns:1.4fr .6fr;gap:20px}.quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick-actions button{padding:20px 12px;border:1px solid var(--line);border-radius:12px;color:#394258;font-weight:800;background:#fff;cursor:pointer}.settings-card{display:grid;gap:18px;padding:22px;border:1px solid var(--line);border-radius:16px;background:#fff}.settings-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.settings-tabs button{padding:10px 14px;border:1px solid var(--line);border-radius:9px;color:var(--muted);font-weight:800;background:#fff;cursor:pointer}.settings-tabs button.selected{border-color:#a5b4fc;color:#3730a3;background:#eef2ff}.managed-list-card{display:flex;align-items:center;justify-content:space-between;padding:14px;border:1px solid var(--line);border-radius:11px}.mobile-nav-close,.mobile-nav-toggle,.mobile-menu-backdrop{display:none}
@media(max-width:900px){.overview-grid{grid-template-columns:1fr}.mobile-nav-toggle{display:grid}.mobile-nav-close{display:block}.app-shell aside{position:fixed;z-index:80;left:-270px;width:245px;transition:left .2s}.app-shell.mobile-menu-open aside{left:0}.mobile-menu-open .mobile-menu-backdrop{position:fixed;z-index:70;inset:0;display:block;border:0;background:#11182788}.app-shell{grid-template-columns:1fr}}

.language-switch{display:flex;padding:3px;border:1px solid var(--line);border-radius:10px;background:#f4f6fa}.language-switch button{padding:6px 9px;border:0;border-radius:7px;color:var(--muted);font-size:11px;font-weight:900;background:transparent;cursor:pointer}.language-switch button.active{color:#fff;background:var(--brand);box-shadow:0 2px 7px #4f46e533}
[dir=rtl] body{text-align:right;font-family:Arial,"Segoe UI",sans-serif}[dir=rtl] aside{box-shadow:inset 1px 0 0 #ffffff0d}[dir=rtl] .nav-list{padding-right:0;padding-left:4px}[dir=rtl] .nav-link:hover{transform:translateX(-2px)}[dir=rtl] th,[dir=rtl] td{text-align:right}[dir=rtl] .platform small{grid-column:1}[dir=rtl] input,[dir=rtl] select,[dir=rtl] textarea{text-align:right}[dir=rtl] input[type=email],[dir=rtl] input[type=url],[dir=rtl] input[type=number],[dir=rtl] code,[dir=rtl] pre{direction:ltr;text-align:left}[dir=rtl] .document,[dir=rtl] .invoice-preview .document{direction:rtl;text-align:right}[dir=rtl] .header-actions,[dir=rtl] .mobile-header-title,[dir=rtl] .user,[dir=rtl] .brand,[dir=rtl] .page-head,[dir=rtl] .section-head{direction:rtl}[dir=rtl] .line-item-row,[dir=rtl] .form-grid,[dir=rtl] .customer-form-layout{direction:rtl}

/* Contract terms, templates, and customer-ready agreement output */
.contracts-hero-actions{display:flex;align-items:center;gap:9px}.contracts-templates{display:inline-flex;align-items:center;gap:7px;min-height:46px}.contracts-templates span{color:#0f766e;font-weight:900}.contract-terms-section{margin-top:14px}.contract-terms-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px}.contract-terms-controls .action{min-height:42px;white-space:nowrap}.contract-terms-section textarea{min-height:230px;resize:vertical;line-height:1.55}.contract-terms-section label>small{color:#64748b;font-size:10px;font-weight:500}.contract-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px}.contract-preview-button{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #b8e5df;border-radius:9px;color:#0f766e;font-size:14px;background:#f0fdfa;cursor:pointer}.contract-preview-button:hover{border-color:#2dd4bf;background:#ccfbf1}.contract-preview-backdrop{padding:24px;background:#0f172ab8}.contract-preview-modal.modal{width:min(920px,calc(100vw - 48px));height:min(92dvh,960px);max-height:none;padding:0;overflow:hidden;border:1px solid #dce3ec;border-radius:22px;background:#fff;box-shadow:0 40px 110px #02061766}.contract-preview-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;border-bottom:1px solid #e6ebf1;background:#fff}.contract-preview-head p,.contract-preview-head h3,.contract-preview-head small{margin:0}.contract-preview-head h3{margin-top:3px;font-size:21px}.contract-preview-head small{display:block;margin-top:3px;color:#64748b;font-size:11px}.contract-preview-head .close{flex:0 0 40px;width:40px;height:40px;border:1px solid #e2e8f0;border-radius:11px;color:#64748b;background:#f8fafc}.contract-document{min-height:0;height:calc(100% - 151px);overflow:auto;padding:34px 38px;color:#172033;line-height:1.55;background:#fff}.contract-document>header{display:flex;align-items:flex-start;justify-content:space-between;gap:26px;padding-bottom:21px;border-bottom:3px solid #0f766e}.contract-document>header p,.contract-document h1,.contract-document h2{margin:0}.contract-document>header p{color:#0f766e;font-size:10px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.contract-document h1{margin-top:4px;font-size:27px;letter-spacing:-.03em}.contract-document-company{display:grid;justify-items:end;gap:2px;color:#64748b;font-size:12px;text-align:end}.contract-document-company strong{color:#172033}.contract-document-customer{display:grid;grid-template-columns:1.15fr 1.1fr .9fr;gap:12px;margin:23px 0}.contract-document-customer>div,.contract-document-commercial>div{display:grid;gap:4px;padding:13px;border:1px solid #dce6e9;border-radius:10px;background:#f8fffe}.contract-document-customer span,.contract-document-commercial span,.contract-document-terms>div>p{margin:0;color:#64748b;font-size:10px;font-weight:900;letter-spacing:.05em;text-transform:uppercase}.contract-document-customer strong,.contract-document-commercial strong{font-size:13px}.contract-document-customer small,.contract-document-commercial small{color:#64748b;font-size:10px}.contract-document-commercial{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:26px}.contract-document-terms{padding:22px;border:1px solid #dce6e9;border-radius:12px}.contract-document-terms h2{margin-top:4px;font-size:19px}.contract-document-terms-copy p{margin:15px 0;color:#334155;font-size:13px;white-space:pre-line}.contract-document-notes{margin-top:18px;padding:14px 16px;border-inline-start:3px solid #0f766e;background:#f0fdfa}.contract-document-notes p{margin:5px 0 0;font-size:13px;white-space:pre-line}.contract-document>footer{display:grid;grid-template-columns:1fr 1fr 150px;gap:24px;margin-top:52px}.contract-document>footer>div{display:grid;gap:20px;color:#64748b;font-size:10px}.contract-document>footer i{display:block;border-bottom:1px solid #94a3b8}.contract-preview-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 24px;border-top:1px solid #dfe6ee;background:#fff;box-shadow:0 -8px 22px #0f172a0d}.contract-preview-actions>div{display:flex;gap:9px}.contract-preview-actions button{min-height:42px}.contract-template-backdrop{padding:24px;background:#0f172ab8}.contract-template-manager.modal{display:grid;grid-template-rows:auto minmax(0,1fr);width:min(1120px,calc(100vw - 48px));height:min(88dvh,780px);max-height:none;padding:0;overflow:hidden;border:1px solid #dce3ec;border-radius:22px;background:#fff;box-shadow:0 40px 110px #02061766}.contract-template-manager-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px 24px;border-bottom:1px solid #e6ebf1}.contract-template-manager-head h3,.contract-template-manager-head p{margin:0}.contract-template-manager-head h3{margin-top:3px;font-size:21px}.contract-template-manager-head p:last-child{margin-top:5px;color:#64748b;font-size:12px}.contract-template-manager-head .close{flex:0 0 40px;width:40px;height:40px;border:1px solid #e2e8f0;border-radius:11px;color:#64748b;background:#f8fafc}.contract-template-manager-body{display:grid;grid-template-columns:290px minmax(0,1fr);min-height:0;background:#f6f8fb}.contract-template-list{display:grid;align-content:start;gap:7px;min-height:0;overflow:auto;padding:16px;border-inline-end:1px solid #e2e8f0;background:#fff}.contract-template-list>div{display:flex;align-items:center;justify-content:space-between;padding:0 2px 8px}.contract-template-list>div strong{font-size:12px}.contract-template-list button{display:grid;grid-template-columns:31px minmax(0,1fr);align-items:center;gap:9px;width:100%;padding:9px;border:1px solid transparent;border-radius:10px;color:#334155;text-align:start;background:#f8fafc;cursor:pointer}.contract-template-list button:hover,.contract-template-list button.selected{border-color:#b5e5de;color:#0f766e;background:#f0fdfa}.contract-template-list button>span{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;color:#0f766e;font-size:10px;font-weight:900;background:#ccfbf1}.contract-template-list button>div{display:grid;gap:2px;min-width:0}.contract-template-list button strong{overflow:hidden;text-overflow:ellipsis;font-size:12px;white-space:nowrap}.contract-template-list button small{color:#64748b;font-size:10px}.contract-template-form{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:0;background:#fff}.contract-template-form-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 20px;border-bottom:1px solid #e8edf3}.contract-template-form-head h4,.contract-template-form-head p{margin:0}.contract-template-form-head h4{margin-top:3px;font-size:17px}.contract-template-fields{display:grid;align-content:start;gap:15px;min-height:0;overflow:auto;padding:20px}.contract-template-fields textarea{min-height:270px;resize:vertical;line-height:1.55}.contract-template-default{display:grid!important;grid-template-columns:38px minmax(0,1fr);align-items:center;column-gap:10px;padding:12px;border:1px solid #e2e8f0;border-radius:11px;background:#f8fafc;cursor:pointer}.contract-template-default input{position:absolute;opacity:0}.contract-template-default>span{grid-row:1/3;display:block;width:38px;height:22px;padding:3px;border-radius:99px;background:#cbd5e1}.contract-template-default>span::after{content:"";display:block;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0f172a33;transition:transform .2s}.contract-template-default input:checked+span{background:#0f766e}.contract-template-default input:checked+span::after{transform:translateX(16px)}.contract-template-default div{display:grid;gap:3px}.contract-template-default strong{color:#334155;font-size:11px}.contract-template-default small{color:#64748b;font-size:10px;font-weight:500}.contract-template-form>footer{display:flex;justify-content:flex-end;gap:9px;padding:13px 20px;border-top:1px solid #e2e8f0;background:#fff}.contract-template-form>footer button{min-width:120px;min-height:42px}@media(max-width:850px){.contract-template-manager-body{grid-template-columns:220px minmax(0,1fr)}.contract-document-customer{grid-template-columns:1fr 1fr}.contract-document-customer>div:last-child{grid-column:1/-1}}@media(max-width:650px){.contracts-hero-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.contracts-hero-actions button{justify-content:center;width:100%}.contract-terms-controls{grid-template-columns:1fr}.contract-row-actions{justify-content:flex-start}.contract-preview-backdrop,.contract-template-backdrop{align-items:end;padding:0}.contract-preview-modal.modal,.contract-template-manager.modal{width:100%;height:96dvh;border-width:1px 0 0;border-radius:20px 20px 0 0}.contract-preview-head{padding:16px}.contract-document{height:calc(100% - 139px);padding:24px 18px}.contract-document>header{align-items:stretch;flex-direction:column}.contract-document-company{justify-items:start;text-align:start}.contract-document-customer,.contract-document-commercial{grid-template-columns:1fr}.contract-document>footer{grid-template-columns:1fr;gap:18px;margin-top:36px}.contract-preview-actions{padding:12px 14px max(12px,env(safe-area-inset-bottom))}.contract-preview-actions>div{display:grid;grid-template-columns:1fr 1fr;flex:1}.contract-preview-actions button{width:100%}.contract-template-manager-head{padding:16px}.contract-template-manager-head p:last-child{display:none}.contract-template-manager-body{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.contract-template-list{display:flex;gap:7px;overflow-x:auto;overflow-y:hidden;padding:10px 14px;border-inline-end:0;border-bottom:1px solid #e2e8f0}.contract-template-list>div{display:none}.contract-template-list button{grid-template-columns:28px minmax(120px,1fr);flex:0 0 210px}.contract-template-list button>span{width:28px;height:28px}.contract-template-fields{padding:14px}.contract-template-form-head{padding:14px}.contract-template-form>footer{padding:12px 14px max(12px,env(safe-area-inset-bottom))}.contract-template-form>footer button{flex:1;min-width:0}}
[dir="rtl"] .contracts-hero-actions,[dir="rtl"] .contract-terms-controls,[dir="rtl"] .contract-row-actions,[dir="rtl"] .contract-preview-head,[dir="rtl"] .contract-document>header,[dir="rtl"] .contract-document-customer,[dir="rtl"] .contract-document-commercial,[dir="rtl"] .contract-document>footer,[dir="rtl"] .contract-preview-actions,[dir="rtl"] .contract-template-manager-head,[dir="rtl"] .contract-template-list>div,[dir="rtl"] .contract-template-form-head,[dir="rtl"] .contract-template-form>footer{direction:rtl}[dir="rtl"] .contract-document-company{justify-items:start;text-align:start}[dir="rtl"] .contract-template-default input:checked+span::after{transform:translateX(-16px)}[dir="rtl"] .contract-edit-button span{transform:rotate(180deg)}

/* Service contracts */
.contracts-page{display:grid;gap:20px;max-width:1440px;margin:0 auto}.contracts-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:4px 2px}.contracts-hero h3,.contracts-hero p{margin:0}.contracts-hero h3{font-size:30px;letter-spacing:-.035em}.contracts-hero p:last-child{margin-top:7px;color:#64748b;font-size:14px}.contracts-new{display:inline-flex;align-items:center;gap:9px;min-height:46px;padding:11px 18px;box-shadow:0 10px 22px #4f46e529}.contracts-new span{font-size:20px;line-height:1}.contracts-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.contracts-kpis article{display:flex;align-items:center;gap:14px;min-height:96px;padding:19px 20px;border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 8px 24px #0f172a08}.contracts-kpis article>div{display:grid;gap:5px}.contracts-kpis small{color:#64748b;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.contracts-kpis strong{font-size:23px;letter-spacing:-.03em}.contract-kpi-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:13px;color:#4338ca;font-size:18px;font-weight:900;background:#eef2ff}.contract-kpi-icon.active{color:#047857;background:#d1fae5}.contract-kpi-icon.renewal{color:#b45309;background:#fef3c7}.contract-kpi-icon.value{color:#0369a1;background:#e0f2fe}.contracts-panel{overflow:hidden;border:1px solid #e2e8f0;border-radius:18px;background:#fff;box-shadow:0 12px 34px #0f172a0a}.contracts-toolbar{display:flex;align-items:end;justify-content:space-between;gap:18px;padding:16px 18px;border-bottom:1px solid #e8edf3;background:#fff}.contracts-search{position:relative;display:block;width:min(480px,100%)}.contracts-search>span{position:absolute;z-index:1;inset-inline-start:14px;top:50%;color:#94a3b8;font-size:20px;transform:translateY(-50%)}.contracts-search input{width:100%;height:44px;padding-inline-start:43px;border:1px solid #d8e0ea;border-radius:11px;background:#f8fafc}.contracts-search input:focus{border-color:#818cf8;outline:0;box-shadow:0 0 0 3px #e0e7ff;background:#fff}.contracts-filters{display:flex;align-items:end;gap:10px}.contracts-filters label{display:grid;gap:5px;color:#64748b;font-size:10px;font-weight:800}.contracts-filters select{min-width:150px;height:42px;padding:9px 30px 9px 10px;border:1px solid #d8e0ea;border-radius:10px;color:#334155;background:#fff}.contracts-panel-meta{display:flex;align-items:center;justify-content:space-between;padding:10px 18px;border-bottom:1px solid #e8edf3;color:#64748b;font-size:12px;background:#f8fafc}.contracts-panel-meta strong{color:#172033}.contracts-panel-meta label{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:800}.contracts-panel-meta select{height:32px;padding:5px 25px 5px 8px;border:1px solid #d8e0ea;border-radius:8px;background:#fff}.contracts-panel .contracts-table{border:0;border-radius:0}.contracts-panel .contracts-table table{min-width:1100px}.contracts-panel .contracts-table th{padding:12px 18px;color:#64748b;font-size:10px;background:#fff}.contracts-panel .contracts-table td{height:78px;padding:13px 18px;vertical-align:middle}.contracts-panel .contracts-table tbody tr{transition:background-color .15s ease}.contracts-panel .contracts-table tbody tr:hover{background:#f8faff}.contract-number-cell,.contract-customer-cell{display:flex;align-items:center;gap:11px}.contract-number-cell>span{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:11px;color:#4338ca;font-size:10px;font-weight:900;background:#eef2ff}.contract-number-cell>div,.contract-customer-cell>div,.contract-period,.contract-renewal{display:grid;gap:4px}.contract-number-cell strong,.contract-customer-cell strong{font-size:12px}.contract-number-cell small,.contract-customer-cell small,.contract-secondary{display:block;color:#64748b;font-size:10px;font-weight:500}.contract-customer-cell>span{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:10px;color:#0369a1;font-size:10px;font-weight:900;background:#e0f2fe}.contract-period{grid-template-columns:auto 12px auto;align-items:center;gap:7px;font-size:11px;white-space:nowrap}.contract-period>span{color:#94a3b8}.contract-period+.contract-secondary{margin-top:4px}.contract-sla,.contract-status{display:inline-flex;align-items:center;width:max-content;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:900}.contract-sla.basic{color:#475569;background:#e2e8f0}.contract-sla.standard{color:#4338ca;background:#eef2ff}.contract-sla.priority{color:#b45309;background:#fef3c7}.contract-sla.critical{color:#b42318;background:#fee2e2}.contract-renewal strong{font-size:11px}.contract-price{font-variant-numeric:tabular-nums;color:#0f766e}.contract-status.active{color:#047857;background:#d1fae5}.contract-status.expiring{color:#b45309;background:#fef3c7}.contract-status.inactive{color:#b42318;background:#fee2e2}.contract-status.draft{color:#475569;background:#e2e8f0}.contract-edit-button{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid #d8e0ea;border-radius:9px;color:#4338ca;font-size:11px;font-weight:900;background:#fff;cursor:pointer}.contract-edit-button:hover{border-color:#a5b4fc;background:#eef2ff}.contracts-pagination{display:flex;align-items:center;justify-content:space-between;padding:13px 18px;color:#64748b;font-size:11px}.contracts-pagination>div{display:flex;gap:8px}.contracts-empty{display:grid;justify-items:center;gap:7px;padding:52px 20px;color:#64748b;text-align:center}.contracts-empty>span{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;color:#4f46e5;font-size:20px;background:#eef2ff}.contracts-empty strong{color:#334155}.contracts-empty p{margin:0;font-size:12px}.contracts-empty .primary{margin-top:7px}
.contract-modal-backdrop{padding:24px;background:#0f172ab8}.contract-editor.modal{display:block;width:min(1000px,calc(100vw - 48px));height:min(90dvh,850px);max-height:none;padding:0;overflow:hidden;border:1px solid #dce3ec;border-radius:22px;background:#fff;box-shadow:0 40px 110px #02061766}.contract-editor-form{display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:100%;height:100%;min-height:0}.contract-editor-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 24px;border-bottom:1px solid #e6ebf1;background:#fff}.contract-editor-title{display:flex;align-items:center;gap:13px}.contract-editor-title h3,.contract-editor-title p,.contract-editor-title small{margin:0}.contract-editor-title h3{margin-top:2px;font-size:22px;letter-spacing:-.025em}.contract-editor-title small{display:block;margin-top:4px;color:#64748b;font-size:11px;font-weight:700}.contract-editor-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:13px;color:#fff;font-size:11px;font-weight:900;background:linear-gradient(135deg,#0f766e,#0891b2);box-shadow:0 10px 22px #0f766e33}.contract-editor-header .close{flex:0 0 40px;width:40px;height:40px;border:1px solid #e2e8f0;border-radius:11px;color:#64748b;background:#f8fafc}.contract-editor-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px 24px 24px;background:#f6f8fb}.contract-overview-section,.contract-form-section{display:grid;gap:16px;padding:18px;border:1px solid #e1e7ef;border-radius:15px;background:#fff;box-shadow:0 4px 14px #0f172a08}.contract-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}.contract-notes-section{margin-top:14px}.contract-section-head{display:flex;align-items:center;gap:11px;padding-bottom:12px;border-bottom:1px solid #edf1f5}.contract-section-head>span{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:9px;color:#0f766e;font-size:10px;font-weight:900;background:#ccfbf1}.contract-section-head h4,.contract-section-head p{margin:0}.contract-section-head h4{font-size:14px}.contract-section-head p{margin-top:3px;color:#64748b;font-size:10px;font-weight:500}.contract-form-grid{display:grid;gap:12px}.contract-form-grid.overview-grid{grid-template-columns:160px minmax(0,1fr) minmax(250px,1fr)}.contract-form-grid.two{grid-template-columns:1fr 1fr}.contract-editor label{display:grid;gap:6px;min-width:0;color:#475569;font-size:11px;font-weight:800}.contract-editor input,.contract-editor select,.contract-editor textarea{width:100%;min-width:0;border:1px solid #d7e0ea;border-radius:10px;color:#172033;background:#fff}.contract-editor input,.contract-editor select{min-height:42px;padding:9px 11px}.contract-editor textarea{padding:11px}.contract-editor input:focus,.contract-editor select:focus,.contract-editor textarea:focus{border-color:#2dd4bf;outline:0;box-shadow:0 0 0 3px #ccfbf1}.contract-date-summary{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:10px;color:#155e75;background:#ecfeff}.contract-date-summary>span{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:8px;color:#0f766e;background:#ccfbf1}.contract-date-summary>div{display:grid;gap:2px}.contract-date-summary strong{font-size:11px}.contract-date-summary small{font-size:10px;color:#0e7490}.contract-renew-switch{grid-template-columns:38px 1fr;column-gap:10px;align-items:center;padding:12px;border:1px solid #e4e9f0;border-radius:11px;background:#f8fafc;cursor:pointer}.contract-renew-switch input{position:absolute;opacity:0}.contract-renew-switch>span{grid-row:1/3;display:block;width:38px;height:22px;padding:3px;border-radius:99px;background:#cbd5e1;transition:background-color .2s}.contract-renew-switch>span::after{content:"";display:block;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0f172a33;transition:transform .2s}.contract-renew-switch input:checked+span{background:#0f766e}.contract-renew-switch input:checked+span::after{transform:translateX(16px)}.contract-renew-switch div{display:grid;gap:3px}.contract-renew-switch strong{color:#334155;font-size:11px}.contract-renew-switch small{color:#64748b;font-size:10px;font-weight:500}.contract-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 24px;border-top:1px solid #dfe6ee;background:#fff;box-shadow:0 -8px 22px #0f172a0d}.contract-editor-footer>div{display:flex;gap:9px}.contract-editor-footer button{min-width:124px;min-height:42px}.contract-editor-footer .primary{box-shadow:0 8px 18px #4f46e529}.contract-delete{padding:8px 0;border:0;color:#b42318;font-size:11px;font-weight:900;background:transparent;cursor:pointer}.contract-delete-dialog{width:min(460px,100%);padding:25px}.contract-delete-dialog>div:first-child{display:flex;align-items:center;gap:11px}.contract-delete-dialog>div:first-child>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;color:#b42318;font-weight:900;background:#fee2e2}.contract-delete-dialog h3,.contract-delete-dialog p{margin:0}.contract-delete-dialog h3{font-size:18px}.contract-delete-dialog p{margin-top:13px;color:#64748b;font-size:13px;line-height:1.5}.contract-delete-dialog .modal-actions{margin-bottom:0}
@media(max-width:1050px){.contracts-kpis{grid-template-columns:1fr 1fr}.contract-editor-grid{grid-template-columns:1fr}.contract-form-grid.overview-grid{grid-template-columns:1fr 1fr}.contract-customer-select{grid-column:1/-1}}
@media(max-width:700px){.contracts-page{gap:14px}.contracts-hero{align-items:stretch;flex-direction:column}.contracts-hero h3{font-size:26px}.contracts-new{justify-content:center;width:100%}.contracts-kpis{grid-template-columns:1fr}.contracts-toolbar{align-items:stretch;flex-direction:column}.contracts-search{width:100%}.contracts-filters{display:grid;grid-template-columns:1fr 1fr}.contracts-filters select{width:100%;min-width:0}.contract-modal-backdrop{align-items:end;padding:0}.contract-editor.modal{width:100%;height:96dvh;border-width:1px 0 0;border-radius:20px 20px 0 0}.contract-editor-header{padding:16px}.contract-editor-title h3{font-size:19px}.contract-editor-body{padding:14px}.contract-overview-section,.contract-form-section{padding:14px}.contract-editor-grid{gap:11px;margin-top:11px}.contract-notes-section{margin-top:11px}.contract-form-grid.overview-grid,.contract-form-grid.two{grid-template-columns:1fr}.contract-customer-select{grid-column:auto}.contract-editor-footer{padding:12px 14px max(12px,env(safe-area-inset-bottom))}.contract-editor-footer>span,.contract-delete{display:none}.contract-editor-footer>div{display:grid;grid-template-columns:1fr 1.35fr;width:100%}.contract-editor-footer button{width:100%;min-width:0}.contracts-pagination{padding:12px 14px}.contracts-panel-meta{padding:10px 14px}}
[dir="rtl"] .contracts-page,[dir="rtl"] .contract-editor.modal{text-align:right}[dir="rtl"] .contracts-hero,[dir="rtl"] .contracts-toolbar,[dir="rtl"] .contracts-filters,[dir="rtl"] .contracts-panel-meta,[dir="rtl"] .contract-number-cell,[dir="rtl"] .contract-customer-cell,[dir="rtl"] .contract-editor-header,[dir="rtl"] .contract-editor-title,[dir="rtl"] .contract-section-head,[dir="rtl"] .contract-date-summary,[dir="rtl"] .contract-editor-footer,[dir="rtl"] .contract-editor-footer>div{direction:rtl}[dir="rtl"] .contract-editor input,[dir="rtl"] .contract-editor select,[dir="rtl"] .contract-editor textarea{text-align:right}[dir="rtl"] .contract-editor-header .close{margin-right:auto;margin-left:0}[dir="rtl"] .contract-period>span{transform:rotate(180deg)}[dir="rtl"] .contract-edit-button span{transform:rotate(180deg)}[dir="rtl"] .contract-renew-switch input:checked+span::after{transform:translateX(-16px)}
@media(max-width:900px){[dir=rtl] .app-shell aside{right:-270px;left:auto;transition:right .2s}[dir=rtl] .app-shell.mobile-menu-open aside{right:0;left:auto}.header-actions{gap:8px}.save-state{display:none}}
@media(max-width:600px){.language-switch button{padding:6px 7px}.user div{display:none}}
.secure-login{display:inline-flex;align-items:center;justify-content:center;margin-top:18px;text-decoration:none}.hero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:22px;padding:27px;border:1px solid #dfe4ee;border-radius:18px;background:linear-gradient(135deg,#fff 20%,#f3f5ff);box-shadow:0 12px 34px #27345d0a}.hero h1,.hero p{margin:0}.hero h1{margin:5px 0 8px;font-size:28px}.hero>div>p:last-child{color:var(--muted);line-height:1.55}
.user-role-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:18px}.permission-card{align-self:start}.role-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:15px}.role-tabs button{padding:8px 11px;border:1px solid var(--line);border-radius:8px;color:#64748b;font-weight:800;background:#fff;cursor:pointer}.role-tabs button.selected{border-color:#a5b4fc;color:#3730a3;background:#eef2ff}.permission-matrix{display:grid;gap:8px}.permission-matrix label{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 12px;border:1px solid #e5e9f1;border-radius:10px;background:#fafbfc}.permission-matrix label>span{display:grid;gap:2px}.permission-matrix small{color:var(--muted);font-weight:400}.permission-matrix input{width:18px;height:18px;accent-color:var(--brand)}
.form-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.form-card{display:grid;gap:13px;padding:20px;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:0 8px 24px #29335508}.form-card>div:first-child,.form-card>div:last-of-type{display:flex;align-items:center;justify-content:space-between;gap:10px}.form-card h3,.form-card p{margin:0}.form-card p{min-height:42px;color:var(--muted);line-height:1.5}.form-card>div:last-of-type{color:#64748b;font-size:12px;font-weight:700}.form-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;color:#4338ca;font-weight:900;background:#eef2ff}.form-builder-modal{width:min(1050px,100%)}.field-builder{display:grid;gap:11px;padding:16px;border:1px solid var(--line);border-radius:13px;background:#fafbfc}.field-builder>.section-head{margin:0}.field-row{display:grid;grid-template-columns:1.4fr 1fr 1fr auto auto;align-items:end;gap:9px;padding:11px;border:1px solid #e3e7ef;border-radius:11px;background:#fff}.compact-check{display:flex;align-items:center;gap:7px;min-height:42px;white-space:nowrap}.compact-check input{width:17px;height:17px}.wide-field{grid-column:1/-2}.backup-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:9px;padding:11px 0;border-top:1px solid var(--line)}.backup-row>span{display:grid;gap:3px;min-width:0}.backup-row small{color:var(--muted)}.list-catalog-item{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:58px;padding:11px 12px;border:1px solid transparent;border-radius:10px;color:#334155;text-align:left;background:transparent;cursor:pointer}.list-catalog-item:hover,.list-catalog-item.selected{border-color:#c7d2fe;background:#eef2ff}.list-catalog-item>span{display:grid;gap:3px}.list-catalog-item small{color:var(--muted);font-weight:500}.list-catalog-item b{color:#94a3b8;font-size:19px}
@media(max-width:1100px){.form-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.user-role-layout{grid-template-columns:1fr}}
@media(max-width:700px){.hero{align-items:stretch;flex-direction:column;padding:20px}.hero .primary{width:100%}.form-card-grid{grid-template-columns:1fr}.field-row{grid-template-columns:1fr 1fr}.field-row .compact-check,.field-row .remove{align-self:center}.wide-field{grid-column:1/-1}.backup-row{grid-template-columns:1fr auto}.backup-row>span{grid-column:1/-1}}

/* Quote editor field alignment: every document control uses the same grid and height. */
.quote-editor .invoice-form>.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.quote-editor .invoice-form>.form-grid>label{display:grid;grid-template-rows:16px 48px minmax(15px,auto);align-content:start;min-width:0;gap:8px}
.quote-editor .invoice-form>.form-grid>label>input,.quote-editor .invoice-form>.form-grid>label>select{width:100%;height:48px;min-height:48px}
.quote-editor .invoice-form>.form-grid>label>small{min-height:15px;line-height:15px}

/* Keep every document-item column visible without a horizontal scroller. */
.quote-editor .line-items-table{overflow-x:visible}
.quote-editor .line-item-row.with-cost{grid-template-columns:minmax(180px,2.2fr) minmax(60px,.6fr) minmax(78px,.75fr) minmax(100px,1.05fr) minmax(68px,.65fr) minmax(58px,.6fr) minmax(112px,1fr) 42px;min-width:0;gap:8px}
.quote-editor .line-item-row.with-cost>*{min-width:0}
.quote-editor .line-item-picker{display:grid;gap:5px}.quote-editor .line-item-name{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:5px}.quote-editor .item-info-button{display:grid;place-items:center;min-width:38px;padding:0;border:1px solid var(--line);border-radius:8px;color:#64748b;font-size:20px;font-weight:800;background:#fff;cursor:pointer}.quote-editor .item-info-button:hover,.quote-editor .item-info-button.has-content{border-color:#a5b4fc;color:#4338ca;background:#eef2ff}.item-info-modal{width:min(560px,100%)}.item-info-modal>label{display:grid;gap:8px;padding:20px 24px 0;font-weight:700}.item-info-modal textarea{min-height:150px;resize:vertical}
.quote-items-preview-trigger{display:inline-flex;align-items:center;padding:4px 8px;border:1px solid transparent;border-radius:7px;color:#4338ca;font-weight:800;white-space:nowrap;cursor:help}.quote-items-preview-trigger:hover,.quote-items-preview-trigger:focus-visible{border-color:#c7d2fe;outline:0;background:#eef2ff}.quote-items-preview{position:fixed;z-index:120;top:clamp(12px,var(--preview-y),calc(100vh - 340px));left:clamp(12px,var(--preview-x),calc(100vw - 372px));display:grid;width:min(360px,calc(100vw - 24px));max-height:328px;overflow:hidden;border:1px solid #dbe2ef;border-radius:14px;color:var(--ink);text-align:start;background:#fff;box-shadow:0 18px 48px #17203338;pointer-events:none}.quote-items-preview header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border-bottom:1px solid #e8ecf3;background:#f8faff}.quote-items-preview header>div{display:grid;gap:2px}.quote-items-preview header small{color:#64748b;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.quote-items-preview header strong{font-size:14px}.quote-items-preview header>span{padding:4px 7px;border-radius:999px;color:#4338ca;font-size:10px;font-weight:800;background:#e0e7ff}.quote-items-preview-list{display:grid;overflow:auto}.quote-items-preview article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 14px;padding:10px 15px;border-bottom:1px solid #eef1f6}.quote-items-preview article:last-child{border-bottom:0}.quote-items-preview article>div{display:grid;gap:2px;min-width:0}.quote-items-preview article>div:nth-child(2){text-align:end}.quote-items-preview article strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.quote-items-preview article span,.quote-items-preview article small{color:#64748b;font-size:10px}.quote-items-preview article p{grid-column:1/-1;display:-webkit-box;margin:2px 0 0;overflow:hidden;color:#64748b;font-size:10px;line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:2}.quote-items-preview footer,.quote-items-preview-empty{margin:0;padding:9px 15px;border-top:1px solid #e8ecf3;color:#64748b;font-size:10px;font-weight:800;background:#f8faff}html[dir="rtl"] .quote-items-preview{right:auto}@media(max-width:700px){.quote-items-preview{top:auto;right:12px;bottom:12px;left:12px;width:auto;max-height:45vh}}
@media(min-width:901px){.quote-editor .line-items{grid-column:1/-1}}
@media(max-width:700px){.quote-editor .line-item-row.with-cost{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}.quote-editor .line-item-header.with-cost{display:none}.quote-editor .line-item-row.with-cost>:first-child{grid-column:1/-1}.quote-editor .line-item-row.with-cost>:nth-child(7){grid-column:1}.quote-editor .line-item-row.with-cost>:nth-child(8){grid-column:2}.quote-editor .line-items-table{max-width:none;overflow:visible}}

/* Keep the quote document in a natural reading order: details, items, totals, actions. */
@media(min-width:901px){.modal.quote-editor{height:auto}.quote-editor>.invoice-form{height:auto;max-height:calc(94vh - 91px);grid-template-rows:none}.quote-editor .quote-commercial-summary{position:static;top:auto;grid-column:1/-1;grid-row:auto}.quote-editor .line-items{display:grid;grid-template-rows:none;min-height:0}.quote-editor .line-items-table{min-height:0;overflow:visible}.quote-editor .modal-actions{align-self:auto}}

/* Compact document details so the written item content is the focus of the editor. */
@media(min-width:901px){.modal.quote-editor{width:min(1500px,calc(100vw - 48px))}.quote-editor .modal-head{min-height:74px;padding:14px 24px}.quote-editor .modal-head h3{font-size:22px}.quote-editor>.invoice-form{grid-template-columns:minmax(0,1fr);gap:10px;padding:14px 24px 0}.quote-editor .invoice-form>.form-grid{gap:10px;padding:10px 12px}.quote-editor .invoice-form>.form-grid:nth-child(1){margin-top:0;grid-template-columns:minmax(180px,.7fr) minmax(340px,1.8fr)}.quote-editor .invoice-form>.form-grid:nth-child(1):before{display:none}.quote-editor .invoice-form>.form-grid:nth-child(2){grid-template-columns:minmax(300px,1.5fr) minmax(180px,.8fr)}.quote-editor .invoice-form>.form-grid:nth-child(3){width:min(320px,100%);margin-bottom:0;grid-template-columns:1fr}.quote-editor .invoice-form>.form-grid:nth-child(3):after{display:none}.quote-editor .invoice-form>.form-grid>label{grid-template-rows:14px 40px auto;gap:4px}.quote-editor .invoice-form>.form-grid>label>input,.quote-editor .invoice-form>.form-grid>label>select{height:40px;min-height:40px;padding:8px 10px}.quote-editor .invoice-form>.form-grid>label>small{display:none}.quote-editor .line-items{gap:12px;padding:15px 16px}.quote-editor .line-items-head h4{font-size:16px}.quote-editor .line-items-head p{margin-top:2px;font-size:12px}.quote-editor .line-item-row.with-cost{grid-template-columns:minmax(280px,3.5fr) minmax(62px,.65fr) minmax(85px,.85fr) minmax(110px,1.1fr) minmax(68px,.7fr) minmax(58px,.6fr) minmax(120px,1.1fr) 38px;gap:7px;padding:10px 11px}.quote-editor .line-item-row input,.quote-editor .line-item-row select{min-height:40px;padding:8px 9px;font-size:13px}.quote-editor .line-item-row>strong{padding:8px 9px;font-size:13px}.quote-commercial-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0}.quote-commercial-summary>div{min-height:64px;padding:11px 13px}.quote-editor .quote-total{min-height:64px;padding:12px 14px}.quote-editor .quote-total strong{font-size:21px}.quote-editor .modal-actions{margin:0 -24px;padding:12px 24px 14px}}

/* The primary document fields share one aligned horizontal row. */
@media(min-width:901px){.quote-editor>.invoice-form{grid-template-columns:repeat(4,minmax(0,1fr));align-content:start}.quote-editor .invoice-form>.form-grid{display:contents}.quote-editor .invoice-form>.form-grid>label{padding:10px 12px;border:1px solid #e1e6ef;border-radius:12px;background:#fff;box-shadow:0 3px 10px #17203306}.quote-editor .invoice-form>.form-grid:nth-child(2)>label:last-child{order:1;grid-column:1}.quote-editor .line-items{order:2;grid-column:1/-1}.quote-editor .quote-commercial-summary{order:3;grid-column:1/-1}.quote-editor .modal-actions{order:4;grid-column:1/-1}}

/* A polished, compact document-details header above the primary fields. */
@media(min-width:901px){.quote-editor>.invoice-form:before{order:-1;display:flex;align-items:center;grid-column:1/-1;min-height:38px;padding:9px 13px;border:1px solid #dbe2f2;border-radius:12px;color:#4338ca;font-size:11px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;content:"Document details";background:linear-gradient(90deg,#f5f7ff,#fbfcff);box-shadow:0 3px 10px #17203305}.quote-editor .invoice-form>.form-grid>label{border-color:#dfe5ef;background:linear-gradient(180deg,#fff,#fbfcff)}.quote-editor .invoice-form>.form-grid>label:focus-within{border-color:#a5b4fc;background:#fff;box-shadow:0 0 0 3px #e0e7ff}.quote-editor .invoice-form>.form-grid:nth-child(1)>label:first-child{border-top:3px solid #818cf8}.quote-editor .invoice-form>.form-grid:nth-child(1)>label:nth-child(2){border-top:3px solid #60a5fa}.quote-editor .invoice-form>.form-grid:nth-child(2)>label:first-child{border-top:3px solid #34d399}.quote-editor .invoice-form>.form-grid:nth-child(3)>label{border-top:3px solid #f59e0b}.quote-editor .invoice-form>.form-grid:nth-child(2)>label:last-child{grid-column:1/span 2;border-top:3px solid #a78bfa}}

/* Denser upper controls keep the document editor comfortably within the viewport. */
@media(min-width:901px){.quote-editor>.invoice-form{gap:8px;padding:10px 20px 0}.quote-editor>.invoice-form:before{min-height:32px;padding:6px 10px;border-radius:10px;font-size:10px}.quote-editor .invoice-form>.form-grid>label{grid-template-rows:13px 38px auto;gap:3px;padding:8px 10px;font-size:11px}.quote-editor .invoice-form>.form-grid>label>input,.quote-editor .invoice-form>.form-grid>label>select{height:38px;min-height:38px;padding:7px 9px;font-size:13px}.quote-editor .invoice-form>.form-grid:nth-child(2)>label:last-child{grid-column:1}.quote-editor .line-items{padding:14px}.quote-editor .modal-actions{margin:0 -20px;padding:10px 20px 12px}}

/* Match the compact document-details rhythm across items, totals and actions. */
@media(min-width:901px){.quote-editor .line-items{gap:9px;padding:12px 14px}.quote-editor .line-items-head{gap:12px}.quote-editor .line-items-head h4{font-size:15px}.quote-editor .line-items-head p{font-size:11px}.quote-editor .line-items-head button{min-height:36px;padding:7px 10px;font-size:12px}.quote-editor .line-item-row.with-cost{gap:6px;padding:8px 9px}.quote-editor .line-item-header{min-height:32px;padding-top:7px;padding-bottom:7px;font-size:10px}.quote-editor .line-item-row input,.quote-editor .line-item-row select{min-height:36px;padding:6px 8px;font-size:12px}.quote-editor .line-item-row>strong{padding:7px 8px;font-size:12px}.quote-editor .remove{width:36px;height:36px}.quote-commercial-summary{gap:7px}.quote-commercial-summary>div,.quote-editor .quote-total{min-height:56px;padding:9px 11px}.quote-editor .quote-total strong{font-size:19px}.quote-editor .modal-actions button{min-height:38px;padding:9px 14px}}

/* Four quote-summary fields, aligned in one predictable row. */
@media(min-width:901px){.quote-editor .quote-commercial-summary{grid-column:1/-1;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:8px}.quote-editor .quote-commercial-summary:before{display:none}.quote-editor .quote-commercial-summary>div{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto minmax(0,1fr);min-width:0;min-height:68px;padding:10px 12px}.quote-editor .quote-commercial-summary>div>span:first-child{min-width:0;line-height:1.25}.quote-editor .quote-commercial-summary>div>strong{min-width:0;align-self:end;justify-self:end;font-size:19px;white-space:nowrap}.quote-editor .gross-profit-summary>.profit-value,.quote-editor .gross-profit-summary>.profit-masked{min-width:0;align-self:end;justify-self:end}.quote-editor .gross-profit-summary .profit-value strong{font-size:18px;white-space:nowrap}.quote-editor .gross-profit-summary .profit-value small{white-space:nowrap}.quote-editor .profit-inline-toggle{align-self:start;min-height:25px;padding:4px 6px;font-size:9px}.quote-editor .quote-total{min-height:68px}.quote-editor .quote-total strong{font-size:20px}}

/* Converted quotes are final: show the conversion action as inactive and lock the status. */
.editable-row:has(.inline-select option[value="Converted"]:checked) .inline-select{pointer-events:none;opacity:.62;color:#64748b;background:#f1f5f9;cursor:not-allowed}
.editable-row:has(.inline-select option[value="Converted"]:checked) .icon-button.convert{pointer-events:none;opacity:.32;filter:grayscale(1);cursor:not-allowed}
.editable-row .inline-select.is-converted,.editable-row .icon-button.convert.is-converted{opacity:.38;filter:grayscale(1);cursor:not-allowed}
.order-row-link,.quote-row-link{display:block;margin-top:3px;font-size:10px;font-weight:800;white-space:nowrap}.order-row-link{color:#7c3aed}.quote-row-link{color:#2563eb}

/* Configurable delivery controls are grouped with the company document settings. */
.document-delivery-settings{display:grid;gap:14px;padding:16px;border:1px solid #dbe2f2;border-radius:13px;background:linear-gradient(135deg,#fbfcff,#f6f8ff)}.document-delivery-settings .section-head{margin:0}.document-delivery-settings h4,.document-delivery-settings p{margin:0}.document-delivery-settings h4{margin-top:3px}.document-delivery-settings p{color:var(--muted);font-size:12px;line-height:1.45}.document-delivery-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.document-delivery-options label{display:flex;align-items:flex-start;gap:9px;min-height:70px;padding:12px;border:1px solid #e0e6f0;border-radius:10px;background:#fff;cursor:pointer}.document-delivery-options input{width:17px;height:17px;margin:2px 0 0;accent-color:var(--brand)}.document-delivery-options span{display:grid;gap:3px}.document-delivery-options small,.document-email-templates small{color:var(--muted);font-size:10px;line-height:1.35}.document-email-templates{margin-top:2px}.document-email-templates .document-email-body{grid-column:1/-1}.document-email-templates textarea{min-height:104px;resize:vertical}@media(max-width:700px){.document-delivery-options{grid-template-columns:1fr}.document-delivery-options label{min-height:0}}

/* Print-ready invoice document */
.invoice-preview{width:min(920px,calc(100vw - 48px));padding:0;background:#f1f1f1}.invoice-preview>.modal-head{padding:18px 24px;border-bottom:1px solid #d8d8d8;background:#fff}.invoice-document{display:flex;flex-direction:column;width:min(100%,210mm);min-height:297mm;margin:auto;padding:16mm 15mm 12mm;color:#171717;font-family:Arial,"Segoe UI",sans-serif;font-size:11px;line-height:1.35;background:#fff}.invoice-document-masthead{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;align-items:start;padding-bottom:10px;border-bottom:2px solid #171717}.invoice-document-company{display:flex;align-items:flex-start;gap:10px}.invoice-document-mark{display:grid;place-items:center;flex:0 0 31px;width:31px;height:31px;border:1.5px solid #171717;border-radius:50%;font-size:15px;font-weight:800}.invoice-document-company strong,.invoice-document-company small{display:block}.invoice-document-company strong{font-size:14px}.invoice-document-company small{margin-top:2px;color:#4b4b4b}.invoice-document-title{min-width:146px;padding-inline-start:18px;border-inline-start:1px solid #777;text-align:end}.invoice-document-title span{display:block;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.invoice-document-title strong{display:block;margin-top:4px;font-size:20px;line-height:1.05}.invoice-document-details{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(190px,.75fr);gap:24px;padding:17px 0 15px;border-bottom:1px solid #8a8a8a}.invoice-document-customer>span,.invoice-document-facts dt,.invoice-document-totals dt,.invoice-document-source span{display:block;color:#555;font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.invoice-document-customer>strong{display:block;margin-top:4px;font-size:15px}.invoice-document-customer small{display:block;margin-top:3px;color:#555}.invoice-document-facts{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:0}.invoice-document-facts div{min-width:0}.invoice-document-facts dt,.invoice-document-facts dd,.invoice-document-totals dt,.invoice-document-totals dd{margin:0}.invoice-document-facts dd{margin-top:4px;font-weight:700}.invoice-document-source{display:flex;gap:9px;align-items:baseline;margin:11px 0 0}.invoice-document-source span{display:inline}.invoice-document-items{width:100%;margin-top:16px;border-collapse:collapse;font-size:10px}.invoice-document-items th,.invoice-document-items td{padding:7px 5px;border-bottom:1px solid #b5b5b5;text-align:start;vertical-align:top}.invoice-document-items th{padding-top:0;border-top:1.5px solid #171717;color:#333;font-size:8.5px;letter-spacing:.05em;text-transform:uppercase}.invoice-document-items th:not(:nth-child(2)),.invoice-document-items td:not(:nth-child(2)){white-space:nowrap}.invoice-document-items td:nth-child(n+3),.invoice-document-items th:nth-child(n+3){text-align:end}.invoice-document-items td strong{font-size:10px}.invoice-document-items td small{display:block;margin-top:2px;color:#666;font-size:8.5px;line-height:1.25}.invoice-document-closing{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:32px;align-items:end;margin-top:19px}.invoice-document-signatures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;padding-bottom:5px}.invoice-document-signatures span{display:block;color:#555;font-size:9px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.invoice-document-signatures i{display:block;margin-top:27px;border-bottom:1px solid #4c4c4c}.invoice-document-totals{margin:0;border-top:1.5px solid #171717}.invoice-document-totals>div{display:flex;justify-content:space-between;gap:15px;padding:5px 0;border-bottom:1px solid #b5b5b5}.invoice-document-totals dd{font-weight:700;text-align:end}.invoice-document-totals .invoice-document-grand-total{padding:8px 0;border-bottom:2px solid #171717}.invoice-document-grand-total dt,.invoice-document-grand-total dd{color:#111;font-size:13px;font-weight:800}.invoice-document-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:auto;padding-top:12px;border-top:1px solid #8a8a8a;color:#444;font-size:9px}.invoice-document-footer strong{color:#171717}@media(max-width:700px){.invoice-preview{width:100%;max-height:94dvh;border-radius:20px 20px 0 0}.invoice-preview>.modal-head{padding:16px 20px}.invoice-document{padding:28px 20px;min-height:0}.invoice-document-masthead,.invoice-document-details,.invoice-document-closing{grid-template-columns:1fr}.invoice-document-title{padding-inline-start:0;border-inline-start:0;text-align:start}.invoice-document-closing{gap:20px}.invoice-document-items{font-size:8px}.invoice-document-items th,.invoice-document-items td{padding:5px 3px}}@media print{.invoice-preview{position:fixed;inset:0;width:100%;max-height:none;overflow:visible!important;border-radius:0;background:#fff}.invoice-preview .invoice-document{min-height:271mm;padding:0}.invoice-preview>.modal-head{display:none!important}}

/* Reusable invoice and sales-document terms */
.document-terms-editor{display:grid;gap:13px;margin-top:18px;padding:17px;border:1px solid #dbe2ed;border-radius:12px;background:#fbfcfe}.document-terms-editor-head h4,.document-terms-editor-head p{margin:0}.document-terms-editor-head h4{font-size:14px}.document-terms-editor-head p{margin-top:4px;color:var(--muted);font-size:12px;line-height:1.4}.document-terms-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px}.document-terms-controls label,.document-terms-copy{display:grid;gap:6px;color:#344054;font-size:12px;font-weight:800}.document-terms-copy textarea{min-height:150px;resize:vertical;line-height:1.5}.document-terms-template-manager{width:min(1060px,calc(100vw - 48px));max-height:min(850px,92dvh);padding:0;overflow:hidden}.document-terms-template-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:22px 24px;border-bottom:1px solid #e3e7ee;background:#fff}.document-terms-template-head h3,.document-terms-template-head p{margin:0}.document-terms-template-head h3{margin-top:3px;font-size:20px}.document-terms-template-head>div>p:last-child{max-width:620px;margin-top:5px;color:var(--muted);font-size:12px;line-height:1.45}.document-terms-template-body{display:grid;grid-template-columns:270px minmax(0,1fr);min-height:480px;max-height:calc(min(850px,92dvh) - 105px)}.document-terms-template-list{display:grid;align-content:start;gap:5px;overflow:auto;padding:15px;border-inline-end:1px solid #e3e7ee;background:#f8fafc}.document-terms-template-list>div{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}.document-terms-template-list>div strong{font-size:12px}.document-terms-template-list>button{display:flex;gap:9px;width:100%;padding:10px;border:1px solid transparent;border-radius:9px;color:#334155;text-align:start;background:transparent;cursor:pointer}.document-terms-template-list>button:hover,.document-terms-template-list>button.selected{border-color:#d7dcf8;background:#fff}.document-terms-template-list>button.selected{box-shadow:0 3px 10px #3341550a}.document-terms-template-list>button>span{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:8px;color:#4338ca;font-size:9px;font-weight:900;background:#e8eafe}.document-terms-template-list>button>div{display:grid;min-width:0;gap:2px}.document-terms-template-list>button strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.document-terms-template-list>button small{color:var(--muted);font-size:10px}.document-terms-template-form{display:flex;flex-direction:column;min-width:0;overflow:auto;padding:22px 24px;background:#fff}.document-terms-template-form-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:17px}.document-terms-template-form-head h4,.document-terms-template-form-head p{margin:0}.document-terms-template-form-head h4{margin-top:3px;font-size:17px}.document-terms-template-fields{display:grid;gap:14px}.document-terms-template-fields textarea{min-height:230px;resize:vertical;line-height:1.5}.document-terms-template-options{display:flex;flex-wrap:wrap;gap:14px}.document-terms-template-options label{display:flex;align-items:center;gap:7px;color:#475467;font-size:12px;font-weight:700}.document-terms-template-options input{width:16px;height:16px;accent-color:var(--brand)}.document-terms-template-form footer{display:flex;justify-content:flex-end;gap:9px;margin-top:20px;padding-top:16px;border-top:1px solid #e6e9ef}.invoice-document-terms{display:grid;grid-template-columns:150px minmax(0,1fr);gap:18px;margin-top:18px;padding-top:10px;border-top:1px solid #8a8a8a;break-inside:avoid}.invoice-document-terms>div:first-child span{display:block;color:#555;font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.invoice-document-terms-copy{color:#303030;font-size:9px;line-height:1.5;white-space:pre-line}@media(max-width:700px){.document-terms-controls{grid-template-columns:1fr}.document-terms-controls .action{width:100%}.document-terms-template-manager{width:100%;max-height:94dvh;border-radius:20px 20px 0 0}.document-terms-template-head{padding:18px 20px}.document-terms-template-body{grid-template-columns:1fr;max-height:calc(94dvh - 96px)}.document-terms-template-list{max-height:180px;border-inline-end:0;border-bottom:1px solid #e3e7ee}.document-terms-template-form{padding:18px 20px}.invoice-document-terms{grid-template-columns:1fr;gap:7px}}

/* Additional print terms popup */
.document-terms-open{justify-self:start;min-height:40px}.document-terms-modal{width:min(720px,calc(100vw - 48px));max-height:92dvh;padding:0;overflow:hidden}.document-terms-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px;border-bottom:1px solid #e3e7ee;background:#fff}.document-terms-modal-head h3,.document-terms-modal-head p{margin:0}.document-terms-modal-head h3{margin-top:3px;font-size:20px}.document-terms-modal-head>div>p:last-child{margin-top:5px;color:var(--muted);font-size:12px;line-height:1.45}.document-terms-modal-body{display:grid;gap:16px;max-height:calc(92dvh - 180px);overflow:auto;padding:22px 24px}.document-terms-modal-body .document-terms-copy textarea{min-height:210px}.document-terms-modal-footer{display:flex;justify-content:flex-end;padding:15px 24px;border-top:1px solid #e3e7ee;background:#fff}@media(max-width:700px){.document-terms-modal{width:100%;max-height:94dvh;border-radius:20px 20px 0 0}.document-terms-modal-head,.document-terms-modal-body,.document-terms-modal-footer{padding-right:20px;padding-left:20px}.document-terms-modal-body{max-height:calc(94dvh - 176px)}.document-terms-modal-footer .primary{width:100%}}

.document-terms-template-manager{display:flex;flex-direction:column;height:min(850px,92dvh);text-align:start}.document-terms-template-head{flex:0 0 auto}.document-terms-template-head>div,.document-terms-modal-head>div{min-width:0}.document-terms-template-head .close,.document-terms-modal-head .close{flex:0 0 auto}.document-terms-template-body{flex:1 1 auto;min-height:0;max-height:none;grid-template-columns:minmax(210px,26%) minmax(0,1fr)}.document-terms-template-list{min-width:0;min-height:0;color:var(--ink)}.document-terms-template-list>div{flex-wrap:wrap}.document-terms-template-form{min-height:0}.document-terms-template-fields .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.document-terms-template-fields label{min-width:0}.document-terms-template-fields input:not([type=checkbox]),.document-terms-template-fields select,.document-terms-template-fields textarea{width:100%;min-width:0;max-width:100%;box-sizing:border-box}.document-terms-template-options input{flex:0 0 16px}.document-terms-template-options label{line-height:1.5}.document-terms-template-form>footer{position:sticky;bottom:-24px;flex:0 0 auto;margin-top:auto;padding-block:16px;background:#fff}.document-terms-template-form-head h4,.document-terms-template-head h3{overflow-wrap:anywhere}@media(max-width:700px){.document-terms-template-manager{height:94dvh}.document-terms-template-body{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(80px,150px) minmax(0,1fr)}.document-terms-template-list{max-height:none}.document-terms-template-form>footer{bottom:-18px;flex-wrap:wrap}.document-terms-template-fields .form-grid{grid-template-columns:minmax(0,1fr)}}

/* Form builder */
/* Configurable document print templates */
.settings-tabs.seven-tabs{grid-template-columns:repeat(7,minmax(0,1fr))}.print-template-settings{display:grid;gap:16px;max-width:1180px;color:var(--ink);text-align:start}.print-template-heading{padding:22px 24px;border:1px solid #dfe5f2;border-radius:16px;background:linear-gradient(135deg,#fff,#f7f8ff);box-shadow:0 10px 28px #27345d0a}.print-template-heading h3,.print-template-heading p{margin:0}.print-template-heading h3{margin-top:4px;font-size:22px}.print-template-heading>div>p:last-child{max-width:720px;margin-top:7px;color:var(--muted);font-size:13px;line-height:1.5}.print-template-picker{display:flex;gap:8px;padding:6px;border:1px solid #e0e5ef;border-radius:13px;background:#fff}.print-template-picker button{flex:1;min-height:42px;padding:9px 13px;border:1px solid transparent;border-radius:9px;color:#536176;font-weight:800;background:transparent;cursor:pointer}.print-template-picker button:hover{background:#f6f7fb}.print-template-picker button.selected{color:#3730a3;background:#eef2ff;box-shadow:inset 0 0 0 1px #c7d2fe}.print-template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.print-template-card{display:grid;align-content:start;gap:14px;min-width:0;padding:18px;border:1px solid #dfe5ef;border-radius:14px;background:#fff;box-shadow:0 8px 24px #27345d08}.print-template-card>label,.print-template-card .form-grid label{display:grid;gap:6px;min-width:0;color:#475467;font-size:12px;font-weight:800}.print-template-card select,.print-template-card input:not([type=checkbox]),.print-template-card textarea{width:100%;min-width:0;min-height:40px;padding:9px 11px;border:1px solid #d8dfeb;border-radius:9px;color:var(--ink);background:#fff}.print-template-card textarea{min-height:86px;resize:vertical}.print-template-full-field{grid-column:1/-1}.print-template-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.print-template-options label{display:flex;align-items:center;gap:8px;min-width:0;padding:9px 10px;border:1px solid #e4e8f0;border-radius:9px;color:#475467;font-size:12px;font-weight:700;background:#fbfcff;cursor:pointer}.print-template-options input{flex:0 0 16px;width:16px;height:16px;margin:0;accent-color:var(--brand)}.print-template-labels{grid-column:1/-1}.print-template-actions{display:flex;justify-content:flex-end;gap:9px;padding-top:2px}[dir="rtl"] .print-template-settings,[dir="rtl"] .print-template-grid,[dir="rtl"] .print-template-options,[dir="rtl"] .print-template-actions{direction:rtl}@media(max-width:1050px){.settings-tabs.seven-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:700px){.settings-tabs.seven-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.print-template-heading{padding:18px}.print-template-picker{display:grid}.print-template-grid{grid-template-columns:1fr}.print-template-options{grid-template-columns:1fr}.print-template-actions{display:grid}.print-template-actions button{width:100%}}
.settings-tabs.eight-tabs{grid-template-columns:repeat(8,minmax(0,1fr))}.mcp-settings{display:grid;gap:16px;max-width:1180px;color:var(--ink);text-align:start}.mcp-settings-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:23px 24px;border:1px solid #dce4f6;border-radius:17px;background:radial-gradient(circle at 90% 10%,#dbeafe,transparent 34%),linear-gradient(135deg,#fff,#f7f8ff);box-shadow:0 10px 28px #27345d0a}.mcp-settings-head h3,.mcp-settings-head p{margin:0}.mcp-settings-head h3{margin-top:4px;font-size:23px}.mcp-settings-head>div>p:last-child{max-width:750px;margin-top:7px;color:var(--muted);font-size:13px;line-height:1.55}.mcp-security-chip{flex:0 0 auto;padding:7px 10px;border:1px solid #bae6fd;border-radius:999px;color:#0369a1;font-size:11px;font-weight:900;background:#f0f9ff}.mcp-endpoint-card,.mcp-token-card,.mcp-create-card,.mcp-connection-list{display:grid;gap:14px;padding:19px;border:1px solid #dfe5ef;border-radius:15px;background:#fff;box-shadow:0 8px 24px #27345d08}.mcp-endpoint-card{grid-template-columns:minmax(220px,1fr) minmax(240px,1.4fr) auto;align-items:center}.mcp-endpoint-card strong,.mcp-endpoint-card small{display:block}.mcp-endpoint-card small{margin-top:5px;color:var(--muted);font-size:12px;line-height:1.45}.mcp-endpoint-card code,.mcp-token-card code{display:block;min-width:0;overflow:auto;padding:11px 12px;border:1px solid #dce4f3;border-radius:9px;color:#1e3a8a;font-size:12px;line-height:1.4;background:#f8faff}.mcp-token-card{grid-template-columns:minmax(0,1fr);border-color:#c7d2fe;background:linear-gradient(135deg,#f8faff,#fff)}.mcp-token-card h4,.mcp-token-card p{margin:0}.mcp-token-card h4{margin-top:3px;font-size:17px}.mcp-token-card p:last-child{margin-top:6px;color:#475569;font-size:12px;line-height:1.5}.mcp-token-actions,.mcp-connection-actions{display:flex;flex-wrap:wrap;gap:8px}.mcp-create-card>button{justify-self:start}.mcp-create-grid{display:grid;grid-template-columns:minmax(220px,.7fr) minmax(0,1.3fr);gap:16px}.mcp-create-grid>label{display:grid;align-content:start;gap:7px;color:#475467;font-size:12px;font-weight:800}.mcp-create-grid>label input{width:100%;min-height:42px;padding:9px 11px;border:1px solid #d8dfeb;border-radius:9px;color:var(--ink);background:#fff}.mcp-scope-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mcp-scope-grid label{display:flex;align-items:center;gap:8px;min-width:0;padding:10px;border:1px solid #e2e7f0;border-radius:10px;color:#475467;font-size:12px;font-weight:700;background:#fbfcff;cursor:pointer}.mcp-scope-grid input{flex:0 0 16px;width:16px;height:16px;margin:0;accent-color:var(--brand)}.mcp-scope-grid .mcp-read-scope{color:#0369a1;background:#f0f9ff;cursor:default}.mcp-connection-list{gap:0;padding:0;overflow:hidden}.mcp-connection-list>.settings-section-head{padding:19px;margin:0;border-bottom:1px solid #e7ebf2}.mcp-connection-list>.settings-section-head>span{padding:6px 9px;border-radius:999px;color:#4f46e5;font-size:11px;font-weight:900;background:#eef2ff}.mcp-empty{padding:24px;color:var(--muted);font-size:13px}.mcp-connection-row{display:grid;gap:12px;padding:17px 19px;border-bottom:1px solid #e7ebf2}.mcp-connection-row:last-child{border-bottom:0}.mcp-connection-summary{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.mcp-connection-summary strong,.mcp-connection-summary small{display:block}.mcp-connection-summary small{margin-top:4px;color:var(--muted);font-size:11px;line-height:1.4}.mcp-connection-summary code{font-size:11px}.inactive-summary{padding:5px 8px;border-radius:999px;color:#64748b;font-size:10px;font-weight:900;background:#f1f5f9}.mcp-scope-list{display:flex;flex-wrap:wrap;gap:6px}.mcp-scope-list span{padding:5px 8px;border:1px solid #dbeafe;border-radius:999px;color:#1d4ed8;font-size:10px;font-weight:800;background:#eff6ff}[dir="rtl"] .mcp-settings,[dir="rtl"] .mcp-settings-head,[dir="rtl"] .mcp-endpoint-card,[dir="rtl"] .mcp-token-card,[dir="rtl"] .mcp-create-grid,[dir="rtl"] .mcp-connection-summary{direction:rtl}@media(max-width:1150px){.settings-tabs.eight-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:700px){.settings-tabs.eight-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.mcp-settings-head,.mcp-endpoint-card{grid-template-columns:1fr}.mcp-settings-head{display:grid;padding:18px}.mcp-security-chip{justify-self:start}.mcp-create-grid,.mcp-scope-grid{grid-template-columns:1fr}.mcp-endpoint-card .action,.mcp-create-card>button{width:100%}.mcp-connection-summary{align-items:flex-start;flex-direction:column}.mcp-connection-actions{display:grid}.mcp-connection-actions button{width:100%}}
.mcp-access-card,.mcp-activity-list{display:grid;gap:14px;overflow:hidden;border:1px solid #dfe5ef;border-radius:15px;background:#fff;box-shadow:0 8px 24px #27345d08}.mcp-access-card{padding:19px}.mcp-access-card h4,.mcp-access-card p{margin:0}.mcp-access-card h4{margin-top:3px;font-size:17px}.mcp-access-card .settings-section-head{align-items:flex-start;margin:0}.mcp-access-card .settings-section-head>div>p:last-child{max-width:760px;margin-top:6px;color:var(--muted);font-size:12px;line-height:1.55}.mcp-access-enabled,.mcp-access-disabled{flex:0 0 auto;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:900}.mcp-access-enabled{color:#047857;background:#ecfdf5}.mcp-access-disabled{color:#b42318;background:#fef3f2}.mcp-access-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.55fr);gap:14px}.mcp-enabled-toggle{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #dbe5f1;border-radius:11px;background:#f8faff;cursor:pointer}.mcp-enabled-toggle input{width:18px;height:18px;margin:0;accent-color:var(--brand)}.mcp-enabled-toggle strong,.mcp-enabled-toggle small{display:block}.mcp-enabled-toggle small{margin-top:4px;color:var(--muted);font-size:11px;line-height:1.4}.mcp-access-controls>label:not(.mcp-enabled-toggle){display:grid;gap:7px;color:#475467;font-size:12px;font-weight:800}.mcp-access-controls select{width:100%;min-height:42px;padding:9px 11px;border:1px solid #d8dfeb;border-radius:9px;color:var(--ink);background:#fff}.mcp-access-actions{display:flex;justify-content:flex-end}.mcp-activity-list{gap:0}.mcp-activity-list>.settings-section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:19px;margin:0;border-bottom:1px solid #e7ebf2}.mcp-activity-list h4,.mcp-activity-list p{margin:0}.mcp-activity-list h4{font-size:17px}.mcp-activity-list p{margin-top:5px;color:var(--muted);font-size:12px;line-height:1.45}.mcp-activity-row{display:grid;grid-template-columns:142px minmax(0,1fr) minmax(100px,.35fr);align-items:start;gap:14px;padding:14px 19px;border-bottom:1px solid #e7ebf2}.mcp-activity-row:last-child{border-bottom:0}.mcp-activity-row time,.mcp-activity-row span,.mcp-activity-row small{color:var(--muted);font-size:11px;line-height:1.4}.mcp-activity-row strong,.mcp-activity-row small{display:block}.mcp-activity-row small{margin-top:4px;overflow-wrap:anywhere}
.mcp-oauth-card{display:grid;gap:15px;padding:19px;border:1px solid #c7d2fe;border-radius:15px;background:linear-gradient(135deg,#f8faff,#fff);box-shadow:0 8px 24px #27345d08}.mcp-oauth-card h4,.mcp-oauth-card p{margin:0}.mcp-oauth-card h4{margin-top:3px;font-size:17px}.mcp-oauth-card .settings-section-head{align-items:flex-start;margin:0}.mcp-oauth-card .settings-section-head>div>p:last-child{max-width:760px;margin-top:6px;color:var(--muted);font-size:12px;line-height:1.55}.mcp-oauth-status{flex:0 0 auto;padding:6px 9px;border:1px solid #bfdbfe;border-radius:999px;color:#1d4ed8;font-size:10px;font-weight:900;background:#eff6ff}.mcp-oauth-urls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mcp-oauth-urls>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;padding:12px;border:1px solid #dce4f3;border-radius:11px;background:#fff}.mcp-oauth-urls strong{grid-column:1/-1;color:#475467;font-size:11px}.mcp-oauth-urls code,.mcp-oauth-client-uris code{min-width:0;overflow:auto;color:#1e3a8a;font-size:11px;line-height:1.4}.mcp-oauth-note{padding:13px;border-inline-start:3px solid #818cf8;border-radius:0 10px 10px 0;color:#475569;font-size:12px;line-height:1.5;background:#f8faff}.mcp-oauth-note strong{color:#3730a3}.mcp-oauth-note ol{display:grid;gap:5px;margin:8px 0 0;padding-inline-start:20px}.mcp-oauth-client-list{display:grid;gap:0;overflow:hidden;border:1px solid #dfe5ef;border-radius:15px;background:#fff;box-shadow:0 8px 24px #27345d08}.mcp-oauth-client-list>.settings-section-head{padding:19px;margin:0;border-bottom:1px solid #e7ebf2}.mcp-oauth-client-list>.settings-section-head>span{padding:6px 9px;border-radius:999px;color:#4f46e5;font-size:11px;font-weight:900;background:#eef2ff}.mcp-oauth-client-row{display:grid;grid-template-columns:minmax(200px,.8fr) minmax(0,1.4fr) auto;align-items:center;gap:15px;padding:16px 19px;border-bottom:1px solid #e7ebf2}.mcp-oauth-client-row:last-child{border-bottom:0}.mcp-oauth-client-row strong,.mcp-oauth-client-row small{display:block}.mcp-oauth-client-row small{margin-top:4px;color:var(--muted);font-size:11px;line-height:1.4}.mcp-oauth-client-uris{display:grid;gap:5px;min-width:0;padding:9px 10px;border-radius:9px;background:#f8faff}[dir="rtl"] .mcp-oauth-card,[dir="rtl"] .mcp-oauth-urls,[dir="rtl"] .mcp-oauth-client-row{direction:rtl}@media(max-width:700px){.mcp-oauth-card,.mcp-oauth-client-row{padding:17px}.mcp-oauth-card .settings-section-head{display:grid}.mcp-oauth-status{justify-self:start}.mcp-oauth-urls,.mcp-oauth-client-row{grid-template-columns:1fr}.mcp-oauth-client-row .danger-outline{width:100%}}
.form-builder-page{display:grid;gap:20px;max-width:1580px;margin:0 auto}.form-builder-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:4px 2px}.form-builder-page-head h3,.form-builder-page-head p{margin:0}.form-builder-page-head h3{margin:5px 0 7px;font-size:25px}.form-builder-page-head>div>p:last-child{color:var(--muted);line-height:1.5}.form-builder-page-head .primary{display:flex;align-items:center;gap:8px}.form-builder-page-head .primary span{font-size:19px;line-height:.8}.form-builder-notice{margin:0}.form-library{display:grid;gap:16px;padding:23px;border:1px solid #dfe5ef;border-radius:18px;background:linear-gradient(145deg,#fff,#fafbff);box-shadow:0 12px 32px #26345308}.form-library-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.form-library-head h4,.form-library-head p{margin:0}.form-library-head h4{font-size:17px}.form-library-head p{margin-top:5px;color:var(--muted);font-size:13px}.form-library-count{padding:7px 10px;border-radius:999px;color:#4f46e5;font-size:11px;font-weight:800;background:#eef2ff}.form-template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.form-template-card{display:grid;gap:14px;min-width:0;padding:18px;border:1px solid #e0e6f0;border-radius:14px;background:#fff;box-shadow:0 4px 16px #17203306}.form-template-card:hover{border-color:#c7d2fe;box-shadow:0 10px 28px #4f46e512}.form-template-card-head,.form-template-card footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.form-template-icon,.canvas-form-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;color:#4338ca;font-size:17px;font-weight:900;background:#eef2ff}.form-sharing-badge{display:inline-flex;align-items:center;min-height:24px;padding:4px 8px;border:1px solid #d6e7ff;border-radius:999px;color:#2563eb;font-size:10px;font-weight:900;background:#f0f7ff}.form-template-card h4,.form-template-card p{margin:0}.form-template-card h4{overflow:hidden;font-size:16px;text-overflow:ellipsis;white-space:nowrap}.form-template-card p{display:-webkit-box;min-height:38px;overflow:hidden;color:var(--muted);font-size:12px;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:2}.form-template-card footer{padding-top:2px;color:#64748b;font-size:11px;font-weight:700}.form-template-card .action{justify-self:start;font-size:12px}.form-library-empty{display:grid;justify-items:center;gap:9px;padding:52px 20px;border:1px dashed #cbd5e1;border-radius:14px;color:#64748b;text-align:center;background:#fff}.form-library-empty>span{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;color:#4f46e5;font-size:20px;font-weight:900;background:#eef2ff}.form-library-empty h4,.form-library-empty p{margin:0}.form-library-empty h4{color:var(--ink)}.form-library-empty p{max-width:360px;font-size:13px;line-height:1.5}.form-library-empty .primary{margin-top:6px}
.form-template-actions{display:flex;align-items:center;gap:7px}.form-template-actions .action{justify-self:auto}.form-template-actions .icon-button{display:grid;place-items:center;width:30px;height:30px;padding:0;border:1px solid #dce3ed;border-radius:8px;color:#607087;background:#fff;cursor:pointer}.form-template-actions .icon-button:hover{border-color:#a5b4fc;color:#4f46e5;background:#f5f6ff}.form-template-actions .icon-button.danger:hover{border-color:#fecaca;color:#dc2626;background:#fff5f5}.builder-error{margin:13px 18px 0;padding:11px 13px;border:1px solid #fecaca;border-radius:10px;color:#b42318;font-size:12px;font-weight:700;background:#fff6f5}
.builder-shell{overflow:hidden;border:1px solid #dce3ee;border-radius:19px;background:#fff;box-shadow:0 18px 44px #2432520c}.builder-toolbar{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:76px;padding:12px 18px;border-bottom:1px solid #e3e8f0;background:#fffffff2;backdrop-filter:blur(12px)}.builder-toolbar-title,.builder-toolbar-actions{display:flex;align-items:center;gap:12px;min-width:0}.builder-toolbar-title>div{min-width:0}.builder-toolbar-title .kicker{margin:0 0 3px}.builder-toolbar-title h3{overflow:hidden;margin:0;font-size:17px;text-overflow:ellipsis;white-space:nowrap}.builder-back{display:grid;place-items:center;flex:0 0 auto;width:38px;height:38px;border:1px solid #dce3ee;border-radius:10px;color:#4b5568;font-size:19px;background:#fff;cursor:pointer}.builder-back:hover{color:#4338ca;border-color:#a5b4fc;background:#f5f6ff}.builder-save-state{padding:6px 8px;color:#64748b;font-size:10px;font-weight:800}.builder-save-state::first-letter{color:#f59e0b}.builder-toolbar-actions .primary,.builder-toolbar-actions .action{min-height:38px;padding:8px 12px;font-size:12px}.builder-workspace{display:grid;grid-template-columns:238px minmax(480px,1fr) 292px;min-height:650px;background:#f7f9fc}.builder-palette,.builder-inspector{min-width:0;background:#fff}.builder-palette{border-right:1px solid #e4e8ef}.builder-inspector{border-left:1px solid #e4e8ef}.builder-side-head{padding:19px 17px 15px;border-bottom:1px solid #edf0f5}.builder-side-head h4,.builder-side-head p{margin:0}.builder-side-head h4{font-size:14px}.builder-side-head p{margin-top:4px;color:var(--muted);font-size:11px;line-height:1.45}.palette-group{display:grid;gap:5px;padding:15px 11px 0}.palette-group:last-child{padding-bottom:15px}.palette-group h5{margin:0 6px 5px;color:#8390a5;font-size:10px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}.palette-item{display:grid;grid-template-columns:25px minmax(0,1fr) auto;align-items:center;gap:8px;width:100%;padding:9px 8px;border:1px solid transparent;border-radius:10px;color:#3d475b;text-align:left;background:transparent;cursor:pointer}.palette-item:hover{border-color:#cfd8ff;color:#3730a3;background:#f6f7ff}.palette-item>span:first-child{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;color:#5b5fc7;font-size:13px;font-weight:900;background:#eef1ff}.palette-item>span:nth-child(2){display:grid;gap:2px;min-width:0}.palette-item strong{font-size:12px}.palette-item small{overflow:hidden;color:#7b8699;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.palette-item b{color:#818cf8;font-size:17px;font-weight:400}.builder-canvas{overflow:auto;padding:30px;background:radial-gradient(circle at 20% 10%,#fff 0,#f6f8fc 38%,#eef2f8 100%)}.canvas-paper{width:min(100%,820px);min-height:580px;margin:0 auto;padding:34px;border:1px solid #e1e6ef;border-radius:12px;background:#fff;box-shadow:0 18px 40px #26345312}.canvas-form-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:13px;padding-bottom:24px;border-bottom:1px dashed #d9e0eb}.canvas-form-head>div:nth-child(2){display:grid;gap:3px}.canvas-form-name,.canvas-form-description{width:100%;padding:0;border:0;border-radius:0;outline:0;background:transparent}.canvas-form-name{color:#172033;font-size:21px;font-weight:800}.canvas-form-description{color:#748095;font-size:12px}.canvas-form-name:focus,.canvas-form-description:focus{box-shadow:0 2px 0 #818cf8}.canvas-fields{display:grid;gap:13px;padding-top:24px}.canvas-field{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:10px;padding:15px 13px;border:1px solid #e1e6ef;border-radius:11px;background:#fff;transition:border-color .15s ease,box-shadow .15s ease}.canvas-field:hover{border-color:#a5b4fc;box-shadow:0 7px 18px #4f46e50c}.canvas-field-handle{align-self:center;color:#a4afc0;font-size:15px;letter-spacing:-3px;cursor:grab}.canvas-field-content{display:grid;gap:7px;min-width:0}.canvas-field-title{display:flex;align-items:center;gap:8px;min-width:0}.canvas-field-title strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.canvas-field-title span{padding:3px 6px;border-radius:999px;color:#a24a17;font-size:9px;font-weight:800;background:#fff0e8}.canvas-field-content input,.canvas-field-content select{width:100%;min-height:37px;padding:7px 10px;border:1px solid #dce3ed;border-radius:8px;color:#8a95a7;font-size:12px;background:#fafbfd}.canvas-field-content input:disabled,.canvas-field-content select:disabled{opacity:1}.canvas-field-content small{color:#8792a4;font-size:10px}.canvas-field-number{align-self:start;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;color:#768197;font-size:10px;font-weight:800;background:#f0f3f8}.canvas-check{display:flex!important;align-items:center;gap:7px;color:#5f6b7c!important;font-weight:600!important}.canvas-check input{width:16px!important;min-height:16px!important;margin:0}.canvas-formula{display:flex;align-items:center;min-height:37px;padding:7px 10px;border:1px solid #c7d2fe;border-radius:8px;color:#4f46e5;font-size:12px;font-weight:700;background:#f5f6ff}.canvas-empty{display:grid;justify-items:center;gap:10px;padding:92px 20px;color:#657287;text-align:center}.canvas-empty>span{display:grid;place-items:center;width:48px;height:48px;border:1px dashed #aebae0;border-radius:14px;color:#6366f1;font-size:24px;background:#f7f8ff}.canvas-empty h4,.canvas-empty p{margin:0}.canvas-empty h4{color:#374151}.canvas-empty p{max-width:290px;font-size:12px;line-height:1.55}.inspector-tabs{display:grid;grid-template-columns:1fr 1fr;padding:0 16px;border-bottom:1px solid #edf0f5}.inspector-tabs button{padding:13px 6px;border:0;border-bottom:2px solid transparent;color:#8893a4;font-size:11px;font-weight:800;background:transparent;cursor:pointer}.inspector-tabs button.active{border-bottom-color:#6366f1;color:#4f46e5}.inspector-body{display:grid;gap:15px;padding:18px}.inspector-body label{display:grid;gap:6px;color:#4b5669;font-size:11px;font-weight:800}.inspector-body input,.inspector-body select,.inspector-body textarea{width:100%;min-height:38px;padding:8px 10px;border:1px solid #dce3ed;border-radius:8px;color:#263246;font-size:12px;font-weight:400;background:#fff}.inspector-body textarea{min-height:80px;resize:vertical}.inspector-body label:focus-within input,.inspector-body label:focus-within select,.inspector-body label:focus-within textarea{border-color:#818cf8;box-shadow:0 0 0 3px #e0e7ff}.inspector-body small{color:#8792a4;font-size:10px;font-weight:400;line-height:1.45}.inspector-summary{display:flex;align-items:flex-start;gap:9px;padding:11px;border:1px solid #dce4ff;border-radius:9px;background:#f6f7ff}.inspector-summary>span{display:grid;place-items:center;width:25px;height:25px;border-radius:7px;color:#4f46e5;font-weight:900;background:#e3e6ff}.inspector-summary div{display:grid;gap:3px}.inspector-summary strong{color:#4b5568;font-size:11px}.inspector-summary small{font-size:10px}.form-builder-safety{display:flex;align-items:flex-start;gap:10px;padding:14px 16px;border:1px solid #d7e7f6;border-radius:12px;background:#f5faff}.form-builder-safety>span{display:grid;place-items:center;flex:0 0 21px;width:21px;height:21px;border-radius:50%;color:#167250;font-size:11px;font-weight:900;background:#d8f4e7}.form-builder-safety p{margin:1px 0 0;color:#587086;font-size:12px;line-height:1.5}.form-builder-safety strong{color:#34526d}.form-preview-modal{width:min(560px,calc(100vw - 32px))}
@media(max-width:1250px){.builder-workspace{grid-template-columns:215px minmax(400px,1fr) 264px}.builder-canvas{padding:20px}.canvas-paper{padding:26px}.form-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:980px){.builder-workspace{grid-template-columns:205px minmax(0,1fr)}.builder-inspector{grid-column:1/-1;border-top:1px solid #e4e8ef;border-left:0}.inspector-body{grid-template-columns:repeat(2,minmax(0,1fr))}.inspector-summary{grid-column:1/-1}.form-builder-page-head{align-items:flex-start}.builder-toolbar{position:static}.form-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.form-builder-page{gap:15px}.form-builder-page-head,.form-library-head{align-items:stretch;flex-direction:column}.form-builder-page-head .primary{justify-content:center}.form-library{padding:17px}.form-template-grid{grid-template-columns:1fr}.builder-shell{margin:0 -4px;border-radius:14px}.builder-toolbar{align-items:flex-start;flex-direction:column;padding:13px}.builder-toolbar-actions{width:100%;flex-wrap:wrap}.builder-toolbar-actions .primary{margin-left:auto}.builder-workspace{grid-template-columns:1fr}.builder-palette{border-right:0;border-bottom:1px solid #e4e8ef}.palette-group{grid-template-columns:repeat(2,minmax(0,1fr));padding:13px 10px 0}.palette-group h5{grid-column:1/-1}.palette-group:last-child{padding-bottom:13px}.palette-item{grid-template-columns:24px minmax(0,1fr);padding:8px}.palette-item b{display:none}.builder-canvas{padding:13px}.canvas-paper{min-height:420px;padding:19px}.canvas-form-head{grid-template-columns:auto minmax(0,1fr)}.canvas-form-head>.form-sharing-badge{grid-column:2}.canvas-form-name{font-size:17px}.inspector-body{grid-template-columns:1fr}.inspector-tabs{padding:0 12px}.form-builder-safety{padding:12px}.form-library-count{align-self:flex-start}}
[dir="rtl"] .builder-palette{border-right:0;border-left:1px solid #e4e8ef}[dir="rtl"] .builder-inspector{border-left:0;border-right:1px solid #e4e8ef}[dir="rtl"] .canvas-field-handle{letter-spacing:-3px}[dir="rtl"] .builder-toolbar-actions .primary{margin-left:0;margin-right:auto}@media(max-width:980px){[dir="rtl"] .builder-inspector{border-right:0;border-top:1px solid #e4e8ef}}@media(max-width:680px){[dir="rtl"] .builder-toolbar-actions .primary{margin-right:auto}}
.canvas-field.selected{border-color:#818cf8;background:#fafaff;box-shadow:0 0 0 3px #e0e7ff}.canvas-field-actions{display:flex;align-items:center;gap:3px}.canvas-field-actions button{display:grid;place-items:center;width:23px;height:23px;padding:0;border:1px solid #dce3ed;border-radius:6px;color:#66758a;font-size:12px;background:#fff;cursor:pointer}.canvas-field-actions button:hover:not(:disabled){border-color:#a5b4fc;color:#4f46e5;background:#f4f5ff}.canvas-field-actions button:disabled{opacity:.4;cursor:not-allowed}.canvas-field-actions button.danger:hover{border-color:#fecaca;color:#dc2626;background:#fff5f5}.inspector-check{display:flex!important;grid-template-columns:none!important;align-items:flex-start;gap:9px;padding:11px;border:1px solid #e0e6ef;border-radius:9px;background:#fafbfc;cursor:pointer}.inspector-check>input{flex:0 0 auto;width:16px!important;min-height:16px!important;margin:1px 0 0}.inspector-check>span{display:grid;gap:3px}.inspector-check strong{font-size:11px}.inspector-clear-selection{justify-self:start;font-size:11px}
.form-preview-error{margin:0 20px;padding:10px 12px;border:1px solid #fecaca;border-radius:9px;color:#b42318;font-size:12px;font-weight:700;background:#fff6f5}.form-records-modal{width:min(760px,calc(100vw - 32px))}.form-records-empty{display:grid;justify-items:center;gap:8px;padding:55px 20px;color:#6c788b;text-align:center}.form-records-empty>span{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;color:#4f46e5;font-size:20px;background:#eef2ff}.form-records-empty strong,.form-records-empty p{margin:0}.form-records-empty strong{color:#374151}.form-records-empty p{font-size:12px}.form-record-list{display:grid;gap:11px;max-height:60vh;overflow:auto;padding:0 20px 20px}.form-record-item{display:grid;gap:12px;padding:14px;border:1px solid #e0e6ef;border-radius:11px;background:#fbfcfe}.form-record-item header{display:flex;align-items:center;justify-content:space-between;gap:10px}.form-record-item header>div{display:grid;gap:3px}.form-record-item header strong{font-size:12px}.form-record-item header small{color:#7b8799;font-size:10px}.form-record-item .icon-button{display:grid;place-items:center;width:28px;height:28px;padding:0;border:1px solid #fecaca;border-radius:7px;color:#dc2626;background:#fff5f5;cursor:pointer}.form-record-item dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0}.form-record-item dl>div{display:grid;gap:3px;min-width:0;padding:8px;border-radius:7px;background:#fff}.form-record-item dt{overflow:hidden;color:#79869a;font-size:10px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.form-record-item dd{overflow:hidden;margin:0;color:#374151;font-size:12px;text-overflow:ellipsis;white-space:nowrap}@media(max-width:680px){.form-record-list{padding:0 14px 14px}.form-record-item dl{grid-template-columns:repeat(2,minmax(0,1fr))}}
