/* Muar A workspace theme */
:root{--green:#00a9d4;--ink:#333d47;--muted:#89929c;--line:#e4e9ed;--paper:#f5f7f9;--blue:#00a9d4}
body{font-family:"Segoe UI",Arial,sans-serif;font-size:14px;color:var(--ink);background:#eef2f5;line-height:1.5}
aside{width:230px;padding:24px 14px;background:linear-gradient(170deg,#17658b 0%,#194b70 60%,#203f62 100%);border:0;color:white}
.brand{font-family:"Segoe UI",Arial,sans-serif;font-size:29px;letter-spacing:-1.2px;font-weight:700;color:#fff!important;padding:0 12px}.brand span{color:#63dafa}.brand small{font-size:10px;font-weight:400;letter-spacing:1.6px;color:#b1d2e5;margin-top:5px}
.workspace{border:0;border-radius:7px;background:#ffffff10;margin:24px 0 18px;padding:13px 12px}.workspace b{font-size:13px;font-weight:600;display:block;color:white}.workspace small{color:#b8d2e2;font-size:11px;margin-top:3px}
aside nav{display:grid;gap:4px;margin-top:12px}aside nav a{display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:6px;font-size:14px;font-weight:400;color:#dcecf5;line-height:1.4;text-decoration:none}aside nav a:hover{background:#ffffff13;color:white}aside nav a.active{background:#ffffff21;color:white;font-weight:600;box-shadow:inset 3px 0 #63dbff}aside nav .group{font-size:10px;letter-spacing:1.2px;color:#92b9d0;padding:22px 13px 9px}
.nav-icon{width:19px;height:19px;flex:0 0 19px;color:#8fd4ee}.nav-icon svg{display:block;width:19px;height:19px;max-width:none}aside nav a.active .nav-icon{color:#fff}.aside-bottom{font-size:12px;color:#d0e4f1;padding:16px 12px}.aside-bottom small{font-size:10px;color:#8cb3cd}
.shell{margin-left:230px;min-height:100vh;display:flex;flex-direction:column}.shell>header{height:68px;min-height:68px;padding:0 30px;background:#fff;border-bottom:1px solid #e6ebef;color:#697786;font-size:13px;gap:18px}.shell>header>div:first-child{display:flex;align-items:center;gap:12px;min-width:0}.shell>header span{color:#bac3cc}.shell>header .actions{gap:16px}.shell>header .text-link{font-size:12px;color:#718393}.shell>header .btn{min-height:34px;padding:7px 13px;font-size:11px}.user-avatar{display:grid;place-items:center;border-radius:50%;width:34px;height:34px;background:#dff4fb;color:#0089b4;font-size:14px;font-weight:600;flex-shrink:0}.header-title{font-size:14px;color:#455460}.header-product{font-weight:600;font-size:15px;color:#00a9d4}
main{width:100%;max-width:1560px;box-sizing:border-box;flex:1;padding:30px 32px 44px}
h1,h2,h3,.login-brand{font-family:"Segoe UI",Arial,sans-serif;color:#35414d;letter-spacing:normal}h1{font-size:29px;font-weight:400;line-height:1.25;margin:6px 0 10px}h2{font-size:18px;font-weight:600}h3{font-weight:600}p{font-size:14px;color:#7d8a96;line-height:1.65}.eyebrow{font-size:10px;letter-spacing:1.2px;color:#8d9ba7;font-weight:600}.page-head{margin-bottom:24px;gap:20px}.page-head p{font-size:13px;margin:0}
a{color:#008fbf}.text-link{color:#0099c4}.btn{font-family:inherit;font-weight:600;font-size:12px;letter-spacing:.3px;text-transform:uppercase;min-height:40px;padding:11px 19px;border:1px solid transparent;border-radius:4px;background:#00b5dd;color:#fff;box-shadow:none;cursor:pointer;white-space:nowrap}.btn:hover{background:#00a3cc;color:#fff}.btn.light{background:#fff;border:1px solid #cbd5dc;color:#697b89}.btn.light:hover{background:#f4f8fb;border-color:#9db2bf;color:#3c5362}.page-head>a.btn:not(.light){background:#bbed21;color:#4d6310}.page-head>a.btn:not(.light):hover{background:#a8da12}
.panel,.form-section,.feature{background:#fff;border:1px solid #e2e8ed;border-radius:6px;box-shadow:0 1px 3px #25466305}.panel-head{padding:19px 24px;border-bottom:1px solid #edf0f3}.panel-head h2{font-size:17px;font-weight:500;margin:0}.panel-body{padding:24px}.form-width{max-width:1000px}.form-section{margin-bottom:20px}.section-heading{padding:23px 26px 0;gap:13px}.section-heading h2{font-size:17px;font-weight:600;margin-bottom:4px}.section-heading p{font-size:12px;color:#8d98a3}.section-number{background:#e6f6fc;color:#00a0cc;border-radius:4px;font-size:12px;min-width:30px;height:30px}.form-section .form-grid{padding:23px 26px 27px;gap:21px 26px}
.form-grid>label,.stack>label,.permission-grid label,.form-section legend{font-size:13px;font-weight:400;color:#6c7883}.form-grid small{color:#99a3ac;font-size:11px}.form-grid label input,.form-grid label select,.form-grid label textarea{font-weight:400}
form input:not([type=checkbox]):not([type=radio]):not([type=hidden]),form select,form textarea{font-family:inherit;border:1px solid #cbd5de;background:#fff;border-radius:4px;color:#424f5a;font-size:14px;padding:10px 12px;box-shadow:inset 0 1px 2px #24435c04}
form input:not([type=checkbox]):not([type=radio]):not([type=hidden]),form select:not([multiple]){min-height:42px}form textarea{min-height:100px;line-height:1.6}form input:focus,form select:focus,form textarea:focus{border-color:#39b5dc;box-shadow:0 0 0 2px #00a9d415;outline:none}form input::placeholder,form textarea::placeholder{color:#aab4bd}.employee-option{background:#fafcfd;border-color:#e4eaf0;color:#627380;border-radius:4px;padding:11px 13px}.employee-option input{accent-color:#00a9d4}
.save-bar{background:#fff;backdrop-filter:none;border:1px solid #e0e7ec;box-shadow:0 -3px 14px #25405b08;border-radius:5px;padding:15px 21px}.save-bar p{font-size:11px;color:#94a0aa}.save-bar .btn{padding-inline:22px}
.registry-metrics{gap:12px;margin:20px 0}.metric-chip{background:white;border-color:#e1e7ec;border-radius:5px;color:#8897a3;padding:13px 19px;font-size:12px}.metric-chip strong{font-family:inherit;font-weight:400;font-size:27px;color:#00a3cf}.metric-chip.warning strong{color:#e2a34b}
.registry-toolbar{border-color:#e1e7ec;border-radius:6px;padding:18px 20px;margin:20px 0;gap:14px}.registry-toolbar label{font-size:11px;color:#82909c;font-weight:400}.registry-toolbar .reset-link{color:#8c9da8}.registry-panel{border-radius:6px}.registry-panel th,th{font-size:11px;font-weight:500;letter-spacing:0;text-transform:none;color:#82909c;background:#fafbfc;border-color:#e8edf1}.registry-panel td,td{font-size:13px;border-color:#edf1f4;padding:17px 20px}.registry-panel tbody tr:hover{background:#f3fbff}.order-title{color:#008eb9;font-size:15px;font-weight:500}.order-code{font-size:11px;color:#98a4ae}.status-badge{background:#eaf5fc;color:#4895b4;border-radius:4px;padding:6px 10px;font-size:11px;font-weight:400}.status-active{background:#dff4ff;color:#1394c0}.status-completed{background:#edf8d8;color:#799c32}.status-cancelled{background:#f2f3f5;color:#8b96a0}.date-overdue{color:#df7d63}.empty-state{padding:65px 25px}.empty-state h3{font-size:23px;font-weight:400}.empty-state p{font-size:13px;color:#8b99a5}
.feature{padding:26px}.feature .number{font-family:inherit;font-size:32px;font-weight:300;color:#00b1dc;margin-bottom:15px}.feature h2{font-size:20px;font-weight:400}.feature p{font-size:13px}.feature:hover{border-color:#9fd8e9}.pill{background:#eaf7fc;color:#2598be;border:0;border-radius:4px;font-size:11px}.note{background:#e8f5fc;border-color:#cae7f4;border-radius:5px;color:#5586a0;font-size:13px}.notice{background:#f0f9df;border-color:#d7e9b5;color:#698f2a}.validation{background:#fff1ed;border-color:#f0d1c7;color:#b3634d}.passport-grid dt{color:#92a0aa;font-size:12px}.passport-grid dd{color:#4d5c68;font-size:14px}.audit-columns pre{background:#f6f9fb;font-size:12px}.permission-grid{gap:20px}.permission-grid select{font-size:13px}.tabs button{font-size:13px}.small{font-size:11px}
footer{font-size:10px;letter-spacing:.4px;color:#a0acb6;border-color:#e2e8ed;padding:16px 32px}footer span{color:#a8b3bc}
.auth-body{background:radial-gradient(ellipse at 25% 10%,#72d2f1 0%,transparent 50%),linear-gradient(135deg,#078fc5,#1563a2 65%,#324b91);min-height:100vh}.auth-body .shell{margin:0}.auth-body main{min-height:calc(100vh - 50px);padding:35px 20px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px}.auth-body main>.validation,.auth-body main>.notice{width:100%;max-width:460px;box-sizing:border-box;margin:0}.login-card{box-sizing:border-box;background:#fff;border:0;border-radius:10px;padding:40px 42px;width:100%;max-width:460px;box-shadow:0 18px 70px #00375930}.login-card .eyebrow{color:#9ca8b2;font-size:9px}.login-brand{font-size:39px;font-weight:600;color:#313f4c;margin:14px 0 25px}.login-brand span{color:#00a9d4}.login-card h2{font-size:21px;font-weight:400;line-height:1.4}.login-card p{font-size:13px}.login-card .small{font-size:11px;line-height:1.7;margin-top:25px;color:#a2acb4}.login-card .stack{gap:20px}.login-card .btn{font-size:13px;min-height:46px}.auth-body footer{border-color:#ffffff20;color:#ffffff90}.auth-body footer span{color:#ffffff80}
@media(max-width:1100px){aside{width:210px}.shell{margin-left:210px}main{padding:25px}.shell>header{padding-inline:25px}}
@media(max-width:720px){aside{position:relative;width:100%;padding:15px 12px 8px}.brand{font-size:25px;padding-left:8px}.brand small,.workspace,.aside-bottom,aside nav .group{display:none}aside nav{display:flex;gap:4px;overflow-x:auto;margin-top:14px;padding-bottom:5px}aside nav a{font-size:12px;padding:9px 11px;gap:7px;flex-shrink:0}aside nav a.active{box-shadow:inset 0 -2px #63dbff}.nav-icon,.nav-icon svg{width:16px;height:16px;flex-basis:16px}.shell{margin:0}.shell>header{min-height:60px;height:auto;padding:12px 16px;gap:10px}.header-product{display:none}.shell>header .actions{gap:10px}.user-avatar{display:none}main{padding:24px 16px}.page-head h1{font-size:26px}.page-head .btn{font-size:11px}.section-heading{padding:21px 19px 0}.form-section .form-grid{padding:21px 19px}.save-bar{padding:13px 16px}.save-bar .actions{flex-direction:row}.registry-toolbar{padding:16px}.form-section .form-grid{gap:20px}.login-card{padding:32px 26px}.auth-body main{padding:25px 16px}.login-brand{font-size:35px}footer{padding:15px 16px}.shell>header .btn{font-size:10px}.metric-chip{padding:12px 14px}.passport-grid{gap:20px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.shell>header .header-title{color:#536471}.shell>header .user-avatar{color:#008fb7}.shell>header .header-product{color:#00a9d4}@media(max-width:720px){.shell>header>div:first-child>span:not(.header-title){display:none}}

/* Navigation rhythm and slide-over cards */
aside{padding:22px 12px 16px}.brand{padding-inline:14px;line-height:1.15}.brand small{line-height:1.6;letter-spacing:1px;font-size:9px;margin-top:7px}.workspace{margin:22px 2px 20px;padding:13px 14px}aside nav{gap:3px;margin-top:0}aside nav a{min-height:42px;box-sizing:border-box;padding:10px 14px;gap:12px;font-size:13px}aside nav .group{padding:24px 14px 8px;line-height:1.5}.aside-bottom{padding:18px 14px 0}.shell>header{height:64px;min-height:64px;padding-inline:28px}.shell>header>div:first-child{gap:14px}.shell>header .header-title{font-weight:400}main{padding:26px 28px 36px}.page-head{margin-bottom:22px;align-items:center}.page-head h1{margin:5px 0 8px}.page-head .actions{gap:10px}.registry-metrics{margin:20px 0 18px}.registry-toolbar{margin:18px 0 20px;gap:12px;padding:16px 18px}.registry-toolbar label{gap:7px}.panel{margin-bottom:20px}.panel-head{padding:17px 22px}.panel-body{padding:22px}.form-section .form-grid{gap:20px 24px}.form-section legend{margin-bottom:11px}.table-wrap{overflow-x:auto;max-width:100%}.toolbar{display:flex;gap:10px;align-items:center;margin:18px 0 20px;padding:16px 18px;background:white;border:1px solid #e1e7ec;border-radius:6px}.toolbar input[type=search]{flex:1;min-width:0;width:auto}.pagination-wrap:empty{display:none}
body.drawer-open{overflow:hidden}
.crm-drawer{position:fixed;inset:0 0 0 auto;margin:0;padding:0;width:min(1040px,calc(100vw - 66px));height:100dvh;max-height:100dvh;max-width:none;border:0;border-radius:0;background:#f2f5f8;color:#35414d;box-shadow:-15px 0 60px #122b4730;overflow:hidden;animation:drawer-enter .2s ease-out}
.crm-drawer::backdrop{background:#152b4766;backdrop-filter:blur(2px)}
.crm-drawer[open]{display:flex;flex-direction:column}
.drawer-toolbar{height:68px;min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 25px;background:white;border-bottom:1px solid #e1e8ee}
.drawer-toolbar-heading{min-width:0;display:flex;align-items:center;gap:12px}.drawer-toolbar h2{margin:0;font-size:19px;font-weight:400;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.drawer-back,.drawer-close,.drawer-page{display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;padding:0;border:0;border-radius:5px;background:#f1f6fa;color:#718697;font-size:23px;cursor:pointer;text-decoration:none}.drawer-back:hover,.drawer-close:hover,.drawer-page:hover{background:#e1f4fd;color:#00a2cd}.drawer-back[hidden]{display:none}.drawer-toolbar-actions{display:flex;align-items:center;gap:8px}.drawer-page{font-size:20px}.drawer-pages{flex:1;min-height:0;position:relative}.drawer-frame{height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.drawer-frame[hidden]{display:none}.drawer-body{padding:25px 27px 30px;min-height:100%;box-sizing:border-box}.drawer-body .form-width{max-width:none}.drawer-body .page-head{margin-bottom:20px;gap:12px}.drawer-body .page-head>div:first-child{display:none}.drawer-body .page-head:has(>div:only-child){display:none}.drawer-body .page-head>a.btn.light{display:none}.drawer-body .section-heading{padding:21px 24px 0}.drawer-body .form-section .form-grid{padding:22px 24px 25px}.drawer-body .form-section:last-of-type{margin-bottom:16px}.drawer-body .save-bar{bottom:0;margin:20px -27px -30px;padding:16px 27px;border-radius:0;border-left:0;border-right:0;box-shadow:0 -4px 15px #2443600a}.drawer-body .save-bar .btn{min-height:40px}.drawer-body .notice,.drawer-body .validation{margin-bottom:20px}.drawer-loading{display:flex;align-items:center;justify-content:center;gap:12px;height:180px;color:#8094a5;font-size:14px}.drawer-spinner{width:19px;height:19px;border:2px solid #d5eaf4;border-top-color:#00a9d4;border-radius:50%;animation:drawer-spin .7s linear infinite}.drawer-error{margin:24px;padding:24px;background:white;border:1px solid #efd1c9;border-radius:6px;color:#a76b59;line-height:1.7}.drawer-error button{margin-top:14px}.drawer-toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:13px 22px;border-radius:6px;background:#34495e;color:#fff;box-shadow:0 6px 25px #152a4930;z-index:999;font-size:13px;max-width:calc(100vw - 40px)}.drawer-toast[hidden]{display:none}.drawer-inline-error{font-size:12px;line-height:1.5;color:#b7634e;margin-top:3px}.drawer-body [aria-invalid=true]{border-color:#cf8e7c!important}.drawer-body button:disabled{opacity:.6;cursor:wait}
@keyframes drawer-enter{from{transform:translateX(60px);opacity:.5}to{transform:translateX(0);opacity:1}}@keyframes drawer-spin{to{transform:rotate(360deg)}}
@media(max-width:1100px){main{padding:24px}.shell>header{padding-inline:24px}}
@media(max-width:720px){aside{padding:15px 12px 8px}aside nav{margin-top:14px;gap:4px}aside nav a{padding:9px 11px;min-height:36px;font-size:12px;gap:7px}.shell>header{padding:11px 16px;min-height:58px;height:auto}.shell>header>div:first-child{gap:10px}main{padding:23px 16px 30px}.page-head{gap:14px;align-items:flex-start}.toolbar{padding:14px;flex-wrap:wrap}.toolbar input[type=search]{flex-basis:100%}.crm-drawer{width:100%;height:100dvh}.drawer-toolbar{padding:0 15px;min-height:60px;height:60px;gap:10px}.drawer-toolbar h2{font-size:17px}.drawer-toolbar-heading{gap:9px}.drawer-toolbar-actions{gap:5px}.drawer-body{padding:18px 14px 24px}.drawer-body .form-section .form-grid{padding:20px 18px}.drawer-body .section-heading{padding:19px 18px 0}.drawer-body .save-bar{margin-inline:-14px;margin-bottom:-24px;padding:13px 14px}.drawer-body .save-bar p{display:none}.drawer-body .save-bar .actions{width:100%;display:flex;flex-direction:row;gap:9px}.drawer-body .save-bar .btn{flex:1;min-width:0;font-size:11px;padding-inline:12px}.drawer-body .panel-body{padding:18px}.drawer-body .passport-grid{grid-template-columns:1fr}}

aside nav .nav-work-group{padding-top:0;padding-bottom:8px}.header-product,.header-module{text-decoration:none;white-space:nowrap}.header-module{color:#7b8e9d;font-size:12px}.header-module:hover{color:#00a9d4}.header-product:hover{color:#008cb6}.drawer-frame{scroll-padding-top:20px;scroll-padding-bottom:100px}@media(max-width:720px){.header-module{display:none}.drawer-frame{scrollbar-gutter:auto}}

/* Record cards and feedback */
.record-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.record-heading h2{margin:0}.record-code,.record-caption{font-size:11px;color:#93a0ac;font-weight:400;line-height:1.6}.record-caption{display:block}.record-code{white-space:nowrap;letter-spacing:.05em}.record-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 30px;margin:0}.record-grid dt{font-size:12px;color:#8a98a5;margin-bottom:7px}.record-grid dd{font-size:14px;margin:0;line-height:1.65;color:#44535f;white-space:pre-line;overflow-wrap:anywhere}.record-grid dd a{text-decoration:none}.contact-subline{display:block;font-size:12px;color:#8c9ba7;margin-top:5px}.contact-link{color:#617b8d;text-decoration:none}.contact-link:hover,.contact-subline:hover{color:#00a0ca;text-decoration:underline}.value-empty{color:#a4aeb6;font-size:12px}.record-grid .full{grid-column:1/-1}.member-chips{display:flex;gap:8px;flex-wrap:wrap;white-space:normal}.member-chip{display:inline-flex;align-items:center;gap:7px;border:1px solid #e6edf2;background:#f8fbfd;border-radius:20px;padding:4px 10px 4px 5px;font-size:12px;color:#617787}.member-chip>span{display:grid;place-items:center;width:24px;height:24px;background:#e2f3fb;color:#3b9cbf;border-radius:50%;font-size:11px}.order-amounts{display:grid;grid-template-columns:1fr 1fr;gap:25px;background:#f5faff;border:1px solid #e3f0f9;border-radius:5px;padding:20px 22px;margin-top:26px}.order-amounts small{font-size:12px;color:#8c9dac;display:block;margin-bottom:7px}.order-amounts strong{font-size:23px;line-height:1.3;font-weight:400;color:#3c647e;font-variant-numeric:tabular-nums}.record-note{margin-top:23px;padding-top:20px;border-top:1px solid #edf1f5}.record-note>b{font-size:12px;color:#8d9da9;font-weight:400}.record-note p{white-space:pre-wrap;margin:7px 0 0;color:#617382;font-size:13px}.content-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:28px 0 17px;flex-wrap:wrap}.content-heading h2{font-weight:500;font-size:19px;margin:0}.room-marker{display:grid;place-items:center;width:30px;height:30px;border-radius:5px;background:#ecf7fc;color:#67acc9}.room-marker svg{width:18px;height:18px}.room-panel .panel-head{flex-wrap:wrap;gap:14px}.room-panel .table-wrap{margin:0 -22px -22px}.room-panel .table-wrap table{min-width:650px;width:100%}.room-panel .table-wrap td{vertical-align:top}.room-panel .room-notes{font-size:13px;white-space:pre-wrap;color:#8a98a5;margin:0 0 17px}.room-settings{margin-bottom:18px;border:0;border-radius:5px;background:#f7fafc;padding:11px 14px}.room-settings summary{font-size:12px;color:#7d94a5;font-weight:400}.room-settings form{padding:16px 0 5px}.room-settings .btn{margin-top:14px}.item-notes{font-size:12px;max-width:280px;white-space:pre-wrap;margin:9px 0 0}.nowrap{white-space:nowrap}.passport-state{display:inline-flex;align-items:center;gap:6px;border-radius:4px;font-size:11px;padding:7px 10px;background:#fff6e8;color:#be9657;text-decoration:none;white-space:nowrap}.passport-state.approved{background:#eff8df;color:#7c9d42}.passport-state:hover{text-decoration:underline}.archived-row td{background:#fafbfc;color:#9aa5af}.archived-row .order-title{color:#8597a4}.room-empty{padding:20px 0;color:#99a5af;font-size:13px}.room-empty a{display:block;margin-top:8px;font-size:12px}.inline-form-actions{margin-top:18px}.empty-icon{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 18px;background:#edf8fd;border-radius:14px;color:#62b6d3}.empty-icon svg{width:26px;height:26px}.empty-state.compact{padding:35px 22px}.empty-state.compact h3{font-size:21px}.order-history{padding:0;border:1px solid #e2e8ed}.order-history>summary{font-size:14px;font-weight:500;list-style-position:inside}.order-history>summary .record-caption{display:inline;margin-left:12px}.order-history[open]>summary{border-bottom:1px solid #edf1f4}.activity-list{list-style:none;margin:0;padding:0}.activity-list li{position:relative;display:flex;gap:15px;padding:0 0 23px}.activity-list li:not(:last-child):before{content:"";position:absolute;left:4px;top:12px;bottom:0;width:1px;background:#e1ebf3}.activity-list li:last-child{padding-bottom:0}.activity-dot{width:9px;height:9px;flex:0 0 9px;background:#95d3e9;border:2px solid #e9f6fc;box-sizing:content-box;border-radius:50%;margin-left:-2px;margin-top:4px}.activity-list b{font-size:13px;font-weight:400;color:#596c7c}.activity-list small{display:block;font-size:11px;color:#9aabb9;margin-top:5px}.feature-icon{display:grid;place-items:center;width:43px;height:43px;background:#eaf7fd;color:#43a4c7;border-radius:9px;margin-bottom:19px}.feature-icon svg{width:23px;height:23px}.feature .number{line-height:1.1;min-height:62px}.feature .number .record-caption{margin-top:8px;font-size:11px}.feature{display:flex;flex-direction:column;text-decoration:none}.feature .text-link{margin-top:auto;padding-top:14px}.btn.is-saving{display:inline-flex;gap:9px}.btn.is-saving:after{content:"";width:12px;height:12px;border:2px solid #ffffff60;border-top-color:#fff;border-radius:50%;animation:drawer-spin .7s linear infinite}.error-jump{padding:0;border:0;background:transparent;font:inherit;color:inherit;text-align:left;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.drawer-frame:focus-within{scroll-behavior:auto}
@media(max-width:600px){.record-grid{grid-template-columns:1fr;gap:21px}.order-amounts{grid-template-columns:1fr;gap:18px;padding:17px 18px}.order-amounts strong{font-size:22px}.room-panel .panel-head .btn{font-size:10px;padding:8px 11px;min-height:34px}.room-panel .table-wrap{margin-inline:-22px}.drawer-body .room-panel .table-wrap{margin-inline:-18px;margin-bottom:-18px}.content-heading{align-items:flex-start;flex-direction:column;gap:4px}.record-heading{gap:9px}.record-code{font-size:10px}.order-history>summary .record-caption{display:block;margin:5px 0 0}}

.drawer-toast{pointer-events:none}.table-wrap[data-scrollable=true]:focus-visible{outline:2px solid #51b8d8;outline-offset:2px}@media(max-width:720px){.table-wrap[data-scrollable=true]:before{content:"← Прокрутите таблицу →";display:block;position:sticky;left:0;padding:10px 18px;font-size:10px;color:#90a6b6;background:#f6fafc;box-sizing:border-box;max-width:100%}}
.drawer-body .page-head .actions>.btn.light{display:none}.drawer-body .page-head .actions{flex-direction:row;justify-content:flex-end;width:100%}.drawer-body .page-head{justify-content:flex-end}.record-grid dt,.passport-grid dt{color:#617382}@media(max-width:600px){.record-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 16px}.record-grid dd{font-size:13px}.drawer-body .page-head .actions{flex-direction:row}}

.view-switch{display:inline-flex;gap:3px;padding:4px;background:#e4ebf1;border-radius:6px;margin:0 0 3px}.view-switch a{font-size:12px;color:#718596;text-decoration:none;padding:8px 17px;border-radius:4px}.view-switch a.selected{background:white;color:#059ac4;box-shadow:0 1px 4px #28476614}.kanban-hint{font-size:11px;color:#8b9da9;margin:0 0 13px}.kanban-board{display:grid;grid-template-columns:repeat(6,minmax(265px,1fr));gap:14px;height:calc(100dvh - 360px);min-height:430px;max-height:850px;overflow-x:auto;padding-bottom:12px;overscroll-behavior-x:contain}.kanban-column{height:100%;min-height:0;box-sizing:border-box;display:flex;flex-direction:column;background:#e5edf4;border-radius:6px;overflow:hidden;border:1px solid transparent}.kanban-column-title{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 15px;color:#587c92;background:#d8e9f4;border-top:3px solid #7bbbdc;flex-shrink:0}.kanban-column-title h2{font-size:13px;font-weight:500;margin:0;color:inherit}.kanban-column-title>span{font-size:11px;border-radius:12px;background:#ffffff8c;min-width:23px;text-align:center;padding:1px 6px}.stage-planning .kanban-column-title{background:#dbeaf9;border-color:#76abe4;color:#5f83ab}.stage-agreement .kanban-column-title{background:#ebe3f9;border-color:#ac8fd8;color:#8e74ad}.stage-active .kanban-column-title{background:#d8f1f7;border-color:#55bad7;color:#4a9ab1}.stage-completed .kanban-column-title{background:#e1f0cc;border-color:#a5cd69;color:#789d41}.stage-cancelled .kanban-column-title{background:#e5e8ed;border-color:#a8b2bf;color:#7f8c9c}.kanban-cards{min-height:100px;overflow-y:auto;padding:10px;flex:1;scrollbar-width:thin;scrollbar-color:#bccdda transparent}.kanban-card{background:#fff;border-radius:5px;padding:14px 13px;margin-bottom:10px;box-shadow:0 1px 3px #233b5610;border:1px solid #e1e9ef;overflow-wrap:anywhere}.kanban-card[draggable=true]{cursor:grab}.kanban-card[aria-busy=true]{opacity:.6;cursor:wait}.kanban-card.dragging{opacity:.4}.kanban-column.drop-target{border:1px dashed #00a8d2;background:#d9eef8}.kanban-card-top{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:9px;color:#9ba9b5;margin-bottom:8px}.kanban-card-top>div{display:flex;gap:5px}.kanban-card-title{font-size:14px;line-height:1.5;color:#326882;font-weight:500;text-decoration:none;display:block;margin-bottom:9px}.kanban-card-title:hover{color:#00a5d0;text-decoration:underline}.kanban-card-amount{font-size:17px;color:#506b7e;font-weight:400;margin:5px 0 13px;font-variant-numeric:tabular-nums}.kanban-card-owner{display:flex;align-items:center;gap:7px;font-size:10px;color:#879aa9;margin:10px 0}.kanban-card-owner>span{width:21px;height:21px;display:grid;place-items:center;background:#eaf6fc;color:#6aaac2;border-radius:50%;flex-shrink:0;font-size:9px}.kanban-card-meta{display:flex;justify-content:space-between;font-size:10px;color:#94a6b4;gap:8px;margin-top:6px}.kanban-stage-label{display:grid;gap:5px;font-size:9px;color:#8ea2b3;margin-top:13px}.kanban-stage-select{font-family:inherit;font-size:11px;border:1px solid #e1eaf0;padding:7px 8px;background:#f9fbfd;color:#7591a3;border-radius:4px;max-width:100%;width:100%}.kanban-empty{font-size:11px;text-align:center;color:#9aafbf;padding:35px 12px;line-height:1.7}.kanban-more{display:block;text-align:center;padding:15px 8px;font-size:11px;line-height:1.7}.demo-tag,.urgent-tag{border-radius:3px;padding:2px 5px;font-size:9px;background:#eef2f6;color:#92a1ae}.urgent-tag{background:#fff0e4;color:#d19358}.demo-notice{display:flex;align-items:center;gap:13px;flex-wrap:wrap;padding:10px 15px;font-size:11px;background:#fff8e8;border:1px solid #f2e5c4;color:#a78d58;border-radius:5px;margin-bottom:19px}.demo-notice b{font-weight:600}.demo-notice span{color:#ab9874}.cancellation-field[hidden]{display:none!important}
@media(max-width:720px){.kanban-board{grid-template-columns:repeat(6,275px);height:65dvh;min-height:400px;gap:10px}.kanban-hint{font-size:10px;line-height:1.6}.demo-notice{gap:4px;padding:10px 12px}.demo-notice span{display:block}.view-switch{margin-top:2px}}

.order-filter-panel{padding:0;border:0;margin:0}.order-filter-panel>summary{display:none}.kanban-board{height:calc(100dvh - 570px)}@media(max-width:720px){.orders-page-head{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;margin-bottom:16px}.orders-page-head .eyebrow,.orders-page-head p{display:none}.orders-page-head h1{margin:0;font-size:26px}.orders-page-head>.btn{font-size:10px;padding:9px 11px;min-height:36px}.demo-notice span{display:none}.registry-metrics{margin:15px 0}.order-filter-panel{margin:14px 0 17px}.order-filter-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 15px;background:white;border:1px solid #e1e7ec;border-radius:5px;color:#6a8b9f;font-size:12px;font-weight:400;list-style:none}.order-filter-panel>summary:after{content:"⌄";color:#8aa2b2}.order-filter-panel>summary>span{font-size:9px;color:#00a5ca}.order-filter-panel[open]>summary{border-radius:5px 5px 0 0}.order-filter-panel .registry-toolbar{margin:0;border-top:0;border-radius:0 0 5px 5px}.kanban-board{min-height:400px}}

/* Compact CRM workspace */
.shell>main:has(.crm-command-bar){padding-top:0}.crm-section-nav{display:flex;gap:28px;align-items:center;height:52px;margin:0 -28px 0;padding:0 29px;border-bottom:1px solid #dce5eb;background:#ffffff8f;overflow-x:auto}.crm-section-nav a{display:inline-flex;align-items:center;height:100%;box-sizing:border-box;min-height:0;padding:0 2px;color:#627581;font-size:14px;border:0;border-radius:0;white-space:nowrap;background:transparent;box-shadow:none}.crm-section-nav a:hover{color:#1599c5;background:transparent}.crm-section-nav a.active{background:transparent;color:#168bad;box-shadow:inset 0 -3px #17a6d1;font-weight:500}.crm-command-bar{display:flex;align-items:center;gap:22px;margin:22px 0 17px}.crm-command-bar h1{font-size:28px;font-weight:400;margin:0;white-space:nowrap;line-height:1.2}.crm-command-bar h1 small{font-size:13px;color:#95a3ad;margin-left:7px;font-weight:400}.crm-search{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #cbd6df;border-radius:4px;min-width:220px;max-width:790px;flex:1;height:43px;padding:0 12px}.crm-search>span{color:#91a8b8;font-size:25px;line-height:1}.crm-search input[type=search]{border:0!important;box-shadow:none!important;padding:9px 0!important;width:100%;min-width:0;min-height:39px!important;font-size:13px}.crm-search-submit{border:0;background:transparent;color:#99aebe;font-size:20px;cursor:pointer;padding:3px 0}.crm-create{background:#bbed21;color:#465c12;border-color:#b0dd21;border-radius:3px;font-size:12px;padding-inline:24px;min-height:43px}.crm-create:hover{background:#aadb17;color:#425a0c}.crm-workbar{display:flex;align-items:center;gap:15px;margin:0 0 20px;min-height:38px;border-bottom:1px solid #dce5eb;padding-bottom:12px}.crm-workbar .view-switch{background:none;padding:0;gap:18px;flex-shrink:0;margin:0}.crm-workbar .view-switch a{padding:7px 0;border-radius:0;font-size:13px;background:none;box-shadow:none;color:#8395a3}.crm-workbar .view-switch .selected{color:#1099c2;box-shadow:inset 0 -2px #1ba9cf}.crm-filter-chips{display:flex;align-items:center;gap:5px;flex:1;margin-left:10px;min-width:0}.crm-filter-chips a{display:inline-flex;gap:6px;align-items:center;font-size:11px;text-decoration:none;padding:6px 10px;border-radius:3px;color:#8396a6;white-space:nowrap}.crm-filter-chips a.selected{background:#dceff8;color:#418caf}.crm-filter-chips small{font-size:9px;border-radius:10px;background:#f7e9df;color:#c48c64;min-width:13px;text-align:center;padding:0 3px}.crm-filter-popup,.crm-display-settings{position:relative;border:0;padding:0;flex-shrink:0}.crm-filter-popup>summary,.crm-display-settings>summary{padding:7px 9px;list-style:none;font-size:12px;font-weight:400;color:#7a919f;cursor:pointer}.crm-filter-popup>summary::-webkit-details-marker,.crm-display-settings>summary::-webkit-details-marker{display:none}.crm-filter-popup>form,.crm-display-settings>div{position:absolute;right:0;top:38px;width:285px;box-sizing:border-box;z-index:15;padding:20px;background:white;border:1px solid #dae4ec;border-radius:5px;box-shadow:0 9px 35px #21436124}.crm-filter-popup form{display:grid;gap:15px}.crm-filter-popup form>label{display:grid;gap:7px;font-size:11px;color:#8596a3}.crm-filter-popup .actions{margin-top:4px;gap:14px}.crm-filter-popup .btn{font-size:11px;min-height:34px;padding:8px 12px}.crm-display-settings>summary{font-size:20px;padding:2px 5px}.crm-display-settings>div{width:220px}.crm-display-settings b{font-size:13px;font-weight:500}.crm-display-settings p{font-size:11px;margin:6px 0 14px}.crm-display-settings label{display:flex;gap:8px;align-items:center;font-size:12px;color:#728c9e;margin:10px 0}.crm-display-settings input{accent-color:#20a8d2}.filter-active-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#21b5db;margin-left:4px}.crm-current-filter{font-size:11px;color:#8a9cab;margin:-4px 0 15px}.crm-current-filter a{margin-left:15px;text-decoration:none}
.kanban-board{grid-template-columns:repeat(6,minmax(245px,1fr));gap:17px;padding-top:0}.kanban-column{background:transparent;border:0;border-radius:0}.kanban-column-title{position:relative;overflow:visible;border:0;border-radius:3px 0 0 3px;padding:11px 14px;color:white;background:#53bcef;clip-path:polygon(0 0,calc(100% - 10px) 0,100% 50%,calc(100% - 10px) 100%,0 100%);min-height:42px;box-sizing:border-box}.kanban-column-title h2{font-size:12px;font-weight:600;line-height:1.3}.kanban-column-title>span{font-size:10px;min-width:16px;background:#ffffff30;border-radius:11px;padding:1px 5px;margin-right:9px;color:#fff}.stage-planning .kanban-column-title{background:#61a9e8;color:white}.stage-agreement .kanban-column-title{background:#a08ad7;color:white}.stage-active .kanban-column-title{background:#46bedb;color:white}.stage-completed .kanban-column-title{background:#a5cd57;color:white}.stage-cancelled .kanban-column-title{background:#a3afbb;color:white}.kanban-stage-total{font-size:13px;color:#6c8191;padding:12px 13px 10px;min-height:40px;box-sizing:border-box;font-variant-numeric:tabular-nums}.kanban-cards{padding:4px 3px 9px 0;scrollbar-gutter:stable;scrollbar-width:thin}.kanban-card{border:0;border-left:3px solid #7cc8e4;border-radius:3px;padding:10px 11px 9px;box-shadow:0 1px 3px #27445c15;margin-bottom:10px;position:relative}.stage-planning .kanban-card{border-left-color:#87b9e2}.stage-agreement .kanban-card{border-left-color:#b9a7e1}.stage-completed .kanban-card{border-left-color:#b7d781}.stage-cancelled .kanban-card{border-left-color:#c2ccd4}.kanban-card-top{font-size:9px;margin-bottom:5px;min-height:19px;align-items:center}.kanban-card-top>div{align-items:center;gap:6px}.kanban-card-title{font-size:13px;line-height:1.5;color:#28769b;font-weight:500;margin-bottom:7px}.kanban-card-amount{font-size:19px;line-height:1.3;font-weight:400;color:#374f61;margin:7px 0 9px}.kanban-card-client{display:block;font-size:11px;color:#6b95ac;text-decoration:none;margin:8px 0 11px}.kanban-card-client:hover{text-decoration:underline}.kanban-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}.kanban-card-owner{margin:0;min-width:0;gap:6px;font-size:10px;flex:1}.kanban-card-owner>.owner-name{display:block;background:none;width:auto;height:auto;border-radius:0;flex:1;font-size:10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#859bab}.kanban-card-owner>span:first-child{width:22px;height:22px;flex:0 0 22px;background:#e5f3fb;color:#75a9c3}.kanban-card-deadline{font-size:10px;white-space:nowrap;color:#90a6b7}.kanban-card-deadline.date-overdue{color:#d68966;background:#fff4ec;padding:2px 5px;border-radius:3px}.kanban-card-meta{font-size:9px;color:#a4b3c0;margin-top:7px}.kanban-card-menu{position:relative;padding:0;border:0;flex:0 0 auto;line-height:1}.kanban-card-menu summary{list-style:none;cursor:pointer;font-size:20px;color:#93a8b8;font-weight:400;line-height:18px;padding:0 2px}.kanban-card-menu summary::-webkit-details-marker{display:none}.kanban-card-menu>div{position:absolute;right:-3px;top:22px;z-index:10;width:185px;box-sizing:border-box;background:white;border:1px solid #dbe5ed;border-radius:4px;box-shadow:0 8px 25px #14374d20;padding:12px}.kanban-card-menu a{display:block;text-decoration:none;font-size:12px;margin:0 0 13px;color:#5789a6;line-height:1.4}.kanban-card-menu label{display:grid;gap:6px;font-size:10px;color:#8a9fac;line-height:1.5}.kanban-stage-select{font-size:11px;padding:7px 6px}.kanban-card:has(.kanban-card-menu[open]){z-index:3}.kanban-quick{flex-shrink:0;border:1px dashed #cbdbe6;border-radius:3px;padding:0;margin:0 4px 9px 0;background:#ffffff55}.kanban-quick>summary{display:flex;align-items:center;justify-content:center;gap:5px;list-style:none;color:#8ca7b9;font-size:16px;font-weight:400;padding:6px;cursor:pointer}.kanban-quick>summary>span{font-size:11px}.kanban-quick>summary:hover{color:#27a2ca;background:#fff}.kanban-quick-form{padding:10px 11px;display:grid;gap:12px;background:white}.kanban-quick-form label{font-size:10px;color:#8b9da9;display:grid;gap:6px}.kanban-quick-form input:not([type=hidden]){min-height:35px!important;padding:8px 9px!important;font-size:12px!important;width:100%}.kanban-quick-form .btn{font-size:10px;padding:7px 10px;min-height:32px}.quick-errors{font-size:11px;color:#bd7660;line-height:1.5}.quick-errors[hidden]{display:none}.kanban-empty{font-size:10px;color:#a2b5c3;padding-top:25px}.kanban-column.drop-target{border:0;outline:2px dashed #6bc5e4;outline-offset:-2px;background:#e0f3fb80}.kanban-board [data-board-field][hidden]{display:none!important}.kanban-board [data-board-field=amount]{font-variant-numeric:tabular-nums}
@media(min-width:1101px){.shell:has(.crm-command-bar) .demo-notice{padding:6px 0;margin:6px 0 0;border:0;background:transparent;font-size:10px}.shell:has(.crm-command-bar) .demo-notice span{color:#b3a17c;font-size:10px}}
@media(max-width:720px){.crm-section-nav{height:44px;margin:0 -16px;padding:0 17px;gap:24px}.crm-section-nav a{font-size:12px}.crm-command-bar{display:grid;grid-template-columns:1fr auto;gap:13px;margin:18px 0 14px}.crm-command-bar h1{font-size:25px}.crm-command-bar .crm-search{grid-column:1/-1;grid-row:2;min-width:0;max-width:none;height:39px}.crm-command-bar .crm-create{grid-column:2;grid-row:1;font-size:10px;min-height:36px;padding:9px 13px}.crm-workbar{gap:10px;flex-wrap:wrap;margin-bottom:14px}.crm-filter-chips{order:5;flex-basis:100%;margin:0;gap:2px;overflow:auto}.crm-filter-chips a{font-size:10px;padding:6px 8px}.crm-workbar .crm-filter-popup{margin-left:auto}.crm-workbar .view-switch{gap:16px}.crm-workbar .view-switch a{font-size:12px}.crm-filter-popup>form{position:fixed;top:190px;left:16px;right:16px;width:auto;max-height:65dvh;overflow:auto;z-index:25}.crm-display-settings>div{right:0;top:35px}.kanban-board{grid-template-columns:repeat(6,250px);gap:13px}.kanban-column-title{padding:11px 12px}.kanban-stage-total{font-size:12px;padding:10px 12px}.kanban-card{padding:11px 11px 9px}.kanban-card-title{font-size:13px}.kanban-card-amount{font-size:18px}.shell:has(.crm-command-bar) .demo-notice{padding:6px 10px;margin-top:12px;margin-bottom:8px;font-size:10px}}


.project-stagebar{display:flex;gap:3px;margin:0 0 22px;overflow-x:auto;padding:1px 0 5px}.project-stage{flex:1;min-width:120px;padding:11px 15px 11px 10px;border:0;border-radius:2px;color:#7d98a8;background:#e1edf4;font:inherit;font-size:11px;line-height:1.5;white-space:nowrap;clip-path:polygon(0 0,calc(100% - 9px) 0,100% 50%,calc(100% - 9px) 100%,0 100%);cursor:pointer}.project-stage:hover:enabled{background:#c8eaf8;color:#288cae}.project-stage.current{background:#45bfe4;color:white;font-weight:600}.project-stage.stage-completed.current{background:#a2c951;color:white}.project-stage.stage-cancelled.current{background:#a8b3bf;color:white}.project-stage:disabled{cursor:default;opacity:.65}.project-stage.current:disabled{opacity:1}.crm-record-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px;align-items:start}.crm-record-main{min-width:0}.crm-record-side{position:sticky;top:10px;min-width:0}.crm-record-side .order-history{border:0;box-shadow:none;background:#ffffffb0}.crm-record-side .order-history>summary{list-style:none;font-size:15px;padding:20px 18px}.crm-record-side .order-history>summary>.record-caption{display:block;margin:6px 0 0}.crm-record-side .order-history>.panel-body{padding:20px 18px}.crm-record-side .activity-list li{padding-bottom:26px}.crm-record-side .activity-list b{font-size:12px}.crm-record-side .activity-list small{font-size:10px;line-height:1.7}.crm-record-main .record-grid{gap:22px 20px}.crm-record-main .order-amounts{padding:18px;gap:15px}.crm-record-main .order-amounts strong{font-size:21px}.drawer-body:has(.crm-record-layout){background:#edf2f6}.crm-drawer:has(.crm-record-layout){width:min(1280px,calc(100vw - 65px))}.drawer-body .crm-record-layout{grid-template-columns:minmax(0,1fr) 300px;gap:20px}.drawer-body .crm-record-side{top:0}.drawer-body .crm-record-side .panel{margin-bottom:0}.drawer-body .project-stagebar{margin-top:0}.drawer-body:has(.crm-record-layout) .page-head .actions{gap:10px}.drawer-body:has(.crm-record-layout) .page-head .actions>.btn{font-size:10px;min-height:33px;padding:8px 13px}.crm-record-main .room-panel .record-heading>.record-caption{display:none}
@media(max-width:1050px){.crm-record-layout,.drawer-body .crm-record-layout{grid-template-columns:minmax(0,1fr)}.crm-record-side{position:static}.crm-record-side .order-history{background:white}}
@media(max-width:720px){.crm-drawer:has(.crm-record-layout){width:100%}.project-stagebar{margin-bottom:16px;gap:2px}.project-stage{min-width:115px;font-size:10px;padding:10px}.crm-record-layout{gap:4px}.crm-record-main .order-amounts{grid-template-columns:1fr}.drawer-body .crm-record-side .panel{margin-bottom:15px}.crm-filter-popup>form .actions{flex-direction:row}.crm-record-side .order-history>summary{padding:18px}}

.project-stagebar[aria-busy=true]{opacity:.6;pointer-events:none}.project-stage.current:hover:enabled{background:#45bfe4;color:white}.project-stage.stage-completed.current:hover:enabled{background:#a2c951;color:white}.project-stage.stage-cancelled.current:hover:enabled{background:#a8b3bf;color:white}
:focus-visible{outline:2px solid #52b8dc;outline-offset:3px}

/* Quiet, consistent scrolling across the workspace. */
html,.drawer-frame,.kanban-board,.kanban-cards,.table-wrap,.project-stagebar,aside{scrollbar-width:thin;scrollbar-color:#b6c4cf transparent}
::-webkit-scrollbar{width:7px;height:7px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:#b6c4cf;border:2px solid transparent;background-clip:padding-box;border-radius:12px}
::-webkit-scrollbar-thumb:hover{background-color:#8fa6b6}
::-webkit-scrollbar-button{display:none;width:0;height:0}
::-webkit-scrollbar-corner{background:transparent}
aside{scrollbar-color:#ffffff45 transparent}
aside::-webkit-scrollbar-thumb{background-color:#ffffff45}
.shell>main:has(.kanban-board){padding-bottom:12px;min-width:0}
.shell:has(.kanban-board)>footer{display:none}
.kanban-board{overflow-y:hidden;min-height:360px;padding-bottom:8px;overscroll-behavior-x:contain}
.kanban-cards{overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-color:#c1ced7 transparent}
@media(min-width:1101px){.shell>main:has(.crm-command-bar){padding-top:0}.crm-command-bar{margin-top:20px}}
@media(forced-colors:active){html,.drawer-frame,.kanban-board,.kanban-cards,.table-wrap,.project-stagebar,aside{scrollbar-color:auto}}
.kanban-viewport{position:relative;min-width:0}
.kanban-viewport>.kanban-board{scrollbar-width:none}
.kanban-viewport>.kanban-board::-webkit-scrollbar{display:none}
.kanban-edge{position:absolute;top:90px;bottom:8px;width:38px;border:0;border-radius:0;z-index:6;display:flex;align-items:center;justify-content:center;font:normal 48px/1 "Segoe UI",sans-serif;color:#fff;cursor:pointer;background:transparent;opacity:.6;transition:opacity .15s,background .15s;padding:0;text-shadow:0 1px 5px #37566e55}
.kanban-edge[hidden]{display:none}
.kanban-edge-left{left:0;background:linear-gradient(90deg,#9bafbf55,transparent)}
.kanban-edge-right{right:0;background:linear-gradient(270deg,#9bafbf55,transparent)}
.kanban-edge:hover,.kanban-edge:focus-visible{opacity:1;background-color:#9bafbf35}
@media(pointer:coarse){.kanban-edge{top:90px;width:30px;font-size:36px}}
/* In-place record fields and the activity stream. */
.record-inline{border:0;padding:0;background:transparent;font:inherit;min-width:0}
.record-inline>summary{display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;font:inherit;color:inherit;white-space:pre-wrap;padding:5px 7px;margin:-5px -7px;border:1px solid transparent;border-radius:4px;min-height:28px;box-sizing:border-box;overflow-wrap:anywhere}
.record-inline>summary::-webkit-details-marker{display:none}
.record-inline>summary>span{font-size:13px;color:#95abb9;opacity:0;margin-left:auto}
.record-inline>summary:hover{background:#fff;border-color:#dbe7ed}.record-inline>summary:hover>span,.record-inline[open]>summary>span{opacity:1}
.record-inline[open]>summary{display:none}
.record-inline-form{background:#fff;border:1px solid #d8e6ee;border-radius:5px;padding:12px;font-size:12px;font-weight:400;color:#667e8e;white-space:normal}
.record-inline-form label{display:grid;gap:8px;font-size:11px}.record-inline-form input,.record-inline-form select,.record-inline-form textarea{width:100%;min-width:0;font-size:13px!important}
.record-inline-form .actions{margin-top:12px;gap:8px}.record-inline-form .btn{font-size:10px!important;min-height:30px!important;padding:7px 10px!important}
.page-head h1 .record-inline>summary{justify-content:flex-start}.page-head h1 .record-inline>summary>span{margin-left:0}
.timeline-compose .panel-head h2{font-size:14px;font-weight:400;color:#279fc5}.timeline-compose textarea{width:100%;min-height:85px;border:0;box-shadow:none;resize:vertical;font-size:13px}.timeline-compose .btn{font-size:11px;min-height:32px;margin-top:10px}.timeline-compose small{display:block;font-size:10px;color:#99a8b3;margin-top:10px;line-height:1.6}
.communication-state b{font-size:13px;font-weight:500}.communication-state p{font-size:12px;margin:9px 0}.communication-state small{font-size:11px;color:#98a9b5;line-height:1.7;display:block}
.timeline-message{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.7;color:#526e81;background:#f5fafc;border:1px solid #e6eff3;border-radius:6px;padding:12px;margin:10px 0}
.crm-record-side .panel{margin-bottom:18px}.crm-record-side{position:static}.crm-record-layout{grid-template-columns:minmax(0,1fr) minmax(340px,.9fr)}.drawer-body .crm-record-layout{grid-template-columns:minmax(0,1fr) minmax(340px,.9fr)}
.crm-record-side .activity-list li{background:#fff;border-radius:7px;padding:16px 15px 16px 24px;margin-bottom:12px}.crm-record-side .activity-list{padding-left:12px}
@media(max-width:1050px){.crm-record-layout,.drawer-body .crm-record-layout{grid-template-columns:minmax(0,1fr)}}
.record-grid dd:has(.record-inline){white-space:normal}
.drawer-body .page-head:has(.record-inline)>div:first-child{display:block;min-width:0;flex:1}
.drawer-body .page-head:has(.record-inline){justify-content:space-between;align-items:center}
.drawer-body .page-head:has(.record-inline) .actions{width:auto}
.drawer-body .page-head:has(.record-inline) h1{font-size:21px;margin:0}.drawer-body .page-head:has(.record-inline) .eyebrow,.drawer-body .page-head:has(.record-inline) p{display:none}
@media(max-width:720px){.drawer-body .page-head:has(.record-inline){align-items:flex-start}.drawer-body .page-head:has(.record-inline) h1{font-size:18px}}
.order-tabs{display:flex;align-items:center;gap:4px;overflow-x:auto;scrollbar-width:thin;border:0;border-radius:0;background:transparent;padding:2px 0 4px;margin-bottom:17px;grid-column:1/-1;flex-shrink:0;box-shadow:none;scroll-padding-inline:2px}
.order-tabs [role=tab]{display:flex;align-items:center;justify-content:center;flex:0 0 auto;border:1px solid transparent;border-radius:7px;background:transparent;padding:6px 10px;min-height:32px;color:#84929f;font:inherit;font-weight:400;font-size:14px;line-height:1.3;white-space:nowrap;cursor:pointer;transition:background .15s,color .15s}
.order-tabs [role=tab]:hover{color:#159ed0;background:#f3f9fc}.order-tabs [role=tab][aria-selected=true]{color:#00a9ed;background:#eff9ff;border-color:#b6e7ff;box-shadow:none}.order-tabs [role=tab]:focus-visible{outline:2px solid #35b2db;outline-offset:1px}
[data-order-panel][hidden]{display:none!important}
.crm-record-layout[data-tabs-ready]{display:block;max-width:none;margin-inline:0}.crm-record-layout[data-tabs-ready]>.crm-record-main{display:contents}
.crm-record-layout[data-active-panel="Общее"]{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);column-gap:32px;row-gap:0;align-items:start}
.crm-record-layout[data-active-panel="Общее"]>.order-tabs{margin-bottom:17px}.crm-record-layout[data-active-panel="Общее"] .order-overview{grid-column:1}
.crm-record-layout[data-active-panel="Общее"]>.crm-record-side{grid-column:2;grid-row:2;min-width:0}
[data-tabs-ready] .order-overview{margin-top:0;border:0;border-radius:12px;background:#f8fbfc;box-shadow:0 4px 16px #3b596405}.order-rooms-tab>.content-heading{margin-top:0}
.crm-record-layout[data-active-panel="Общее"] .record-grid{grid-template-columns:minmax(0,1fr);gap:20px}.crm-record-layout[data-active-panel="Общее"] .record-grid dt{color:#99a4ae;font-size:12px;margin-bottom:7px}.crm-record-layout[data-active-panel="Общее"] .record-grid dd{color:#4f5c67}
.crm-record-layout[data-tabs-ready] .order-overview .panel-head{padding:17px 16px;border-bottom:1px solid #e7edf1}.crm-record-layout[data-tabs-ready] .order-overview .panel-head h2{font-size:11px;text-transform:uppercase;color:#60707e;font-weight:500;letter-spacing:.03em}.crm-record-layout[data-tabs-ready] .order-overview .panel-body{padding:20px 16px}
.crm-record-layout[data-tabs-ready] .crm-record-side .panel{border:0;border-radius:12px;box-shadow:0 4px 16px #3b596405;margin-bottom:16px;background:#fff}
.crm-record-layout[data-tabs-ready] .timeline-compose .panel-head{border-bottom:0;padding:13px 16px 0}.crm-record-layout[data-tabs-ready] .timeline-compose .panel-head h2{border:1px solid #b6e7ff;border-radius:7px;padding:6px 10px;color:#00a9ed;background:#eff9ff}.crm-record-layout[data-tabs-ready] .timeline-compose .panel-body{padding:12px 16px 16px}
.form-width[data-tabs-ready]>.form-section{margin-top:0}.form-width[data-tabs-ready] .save-bar{position:sticky;bottom:0;z-index:4;background:#f8fbfd;border-top:1px solid #e1eaf0;padding:16px 18px;margin-top:20px;border-radius:5px}
@media(max-width:1050px){.crm-record-layout[data-active-panel="Общее"]{display:block}.crm-record-layout[data-active-panel="Общее"] .record-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.order-tabs{gap:2px;margin-bottom:16px}.order-tabs [role=tab]{font-size:13px;padding:6px 9px;min-height:32px}.form-width[data-tabs-ready] .save-bar{padding:12px}.crm-record-layout[data-active-panel="Общее"] .record-grid{grid-template-columns:minmax(0,1fr)}}
.production-totals{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:22px}.production-totals a{display:grid;gap:6px;padding:16px;border:1px solid #e1eaf0;background:#ffffffaa;border-radius:7px;text-decoration:none;color:#8399aa}.production-totals a.selected{border-color:#72cce6;background:#eaf8fd}.production-totals b{font-size:25px;font-weight:400;color:#47728d}.production-totals span{font-size:11px}.production-filters{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:22px;font-size:12px}.production-filters label{display:flex;gap:8px;align-items:center}.production-filters select{width:auto;min-width:150px}.production-detail{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(270px,.8fr);gap:22px;align-items:start}.production-detail>div{min-width:0}.production-actions{display:grid;gap:22px}.production-actions form{display:grid;gap:13px}.production-actions form+form{border-top:1px solid #e5edf3;padding-top:20px}.production-actions label{display:grid;gap:8px;font-size:12px}.production-actions .check-option{display:flex;gap:10px;align-items:center}.production-actions .btn{justify-self:start}.production-actions textarea{width:100%;min-height:70px}.production-actions details form{padding-top:18px}.production-detail .activity-list b{font-size:12px}
@media(max-width:900px){.production-detail{grid-template-columns:minmax(0,1fr)}.production-totals{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:480px){.production-totals{gap:7px}.production-totals a{padding:12px 9px}.production-totals span{font-size:10px}.production-filters{gap:12px}.production-detail .record-grid{grid-template-columns:minmax(0,1fr)}}
.drawer-body .production-heading>div:first-child{display:block}.drawer-body .production-heading{justify-content:space-between}.drawer-body .production-heading h1{display:none}.drawer-body .production-heading p{margin:5px 0;color:#7893a6;font-size:12px}.drawer-body .production-heading .eyebrow{font-size:10px}
.production-detail>div{display:flex;flex-direction:column}.production-detail .production-task-actions{order:-1}.production-detail .notice{order:-2}
.production-totals{grid-template-columns:repeat(7,minmax(0,1fr))}.production-handover{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:#dce7ee;border:1px solid #dce7ee;border-radius:8px;overflow:hidden;margin-bottom:22px}.production-handover>div{background:#f7fbfe;padding:15px 18px;display:grid;gap:7px}.production-handover small{font-size:11px;color:#8a9fac}.production-handover b{font-size:13px;font-weight:500;color:#4e7a94}
@media(max-width:1000px){.production-totals{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.production-totals{grid-template-columns:repeat(3,minmax(0,1fr))}.production-handover{grid-template-columns:1fr}.production-handover>div{padding:11px 14px}}
/* Every funnel has one horizontal row, regardless of its stage count. */
.kanban-board{grid-template-columns:repeat(var(--stage-count,7),minmax(245px,1fr));grid-auto-flow:column;grid-auto-columns:minmax(245px,1fr);grid-template-rows:minmax(0,1fr)}
.pipeline-switch{display:flex;gap:22px;align-items:center;border-bottom:1px solid #dce5eb;margin:0 0 18px;padding:0 0 10px}.pipeline-switch a{font-size:13px;padding:7px 0;color:#879cab;text-decoration:none}.pipeline-switch a.selected{color:#139fc7;box-shadow:0 2px #24afd3}
.stage-installation .kanban-column-title,.stage-ready .kanban-column-title{background:#e5ad50}.stage-accepted .kanban-column-title,.stage-won .kanban-column-title{background:#a5cd57}.stage-lost .kanban-column-title{background:#a3afbb}.stage-blocked .kanban-column-title,.stage-rework .kanban-column-title{background:#d69a70}.stage-review .kanban-column-title{background:#a08ad7}
.lead-board-card{cursor:pointer}.lead-board-card .record-caption{margin-top:8px}.lead-board-card .kanban-card-menu{float:right}.lead-converted-note{font-size:11px;color:#819aa8;padding:12px;line-height:1.6}
@media(max-width:720px){.kanban-board{grid-template-columns:repeat(var(--stage-count,7),250px);grid-auto-columns:250px}}
.production-board-filters{margin:0 0 0 auto;gap:13px;font-size:11px}.production-board-filters .btn{min-height:32px;padding:7px 12px;font-size:10px}.crm-command-bar>.record-caption{flex:1}.pipeline-switch a{border-radius:0}
@media(max-width:720px){.production-board-filters{margin:0;flex-wrap:wrap}.crm-command-bar>.record-caption{grid-column:1/-1;grid-row:2}}
/* Compact board controls; section navigation lives in the sidebar. */
.crm-command-bar{margin-bottom:18px}.crm-workbar{margin-bottom:18px}.production-board-filters{min-width:0;flex-wrap:wrap}.production-board-filters select{min-width:115px;max-width:190px;min-height:32px;padding:6px 9px;font-size:12px}
.production-board-card{cursor:pointer}.production-item-caption{font-size:12px;color:#7791a3;line-height:1.5;margin:6px 0 12px;overflow-wrap:anywhere}.lead-column-spacer{height:12px;flex-shrink:0}
.kanban-edge{top:90px;bottom:auto;height:88px;margin-top:calc((var(--board-edge-height,500px) - 178px)/2);width:32px;border-radius:16px;opacity:.7;background:#99afbf40;font-size:42px}.kanban-edge-left{left:2px}.kanban-edge-right{right:2px}.kanban-edge:hover{background:#829bab80}
@media(max-width:720px){.production-board-filters{gap:10px;width:100%;margin:0}.crm-workbar:has(.production-board-filters){align-items:center}.kanban-edge{width:28px;height:70px;font-size:36px}}
.routing-card{margin:20px 0}.routing-card>summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border:1px solid #e3edf4;border-radius:5px;font-size:13px;font-weight:500;color:#445f73;background:#f5faff}.routing-card>summary:after{content:'⌄';color:#617b8d}.routing-card[open]>summary:after{content:'⌃'}.routing-card .panel-body>p{font-size:12px;color:#8297a5;line-height:1.7;margin:0 0 18px}.routing-card form .btn{margin-top:16px}.routing-card label{display:grid;gap:7px;font-size:12px}.routing-card small{display:block;font-size:11px;color:#8da1ae;line-height:1.7;margin-top:12px}.routing-card details form{display:grid;gap:15px;padding-top:18px}.routing-card .check-option{display:flex;gap:9px;align-items:center}.routing-card textarea{width:100%}
.supply-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:22px}.supply-metrics>div{display:grid;gap:10px;padding:18px;background:#fff;border:1px solid #e3ecf2;border-radius:7px}.supply-metrics small{font-size:11px;color:#8b9daa}.supply-metrics strong{font-weight:400;font-size:23px;color:#426e88}.drawer-body .procurement-heading>div:first-child{display:block}.drawer-body .procurement-heading h1{display:none}.drawer-body .procurement-heading{justify-content:space-between}.drawer-body .procurement-heading p{font-size:12px}.production-actions small{color:#91a3af;line-height:1.7;font-size:11px}
@media(max-width:600px){.supply-metrics{gap:6px}.supply-metrics>div{padding:12px 9px}.supply-metrics strong{font-size:18px}.supply-metrics small{font-size:10px}}
.lead-handoff{margin-top:24px;padding-top:22px;border-top:1px solid #e4e9ed}
.lead-handoff h3{margin:0 0 8px;font-size:15px;font-weight:600;color:#394b59}
.lead-handoff-description,.lead-handoff small{font-size:12px;line-height:1.6;color:#7b8b98}
.lead-handoff-description{margin:0 0 18px}
.lead-handoff .form-grid{grid-template-columns:minmax(0,1fr);gap:16px}
.lead-handoff label{display:grid;gap:7px;font-size:12px;color:#687b89;min-width:0}
.lead-handoff select,.lead-handoff textarea{width:100%;min-width:0;box-sizing:border-box}
.lead-handoff textarea{min-height:86px;resize:vertical}
.lead-handoff .btn{margin-top:18px}
.lead-handoff small{display:block;margin-top:12px}
.lead-handoff .notice{margin-top:12px}

.crm-filter-chips a:hover,.crm-filter-chips a:focus-visible{background:#e0eef6;color:#247496}
.crm-filter-chips a.selected:hover{background:#cfe7f3;color:#256f91}
.production-board-card .kanban-card-title{display:block}
.stage-queued .kanban-column-title{background:#61a9e8}.stage-in_progress .kanban-column-title{background:#46bedb}
.production-stage-summary{display:flex;gap:10px;align-items:center;font-size:11px}
.production-stage-summary .date-overdue{color:#ad6049}
.production-registry th{white-space:nowrap}.production-registry td{vertical-align:middle;padding:18px 16px}.production-registry .order-title{display:block;font-size:14px}.production-registry .record-caption{display:block;margin-top:6px;font-size:10px;line-height:1.5}.production-order-link,.production-operation-link{font-size:12px;text-decoration:none}.production-order-link{font-weight:600}.production-assignee{display:flex;align-items:center;gap:8px;font-size:12px;max-width:210px}.production-assignee>span{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border-radius:50%;background:#e7f4fb;color:#5a9bb9}.production-status{display:inline-block;padding:6px 9px;border-radius:4px;font-size:11px;line-height:1.5;background:#e9f3fc;color:#4b85b4}.production-status-in_progress{background:#e0f5fa;color:#278fa8}.production-status-blocked,.production-status-rework{background:#fff0e7;color:#a76c46}.production-status-review{background:#f0eafa;color:#8770b5}.production-status-ready{background:#fff4dc;color:#a18337}.production-status-accepted{background:#eef6df;color:#6a8d35}
.sheet-operation{display:block;font-size:12px;line-height:1.7;text-decoration:none;margin:7px 0}.sheet-operation small{display:block;color:#8194a3;font-size:10px}
.workspace-priorities{margin-bottom:22px}.workspace-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:24px}.workspace-priorities .feature{padding:20px}.workspace-priorities .number{margin:10px 0;font-size:28px}.workspace-priorities h3{margin:0;font-size:15px;font-weight:500}@media(max-width:800px){.workspace-columns{grid-template-columns:1fr}}.quality-review{padding:14px 0;border-bottom:1px solid #e7edf1}
.calendar-week{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}.calendar-task{display:grid;gap:6px;padding:12px;margin-bottom:10px;background:#eef7fc;border-left:3px solid #39b5db;border-radius:4px;text-decoration:none;font-size:12px}.calendar-task small{font-size:10px;color:#7390a3}.calendar-week .panel{margin:0}.crm-record-main .actions{flex-wrap:wrap}.sheet-operation small{overflow-wrap:anywhere}audio{max-width:100%}
@media print{aside,header,footer,.page-head,.handover-confirmation,.drawer-toolbar,.crm-record-side{display:none!important}.shell{margin:0!important;padding:0!important}main{padding:0!important}.handover-act{box-shadow:none;border:0}.handover-act .table-wrap{overflow:visible}body{background:#fff;color:#111}}
@media(max-width:720px){.crm-command-bar:has(>a.btn.light){display:flex;flex-wrap:wrap;gap:10px}.crm-command-bar:has(>a.btn.light) h1{flex-basis:100%;white-space:normal;font-size:24px}.crm-command-bar:has(>a.btn.light) .btn{font-size:10px;padding:9px 12px;white-space:normal}.workspace-priorities{grid-template-columns:minmax(0,1fr)}.save-bar .btn{white-space:normal}}
.wa-thread{display:grid;gap:12px;margin-top:22px}.wa-message{margin:0;max-width:90%}.wa-outgoing{margin-left:auto;width:90%;background:#f0f9ee}.wa-message .panel-body{padding:20px}.wa-message audio{max-width:100%}[data-wa-qr]{display:block;max-width:100%;height:auto;margin:15px 0}[data-wa-qr][hidden]{display:none}@media(max-width:720px){.wa-message{max-width:100%}.wa-outgoing{width:100%}}
[data-wa-status] .actions{flex-wrap:wrap}[data-wa-status] .actions .btn{white-space:normal;max-width:100%}@media(max-width:720px){[data-wa-status] .actions .btn{width:100%}}
/* Conversation workspace */
.wa-chat-shell{background:#edf2f5;border:1px solid #dfe7ec;border-radius:12px;overflow:hidden;margin-top:18px}.wa-chat-heading{display:flex;align-items:center;gap:10px;background:#fff;padding:16px 22px;border-bottom:1px solid #e5ebef;color:#354657}.wa-chat-heading>span:last-child{color:#8a99a7;font-size:12px;margin-left:auto}.wa-channel-dot{width:10px;height:10px;background:#24bc83;border-radius:50%}.wa-chat-shell .wa-thread{display:flex;flex-direction:column;gap:12px;margin:0;padding:24px;max-height:65vh;min-height:220px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#c4d1dc transparent}.wa-chat-shell .wa-message{width:fit-content;min-width:180px;max-width:78%;border:0;border-radius:12px 12px 12px 3px;background:#fff;box-shadow:0 1px 3px #24394b0a;flex-shrink:0}.wa-chat-shell .wa-outgoing{margin-left:auto;background:#e0f3ff;border-radius:12px 12px 3px 12px}.wa-chat-shell .wa-message .panel-body{padding:13px 16px}.wa-message-meta{font-size:11px;color:#8897a3;line-height:1.6;display:block}.wa-chat-shell .timeline-message{font-size:14px;line-height:1.6;margin:7px 0 2px;white-space:pre-wrap;overflow-wrap:anywhere}.wa-message audio{width:280px;max-width:100%;margin-top:8px}.wa-composer{margin-top:10px;border:1px solid #dfe7ec;border-radius:12px 12px 0 0;box-shadow:none}.wa-composer textarea{border:0!important;box-shadow:none!important;resize:vertical;min-height:78px;padding:10px 0!important;background:transparent!important}.wa-composer .form-grid{gap:8px}.wa-send-bar{margin-top:0;border:1px solid #dfe7ec;border-top:0;border-radius:0 0 12px 12px;box-shadow:none;padding:12px 18px}.wa-send-bar p{font-size:12px;color:#8b98a4}.wa-pagination:empty{display:none}@media(max-width:720px){.wa-chat-shell .wa-thread{padding:12px;max-height:60vh}.wa-chat-shell .wa-message{max-width:95%;min-width:0}.wa-chat-heading{padding:12px}.wa-chat-heading>span:last-child{display:none}.wa-send-bar{flex-wrap:wrap}.wa-send-bar .btn{width:100%}}
.wa-chat-shell .timeline-message{background:transparent;border:0;padding:0}.wa-composer{padding:16px 20px}.wa-composer input[type=file]{font-size:12px;padding:8px;max-width:100%}.wa-send-bar{position:static}.wa-chat-shell .wa-message .date-overdue{font-size:12px}

.production-board-actions{display:grid;gap:10px;margin-top:12px;border-top:1px solid #e5ebef;padding-top:10px}.production-board-actions label{font-size:11px}.production-board-actions select{width:100%;max-width:100%;font-size:12px}.production-board-actions a{font-size:11px}.production-block-reason{font-size:12px;overflow-wrap:anywhere;color:#9b581c}.production-move-dialog{border:1px solid #dfe7ec;border-radius:12px;padding:24px;width:440px;max-width:calc(100vw - 32px);max-height:90vh;overflow:auto}.production-move-dialog::backdrop{background:#172b4d66}.production-move-dialog form{display:grid;gap:16px}.production-move-dialog label{display:grid;gap:6px}.production-move-dialog label:has(input[type=checkbox]){display:flex;align-items:center;gap:10px}.production-move-dialog input,.production-move-dialog textarea{max-width:100%}.production-move-dialog h2{font-size:18px;margin:0}
.wa-routing-form .save-bar{position:static}.wa-routing-form .section-heading{flex-direction:column}.wa-routing-form .form-section>p{padding:0 24px 20px;margin-bottom:0}.wa-routing-form .table-wrap td{white-space:normal;min-width:130px}.wa-routing-form .table-wrap td:first-child,.wa-routing-form .table-wrap td:nth-child(3){min-width:90px}.wa-routing-form input[type=checkbox]{width:18px;height:18px}
.crm-filter-bar{margin:18px 0 22px;position:relative;z-index:8}.crm-filter-form{display:flex;align-items:center;gap:8px;min-height:52px;padding:6px 8px 6px 16px;border:1px solid #d6e3ec;border-radius:7px;background:#fff;box-shadow:0 2px 6px #25466305}.crm-search-icon{font-size:28px;line-height:1;color:#8ca3b2}.crm-filter-form>input[type=search]{flex:1;width:100%;min-width:0;border:0;box-shadow:none;padding:8px;background:transparent;min-height:36px}.crm-filter-dropdown{position:static;padding:0;border:0;flex-shrink:0}.crm-filter-dropdown>summary{list-style:none;display:flex;align-items:center;gap:12px;padding:10px 14px;font-size:13px;color:#718698;border-left:1px solid #e7edf2;font-weight:400}.crm-filter-dropdown>summary::-webkit-details-marker{display:none}.crm-filter-dropdown[open]>summary{color:#009ec6;background:#eef9fd;border-radius:4px}.crm-filter-dropdown>.crm-filter-popup{position:absolute;top:60px;right:0;width:390px;max-width:100%;padding:24px;background:#fff;border:1px solid #dbe6ee;border-radius:8px;box-shadow:0 14px 38px #23465d25;z-index:20;display:grid;gap:20px}.crm-filter-title{font-size:17px;color:#3d5366}.crm-filter-dropdown>.crm-filter-popup>label{display:grid;gap:8px;font-size:12px;color:#8395a3}.crm-filter-dropdown>.crm-filter-popup select{width:100%;min-width:0}.crm-filter-dropdown>.crm-filter-popup>.actions{padding-top:6px;gap:20px}.crm-filter-search{border:0;background:#00afd1;border-radius:5px;color:#fff;min-height:36px;padding:8px 18px;font-weight:600}.crm-filter-presets{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.crm-filter-preset{padding:8px 13px;color:#7b8f9e;font-size:12px;border-radius:5px}.crm-filter-preset:hover{background:#e6f1f8}.crm-filter-preset.is-active{background:#dceff9;color:#168bb9;font-weight:600}.crm-filter-chips{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:12px}.crm-filter-chip{background:#edf6fc;border:1px solid #d3e7f4;padding:6px 10px;border-radius:4px;font-size:12px;color:#51839c;max-width:100%;overflow-wrap:anywhere}.crm-filter-chip span{padding-left:8px;color:#87a7ba}.crm-filter-reset{font-size:11px;color:#94a5b1;padding:6px}.crm-filter-form:focus-within{border-color:#71c4e2}@media(max-width:600px){.crm-filter-form{gap:2px;padding-left:10px}.crm-filter-form>input[type=search]{font-size:12px;padding:8px 4px}.crm-filter-dropdown>summary{padding:10px 8px;font-size:12px;gap:4px}.crm-filter-search{padding:8px 10px;font-size:11px}.crm-filter-dropdown>.crm-filter-popup{padding:20px;top:58px}.crm-search-icon{font-size:23px}.crm-filter-presets{gap:2px}.crm-filter-preset{padding:8px 10px}}
.crm-filter-form>input[name=search]{border:0!important;box-shadow:none!important;background:transparent!important;min-height:36px!important}
.knowledge-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:15px;max-width:85ch}
.knowledge-text{color:#334f61}
@media(max-width:720px){.inventory-command-bar{display:flex;flex-wrap:wrap;align-items:flex-start}.inventory-command-bar h1{flex-basis:100%;white-space:normal;overflow-wrap:anywhere}.inventory-command-bar>.btn{white-space:normal;max-width:100%}}
.form-grid label input[type=checkbox],.form-grid label input[type=radio]{width:18px;height:18px;min-width:18px;flex-shrink:0;vertical-align:middle;accent-color:#109fc7}.form-grid label:has(>input[type=checkbox]),.form-grid label:has(>input[type=radio]){display:flex;align-items:flex-start;gap:10px;line-height:1.6}

.knowledge-files{display:grid;gap:12px;padding-left:20px}.knowledge-files li{min-width:0;overflow-wrap:anywhere}.knowledge-files .record-caption{display:block;margin-top:4px}.employee-option span{min-width:0;overflow-wrap:anywhere}

.drawer-body .page-head .actions>.btn.light[data-drawer-navigate]{display:inline-flex}.drawer-body .page-head .actions:has([data-drawer-navigate]){flex-wrap:wrap}

.cash-book-form>label.check{display:flex;align-items:flex-start;gap:9px;line-height:1.6;margin-top:18px}.cash-book-form>label.check input{flex:0 0 18px;width:18px;height:18px;margin:2px 0 0}.cash-book-form>button{margin-top:14px}

.knowledge-file-options{padding:20px 24px 0}@media(max-width:720px){.knowledge-file-options{padding:18px 19px 0}}

.cash-book-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.cash-book-totals .panel{margin:0}.cash-book-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin-bottom:20px}.cash-book-filters label{display:flex;flex-direction:column;gap:6px;min-width:0}.cash-book-filters input{min-width:0}@media(max-width:1100px){.cash-book-totals{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.cash-book-totals{grid-template-columns:minmax(0,1fr)}.cash-book-filters label{flex:1 1 120px}.cash-book-filters input{width:100%}}@media(max-width:360px){.cash-book-form .save-bar{position:static;display:block}.cash-book-form .save-bar p{font-size:12px;margin:0 0 12px}.cash-book-form .save-bar .btn{white-space:normal;width:100%}}

.payroll-page .back-link{display:inline-block;margin:0 0 18px}.payroll-page .form-section{padding:22px}.payroll-page .form-section .form-grid{padding:0;margin-block:18px}.payroll-page .panel>h2,.payroll-page .panel>.record-caption{margin:18px 22px}.payroll-page .check-label{display:flex;align-items:flex-start;gap:9px;line-height:1.6;margin-top:18px}.payroll-page .check-label input{flex:0 0 18px;width:18px;height:18px;margin:2px 0 0}.payroll-page form>button{margin-top:14px}.payroll-page .btn{white-space:normal;max-width:100%}.payroll-page dd{margin:4px 0 12px;overflow-wrap:anywhere}@media(max-width:600px){.payroll-page .form-section{padding:18px}.payroll-page .form-section .form-section{padding:14px}}

@media(max-width:600px){.approval-queue table{display:block;min-width:0;width:100%}.approval-queue thead{display:none}.approval-queue tbody{display:block}.approval-queue tr{display:block;padding:18px;border-bottom:1px solid #e1e7ec}.approval-queue tr:last-child{border-bottom:0}.approval-queue td{display:block;width:100%;max-width:none;padding:0;border:0;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box}.approval-queue td:first-child{font-weight:600}.approval-queue td+td{margin-top:12px}.approval-queue td .btn{display:inline-flex}}

.stocktake-card h2{overflow-wrap:anywhere}.stocktake-card .form-grid{margin-top:22px}.stocktake-apply>.btn{margin-top:16px}

.category-clearances .form-section{padding:22px}.category-clearances .form-section .form-grid{padding:0;margin-block:18px}.category-clearances .check-label{display:flex;align-items:flex-start;gap:9px;line-height:1.6;margin:12px 0}.category-clearances .check-label input{flex:0 0 18px;width:18px;height:18px;margin:2px 0 0}.category-clearances form>.btn{margin-top:14px;white-space:normal;max-width:100%}@media(max-width:360px){[data-stocktake-counts]>.save-bar{position:static}.category-clearances .form-section{padding:18px}}

.onboarding-page .page-head h1{white-space:normal;overflow-wrap:anywhere}.onboarding-page .panel-body{padding:22px}.onboarding-page .form-grid{padding:0;margin:16px 0}.onboarding-page label{display:grid;gap:8px;font-size:13px;min-width:0}.onboarding-page label.employee-option{display:flex;align-items:flex-start;gap:10px;line-height:1.6;margin:14px 0}.onboarding-page .employee-option input{flex:0 0 18px;width:18px;height:18px;margin:3px 0 0}.onboarding-page textarea{width:100%;min-height:100px}.onboarding-page input,.onboarding-page select,.onboarding-page textarea{max-width:100%;min-width:0}.onboarding-page input[type=file]{width:100%;font-size:12px}.onboarding-page form>.btn{margin-top:14px}.onboarding-page .btn{white-space:normal;max-width:100%}.onboarding-page p,.onboarding-page h2,.onboarding-page h3,.onboarding-page summary{overflow-wrap:anywhere}.onboarding-links{display:flex;gap:16px;flex-wrap:wrap;margin-top:18px}.onboarding-details{margin:20px 0;padding:16px;border:1px solid #dce7ed;border-radius:8px}.onboarding-details>summary,.onboarding-history-entry>summary{cursor:pointer;line-height:1.6}.onboarding-details[open]>summary{margin-bottom:16px}.onboarding-practice{padding:18px 0;border-top:1px solid #e1eaf0}.onboarding-practice h3{margin:0 0 12px;font-size:16px}.onboarding-practice details{margin-top:14px}.onboarding-topic-list{padding-left:20px}.onboarding-topic-list li{margin-bottom:20px}.onboarding-history-entry{padding:14px 0;border-top:1px solid #e1eaf0}.onboarding-page .passport-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.onboarding-page .passport-grid dd{margin:6px 0 0;overflow-wrap:anywhere}
@media(max-width:900px){.onboarding-page .passport-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.onboarding-page .panel-body{padding:18px}.onboarding-details{padding:12px}.onboarding-page .passport-grid{grid-template-columns:minmax(0,1fr)}.onboarding-page .form-grid{grid-template-columns:minmax(0,1fr)}.onboarding-page .save-bar{position:static}.onboarding-links{gap:10px 16px}}

/* Grouped, permission-filtered application navigation. */
.skip-navigation{position:fixed;left:12px;top:-80px;z-index:200;padding:12px 18px;background:#fff;color:#164b6c;border:2px solid #00a9d4;border-radius:6px}.skip-navigation:focus{top:12px}.workspace-sidebar{overflow:hidden;padding-bottom:0}.sidebar-top{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px}.sidebar-panel{min-height:0;overflow-y:auto;overscroll-behavior:contain;flex:1;scrollbar-width:thin;scrollbar-color:#79aeca transparent}.workspace-sidebar .workspace{margin:18px 0 14px}.workspace-navigation{display:grid;gap:7px;overflow:visible;margin:0;padding:0}.workspace-navigation .navigation-group{border:0;padding:0;min-width:0}.navigation-group>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;color:#b5d0e0;font-size:12px;font-weight:600;list-style:none;border-radius:5px;min-height:44px}.navigation-group>summary::-webkit-details-marker{display:none}.navigation-group>summary:hover,.navigation-group>summary.contains-active{background:#ffffff0d;color:#fff}.navigation-chevron{font-size:24px;font-weight:400;line-height:16px;transition:transform .15s}.navigation-group[open]>summary .navigation-chevron{transform:rotate(90deg)}.navigation-group-links{display:grid;gap:3px;padding:3px 0 8px}.workspace-navigation a{font-size:13px;min-height:43px;padding:10px 12px;white-space:normal;overflow-wrap:anywhere;gap:10px}.workspace-navigation a>span:not(.nav-icon){min-width:0}.navigation-count{margin-left:auto;background:#fff2;border-radius:12px;min-width:20px;padding:2px 5px;font-size:10px;text-align:center}.workspace-sidebar :focus-visible{outline:2px solid #78e2ff;outline-offset:-2px}.navigation-toggle,.sidebar-panel-heading{display:none}.navigation-backdrop[hidden]{display:none!important}.workspace-sidebar .aside-bottom{margin-top:18px;padding-bottom:18px}
@media(max-width:720px){.workspace-sidebar{position:relative;width:100%;padding:12px 16px}.workspace-sidebar .brand{padding:0}.workspace-sidebar .sidebar-panel{overflow:visible}.workspace-sidebar .workspace{display:block;margin-top:14px}.workspace-sidebar .aside-bottom{display:block}.workspace-sidebar .workspace-navigation{display:grid;overflow:visible;margin:0;gap:5px}.workspace-sidebar .navigation-group-links{display:grid}.workspace-sidebar .navigation-group a{font-size:14px;min-height:44px;white-space:normal;flex-shrink:1}.workspace-sidebar .navigation-group a.active{box-shadow:inset 3px 0 #63dbff}.workspace-sidebar .navigation-group>summary{font-size:14px;padding:13px 12px}.workspace-sidebar.navigation-ready .navigation-toggle{display:inline-flex;align-items:center;gap:8px;border:1px solid #91d2ec77;border-radius:6px;background:#ffffff12;color:#fff;padding:8px 12px;min-height:42px;font:inherit;flex-shrink:0}.navigation-toggle>span{font-size:19px}.workspace-sidebar.navigation-ready .sidebar-panel{display:none}.workspace-sidebar.navigation-open .sidebar-panel{display:block;position:fixed;inset:0 auto 0 0;width:min(360px,calc(100vw - 36px));height:100vh;height:100dvh;z-index:101;overflow-y:auto;overscroll-behavior:contain;padding:18px 14px;background:linear-gradient(170deg,#17658b 0%,#194b70 60%,#203f62 100%);box-shadow:12px 0 35px #102d4a55}.workspace-sidebar.navigation-open .sidebar-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 6px 10px}.sidebar-panel-heading b{font-size:17px}.sidebar-panel-heading button{background:#ffffff12;border:1px solid #91d2ec77;color:#fff;border-radius:5px;font-size:26px;line-height:1;min-width:42px;min-height:42px}.navigation-backdrop{display:block;position:fixed;inset:0;z-index:100;background:#102d4a99;border:0;padding:0;width:100%;height:100%;cursor:default}body.navigation-open{overflow:hidden}.workspace-sidebar.navigation-open .sidebar-panel .nav-icon,.workspace-sidebar.navigation-open .sidebar-panel .nav-icon svg{width:19px;height:19px;flex-basis:19px}}

.telegram-deliveries-page .filters{gap:12px;align-items:flex-end;margin-bottom:20px}.telegram-deliveries-page .filters label{display:grid;gap:8px;min-width:0;flex:1 1 180px}.telegram-deliveries-page .filters select{width:100%;min-width:0;max-width:100%}.telegram-deliveries-page .panel-head h2,.telegram-deliveries-page p{overflow-wrap:anywhere}.telegram-deliveries-page .panel-body form+form{margin-top:12px}.telegram-deliveries-page .check-option{display:flex;gap:10px;align-items:flex-start;margin-bottom:12px;line-height:1.6}.telegram-deliveries-page .check-option input{flex:0 0 18px;width:18px;height:18px;margin-top:3px}.overtime-page form{display:flex;flex-direction:column;align-items:flex-start;gap:14px}.overtime-page form label{display:grid;gap:8px;width:100%;font-size:13px;min-width:0}.overtime-page input,.overtime-page textarea{width:100%;max-width:100%;min-width:0}.overtime-page p,.overtime-page h2{overflow-wrap:anywhere}.overtime-page .btn,.telegram-deliveries-page .btn{white-space:normal;max-width:100%}@media(max-width:600px){.overtime-page .page-head,.telegram-deliveries-page .page-head{flex-wrap:wrap}.overtime-page .page-head h1,.telegram-deliveries-page .page-head h1{overflow-wrap:anywhere;white-space:normal}.telegram-deliveries-page .filters{display:grid;grid-template-columns:minmax(0,1fr)}}

.production-actions form{min-width:0}.production-actions input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.production-actions select{width:100%;max-width:100%;min-width:0}.production-actions .btn{white-space:normal;max-width:100%}.inventory-lot-page details.form-section{padding:22px}.inventory-lot-page details.form-section .form-grid{padding:0;margin-block:18px}.inventory-lot-page details.form-section .btn{white-space:normal;max-width:100%}.payroll-page form>label:not(.check-label){display:grid;gap:8px;width:100%;min-width:0}.payroll-page form>label textarea{width:100%;max-width:100%}.economics-page .form-section{padding:22px}.economics-page .form-section .form-grid{padding:0;margin-block:18px}.economics-page .form-section form{display:grid;gap:14px;margin-top:18px}.economics-page .form-section form label{display:grid;gap:8px}.economics-page .form-section form input,.economics-page .form-section form select,.economics-page .form-section form textarea{max-width:100%;min-width:0}.economics-page input[type=checkbox]{width:18px;height:18px;vertical-align:middle}.economics-page .btn{white-space:normal;max-width:100%}.economics-page form label:has(input[type=checkbox]){line-height:1.7}@media(max-width:600px){.inventory-lot-page details.form-section,.economics-page .form-section{padding:18px}}

.windows-page .form-section{padding:22px}.windows-page .form-section .form-grid{padding:0;margin-block:18px}.windows-page details form>.form-grid{margin-block:18px}.windows-page .btn{white-space:normal;max-width:100%}.windows-page .page-head h1{white-space:normal}@media(max-width:600px){.windows-page .form-section{padding:18px}.windows-page .page-head{flex-wrap:wrap}}

.installation-page .back-link{display:inline-block;margin-bottom:18px}.installation-page .panel-body{padding:22px}.installation-page .form-grid{padding:0;gap:20px;margin:18px 0}.installation-page form{display:grid;gap:16px}.installation-page label{display:grid;gap:8px;min-width:0;font-size:13px}.installation-page form input,.installation-page form select,.installation-page form textarea{width:100%;max-width:100%;min-width:0}.installation-page label.check-option{display:flex;align-items:flex-start;gap:10px;line-height:1.7}.installation-page .check-option input{flex:0 0 18px;width:18px;height:18px;margin:4px 0 0}.installation-page .btn{white-space:normal;max-width:100%;justify-self:start}.installation-page .installation-details{padding:22px}.installation-page .installation-details[open]>summary{margin-bottom:18px}.installation-page p,.installation-page h1,.installation-page h2,.installation-page li{overflow-wrap:anywhere}.installation-page .installation-history{padding-block:16px}.installation-page small{color:#80929f;line-height:1.7}.installation-page input[type=file]{font-size:12px}@media(max-width:600px){.installation-page .panel-body,.installation-page .installation-details{padding:18px}.installation-page .record-grid{grid-template-columns:minmax(0,1fr)}}

.sourcing-page form label{display:grid;gap:8px;min-width:0;font-size:13px;margin-bottom:16px}.sourcing-page form input:not([type=checkbox]):not([type=hidden]),.sourcing-page form select,.sourcing-page form textarea{width:100%;max-width:100%;min-width:0}.sourcing-page form label.check-option{display:flex;align-items:flex-start;gap:10px;line-height:1.7}.sourcing-page .check-option input{flex:0 0 18px;width:18px;height:18px;margin:3px 0 0}.sourcing-page form>.btn{margin-top:4px}.sourcing-page .btn{max-width:100%;white-space:normal}.sourcing-page details[open]>summary{margin-bottom:16px}.sourcing-page details form{margin-top:18px}.sourcing-page h1,.sourcing-page h2,.sourcing-page p,.sourcing-page a,.sourcing-page summary{overflow-wrap:anywhere}.sourcing-page input[type=file]{font-size:12px}.production-rate-selection>.check-label{display:flex;align-items:flex-start;gap:10px;line-height:1.7;padding:0 22px 22px;font-size:13px}.production-rate-selection>.check-label input{flex:0 0 18px;width:18px;height:18px;margin:3px 0 0}.production-rate-selection .form-grid{padding-bottom:18px}@media(max-width:600px){.sourcing-page .save-bar{position:static;display:grid;gap:12px}.sourcing-page .save-bar .btn{width:100%}.sourcing-page .page-head{flex-wrap:wrap}.sourcing-page .record-grid{grid-template-columns:minmax(0,1fr)}}
.panel form:has(>.production-rate-selection)>label{display:grid;gap:8px;width:100%;min-width:0;font-size:13px}.panel form:has(>.production-rate-selection)>label textarea{width:100%;max-width:100%;min-width:0}.panel form:has(>.production-rate-selection)>.btn{margin-top:14px;max-width:100%;white-space:normal}
.form-section label.check-label:has(input[name="technical_data[required_operations][]"]){display:flex;align-items:center;gap:10px;min-height:44px;margin:0;line-height:1.6}.form-section label.check-label input[name="technical_data[required_operations][]"]{flex:0 0 18px;width:18px;height:18px;margin:0}

.field-visit-page .back-link{display:inline-block;margin-bottom:18px}.field-visit-page .panel-body,.field-visit-page .field-visit-details{padding:22px}.field-visit-page form{display:grid;gap:16px}.field-visit-page label{display:grid;gap:8px;font-size:13px;min-width:0}.field-visit-page input,.field-visit-page select,.field-visit-page textarea{width:100%;max-width:100%;min-width:0}.field-visit-page .form-grid{padding:0;margin-block:16px;gap:18px}.field-visit-page .check-option{display:flex;align-items:flex-start;gap:10px;min-height:44px;line-height:1.7;margin-block:6px}.field-visit-page .check-option input{flex:0 0 18px;width:18px;height:18px;margin:4px 0 0}.field-visit-page fieldset{border:1px solid #dce7ed;border-radius:8px;min-width:0;padding:14px}.field-visit-page legend{font-size:14px;padding:0 8px}.field-visit-check{display:grid;gap:14px;padding:16px 0;border-bottom:1px solid #dce7ed}.field-visit-check:last-child{border:0}.field-visit-page .field-visit-details[open]>summary{margin-bottom:18px}.field-visit-page .field-visit-report{padding-block:20px;border-bottom:1px solid #dce7ed}.field-visit-report form{margin-top:20px}.field-visit-page .btn{white-space:normal;max-width:100%;justify-self:start}.field-visit-page p,.field-visit-page h1,.field-visit-page h2,.field-visit-page h3,.field-visit-page summary,.field-visit-page a,.field-visit-page li{overflow-wrap:anywhere}.field-visit-page input[type=file]{font-size:12px}.field-visit-page small{line-height:1.7;color:#80929f}@media(max-width:600px){.field-visit-page .panel-body,.field-visit-page .field-visit-details{padding:18px}.field-visit-page .record-grid{grid-template-columns:minmax(0,1fr)}}

.client-merge-page form label{display:grid;gap:8px;font-size:13px;min-width:0;margin-bottom:16px}.client-merge-page input:not([type=hidden]):not([type=radio]):not([type=checkbox]),.client-merge-page select,.client-merge-page textarea{width:100%;min-width:0;max-width:100%}.client-merge-page fieldset{border:1px solid #dce7ed;border-radius:8px;min-width:0;padding:14px;margin-bottom:18px}.client-merge-page legend{padding:0 6px;font-size:13px}.client-merge-page form label.check-option{display:flex;align-items:flex-start;gap:10px;line-height:1.7;min-height:44px;margin:0;padding-block:8px}.client-merge-page .check-option input{flex:0 0 18px;width:18px;height:18px;margin:3px 0 0}.client-merge-page .btn{white-space:normal;max-width:100%;margin-top:12px}.client-merge-page .check-option span,.client-merge-page p,.client-merge-page h1{overflow-wrap:anywhere}.lead-follow-up .form-grid{padding:0;margin-block:18px}.lead-follow-up details{margin-block:20px}.lead-follow-up form>label{display:grid;gap:8px;width:100%;min-width:0;margin-block:18px}.lead-follow-up textarea{width:100%;min-width:0;max-width:100%}.lead-follow-up .btn{white-space:normal;max-width:100%}@media(max-width:600px){.client-merge-page .page-head{flex-wrap:wrap}.client-merge-page h1{white-space:normal}}

.warranty-page .panel-body,.warranty-page .warranty-details{padding:22px}.warranty-page .back-link{display:inline-block;margin-bottom:18px}.warranty-page form{display:grid;gap:16px}.warranty-page label{display:grid;gap:8px;font-size:13px;min-width:0}.warranty-page input,.warranty-page select,.warranty-page textarea{width:100%;max-width:100%;min-width:0}.warranty-page .check-option{display:flex;align-items:flex-start;gap:10px;line-height:1.7;min-height:44px}.warranty-page .check-option input{flex:0 0 18px;width:18px;height:18px;margin:3px 0 0}.warranty-page fieldset{border:1px solid #dce7ed;border-radius:8px;padding:14px;min-width:0}.warranty-page legend{padding:0 6px;font-size:13px}.warranty-page details[open]>summary{margin-bottom:18px}.warranty-page details form{margin-top:18px}.warranty-event{border-top:1px solid #dce7ed;padding-block:20px}.warranty-page .btn{white-space:normal;max-width:100%;justify-self:start}.warranty-page p,.warranty-page h1,.warranty-page h2,.warranty-page h3,.warranty-page summary,.warranty-page a{overflow-wrap:anywhere}.warranty-page input[type=file]{font-size:12px}.warranty-page .warranty-filters{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end;margin-bottom:22px}.warranty-filters label{flex:1 1 180px}.warranty-page small{color:#80929f;line-height:1.7}@media(max-width:600px){.warranty-page .panel-body,.warranty-page .warranty-details{padding:18px}.warranty-page .warranty-filters{display:grid;grid-template-columns:minmax(0,1fr)}}

.max-expenses-page .panel-body{padding:22px}.max-expenses-page .form-grid:not(.panel-body){padding:0;margin-block:18px}.max-expenses-page form label{display:grid;gap:8px;font-size:13px;min-width:0;width:100%}.max-expenses-page input:not([type=checkbox]):not([type=hidden]),.max-expenses-page select,.max-expenses-page textarea{width:100%;max-width:100%;min-width:0}.max-expenses-page form label.check{display:flex;align-items:flex-start;gap:10px;min-height:44px;line-height:1.7;padding-block:6px}.max-expenses-page .check input[type=checkbox]{flex:0 0 18px;width:18px;height:18px;margin:3px 0 0}.max-expenses-page details{margin-block:18px}.max-expenses-page details[open]>summary{margin-bottom:16px}.max-expenses-page details form{display:grid;gap:16px}.max-expenses-page .btn{white-space:normal;max-width:100%;justify-self:start}.max-expenses-page h1,.max-expenses-page h2,.max-expenses-page p,.max-expenses-page a,.max-expenses-page summary,.max-expenses-page small{overflow-wrap:anywhere}.max-expenses-page small{line-height:1.7}.max-expenses-page input[type=file]{font-size:12px}@media(max-width:600px){.max-expenses-page .panel-body{padding:18px}.max-expenses-page .save-bar{position:static;display:grid;gap:12px}.max-expenses-page .save-bar .btn{width:100%}.max-expenses-page .page-head{flex-wrap:wrap}.max-expenses-page h1{white-space:normal}}
.order-resources{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin-top:22px;border:1px solid #e4edf3;border-radius:8px;overflow:hidden;background:#fff}.order-resource{display:flex;align-items:center;gap:12px;min-width:0;padding:16px;color:#36546a;text-decoration:none;border-bottom:1px solid #edf2f6;transition:background .15s}.order-resource:nth-child(odd){border-right:1px solid #edf2f6}.order-resource:hover{background:#f0f9fd}.order-resource:focus-visible{outline:2px solid #259cc7;outline-offset:-3px}.order-resource-icon{width:34px;height:34px;display:grid;place-items:center;flex-shrink:0;background:#edf7fc;border-radius:8px;color:#4296b6}.order-resource-icon svg{width:19px;height:19px}.order-resource b{display:block;font-size:13px;font-weight:500;line-height:1.5}.order-resource small{display:block;font-size:11px;color:#8295a4;line-height:1.6}.order-resource-arrow{margin-left:auto;color:#8aa8bb;font-size:22px}.order-add-task{display:inline-flex;align-items:center;gap:6px;margin-top:14px;font-size:12px;font-weight:500;color:#2583a5;text-decoration:none}.order-add-task:hover{text-decoration:underline}@media(max-width:540px){.order-resources{grid-template-columns:1fr}.order-resource:nth-child(odd){border-right:0}}
@media print{body.drawer-open>.shell,body.drawer-open>.drawer-toast{display:none!important}body.drawer-open .crm-drawer{position:static!important;display:block!important;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;margin:0!important;padding:0!important;overflow:visible!important;border:0!important;box-shadow:none!important}body.drawer-open .drawer-pages,body.drawer-open .drawer-frame:not([hidden]),body.drawer-open .drawer-body{position:static!important;height:auto!important;overflow:visible!important}body.drawer-open .drawer-frame[hidden]{display:none!important}}
.drawer-body>.handover-page-head{display:flex!important;justify-content:flex-end}.drawer-body>.handover-page-head>div:first-child{display:none}.drawer-body>.handover-page-head .actions{display:flex;gap:8px;flex-wrap:wrap}@media print{.drawer-body>.handover-page-head{display:none!important}}
.drawer-body>.handover-page-head .actions>button.btn.light{display:inline-flex}
/* Content navigation keeps its own typography and contrast in every state. */
.order-resources .order-resource,.order-resources .order-resource:hover,.order-resources .order-resource:focus-visible,.order-resources .order-resource:active{color:#36546a}.order-resources .order-resource:hover,.order-resources .order-resource:focus-visible{background:#eaf5fb}.order-resource small{color:#526b7d}.order-resource-arrow{color:#617e92}.order-add-task:hover,.order-add-task:focus-visible{color:#176382}
body,button,input,select,textarea{font-family:"Segoe UI",Arial,sans-serif}.order-resource b{font-size:14px;font-weight:600}.order-resource small{font-size:12px;line-height:1.5}
/* Readable supporting text in CRM cards and forms. */
.record-caption,.record-code,.contact-subline,.record-note>b,.form-grid small,.routing-card small{font-size:12px;color:#607687}.record-grid dt{color:#657887}.routing-card .panel-body>p{font-size:13px;color:#526b7d}.order-tabs button{font-size:13px}.record-note p{color:#526b7d}.order-add-task{font-size:13px}
.knowledge-catalog{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:18px;margin:22px 0}.knowledge-card{display:flex;flex-direction:column;min-width:0;padding:24px;border:1px solid #dfe8ef;border-radius:10px;background:#fff;color:#354f62;text-decoration:none;transition:border-color .15s,box-shadow .15s}.knowledge-card:hover,.knowledge-card:focus-visible{color:#243f53;border-color:#64acc7;box-shadow:0 5px 20px #274c7010}.knowledge-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.knowledge-card-icon{display:grid;place-items:center;width:42px;height:42px;background:#edf7fc;color:#3585a5;border-radius:10px}.knowledge-card-icon svg{width:23px;height:23px}.knowledge-category{color:#657d8d;font-size:12px;line-height:1.5}.knowledge-card h2{font-size:18px;line-height:1.4;margin:7px 0 12px;color:inherit;overflow-wrap:anywhere}.knowledge-card p{font-size:13px;color:#597080;line-height:1.7;margin:0 0 22px}.knowledge-card-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:auto;padding-top:16px;border-top:1px solid #edf1f5;font-size:12px;color:#627989}.knowledge-empty{grid-column:1/-1}.knowledge-reader{max-width:1000px;margin:0 auto}.knowledge-reader .page-head h1{font-size:28px;line-height:1.35}.knowledge-reader .knowledge-text{font-size:15px;line-height:1.85;color:#354b5c;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:28px;max-width:80ch}.knowledge-reader .passport-grid{padding-bottom:22px;border-bottom:1px solid #e7edf2;gap:20px}.knowledge-reader .passport-grid dt{font-size:12px;color:#607687}.knowledge-reader .passport-grid dd{font-size:14px;line-height:1.6}.knowledge-draft-notice{padding:18px 22px;border:1px solid #e6d6ac;border-radius:8px;background:#fff9e9;color:#735b28;margin-bottom:20px}.knowledge-draft-notice p{color:#735b28;font-size:13px;margin:6px 0 0}.knowledge-audience{font-size:12px;color:#607687;line-height:1.7;margin:0 0 18px}.knowledge-sources .panel-head h2{font-size:15px}.knowledge-reader .actions{flex-wrap:wrap}
.workspace-navigation>a{min-height:36px;padding:8px 12px;font-size:13px}.workspace-navigation .navigation-more{margin-top:6px}.workspace-navigation .navigation-more>summary{padding:9px 12px}.workspace-navigation .navigation-settings{border-top:1px solid #ffffff20;border-radius:0;margin-top:10px;font-size:12px;color:#b9d9e9}.workspace-sidebar .workspace{margin:16px 0 12px;padding:10px 12px}.navigation-editor{max-width:850px}.navigation-editor-row{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid #edf1f5}.navigation-editor-row label{display:flex;align-items:center;gap:10px;flex:1;min-width:0;color:#354f62;font-size:14px}.navigation-editor-row label small{display:block;font-size:11px;color:#607687}.navigation-editor-row .nav-icon{color:#3684a4}.navigation-editor-row button{border:1px solid #d5e1e9;border-radius:5px;background:white;color:#42677f;min-width:34px;min-height:34px}.navigation-drag{cursor:grab;font-size:22px;color:#849ba9}.navigation-editor .actions{flex-wrap:wrap}.navigation-company{margin-top:24px}.navigation-editor-row:focus-within{background:#f2f9fc}
