/* DH Empreiteira V15.14 — dark mode, navegação padronizada e Ferramentas clean */
:root{
  --dh13-bg:#f4f7fa;
  --dh13-surface:#ffffff;
  --dh13-surface2:#f3f6f9;
  --dh13-text:#10233d;
  --dh13-muted:#718096;
  --dh13-line:#dce5ee;
  --dh13-navy:#061a33;
  --dh13-blue:#0877db;
  --dh13-gold:#d8ad4f;
  --dh13-green:#087f5b;
  --dh13-red:#c92a2a;
}
html[data-dh-theme="dark"]{
  color-scheme:dark;
  --navy:#081a2d;
  --blue:#0d416a;
  --gold:#e0b955;
  --line:#2b4055;
  --green:#47c89b;
  --red:#ff7b83;
  --dh13-bg:#08131f;
  --dh13-surface:#0f2031;
  --dh13-surface2:#14283a;
  --dh13-text:#edf4fb;
  --dh13-muted:#9fb0c2;
  --dh13-line:#293f53;
  --dh13-navy:#edf4fb;
  --dh13-blue:#64b5ff;
  --dh13-gold:#e5bc56;
  --dh13-green:#52cda4;
  --dh13-red:#ff858c;
  --dh151-bg:#08131f;
  --dh151-card:#0f2031;
  --dh151-line:#293f53;
  --dh151-text:#edf4fb;
  --dh151-muted:#9fb0c2;
  --dh151-navy:#edf4fb;
  --dh152-bg:#08131f;
  --dh152-line:#293f53;
  --dh152-muted:#9fb0c2;
  --dh152-navy:#edf4fb;
  --dh153-navy:#edf4fb;
  --dh153-bg:#08131f;
  --dh153-line:#293f53;
  --dh153-muted:#9fb0c2;
}
html[data-dh-theme="dark"] body{background:var(--dh13-bg)!important;color:var(--dh13-text)!important}
html[data-dh-theme="dark"] #app .main,
html[data-dh-theme="dark"] #uiModal.fullpage151,
html[data-dh-theme="dark"] #uiModal.fullpage151 .ui-sheet{background:var(--dh13-bg)!important;color:var(--dh13-text)!important}
html[data-dh-theme="dark"] #uiModal.fullpage151 .ui-head,
html[data-dh-theme="dark"] .ui-sheet,
html[data-dh-theme="dark"] .ui-head{background:rgba(15,32,49,.98)!important;border-color:var(--dh13-line)!important;color:var(--dh13-text)!important}
html[data-dh-theme="dark"] .card,
html[data-dh-theme="dark"] .more151-row,
html[data-dh-theme="dark"] .selectrow152,
html[data-dh-theme="dark"] .clean-summary152,
html[data-dh-theme="dark"] .toggleline152,
html[data-dh-theme="dark"] .v15-toolcard,
html[data-dh-theme="dark"] .v15-invoicecard,
html[data-dh-theme="dark"] .v15-worknote,
html[data-dh-theme="dark"] .v15-metric,
html[data-dh-theme="dark"] .fin153-kpi,
html[data-dh-theme="dark"] .fin153-section,
html[data-dh-theme="dark"] .fin153-report,
html[data-dh-theme="dark"] .rh153-user,
html[data-dh-theme="dark"] .rh153-day,
html[data-dh-theme="dark"] .rh153-history,
html[data-dh-theme="dark"] .v13-fin-card,
html[data-dh-theme="dark"] .v13-tabs,
html[data-dh-theme="dark"] .work-card,
html[data-dh-theme="dark"] .quote-card,
html[data-dh-theme="dark"] .client-card,
html[data-dh-theme="dark"] .tool13-summary,
html[data-dh-theme="dark"] .tool13-row,
html[data-dh-theme="dark"] .tool13-photo,
html[data-dh-theme="dark"] .tool13-empty,
html[data-dh-theme="dark"] .tool13-detail{background:var(--dh13-surface)!important;border-color:var(--dh13-line)!important;color:var(--dh13-text)!important;box-shadow:none!important}
html[data-dh-theme="dark"] .searchbox,
html[data-dh-theme="dark"] .tool151-search,
html[data-dh-theme="dark"] .tool13-search,
html[data-dh-theme="dark"] .tool13-summary>div,
html[data-dh-theme="dark"] .rh153-time,
html[data-dh-theme="dark"] .v15-fiscalnote,
html[data-dh-theme="dark"] .keep153,
html[data-dh-theme="dark"] .clean-money152,
html[data-dh-theme="dark"] .clean-money152 span,
html[data-dh-theme="dark"] .ev-chip,
html[data-dh-theme="dark"] .badge{background:var(--dh13-surface2)!important;border-color:var(--dh13-line)!important;color:var(--dh13-text)!important}
html[data-dh-theme="dark"] input:not([type=checkbox]):not([type=radio]),
html[data-dh-theme="dark"] select,
html[data-dh-theme="dark"] textarea{background:#102436!important;color:var(--dh13-text)!important;border-color:var(--dh13-line)!important}
html[data-dh-theme="dark"] input::placeholder,
html[data-dh-theme="dark"] textarea::placeholder{color:#6f8397!important}
html[data-dh-theme="dark"] .muted,
html[data-dh-theme="dark"] .v15-subtle,
html[data-dh-theme="dark"] .more151-section,
html[data-dh-theme="dark"] .tool13-meta,
html[data-dh-theme="dark"] .tool13-secondary,
html[data-dh-theme="dark"] small{color:var(--dh13-muted)}
html[data-dh-theme="dark"] .more151-copy strong,
html[data-dh-theme="dark"] .more151-head h2,
html[data-dh-theme="dark"] .selectrow152 .scopy b,
html[data-dh-theme="dark"] .clean152 label,
html[data-dh-theme="dark"] .fin153-copy b,
html[data-dh-theme="dark"] .fin153-sectionhead h3,
html[data-dh-theme="dark"] .rh153-dayhead h3,
html[data-dh-theme="dark"] .tool13-info strong,
html[data-dh-theme="dark"] .tool13-price{color:var(--dh13-text)!important}
html[data-dh-theme="dark"] #app .bottom{background:rgba(10,24,37,.97)!important;border-color:var(--dh13-line)!important;box-shadow:0 -8px 24px #0004!important}
html[data-dh-theme="dark"] #app .bottom .nav{color:#93a5b6!important}
html[data-dh-theme="dark"] #app .bottom .nav.on{color:#75bdff!important}
html[data-dh-theme="dark"] #app .bottom .nav.on .nav-icon153{background:#143552!important;color:#75bdff!important}
html[data-dh-theme="dark"] .btn.light{background:#1a3044!important;color:#eef5fb!important}
html[data-dh-theme="dark"] .filterchip{background:#152a3d!important;color:#b8c6d4!important}
html[data-dh-theme="dark"] .filterchip.on{background:#e2b84d!important;color:#102033!important}
html[data-dh-theme="dark"] .choice,
html[data-dh-theme="dark"] .v13-status button,
html[data-dh-theme="dark"] .v13-tabs button{background:#102436!important;border-color:var(--dh13-line)!important;color:var(--dh13-text)!important}
html[data-dh-theme="dark"] .choice.on,
html[data-dh-theme="dark"] .v13-status button.on,
html[data-dh-theme="dark"] .v13-tabs button.on{background:#143650!important;color:#75bdff!important;border-color:#477fa8!important}
html[data-dh-theme="dark"] .progress{background:#263a4d!important}
html[data-dh-theme="dark"] .ui-close{background:#182d40!important;color:#eaf3fa!important;border-color:#31475b!important}
html[data-dh-theme="dark"] .login{background:linear-gradient(160deg,#020b14,#0a2942)!important}
html[data-dh-theme="dark"] .loginbox{background:#0f2031!important;color:#edf4fb!important}
html[data-dh-theme="dark"] .field label{color:#b4c2d0!important}
html[data-dh-theme="dark"] .toast{background:#e7b94c!important;color:#142236!important}
html[data-dh-theme="dark"] .report14,
html[data-dh-theme="dark"] .report14 *{color:initial}
html[data-dh-theme="dark"] .report14{background:#f3f6f9!important;color:#10233d!important}
html[data-dh-theme="dark"] .r14doc{background:#fff!important}

/* Retorno padronizado: sempre ← Voltar no canto esquerdo */
.ui-head{align-items:center!important;gap:10px!important}
.ui-head .ui-close{order:-1!important;width:auto!important;min-width:94px!important;height:42px!important;border-radius:13px!important;padding:0 12px!important;font-size:14px!important;font-weight:850!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;flex:0 0 auto!important}
.ui-head .ui-close .arr1513{font-size:20px;line-height:1;transform:translateY(-1px)}
.ui-head h3{min-width:0!important}
.r14bar .r14back{width:auto!important;min-width:92px!important;padding:0 11px!important;border-radius:12px!important;font-size:13px!important;font-weight:850!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important}
.v15-back{font-size:0!important;display:inline-flex!important;align-items:center!important;gap:5px!important;min-height:42px!important}
.v15-back:before{content:"← Voltar";font-size:13px!important;font-weight:850!important}

/* Limpeza de explicações redundantes */
.more151-head p,.more151-copy small,#loginhelp,.brand>.muted,.more-hero p,
.tools151-hero p,.fin153-head p,.rh153-hero p,.choicehead152 p,
.selectrow152 .scopy b + small,.toggleline152 .grow small,
.tool151-image-meta,.stepnote{display:none!important}
.more151-row{min-height:64px!important;padding-top:10px!important;padding-bottom:10px!important}
.more151-copy strong{font-size:15px!important}

/* Aparência */
.theme1513{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:8px}
.theme1513 button{min-height:48px;border:1px solid var(--dh152-line,#dce5ee);border-radius:13px;background:#fff;color:#10233d;font-weight:850;padding:9px}
.theme1513 button.on{border-color:#1685ed;background:#eef7ff;color:#075fbd}
html[data-dh-theme="dark"] .theme1513 button{background:#102436;color:#dce8f2;border-color:#2c4257}
html[data-dh-theme="dark"] .theme1513 button.on{background:#173c59;color:#7cc0ff;border-color:#5686ad}

/* Ferramentas — referência visual em Minhas vendas do Vida em Dia */
.tool13-head{display:flex;align-items:center;gap:10px;margin:4px 0 14px}
.tool13-head h3{margin:0;flex:1;font-size:20px;color:#10233d}
.tool13-add{border:0;background:#061a33;color:#fff;border-radius:13px;min-height:44px;padding:0 14px;font-weight:900}
.tool13-summary{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:14px}
.tool13-summary>div{border:1px solid #dce5ee;background:#f7f9fb;border-radius:14px;padding:13px;min-width:0}
.tool13-summary small{display:block;font-size:10.5px;color:#718096}
.tool13-summary strong{display:block;margin-top:5px;font-size:19px;letter-spacing:-.4px;color:#10233d;overflow-wrap:anywhere}
.tool13-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:8px;align-items:center;margin:12px 0 8px}
.tool13-search{display:flex;align-items:center;gap:7px;border:1px solid #dce5ee;background:#fff;border-radius:13px;padding:0 11px;min-height:46px}
.tool13-search input{border:0!important;background:transparent!important;margin:0!important;padding:0!important;min-height:auto!important;box-shadow:none!important;width:100%}
.tool13-toolbar select{width:100%;min-height:46px;border:1px solid #dce5ee;border-radius:13px;background:#fff;padding:0 9px}
.tool13-filters{display:flex;gap:7px;overflow:auto;padding:3px 0 11px;scrollbar-width:none}
.tool13-filters::-webkit-scrollbar{display:none}
.tool13-filter{white-space:nowrap;border:1px solid #dce5ee;background:#fff;color:#34465d;border-radius:999px;padding:8px 13px;font-size:12px;font-weight:800}
.tool13-filter.on{background:#061a33;color:#fff;border-color:#061a33}
.tool13-list{display:grid;gap:9px}
.tool13-row{display:flex;align-items:center;gap:11px;border:1px solid #dce5ee;background:#fff;border-radius:16px;padding:10px;min-width:0}
.tool13-photo{width:70px;height:70px;flex:0 0 70px;border:1px solid #e1e8ef;border-radius:13px;background:#f2f5f8;overflow:hidden;display:grid;place-items:center;color:#8b98a6;font-size:27px;padding:0}
.tool13-photo img{width:100%;height:100%;object-fit:cover}
.tool13-info{min-width:0;flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.tool13-titleline{display:flex;align-items:center;gap:6px;width:100%;min-width:0}
.tool13-titleline strong{font-size:14px;color:#10233d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.tool13-state{flex:0 0 auto;font-size:9px;border-radius:999px;padding:4px 7px;font-weight:850;background:#edf3f8;color:#5f7081}
.tool13-state.warn{background:#fff5d9;color:#8a6200}.tool13-state.bad{background:#fff0ef;color:#b42318}.tool13-state.good{background:#eaf8f1;color:#087f5b}
.tool13-price{font-size:16px;font-weight:900;color:#10233d;letter-spacing:-.25px}
.tool13-meta{font-size:10.5px;color:#718096;line-height:1.3;overflow-wrap:anywhere}
.tool13-actions{display:flex;flex-direction:column;gap:6px;flex:0 0 auto}
.tool13-actions button{width:34px;height:34px;border:1px solid #dce5ee;background:#f5f8fa;border-radius:10px;color:#506276;font-size:15px}
.tool13-actions button.del{background:#fff1f1;color:#b42318;border-color:#f1d8d8}
.tool13-empty{border:1px solid #dce5ee;background:#fff;border-radius:16px;padding:30px 18px;text-align:center;color:#718096}
.tool13-empty b{display:block;color:#10233d;margin-bottom:5px}
.tool13-form{display:grid;grid-template-columns:1fr!important;gap:0!important}
.tool13-form>label,.tool13-form>.tool13-block{display:block;margin:0 0 14px!important}
.tool13-form label{font-size:14px;font-weight:850;color:#10233d}
.tool13-form input:not([type=checkbox]),.tool13-form select,.tool13-form textarea{width:100%;min-height:50px;margin-top:7px;border:1px solid #dce5ee;border-radius:14px;background:#fff;padding:12px 13px;color:#10233d}
.tool13-photoedit{border:1px solid #dce5ee;border-radius:15px;background:#fff;padding:11px}
.tool13-photoedit-preview{width:100%;max-height:220px;object-fit:contain;border-radius:12px;background:#f2f5f8;display:block;margin-bottom:9px}
.tool13-photoedit .pick{display:flex;align-items:center;justify-content:center;min-height:48px;border:1px dashed #aebdcb;border-radius:12px;font-weight:850;color:#0b3156;background:#f8fafc}
.tool13-switch{display:flex;align-items:center;gap:12px;border:1px solid #dce5ee;background:#fff;border-radius:15px;padding:12px 13px;min-height:58px}
.tool13-switch b{flex:1;font-size:14px}
.tool13-switch input{width:22px;height:22px}
.tool13-powered{display:grid;grid-template-columns:1fr;gap:0}
.tool13-formactions{display:grid;grid-template-columns:1fr 1.15fr;gap:9px;margin-top:4px}
.tool13-formactions button{min-height:50px;border-radius:14px}
.tool13-detail-photo{width:100%;max-height:270px;object-fit:contain;border-radius:16px;background:#f2f5f8;border:1px solid #dce5ee;margin-bottom:11px}
.tool13-detailgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}
.tool13-detailgrid>div{border:1px solid #dce5ee;background:#f7f9fb;border-radius:13px;padding:11px}
.tool13-detailgrid span{display:block;color:#718096;font-size:10px}.tool13-detailgrid b{display:block;margin-top:4px;font-size:15px;color:#10233d}
.tool13-maint-title{margin:16px 0 8px;font-size:15px}
@media(max-width:430px){.tool13-toolbar{grid-template-columns:1fr}.tool13-row{gap:9px}.tool13-photo{width:64px;height:64px;flex-basis:64px}.tool13-titleline strong{font-size:13px}.tool13-price{font-size:15px}.tool13-actions button{width:32px;height:32px}.theme1513{gap:6px}}

/* V15.14 — retorno textual real para telas internas fora de modal */
.v15-back{font-size:13px!important;display:inline-flex!important;align-items:center!important;gap:5px!important;min-height:42px!important}
.v15-back:before{content:none!important}
