/* 3M presentation layer. Existing workflow and element IDs are preserved. */
:root,html[data-theme=light]{--bg:#f6f7f9;--card:#fff;--card2:#f8f9fa;--text:#292c3c;--muted:#697080;--line:#d8dadd;--nav:#fff;--brand:#714b67;--brand2:#875a7b;--glow:none;--shadow:0 1px 3px #0000000d}
html[data-theme=dark]{--bg:#1c1d26;--card:#252733;--card2:#2b2d39;--text:#e6e6eb;--muted:#b0b1bd;--line:#3d3f4c;--nav:#252733;--brand:#916282;--brand2:#a87398;--glow:none;--shadow:0 1px 3px #00000020}
html[data-theme] #appView.odoo-shell-v1{--o-canvas:var(--bg);--o-surface:var(--card);--o-surface-2:var(--card2);--o-surface-hover:#eef0f3;--o-text:var(--text);--o-text-2:var(--muted);--o-muted:var(--muted);--o-border:var(--line);--o-border-soft:var(--line);--o-primary:var(--brand);--o-primary-hover:var(--brand2);--o-primary-soft:#714b6712;--o-radius:4px}
html[data-theme=dark] #appView.odoo-shell-v1{--o-surface-hover:#363844;--o-primary-soft:#91628226}
html body{background:var(--bg)!important;color:var(--text)!important}
html #appView.odoo-shell-v1 main>header{background:var(--card)!important;color:var(--text)!important;border-bottom:1px solid var(--line)!important}
html #appView.odoo-shell-v1 aside#side{background:var(--card)!important;color:var(--text)!important;border-inline-end:1px solid var(--line)!important;box-shadow:none!important}
html #appView.odoo-shell-v1 .nav{color:var(--text)!important;border-radius:4px!important;font-size:13px!important}
html #appView.odoo-shell-v1 .nav.active,html #appView.odoo-shell-v1 .nav:hover{background:var(--o-primary-soft)!important;color:var(--brand)!important}
html #appView.odoo-shell-v1 .primary{background:var(--brand)!important;color:#fff!important;border:1px solid var(--brand)!important;box-shadow:none!important;border-radius:4px!important}
html #appView.odoo-shell-v1 .ghost,html #appView.odoo-shell-v1 .icon,html #appView.odoo-shell-v1 input,html #appView.odoo-shell-v1 select,html #appView.odoo-shell-v1 textarea{border-radius:4px!important;box-shadow:none!important;background:var(--card)!important;color:var(--text)!important;border-color:var(--line)!important}
html #appView.odoo-shell-v1 input:focus,html #appView.odoo-shell-v1 textarea:focus,html #appView.odoo-shell-v1 select:focus{outline:2px solid var(--brand)!important;outline-offset:1px}
html #appView.odoo-shell-v1 .card,html #appView.odoo-shell-v1 .stage,html #appView.odoo-shell-v1 .metric,html #appView.odoo-shell-v1 .part-card,html #appView.odoo-shell-v1 .wo-head{background:var(--card)!important;border:1px solid var(--line)!important;border-radius:5px!important;box-shadow:none!important}
html #appView.odoo-shell-v1 table th{background:var(--card2)!important;color:var(--text)!important;font-weight:600!important;font-size:12px!important;padding:11px 10px!important;white-space:nowrap}
html #appView.odoo-shell-v1 table td{padding:10px!important;color:var(--text)!important;border-bottom:1px solid var(--line)!important}
html #appView.odoo-shell-v1 table tbody tr:nth-child(even){background:var(--card2)!important}
html #appView.odoo-shell-v1 table tbody tr:hover{background:var(--o-surface-hover)!important}
html #appView.odoo-shell-v1 .status{background:#17a2b8!important;color:white!important;padding:3px 9px!important;border-radius:20px!important;font-size:11px!important}
html[data-theme=dark] #appView.odoo-shell-v1 .status{background:#69b3f5!important;color:#171923!important}
html #appView.odoo-shell-v1 .chip.active,html #appView.odoo-shell-v1 .choice.active{background:var(--brand)!important;color:white!important;border-color:var(--brand)!important;box-shadow:none!important}
html #appView.odoo-shell-v1 .choice.danger.active{background:var(--danger)!important}
html #appView.odoo-shell-v1 .brand b{display:none!important}
html #appView.odoo-shell-v1 .brand strong{color:var(--text)!important}
html #appView.odoo-shell-v1 .brand small{color:var(--muted)!important}
html #appView.odoo-shell-v1 .sidebar-logo{background:none!important;border:0!important;box-shadow:none!important;padding:16px 12px!important;height:auto!important}
html #appView.odoo-shell-v1 .sidebar-logo img{width:170px!important;max-width:100%!important;height:68px!important;object-fit:contain!important;border-radius:0!important}
html #dashboard{background:linear-gradient(135deg,#714b6708 0%,#714b6708 40%,transparent 40%,transparent 72%,#714b6705 72%)}
html .login{background:linear-gradient(135deg,#d9d7e6,#f3f2f8)!important}
html[data-theme=dark] .login{background:radial-gradient(ellipse at 20% 0%,#15343e,transparent 58%),linear-gradient(130deg,#101626,#10101c)!important}
html .login-shell{display:block!important;width:min(430px,100%)!important;grid-template-columns:1fr!important;min-height:0!important;max-width:430px!important;background:none!important;box-shadow:none!important;border:0!important}
html .login-poster{display:none!important}
html .login-card{width:100%!important;background:var(--card)!important;border:1px solid var(--line)!important;border-radius:7px!important;padding:30px!important;box-shadow:0 8px 30px #00000012!important}
html .login-brand{display:flex!important;justify-content:center!important;padding:4px 0 12px!important}
html .login-brand .center-logo{width:230px;height:100px;object-fit:contain}
html .login-card p{font-size:17px!important;color:var(--text)!important;margin:8px 0 24px!important}
html .login-card .primary{background:var(--brand)!important;color:#fff!important;border-radius:4px!important;box-shadow:none!important}
html .login-card input{border-radius:4px!important;background:var(--card)!important;color:var(--text)!important;border-color:var(--line)!important}
html #globalDeveloperCredit{position:fixed!important;left:8px!important;bottom:6px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;gap:0!important;width:auto!important;max-width:180px!important;padding:3px 5px!important;min-height:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--muted)!important;font-size:10px!important;line-height:1.5!important}
html #globalDeveloperCredit::before,html #globalDeveloperCredit::after{display:none!important}
html #globalDeveloperCredit a{color:var(--muted)!important;direction:ltr;text-decoration:none}
html #globalDeveloperCredit a:hover{text-decoration:underline}
html .sidebar-developer-credit,html .developer-credit{display:none!important}
@media(max-width:760px){html .login-card{padding:24px!important}html #appView.odoo-shell-v1 .content{padding:12px 10px 20px!important}html #appView.odoo-shell-v1 table{min-width:620px}html .login-brand .center-logo{width:210px}}
@media print{#globalDeveloperCredit{display:none!important}}

body:has(#invoicePreviewModal) #globalDeveloperCredit{display:none!important}
