/* NORCOM COBRANÇAS — Dashboard Pro v1. CSS de apresentação, sem alterar lógica financeira. */
:root{--navy:#0a2549;--blue:#1267de;--text:#1b3353;--muted:#667b94;--line:#e1e9f3;--bg:#f2f6fc;--green:#07997a}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--text);font-feature-settings:"tnum"}
button,select,input,textarea{transition:border-color .18s,background .18s,box-shadow .18s,transform .18s}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #58adff;outline-offset:3px}
button:disabled{transform:none}
button:hover:not(:disabled){border-color:#bdd5f2}
.primary{background:linear-gradient(110deg,#0861ce,#087ee7);border-color:#176ed1;box-shadow:0 4px 12px rgba(16,112,213,.12)}
.primary:hover{background:linear-gradient(110deg,#074eaf,#0873d4)}
h1,h2,h3{color:#133255}
a{color:#0963c6}
.eyebrow{font-weight:800;letter-spacing:2px;color:#2286ed}
[hidden]{display:none!important}

/* Navegação principal */
.billing-sidebar{width:252px;background:linear-gradient(171deg,#081e3d,#0d3158 67%,#071c35);border-right:1px solid #224669;padding:25px 14px 19px;box-shadow:7px 0 24px rgba(3,31,65,.035);overflow-y:auto}
.billing-sidebar::before{content:"";position:absolute;width:190px;height:190px;background:#1479ca15;border-radius:50%;right:-132px;top:10px;pointer-events:none}
.billing-brand{padding:9px 13px 33px;gap:0;position:relative}
.billing-brand img{width:190px;height:77px;max-height:none;object-fit:contain;background:transparent;border:0;border-radius:0;padding:0;object-position:left center}
.billing-brand>span{letter-spacing:2.2px;font-size:9px;color:#8eb1d7;margin-top:0;font-weight:800}
.billing-sidebar .nav-label{padding:0 16px 12px;color:#779cbf;font-size:9px;letter-spacing:2px}
.billing-nav{gap:6px;position:relative}
.billing-nav button{padding:13px 13px;border:1px solid transparent;border-radius:12px;color:#b7cbe4;font-size:13px;font-weight:560;gap:12px;transition:.18s}
.billing-nav button:hover,.billing-nav button.active{border-color:#3a659b;color:#fff;background:linear-gradient(110deg,#184e86,#174371)}
.billing-nav button.active{box-shadow:inset 3px 0 #42c4fd,0 4px 14px #031d3d35;font-weight:750}
.nav-symbol{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;flex:none;color:#89b9e8;background:#173d69}
.billing-nav button.active .nav-symbol{background:#166fc1;color:#fff}
.ui-icon{width:18px;height:18px;display:block;flex:none}
.nav-text{white-space:nowrap}
.billing-mobile-more{display:none!important}
.billing-sidebar .sidebar-bottom{position:relative;gap:13px;margin-top:auto;padding:15px 7px 0}
.sidebar-service{display:flex;align-items:center;gap:11px;padding:12px 10px;border-radius:13px;background:#ffffff0d;border:1px solid #ffffff16}
.sidebar-service .service-dot{height:10px;width:10px;border-radius:50%;background:#32cba9;box-shadow:0 0 0 4px #30c9a91c}
.sidebar-service strong{color:#e3effb;font-size:11px;display:block}
.sidebar-service small{color:#9ebdd9;font-size:9px}
.billing-sidebar .sidebar-bottom a{color:#c6ddf4;font-size:11px;padding:9px}
.billing-sidebar .sidebar-bottom button{background:#ffffff10;border:1px solid #ffffff23;color:#dcebf9;text-align:left}
.billing-more-drawer{display:none}
main{margin-left:252px;padding:30px clamp(18px,2.8vw,46px) 34px;max-width:1780px;min-height:100vh}
.billing-header{margin:0 0 25px;align-items:center;gap:20px}
.billing-header-title h1{font-size:clamp(25px,2.1vw,32px);font-weight:820;line-height:1.1;letter-spacing:-1.1px;margin:7px 0 7px}
.billing-header-title p{font-size:12px;color:#71829c}
.billing-header-title .eyebrow{color:#1d83d9;margin:0;font-size:9px}
.billing-header-actions{display:flex;align-items:center;gap:12px}
.billing-refresh,.connection{min-height:43px;display:inline-flex;align-items:center;justify-content:center;gap:10px;white-space:nowrap;font-size:12px;border:1px solid #dde7f5;padding:11px 15px;border-radius:12px;background:#fff;box-shadow:0 2px 9px #0e37610b}
.billing-refresh .ui-icon{width:16px;height:16px;color:#1f6fa9}
.connection{font-weight:740;background:#fff!important;color:#1c5976;border:1px solid #d5e5f1}
.connection.connected{color:#0c856b;background:#e8faf3!important;border-color:#beeadc}
.conn-dot,.live-dot{display:inline-block;background:#f7a840;width:9px;height:9px;border-radius:50%;box-shadow:0 0 0 4px #f7a8401d}
.connection.connected .conn-dot{background:#16b38e;box-shadow:0 0 0 4px #16b38e22}

/* Hero e painel executivo */
.dashboard-hero{min-height:206px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 88% 12%,#1472c478,transparent 44%),linear-gradient(117deg,#09294d,#0c4277 76%,#12365a);color:#fff;border:1px solid #1f5888;border-radius:21px;display:grid;grid-template-columns:minmax(0,1fr) 250px;align-items:center;padding:27px 31px;gap:18px}
.dashboard-hero::after{content:"";position:absolute;pointer-events:none;width:330px;height:330px;border-radius:50%;border:1px solid #ffffff13;right:68px;top:-155px;box-shadow:0 0 0 51px #ffffff05,0 0 0 107px #ffffff05}
.dashboard-hero>div{position:relative;z-index:1}
.dash-kicker{font-size:9px;letter-spacing:2.2px;display:flex;align-items:center;gap:12px;color:#a9d8ff;font-weight:800}
.dashboard-hero .live-dot{width:7px;height:7px;background:#4ee4bd;box-shadow:0 0 0 4px #4ee4bd20}
.dashboard-hero h2{color:#fff;letter-spacing:-.9px;font-size:clamp(20px,2.1vw,29px);margin:13px 0 9px;line-height:1.14}
.dashboard-hero p{color:#c5d8ef;max-width:510px;line-height:1.55;font-size:11.5px}
.dash-hero-actions{display:flex;gap:9px;margin-top:20px;flex-wrap:wrap}
.dash-hero-actions button{min-height:40px;padding:9px 14px;border-radius:10px;font-size:11px;font-weight:750}
.dash-hero-primary{background:#fff;color:#0b4384;border-color:#fff}
.dash-hero-primary:hover{background:#e4f2ff}
.dash-hero-secondary{background:#ffffff16;color:#fff;border-color:#ffffff47}
.dash-hero-secondary:hover{background:#ffffff29}
.hero-art{text-align:center;justify-self:end;width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px}
.hero-art img{width:215px;max-height:115px;object-fit:contain}
.hero-art>span{font-size:9px;letter-spacing:3px;color:#9fd2ff;font-weight:800}
.dash-top-line{display:flex;align-items:end;justify-content:space-between;margin:24px 1px 13px;gap:12px}
.dash-top-line>div{display:flex;flex-direction:column;gap:2px}
.dash-top-line strong{font-size:15px;letter-spacing:-.25px}
.dash-top-line small{font-size:10px}
#dashUpdated{font-size:10px;color:#8da0b6;white-space:nowrap}
.billing-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:21px}
.billing-stats article{position:relative;padding:18px 20px 19px;border-radius:16px;border:1px solid #e2eaf5;background:#fff;box-shadow:0 4px 16px #1b528507;overflow:hidden}
.billing-stats article::before{content:"";position:absolute;left:0;top:20px;bottom:20px;width:3px;border-radius:4px;background:#2884ed}
.billing-stats article:nth-child(2)::before{background:#daa245}
.billing-stats article:nth-child(3)::before{background:#1bb59b}
.billing-stats article:nth-child(4)::before{background:#cf7890}
.billing-stats span{font-size:11px;font-weight:650;color:#667e98;line-height:1.3}
.billing-stats strong{margin:9px 0 4px;font-size:clamp(26px,2.5vw,38px);color:#10335b;font-weight:850;letter-spacing:-1.7px}
.billing-stats small{font-size:9px;color:#8a9cb2}
.dashboard-content{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:17px;align-items:stretch}
.dashboard-content .panel{margin:0;min-width:0}
.dashboard-content .panel-top{padding:21px 24px 7px}
.dashboard-content .panel-top h2{font-size:16px;margin-bottom:4px}
.dashboard-content .panel-top p{font-size:10.5px}
.dashboard-content .mini-label{font-size:9px;letter-spacing:1.2px;font-weight:800;color:#1b70c0;background:#e9f5ff;padding:8px 10px;border-radius:999px}
.dash-chart-legend{display:flex;align-items:center;gap:18px;padding:10px 25px 5px;font-size:10px;color:#617c98}
.dash-chart-legend span{display:flex;gap:6px;align-items:center}
.dash-chart-legend i{width:8px;height:8px;border-radius:3px;display:inline-block}
.series-created{background:#2b82e9}.series-delivered{background:#2dbca7}
.dashboard-chart{min-height:204px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;padding:13px 20px 22px;align-items:end}
.chart-placeholder{grid-column:1/-1;align-self:center;justify-self:center;color:#7186a1;font-size:12px}
.chart-day{display:grid;grid-template-rows:1fr auto;gap:7px;text-align:center;min-width:0;height:186px}
.chart-bars{height:160px;display:flex;align-items:end;justify-content:center;gap:5px;border-bottom:1px solid #e4ecf5;padding-bottom:2px}
.chart-bars i{display:block;max-width:16px;width:min(31%,16px);border-radius:4px 4px 1px 1px;min-height:3px;background:linear-gradient(180deg,#51a7ff,#1765c6)}
.chart-bars i+ i{background:linear-gradient(180deg,#5cdcc7,#1ba88e)}
.chart-day span{font-size:9px;color:#8192a8}
.ops-list{padding:8px 24px 12px}
.ops-row{display:flex;gap:12px;align-items:center;border-bottom:1px solid #edf1f7;padding:11px 0}
.ops-row:last-child{border:0}
.ops-row>span:nth-child(2){display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.ops-row strong{font-size:11px;color:#19385b}
.ops-row small{font-size:9px;line-height:1.35}
.ops-symbol{width:34px;height:34px;display:grid;place-items:center;background:#ebf5ff;color:#116dc1;font-weight:850;border-radius:10px;flex:none}
.ops-whatsapp{background:#e6faf1;color:#0c9477}
.ops-pdf{font-size:10px;background:#e9f1ff}
.ops-erp{background:#eef4fd}
.ops-pill{font-size:9px;font-weight:750;border-radius:99px;padding:5px 9px;background:#edf5ff;color:#215f9e;white-space:nowrap}
.ops-pill.good{color:#0c856f;background:#e4f8ee}
.ops-pill.warn{color:#af7522;background:#fff1d9}
.ops-pill.bad{color:#b44b57;background:#fff0ee}
.ops-pill.ops-neutral{background:#eaf4ff}
.ops-action{display:flex;align-items:center;justify-content:space-between;margin:0 24px 20px;width:calc(100% - 48px);padding:11px 14px;border:1px solid #d7e7f6;background:#f0f7ff;border-radius:11px;color:#1a69b2;font-size:11px}
.dash-lower{margin-top:17px}
.dash-recent{padding:3px 24px 18px}
.dash-event{display:flex;align-items:center;gap:11px;padding:11px 0;border-bottom:1px solid #edf1f7}
.dash-event:last-child{border:0}
.dash-event-dot{width:9px;height:9px;flex:none;border-radius:50%;background:#96aecd;box-shadow:0 0 0 4px #e8eef5}
.dash-event-dot.success{background:#0fb18d;box-shadow:0 0 0 4px #e4f8f1}
.dash-event-dot.problem{background:#e6a04d;box-shadow:0 0 0 4px #fff1de}
.dash-event-main{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.dash-event-main strong{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:11px}
.dash-event-main small{font-size:9px}
.dash-event .badge{font-size:9px}
.quick-actions{padding:10px 23px 23px;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.quick-actions button{display:flex;flex-direction:column;align-items:start;text-align:left;gap:6px;border:1px solid #deebf6;border-radius:12px;padding:13px;background:#f8fbff;min-width:0}
.quick-actions button:hover{transform:translateY(-2px);background:#eef7ff;box-shadow:0 5px 14px #0b5bb20b}
.quick-actions button>span{display:grid;place-items:center;width:29px;height:29px;background:#dfedff;color:#1467bd;border-radius:8px;font-size:17px;font-weight:750}
.quick-actions strong{font-size:11px;color:#1e4366}
.quick-actions small{font-size:9px;line-height:1.4}
.dashboard-content .empty{font-size:11px;padding:30px 10px}

/* Todos os menus herdam o mesmo sistema visual */
.panel{border:1px solid #e1e9f2;border-radius:16px;box-shadow:0 4px 16px #0d427607}
.panel-top{padding:21px 23px}
.panel-top h2{font-size:17px;font-weight:780;color:#153961}
.panel-top p{max-width:730px}
.filters{background:#f8fbff;border-top:1px solid #ebf0f8}
.filters input,.filters select{border-color:#d9e5f3}
.filters input:focus,.filters select:focus{border-color:#6fb3f6;box-shadow:0 0 0 3px #56b0fa18}
thead{background:#f2f7fd;color:#59738f}
thead th{font-size:9px;letter-spacing:1px}
tbody tr:hover{background:#fbfdff}
td .row a{padding:8px 10px;font-size:11px;border-radius:8px;background:#edf6ff}
.badge{border-radius:999px;font-weight:760;padding:6px 10px}
.composer{background:linear-gradient(110deg,#f8fbff,#fff);border-color:#d9e7f7}
.billing-pdf-panel{border:1px solid #2676a9;background:linear-gradient(110deg,#0d3556,#0f4b62)}
.billing-pdf-toggle{flex-direction:row;align-items:center}
#notice{position:relative;margin-bottom:17px;box-shadow:0 6px 13px #1263bb0b}
#notice:not([hidden]){animation:slide-in .18s ease-out}
@keyframes slide-in{from{transform:translateY(-4px);opacity:.5}to{transform:none;opacity:1}}
.customer-row,.job-row{min-width:0}
.customer-row>div,.job-row .details{min-width:0;overflow-wrap:anywhere}
.events-form,.template-grid{max-width:100%}
.job-row .badge{flex-shrink:0}
footer{margin-top:30px}

/* Tablet */
@media(max-width:1250px){
 .billing-sidebar{width:222px}
 main{margin-left:222px;padding:24px 22px}
 .billing-brand img{width:173px}
 .dashboard-content{grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr)}
 .hero-art img{width:176px}
 .dashboard-hero{grid-template-columns:minmax(0,1fr) 195px;padding:25px 23px}
 .billing-stats article{padding:17px 15px}
 .billing-stats span{font-size:10px}
}
@media(max-width:980px){
 .dashboard-content{grid-template-columns:1fr}
 .dashboard-hero{grid-template-columns:1fr 150px}
 .billing-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dashboard-chart{min-height:192px}
 .ops-list{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
}
@media(max-width:760px){
 body{background:#f3f7fc}
 .billing-sidebar{inset:auto 0 0;width:100%;height:calc(71px + env(safe-area-inset-bottom));padding:5px 9px calc(5px + env(safe-area-inset-bottom));background:rgba(8,33,65,.98);border:0;border-top:1px solid #26527e;box-shadow:0 -10px 29px #082a4e22;overflow:visible}
 .billing-brand,.billing-sidebar .nav-label,.billing-sidebar .sidebar-bottom{display:none}
 .billing-nav{height:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:stretch;gap:3px}
 .billing-nav button{border:0;flex:1;min-width:0;border-radius:10px;gap:3px;justify-content:center;flex-direction:column;padding:5px 2px;color:#a8bbd4;background:transparent}
 .billing-nav button.active{background:#174778;border-color:transparent;box-shadow:none}
 .billing-nav .nav-symbol{width:25px;height:25px;background:none}
 .billing-nav .ui-icon{width:20px;height:20px}
 .billing-nav .nav-text{font-size:9px;white-space:nowrap;font-weight:600}
 .billing-nav button[data-tab="customers"],.billing-nav button[data-tab="templates"],.billing-nav button[data-tab="events"]{display:none!important}
 .billing-mobile-more{display:flex!important}
 .billing-mobile-more.is-active{background:#174778!important;color:#fff}
 .billing-more-drawer:not([hidden]){display:flex;position:fixed;bottom:calc(78px + env(safe-area-inset-bottom));right:10px;left:10px;padding:16px;gap:7px;flex-direction:column;border-radius:19px;border:1px solid #cddfec;background:#fff;box-shadow:0 21px 60px #082b5290;z-index:15}
 .billing-more-drawer .drawer-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:2px}
 .drawer-head strong{color:#143963;font-size:14px}
 .drawer-head button{width:35px;height:35px;border-radius:11px;min-height:0;padding:4px;font-size:22px;background:#edf5ff;color:#346a9b}
 .billing-more-drawer>button{min-height:46px;text-align:left;background:#f7fbff;border-color:#e3edf7;color:#1d4775}
 .billing-more-drawer>button.active{background:#e4f2ff;border-color:#bcdaf8}
 main{margin-left:0;padding:18px 12px calc(103px + env(safe-area-inset-bottom));max-width:100vw;min-width:0}
 .billing-header{align-items:start;margin-bottom:17px;gap:8px}
 .billing-header-title{min-width:0;flex:1}
 .billing-header-title .eyebrow{font-size:8px;letter-spacing:1.45px}
 .billing-header-title h1{font-size:24px;letter-spacing:-.8px;margin:7px 0}
 .billing-header-title p{font-size:10px;line-height:1.5}
 .billing-header-actions{gap:7px;flex-direction:column;align-items:stretch;max-width:136px}
 .billing-refresh,.connection{min-height:37px;font-size:10px;justify-content:center;padding:8px 10px;border-radius:10px;white-space:normal}
 .billing-refresh .ui-icon{width:15px;height:15px}
 .dashboard-hero{min-height:0;border-radius:17px;display:block;padding:23px 18px 24px}
 .dashboard-hero h2{font-size:23px;margin:11px 0 8px}
 .dashboard-hero p{font-size:10.5px;line-height:1.6}
 .dashboard-hero .hero-art{display:none}
 .dash-kicker{font-size:8px}
 .dash-hero-actions{margin-top:18px}
 .dash-hero-actions button{font-size:10.5px;flex:1}
 .dash-top-line{margin:20px 2px 11px}
 .dash-top-line strong{font-size:13px}
 .dash-top-line small{font-size:9px}
 #dashUpdated{font-size:9px}
 .billing-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:13px}
 .billing-stats article{padding:15px 14px;min-height:108px}
 .billing-stats article::before{top:17px;bottom:17px}
 .billing-stats span{font-size:10px}
 .billing-stats strong{font-size:30px;margin:8px 0 3px}
 .billing-stats small{font-size:8.5px}
 .dashboard-content{grid-template-columns:1fr;gap:13px}
 .dashboard-content .panel-top{padding:18px 16px 5px;align-items:center}
 .dashboard-content .panel-top h2{font-size:15px}
 .dashboard-content .panel-top p{font-size:10px}
 .dashboard-chart{min-height:190px;padding:10px 12px 16px;gap:3px}
 .chart-day{height:164px}
 .chart-bars{height:143px;gap:3px}
 .dash-chart-legend{padding:9px 17px 5px;gap:12px;font-size:9px}
 .ops-list{display:block;padding:7px 16px 14px}
 .ops-action{width:calc(100% - 32px);margin:0 16px 16px}
 .dash-recent{padding:0 16px 13px}
 .quick-actions{padding:10px 16px 16px;gap:9px}
 .quick-actions button{padding:12px 10px}
 .quick-actions strong{font-size:10px}
 .quick-actions small{font-size:9px}
 .panel{margin-bottom:14px;border-radius:14px}
 .panel-top{padding:17px 15px}
 .panel-top h2{font-size:15px}
 .filters{padding:13px 14px}
 .filter label{width:100%}
 .composer{padding:16px;grid-template-columns:1fr}
 .composer .compose-actions{grid-column:1;flex-wrap:wrap}
 .composer .compose-actions button{flex:1}
 .billing-pdf-panel{padding:14px}
 .table-wrap{max-width:100%}
 .customer-row,.job-row{flex-wrap:wrap}
 .job-row .details{flex-basis:100%}
 .customer-row>button,.job-row>button{min-height:37px}
 .pagination{padding:14px}
 .pagination>div{flex-wrap:wrap;justify-content:flex-end}
 .events-form{padding:0 15px 18px}
 .events-form .event-fields{gap:11px}
 .event-fields label{min-width:0}
 footer{margin-top:19px}
}
@media(max-width:375px){
 .billing-header-actions{max-width:120px}
 .billing-refresh,.connection{font-size:9px;padding:7px}
 .dash-hero-actions{flex-direction:column}
 .billing-stats article{padding:13px 12px}
 .billing-stats strong{font-size:27px}
 .dash-chart-legend{flex-direction:column;align-items:start;gap:5px}
 .quick-actions{grid-template-columns:1fr 1fr}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
/* Tela de acesso renovada */
.billing-login{grid-template-columns:minmax(340px,1fr) minmax(350px,440px);gap:clamp(30px,6vw,110px);padding:clamp(28px,7vw,95px);background:radial-gradient(ellipse at 0% 0%,#1463a8 0%,transparent 42%),radial-gradient(ellipse at 95% 95%,#126ab15e,transparent 50%),linear-gradient(138deg,#081e3c,#092749);min-height:100vh;align-items:center}
.billing-login-side{color:#fff;max-width:540px}
.login-brand-logo{width:min(360px,100%);height:110px;object-fit:contain;object-position:left center;margin-bottom:40px}
.billing-login-side .login-side-eyebrow{font-size:10px;letter-spacing:2.5px;color:#78c7ff;font-weight:800;display:block;margin-bottom:18px}
.billing-login-side h2{color:#fff;font-size:clamp(32px,4.5vw,57px);font-weight:840;line-height:1.12;letter-spacing:-2px;margin:0 0 18px}
.billing-login-side p{color:#b5d1e9;font-size:14px;max-width:430px;line-height:1.75}
.billing-login-side .login-features{display:flex;flex-wrap:wrap;gap:9px;margin:30px 0 28px}
.login-features span{background:#fff1;border:1px solid #ffffff2b;padding:10px 12px;border-radius:999px;font-size:10px;color:#d9ebfb}
.billing-login-side>small{color:#81a7c6;font-size:10px}
.billing-login .login-card{max-width:none;background:#fff;padding:clamp(28px,3.6vw,44px);border:1px solid #ffffff44;border-radius:24px;box-shadow:0 30px 90px #01122969}
.billing-login .login-card .login-lock{display:grid;place-items:center;width:51px;height:51px;border-radius:15px;background:linear-gradient(140deg,#e3f4ff,#d8eaff);font-size:23px;color:#166ab5;margin-bottom:25px}
.billing-login .login-card h1{font-size:clamp(25px,2.5vw,33px);letter-spacing:-1.1px;color:#112f52;margin-bottom:12px}
.billing-login .login-card p{font-size:12px;line-height:1.7}
.billing-login .login-card label{margin-top:27px;margin-bottom:18px;font-size:11px;color:#546d87}
.billing-login .login-card input{min-height:50px;border-radius:12px;border-color:#ccdae9}
.billing-login .login-card button{min-height:51px;border-radius:12px;display:flex;align-items:center;justify-content:space-between;padding-inline:19px;font-size:13px}
.billing-login .login-card small{font-size:9px;color:#99a9b8}
@media(max-width:800px){.billing-login{grid-template-columns:1fr;gap:22px;align-content:center;padding:21px;min-height:100dvh}.billing-login-side{max-width:500px;text-align:left}.login-brand-logo{height:80px;margin:0 0 8px;width:216px}.billing-login-side h2{font-size:26px;letter-spacing:-1px;margin-bottom:7px}.billing-login-side p{font-size:10px;line-height:1.55}.billing-login-side .login-side-eyebrow,.billing-login-side .login-features,.billing-login-side>small{display:none}.billing-login .login-card{padding:25px;border-radius:19px}.billing-login .login-card .login-lock{height:42px;width:42px;margin-bottom:15px}.billing-login .login-card label{margin-top:19px}}
@media(max-width:380px){.billing-login-side h2{font-size:24px}.billing-login{padding:13px;gap:15px}.billing-login .login-card{padding:22px}}

/* Correção 2026-10-14: navegação desktop em alturas reduzidas. */
@media(min-width:761px){
 .billing-sidebar{overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#466d96 transparent}
 .billing-sidebar .billing-nav{min-width:0}
 .billing-sidebar .billing-nav button{min-width:0;width:100%;flex-shrink:0}
 .billing-sidebar .billing-nav .nav-text{min-width:0;overflow:hidden;text-overflow:ellipsis}
}
@media(min-width:761px) and (max-height:850px){
 .billing-sidebar{padding:14px 11px 12px}
 .billing-brand{padding:2px 13px 12px}
 .billing-brand img{height:51px;width:165px}
 .billing-brand>span{font-size:8px;margin-top:2px}
 .billing-sidebar .nav-label{padding:0 14px 8px}
 .billing-nav{gap:3px}
 .billing-nav button{padding:6px 9px;gap:9px;min-height:42px}
 .billing-nav .nav-symbol{height:29px;width:29px}
 .billing-sidebar .sidebar-bottom{padding-top:9px;gap:7px}
 .sidebar-service{padding:8px 9px}
 .billing-sidebar .sidebar-bottom a{padding:4px 8px}
 .billing-sidebar .sidebar-bottom button{padding:8px 10px}
}
@media(min-width:761px) and (max-height:610px){
 .billing-brand{padding-bottom:7px}
 .billing-brand img{height:40px}
 .billing-sidebar .nav-label{padding-bottom:5px}
 .billing-nav{gap:1px}
 .billing-nav button{min-height:37px;padding:4px 9px}
 .billing-sidebar .sidebar-bottom{padding-top:6px}
 .sidebar-service{display:none}
}
/* Norcom Cobranças — organização geral de menus v3 */
/* Groups desktop */
@media(min-width:761px){
 .billing-sidebar .billing-nav{display:flex;flex-direction:column;gap:0;min-width:0}
 .billing-nav-group{display:flex;flex-direction:column;gap:3px;margin-bottom:8px;min-width:0}
 .billing-nav-section{padding:11px 14px 5px;font-size:9px;line-height:1.25;font-weight:800;letter-spacing:1.6px;color:#7aabda;text-transform:uppercase}
 .billing-nav-group+ .billing-nav-group{border-top:1px solid #294e773e;padding-top:7px}
 .billing-sidebar .billing-nav-group button{width:100%;min-height:40px;flex-shrink:0;gap:10px;padding:7px 10px}
 .billing-sidebar .billing-nav-group .nav-symbol{height:28px;width:28px;border-radius:8px}
 .billing-sidebar .billing-nav-group .nav-text{font-size:11.6px;font-weight:640}
 .billing-sidebar .billing-nav-group button.active .nav-text{font-weight:800}
 .billing-nav-section:first-child{margin-top:1px}
 .billing-sidebar .billing-sidebar .billing-nav-group{min-width:0}
 .billing-sidebar .sidebar-bottom{flex-shrink:0}
}
@media(min-width:761px) and (max-height:850px){
 .billing-nav-group{margin-bottom:5px;gap:1px}
 .billing-nav-section{padding:6px 13px 4px;font-size:8px}
 .billing-sidebar .billing-nav-group button{min-height:37px;padding:4px 9px}
 .billing-sidebar .billing-nav-group .nav-symbol{height:26px;width:26px}
 .billing-sidebar .sidebar-bottom{padding-top:7px}
 .sidebar-service{padding:8px 9px}
}
@media(min-width:761px) and (max-height:680px){
 .billing-sidebar .billing-nav-group button{min-height:34px}
 .billing-nav-section{padding-top:4px;padding-bottom:2px}
 .billing-sidebar .sidebar-service{display:none}
}

/* Section introduction and local menus */
.billing-section-intro{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:2px 0 17px;padding:0 2px}
.billing-section-intro h2{font-weight:830;font-size:clamp(19px,1.6vw,23px);letter-spacing:-.55px;margin:6px 0}
.billing-section-intro p{font-size:11.5px;line-height:1.55;color:#7288a0}
.billing-section-kicker{display:block;color:#2b78bd;font-size:9px;font-weight:800;letter-spacing:1.6px}
.billing-module .panel{overflow:hidden;border-color:#e0e9f5;border-radius:16px}
.billing-module .panel-top{padding:19px 22px}
.billing-module .panel-top h2{font-size:15.5px;letter-spacing:-.25px;line-height:1.3}
.billing-module .panel-top p{color:#7689a1;font-size:11px;line-height:1.6}
.billing-module .panel-top>button{min-height:39px;padding:8px 12px;border-radius:10px;background:#f1f7fd;color:#1c67a6;border-color:#d9e8f7;white-space:nowrap;font-size:11px}
.billing-module .panel-top>button:hover{background:#e3f0ff}
.billing-section-tabs{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:0 0 17px;padding:6px;border:1px solid #dae5f2;border-radius:14px;background:#eaf1fa}
.billing-section-tabs button{flex:1 1 auto;min-height:41px;padding:10px 14px;background:transparent;border:1px solid transparent;border-radius:10px;color:#4c6885;font-size:11px;line-height:1.2;font-weight:730;white-space:normal;text-align:center}
.billing-section-tabs button.active{background:#fff;color:#0c5ab0;box-shadow:0 4px 15px #1763a814;border-color:#cfdef2}
.billing-section-tabs button:hover:not(.active){background:#ffffffac}
.billing-section-tabs button:focus-visible{outline-offset:1px}
.billing-module .billing-subpanel{min-width:0}
.billing-module .panel-top h2{color:#163a62}
/* Long automation descriptions remain accessible, but are easier to read. */
#events .panel-top>div>p{max-width:850px}
#events .panel h3{font-size:13px;letter-spacing:-.1px;color:#153f6d}
#events .panel>h3,#events .panel>p:not([class]),#events .panel>.filters{margin-inline:20px}
#events .events-form{display:grid;grid-template-columns:minmax(0,1fr);row-gap:16px}
#events .events-form label:not(.event-toggle){font-size:11px}
#events .events-form .event-toggle{max-width:100%;font-size:12px}
#events .event-fields{flex-wrap:wrap;gap:12px}
#events .event-fields label{min-width:150px}
#events #contactLinkRows .job-row{gap:12px;flex-wrap:wrap}
#events #contactLinkRows .job-row>div:first-child{min-width:220px;flex:1 1 220px}
#events #contactLinkRows .job-row>select{max-width:240px}
#events .event-rules{background:#f6faff;border-color:#deeaf5}
#events .job-list{padding:0 20px 13px}
#events #eventsPreview{overflow-wrap:anywhere}
#events #upcomingRows .job-row{gap:12px}
/* Charges and manual send flows */
#charges .panel:first-of-type .filters{align-items:end}
#charges .filters input,#charges .filters select,#customers .filters input,#events .filters input,#events .filters select{min-height:44px;border-radius:10px;background:#fff}
#charges .table-wrap{border-top:1px solid #edf2fa}
#charges thead{background:#f1f7fe}
#charges td{vertical-align:middle}
#charges tbody tr{transition:background .15s}
#charges .composer{border-color:#c9dcf3;background:linear-gradient(133deg,#f1f7ff,#fff 75%);gap:16px;padding:23px}
#charges .composer .eyebrow{margin-bottom:10px}
#charges .composer h2{font-size:18px}
#charges .compose-fields{gap:11px}
#charges .compose-fields label{min-width:0}
#charges .compose-actions{align-self:end}
#charges .compose-actions button{min-height:43px}
.billing-optional-settings{grid-column:1/-1;border:1px solid #d8e8f5;border-radius:13px;background:#fff}
.billing-optional-settings summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 17px;cursor:pointer;list-style:none;min-height:52px;font-size:12px;font-weight:800;color:#164c81}
.billing-optional-settings summary::-webkit-details-marker{display:none}
.billing-optional-settings summary>span{display:inline-flex;align-items:center;gap:10px}
.billing-optional-settings summary>span::before{content:"▸";display:inline-block;color:#0f7acc;transition:transform .15s}
.billing-optional-settings[open] summary>span::before{transform:rotate(90deg)}
.billing-optional-settings summary small{font-size:9.5px;color:#778da4;font-weight:500}
.billing-optional-settings .billing-pdf-panel{margin:0 10px 12px;border-radius:10px}
#charges .composer-note{margin-top:1px}
#charges .composer .billing-optional-settings ~ .composer-note{grid-column:1/-1}
/* Clients, messages and history */
#customers .filters{margin:0;border-top:1px solid #e1ebf6;padding:17px 22px}
#customers #customerRows .customer-row{padding:15px 4px}
#customers #customerRows .customer-row strong{font-size:12px}
#templates .template-grid{grid-template-columns:minmax(180px,240px) minmax(0,1fr);gap:24px;padding:0 22px 24px}
#templates .template-tabs{gap:8px}
#templates .template-tabs button{min-height:42px;text-align:left;border-radius:10px;font-weight:700;color:#577593}
#templates .template-tabs button.active{color:#146ac0;background:#e8f4ff;border-color:#bbdefa}
#templates .template-grid textarea{background:#fcfdff;min-height:230px}
#templates .variables{background:#f5f9fe;border:1px solid #deebf7;padding:13px;border-radius:11px;margin:13px 0;line-height:2}
#templates #saveTemplate{min-height:44px}
#history #jobRows{padding:0 22px}
#history .job-row{gap:12px}
#history .job-row .details{min-width:0}
#history .job-row .details strong{font-size:12px}
#history .job-row .details p{overflow-wrap:anywhere}
#history .badge{font-size:10px}
#comunicados .panel{min-width:0}
#comunicados form,#comunicados .panel>div:not(.panel-top){max-width:100%}
#comunicados label{color:#5f7690}
#comunicados textarea{background:#fcfdff;line-height:1.6}
#comunicados #commHistory .job-row{flex-wrap:wrap}
#comunicados .panel>p{line-height:1.65}
#comunicados #commSend,#comunicados #nocGroupSend{min-height:45px}
#comunicados #commImagePreview{max-height:240px;max-width:100%;object-fit:contain;border-radius:11px}
/* Mobile primary bar maintains direct access to the key 4 sections. */
@media(max-width:760px){
 .billing-nav-group{display:contents}
 .billing-nav-section{display:none}
 .billing-sidebar .billing-nav-group button{flex:1 1 0;min-width:0}
 .billing-nav button[data-tab="customers"],.billing-nav button[data-tab="templates"],.billing-nav button[data-tab="events"]{display:none!important}
 .billing-more-drawer .billing-drawer-divider{height:1px;background:#e3eaf5;margin:6px 2px}
 .billing-drawer-admin{min-height:45px;border:1px solid #dfebf7;background:#f6faff;border-radius:11px;color:#235582;padding:13px;display:flex;align-items:center;justify-content:space-between;font-size:12px}
 .billing-drawer-logout{color:#9d3443!important;border:1px solid #f3d4db!important;background:#fff6f7!important}
 .billing-section-intro{padding:0 2px;margin:3px 0 14px}
 .billing-section-intro h2{font-size:20px}
 .billing-section-intro p{font-size:10.5px}
 .billing-section-kicker{font-size:8px}
 .billing-section-tabs{display:flex;gap:6px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding:5px;border-radius:12px;margin-bottom:13px;-webkit-overflow-scrolling:touch}
 .billing-section-tabs::-webkit-scrollbar{display:none}
 .billing-section-tabs button{flex:0 0 auto;white-space:nowrap;min-height:42px;padding:10px 13px;font-size:10px}
 .billing-module .panel-top{padding:16px}
 .billing-module .panel-top h2{font-size:14px}
 .billing-module .panel-top>button{min-height:39px;max-width:120px;white-space:normal}
 #charges .composer{padding:16px;grid-template-columns:1fr}
 #charges .compose-fields{flex-direction:column}
 #charges .compose-fields label{width:100%}
 #charges .compose-actions{display:flex;grid-column:1/-1}
 #charges .compose-actions button{flex:1}
 .billing-optional-settings summary{align-items:start;flex-direction:column;gap:5px;padding:12px 13px}
 .billing-optional-settings summary small{padding-left:21px}
 #events .panel>h3,#events .panel>p:not([class]),#events .panel>.filters{margin-inline:14px}
 #events .job-list{padding:0 13px 10px}
 #events .events-form{padding:0 15px 18px}
 #events .event-fields label{min-width:0}
 #events #contactLinkRows .job-row>select{max-width:none;width:100%}
 #templates .template-grid{grid-template-columns:1fr;gap:14px;padding:0 15px 17px}
 #templates .template-tabs{flex-direction:row;overflow-x:auto;scrollbar-width:none}
 #templates .template-tabs button{flex:0 0 auto;min-width:120px;white-space:normal}
 #customers .filters{padding:14px}
 #customers #customerRows{padding:0 14px}
 #history #jobRows{padding:0 14px}
 #history .job-row>button{min-height:40px}
 #comunicados .panel{overflow:hidden}
}
