/* Núcleo Malta Luz · Design System / Mobile UX · 11 nov 2026
   Uso: somente nas páginas operacionais de Luz. Carregar após CSS específicos.
   Corrige contraste dos headings que o CSS global escurecia sobre gradientes. */
:root{--luz-ink:#193746;--luz-title:#173445;--luz-body:#3d5968;--luz-muted:#5d7585;--luz-teal:#176779;--luz-teal-deep:#124f60;--luz-soft:#eef8f8;--luz-line:#dce7eb;--luz-ring:rgba(31,114,128,.23);--luz-shadow:0 5px 20px rgba(23,55,72,.045)}
#page-content:is(.lz,.clp,.lf,.lc,.lm),#page-content:has(> #abas){
 color:var(--luz-ink);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
 font-size:14px;line-height:1.5;min-width:0;width:100%;max-width:1360px;margin-inline:auto;
}
#page-content :is(.lz-head,.clp-hero,.lf-head,.lc-hero,.lm-hero,.lh-hero),
#page-content .luz-costs-heading{
 position:relative;isolation:isolate;display:flex;justify-content:space-between;align-items:center;
 gap:20px;flex-wrap:wrap;border:1px solid #d5e6e9!important;
 background:linear-gradient(115deg,#fff 0%,#f5fbfb 62%,#eaf5f6 100%)!important;
 color:var(--luz-ink)!important;
 border-radius:18px!important;padding:26px 27px!important;min-width:0;
 box-shadow:0 3px 16px rgba(20,63,74,.045);margin-bottom:19px;
}
#page-content :is(.lz-head,.clp-hero,.lf-head,.lc-hero,.lm-hero,.lh-hero)::before,
#page-content .luz-costs-heading::before{
 content:"";position:absolute;inset:18px auto 18px 0;width:4px;border-radius:0 4px 4px 0;background:#25818a;
}
#page-content :is(.lz-head,.clp-hero,.lf-head,.lc-hero,.lm-hero,.lh-hero)>div:first-child,
#page-content .luz-costs-heading>div:first-child{flex:1 1 300px;min-width:0}
.cgt-content #page-content :is(.lz-head,.clp-hero,.lf-head,.lc-hero,.lm-hero,.lh-hero) :is(h1,h2,h3),
.cgt-content #page-content .luz-costs-heading :is(h1,h2,h3),
#page-content :is(.lz-head,.clp-hero,.lf-head,.lc-hero,.lm-hero,.lh-hero) :is(h1,h2,h3),
#page-content .luz-costs-heading :is(h1,h2,h3){
 color:var(--luz-title)!important;text-shadow:none!important;font-size:clamp(23px,2.5vw,31px);
 font-weight:850;letter-spacing:-.045em;line-height:1.17;overflow-wrap:break-word;margin:6px 0 9px;
}
#page-content :is(.lz-head,.clp-hero,.lf-head,.lc-hero,.lm-hero,.lh-hero) :is(p,.sub,.muted),
#page-content .luz-costs-heading p{
 color:var(--luz-body)!important;opacity:1!important;font-size:13px;line-height:1.66;
 max-width:640px;margin:0;font-weight:450;
}
#page-content :is(.lz-head span,.clp-eyebrow,.lf-tagline,.lc-eyebrow,.lm-eyebrow,.lh-eyebrow,.luz-costs-heading .luz-eyebrow){
 color:var(--luz-teal-deep)!important;font-size:10px!important;font-weight:850!important;line-height:1.5;
 letter-spacing:.12em;text-transform:uppercase;
}
/* CTAs com mesma identidade e contraste explícito sobre fundo claro */
#page-content :is(.lz-primary,.clp .clp-primary,.lf-head a,.lc .btn-primary,.lm .action.main,.lh-btn.main,.luz-costs-heading a){
 display:inline-flex;align-items:center;justify-content:center;gap:8px;
 background:var(--luz-teal)!important;border:1px solid var(--luz-teal)!important;color:#fff!important;
 border-radius:10px!important;min-height:44px;padding:11px 16px;
 font-size:12px;font-weight:800;text-decoration:none;box-shadow:none!important;
}
#page-content :is(.lz-primary,.clp .clp-primary,.lf-head a,.lc .btn-primary,.lm .action.main,.lh-btn.main,.luz-costs-heading a):hover:not(:disabled){
 background:var(--luz-teal-deep)!important;color:#fff!important;border-color:var(--luz-teal-deep)!important;
}
#page-content .clp .clp-btn-ghost,#page-content .clp-hero .clp-btn-ghost{
 background:#fff!important;color:var(--luz-teal-deep)!important;border:1px solid #bdd7dc!important;
 min-height:44px;font-weight:800;
}
#page-content .clp-hero-actions{align-items:center;gap:10px}
#page-content :is(.lc-hero a:not(.btn),.luz-costs-heading a:not(.btn)){text-decoration:none}
#page-content .lc-hero a:not(.btn){color:var(--luz-teal-deep)!important}
/* cartões, indicadores, conteúdo */
#page-content :is(.lz-stat,.lz-card,.clp-stat,.clp-panel,.clp-help article,.lf-kpi,.lf-card,
 .lc-card,.lc-stat,.lm-kpi,.lm-card,.lh-card,.lh-kpi){
 border:1px solid var(--luz-line)!important;border-radius:15px!important;
 box-shadow:var(--luz-shadow)!important;background:#fff;color:var(--luz-ink);min-width:0;
}
#page-content :is(.lz-stat,.clp-stat,.lf-kpi,.lc-stat,.lm-kpi,.lh-kpi) strong{
 color:#164e60!important;font-variant-numeric:tabular-nums;letter-spacing:-.035em;line-height:1.18;
 overflow-wrap:anywhere;
}
#page-content :is(.lz-stat,.clp-stat,.lf-kpi,.lc-stat,.lm-kpi,.lh-kpi) span,
#page-content :is(.lz-stat,.clp-stat,.lf-kpi,.lc-stat,.lm-kpi,.lh-kpi) .label{
 color:var(--luz-muted)!important;font-weight:720;
}
#page-content :is(.clp-panel-head,.lf-card-header,.lm-head,.lh-card-head,.lc-card>h2){
 color:var(--luz-title);
}
.cgt-content #page-content :is(.clp-panel-head,.lf-card-header,.lm-head,.lh-card-head,.lc-card) h2,
.cgt-content #page-content .lz>h2,
#page-content :is(.clp-panel-head,.lf-card-header,.lm-head,.lh-card-head,.lc-card) h2{
 color:var(--luz-title)!important;font-weight:830;line-height:1.3;
}
#page-content :is(.clp-panel-head,.lf-card-header,.lm-head,.lh-card-head,.lc-card) :is(p,.lf-note,small,.sub){
 color:var(--luz-muted)!important;
}
#page-content :is(.lz-card,.clp-panel,.lf-card,.lc-card,.lm-card,.lh-card){overflow-wrap:anywhere}
#page-content .lz-card:hover{border-color:#9ecdd1!important;background:#f9fdfd!important}
#page-content .lz-card strong{color:#173f51}
/* Campos e controles consistentes, zoom iOS evitado */
#page-content :is(.clp-field,.lf-field,.lc-field,.lm-field,.lh-field){min-width:0}
#page-content :is(.clp-field,.lf-field,.lc-field,.lm-field,.lh-field) label,
#page-content .luz-field-label{color:#35596b!important;font-size:11px;font-weight:790}
#page-content :is(.clp,.lf,.lc,.lm,.lh) :is(input:not([type=checkbox]):not([type=radio]),select,textarea),
#page-content :is(input.form-control,select.form-select,textarea.form-control){
 background:#fff!important;color:#203e50!important;border:1px solid #bfcfd9!important;
 border-radius:10px;min-height:44px;font-size:16px!important;max-width:100%;line-height:1.32;
}
#page-content :is(.clp,.lf,.lc,.lm,.lh) :is(input,select,textarea):focus,
#page-content :is(input.form-control,select.form-select,textarea.form-control):focus{
 border-color:var(--luz-teal)!important;outline:2px solid var(--luz-ring);outline-offset:1px;
}
#page-content :is(button,a,input,select,textarea,[tabindex]):focus-visible{
 outline:3px solid #4996a3!important;outline-offset:3px;
}
#page-content :is(.clp-btn,.lf-btn,.lc .btn,.lm .action,.lh-btn,.nav-link){min-height:44px;touch-action:manipulation}
#page-content button:disabled{cursor:not-allowed;opacity:.58}
/* Tabelas: rolagem somente dentro da própria região e cabeçalho legível */
#page-content :is(.clp-datatable,.lf-table,.lc-tablewrap,.lm-list,.lh-tablewrap,.table-responsive){
 max-width:100%;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;
}
#page-content :is(.clp-datatable,.lf-table,.lc-tablewrap,.lh-tablewrap,.table-responsive){
 overflow-x:auto;scrollbar-width:thin;scrollbar-color:#adc9d0 transparent;
}
#page-content :is(.clp-datatable,.lf-table,.lc-tablewrap,.lh-tablewrap) :is(th,td){vertical-align:middle}
#page-content :is(.clp-datatable,.lf-table,.lc-tablewrap,.lh-tablewrap) th{
 color:#466677!important;background:#f2f8f9!important;white-space:nowrap;
}
#page-content :is(.clp-datatable,.lf-table,.lc-tablewrap,.lh-tablewrap) td{
 color:#315266!important;
}
#page-content #abas .nav-link{background:#fff!important;border:1px solid #d4e4e9!important;
 color:#2e5667!important;border-radius:10px!important;min-height:44px}
