:root{color-scheme:dark;--system-panel:#182832;--system-border:#314652}body{background:#0c171d;color:#dce8ee;font-family:Arial,sans-serif}body.system-page{margin:0;padding-top:74px}.system-main{max-width:1600px;margin:0 auto;padding:22px 28px}.system-heading{margin-bottom:20px}.system-heading h1{font-size:26px;margin:0 0 8px}.system-heading p,.hint{color:#a7bdca}.system-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 24px}.system-tabs a{background:#1b303e;padding:11px 15px;border:1px solid #355566;border-radius:7px;text-decoration:none;color:#dce8ee;font-size:14px}.system-tabs [aria-current=page]{background:#2b5266;border-color:#72b3cd}.system-preview-banner{position:relative;padding:9px 16px;text-align:center;background:#322d19;color:#eedc9b;font-size:13px;border-bottom:1px solid #685b2c}.system-login{padding-top:0!important;min-height:100vh;display:grid;align-content:center}.system-login .system-preview-banner{position:absolute;top:0;left:0;right:0}.system-login-card{width:min(450px,calc(100% - 36px));margin:70px auto;padding:32px;background:#172832;border:1px solid #35505d;border-radius:14px}.system-login-logo{display:block;width:190px;max-height:85px;object-fit:contain;margin:0 0 25px}.system-login-card h1{font-size:28px}.system-login-card label{display:block;margin:18px 0}.system-login-card input{width:100%;box-sizing:border-box}.system-login-card button{width:100%;margin-top:8px}.company-form{display:grid;gap:18px}.company-form .admin-card{margin:0}.company-form .field-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}.company-form input{box-sizing:border-box;width:100%;font-size:15px}.company-form .check-row input{width:auto}.company-logo{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-top:20px}.company-logo img{width:180px;max-height:85px;object-fit:contain}.company-bank{border:1px solid #35515f;border-radius:8px;padding:16px;margin-bottom:15px}.company-bank legend{padding:0 8px;color:#9dbbcb}.company-save{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.system-page .admin-tabs{display:none}.system-page .admin-summary{margin:0 0 20px}.lbw-home img{max-width:150px;max-height:55px;object-fit:contain;vertical-align:middle}.lbw-company{font-size:11px;display:block;font-weight:400;margin-top:4px;color:#9bb5c5}.lb-sidebar .lbw-user{display:grid;gap:9px}.lbw-account-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.lbw-account-actions form{margin:0}.lbw-account-actions a,.lbw-account-actions button{font-size:13px;color:#b7cddb}.system-readonly-profile{max-width:760px}.system-main .content{max-width:none}
@media(max-width:700px){.system-main{padding:16px 12px}.system-tabs a{flex:1 1 145px;text-align:center}.company-form .field-grid{grid-template-columns:1fr}.system-login-card{padding:23px}.system-preview-banner{font-size:12px}.company-save button{width:100%}}
@media print{.system-preview-banner,.system-tabs,.system-heading{display:none}body.system-page{padding:0}.system-main{padding:0}}
/* The original portal admin was light; keep the standalone admin consistent. */
.system-page{--ink:#dce8ee;--muted:#a7bdca;--line:#344d5c;--dark:#0c171d}
.system-page .admin-card,.system-page .admin-summary>div,.system-page .access-fieldset,.system-page .admin-filters{background:#182a35;border-color:#344d5c;color:#dce8ee}
.system-page input,.system-page select,.system-page textarea{background:#203746;color:#e2eff5;border:1px solid #486a7d;border-radius:6px}
.system-page label,.system-page .check-row,.system-page .company-form label,.system-page th,.system-page td{color:#dce8ee}
.system-page input:focus-visible,.system-page select:focus-visible{outline:2px solid #8acbe5;outline-offset:2px}
.system-page .check-row{background:#1b303d}.system-page .table-wrap,.system-page .table-wrap table{background:#182a35;color:#dce8ee}.system-page th{background:#213b4b}.system-page tr:hover td{background:#203744}.system-page .table-wrap th,.system-page .table-wrap td{border-color:#35515f}
.system-page .soft-link,.system-page .admin-shell .button-secondary{color:#b9dcec}.system-page .notice-success{background:#183b31;color:#b0e4c7;border-color:#3a725a}.system-page .notice-error{background:#462b23;color:#f1c9b7;border-color:#986049}.system-page .admin-card h2{font-size:22px}.system-page .company-form label{font-size:14px}.system-page .field-grid small,.system-page .hint{font-size:13px}
.lb-workspace .lbw-home{flex-direction:column!important;align-items:flex-start!important;white-space:normal!important;gap:3px!important;max-width:100%!important}.lbw-company{white-space:normal;overflow-wrap:anywhere;line-height:1.4}.lb-sidebar .lbw-home img{max-width:165px;max-height:46px}
html.lb-sidebar .system-page{padding-top:0!important}
.company-document-logo img{background:#fff;padding:10px;border-radius:6px;box-sizing:content-box}
body.system-page{padding-top:0}
@media screen{
 html.lb-unified body:has(.cp-bar){background:#0c171d!important;color:#dce8ee!important}
 html.lb-unified body:has(.cp-bar) .wrap>header.app{color:#dce8ee}
 html.lb-unified body:has(.cp-bar) .wrap>header.app h1{color:#dce8ee}
 html.lb-unified body:has(.cp-bar) .wrap>.toolbar{background:#182a35;border-color:#344d5c;color:#dce8ee}
 html.lb-unified body:has(.cp-bar) .wrap>.toolbar .drop{background:#203746;border-color:#486a7d;color:#dce8ee}
 html.lb-unified body:has(.cp-bar) .wrap>.toolbar .drop small{color:#a7bdca}
 html.lb-unified body:has(.cp-bar) #sheet{color:#111;background:#fff}
 html.lb-unified body:has(.cp-bar) .wrap>p{color:#a7bdca}
 .lb-workspace .lbw-account-actions button{background:#203747!important;color:#dce8ee!important;border:1px solid #476071!important;border-radius:6px;padding:7px 11px!important;cursor:pointer}
}


/* Shared application surfaces. Print documents and engineering canvases keep their own styles. */
@media screen{
 html.lb-unified body{background:#0c171d;color:#dce8ee;--bg:#0c171d;--panel:#182a35;--line:#344d5c;--ink:#dce8ee;--muted:#a7bdca;--accent:#80c6d9}
 html.lb-unified body[data-lb-module]:not([data-lb-module="schemeditor"]){font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
 html.lb-unified body[data-lb-module="offers"]>.portal-return,
 html.lb-unified body[data-lb-module="clients"]>header.top,
 html.lb-unified body[data-lb-module="registers"]>header{display:none!important}
 html.lb-unified body[data-lb-module="crm"]>main,
 html.lb-unified body[data-lb-module="clients"]>main,
 html.lb-unified body[data-lb-module="registers"]>main{max-width:1600px;margin:0 auto;padding:22px 24px;min-width:0}
 html.lb-unified :is(.crm-heading,.heading) h1{font-size:26px;line-height:1.25;margin:0 0 7px}
 html.lb-unified :is(.panel,.cp-bar,.cp-archive){background:#182a35;border-color:#344d5c;border-radius:10px}
 html.lb-unified :is(.cp-bar,.cp-archive) :is(button,select,input,textarea){font-family:system-ui,sans-serif}
 html.lb-unified :is(.cp-bar,.cp-archive) select{background:#203746;color:#e2eff5;border:1px solid #486a7d;border-radius:6px;padding:7px 9px;max-width:100%;font-size:14px}
 html.lb-unified :is(.cp-bar,.cp-archive) button{font-size:14px;min-height:36px}
 html.lb-unified body[data-lb-module="offers"]{--f-ui:system-ui,sans-serif}
 html.lb-unified body.archive-home #drawer{width:calc(100% - 48px);max-width:1552px;margin:22px auto;background:#182a35;border-color:#344d5c;border-radius:10px}
 html.lb-unified body.archive-home #drawer .drawer-h{background:transparent}
 html.lb-unified body.archive-home #drawer .arow .ops .btn{font:13px/1.35 system-ui,sans-serif;min-height:34px;padding:6px 9px}
 html.lb-unified body.archive-home #drawer .arow .ops{gap:5px}
 html.lb-unified body.archive-home #drawer select{background:#203746;color:#e2eff5;border:1px solid #486a7d;border-radius:6px;padding:7px;font:13px/1.35 system-ui,sans-serif}
 html.lb-unified body.archive-home #drawer .arow .meta{font-size:12px}
 html.lb-unified.cp-archive-home .cp-archive{width:calc(100% - 48px);max-width:1552px;min-height:0;margin:22px auto}
 html.lb-unified .cp-archive .cp-row-actions{flex-wrap:wrap}
 html.lb-unified .cp-row-info{min-width:0}
 html.lb-unified .cp-archive :is(h2,header){font-family:system-ui,sans-serif}
 html.lb-unified .cp-archive h2{font-size:24px}
 .system-main .field-grid>*{min-width:0}.system-main .company-form .field-grid{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr))}
 @media(max-width:760px){
  html.lb-unified body[data-lb-module="crm"]>main,html.lb-unified body[data-lb-module="clients"]>main,html.lb-unified body[data-lb-module="registers"]>main{padding:16px 12px}
  html.lb-unified body.archive-home #drawer,html.lb-unified.cp-archive-home .cp-archive{width:calc(100% - 24px);margin:16px auto}
  html.lb-unified body.archive-home #drawer .arow .ops .btn{min-height:40px;font-size:14px}
  html.lb-unified :is(.cp-bar,.cp-archive) button{min-height:40px}
 }
}
@media screen{
 /* The file manager uses the same palette, including dialogs and selected rows. */
 .system-page .docs-app{font:14px/1.5 system-ui,sans-serif;color:#dce8ee}
 .system-page :is(.explorer-shell,.explorer-main,.explorer-files,.doc-card,.doc-dialog,.doc-folder-menu>div){background:#182a35;color:#dce8ee;border-color:#344d5c}
 .system-page :is(.explorer-sidebar,.doc-command-center,.explorer-columns,.explorer-status,.doc-type,.doc-folder,.explorer-dropzone){background:#13232d;color:#bcd0dc;border-color:#344d5c}
 .system-page :is(.explorer-sidebar>summary,.explorer-tree a,.explorer-shared,.explorer-name a,.doc-file-name,.doc-details summary,.doc-dialog .doc-target-name,.doc-folder-menu a,.doc-back,.doc-crumbs a){color:#c5e4ef}
 .system-page :is(.doc-space,.doc-space small,.docs-top p,.doc-heading p,.doc-muted,.doc-footer-note,.doc-selected-caption,.explorer-sidebar-note,.explorer-name small,.explorer-entry,.doc-note-preview,.doc-file-note small,.doc-grow small,.doc-version small,.explorer-dropzone span){color:#a7bdca}
 .system-page :is(.explorer-tree a:hover,.explorer-shared:hover,.explorer-entry:hover,.doc-folder-menu a:hover){background:#233e4c}
 .system-page :is(.explorer-tree a[aria-current],.explorer-entry.is-selected,.explorer-views button[aria-pressed=true]){background:#264d60;color:#f1f9fc;border-color:#648ca0}
 .system-page :is(.doc-button,.doc-button.secondary){background:#203747;color:#e2eff5;border-color:#486a7d;font-family:system-ui,sans-serif}
 .system-page .doc-button:not(.secondary):not(.danger){background:#28738a;border-color:#57a5bd;color:#fff}
 .system-page .doc-button:hover:not(:disabled){background:#31566a}
 .system-page .doc-button.danger{background:#4b2c34;color:#ffd1c9;border-color:#82515b}
 .system-page .doc-file-commandbar .doc-button:disabled{background:#20303a;color:#8198a6;border-color:#344d5c;cursor:default}
 .system-page :is(.doc-form input,.doc-form select,.doc-form textarea,.doc-search input,.doc-access select){background:#203746;color:#e2eff5;border-color:#486a7d}
 .system-page :is(.explorer-files,.explorer-main>.doc-crumbs,.explorer-entry,.explorer-sidebar-note,.doc-file-note,.doc-version,.doc-access,.doc-dialog-header,.explorer-tree ul){border-color:#344d5c}
 .system-page .doc-notice{background:#183b31;color:#b0e4c7;border-color:#3a725a}
 .system-page .doc-notice.error{background:#462b23;color:#f1c9b7;border-color:#986049}
 .system-page .doc-role{background:#264d40;color:#b0e4c7}
 .system-page .doc-dialog::backdrop{background:#03090dbb}
 html.lb-unified body[data-lb-module="schemeditor"] #schemesTop>a,
 html.lb-unified body[data-lb-module="schemeditor"] #schemesTop>strong{display:none}
 html.lb-unified body[data-lb-module="schemeditor"] #schemesTop{background:#13232d;border-color:#344d5c;padding:10px 20px}
 html.lb-unified body[data-lb-module="schemeditor"] #archive{padding:22px 24px;max-width:1600px;margin:0 auto}
 html.lb-unified body[data-lb-module="schemeditor"] #archive h1{font:700 26px/1.25 system-ui,sans-serif}
 html.lb-unified body[data-lb-module="offers"] .scroll:has(>table#ed){overflow:auto;max-width:100%}
 html.lb-unified body[data-lb-module="offers"] table#ed{min-width:1320px}
 html.lb-unified body.archive-home #drawer .arow{grid-template-columns:64px minmax(0,1fr) auto 480px}
 @media(max-width:1250px){html.lb-unified body.archive-home #drawer .arow{grid-template-columns:64px minmax(0,1fr) auto}html.lb-unified body.archive-home #drawer .arow .ops{grid-column:1/-1;grid-row:3;justify-content:flex-start}html.lb-unified body.archive-home #drawer .arow .meta{grid-column:1/-1;grid-row:2}}
 @media(max-width:600px){html.lb-unified body.archive-home #drawer .arow{grid-template-columns:minmax(0,1fr) auto}html.lb-unified body.archive-home #drawer .arow .cl{grid-column:1/-1;grid-row:2}html.lb-unified body.archive-home #drawer .arow .meta{grid-row:3}html.lb-unified body.archive-home #drawer .arow .ops{grid-row:4}html.lb-unified body[data-lb-module="schemeditor"] #archive{padding:16px 12px}}
}


@media screen{html.lb-unified body[data-lb-module="converter-dogovor"],html.lb-unified body[data-lb-module="converter-protocol"]{margin:0;padding:0 0 48px}}
