:root{--v320-sidebar:292px;--v320-red:#8A2A2B;--v320-red-bright:#C91724;--v320-ink:#07162C;--v320-muted:#5E6E82;--v320-line:#DDE6EF;--v320-bg:#F3F6FA;--v320-shadow:0 10px 24px rgba(15,23,42,.055);}

/* Fix estrutural: a coluna do menu e a coluna do conteúdo agora têm a mesma medida. */
body:not(.endpoint-auth-login) .app-shell{display:grid!important;grid-template-columns:var(--v320-sidebar) minmax(0,1fr)!important;min-height:100vh!important;background:var(--v320-bg)!important;}
body:not(.endpoint-auth-login) .content{grid-column:2!important;min-width:0!important;width:100%!important;padding:0 16px 34px!important;overflow-x:hidden!important;background:var(--v320-bg)!important;}
body:not(.endpoint-auth-login) .platform-sidebar-v295.sidebar.sidebar-dense{grid-column:1!important;position:sticky!important;top:0!important;width:var(--v320-sidebar)!important;min-width:var(--v320-sidebar)!important;max-width:var(--v320-sidebar)!important;height:100vh!important;padding:18px 16px!important;background:#fff!important;border-right:1px solid #E1E8F0!important;overflow-x:hidden!important;overflow-y:auto!important;z-index:30!important;}
body:not(.endpoint-auth-login) .platform-brand-v295{padding:14px 14px 18px!important;border-bottom:1px solid #E6EDF5!important;margin-bottom:16px!important;}
body:not(.endpoint-auth-login) .platform-brand-v295 .brand-logo-large{width:154px!important;max-width:154px!important;height:auto!important;margin:0 0 22px!important;}
body:not(.endpoint-auth-login) .platform-brand-v295 .brand-subtitle{font-size:10px!important;font-weight:900!important;letter-spacing:.075em!important;color:#07162C!important;text-transform:uppercase!important;}
body:not(.endpoint-auth-login) .platform-brand-v295 .brand-tag{font-size:10px!important;line-height:1.28!important;color:#607086!important;margin-top:8px!important;font-weight:500!important;}
body:not(.endpoint-auth-login) .platform-nav-v295{padding:0!important;display:flex!important;flex-direction:column!important;gap:13px!important;}
body:not(.endpoint-auth-login) .platform-nav-v295 .nav-module-v294{margin:0!important;border:0!important;border-radius:16px!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;}
body:not(.endpoint-auth-login) .platform-nav-v295 .nav-module-v294[open]{border:1px solid #DDE6EF!important;background:#fff!important;box-shadow:0 10px 22px rgba(15,23,42,.04)!important;overflow:hidden!important;}
body:not(.endpoint-auth-login) .platform-nav-v295 .nav-module-v294>summary{min-height:58px!important;padding:13px 14px!important;border-radius:16px!important;display:grid!important;grid-template-columns:20px minmax(0,1fr) 14px!important;align-items:center!important;gap:12px!important;}
body:not(.endpoint-auth-login) .platform-nav-v295 .nav-module-v294[open]>summary{border-radius:16px 16px 0 0!important;}
body:not(.endpoint-auth-login) .platform-nav-v295 .nav-module-v294>summary i:first-child,body:not(.endpoint-auth-login) .platform-nav-v295 .nav-link i{width:17px!important;height:17px!important;min-width:17px!important;stroke-width:1.8!important;color:#46566B!important;}
body:not(.endpoint-auth-login) .platform-nav-v295 .nav-module-v294>summary span{font-size:13.5px!important;line-height:1.05!important;font-weight:850!important;letter-spacing:-.015em!important;color:#07162C!important;}
body:not(.endpoint-auth-login) .platform-nav-v295 .nav-module-v294>summary small{display:block!important;margin-top:4px!important;max-width:170px!important;font-size:9.5px!important;line-height:1.18!important;font-weight:550!important;color:#66758A!important;}
body:not(.endpoint-auth-login) .platform-nav-v295 .nav-module-body-v294{display:grid!important;gap:5px!important;padding:6px 10px 14px!important;background:#fff!important;}
body:not(.endpoint-auth-login) .platform-nav-v295 .nav-link{min-height:40px!important;padding:10px 11px!important;border-radius:11px!important;display:grid!important;grid-template-columns:18px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;font-size:12px!important;line-height:1.1!important;font-weight:800!important;color:#17243A!important;white-space:normal!important;}
body:not(.endpoint-auth-login) .platform-nav-v295 .nav-link.active{background:#C91724!important;color:#fff!important;box-shadow:0 10px 22px rgba(201,23,36,.20)!important;}
body:not(.endpoint-auth-login) .platform-nav-v295 .nav-link.active i{color:#fff!important;stroke:#fff!important;}
body:not(.endpoint-auth-login) .platform-sidebar-footer-v295{padding:14px 0 0!important;gap:11px!important;}
body:not(.endpoint-auth-login) .platform-language-v306,body:not(.endpoint-auth-login) .platform-quick-v295,body:not(.endpoint-auth-login) .user-card,body:not(.endpoint-auth-login) .logout-link{border-radius:12px!important;}
body:not(.endpoint-auth-login) .platform-language-top-v306{height:34px!important;display:inline-flex!important;align-items:center!important;gap:4px!important;padding:3px!important;border:1px solid #DDE6EF!important;border-radius:10px!important;background:#F8FAFC!important;}
body:not(.endpoint-auth-login) .platform-language-top-v306 a{height:26px!important;min-width:30px!important;display:grid!important;place-items:center!important;border-radius:7px!important;font-size:10px!important;font-weight:850!important;text-decoration:none!important;color:#607086!important;}
body:not(.endpoint-auth-login) .platform-language-top-v306 a.active{background:#C91724!important;color:#fff!important;}

/* Command Center: hero com imagem real de pôr do sol, sem stretch e sem corte agressivo. */
body.endpoint-main-dashboard .command-center-v291{gap:16px!important;}
body.endpoint-main-dashboard .cc-hero-amspec-v297.cc-hero-v291{height:230px!important;min-height:230px!important;max-height:230px!important;padding:24px 26px!important;border-radius:18px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:start!important;gap:18px!important;background-image:url('img/amspec-hero-sunset-v320.jpg')!important;background-size:cover!important;background-position:center center!important;background-repeat:no-repeat!important;box-shadow:var(--v320-shadow)!important;border:1px solid #DDE6EF!important;overflow:hidden!important;}
body.endpoint-main-dashboard .cc-hero-amspec-v297.cc-hero-v291::before,body.endpoint-main-dashboard .cc-hero-amspec-v297.cc-hero-v291::after{display:none!important;content:none!important;}
body.endpoint-main-dashboard .cc-hero-copy-v297{align-self:center!important;max-width:550px!important;position:relative!important;z-index:1!important;}
body.endpoint-main-dashboard .cc-hero-v291 span{font-size:10px!important;letter-spacing:.23em!important;font-weight:900!important;color:#C91724!important;}
body.endpoint-main-dashboard .cc-hero-v291 h1{font-size:30px!important;line-height:1.03!important;letter-spacing:-.04em!important;max-width:520px!important;margin:12px 0!important;white-space:normal!important;color:#07162C!important;}
body.endpoint-main-dashboard .cc-hero-v291 p{width:auto!important;max-width:510px!important;font-size:13.2px!important;line-height:1.42!important;font-weight:700!important;color:#17243A!important;}
body.endpoint-main-dashboard .cc-hero-actions-v297{position:relative!important;z-index:2!important;align-self:start!important;justify-self:end!important;margin:12px 8px 0 0!important;display:flex!important;flex-wrap:nowrap!important;gap:10px!important;}
body.endpoint-main-dashboard .cc-hero-actions-v297 a{height:44px!important;min-width:96px!important;padding:0 18px!important;border-radius:13px!important;font-size:11.5px!important;font-weight:900!important;}
body.endpoint-main-dashboard .cc-metrics-v291{gap:12px!important;}
body.endpoint-main-dashboard .cc-metrics-v291 article{min-width:0!important;}
body.endpoint-main-dashboard .cc-layout-v291{grid-template-columns:minmax(0,1fr) 330px!important;gap:16px!important;}
body.endpoint-main-dashboard .cc-table-wrap-v291{overflow-x:auto!important;}

/* TV Mode: densidade e alinhamento mais próximos do mock aprovado. */
body.lineup-tv-body.lineup-tv-v318{grid-template-rows:64px 38px 88px minmax(0,1fr) 236px!important;gap:8px!important;padding:8px!important;background:#F3F6FA!important;overflow:hidden!important;}
body.lineup-tv-v318 .lineup-tv-top{height:64px!important;padding:8px 16px!important;border-radius:14px!important;}
body.lineup-tv-v318 .lineup-tv-brand{grid-template-columns:128px minmax(0,1fr)!important;gap:14px!important;}
body.lineup-tv-v318 .lineup-tv-brand img{width:122px!important;}
body.lineup-tv-v318 .lineup-tv-brand h1{font-size:25px!important;letter-spacing:-.03em!important;}
body.lineup-tv-v318 .lineup-tv-filter-hint{height:38px!important;border-radius:12px!important;}
body.lineup-tv-v318 .lineup-tv-kpi-row{height:88px!important;gap:8px!important;}
body.lineup-tv-v318 .lineup-tv-kpi-row article{height:88px!important;grid-template-columns:64px minmax(0,1fr)!important;padding:0 20px!important;border-radius:14px!important;}
body.lineup-tv-v318 .tv-kpi-icon{width:52px!important;height:52px!important;background:#B61E29!important;}
body.lineup-tv-v318 .tv-kpi-copy strong{font-size:25px!important;}
body.lineup-tv-v318 .lineup-tv-dashboard{display:grid!important;grid-template-columns:minmax(0,1.45fr) minmax(0,.82fr) 272px!important;gap:8px!important;min-height:0!important;}
body.lineup-tv-v318 .lineup-tv-table-panel,body.lineup-tv-v318 .lineup-tv-chart-panel,body.lineup-tv-v318 .watch-card{border-radius:13px!important;border-color:#DDE6EF!important;box-shadow:0 8px 18px rgba(15,23,42,.045)!important;}
body.lineup-tv-v318 .lineup-tv-table-panel,body.lineup-tv-v318 .lineup-tv-chart-panel{grid-template-rows:38px minmax(0,1fr)!important;}
body.lineup-tv-v318 .lineup-tv-section-title{height:38px!important;background:linear-gradient(180deg,#BF3038 0%,#8A2A2B 100%)!important;font-size:10px!important;letter-spacing:.06em!important;}
body.lineup-tv-v318 .lineup-tv-data-table thead th{height:28px!important;font-size:7.2px!important;letter-spacing:.04em!important;color:#516176!important;background:#fff!important;}
body.lineup-tv-v318 .lineup-tv-data-table tbody tr{background:#fff!important;}
body.lineup-tv-v318 .lineup-tv-data-table tbody tr:nth-child(even){background:#F8FAFC!important;}
body.lineup-tv-v318 .lineup-tv-data-table tbody td{height:27px!important;padding:4px 6px!important;font-size:7.7px!important;line-height:1.08!important;color:#07162C!important;}
body.lineup-tv-v318 .lineup-tv-data-table td strong{font-size:7.9px!important;line-height:1.05!important;}
body.lineup-tv-v318 .lineup-tv-data-table td small{font-size:5.9px!important;line-height:1!important;color:#617085!important;}
body.lineup-tv-v318 .tv-flag{min-width:31px!important;height:17px!important;border-radius:999px!important;font-size:6.8px!important;}
body.lineup-tv-v318 .lineup-tv-support-rail{grid-template-rows:.86fr 1.14fr!important;gap:8px!important;}
body.lineup-tv-v318 .watch-card{padding:10px!important;background:#fff!important;}
body.lineup-tv-v318 .watch-card-head strong{font-size:16px!important;}
body.lineup-tv-v318 .watch-row{height:32px!important;min-height:32px!important;display:grid!important;grid-template-columns:minmax(0,1.25fr) minmax(0,.85fr) minmax(56px,.55fr)!important;gap:7px!important;padding:0 9px!important;}
body.lineup-tv-v318 .pi-watch-check{display:none!important;}
body.lineup-tv-v318 .watch-vessel{font-size:8.4px!important;}
body.lineup-tv-v318 .watch-terminal,body.lineup-tv-v318 .watch-time{font-size:7.3px!important;}
body.lineup-tv-v318 .lineup-tv-lower{height:auto!important;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr) minmax(0,.98fr)!important;gap:8px!important;}
body.lineup-tv-v318 .lineup-tv-product-bars{grid-template-columns:repeat(auto-fit,minmax(132px,1fr))!important;padding:12px!important;gap:10px!important;}
body.lineup-tv-v318 .tv-product-bar{grid-template-rows:16px minmax(82px,1fr) 16px 18px!important;padding:9px!important;border-radius:12px!important;}
body.lineup-tv-v318 .tv-product-donut{width:86px!important;height:86px!important;}
body.lineup-tv-v318 .tv-product-donut::before{width:62px!important;height:62px!important;}
body.lineup-tv-v318 .tv-product-icon{width:54px!important;height:54px!important;background-size:50px 50px!important;}
body.lineup-tv-v318 .tv-product-bar strong{font-size:9.8px!important;}
body.lineup-tv-v318 .tv-product-bar em{font-size:13px!important;}
body.lineup-tv-v318 .tv-mini-row{grid-template-columns:132px minmax(0,1fr) auto!important;min-height:30px!important;}
body.lineup-tv-v318 .tv-control-card{min-height:34px!important;}
@media(max-height:820px), (max-width:1400px){body.lineup-tv-body.lineup-tv-v318{grid-template-rows:54px 34px 76px minmax(0,1fr) 170px!important;gap:6px!important;padding:6px!important;}body.lineup-tv-v318 .lineup-tv-top{height:54px!important;}body.lineup-tv-v318 .lineup-tv-brand{grid-template-columns:112px minmax(0,1fr)!important;}body.lineup-tv-v318 .lineup-tv-brand img{width:108px!important;}body.lineup-tv-v318 .lineup-tv-brand h1{font-size:21px!important;}body.lineup-tv-v318 .lineup-tv-kpi-row{height:76px!important;}body.lineup-tv-v318 .lineup-tv-kpi-row article{height:76px!important;grid-template-columns:54px minmax(0,1fr)!important;}body.lineup-tv-v318 .tv-kpi-icon{width:44px!important;height:44px!important;}body.lineup-tv-v318 .tv-kpi-copy strong{font-size:22px!important;}body.lineup-tv-v318 .lineup-tv-dashboard{grid-template-columns:minmax(0,1.36fr) minmax(0,.82fr) 244px!important;}body.lineup-tv-v318 .lineup-tv-data-table tbody td{height:22px!important;font-size:7px!important;padding:3px 5px!important;}body.lineup-tv-v318 .lineup-tv-data-table thead th{height:24px!important;font-size:6.5px!important;}body.lineup-tv-v318 .tv-product-donut{width:70px!important;height:70px!important;}body.lineup-tv-v318 .tv-product-donut::before{width:50px!important;height:50px!important;}body.lineup-tv-v318 .tv-product-icon{width:42px!important;height:42px!important;background-size:40px 40px!important;}}