#page-content #abas .nav-link.active{background:#e6f5f5!important;color:#165d6b!important;
 border-color:#a8d2d6!important;box-shadow:none!important}
/* Containers de abas sem deslocar a coluna lateral */
#page-content #aba-folha .lh{padding-inline:0;max-width:100%}
#page-content .lh-control,#page-content .lm-toolbar,#page-content .lc-actions{min-width:0}
#page-content .luz-costs-heading{margin-bottom:17px}
#page-content .luz-costs-heading p{max-width:620px}
/* Modais específicos fora de #page-content */
:is(.clp-dialog,.lf-dialog,.lh-dialog,#lm-expense-dialog){color:var(--luz-ink);
 border:1px solid #d9e7eb;border-radius:17px;max-width:calc(100vw - 20px);
 max-height:calc(100dvh - 20px);overscroll-behavior:contain}
:is(.clp-dialog,.lf-dialog,.lh-dialog,#lm-expense-dialog) :is(h2,h3){color:var(--luz-title)}
:is(.clp-dialog,.lf-dialog,.lh-dialog,#lm-expense-dialog) :is(input,select,textarea){
 font-size:16px!important;color:var(--luz-ink);max-width:100%}
:is(.clp-dialog,.lf-dialog,.lh-dialog,#lm-expense-dialog) button{min-height:44px}
@media(max-width:900px){
 #page-content:is(.lz,.clp,.lf,.lc,.lm),#page-content:has(> #abas){padding:6px 0 48px}
 #page-content :is(.lz-head,.clp-hero,.lf-head,.lc-hero,.lm-hero,.lh-hero),#page-content .luz-costs-heading{
  padding:22px 20px!important;border-radius:15px!important;
 }
 #page-content .lm-toolbar,#page-content .lh-control{flex:1 1 300px}
 #page-content .lm-toolbar .lm-field,#page-content .lh-control .lh-field{flex:1 1 95px;min-width:0}
}
@media(max-width:680px){
 #page-content:is(.lz,.clp,.lf,.lc,.lm),#page-content:has(> #abas){
  width:100%;max-width:100%;min-width:0;padding:4px 0 calc(40px + env(safe-area-inset-bottom,0px));
 }
 #page-content :is(.lz-head,.clp-hero,.lf-head,.lc-hero,.lm-hero,.lh-hero),#page-content .luz-costs-heading{
  padding:20px 17px!important;margin-bottom:13px!important;gap:14px;align-items:stretch;
  border-radius:14px!important;
 }
 #page-content :is(.lz-head,.clp-hero,.lf-head,.lc-hero,.lm-hero,.lh-hero)>div:first-child{
  flex:1 1 100%;
 }
 #page-content :is(.lz-head,.clp-hero,.lf-head,.lc-hero,.lm-hero,.lh-hero) h1,
 #page-content .luz-costs-heading h1{font-size:clamp(22px,6vw,27px)!important;line-height:1.22}
 #page-content :is(.lz-head,.clp-hero,.lf-head,.lc-hero,.lm-hero,.lh-hero) p,
 #page-content .luz-costs-heading p{font-size:12.5px;line-height:1.6}
 #page-content :is(.clp-hero-actions,.lc-actions,.lm-toolbar,.lh-control){width:100%;min-width:0}
 #page-content .clp-hero-actions>*{flex:1 1 130px}
 #page-content .lz-primary{width:100%}
 #page-content .lf-head>a{width:100%}
 #page-content .lc-actions>label{flex:1 1 100%!important;min-width:0!important}
 #page-content .lc-actions>button{flex:1 1 130px;min-width:0}
 #page-content .lm-toolbar .lm-field,#page-content .lh-control .lh-field{flex:1 1 90px;min-width:0}
 #page-content .lm-toolbar>button,#page-content .lh-control>button{width:100%;flex:1 1 100%}
 #page-content .clp-overview,#page-content .lf-kpis,#page-content .lz-kpis,
 #page-content .lc-kpis,#page-content .lm-kpis,#page-content .lh-kpis{gap:9px}
 #page-content .clp-panel-head,#page-content .lf-card-header,
 #page-content .lm-head,#page-content .lh-card-head{
  padding:15px!important;align-items:stretch;
 }
 #page-content .clp-filters{padding:0 15px 17px}
 #page-content .lf-filters{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:9px}
 #page-content .lf-filters .lf-field{min-width:0}
 #page-content .lf-filters>button{grid-column:1/-1}
 #page-content .clp-datatable table{min-width:700px}
 #page-content .lf-table table{min-width:710px}
 #page-content .lc-tablewrap table{min-width:620px}
 #page-content .lh-tablewrap table{min-width:670px}
 #page-content .lc-nav{overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch;
  scrollbar-width:none;overscroll-behavior-x:contain;max-width:100%}
 #page-content .lc-nav>*{min-height:46px;white-space:nowrap;flex:0 0 auto}
 #page-content #abas{display:flex;flex-wrap:nowrap!important;max-width:100%;
  overflow-x:auto;scrollbar-width:none;padding-bottom:7px}
 #page-content #abas .nav-item{flex:0 0 auto}
 #page-content #abas .nav-link{white-space:nowrap;min-height:46px}
 #page-content #aba-lancamentos>.d-flex{align-items:stretch!important}
 #page-content #aba-lancamentos>.d-flex>.d-flex{width:100%;display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}
 #page-content #aba-lancamentos>.d-flex>.d-flex>select{width:100%!important;min-width:0}
 #page-content #aba-lancamentos>.d-flex>button{width:100%;min-height:46px}
 #page-content #aba-folha .lh-hero{padding:17px!important}
 #page-content .lh-actions{width:100%;display:flex;gap:8px;flex-wrap:wrap}
 #page-content .lh-actions>button{flex:1 1 125px}
 #page-content .lm-item{grid-template-columns:23px minmax(0,1fr) auto}
 #page-content .lm-item .money{font-size:12px;max-width:38vw;white-space:normal;text-align:right}
}
@media(max-width:390px){
 #page-content .lf-filters{grid-template-columns:1fr}
 #page-content .lf-filters>button{grid-column:auto}
 #page-content .clp-overview,#page-content .lf-kpis,#page-content .lz-kpis,
 #page-content .lc-kpis,#page-content .lm-kpis,#page-content .lh-kpis{gap:8px}
}

