/* Corridas — leitura financeira clara, petróleo e menta do Solo Finances. */
#page-planejamento [hidden] { display:none !important; }
.pl-tabs { display:flex; gap:5px; width:fit-content; max-width:100%; padding:5px; background:var(--bg-surface); border:1px solid var(--border-color); border-radius:13px; margin-bottom:24px; }
.pl-tabs button { border:0; background:transparent; color:var(--text-muted); font:inherit; font-size:13px; font-weight:600; padding:11px 19px; border-radius:9px; cursor:pointer; }
.pl-tabs button[aria-selected=true] { background:var(--color-primary); color:#fff; }
.pl-tabs button:focus-visible, .rc-save:focus-visible { outline:2px solid var(--border-focus); outline-offset:3px; }
#rc-conteudo svg { width:19px; height:19px; flex:0 0 auto; vertical-align:middle; }
.rc-hero { display:flex; align-items:center; justify-content:space-between; gap:36px; padding:30px 34px; margin-bottom:20px; background:linear-gradient(120deg,#163f38,#2c6251); border-radius:20px; color:#f5f9ef; }
.rc-hero-text { flex:1; max-width:650px; }
.rc-eyebrow { font-size:10px; font-weight:700; letter-spacing:1.8px; color:#d5ebae; }
.rc-hero h3 { display:flex; align-items:center; gap:12px; font-size:30px; color:inherit; margin:10px 0; letter-spacing:-1px; }
.rc-hero h3 svg { width:28px !important; height:28px !important; color:#d5ebae; }
.rc-hero p { font-size:13px; line-height:1.65; color:#dae9dc; margin:0; }
.rc-progress { height:7px; border-radius:9px; overflow:hidden; background:#ffffff22; margin-top:22px; }
.rc-progress span { display:block; height:100%; background:#d5ebae; border-radius:9px; }
.rc-progress-caption { display:flex; justify-content:space-between; gap:12px; font-size:11px; margin-top:9px; color:#d8e8d6; }
.rc-hero-target { flex:0 0 auto; border-left:1px solid #ffffff2b; padding-left:32px; display:flex; flex-direction:column; gap:8px; }
.rc-hero-target > span { font-size:10px; font-weight:700; color:#d5ebae; letter-spacing:1.2px; }
.rc-hero-target strong { font-size:34px; font-weight:600; letter-spacing:-1px; }
.rc-hero-target small { font-size:12px; color:#dae9dc; }
.rc-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:20px; }
.rc-kpis article { border:1px solid var(--border-color); border-radius:14px; background:var(--bg-surface); padding:19px 21px; display:flex; flex-direction:column; gap:8px; min-width:0; }
.rc-kpis article > span { font-size:12px; color:var(--text-muted); }
.rc-kpis strong { font-size:25px; font-weight:600; color:var(--text-primary); overflow-wrap:anywhere; }
.rc-kpis small { font-size:10px; color:var(--text-muted); line-height:1.4; }
.rc-config { margin-bottom:22px; background:var(--bg-surface); border:1px solid var(--border-color); border-radius:14px; padding:18px 22px; }
.rc-config summary { display:flex; gap:10px; align-items:center; color:var(--text-primary); font-size:13px; font-weight:600; cursor:pointer; list-style:none; }
.rc-config summary::-webkit-details-marker { display:none; }
.rc-config summary span { margin-left:auto; font-size:11px; color:var(--text-muted); }
.rc-config form { display:grid; grid-template-columns:1fr 1fr auto; gap:16px; align-items:end; padding-top:21px; }
.rc-config label { display:flex; flex-direction:column; gap:8px; font-size:12px; color:var(--text-muted); }
.rc-config .field-input { width:100%; margin:0; }
.rc-config .btn { min-height:44px; display:flex; gap:8px; align-items:center; }
.rc-config form p { grid-column:1/-1; font-size:11px; line-height:1.6; color:var(--text-muted); margin:0; }
.rc-notice { padding:13px 17px; border:1px solid #e8d499; border-radius:11px; background:#f8f3df; color:#715822; font-size:12px; line-height:1.6; margin-bottom:20px; }
.rc-table-head { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:14px; }
.rc-table-head h3 { display:flex; align-items:center; gap:10px; font-size:16px; margin:0 0 5px; }
.rc-table-head p { margin:0; color:var(--text-muted); font-size:11px; line-height:1.6; }
#rc-feedback { font-size:11px; color:var(--color-success); }
.rc-table-wrap { max-width:100%; overflow-x:auto; border:1px solid var(--border-color); border-radius:14px; background:var(--bg-surface); }
.rc-table { width:100%; min-width:820px; border-collapse:collapse; font-size:12px; }
.rc-table thead { background:var(--color-primary); color:#fff; }
.rc-table thead th { padding:13px 12px; font-size:10px; font-weight:600; text-align:left; white-space:nowrap; }
.rc-table td, .rc-table tbody th { border-bottom:1px solid var(--border-color); padding:10px 12px; vertical-align:middle; }
.rc-table tbody th { text-align:left; min-width:75px; font-weight:500; }
.rc-table small { display:block; margin-top:5px; font-size:10px; color:var(--text-muted); }
.rc-table .rc-money { width:106px; max-width:100%; min-height:36px; padding:7px 9px; background:var(--bg-base); color:var(--text-primary); border:1px solid var(--border-color); border-radius:7px; font:inherit; text-align:right; }
.rc-table .rc-money:focus { border-color:var(--border-focus); outline:2px solid var(--accent-glow); }
.rc-table input:disabled { opacity:.5; cursor:not-allowed; }
.rc-table input[type=checkbox] { width:17px; height:17px; accent-color:var(--color-primary); cursor:pointer; }
.rc-table td:nth-child(2), .rc-table td:nth-child(7) { text-align:center; }
.rc-table .rc-daily-total { font-weight:650; font-variant-numeric:tabular-nums; white-space:nowrap; }
.rc-table .rc-result { white-space:nowrap; font-variant-numeric:tabular-nums; }
.rc-today { background:var(--bg-hover); }
.rc-today > th { box-shadow:inset 3px 0 0 var(--color-primary); }
.rc-dirty .rc-daily-total::after { content:'Não salvo'; display:block; font-size:9px; font-weight:400; color:var(--color-warning); margin-top:4px; }
.rc-positive { color:var(--color-success); }
.rc-negative { color:var(--color-danger); }
.rc-save { display:flex; gap:6px; align-items:center; padding:8px 10px; font:inherit; font-size:11px; border:1px solid var(--border-color); border-radius:7px; background:var(--bg-hover); color:var(--text-primary); cursor:pointer; }
.rc-save:disabled { opacity:.4; cursor:default; }
.rc-table tfoot { background:var(--bg-hover); font-weight:600; }
.rc-table tfoot th { padding:15px 12px; text-align:left; }
.rc-footnote { font-size:11px; color:var(--text-muted); margin:14px 0 0; line-height:1.6; }
.rc-loading, .rc-error { padding:32px; border:1px solid var(--border-color); border-radius:14px; color:var(--text-muted); }
.rc-error { color:var(--color-danger); }
@media(max-width:1100px) { .rc-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } .rc-hero { gap:24px; padding:25px; } .rc-hero-target { padding-left:24px; } }
@media(max-width:650px) { .pl-tabs { width:100%; } .pl-tabs button { flex:1; padding:11px 8px; font-size:12px; } .rc-hero { flex-direction:column; align-items:stretch; gap:20px; padding:23px; } .rc-hero h3 { font-size:26px; } .rc-hero-target { border-left:0; border-top:1px solid #ffffff2b; padding:19px 0 0; } .rc-hero-target strong { font-size:30px; } .rc-kpis { gap:10px; } .rc-kpis article { padding:15px; } .rc-kpis strong { font-size:21px; } .rc-config { padding:17px; } .rc-config form { grid-template-columns:1fr; } .rc-config form p { grid-column:1; } .rc-table-head { align-items:start; flex-direction:column; gap:7px; } }
@media(max-width:650px) {
  .rc-table-wrap { border:0; border-radius:0; background:transparent; overflow:visible; }
  .rc-table { display:block; min-width:0; }
  .rc-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .rc-table tbody, .rc-table tfoot { display:grid; gap:12px; }
  .rc-table tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border:1px solid var(--border-color); border-radius:12px; background:var(--bg-surface); padding:7px; }
  .rc-table .rc-today { border-color:var(--accent-primary); background:var(--bg-hover); }
  .rc-table td, .rc-table tbody th { border:0; padding:10px; min-width:0; text-align:left !important; }
  .rc-table td[data-label]::before { content:attr(data-label); display:block; margin-bottom:7px; font-size:10px; font-weight:400; color:var(--text-muted); }
  .rc-table .rc-money { width:100%; min-height:42px; }
  .rc-table td:nth-child(2), .rc-table td:nth-child(7) { display:flex; gap:10px; align-items:center; }
  .rc-table td:nth-child(2)::before, .rc-table td:nth-child(7)::before { margin:0; }
  .rc-table .rc-result { white-space:normal; }
  .rc-save { justify-content:center; width:100%; min-height:42px; }
  .rc-table tfoot { margin-top:12px; background:transparent; }
  .rc-table tfoot th, .rc-table tfoot td[colspan] { grid-column:1/-1; }
}
