/* Visual source: skogur-erp b0ad08f, styles.css and AppShell. Native functions remain. */
:root{--prototype-background:oklch(.973 .005 95);--prototype-foreground:oklch(.26 .02 165);--prototype-muted:oklch(.5 .015 160);--prototype-border:oklch(.905 .008 95);--prototype-input:oklch(.86 .01 95);--prototype-ring:oklch(.68 .12 75);--sidebar-width:232px}
body,button,input,select,textarea{font-family:'Golos Text',ui-sans-serif,system-ui,sans-serif}
body{background:var(--prototype-background);color:var(--prototype-foreground);-webkit-font-smoothing:antialiased;font-size:16px;line-height:1.5}
body :focus-visible{outline:2px solid var(--prototype-ring);outline-offset:2px}
.sidebar{width:232px;padding:20px 12px;background:oklch(.33 .045 165);color:oklch(.94 .015 120);gap:0}
.sidebar .brand{padding:0 8px;min-height:27px;font-size:18px;font-weight:600;letter-spacing:.32em;line-height:28px}
.sidebar .brand-erp{display:none}.sidebar .workspace{margin:0 0 20px;padding:0 8px;background:none;border:0;min-height:0;line-height:16px}
.sidebar .workspace small{font-size:12px;line-height:16px;color:oklch(.74 .03 150)}
.sidebar nav{padding:0;overflow:auto}.sidebar .nav-label{padding:0 8px;margin:16px 0 4px;font-size:11px;font-weight:600;letter-spacing:.05em;line-height:16.5px}
.sidebar .nav-label:first-child{margin-top:0}.sidebar .nav-item{min-height:36px;padding:8px 10px;border-radius:6px;margin:0 0 2px;font-size:14px;font-weight:500;line-height:20px;gap:10px;text-align:left;justify-content:flex-start;color:oklch(.94 .015 120);border:0}
.sidebar .nav-item .icon{width:16px;height:16px;flex-shrink:0;stroke-width:2}
.sidebar .nav-item.active{background:oklch(.39 .045 165);color:oklch(.99 0 0)}
.sidebar .nav-item:hover{background:oklch(.39 .045 165 / .6)}
.sidebar .nav-item>span:not(:first-child){display:inline}.sidebar .nav-count{margin-left:auto;font-size:12px;line-height:16px}
.sidebar .sidebar-bottom{padding:12px 4px 0;margin-top:auto}.sidebar .sidebar-bottom .auth-exit{min-height:36px}
.main-shell{margin-left:232px;min-width:0}.topbar{min-height:48px;height:auto;padding:6px 32px;background:oklch(.973 .005 95 / .95);border-bottom:1px solid var(--prototype-border);gap:8px}
.breadcrumbs{font-size:14px;line-height:20px;min-width:0;gap:6px}.topbar-right{gap:8px;min-width:0;flex-wrap:wrap}
main#main{width:100%;max-width:1280px;min-width:0;margin:0 auto;padding:28px 32px}
.heading h1,.lpe-heading h1,.chat-heading h1,.lv-heading h1{font-size:24px;font-weight:600;line-height:32px;letter-spacing:0}
.heading p,.lv-heading p,.lpe-heading p{font-size:14px;line-height:20px;color:var(--prototype-muted)}
.button{border-radius:6px;font-size:14px;font-weight:500;line-height:20px;min-height:36px;padding:7px 12px}
.button.primary{background:oklch(.33 .045 165);color:oklch(.975 .008 95);border-color:oklch(.33 .045 165)}
.control{border:1px solid var(--prototype-input);border-radius:6px;min-height:40px;padding:8px 12px;font-size:14px;line-height:20px;color:var(--prototype-foreground);background:white}
.control:focus-visible{border-color:var(--prototype-ring)}
.panel,.metric,.lv-card,.lv-order-card,.lpe-detail,.lpe-directory{border-radius:8px;border-color:var(--prototype-border);box-shadow:none}
.orders-table{font-size:14px}.orders-table th{font-size:12px;font-weight:500;color:var(--prototype-muted)}
.confirm-dialog{border-radius:8px;border-color:var(--prototype-border);color:var(--prototype-foreground)}
.app-footer{font-size:12px;line-height:18px;color:var(--prototype-muted);padding:0 32px 20px}
/* The native connection/offline indicator, auth actions and operational alerts stay visible. */
.connection-strip{font-size:12px;line-height:18px}
@media(min-width:1024px){
 .sidebar{display:flex;transform:none;visibility:visible;width:232px;box-shadow:none;z-index:35}
 .main-shell{margin-left:232px}.mobile-toggle,.sidebar-close,.sidebar-scrim{display:none!important}
 #toast{left:calc(50% + 116px)}
}
@media(max-width:1023px){
 .sidebar{display:flex;width:min(264px,85vw);transform:translateX(-105%);visibility:hidden;z-index:45;box-shadow:12px 0 44px #15243b30}
 .sidebar.open{transform:translateX(0);visibility:visible}.sidebar .brand>span+span,.sidebar .nav-label,.sidebar .sidebar-bottom{display:block}.sidebar .workspace{display:flex}
 .sidebar-close{display:inline-flex;position:absolute;top:10px;right:8px;width:32px;height:32px;color:white}.sidebar .brand{padding-right:28px}
 .sidebar-scrim:not([hidden]){display:block;position:fixed;inset:0;z-index:40;background:oklch(.25 .03 165 / .4);width:100%;height:100%}
 .main-shell{margin-left:0}.mobile-toggle{display:inline-flex;flex-shrink:0;width:40px;height:40px}.topbar{padding:6px 32px}main#main{padding-top:20px;padding-bottom:20px}#toast{left:50%}
}
@media(max-width:767px){
 main#main{padding:20px 16px}.topbar{padding:6px 12px;align-items:flex-start}.topbar-right{justify-content:flex-end}.breadcrumbs{flex-shrink:1}.app-footer{padding:0 16px 20px}
 .sidebar .nav-item{min-height:44px}.sidebar .sidebar-bottom .auth-exit{min-height:44px}
 .heading h1,.lpe-heading h1,.chat-heading h1{font-size:24px;line-height:32px}.button{max-width:100%;white-space:normal}
}
@media(prefers-reduced-motion:reduce){.sidebar{transition:none}}
/* Preserve native calendar hit targets despite the compact prototype button default. */
.pc-calendar [data-pc-shift],.pc-calendar [data-pc-today],.pc-calendar .pc-source{min-height:44px}
/* Import controls must shrink with the dialog, including the intrinsic file-input
   width after the new font is applied. Wrap content rather than clipping it. */
#catalog-import-dialog{min-width:0;overflow-wrap:anywhere}
#catalog-import-dialog>label,#catalog-import-dialog .sd-line>label{display:grid;min-width:0;gap:6px}
#catalog-import-dialog input,#catalog-import-dialog select{min-width:0;max-width:100%;box-sizing:border-box}
#catalog-import-dialog input[type=file]{width:100%}
#catalog-import-dialog .sd-toolbar{min-width:0;grid-template-columns:minmax(0,1fr)}
#catalog-import-dialog .sd-toolbar>.button{min-width:0;white-space:normal;overflow-wrap:anywhere}