/* Caixa Diário: os campos não podem ficar com 1/6 da largura em celulares. */
@media(max-width:680px){
 #page-content.lc .lc-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
 #page-content.lc .lc-fields>.lc-field{grid-column:auto;min-width:0}
 #page-content.lc .lc-fields>.lc-field.lg,
 #page-content.lc .lc-fields>.lc-field.full{grid-column:1/-1}
 #page-content.lc .lc-fields :is(input,select,textarea){width:100%;min-width:0}
 #page-content.lc .lc-close{grid-template-columns:1fr;gap:13px}
 #page-content.lc .lc-toolbar{align-items:stretch;gap:9px}
 #page-content.lc .lc-toolbar .lc-field{min-width:0;flex:1 1 135px}
 .lc-modal{max-width:calc(100vw - 20px);max-height:calc(100dvh - 25px);
  overflow-y:auto;overscroll-behavior:contain;padding:18px}
 .lc-modal :is(input,select,textarea){font-size:16px!important;min-height:44px}
 .lc-modal-actions{display:flex;flex-wrap:wrap}
 .lc-modal-actions button{min-height:44px;flex:1 1 120px}
}
@media(max-width:480px){
 #page-content.lc .lc-fields{grid-template-columns:1fr}
 #page-content.lc .lc-fields>.lc-field,
 #page-content.lc .lc-fields>.lc-field.lg,
 #page-content.lc .lc-fields>.lc-field.full{grid-column:1/-1}
 #page-content.lc .lc-toolbar .lc-field{flex:1 1 100%}
 #page-content.lc .lc-calc{padding:13px}
 #page-content.lc .lc-calc strong{font-size:18px}
}

@media print{
 /* O CSS visual nunca deve comprometer impressão de caixa, folha ou fechamento. */
 #page-content :is(.lz-head,.clp-hero,.lf-head,.lc-hero,.lm-hero,.lh-hero){box-shadow:none!important}
 #page-content :is(.lm-card,.lc-card){break-inside:avoid}
}