[hidden]{display:none!important}
.workspace-frame{display:block;width:100%;height:calc(100dvh - 64px);border:0;background:#eef2f6}
#workspaceHost{width:100%;min-width:0;overflow:hidden}
.workspace-mode .main{display:flex;flex-direction:column}
.workspace-mode #workspaceHost{flex:1;min-height:0}
.workspace-mode .workspace-frame{height:100%}
.pricebook-navigation{display:flex;gap:8px;padding:10px 18px;background:#fff;border-bottom:1px solid #d5dfe8;flex-shrink:0}
.pricebook-navigation button{flex:1;min-height:38px;border:1px solid #d5dfe8;background:#f2f5f8;color:#203247;border-radius:6px;cursor:pointer;font-weight:600}
.pricebook-navigation button[aria-current]{background:#245777;color:#fff;border-color:#245777}
.pricebook-directory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:1050px}
.pricebook-card{display:flex;flex-direction:column;gap:14px;text-align:left;padding:24px;border:1px solid #cddbe7;border-top:4px solid #245777;border-radius:10px;background:#fff;color:#203247;cursor:pointer}
.pricebook-card:hover{background:#edf5fa;border-color:#245777}
.pricebook-card strong{font-size:21px}.pricebook-card span{font-size:14px;line-height:1.5;color:#526578;min-height:42px}.pricebook-card b{color:#245777;font-size:14px}
.pricebook-reference{margin-top:28px;padding-top:20px;border-top:1px solid #d5dfe8;max-width:1050px}.pricebook-reference h2{font-size:16px}
.focused-submodule .work-menu,.focused-submodule body>main>h1,.focused-submodule body>main>p,.embedded-workspace nav[aria-label="Tipo di listino"]{display:none!important}
@media(max-width:600px){.pricebook-directory{grid-template-columns:1fr;gap:12px}.pricebook-card{padding:18px}.pricebook-card strong{font-size:19px}.pricebook-card span{min-height:0}.pricebook-navigation{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:8px 12px}.topbar .global-search{display:none}.topbar .workspace-home{margin-right:auto}}
.workspace-mode .main{height:100dvh;overflow:hidden}
.workspace-mode .topbar{flex-shrink:0}
.workspace-home{white-space:nowrap;border:1px solid #cdd8e2;background:white;color:#203247;text-decoration:none;padding:8px 12px;border-radius:6px;font-weight:600}
.sidebar .nav-item[onclick="go('register')"]{font-weight:700;border-left-color:#eda46c}
.embedded-workspace body>header{display:none}
.embedded-workspace body>main{padding:20px;max-width:none}
.embedded-workspace .register-hero{margin-top:0}
@media(max-width:700px){.workspace-home{font-size:12px;padding:6px 8px}.workspace-frame{height:calc(100dvh - 64px)}.embedded-workspace body>main{padding:14px}.topbar .global-search{min-width:0}}
@media(max-width:700px){
 .embedded-workspace nav[aria-label="Navigazione principale"]{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;padding:8px;align-items:center;margin:14px 0}
 .embedded-workspace nav[aria-label="Navigazione principale"]>button,.embedded-workspace nav[aria-label="Navigazione principale"]>.nav-tools{flex:0 0 auto;width:auto;white-space:nowrap;min-height:36px;margin:0}
 .embedded-workspace .nav-tools[open]>div{position:fixed;top:100px;left:14px;right:14px;max-height:60vh;overflow:auto;z-index:20;white-space:normal}
}

.startup-error{max-width:520px;margin:15vh auto;padding:28px;background:#fff;border:1px solid #d5dfe8;border-radius:12px;color:#203247}

body.session-login #modal{visibility:hidden;pointer-events:none}

/* Shared embedded appearance only. Original events, status colors and field order stay intact. */
@media screen{
html.embedded-workspace body{font-family:Arial,Helvetica,sans-serif!important;color:#222!important;background:linear-gradient(#fff,#e9e9e9)!important;--navy:#222;--navy2:#333;--blue:#a34200;--blue2:#803400;--text:#222;--bg:#eee;--line:#ccc;--muted:#626262}
html.embedded-workspace body>main{max-width:none!important;padding:12px 10px 40px!important;min-width:0}
html.embedded-workspace body :is(h1,h2,h3){font-family:Arial,Helvetica,sans-serif!important;letter-spacing:0!important;color:#222}
html.embedded-workspace body h1{font-size:24px!important;font-weight:700!important;line-height:1.15!important;text-transform:uppercase!important}
html.embedded-workspace .register-hero{padding:15px!important;background:linear-gradient(#fff,#efefef)!important;border:1px solid #ccc!important;border-radius:3px!important;box-shadow:0 1px 5px #0002!important;margin:0 0 12px!important}
html.embedded-workspace .register-hero p{font:13px/1.5 Arial!important;color:#555!important}
html.embedded-workspace body :is(button,input,select,textarea){font-family:Arial,Helvetica,sans-serif!important;border-radius:3px!important}
html.embedded-workspace body :is(input,select,textarea){border-color:#bdbdbd!important;color:#222!important}
html.embedded-workspace body nav[aria-label="Navigazione principale"]{background:linear-gradient(#444,#181818)!important;border:0!important;border-bottom:3px solid #ff7a24!important;border-radius:0!important;padding:5px!important;gap:3px!important}
html.embedded-workspace body nav[aria-label="Navigazione principale"]>button{background:transparent!important;color:#fff!important;border:0!important;border-radius:0!important;font:700 12px Arial!important;padding:9px!important;min-height:34px!important}
html.embedded-workspace body nav[aria-label="Navigazione principale"]>button.active{background:#ff7a24!important;color:#111!important;box-shadow:none!important}
html.embedded-workspace body :is(#newActivity,#save,button[type=submit]){background:linear-gradient(#ffad69,#ff7a24)!important;color:#171717!important;border:1px solid #c9560b!important;border-radius:3px!important;font-weight:700!important}
html.embedded-workspace body :is(button,a,input,select,textarea):focus-visible{outline:3px solid #ff7a24!important;outline-offset:3px!important}
html.embedded-workspace body :is(.customer-filter,.planning-cards>article.register-line,.modal-card,dialog,.card,.panel,.table-wrap){border-radius:3px!important;border-color:#ccc!important;box-shadow:0 1px 3px #0001!important}
html.embedded-workspace body #content .planning-cards>article.register-line{background:#fff!important;border:1px solid #d1d1d1!important;border-left:3px solid #ff7a24!important}
html.embedded-workspace body #content .line-customer>.customer-name{color:#222!important}
html.embedded-workspace body .line-actions button{border-radius:3px!important;font-weight:700!important}
html.embedded-workspace body table{font:13px/1.45 Arial!important;border-collapse:collapse}
html.embedded-workspace body table th{font:700 11px/1.4 Arial!important;text-transform:uppercase!important;background:linear-gradient(#444,#191919)!important;color:#fff!important;border-color:#555!important;padding:10px 8px!important}
html.embedded-workspace body table td{font-family:Arial!important;border-color:#ddd!important}
html.embedded-workspace body .customer-filter{background:#f5f5f5!important}
html.embedded-workspace body dialog{border-top:4px solid #ff7a24!important;background:#fff!important}
html.embedded-workspace body dialog::backdrop{background:#0009}
}
@media screen and (max-width:650px){html.embedded-workspace body>main{padding:10px 7px 32px!important}html.embedded-workspace body h1{font-size:21px!important}html.embedded-workspace .register-hero{padding:12px!important}html.embedded-workspace body nav[aria-label="Navigazione principale"]>button{font-size:11px!important;padding:8px!important}}

@media screen{html.embedded-workspace body nav[aria-label="Navigazione principale"]>.nav-tools>summary{color:#fff!important;border-radius:2px!important;padding:9px!important;font:700 12px Arial!important}}

/* Explicit frame height: the centered app shell uses display:contents for its main wrapper. */
@media screen{body.tl-industrial.workspace-mode #app #workspaceHost{width:100%;height:calc(100dvh - 218px)!important;min-height:420px;flex:none!important}body.tl-industrial.workspace-mode #app #workspaceHost .workspace-frame{height:100%!important;min-height:420px;width:100%;background:#eee}}
@media screen and (max-width:700px){body.tl-industrial.workspace-mode #app #workspaceHost{height:calc(100dvh - 212px)!important;min-height:380px}body.tl-industrial.workspace-mode #app #workspaceHost .workspace-frame{min-height:380px}}

@media screen{html.embedded-workspace body[data-work-area]{--area-ink:#292929;--area-tint:#f0f0f0;--area-edge:#bbb}html.embedded-workspace body .register-hero h1{color:#222!important}html.embedded-workspace body[data-work-area] .navigation-scope [aria-pressed="true"]{background:#ff7a24!important;color:#111!important;border-color:#c9560b!important}}

/* Same neutral surfaces and gloss bars as the reference, within embedded tools. */
@media screen{
html.embedded-workspace body{background:#fff!important;color:#444!important;--ti-gloss:linear-gradient(to bottom,#222 0%,#444 50%,#000 51%,#222 100%);--ti-panel:linear-gradient(to bottom,#e0e0e0 0%,#f9f9f9 50%,#e0e0e0 100%)}
html.embedded-workspace body :is(.register-hero,.customer-filter,.af-filters){background:var(--ti-panel)!important;border-color:#ccc!important}
html.embedded-workspace body :is(nav[aria-label="Navigazione principale"],table th){background:var(--ti-gloss)!important;color:#fff!important}
html.embedded-workspace body .af-row{background:#fff;border-color:#ccc}
}
