/* Camada visual do painel. Impressão e vitrine têm seus próprios estilos. */
:root{--primary:#365fce;--primary-dark:#294cae;--primary-light:#edf2ff;--primary-shadow:transparent;--slate-50:#f4f6f9;--slate-100:#edf1f6;--slate-200:#d8e0ea;--slate-300:#b8c5d5;--slate-400:#728299;--slate-500:#5a6c82;--slate-600:#455a72;--slate-700:#30465f;--slate-800:#21364d;--slate-900:#172b43;--radius-sm:6px;--radius-md:8px;--radius-lg:10px;--radius-xl:12px;--radius-2xl:14px;--shadow-sm:0 1px 2px #172b4308;--shadow-md:0 6px 20px #172b4314;--shadow-lg:0 12px 36px #172b4326;--shadow-primary:none;--app-sidebar:224px;--app-surface:#fff}
html.tema-escuro{--primary:#91adff;--primary-dark:#adc1ff;--primary-light:#24375b;--slate-50:#101925;--slate-100:#192638;--slate-200:#304159;--slate-300:#4b6079;--slate-400:#a1b2c8;--slate-500:#adbed2;--slate-600:#bdcce0;--slate-700:#d0dced;--slate-800:#e0e9f5;--slate-900:#f1f5fc;--app-surface:#172334}
body{color:var(--slate-900);background:var(--slate-50);line-height:1.5}
body .app-shell,body.sidebar-min .app-shell{margin-left:0!important;min-height:100vh;min-height:100dvh}
body .sidebar{width:var(--app-sidebar);height:100vh;height:100dvh;background:var(--app-surface);border-right:1px solid var(--slate-200);box-shadow:none;z-index:120;overflow:hidden!important}
body .main-area{margin-left:var(--app-sidebar);min-width:0;flex:1;width:calc(100% - var(--app-sidebar))}
body.sidebar-min .main-area{margin-left:72px;width:calc(100% - 72px)}
body .sidebar-header{padding:21px 16px 18px;min-height:92px;flex-shrink:0}
body .sidebar-logo{font-size:24px;font-weight:750;letter-spacing:-.7px;line-height:1.2;color:var(--slate-900)}
body .sidebar-tagline{font-size:11px;line-height:1.5;letter-spacing:0;text-transform:none;color:var(--slate-500);margin-top:4px;font-weight:500}
body .logo-badge{width:32px;height:32px;border-radius:8px;background:#365fce}
body .logo-badge img{width:25px;height:25px}
body .sidebar-nav{padding:10px 12px;scrollbar-width:thin;min-height:0;overflow:auto!important;flex:1 1 auto!important}
body .nav-group-label{padding:12px 10px 6px;font-size:11px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--slate-500)}
body .nav-item{border-radius:6px;padding:10px 12px;min-height:42px;gap:11px;font-size:13px;font-weight:500;line-height:1.35;color:var(--slate-600);margin-bottom:2px;box-shadow:none;transition:background-color .12s,color .12s}
body .nav-item:hover{background:var(--slate-100);color:var(--slate-900);transform:none}
body .nav-item.active{background:var(--primary-light);color:var(--primary);font-weight:650;box-shadow:none}
body .nav-item>svg{width:18px;height:18px;min-width:18px;stroke-width:1.8;flex:none}
body .sidebar-footer{padding:10px 12px;border-top:1px solid var(--slate-200);flex-shrink:0}
body .sidebar-footer .nav-item{min-height:36px;padding:7px 12px;font-size:12px}
body .sidebar-footer #fluxo-help-button{min-height:36px;padding:7px 12px;font-size:12px}
body .sidebar-footer>div{padding:7px 12px 0!important;font-size:10px!important;line-height:1.7!important}
body .sidebar-footer>div br{display:none}
body .sidebar-footer>div a{display:inline-block;margin-right:8px}
body .sidebar-toggle{width:30px;height:30px;top:16px;right:8px;border-radius:6px;color:var(--slate-600)}
body.sidebar-min .sidebar{width:72px}
body.sidebar-min .sidebar-header{padding-top:54px}
body .topbar{height:64px;min-height:64px;padding:0 24px;gap:18px;background:var(--app-surface);border-bottom:1px solid var(--slate-200);box-shadow:none;backdrop-filter:none;z-index:50}
body .topbar-left{flex:0 1 auto;min-width:0;gap:10px}
body .topbar-breadcrumb{font-size:13px!important;font-weight:600!important;white-space:nowrap;min-width:0;max-width:155px;overflow:hidden;text-overflow:ellipsis}
body .topbar-right{gap:8px;min-width:0;flex:none}
body .global-search-wrap{flex:1 1 220px;max-width:360px;min-width:140px;width:auto;border-radius:7px;background:var(--slate-50);height:38px;box-shadow:none}
body .global-search-input{min-width:0;font-size:12px;color:var(--slate-800)}
body .global-search-input::placeholder{color:var(--slate-500);opacity:1}
body .global-search-kbd{font-size:10px;color:var(--slate-500)}
body .user-name{font-size:12px;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
body .user-role{font-size:10px;text-transform:none;letter-spacing:0;color:var(--slate-500)}
body .avatar{height:34px;width:34px;min-width:34px;flex:none;border-radius:8px;font-size:12px;box-shadow:none;background:#edf2ff;color:#294cae;border:1px solid #cad6f4}
body .tema-btn,body .notif-btn,body .hamburger{height:36px;min-height:36px;border:1px solid var(--slate-200);background:var(--app-surface);color:var(--slate-600);box-shadow:none;border-radius:7px;gap:7px}
body .tema-btn{font-size:12px;padding:0 10px;min-width:36px}
body .notif-btn{width:36px}
body #quick-add-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:auto;min-width:86px;height:36px;min-height:36px;padding:0 12px;border-radius:7px;font-size:12px;font-weight:600;background:#365fce;color:#fff;box-shadow:none;transform:none;transition:background-color .12s}
body #quick-add-btn svg{display:block;flex:none;width:16px;height:16px}
body #quick-add-btn .quick-add-chevron{width:10px;height:10px}
body #quick-add-btn span{display:inline}
body #print-status-pill{border-radius:7px!important;font-size:11px!important;min-height:36px;padding:6px 9px!important;max-width:195px;overflow:hidden;text-overflow:ellipsis}
body .quick-add-menu,body .notif-dropdown,body #global-results{background:var(--app-surface);border:1px solid var(--slate-200);border-radius:10px;box-shadow:var(--shadow-lg);max-height:min(70vh,560px);max-height:min(70dvh,560px);overflow:auto}
body .quick-add-item{min-height:52px;border-radius:6px;gap:12px}
body .quick-add-icon{width:30px;height:30px;border-radius:6px;background:var(--slate-100);color:var(--slate-600)}
body .quick-add-icon svg{width:18px;height:18px;flex:none}
body .quick-add-section-label{letter-spacing:0;text-transform:none;color:var(--slate-500);font-size:11px}
body .quick-add-label{font-size:13px;font-weight:600}
body .quick-add-sub{font-size:11px;color:var(--slate-500)}
body .page-content{padding:26px 28px 88px;min-width:0;overflow-x:visible}
body .page-title{font-size:clamp(1.35rem,1.05rem + .6vw,1.75rem);font-weight:700;letter-spacing:-.6px;line-height:1.25;overflow-wrap:anywhere}
body .page-subtitle{font-size:13px;color:var(--slate-500);line-height:1.6;margin-top:6px}
body .page-header{margin-bottom:22px;gap:16px;align-items:center}
body .btn{font-weight:600;font-size:12px;line-height:1.4;border-radius:7px;min-height:36px;padding:8px 13px;letter-spacing:0;box-shadow:none;white-space:normal;transition:background-color .12s,border-color .12s;transform:none}
body .btn:hover{transform:none;box-shadow:none}
body .btn-primary{background:#365fce;color:#fff;border:1px solid #365fce}
body .btn-primary:hover{background:#294cae;border-color:#294cae}
body .btn-outline{background:var(--app-surface);border:1px solid var(--slate-300);color:var(--slate-700)}
body .btn-ghost{border:1px solid transparent;color:var(--slate-600)}
body .btn-danger{background:transparent;color:#bb3030;border:1px solid #e5b9b9}
body .btn-lg{min-height:40px;padding:10px 16px;font-size:13px;border-radius:7px}
body .btn-icon{width:36px;height:36px;min-width:36px;padding:0;display:inline-flex;align-items:center;justify-content:center}
body :is(button,a.btn)>svg:not([width]){width:18px;height:18px;flex:none}
body :is(button,a.btn)>svg{flex-shrink:0;vertical-align:middle}
body :is(.layout-switch,.layout-toggle,.tabs-list,.config-card-icon,.batch-card-icon,.item-card-icon) svg{width:20px;height:20px;flex:none}
body .empty-state svg{width:36px;height:36px;opacity:.65}
body :is(.data-card,.item-card,.batch-card,.stat-card,.config-card,.info-card){background:var(--app-surface);border:1px solid var(--slate-200);border-radius:10px;box-shadow:none}
body :is(.data-card,.item-card,.batch-card,.config-card):hover{box-shadow:none;transform:none}
body .stat-card{padding:16px 18px}
body .stat-label{font-size:12px;letter-spacing:0;text-transform:none;color:var(--slate-500)}
body .stat-value{font-size:24px;line-height:1.25;letter-spacing:-.5px;font-weight:700;font-variant-numeric:tabular-nums}
body .dashboard-chart-area{position:relative;height:220px;min-width:0;margin-top:12px}
body .dashboard-notes{margin-top:12px;font-size:12px;color:var(--slate-600)}
body .dashboard-notes summary{cursor:pointer;min-height:36px;padding-block:8px;font-weight:500}
body #sidebar-theme{display:none}
body .config-card{padding:18px;gap:15px;min-height:90px}
body .config-card-icon{width:38px;height:38px;min-width:38px;border-radius:8px}
body .config-card-title{font-size:14px;font-weight:600}
body .config-card-desc{font-size:12px;color:var(--slate-500);line-height:1.6}
body .config-card-count{font-size:11px;letter-spacing:0;text-transform:none;font-weight:500}
body .config-card-arrow{font-size:22px;color:var(--slate-500)}
body .tabs-list{background:transparent;border-radius:0;border-bottom:1px solid var(--slate-200);padding:0;gap:4px;box-shadow:none;display:flex;overflow-x:auto;scrollbar-width:thin}
body .tab-trigger{font-size:12px;text-transform:none;letter-spacing:0;min-height:40px;padding:9px 12px;border-radius:0;border-bottom:2px solid transparent;background:transparent;color:var(--slate-500);box-shadow:none;flex:none}
body .tab-trigger.active{background:transparent;color:var(--primary);border-bottom-color:var(--primary);box-shadow:none}
body :is(.form-input,.form-select){border:1px solid var(--slate-300);background:var(--app-surface);color:var(--slate-900);border-radius:7px;min-height:40px;padding:9px 11px;font-size:14px;box-shadow:none}
body :is(.form-input,.form-select)::placeholder{color:var(--slate-500);opacity:1}
body .form-label{font-size:12px;letter-spacing:0;text-transform:none;font-weight:600;color:var(--slate-700)}
body .search-input{border-radius:7px;border-color:var(--slate-300);font-size:14px;min-height:40px;background:var(--app-surface)}
body .search-wrapper svg{color:var(--slate-500);width:17px;height:17px}
body .empty-state{color:var(--slate-600);padding:36px 20px}
body .empty-state p{color:var(--slate-500)}
body .page-content [style*="color:var(--slate-300)"]{color:var(--slate-500)!important}
body :is(.prod-del,.svc-del):not(:disabled){color:#a33535!important}
body .alert-action-btn{min-height:32px;padding:6px 10px!important;font-size:12px!important}
body .badge{border-radius:5px;font-weight:600;letter-spacing:0;text-transform:none;line-height:1.45}
body .data-table th{font-size:11px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--slate-600);background:var(--slate-50)}
body .data-table td{font-size:13px;line-height:1.5}
body .modal{border:1px solid var(--slate-200);border-radius:12px;box-shadow:var(--shadow-lg);max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);background:var(--app-surface)}
body .modal-header{padding:18px 22px;border-bottom:1px solid var(--slate-200)}
body .modal-header::before{display:none}
body .modal-title{font-size:18px;font-weight:650;letter-spacing:-.3px}
body .modal-body{padding:22px;overflow-y:auto;min-width:0}
body .modal-footer{padding:16px 22px;border-top:1px solid var(--slate-200);gap:10px;background:var(--app-surface)}
body .modal-close{height:36px;width:36px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--slate-200);background:var(--slate-50);border-radius:6px;color:var(--slate-600);font-size:24px;line-height:1;padding:0}
body .modal-close::before,body .modal-close::after{display:none}
body .toast{border-radius:8px;box-shadow:var(--shadow-md);font-size:13px;max-width:calc(100vw - 32px);overflow-wrap:anywhere}
body .clients-toolbar{gap:12px}
body .client-card-actions .btn{font-size:12px}
body .client-status{border-radius:5px}
body .store-workspace{gap:20px}
body .store-workspace-nav button{border-radius:6px;min-height:44px;font-size:13px}
body .store-disclosure,body .payment-setup{border-radius:10px}
body .payment-setup{padding:20px;border:1px solid var(--slate-200);box-shadow:none}
body .payment-setup .payment-launch{box-shadow:none;border-radius:7px;font-size:13px}
body .pay-buttons .btn{font-size:13px}
body .status-move-btn{width:34px!important;height:30px!important;min-width:34px;min-height:30px}
body .color-swatch{min-width:36px;min-height:36px}
body .skip-link{position:fixed;top:8px;left:12px;z-index:2147483647;padding:12px 16px;border-radius:6px;background:#365fce;color:#fff;transform:translateY(-160%)}
body .skip-link:focus{transform:none}
body :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid var(--primary);outline-offset:3px}
body #main-content:focus{outline:none}
body #fluxo-help-button{position:static!important;display:flex;align-items:center;justify-content:flex-start;width:100%;max-width:none;margin:0;border-radius:6px;box-shadow:none;font-size:13px;padding:10px 12px;background:transparent;color:var(--slate-600);border:1px solid transparent;min-height:42px;gap:11px}
@media(min-width:901px) and (max-width:1200px){body .user-info,body #txt-tema,body .global-search-kbd{display:none}body .topbar{gap:12px;padding-inline:20px}body .global-search-wrap{max-width:300px}body #print-status-pill{max-width:160px}body .page-content{padding:24px 22px 80px}}
@media(max-width:900px){
 body .sidebar,body.sidebar-min .sidebar{width:min(288px,calc(100vw - 44px));transform:translateX(-100%);transition:transform .16s ease;visibility:hidden}
 body .sidebar.open,body.sidebar-min .sidebar.open{transform:translateX(0);visibility:visible;box-shadow:var(--shadow-lg)}
 body .main-area,body.sidebar-min .main-area{margin-left:0;width:100%}
 body .sidebar-header,body.sidebar-min .sidebar-header{padding:21px 16px 18px;justify-content:flex-start}
 body.sidebar-min .sidebar-header>div{justify-content:flex-start}
 body.sidebar-min .sidebar-header .logo-text,body.sidebar-min .sidebar-header .logo-sub,body.sidebar-min .nav-group-label,body.sidebar-min .nav-label,body.sidebar-min .nav-item span:not(.nav-badge){display:initial!important}
 body.sidebar-min .nav-group-label{display:block!important}
 body .sidebar .nav-item,body.sidebar-min .nav-item{justify-content:flex-start;font-size:14px;padding:11px 12px;min-height:44px}
 body .sidebar-footer .nav-item,body .sidebar-footer #fluxo-help-button{min-height:40px;padding:9px 12px;font-size:13px}
 body .sidebar-toggle,body.sidebar-min .sidebar-toggle{right:8px;transform:none;min-width:36px;min-height:36px}
 body .hamburger{display:inline-flex;align-items:center;justify-content:center;min-width:40px;width:40px;height:40px}
 body #sidebar-overlay{z-index:110;background:#172b4366;backdrop-filter:none}
 body .topbar{height:60px;min-height:60px;padding:0 16px;gap:12px}
 body .topbar-left{flex:1;min-width:0}
 body .topbar-breadcrumb{max-width:170px}
 body .global-search-wrap{display:none}
 body .user-info,body #txt-tema{display:none}
 body .tema-btn,body .notif-btn{height:40px;width:40px;min-height:40px;padding:0}
 body #quick-add-btn{height:40px;min-height:40px}
 body .page-content{padding:22px 20px 88px}
 body .page-header{align-items:flex-start;flex-wrap:wrap}
 body .notif-dropdown{position:fixed;top:64px;right:12px;max-width:calc(100vw - 24px);width:360px}
 body .quick-add-menu{position:fixed;top:64px;right:12px;width:280px;max-width:calc(100vw - 24px)}
 body .quick-add-item{min-height:56px}
 body .btn{min-height:44px}
 body :is(.form-input,.form-select,.search-input){font-size:16px;min-height:44px}
 body #print-status-pill{max-width:155px;min-height:40px}
 body #fluxo-help-button{margin:0;width:100%;max-width:none;transform:none!important}
 body .status-move-btn{min-width:44px;min-height:44px;width:44px!important;height:44px!important}
}
@media(max-width:600px){
 body .topbar{padding:0 10px;gap:8px}
 body .topbar-breadcrumb{max-width:100px;font-size:12px!important}
 body .topbar-right{gap:6px}
 body .topbar .tema-btn{display:none}
 body .topbar .avatar{display:none}
 body #quick-add-btn{min-width:40px;width:40px;padding:0;border-radius:7px}
 body #quick-add-btn span,body #quick-add-btn .quick-add-chevron{display:none}
 body #print-status-pill{max-width:115px;font-size:10px!important;padding:5px 7px!important;gap:5px!important}
 body .page-content{padding:20px 14px 68px}
 body .page-title{font-size:23px}
 body .page-header{gap:12px;margin-bottom:18px}
 body .page-header>.btn,body .clients-actions{width:100%}
 body .tabs-list{max-width:100%}
 body .tab-trigger{font-size:12px;min-height:44px;padding:10px 12px}
 body .data-card{border-radius:10px}
 body .config-card{min-height:84px;padding:16px;gap:12px}
 body .config-card-desc{display:block;font-size:12px}
 body .config-card-icon{width:34px;height:34px;min-width:34px}
 body .config-card-title{font-size:14px}
 body #sidebar-theme{display:flex}
 body .dashboard-summary{padding:18px 14px!important}
 body .dashboard-chart-area{height:200px}
 body .modal-overlay{padding:10px;align-items:center}
 body .modal{border-radius:12px;max-height:calc(100dvh - 20px);width:100%}
 body .modal-header,body .modal-footer{padding:14px 16px}
 body .modal-body{padding:18px 16px}
 body .modal-close{width:40px;height:40px;min-width:40px}
 body .modal-footer .btn{min-height:44px}
 body .store-workspace-nav{max-width:100%}
 body .client-extra-heading{flex-wrap:wrap}
 body .payment-setup{padding:16px}
 body .stat-card{padding:14px}
 body .stat-value{font-size:22px}
}
@media(prefers-reduced-motion:reduce){body *,body *::before,body *::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
