/* Shared shell and components from Conciliação de Frete, scoped where the old Torre CSS conflicts. */
.tower-shell{display:flex;min-height:100vh;background:var(--bg)}
.tower-shell aside.sidebar{inset:auto;width:248px;height:100vh;position:sticky;top:0;padding:0;align-items:stretch;display:flex;flex-direction:column;flex:none;box-shadow:none;color:var(--ink);z-index:30}
.tower-shell aside.sidebar.collapsed{width:72px}
.tower-shell aside.sidebar.collapsed .sidebar-brand{height:77px;padding:0}
.tower-shell aside.sidebar.collapsed .sidebar-brand .brand-window{width:34px;height:37px}
.tower-shell aside.sidebar.collapsed .sidebar-brand .brand-window img{width:132px;left:-25px;top:-30px}
.tower-shell aside.sidebar.collapsed .workspace-switch{display:none}
.tower-shell aside.sidebar.collapsed nav.side-nav{padding:15px 12px 20px}
.tower-shell aside.sidebar.collapsed .side-nav .nav-item{justify-content:center;padding:0}
.tower-shell aside.sidebar.collapsed .side-nav .nav-item span{display:none}
.tower-shell aside.sidebar.collapsed .side-nav .nav-item svg{width:19px;height:19px}
.tower-shell aside.sidebar.collapsed #logout.signout{font-size:0;justify-content:center}
.tower-shell .sidebar-brand{width:auto;display:flex;flex-direction:column;align-items:center;justify-content:center}.tower-shell .sidebar-brand .brand-window{display:block;overflow:hidden}
.tower-shell nav.side-nav{display:block;width:auto;margin:0;padding:2px 12px 20px;overflow-y:auto}
.tower-shell .side-nav .nav-item{display:flex;text-decoration:none;text-align:left;text-transform:none;letter-spacing:normal;font-size:12px;padding:0 12px;border-radius:9px;height:42px;margin:2px 0}
.tower-shell .side-nav .nav-item span{display:inline;margin:0;font-size:inherit;letter-spacing:normal}
.tower-shell .side-nav .nav-item svg{display:block;width:17px;height:17px}
.tower-shell .sidebar-bottom{margin-top:auto}.tower-shell #logout.signout{display:flex;align-items:center;justify-content:space-between;width:100%;background:transparent!important;border:0!important;padding:11px 0;color:var(--muted)!important;box-shadow:none!important;font-size:11px}
.tower-shell .app-main{min-width:0;flex:1}
.tower-shell header.topbar{min-height:72px;height:72px;padding:0 34px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:20;background:#fff;border:0;border-bottom:1px solid var(--line);margin:0}
.tower-shell main.content{margin:0 auto;max-width:1590px;padding:36px 36px 42px;display:block}
.tower-shell h1{font-size:31px;letter-spacing:-.035em}.tower-shell .eyebrow{color:var(--orange)}
.tower-shell .page-head{border:0;padding:0;margin-bottom:26px;display:flex;align-items:flex-end;justify-content:space-between}
.tower-shell .hero-banner{margin-bottom:18px;min-height:190px;height:190px;box-shadow:none}
.tower-shell .hero-banner h2{color:#fff;font-size:28px}.tower-shell .hero-banner p{color:#c4c9ce}
.tower-shell #sync.button.primary{background:var(--orange);color:#fff;border:1px solid var(--orange);border-radius:11px;min-height:40px;padding:0 16px;box-shadow:0 7px 15px rgba(233,117,8,.16)}
.tower-shell #sync.button.primary:hover{background:#cf6705}
.tower-shell .top-last-update{color:#6d7883;font-size:11px;white-space:nowrap}
.tower-shell .filters{margin:0 0 18px;padding:14px 16px;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow);background:#fff}
.tower-shell .filters label{font-size:10px;font-weight:750;letter-spacing:.07em;color:#6f7a85;min-width:140px}
.tower-shell .filters select,.tower-shell .filters input{background:#fcfcfd;border:1px solid #e3e7ea;color:var(--ink);height:42px}
.tower-shell .filters select:focus,.tower-shell .filters input:focus{outline:2px solid #e9750830;border-color:var(--orange)}
.tower-shell .kpis{margin:0 0 18px;gap:14px}.tower-shell .kpis article{background:#fff;border:1px solid var(--line)!important;border-radius:14px;box-shadow:var(--shadow);padding:19px;min-height:128px}
.tower-shell .kpis strong{font-size:27px;color:var(--ink)}.tower-shell .kpis span{color:#77828d;font-size:10px;font-weight:800}.tower-shell .kpis small{color:#87919b}
.tower-shell .panel,.tower-shell .charts .panel{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);color:var(--ink)}
.tower-shell .panel-title h2{font-size:16px;color:var(--ink)}.tower-shell .eyebrow{font-size:10px;font-weight:800}
.tower-shell .live{display:none}.tower-shell .command-grid{margin-bottom:18px}
.tower-shell th{background:#f8f9fb;color:#737e88;border-color:var(--line)}
.tower-shell .global-error:not([hidden]){display:block;margin-bottom:15px;padding:12px 15px;border:1px solid #f2c6c1;background:#fff0ee;color:#a73a34;border-radius:10px;font-size:12px}
.tower-shell .table-pagination{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:12px 18px;border-top:1px solid var(--line);color:var(--muted);font-size:11px}.tower-shell .table-pagination button{height:30px;min-width:30px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink)}.tower-shell .table-pagination button:disabled{opacity:.45;cursor:default}
@media(max-width:900px){.tower-shell aside.sidebar{position:fixed;left:0;top:0;transform:translateX(-100%);transition:transform .23s}.tower-shell.mobile-open aside.sidebar{transform:translateX(0)}.tower-shell .mobile-shade{display:none}.tower-shell.mobile-open .mobile-shade{display:block;position:fixed;inset:0;background:#17232b80;z-index:25}.tower-shell main.content{padding:25px}.tower-shell header.topbar{padding:0 20px}.tower-shell .top-last-update{display:none}}
@media(max-width:900px){.tower-shell aside.sidebar.collapsed{width:248px}.tower-shell aside.sidebar.collapsed .sidebar-brand{height:118px;padding:25px 26px 16px}.tower-shell aside.sidebar.collapsed .sidebar-brand .brand-window{width:142px;height:47px}.tower-shell aside.sidebar.collapsed .sidebar-brand .brand-window img{width:212px;left:-41px;top:-49px}.tower-shell aside.sidebar.collapsed .workspace-switch{display:flex}.tower-shell aside.sidebar.collapsed nav.side-nav{padding:2px 12px 20px}.tower-shell aside.sidebar.collapsed .side-nav .nav-item{justify-content:center;padding:0 12px}.tower-shell aside.sidebar.collapsed .side-nav .nav-item span{display:inline}.tower-shell aside.sidebar.collapsed .side-nav .nav-item svg{width:17px;height:17px}.tower-shell aside.sidebar.collapsed #logout.signout{font-size:11px;justify-content:space-between}}
@media(max-width:700px){.tower-shell .page-head{align-items:flex-start;flex-wrap:wrap}.tower-shell .hero-banner{height:auto;min-height:165px;padding:24px}.tower-shell .hero-banner h2{font-size:23px}.tower-shell .hero-art{display:none}.tower-shell main.content{padding:23px 14px}.tower-shell header.topbar{height:60px;min-height:60px;padding:0 15px}.tower-shell .filters{flex-wrap:wrap}.tower-shell .filters label{min-width:calc(50% - 6px)}.tower-shell .filters .search{min-width:100%}.tower-shell .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.tower-shell .kpis article{min-height:110px;padding:14px}.tower-shell .kpis strong{font-size:23px}}
[hidden]{display:none!important}
.login-card #login-form label,.login-card #register-form label{display:block;margin:16px 0 7px;color:var(--ink);font-size:12px;font-weight:700}
.login-card #login-form input,.login-card #register-form input{display:block;width:100%;height:46px;border:1px solid #d8dfe6;border-radius:10px;padding:0 13px;background:#fff;color:var(--ink);font:inherit;font-size:13px;margin-top:7px}
.login-card .password-wrap input{margin:0!important;padding-right:77px!important}.login-card .password-wrap button{position:absolute;right:8px;top:4px;height:36px;border:0;background:transparent;color:#6d7883;font-size:11px;font-weight:700}
.login-card .login-submit{width:100%;display:flex;justify-content:space-between;margin-top:25px;min-height:50px}
.login-card .message{min-height:16px;color:var(--red);font-size:12px}.login-help button{border:0;background:transparent;color:var(--orange);font-size:inherit;cursor:pointer;padding:0}
