:root {
  --nav: #101c2f;
  --nav-soft: #172741;
  --accent: #f47621;
  --accent-dark: #d95e0d;
  --blue: #9a6800;
  --green: #159a62;
  --red: #dc3f4d;
  --amber: #d98b13;
  --bg: #f3f6fa;
  --surface: #ffffff;
  --text: #192437;
  --muted: #66748a;
  --line: #e1e7ef;
  --shadow: 0 8px 24px rgba(20, 35, 60, .07);
  --shadow-lg: 0 20px 55px rgba(10, 25, 50, .16);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; font-family: "Segoe UI", Inter, Arial, sans-serif; color: var(--text); background: var(--bg); font-size: 15px; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }

/* Navegação */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: 260px; display: flex; flex-direction: column; padding: 24px 16px 18px; color: #fff; background: linear-gradient(180deg, #111e32 0%, #0c1728 100%); box-shadow: 12px 0 35px rgba(7, 18, 34, .12); }
.brand { display: block; padding: 0 7px 20px; color: #fff; text-decoration: none; }
.logo-crop { position: relative; display: block; overflow: hidden; background: #fff; }
.logo-crop img { display: block; width: 100%; height: auto; }
.sidebar-brand-logo { width: 100%; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; box-shadow: 0 10px 24px rgba(2,12,28,.24); }
.brand-mark { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #ff8b37, #e35d0c); box-shadow: 0 8px 18px rgba(244, 118, 33, .3); font-size: 14px; font-weight: 900; letter-spacing: .5px; }
.brand-mark.large { width: 52px; height: 52px; border-radius: 15px; font-size: 17px; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 19px; letter-spacing: 1.4px; }
.brand-copy small { color: #93a2b8; font-size: 11px; letter-spacing: .4px; }
.main-nav { display: flex; flex-direction: column; gap: 5px; flex: 1; overflow-y: auto; padding: 7px 0; }
.nav-label { padding: 7px 13px 4px; color: #6f819b; font-size: 10px; font-weight: 800; letter-spacing: 1.25px; }
.nav-label-spaced { margin-top: 12px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 8px 11px; border: 1px solid transparent; border-radius: 11px; color: #b8c4d5; text-decoration: none; font-weight: 600; transition: .18s ease; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.06); transform: translateX(2px); }
.nav-link.active { color: #fff; border-color: rgba(255,255,255,.07); background: linear-gradient(90deg, rgba(244,118,33,.2), rgba(244,118,33,.06)); }
.nav-link.active::before { content: ""; position: absolute; left: -16px; width: 4px; height: 25px; border-radius: 0 5px 5px 0; background: var(--accent); box-shadow: 0 0 15px rgba(244,118,33,.55); }
.nav-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; color: #cbd5e4; background: rgba(255,255,255,.07); font-size: 12px; font-weight: 800; }
.nav-link.active .nav-icon { color: #fff; background: var(--accent); }
.assistant-nav > small { margin-left: auto; padding: 3px 6px; border-radius: 999px; color: #ffd9c0; background: rgba(244,118,33,.16); font-size: 8px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; }
.assistant-nav.active > small { color: #fff; background: var(--accent); }
.sidebar-footer { padding: 15px 7px 0; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 4px 3px 13px; }
.sidebar-user > span:last-child { display: grid; gap: 2px; min-width: 0; }
.sidebar-user strong { overflow: hidden; text-overflow: ellipsis; font-size: 13px; white-space: nowrap; }
.sidebar-user small { color: #8192aa; font-size: 11px; }
.avatar { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; color: #fff; background: #263a58; font-size: 13px; font-weight: 800; }
.avatar.small { width: 30px; height: 30px; color: var(--nav); background: #e8eef7; border: 0; }
.logout-link { display: flex; justify-content: space-between; align-items: center; padding: 10px 8px; border-radius: 8px; color: #91a2b9; text-decoration: none; font-size: 13px; font-weight: 600; }
.logout-link:hover { color: #fff; background: rgba(255,255,255,.05); }
.sidebar-backdrop { display: none; }

/* Estrutura */
main { min-height: 100vh; margin-left: 260px; background: radial-gradient(circle at 95% 0%, rgba(255,192,0,.07), transparent 28%), var(--bg); }
.topbar { position: sticky; top: 0; z-index: 30; height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid rgba(217,225,235,.9); background: rgba(255,255,255,.88); backdrop-filter: blur(14px); }
.topbar-left,.topbar-right,.topbar-user { display: flex; align-items: center; }
.topbar-left { gap: 13px; }
.topbar-title { display: flex; align-items: center; gap: 11px; }
.topbar-title small { color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: 1.4px; }
.topbar-title strong { font-size: 14px; }
.topbar-brand-logo { width: 124px; flex: 0 0 auto; border: 1px solid #e1e7ef; border-radius: 8px; }
.topbar-right { gap: 20px; color: #4d5b70; font-size: 13px; font-weight: 600; }
.topbar-user { gap: 8px; }
.system-status { display: flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid #dfe8e3; border-radius: 999px; color: #317158; background: #f4fbf7; font-size: 11px; }
.system-status i { width: 7px; height: 7px; border-radius: 50%; background: #24ae74; box-shadow: 0 0 0 4px rgba(36,174,116,.12); }
.menu-toggle { display: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: #fff; box-shadow: none; }
.content { width: 100%; max-width: 1680px; margin: 0 auto; padding: 31px 36px 48px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 22px; }
.page-head h1 { margin: 3px 0 0; font-size: clamp(25px, 2.2vw, 32px); line-height: 1.15; letter-spacing: -.65px; }
.page-head p { margin: 7px 0 0; color: var(--muted); line-height: 1.5; }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: 1.45px; }

/* Botões e campos */
button,.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 9px 16px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #fb7b27, #e95f0c); box-shadow: 0 6px 14px rgba(231,95,14,.2); font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
button:hover,.button:hover { transform: translateY(-1px); box-shadow: 0 9px 20px rgba(231,95,14,.24); }
button:active,.button:active { transform: translateY(0); }
.secondary { color: #45536a; background: #e9eef5; box-shadow: none; }
.secondary:hover { background: #dfe6ef; box-shadow: none; }
input,select,textarea { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #ccd6e3; border-radius: 9px; outline: none; color: var(--text); background: #fff; transition: border-color .16s ease, box-shadow .16s ease; }
input::placeholder,textarea::placeholder { color: #98a4b5; }
input:focus,select:focus,textarea:focus { border-color: #f28a48; box-shadow: 0 0 0 4px rgba(244,118,33,.11); }
textarea { min-height: 96px; resize: vertical; }
label { color: #344156; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.form-grid label,.form-stack label { display: grid; align-content: start; gap: 7px; font-size: 13px; font-weight: 750; }
.form-stack { display: grid; gap: 15px; }
.wide { grid-column: 1/-1; }
.form-actions { display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding-top: 3px; }
.current-file { align-self: end; padding: 11px 0; color: var(--muted); font-size: 13px; }
.current-file a { color: var(--blue); font-weight: 750; }

/* Cards e painéis */
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.card,.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.card { position: relative; min-height: 119px; overflow: hidden; padding: 21px 22px; transition: transform .18s ease, box-shadow .18s ease; }
.card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #8ea0b8; }
.card:nth-child(1)::before { background: var(--blue); }
.card:nth-child(2)::before { background: #7657d8; }
.card:nth-child(3)::before { background: var(--green); }
.card:nth-child(4)::before { background: var(--red); }
.card:nth-child(5)::before { background: var(--amber); }
.card:nth-child(6)::before { background: #5d718d; }
.card:hover { transform: translateY(-2px); box-shadow: 0 13px 28px rgba(20,35,60,.1); }
.card span { display: block; color: var(--muted); font-size: 13px; font-weight: 650; }
.card span small { font-size: 10px; }
.card b { display: block; margin-top: 12px; font-size: 27px; line-height: 1.05; letter-spacing: -.5px; }
.card-receivable b { color: var(--green); }
.card-payable b { color: var(--red); }
.panel { padding: 21px; }
.panel h2 { margin: 0 0 16px; font-size: 16px; letter-spacing: -.2px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; margin-top: 18px; }
.line { display: flex; justify-content: space-between; gap: 13px; padding: 12px 0; border-top: 1px solid #edf0f4; font-size: 13px; }
.line span { min-width: 0; overflow: hidden; color: #48566b; text-overflow: ellipsis; white-space: nowrap; }
.line b { flex: 0 0 auto; font-size: 13px; }
.empty-state { padding: 24px; color: var(--muted); text-align: center; }
details.panel { margin-bottom: 17px; padding: 0; overflow: hidden; }
details.panel summary { padding: 18px 21px; border-bottom: 1px solid transparent; list-style: none; font-weight: 800; cursor: pointer; }
details.panel summary::-webkit-details-marker { display: none; }
details.panel summary::after { content: "+"; float: right; display: grid; place-items: center; width: 25px; height: 25px; margin-top: -4px; border-radius: 7px; color: var(--accent); background: #fff1e8; }
details.panel[open] summary { border-bottom-color: var(--line); }
details.panel[open] summary::after { content: "−"; }
details.panel .form-grid { border: 0; border-radius: 0; box-shadow: none; }

/* Agenda financeira do dia */
.today-due-panel { margin-top: 18px; }
.today-due-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.today-due-heading h2 { margin: 3px 0 0; font-size: 18px; }
.today-date { padding: 7px 11px; border: 1px solid #d5dde7; border-radius: 999px; color: #526277; background: #f7f9fc; font-size: 11px; font-weight: 800; }
.today-due-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.today-due-card { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.today-due-card header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.today-due-card header > div { display: grid; gap: 4px; }
.today-due-card header span { color: var(--muted); font-size: 12px; font-weight: 750; }
.today-due-card header b { font-size: 22px; }
.today-due-card header small { padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.today-payable header { border-left: 4px solid var(--red); background: #fff8f8; }
.today-payable header b { color: var(--red); }
.today-payable header small { color: #a92d39; background: #ffe4e7; }
.today-receivable header { border-left: 4px solid var(--green); background: #f6fcf9; }
.today-receivable header b { color: var(--green); }
.today-receivable header small { color: #087648; background: #dcf7e9; }
.today-due-list { max-height: 190px; overflow-y: auto; }
.today-due-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 16px; border-bottom: 1px solid #edf0f4; }
.today-due-row > span { display: grid; min-width: 0; gap: 3px; }
.today-due-row b { overflow: hidden; color: #304257; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.today-due-row small { overflow: hidden; color: #778598; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.today-due-row strong { flex: 0 0 auto; color: #263b51; font-size: 12px; }
.today-empty { padding: 18px 16px; color: var(--muted); font-size: 11px; text-align: center; }
.today-due-card > a { display: block; padding: 9px 16px; color: var(--blue); background: #fafbfd; font-size: 11px; font-weight: 800; text-align: right; text-decoration: none; }
.today-due-card > a:hover { text-decoration: underline; }

/* Saúde financeira */
.financial-health { min-height: 320px; margin-top: 18px; padding: 26px; background: linear-gradient(135deg,#fff 0%,#fffaf0 100%); }
.financial-health-head,.health-label,.health-legend { display: flex; align-items: center; }
.financial-health-head { justify-content: space-between; gap: 20px; }
.financial-health-head h2 { margin: 0; font-size: 20px; }
.financial-health-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.health-badge,.tag { display: inline-flex; align-items: center; width: max-content; border-radius: 999px; font-weight: 800; white-space: nowrap; }
.health-badge { padding: 8px 13px; font-size: 11px; }
.health-badge.positive,.status-success { color: #087648; background: #dcf7e9; }
.health-badge.warning,.status-warning { color: #98600b; background: #fff1cf; }
.health-badge.negative,.status-danger { color: #b62f3c; background: #ffe2e6; }
.status-info { color: #835800; background: #fff1b8; }
.health-content { display: grid; grid-template-columns: minmax(0,1fr) 300px; align-items: stretch; gap: 34px; margin-top: 25px; }
.health-chart { display: grid; align-content: center; gap: 23px; min-height: 190px; padding: 8px 0; }
.health-series { display: grid; gap: 8px; }
.health-series > small { color: #7b899b; font-size: 11px; }
.health-label { justify-content: space-between; gap: 18px; color: #35445a; font-size: 14px; }
.health-label span { display: flex; align-items: center; gap: 9px; font-weight: 750; }
.health-label b { color: #172b45; font-size: 18px; }
.health-label i { flex: 0 0 auto; width: 11px; height: 11px; border-radius: 50%; }
.health-track { height: 27px; overflow: hidden; border: 1px solid #dde5ef; border-radius: 8px; background: #edf2f7; box-shadow: inset 0 1px 2px rgba(20,43,72,.07); }
.health-bar { display: block; min-width: 4px; height: 100%; border-radius: 7px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.07); }
.health-bar.income { background: linear-gradient(90deg,#118f59,#42c388); }
.health-bar.expense { background: linear-gradient(90deg,#d93848,#f06b77); }
.health-scale { display: flex; justify-content: space-between; margin-top: -12px; color: #8996a6; font-size: 10px; }
.health-summary { position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 9px; min-width: 0; padding: 24px; overflow: hidden; border: 1px solid #dfe7f1; border-radius: 13px; background: #fff; box-shadow: 0 9px 24px rgba(31,55,84,.07); text-align: center; }
.health-summary::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg,#118f59,#e9b63d,#d93848); }
.health-summary span,.health-summary small { color: var(--muted); }
.health-summary span { font-size: 12px; font-weight: 800; letter-spacing: .45px; text-transform: uppercase; }
.health-summary strong { font-size: 30px; line-height: 1.1; }
.health-summary small { font-size: 12px; }
.health-summary small b { color: #435168; }
.health-summary p { max-width: 225px; margin: 2px 0 0; color: #69788c; font-size: 11px; line-height: 1.45; }
.positive-text { color: var(--green); }
.negative-text { color: var(--red); }
.health-legend { gap: 22px; margin-top: 18px; color: var(--muted); font-size: 12px; }
.health-legend span { display: flex; align-items: center; gap: 6px; }
.health-legend i { width: 9px; height: 9px; border-radius: 50%; }
.income-dot { background: var(--green); }
.expense-dot { background: var(--red); }

/* Filtros */
.filters { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.filters input { flex: 1; }
.filters select { max-width: 265px; }
.month-filter,.month-picker-form { display: flex; align-items: center; gap: 8px; }
.month-picker { display: flex; align-items: center; min-width: 305px; height: 42px; overflow: hidden; border: 1px solid #ccd6e3; border-radius: 10px; background: #fff; box-shadow: 0 4px 12px rgba(25,45,75,.04); }
.month-picker > strong { flex: 1; padding: 0 12px; text-align: center; white-space: nowrap; }
.calendar-button { position: relative; display: grid; place-items: center; width: 112px; height: 100%; border-left: 1px solid #d8e0ea; color: var(--blue); background: #f7f9fc; cursor: pointer; }
.calendar-button span { font-size: 11px; font-weight: 800; }
.calendar-button input { position: absolute; inset: 0; height: 100%; opacity: 0; cursor: pointer; }
.month-arrow { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #ccd6e3; border-radius: 10px; color: #435168; background: #fff; font-size: 24px; line-height: 1; text-decoration: none; transition: .16s ease; }
.month-arrow:hover { color: var(--accent); border-color: #f4a16b; transform: translateY(-1px); }
.month-arrow.disabled { pointer-events: none; opacity: .35; }
.apply-month { min-height: 42px; }

/* Tabelas e ações */
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.table-wrap.borderless { border: 0; border-radius: 10px; box-shadow: none; }
table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; }
th,td { padding: 14px 15px; border-bottom: 1px solid #e8edf3; text-align: left; vertical-align: middle; }
th { position: sticky; top: 0; z-index: 2; color: #718096; background: #f7f9fc; font-size: 10px; font-weight: 850; letter-spacing: .7px; text-transform: uppercase; white-space: nowrap; }
td { color: #3d4a5f; font-size: 13px; }
tbody tr { transition: background .14s ease; }
tbody tr:hover { background: #fbfcfe; }
tbody tr:last-child td { border-bottom: 0; }
.tag { padding: 6px 9px; color: #58677d; background: #edf1f6; font-size: 10px; }
.record-actions,.actions,.inline { display: flex; align-items: center; gap: 9px; }
.record-actions { min-width: max-content; }
.record-actions form { margin: 0; }
.record-actions a,.actions a,.edit-link,.link-btn { color: var(--blue); background: none; box-shadow: none; font-size: 12px; font-weight: 800; text-decoration: none; }
.link-btn { min-height: auto; padding: 3px 0; border-radius: 0; }
.link-btn:hover { transform: none; box-shadow: none; text-decoration: underline; }
.danger-link { color: var(--red)!important; }
.inline input { width: 108px; min-height: 36px; padding: 7px 9px; }
.inline input[type="date"] { width: 136px; }
.inline button { min-height: 36px; padding: 7px 11px; border-radius: 8px; font-size: 11px; }
.split { display: grid; grid-template-columns: 350px minmax(0,1fr); gap: 18px; align-items: start; }
.text-center { text-align: center; }

/* Avisos */
.alert { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; padding: 13px 15px; border: 1px solid transparent; border-radius: 11px; box-shadow: 0 5px 14px rgba(20,35,60,.05); font-size: 13px; font-weight: 650; }
.alert button { min-height: auto; padding: 0; color: currentColor; background: transparent; box-shadow: none; font-size: 20px; }
.alert button:hover { transform: none; box-shadow: none; }
.alert.success { color: #0b6e45; border-color: #bae8d0; background: #e8f8f0; }
.alert.danger { color: #a92d39; border-color: #f3c2c8; background: #ffebee; }
.alert.warning { color: #8d5a0c; border-color: #f0d9a0; background: #fff6dc; }

/* Parcelamentos e recorrências */
.recurrence-box { display: grid; grid-template-columns: minmax(220px,1fr) 190px 140px; align-items: end; gap: 16px; padding: 17px 18px; border: 1px solid #dce6f2; border-radius: 12px; background: linear-gradient(135deg,#f7faff,#fff); }
.recurrence-box > div { align-self: center; display: grid; gap: 4px; }
.recurrence-box strong { color: #24334a; font-size: 14px; }
.recurrence-box small { color: var(--muted); line-height: 1.4; }

/* Fluxo de caixa */
.horizon-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: var(--shadow); }
.horizon-tabs a { padding: 8px 13px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 800; }
.horizon-tabs a.active { color: #fff; background: var(--nav-soft); }
.balance-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 17px; padding: 20px 22px; border: 1px solid #dce5ef; border-radius: var(--radius); background: linear-gradient(120deg,#fff,#f7faff); box-shadow: var(--shadow); }
.balance-panel > div:first-child { display: grid; gap: 4px; }
.balance-panel span,.balance-panel small { color: var(--muted); }
.balance-panel strong { font-size: 25px; }
.balance-input { display: flex; align-items: center; gap: 9px; width: min(430px,100%); }
.balance-input input { min-width: 0; }
.cash-cards { margin-bottom: 18px; }
.forecast-panel { margin-bottom: 18px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.section-head h2 { margin: 0 0 4px; font-size: 17px; }
.section-head p { margin: 0; color: var(--muted); font-size: 13px; }
.forecast-row { display: grid; grid-template-columns: 65px minmax(0,1fr) 170px; align-items: center; gap: 20px; padding: 17px 0; border-top: 1px solid #e8edf3; }
.forecast-days { display: grid; justify-items: center; padding: 9px; border-radius: 10px; color: #fff; background: var(--nav-soft); }
.forecast-days strong { font-size: 21px; line-height: 1; }
.forecast-days span { margin-top: 2px; font-size: 10px; }
.forecast-bars { display: grid; gap: 11px; }
.forecast-bars > div { display: grid; grid-template-columns: 60px minmax(100px,1fr) 120px; align-items: center; gap: 11px; }
.forecast-bars span { color: var(--muted); font-size: 11px; font-weight: 750; }
.forecast-bars b { font-size: 12px; text-align: right; }
.forecast-bars .health-track { height: 9px; }
.forecast-balance { display: grid; gap: 4px; justify-items: end; }
.forecast-balance span { color: var(--muted); font-size: 11px; }
.forecast-balance strong { font-size: 17px; }
.flow-events { margin-top: 18px; }
.flow-type { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 850; }
.flow-in { color: #087648; background: #dcf7e9; }
.flow-out { color: #ad2e3b; background: #ffe3e7; }

/* Ordens de serviço */
.table-note { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 600; }
.linked-label { padding: 4px 7px; border-radius: 7px; color: #087648; background: #dcf7e9; font-size: 10px; font-weight: 850; }

/* Resumo de reembolsos em aberto */
.reimbursement-overview { margin-bottom: 18px; overflow: hidden; border: 1px solid #d9e2ee; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.reimbursement-overview-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 22px; color: #fff; background: linear-gradient(120deg,#765000,#a87400); }
.reimbursement-overview-head > div { display: grid; gap: 4px; }
.reimbursement-overview-head span { color: #9fb0c7; font-size: 10px; font-weight: 900; letter-spacing: 1.15px; }
.reimbursement-overview-head strong { font-size: 27px; line-height: 1.05; }
.reimbursement-overview-head small { color: #aebcd0; text-align: right; }
.collaborator-totals { display: grid; grid-template-columns: repeat(auto-fit,minmax(330px,1fr)); gap: 1px; background: var(--line); }
.collaborator-total { display: grid; grid-template-columns: minmax(0,1fr) minmax(180px,auto); align-items: center; gap: 18px; min-height: 112px; padding: 17px 19px; background: #fff; }
.collaborator-person { display: flex; align-items: center; gap: 11px; min-width: 0; }
.collaborator-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: #b64d0b; background: #fff0e5; font-size: 14px; font-weight: 900; }
.collaborator-person > div { display: grid; gap: 3px; min-width: 0; }
.collaborator-person > div strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.collaborator-total small { color: var(--muted); font-size: 10px; }
.collaborator-values { display: grid; gap: 5px; min-width: 180px; }
.collaborator-values > span { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 10px; }
.collaborator-values > span b { color: #4d5b70; font-size: 11px; }
.collaborator-values .advance-text { color: var(--blue); }
.payable-total,.credit-total { margin-top: 3px; padding-top: 7px; border-top: 1px solid var(--line); font-size: 13px; text-align: right; white-space: nowrap; }
.payable-total { color: var(--red); }
.credit-total { color: var(--green); }
.empty-open-total { padding: 20px; color: var(--muted); background: #fff; text-align: center; }
.advance-help { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; }
.advance-list-panel { margin-bottom: 17px; }

/* Contratos e origem das receitas */
.contract-overview { margin-bottom: 10px; overflow: hidden; border: 1px solid #cfdce7; border-radius: 5px; background: #fff; }
.contract-overview-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 14px; color: #30240a; background: linear-gradient(120deg,#ffc000,#ffd65a); }
.contract-overview-head > div { display: grid; gap: 3px; }
.contract-overview-head span { color: #704d00; font-size: 9px; font-weight: 900; letter-spacing: 1px; }
.contract-overview-head strong { font-size: 22px; line-height: 1.05; }
.contract-overview-head small { color: #644600; font-size: 10px; text-align: right; }
.contract-totals { display: grid; grid-template-columns: repeat(auto-fit,minmax(340px,1fr)); gap: 1px; background: #d7e0e8; }
.contract-total { display: grid; grid-template-columns: minmax(0,1fr) minmax(165px,auto); gap: 10px 16px; padding: 11px 12px 9px; background: #fff; }
.contract-main { display: flex; align-items: flex-start; gap: 9px; min-width: 0; }
.contract-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 4px; color: #835800; background: #fff1b8; font-size: 13px; font-weight: 900; }
.contract-main > div { display: grid; gap: 3px; min-width: 0; }
.contract-name-line { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.contract-name-line strong { color: #143a52; font-size: 13px; }
.contract-main small { overflow: hidden; color: #657887; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.contract-validity { color: #697c8b; font-size: 9px; }
.contract-values { display: grid; align-content: start; gap: 4px; min-width: 165px; }
.contract-values > span { display: flex; justify-content: space-between; gap: 12px; color: #6b7b88; font-size: 9px; }
.contract-values > span b { color: #314e61; font-size: 10px; }
.contract-values .received-text { color: #087648; }
.contract-values > strong { margin-top: 2px; padding-top: 5px; border-top: 1px solid #dfe6eb; color: #a96700; font-size: 12px; text-align: right; }
.contract-card-footer { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 7px; border-top: 1px solid #e1e7ec; }
.contract-card-footer > small { color: #778792; font-size: 9px; }
.income-source-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 8px; }
.income-source { position: relative; min-height: 68px; overflow: hidden; padding: 9px 12px 8px 15px; border: 1px solid #d6dfe6; border-radius: 4px; background: #fff; }
.income-source::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; }
.income-source.fixed-income::before { background: #159a62; }
.income-source.sporadic-income::before { background: #7a55c5; }
.income-source span { color: #61717e; font-size: 9px; font-weight: 800; letter-spacing: .35px; }
.income-source strong { display: block; margin-top: 3px; color: #17384e; font-size: 18px; }
.income-source small { display: block; margin-top: 3px; color: #7a8792; font-size: 9px; }
.income-origin-tag { display: inline-flex; padding: 3px 6px; border-radius: 2px; font-size: 8px; font-weight: 850; }
.income-origin-tag.fixed { color: #087648; background: #dcf7e9; }
.income-origin-tag.sporadic { color: #65419f; background: #eee7fb; }
.income-origin-name { display: block; max-width: 145px; margin-top: 3px; overflow: hidden; color: #71818d; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }

/* Assistente inteligente */
.assistant-page-head { align-items: center; }
.assistant-connection { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid; border-radius: 999px; font-size: 11px; font-weight: 850; white-space: nowrap; }
.assistant-connection i { width: 8px; height: 8px; border-radius: 50%; }
.assistant-connection.online { color: #087648; border-color: #bee8d3; background: #edfbf4; }
.assistant-connection.online i { background: #24ae74; box-shadow: 0 0 0 4px rgba(36,174,116,.13); }
.assistant-connection.offline { color: #9a6109; border-color: #eed7a0; background: #fff7df; }
.assistant-connection.offline i { background: #e2a332; box-shadow: 0 0 0 4px rgba(226,163,50,.13); }
.assistant-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); align-items: stretch; gap: 17px; }
.assistant-sidebar { display: flex; flex-direction: column; min-height: 670px; padding: 14px; }
.new-chat-button { width: 100%; justify-content: flex-start; box-shadow: none; }
.new-chat-button span { font-size: 20px; font-weight: 400; line-height: 1; }
.assistant-history-title { margin: 22px 8px 8px; color: #8a96a7; font-size: 9px; font-weight: 900; letter-spacing: 1.1px; }
.assistant-thread-list { display: grid; gap: 5px; max-height: 270px; overflow-y: auto; padding-right: 2px; }
.assistant-thread-list form { margin: 0; }
.assistant-thread { display: grid; justify-content: stretch; width: 100%; min-height: 0; padding: 10px 11px; border-radius: 9px; color: #58677d; background: transparent; box-shadow: none; text-align: left; }
.assistant-thread:hover { color: #25354c; background: #f3f6fa; box-shadow: none; transform: none; }
.assistant-thread.active { color: #33280e; background: #fff4cc; box-shadow: inset 3px 0 #ffc000; }
.assistant-thread span { overflow: hidden; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.assistant-thread small { margin-top: 3px; color: #95a0af; font-size: 9px; }
.assistant-capabilities { display: grid; gap: 9px; margin-top: auto; padding: 16px 10px; border-top: 1px solid var(--line); color: #69778b; font-size: 11px; }
.assistant-capabilities strong { margin-bottom: 2px; color: #344156; font-size: 12px; }
.assistant-capabilities span { display: flex; align-items: center; gap: 7px; }
.assistant-capabilities i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: #087648; background: #dcf7e9; font-size: 9px; font-style: normal; font-weight: 900; }
.assistant-settings { margin: 3px 0 0; border-top: 1px solid var(--line); }
.assistant-settings summary { padding: 13px 9px 6px; color: #7b8798; font-size: 10px; font-weight: 800; cursor: pointer; }
.assistant-settings-form { display: grid; gap: 9px; padding: 8px; }
.assistant-settings-form label { display: grid; gap: 5px; color: #657286; font-size: 10px; font-weight: 750; }
.assistant-settings-form input { min-height: 36px; padding: 7px 9px; font-size: 11px; }
.assistant-settings-form button { min-height: 35px; padding: 7px 9px; font-size: 10px; }
.assistant-chat { display: flex; flex-direction: column; min-width: 0; height: calc(100vh - 175px); min-height: 670px; padding: 0; overflow: hidden; }
.assistant-chat-header { display: flex; align-items: center; gap: 11px; min-height: 67px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.assistant-avatar { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; color: #fff; background: linear-gradient(145deg,#ff8b37,#e35d0c); box-shadow: 0 7px 16px rgba(244,118,33,.22); font-size: 12px; font-weight: 900; }
.assistant-chat-header > div:nth-child(2) { display: grid; gap: 2px; }
.assistant-chat-header strong { font-size: 13px; }
.assistant-chat-header small { color: var(--muted); font-size: 10px; }
.assistant-safe-badge { margin-left: auto; padding: 6px 9px; border-radius: 999px; color: #835800; background: #fff4cc; font-size: 9px; font-weight: 850; }
.assistant-messages { flex: 1; min-height: 0; overflow-y: auto; padding: 26px clamp(18px,3vw,45px); background: radial-gradient(circle at 80% 0%,rgba(255,192,0,.07),transparent 30%),#fffdf8; scroll-behavior: smooth; }
.assistant-welcome { display: grid; place-items: center; max-width: 690px; margin: 8vh auto 0; text-align: center; }
.assistant-welcome-mark { display: grid; place-items: center; width: 55px; height: 55px; border-radius: 17px; color: #2d240e; background: linear-gradient(145deg,#ffd24a,#ffc000); box-shadow: 0 14px 30px rgba(131,88,0,.2); font-size: 15px; font-weight: 900; }
.assistant-welcome h2 { margin: 19px 0 7px; font-size: 24px; letter-spacing: -.4px; }
.assistant-welcome > p { max-width: 580px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.assistant-suggestions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; width: 100%; margin-top: 24px; }
.assistant-suggestions button { justify-content: flex-start; min-height: 48px; padding: 11px 14px; border: 1px solid #e0e7ef; color: #415169; background: #fff; box-shadow: 0 5px 15px rgba(20,35,60,.04); font-size: 11px; text-align: left; }
.assistant-suggestions button:hover { color: #18283f; border-color: #c9d7e8; box-shadow: 0 8px 20px rgba(20,35,60,.07); }
.assistant-suggestions .budget-suggestion { grid-column: 1/-1; color: #a44b13; border-color: #f2d4bf; background: linear-gradient(120deg,#fff7f1,#fff); }
.assistant-suggestions .budget-suggestion::before { content: "O"; display: grid; place-items: center; flex: 0 0 auto; width: 27px; height: 27px; margin-right: 2px; border-radius: 8px; color: #fff; background: var(--accent); font-size: 10px; font-weight: 900; }
.assistant-suggestions .finance-suggestion { grid-column: 1/-1; color: #087648; border-color: #bee9d4; background: linear-gradient(120deg,#effcf6,#fff); }
.assistant-suggestions .finance-suggestion::before { content: "R$"; display: grid; place-items: center; flex: 0 0 auto; width: 29px; height: 27px; margin-right: 2px; border-radius: 8px; color: #fff; background: #169b68; font-size: 9px; font-weight: 900; }
.assistant-suggestions .inventory-suggestion { grid-column: 1/-1; color: #89520b; border-color: #f0d29a; background: linear-gradient(120deg,#fff8e8,#fff); }
.assistant-suggestions .inventory-suggestion::before { content: "A"; display: grid; place-items: center; flex: 0 0 auto; width: 29px; height: 27px; margin-right: 2px; border-radius: 8px; color: #fff; background: #d58615; font-size: 10px; font-weight: 900; }
.assistant-suggestions .production-suggestion { grid-column: 1/-1; color: #6f4200; border-color: #e9bd52; background: linear-gradient(120deg,#fff4cf,#fff); }
.assistant-suggestions .production-suggestion::before { content: "OP"; display: grid; place-items: center; flex: 0 0 auto; width: 29px; height: 27px; margin-right: 2px; border-radius: 8px; color: #4f3300; background: #ffc107; font-size: 9px; font-weight: 900; }
.assistant-setup-card { max-width: 630px; margin: 4vh auto 0; padding: 29px; border: 1px solid #dce4ef; border-radius: 18px; background: #fff; box-shadow: 0 15px 38px rgba(20,35,60,.08); text-align: center; }
.setup-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto; border-radius: 14px; color: #fff; background: linear-gradient(145deg,#ff8b37,#e35d0c); font-size: 22px; }
.assistant-setup-card h2 { margin: 16px 0 7px; }
.assistant-setup-card > p { margin: 0 auto; color: var(--muted); font-size: 12px; line-height: 1.6; }
.assistant-setup-form { display: grid; grid-template-columns: minmax(0,1fr) 150px; gap: 11px; margin-top: 21px; text-align: left; }
.assistant-setup-form label { display: grid; gap: 6px; color: #45536a; font-size: 11px; font-weight: 800; }
.assistant-setup-form button { grid-column: 1/-1; }
.assistant-setup-card > small { display: block; margin-top: 14px; color: #8995a5; line-height: 1.5; }
.assistant-setup-card a { color: var(--blue); font-weight: 750; }
.assistant-message { display: flex; align-items: flex-start; gap: 10px; max-width: 880px; margin: 0 auto 25px; }
.assistant-message.user { flex-direction: row-reverse; }
.message-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 31px; height: 31px; border-radius: 9px; color: #2d240e; background: #ffc000; font-size: 9px; font-weight: 900; }
.assistant-message.user .message-avatar { color: #935014; background: #ffeadb; }
.message-body { min-width: 0; max-width: min(760px,87%); }
.assistant-message.user .message-body { display: grid; justify-items: end; }
.message-meta { display: flex; align-items: center; gap: 8px; margin: 0 3px 6px; color: #8490a1; font-size: 9px; }
.message-meta strong { color: #4d5b70; font-size: 10px; }
.assistant-message.user .message-meta { flex-direction: row-reverse; }
.message-copy { padding: 12px 14px; border: 1px solid #e0e7ef; border-radius: 4px 14px 14px 14px; color: #344156; background: #fff; box-shadow: 0 5px 15px rgba(20,35,60,.035); font-size: 13px; line-height: 1.62; white-space: pre-wrap; }
.assistant-message.user .message-copy { color: #2d240e; border-color: #dca700; border-radius: 14px 4px 14px 14px; background: #ffd24a; }
.message-attachments { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.message-attachments a { display: flex; align-items: center; gap: 7px; max-width: 310px; padding: 8px 10px; border: 1px solid #dce4ed; border-radius: 10px; color: #415169; background: #fff; text-decoration: none; }
.message-attachments a > span:first-child { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: #835800; background: #fff1b8; font-size: 11px; }
.message-attachments a > span:last-child { display: grid; min-width: 0; overflow: hidden; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.message-attachments small { color: #94a0b0; font-size: 8px; }
.assistant-action-card { width: min(700px,100%); margin-top: 11px; overflow: hidden; border: 1px solid #dce4ed; border-radius: 13px; background: #fff; box-shadow: 0 9px 24px rgba(20,35,60,.07); }
.assistant-action-card > header { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-bottom: 1px solid #e7ecf2; background: #f8fafe; }
.action-icon { display: grid; place-items: center; flex: 0 0 auto; width: 31px; height: 31px; border-radius: 9px; color: #2d240e; background: #ffc000; font-size: 19px; }
.assistant-action-card > header > div { display: grid; gap: 2px; min-width: 0; }
.assistant-action-card > header small { color: #7c899a; font-size: 8px; font-weight: 900; letter-spacing: .8px; }
.assistant-action-card > header strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.action-status { margin-left: auto; padding: 5px 8px; border-radius: 999px; color: #97610b; background: #fff0ca; font-size: 8px; font-weight: 850; }
.assistant-action-card.confirmed .action-status { color: #087648; background: #dcf7e9; }
.assistant-action-card.cancelled .action-status { color: #6c7787; background: #e9edf2; }
.action-content { display: grid; gap: 10px; max-height: 320px; overflow-y: auto; padding: 13px 14px; }
.action-entity { display: flex; justify-content: space-between; padding: 9px 10px; border-radius: 9px; color: #617086; background: #f5f7fa; font-size: 10px; }
.action-entity strong { color: #26364d; }
.action-record { padding: 10px; border: 1px solid #e7ecf2; border-radius: 9px; }
.action-record > b { display: block; margin-bottom: 7px; color: #344156; font-size: 10px; }
.action-record > p { margin: 0; color: #58677d; font-size: 11px; }
.action-record dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px 13px; margin: 0; }
.action-record dl div { display: grid; gap: 2px; min-width: 0; }
.action-record dt { color: #909bad; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.action-record dd { overflow-wrap: anywhere; margin: 0; color: #3f4e63; font-size: 10px; }
.assistant-action-card > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 11px 14px; border-top: 1px solid #e7ecf2; background: #fbfcfe; }
.assistant-action-card > footer form { margin: 0; }
.assistant-action-card > footer button { min-height: 35px; padding: 7px 11px; font-size: 10px; }
.assistant-composer { flex: 0 0 auto; padding: 12px 16px 10px; border-top: 1px solid var(--line); background: #fff; }
.composer-row { display: flex; align-items: flex-end; gap: 9px; padding: 7px; border: 1px solid #cfd9e5; border-radius: 14px; background: #fff; box-shadow: 0 5px 16px rgba(20,35,60,.045); transition: .16s ease; }
.composer-row:focus-within { border-color: #f28a48; box-shadow: 0 0 0 4px rgba(244,118,33,.1); }
.attach-button { position: relative; display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; color: #617086; background: #edf1f6; cursor: pointer; }
.attach-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.attach-button span { font-size: 21px; line-height: 1; }
.assistant-composer textarea { flex: 1; min-height: 38px; max-height: 150px; padding: 9px 4px 7px; border: 0; border-radius: 0; box-shadow: none; font-size: 13px; resize: none; }
.assistant-composer textarea:focus { box-shadow: none; }
.send-button { flex: 0 0 auto; min-height: 38px; padding: 8px 9px 8px 13px; box-shadow: none; }
.send-button b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; color: #d55b0d; background: #fff; font-size: 13px; }
.send-button.loading span { font-size: 0; }
.send-button.loading span::after { content: "Processando"; font-size: 11px; }
.send-button:disabled,.attach-button:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.composer-files { display: flex; flex-wrap: wrap; gap: 6px; }
.composer-files:not(:empty) { padding: 0 2px 9px; }
.composer-files > span { max-width: 240px; overflow: hidden; padding: 6px 8px; border-radius: 8px; color: #835800; background: #fff4cc; font-size: 9px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.composer-footer { display: flex; justify-content: space-between; gap: 20px; padding: 7px 4px 0; color: #929dae; font-size: 8px; }
.composer-error { color: var(--red); font-weight: 750; }

/* Login */
.auth-body { background: #0d1829; }
.login-main { display: grid; min-height: 100vh; margin: 0; place-items: center; background: radial-gradient(circle at 18% 18%, rgba(244,118,33,.19), transparent 28%), radial-gradient(circle at 85% 85%, rgba(255,192,0,.2), transparent 32%), linear-gradient(145deg,#2f2a1b,#15130e); }
.login-main .content { display: grid; place-items: center; padding: 25px; }
.login-card { width: min(450px,94vw); padding: 32px; border: 1px solid rgba(255,255,255,.75); border-radius: 20px; background: rgba(255,255,255,.98); box-shadow: var(--shadow-lg); }
.login-brand { display: flex; align-items: center; justify-content: center; margin-bottom: 25px; }
.login-brand-logo { width: min(340px,100%); border: 0; border-radius: 0; box-shadow: none; }
.login-brand > div { display: grid; gap: 2px; }
.login-brand strong { font-size: 20px; letter-spacing: 1.5px; }
.login-brand small { color: var(--muted); font-size: 11px; }
.login-heading h1 { margin: 6px 0 7px; font-size: 27px; letter-spacing: -.5px; }
.login-heading p { margin: 0 0 23px; color: var(--muted); line-height: 1.5; }
.login-card form { display: grid; gap: 16px; }
.login-card label { display: grid; gap: 7px; font-size: 13px; font-weight: 750; }
.login-card form button { justify-content: space-between; width: 100%; margin-top: 4px; padding-inline: 18px; }
.login-help { display: block; margin-top: 20px; color: #8491a3; text-align: center; font-size: 11px; }

@media (max-width: 1120px) {
  .sidebar { transform: translateX(-102%); transition: transform .22s ease; }
  body.menu-open .sidebar { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(5,14,28,.48); backdrop-filter: blur(2px); }
  body.menu-open .sidebar-backdrop { display: block; }
  main { margin-left: 0; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .page-head { align-items: flex-start; flex-direction: column; }
  .assistant-chat { height: calc(100vh - 205px); }
}

@media (max-width: 760px) {
  .topbar { height: 64px; padding: 0 16px; }
  .system-status,.topbar-user { display: none; }
  .content { padding: 22px 15px 38px; }
  .page-head { gap: 15px; }
  .page-head h1 { font-size: 25px; }
  .cards,.grid-3,.split,.form-grid { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  .card { min-height: 106px; }
  .month-filter,.month-picker-form { width: 100%; flex-wrap: wrap; }
  .month-picker-form { flex: 1; }
  .month-picker { min-width: 235px; flex: 1; }
  .month-filter > .secondary { flex: 1; }
  .filters { align-items: stretch; flex-direction: column; }
  .filters select { max-width: none; }
  .health-content { grid-template-columns: 1fr; align-items: stretch; gap: 18px; }
  .health-summary { min-width: 0; padding: 18px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .health-legend { align-items: flex-start; flex-direction: column; gap: 8px; }
  .record-actions { align-items: flex-start; flex-direction: column; }
  .reimbursement-overview-head { align-items: flex-start; flex-direction: column; }
  .reimbursement-overview-head small { text-align: left; }
  .collaborator-totals { grid-template-columns: 1fr; }
  .collaborator-total { grid-template-columns: 1fr; }
  .collaborator-values { min-width: 0; padding-top: 12px; border-top: 1px solid var(--line); }
  .recurrence-box { grid-template-columns: 1fr; align-items: stretch; }
  .balance-panel,.balance-input { align-items: stretch; flex-direction: column; }
  .forecast-row { grid-template-columns: 52px minmax(0,1fr); gap: 13px; }
  .forecast-bars > div { grid-template-columns: 1fr; gap: 5px; }
  .forecast-bars b { text-align: left; }
  .forecast-balance { grid-column: 1/-1; grid-template-columns: 1fr auto; justify-items: stretch; padding-top: 10px; border-top: 1px dashed var(--line); }
  .inline { align-items: stretch; flex-direction: column; }
  .inline input,.inline input[type="date"] { width: 100%; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions .button,.form-actions button { width: 100%; }
  .assistant-layout { grid-template-columns: 1fr; }
  .assistant-sidebar { min-height: 0; }
  .assistant-history-title,.assistant-thread-list,.assistant-capabilities { display: none; }
  .assistant-settings { margin-top: 9px; }
  .assistant-chat { height: calc(100vh - 270px); min-height: 620px; }
  .assistant-messages { padding: 20px 12px; }
  .assistant-safe-badge { display: none; }
  .assistant-suggestions { grid-template-columns: 1fr; }
  .assistant-welcome { margin-top: 3vh; }
  .assistant-setup-card { margin-top: 0; padding: 22px 17px; }
  .assistant-setup-form { grid-template-columns: 1fr; }
  .assistant-setup-form button { grid-column: auto; }
  .message-body { max-width: 90%; }
  .action-record dl { grid-template-columns: 1fr; }
  .assistant-action-card > footer { align-items: stretch; flex-direction: column-reverse; }
  .assistant-action-card > footer form,.assistant-action-card > footer button { width: 100%; }
  .send-button span { display: none; }
  .composer-footer span:last-child { display: none; }
}

/* Layout compacto tipo ERP/planilha */
:root {
  --nav: #9a6800;
  --nav-soft: #9a6800;
  --menu: #ffc000;
  --menu-dark: #dea600;
  --menu-ink: #272114;
  --accent: #d62831;
  --accent-dark: #b81f27;
  --blue: #9a6800;
  --bg: #edf0f3;
  --line: #cfd5dc;
  --shadow: none;
  --radius: 5px;
}

.app-body { color: #172b3f; background: var(--bg); font-size: 13px; }
.app-body .sidebar {
  position: sticky;
  inset: auto;
  top: 0;
  z-index: 60;
  width: 100%;
  height: 64px;
  min-height: 64px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  color: var(--menu-ink);
  background: linear-gradient(90deg,#ffc000,#ffc928);
  box-shadow: 0 2px 7px rgba(125,91,0,.22);
  transform: none!important;
}
.app-body .brand {
  display: flex;
  align-items: center;
  flex: 0 0 170px;
  height: 64px;
  padding: 5px 13px;
  background: #fff;
  border-right: 1px solid rgba(0,0,0,.08);
}
.app-body .sidebar-brand-logo { width: 145px; border: 0; border-radius: 0; box-shadow: none; }
.app-body .main-nav {
  display: flex;
  flex: 1 1 auto;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 5px;
  scrollbar-width: thin;
  scrollbar-color: #a97c00 #ffd347;
}
.app-body .nav-label { display: none; }
.app-body .nav-link {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 64px;
  padding: 0 8px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: var(--menu-ink);
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.app-body .nav-link:hover { color: #17130a; background: rgba(122,83,0,.12); transform: none; }
.app-body .nav-link.active { color: #8d1e25; border-bottom-color: #d62831; background: #fff; }
.app-body .nav-link.active::before { display: none; }
.app-body .nav-icon { display: none; }
.app-body .assistant-nav > small { display: none; }
.app-body .sidebar-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  margin-left: auto;
  padding: 0 12px;
  border-top: 0;
  border-left: 1px solid rgba(92,63,0,.2);
}
.app-body .sidebar-user { display: none; }
.app-body .logout-link { min-width: max-content; padding: 8px; color: var(--menu-ink); font-size: 11px; }
.app-body .logout-link:hover { color: #8d1e25; background: rgba(122,83,0,.12); }
.app-body .sidebar-backdrop { display: none!important; }

.app-body main { min-height: calc(100vh - 64px); margin-left: 0; background: var(--bg); }
.app-body .topbar {
  position: sticky;
  top: 64px;
  z-index: 40;
  height: 42px;
  padding: 0 18px;
  border-bottom: 3px solid var(--menu);
  background: rgba(255,255,255,.97);
  backdrop-filter: none;
}
.app-body .topbar-title { display: flex; align-items: center; }
.app-body .topbar-title strong { color: #365064; font-size: 12px; font-weight: 650; }
.app-body .topbar-right { gap: 14px; font-size: 11px; }
.app-body .system-status { padding: 4px 8px; border-radius: 3px; font-size: 9px; }
.app-body .avatar.small { width: 24px; height: 24px; font-size: 9px; }
.app-body .menu-toggle { display: none!important; }
.app-body .content { width: 100%; max-width: none; padding: 12px 18px 34px; }

.app-body .page-head {
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.app-body .page-head h1 { margin: 1px 0 0; font-size: 21px; line-height: 1.1; letter-spacing: -.25px; }
.app-body .page-head p { margin: 3px 0 0; font-size: 11px; line-height: 1.35; }
.app-body .eyebrow { font-size: 8px; letter-spacing: 1px; }

.app-body button,.app-body .button {
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 3px;
  color: #272114;
  background: #ffc000;
  box-shadow: none;
  font-size: 11px;
  font-weight: 700;
}
.app-body button:hover,.app-body .button:hover { background: #dea600; box-shadow: none; transform: none; }
.app-body .secondary { color: #344a5e; background: #e2e6ea; }
.app-body .secondary:hover { background: #d5dae0; }
.app-body input,.app-body select,.app-body textarea {
  min-height: 32px;
  padding: 6px 8px;
  border-color: #bfc7cf;
  border-radius: 2px;
  font-size: 12px;
}
.app-body input:focus,.app-body select:focus,.app-body textarea:focus { border-color: #d69e00; box-shadow: 0 0 0 2px rgba(255,192,0,.18); }
.app-body textarea { min-height: 70px; }
.app-body label { font-size: 11px; }
.app-body .form-grid {
  grid-template-columns: repeat(4,minmax(150px,1fr));
  gap: 10px 12px;
  padding: 13px;
  border-radius: 4px;
  box-shadow: none;
}
.app-body .form-grid label,.app-body .form-stack label { gap: 4px; font-size: 11px; }
.app-body .form-grid label > small { color: #7a8792; font-size: 9px; font-weight: 500; }
.app-body .form-stack { gap: 9px; }
.app-body .form-actions { gap: 7px; padding-top: 0; }
.app-body .current-file { padding: 7px 0; font-size: 11px; }
.app-body .checkbox-field {
  display: flex!important;
  align-items: center;
  align-self: end;
  gap: 6px!important;
  min-height: 32px;
  padding: 5px 0;
  color: #9f2730;
}
.app-body .checkbox-field input[type="checkbox"] {
  flex: 0 0 auto;
  width: 15px;
  min-width: 15px;
  height: 15px;
  min-height: 15px;
  margin: 0;
  padding: 0;
}
.app-body .recurrence-box { grid-template-columns: minmax(220px,1fr) 170px 110px; gap: 10px; padding: 10px 12px; border-radius: 4px; }
.app-body .recurrence-box strong { font-size: 12px; }
.app-body .recurrence-box small { font-size: 10px; }

.app-body .cards { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; }
.app-body .card,.app-body .panel { border-radius: 4px; box-shadow: none; }
.app-body .card { min-height: 78px; padding: 11px 13px; }
.app-body .card::before { width: 3px; }
.app-body .card:hover { box-shadow: none; transform: none; }
.app-body .card span { font-size: 10px; }
.app-body .card b { margin-top: 7px; font-size: 20px; }
.app-body .panel { padding: 13px; }
.app-body .panel h2 { margin-bottom: 9px; font-size: 13px; }
.app-body .grid-3 { gap: 8px; margin-top: 9px; }
.app-body .line { gap: 8px; padding: 7px 0; font-size: 11px; }
.app-body .line b { font-size: 11px; }
.app-body .empty-state { padding: 15px; font-size: 11px; }
.app-body details.panel { margin-bottom: 8px; }
.app-body details.panel summary { padding: 11px 13px; font-size: 12px; }
.app-body details.panel summary::after { width: 20px; height: 20px; border-radius: 2px; }

.app-body .today-due-panel { margin-top: 8px; padding: 12px; }
.app-body .today-due-heading { margin-bottom: 8px; }
.app-body .today-due-heading h2 { margin-top: 1px; font-size: 14px; }
.app-body .today-date { padding: 4px 7px; border-radius: 3px; font-size: 9px; }
.app-body .today-due-grid { gap: 8px; }
.app-body .today-due-card { border-radius: 3px; }
.app-body .today-due-card header { padding: 8px 10px; }
.app-body .today-due-card header span { font-size: 10px; }
.app-body .today-due-card header b { font-size: 18px; }
.app-body .today-due-card header small { padding: 3px 6px; border-radius: 2px; font-size: 8px; }
.app-body .today-due-list { max-height: 126px; }
.app-body .today-due-row { padding: 6px 9px; }
.app-body .today-due-row b,.app-body .today-due-row strong { font-size: 10px; }
.app-body .today-due-row small { font-size: 9px; }
.app-body .today-empty { padding: 12px 9px; font-size: 9px; }
.app-body .today-due-card > a { padding: 6px 9px; font-size: 9px; }

.app-body .filters {
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 4px;
  box-shadow: none;
}
.app-body .filters input { min-width: 180px; }
.app-body .filters select { max-width: 220px; }
.app-body .budget-filters { align-items: end; }
.app-body .budget-filters .filter-field { display: grid; flex: 0 1 155px; gap: 3px; min-width: 145px; }
.app-body .budget-filters .filter-field > span { color: #566978; font-size: 9px; font-weight: 750; }
.app-body .budget-filters .filter-field input { width: 100%; min-width: 0; }
.app-body .budget-filters .filter-search { flex: 1 1 260px; }
.app-body .budget-filters .filter-status { flex-basis: 205px; }
.app-body .budget-filters .filter-status select { width: 100%; max-width: none; }
.app-body .month-filter,.app-body .month-picker-form { gap: 5px; }
.app-body .month-picker { min-width: 265px; height: 32px; border-radius: 3px; box-shadow: none; }
.app-body .month-arrow { width: 32px; height: 32px; border-radius: 3px; font-size: 19px; }
.app-body .calendar-button { width: 90px; }
.app-body .apply-month { min-height: 32px; }

.app-body .financial-health { min-height: 300px; margin-top: 11px; padding: 22px; }
.app-body .financial-health-head h2 { font-size: 19px; }
.app-body .financial-health-head p { margin-top: 4px; font-size: 12px; }
.app-body .health-badge { padding: 7px 11px; border-radius: 999px; font-size: 10px; }
.app-body .health-content { gap: 28px; margin-top: 22px; }
.app-body .health-chart { gap: 21px; min-height: 180px; }
.app-body .health-label { font-size: 13px; }
.app-body .health-label b { font-size: 17px; }
.app-body .health-track { height: 25px; }
.app-body .health-summary { min-width: 0; gap: 8px; padding: 22px; }
.app-body .health-summary strong { font-size: 28px; }
.app-body .health-legend { margin-top: 16px; }

.app-body .finance-summary-cards {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 8px;
  margin-bottom: 8px;
}
.app-body .employee-summary-cards { grid-template-columns: repeat(5,minmax(0,1fr)); }
.app-body .inventory-summary-cards { grid-template-columns: repeat(6,minmax(0,1fr)); }
.app-body .finance-summary-card {
  position: relative;
  min-height: 76px;
  overflow: hidden;
  padding: 10px 12px 9px 15px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}
.app-body .finance-summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #ffc000;
}
.app-body .finance-summary-card span { display: block; color: #5e6f7e; font-size: 10px; font-weight: 700; }
.app-body .finance-summary-card b { display: block; margin-top: 4px; color: #18384f; font-size: 19px; line-height: 1.1; }
.app-body .finance-summary-card small { display: block; margin-top: 4px; color: #7a8792; font-size: 9px; }
.app-body .summary-settled::before { background: #159a62; }
.app-body .summary-settled b { color: #087648; }
.app-body .summary-open::before { background: #e39a16; }
.app-body .summary-open b { color: #a96700; }
.app-body .summary-overdue::before { background: #d62831; }
.app-body .summary-overdue b { color: #b82029; }

.app-body .table-wrap {
  border-radius: 3px;
  box-shadow: none;
  scrollbar-color: #aeb7c0 #e8ebee;
}
.app-body table { min-width: 900px; border-collapse: collapse; border-spacing: 0; }
.app-body th,.app-body td {
  padding: 7px 8px;
  border-right: 1px solid #c9cfd5;
  border-bottom: 1px solid #c9cfd5;
  line-height: 1.22;
}
.app-body th:last-child,.app-body td:last-child { border-right: 0; }
.app-body th {
  color: #244056;
  background: #d9dde1;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}
.app-body td { color: #263d51; font-size: 11px; }
.app-body tbody tr:nth-child(even) { background: #f0f1f2; }
.app-body tbody tr:hover { background: #fff7d6; }
.app-body .tag { padding: 3px 6px; border-radius: 2px; font-size: 9px; }
.app-body .record-actions,.app-body .actions,.app-body .inline { flex-direction: row; flex-wrap: nowrap; gap: 6px; }
.app-body .record-actions a,.app-body .actions a,.app-body .edit-link,.app-body .link-btn { font-size: 10px; }
.app-body .inline input { width: 90px; min-height: 28px; padding: 4px 6px; }
.app-body .inline input[type="date"] { width: 125px; }
.app-body .inline button { min-height: 28px; padding: 4px 7px; border-radius: 2px; font-size: 9px; }
.app-body .split { grid-template-columns: 300px minmax(0,1fr); gap: 8px; }

.app-body .alert { margin-bottom: 8px; padding: 8px 10px; border-radius: 3px; box-shadow: none; font-size: 11px; }
.app-body .reimbursement-overview { margin-bottom: 8px; border-radius: 4px; box-shadow: none; }
.app-body .reimbursement-overview-head { padding: 11px 13px; }
.app-body .reimbursement-overview-head strong { font-size: 20px; }
.app-body .collaborator-total { min-height: 80px; padding: 10px 12px; }
.app-body .collaborator-avatar { width: 32px; height: 32px; border-radius: 4px; }
.app-body .employee-document-count { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; min-width: 150px; }
.app-body .employee-document-count > b { color: #173c55; font-size: 14px; }
.app-body .employee-document-count > span { color: #687987; font-size: 9px; }
.app-body .employee-document-count .tag { font-size: 8px; }
.app-body .form-stack label > small { color: #778693; font-size: 9px; font-weight: 500; line-height: 1.3; }
.app-body .salary-start { display: block; margin-top: 3px; color: #738290; font-size: 9px; }
.app-body .muted { color: #7a8792; }
.app-body .advance-list-panel { margin-bottom: 8px; }
.app-body .balance-panel { gap: 14px; margin-bottom: 8px; padding: 11px 13px; border-radius: 4px; box-shadow: none; }
.app-body .balance-panel strong { font-size: 19px; }
.app-body .horizon-tabs { border-radius: 3px; box-shadow: none; }
.app-body .horizon-tabs a { padding: 6px 10px; border-radius: 2px; font-size: 10px; }
.app-body .cash-cards,.app-body .forecast-panel { margin-bottom: 8px; }
.app-body .forecast-row { gap: 12px; padding: 10px 0; }
.app-body .section-head { margin-bottom: 9px; }

.app-body .inventory-form { margin-bottom: 8px; }
.app-body .form-section-title {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 4px -2px -1px;
  padding: 7px 8px 5px;
  border-bottom: 2px solid #dce5eb;
  color: #163e59;
  background: #f7fafc;
}
.app-body .form-section-title:first-child { margin-top: -2px; }
.app-body .form-section-title b { font-size: 12px; }
.app-body .form-section-title span { color: #6f7f8c; font-size: 9px; }
.app-body .inventory-table { min-width: 1500px; }
.app-body .inventory-table td:nth-child(2) { min-width: 190px; }
.app-body .inventory-item-name { color: #153d59; font-size: 12px; }
.app-body .inventory-alert-tag { display: flex; margin-top: 4px; }
.app-body .inventory-date-overdue { color: #bd2029; font-weight: 800; }
.app-body .inventory-movements-panel { margin-top: 8px; }
.app-body .inventory-movement-table { min-width: 1020px; }
.app-body .movement-changes { min-width: 360px; }
.app-body .movement-changes > span,.app-body .movement-changes > small { display: block; margin: 2px 0; }
.app-body .movement-changes > small { color: #6e7e8c; }

.app-body .assistant-chat { height: calc(100vh - 175px); min-height: 610px; }
.app-body .assistant-sidebar { min-height: 610px; }

@media (max-width: 1250px) {
  .app-body .brand { flex-basis: 155px; padding-inline: 9px; }
  .app-body .sidebar-brand-logo { width: 137px; }
  .app-body .nav-link { padding-inline: 9px; font-size: 11px; }
  .app-body .sidebar-footer { padding-inline: 7px; }
  .app-body .logout-link { font-size: 0; }
  .app-body .logout-link span { font-size: 16px; }
  .app-body .cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .app-body .form-grid { grid-template-columns: repeat(2,minmax(160px,1fr)); }
  .app-body .finance-summary-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .app-body .inventory-summary-cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .app-body .sidebar { height: 58px; min-height: 58px; }
  .app-body .brand { flex-basis: 132px; height: 58px; padding-inline: 7px; }
  .app-body .sidebar-brand-logo { width: 118px; }
  .app-body .nav-link { min-height: 58px; padding-inline: 9px; font-size: 10px; }
  .app-body .sidebar-footer { display: none; }
  .app-body main { min-height: calc(100vh - 58px); }
  .app-body .topbar { top: 58px; height: 36px; padding: 0 10px; }
  .app-body .topbar-right { display: none; }
  .app-body .content { padding: 9px 8px 24px; }
  .app-body .page-head { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .app-body .page-head > :last-child { margin-left: auto; }
  .app-body .page-head h1 { font-size: 18px; }
  .app-body .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .app-body .grid-3,.app-body .split,.app-body .form-grid { grid-template-columns: 1fr; }
  .app-body .filters { align-items: stretch; flex-direction: row; }
  .app-body .filters input,.app-body .filters select,.app-body .filters button,.app-body .filters .button { flex: 1 1 140px; max-width: none; }
  .app-body .record-actions,.app-body .inline { align-items: center; flex-direction: row; }
  .app-body .form-actions { align-items: stretch; flex-direction: row; flex-wrap: wrap; }
  .app-body .form-actions .button,.app-body .form-actions button { width: auto; flex: 1 1 130px; }
  .app-body .assistant-chat { height: calc(100vh - 155px); min-height: 560px; }
  .app-body .financial-month-filter { width: 100%; }
  .app-body .financial-month-filter .month-picker-form { flex: 1 1 270px; }
  .app-body .inventory-summary-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .app-body .form-section-title { align-items: flex-start; flex-direction: column; gap: 2px; }
  .today-due-grid { grid-template-columns: 1fr; }
}

/* Exclusão discreta: mantém a ação disponível sem competir com os demais comandos. */
button.danger-link {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #7b8794!important;
  background: transparent;
  box-shadow: none;
  font-size: 0!important;
  line-height: 1;
  text-decoration: none;
}
button.danger-link::before {
  content: "";
  display: block;
  width: 15px;
  height: 15px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v5M14 11v5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v5M14 11v5'/%3E%3C/svg%3E") center/contain no-repeat;
}
button.danger-link:hover {
  border-color: #efc5c8;
  color: #b82029!important;
  background: #fff4f4;
  box-shadow: none;
  transform: none;
  text-decoration: none;
}
button.danger-link:focus-visible {
  border-color: #d99197;
  outline: 2px solid rgba(214,40,49,.18);
  outline-offset: 1px;
}

/* Inadimplências: módulo de controle isolado do financeiro. */
.off-finance-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #c8d6e2;
  border-radius: 999px;
  color: #456071;
  background: #f7fafc;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.off-finance-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #7d8c99;
}
.module-notice {
  margin-bottom: 8px;
  padding: 9px 11px;
  border: 1px solid #ead48a;
  border-left: 4px solid #ffc000;
  border-radius: 4px;
  color: #5f4a12;
  background: #fffaf0;
  font-size: 11px;
  line-height: 1.45;
}
.module-notice.warning {
  border-color: #ead49c;
  border-left-color: #d98b13;
  color: #72531b;
  background: #fff9e9;
}
.summary-protest::before { background: #8a45b8!important; }
.summary-protest b { color: #71369a!important; }
.table-subtext { display: block; margin-top: 3px; color: #748492; font-size: 9px; }
.schedule-link { color: #087648!important; }
.delinquency-table { min-width: 1240px!important; }
.schedule-source-panel {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 14px;
  margin-bottom: 8px;
}
.schedule-source-panel > div { display: grid; gap: 4px; min-width: 0; }
.schedule-source-panel span { color: #71808c; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.schedule-source-panel b { overflow-wrap: anywhere; color: #233e52; font-size: 12px; }

@media (max-width: 760px) {
  .off-finance-badge { min-height: 30px; padding: 5px 8px; font-size: 9px; }
  .schedule-source-panel { grid-template-columns: 1fr; }
}

/* Dashboard anual */
.dashboard-bars-icon {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding: 6px;
}
.dashboard-bars-icon i { display: block; width: 3px; border-radius: 2px 2px 0 0; background: currentColor; }
.dashboard-bars-icon i:nth-child(1) { height: 7px; }
.dashboard-bars-icon i:nth-child(2) { height: 13px; }
.dashboard-bars-icon i:nth-child(3) { height: 10px; }
.neutral-text { color: var(--muted); }
.year-filter { display: flex; align-items: center; gap: 6px; }
.year-filter > strong {
  display: grid;
  min-width: 82px;
  min-height: 42px;
  place-items: center;
  border: 1px solid #ccd6e3;
  border-radius: 10px;
  background: #fff;
  font-size: 17px;
}
.annual-chart-panel { margin-bottom: 17px; padding: 22px 24px 18px; }
.annual-chart-legend { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 12px; }
.annual-chart-legend span { display: flex; align-items: center; gap: 6px; }
.annual-chart-legend i { display: block; width: 10px; height: 10px; border-radius: 3px; }
.profit-swatch { background: var(--green); }
.loss-swatch { background: var(--red); }
.annual-chart-scroll { width: 100%; overflow-x: auto; padding: 3px 0 5px; }
.annual-chart-layout { display: grid; grid-template-columns: 72px minmax(760px,1fr); min-width: 832px; }
.annual-chart-axis {
  position: relative;
  height: 268px;
  color: #7b8794;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.annual-chart-axis span { position: absolute; right: 12px; }
.annual-chart-axis span:first-child { top: 25px; }
.annual-chart-axis span:nth-child(2) { top: 132px; transform: translateY(-50%); }
.annual-chart-axis span:last-child { bottom: 25px; }
.annual-result-chart { display: grid; grid-template-columns: repeat(12,minmax(52px,1fr)); gap: 7px; min-width: 760px; }
.annual-chart-month { display: grid; grid-template-rows: 25px 220px 23px; min-width: 0; text-align: center; }
.annual-result-compact {
  align-self: end;
  overflow: hidden;
  padding-bottom: 5px;
  font-size: 9px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.annual-month-plot {
  position: relative;
  border-top: 1px solid #e4e8ed;
  border-bottom: 1px solid #e4e8ed;
  background: linear-gradient(to bottom, rgba(255,192,0,.035) 0 49.7%, rgba(214,40,49,.02) 50.3% 100%);
}
.annual-month-plot::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: #9aa7b2;
}
.annual-result-bar {
  position: absolute;
  z-index: 1;
  left: 18%;
  width: 64%;
  min-height: 3px;
}
.annual-result-bar.profit { bottom: 50%; border-radius: 4px 4px 0 0; background: linear-gradient(180deg,#26b878,#159a62); }
.annual-result-bar.loss { top: 50%; border-radius: 0 0 4px 4px; background: linear-gradient(180deg,#dc3f4d,#be2633); }
.annual-chart-month > b { padding-top: 7px; color: #3a4e61; font-size: 11px; }
.annual-detail-section { margin-top: 0; }
.annual-dashboard-note { margin: 11px 2px 0; color: var(--muted); font-size: 11px; }

.app-body .annual-dashboard-nav { padding-inline: 9px; }
.app-body .annual-dashboard-nav .nav-icon {
  display: flex;
  width: 22px;
  height: 22px;
  padding: 3px;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.12);
}
.app-body .annual-dashboard-nav.active .nav-icon { color: #fff; background: #d62831; }
.app-body .annual-dashboard-label { display: none; }
.app-body .year-filter { gap: 4px; }
.app-body .year-filter > strong { min-width: 70px; min-height: 32px; border-radius: 3px; font-size: 14px; }
.app-body .annual-chart-panel { margin-bottom: 9px; padding: 14px 16px 10px; }
.app-body .annual-chart-legend { font-size: 10px; }
.app-body .annual-detail-section .section-head { padding-inline: 1px; }
.app-body .annual-dashboard-note { font-size: 10px; }

@media (max-width: 760px) {
  .annual-page-head { align-items: flex-start!important; }
  .year-filter { width: 100%; }
  .year-filter .button { margin-left: auto; }
  .annual-chart-head { align-items: flex-start; flex-direction: column; }
  .annual-chart-layout { grid-template-columns: 58px minmax(700px,1fr); min-width: 758px; }
  .annual-result-chart { min-width: 700px; }
  .annual-chart-axis span { right: 8px; }
}

/* Pedidos de compra vinculados aos orçamentos */
.page-head-actions,.purchase-order-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.purchase-order-link { color: #8b4a15!important; }
.purchase-order-budget-strip {
  display: grid;
  grid-template-columns: 1.3fr .7fr .8fr .8fr 1fr;
  gap: 1px;
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid #cdd7df;
  border-radius: 4px;
  background: #cdd7df;
}
.purchase-order-budget-strip > div {
  display: grid;
  align-content: center;
  min-height: 60px;
  padding: 9px 11px;
  background: #fff;
}
.purchase-order-budget-strip span,
.purchase-order-meta span,
.purchase-order-card-total > span:first-child {
  color: #6d7c89;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.purchase-order-budget-strip b { margin-top: 3px; color: #284255; font-size: 12px; }
.document-pair a { margin-top: 4px; font-size: 11px; font-weight: 800; }
.purchase-order-summary { margin-bottom: 8px; }
.purchase-order-card { margin-bottom: 8px; padding: 13px 14px; }
.purchase-order-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d8e0e6;
}
.purchase-order-card-head h2 { margin: 2px 0 3px; font-size: 19px; }
.purchase-order-card-head p { margin: 0; color: #6d7c89; font-size: 10px; }
.purchase-order-card-total { display: grid; justify-items: end; gap: 4px; white-space: nowrap; }
.purchase-order-card-total > b { color: #173b57; font-size: 20px; }
.purchase-order-meta {
  display: grid;
  grid-template-columns: repeat(5,minmax(110px,1fr));
  gap: 7px;
  padding: 9px 0;
}
.purchase-order-meta > div {
  display: grid;
  gap: 3px;
  min-height: 49px;
  padding: 7px 9px;
  border: 1px solid #d9e1e7;
  border-radius: 3px;
  background: #f9fbfc;
}
.purchase-order-meta b { color: #284255; font-size: 12px; }
.purchase-order-meta a { font-size: 11px; font-weight: 800; }
.settled-text { color: #087648!important; }
.purchase-order-note {
  margin: 3px 0 7px;
  padding: 8px 10px;
  border-left: 3px solid #9bb5c6;
  color: #4d6272;
  background: #f5f8fa;
  font-size: 10px;
  line-height: 1.45;
}
.purchase-installment-table { margin-top: 7px; }
.purchase-installment-table table { min-width: 880px; }
.purchase-order-actions {
  justify-content: flex-end;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid #d8e0e6;
}
.purchase-order-form .form-help,.form-help {
  color: #667887;
  font-size: 10px;
  line-height: 1.45;
}

@media (max-width: 950px) {
  .purchase-order-budget-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .purchase-order-budget-strip .document-pair { grid-column: 1/-1; }
  .purchase-order-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .purchase-order-page-head { align-items: flex-start!important; }
  .page-head-actions { width: 100%; }
  .page-head-actions .button { flex: 1 1 150px; text-align: center; }
  .purchase-order-budget-strip { grid-template-columns: 1fr; }
  .purchase-order-budget-strip .document-pair { grid-column: auto; }
  .purchase-order-card-head { flex-direction: column; gap: 9px; }
  .purchase-order-card-total { justify-items: start; }
  .purchase-order-meta { grid-template-columns: 1fr; }
}

/* Calendário operacional das ordens de serviço */
.service-calendar-panel { margin-bottom: 10px; padding: 14px; overflow: hidden; }
.service-calendar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}
.service-calendar-heading h2 { margin: 2px 0 3px; color: #173b57; font-size: 18px; }
.service-calendar-heading p { margin: 0; color: #6b7b89; font-size: 11px; }
.service-calendar-nav { flex: 0 0 auto; }
.service-calendar-scroll { overflow-x: auto; border: 1px solid #cbd5dd; border-radius: 4px; background: #fff; }
.service-calendar { min-width: 1040px; }
.service-calendar-weekdays,
.service-calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.service-calendar-weekdays {
  position: sticky;
  top: 0;
  z-index: 3;
  border-bottom: 1px solid #bec9d2;
  background: #8a6200;
}
.service-calendar-weekdays div {
  padding: 8px 6px;
  border-right: 1px solid rgba(255,255,255,.16);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}
.service-calendar-weekdays div:last-child { border-right: 0; }
.service-calendar-day {
  min-height: 126px;
  padding: 6px;
  border-right: 1px solid #d5dce2;
  border-bottom: 1px solid #d5dce2;
  background: #fff;
}
.service-calendar-day:nth-child(7n) { border-right: 0; }
.service-calendar-day.outside { color: #9ba7b0; background: #f3f5f6; }
.service-calendar-day.today { box-shadow: inset 0 0 0 2px #f47621; background: #fffaf6; }
.service-calendar-day > header { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-height: 22px; margin-bottom: 4px; }
.service-calendar-day > header span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  color: #344f63;
  font-size: 11px;
  font-weight: 850;
}
.service-calendar-day.today > header span { color: #fff; background: #f47621; }
.service-calendar-day > header b { color: #d65c0b; font-size: 8px; text-transform: uppercase; }
.service-calendar-events { display: grid; gap: 4px; }
.service-calendar-event {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 6px 7px;
  border-left: 4px solid #c2410c;
  border-radius: 3px;
  color: #7c2d12;
  background: #fff2e8;
  box-shadow: inset 0 0 0 1px rgba(194,65,12,.08);
  text-decoration: none;
  transition: filter .15s ease, transform .15s ease;
}
.service-calendar-event:hover { filter: brightness(.98); transform: translateY(-1px); }
.service-calendar-event.status-warning { border-left-color: #b45309; background: #fff1d6; }
.service-calendar-event.status-danger { border-left-color: #b91c1c; background: #ffe4e6; }
.service-calendar-event.status-success { border-left-color: #087648; background: #dcf7e9; }
.service-calendar-event.status-info { border-left-color: #c2410c; background: #fff2e8; }
.service-calendar-event strong,
.service-calendar-event span,
.service-calendar-event small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.service-calendar-event strong { color: #8f2d0a; font-size: 11px; font-weight: 900; }
.service-calendar-event span { color: #b42318; font-size: 9px; font-weight: 850; }
.service-calendar-event small { color: #334155; font-size: 8px; font-weight: 750; }
.service-calendar-event.status-danger strong,
.service-calendar-event.status-danger span { color: #991b1b; }
.service-calendar-event.status-warning strong { color: #92400e; }
.service-calendar-event.status-warning span { color: #b45309; }
.service-calendar-event.status-success strong { color: #075e3a; }
.service-calendar-event.status-success span { color: #087648; }

.service-agenda-panel { margin-bottom: 10px; padding: 14px; }
.service-agenda-list { display: grid; gap: 6px; }
.service-agenda-day {
  display: grid;
  grid-template-columns: 155px minmax(0,1fr);
  overflow: hidden;
  border: 1px solid #d5dde4;
  border-radius: 4px;
  background: #fff;
}
.service-agenda-date {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  align-items: center;
  gap: 1px 9px;
  padding: 9px 11px;
  border-right: 1px solid #d5dde4;
  background: #f2f6f9;
}
.service-agenda-date strong { grid-row: 1/3; color: #173b57; font-size: 27px; line-height: 1; text-align: center; }
.service-agenda-date span { color: #273f52; font-size: 11px; font-weight: 850; }
.service-agenda-date small { color: #748490; font-size: 9px; }
.service-agenda-activities { display: grid; }
.service-agenda-activities > a {
  display: grid;
  grid-template-columns: 4px minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-bottom: 1px solid #e3e8ec;
  color: #284255;
  text-decoration: none;
}
.service-agenda-activities > a:last-child { border-bottom: 0; }
.service-agenda-activities > a:hover { background: #f7fafc; }
.service-agenda-activities > a > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.service-agenda-activities b,
.service-agenda-activities small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.service-agenda-activities b { color: #8f2d0a; font-size: 11px; font-weight: 900; }
.service-agenda-activities small { color: #334155; font-size: 9px; font-weight: 700; }
.service-agenda-activities em { color: #b42318; font-size: 9px; font-style: normal; font-weight: 900; }
.service-agenda-status { align-self: stretch; border-radius: 3px; background: #ffc000; }
.service-agenda-status.status-warning { background: #d98b13; }
.service-agenda-status.status-danger { background: #dc3f4d; }
.service-agenda-status.status-success { background: #159a62; }
.service-agenda-status.status-info { background: #ffc000; }
.service-orders-list-heading { margin: 12px 0 7px; }
.service-schedule-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid #cdddeb;
  border-left: 4px solid #ffc000;
  border-radius: 4px;
  background: #f4f8fc;
}
.service-schedule-note > span { padding: 4px 6px; border-radius: 3px; color: #835800; background: #fff1b8; font-size: 8px; font-weight: 900; letter-spacing: .6px; }
.service-schedule-note > div { display: grid; gap: 2px; }
.service-schedule-note b { color: #274156; font-size: 12px; }
.service-schedule-note small,
.service-order-form label > small { color: #6c7d8b; font-size: 10px; font-weight: 500; }

@media (max-width: 1050px) {
  .service-calendar-heading { align-items: flex-start; flex-direction: column; }
  .service-calendar-nav { width: 100%; }
  .service-calendar-nav .month-picker-form { flex: 1; }
  .service-calendar-nav .month-picker { flex: 1; }
}

@media (max-width: 760px) {
  .contract-overview-head { align-items: flex-start; flex-direction: column; }
  .contract-overview-head small { text-align: left; }
  .contract-totals,.income-source-summary { grid-template-columns: 1fr; }
  .contract-total { grid-template-columns: 1fr; }
  .contract-card-footer { grid-column: 1; }
  .service-calendar-panel,.service-agenda-panel { padding: 9px; }
  .service-calendar { min-width: 850px; }
  .service-calendar-day { min-height: 112px; }
  .service-calendar-nav { flex-wrap: wrap; }
  .service-calendar-nav .month-picker-form { flex: 1 1 calc(100% - 80px); }
  .service-calendar-nav .apply-month { display: none; }
  .service-agenda-day { grid-template-columns: 1fr; }
  .service-agenda-date { grid-template-columns: 42px minmax(0,1fr); border-right: 0; border-bottom: 1px solid #d5dde4; }
  .service-agenda-activities > a { grid-template-columns: 4px minmax(0,1fr); }
  .service-agenda-activities em { display: none; }
  .service-schedule-note { align-items: flex-start; }
}

/* Baixa de contas em lote */
.sr-only {
  position: absolute!important;
  width: 1px!important;
  height: 1px!important;
  padding: 0!important;
  overflow: hidden!important;
  clip: rect(0,0,0,0)!important;
  white-space: nowrap!important;
  border: 0!important;
}
.app-body .bulk-settlement-bar {
  position: sticky;
  top: 108px;
  z-index: 12;
  display: flex;
  align-items: end;
  gap: 9px;
  margin: 0 0 8px;
  padding: 9px 10px;
  border: 1px solid #b9c9d6;
  border-left: 4px solid #ffc000;
  border-radius: 4px;
  background: rgba(247,250,252,.98);
  box-shadow: 0 3px 9px rgba(26,57,80,.09);
}
.app-body .bulk-selection-control {
  display: grid;
  align-self: stretch;
  align-content: center;
  gap: 3px;
  min-width: 165px;
  padding-right: 9px;
  border-right: 1px solid #d6dfe6;
}
.app-body .bulk-select-all {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #183b54;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.app-body .bulk-selection-control > span { color: #627585; font-size: 9px; }
.app-body .bulk-selection-control > span strong { color: #9a6800; font-size: 12px; }
.app-body .bulk-date-mode,.app-body .bulk-custom-date { display: grid; gap: 3px; color: #516879; font-size: 9px; font-weight: 750; }
.app-body .bulk-date-mode { flex: 1 1 260px; max-width: 360px; }
.app-body .bulk-custom-date { flex: 0 0 165px; }
.app-body .bulk-custom-date[hidden] { display: none; }
.app-body .bulk-settlement-bar select,.app-body .bulk-settlement-bar input[type="date"] { width: 100%; min-height: 32px; }
.app-body .bulk-settlement-bar button { flex: 0 0 auto; white-space: nowrap; }
.app-body .bulk-settlement-bar button:disabled { color: #7d8992; background: #d9dee2; cursor: not-allowed; opacity: .82; }
.app-body .bulk-settlement-bar input[type="checkbox"],
.app-body .row-select-checkbox {
  flex: 0 0 auto;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  accent-color: #d19b00;
  cursor: pointer;
}
.app-body .selection-column { width: 38px; min-width: 38px; padding-right: 5px; padding-left: 9px; text-align: center; }
.app-body .selection-unavailable { color: #aeb8c0; }
.app-body tr.bulk-row-selected td { background: #fff2bd!important; }

@media (max-width: 1000px) {
  .app-body .bulk-settlement-bar { position: static; flex-wrap: wrap; align-items: end; }
  .app-body .bulk-selection-control { flex: 1 1 100%; grid-template-columns: auto auto; justify-content: space-between; border-right: 0; border-bottom: 1px solid #d6dfe6; padding: 0 0 7px; }
  .app-body .bulk-date-mode { max-width: none; }
}

@media (max-width: 620px) {
  .app-body .bulk-date-mode,.app-body .bulk-custom-date,.app-body .bulk-settlement-bar button { flex: 1 1 100%; max-width: none; }
  .app-body .bulk-settlement-bar button { width: 100%; }
}

/* Ordens de produção */
.app-body .production-summary-cards { grid-template-columns: repeat(5,minmax(0,1fr)); }
.app-body .production-order-filters input { flex: 1 1 360px; }
.app-body .production-orders-table { min-width: 1680px; }
.production-progress { display: block; width: 100%; height: 5px; margin: 5px 0 2px; overflow: hidden; border-radius: 999px; background: #ece7d6; }
.production-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#d99f00,#ffc000); }
.production-progress.large { height: 10px; margin: 8px 0 5px; }
.production-positive { color: #087648!important; font-weight: 800; }
.production-negative { color: #b82029!important; font-weight: 800; }
.production-order-link { color: #8a6200!important; font-weight: 850; }
.app-body .production-default-steps { padding: 10px 12px; border: 1px solid #e6cf79; border-radius: 3px; background: #fff8da; }
.page-head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.production-overview { margin-bottom: 8px; border-left: 5px solid #ffc000!important; background: linear-gradient(120deg,#fff,#fffaf0)!important; }
.production-overview-main { display: grid; grid-template-columns: minmax(0,1fr) 230px; align-items: center; gap: 24px; }
.production-overview-main h2 { margin: 8px 0 3px!important; color: #2e3d4b; font-size: 16px!important; }
.production-overview-main p { margin: 0; color: #677785; font-size: 11px; }
.production-overview-progress { display: grid; justify-items: end; }
.production-overview-progress strong { color: #9a6800; font-size: 25px; line-height: 1; }
.production-overview-progress span,.production-overview-progress small { color: #687987; font-size: 9px; }
.production-overview-progress .production-progress { width: 100%; }
.production-kpi-grid { display: grid; grid-template-columns: repeat(7,minmax(130px,1fr)); gap: 8px; margin-bottom: 8px; }
.production-kpi-grid article { position: relative; min-height: 82px; overflow: hidden; padding: 11px 12px 9px 15px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.production-kpi-grid article::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #ffc000; }
.production-kpi-grid span { display: block; color: #607180; font-size: 9px; font-weight: 750; }
.production-kpi-grid b { display: block; margin-top: 5px; color: #263d51; font-size: 17px; line-height: 1.1; }
.production-kpi-grid small { display: block; margin-top: 5px; color: #7b8792; font-size: 8px; }
.production-kpi-grid .production-total-card::before { background: #d62831; }
.production-kpi-grid .production-total-card b { color: #b82029; }
.production-kpi-grid .production-margin-card::before { background: #159a62; }
.production-kpi-grid .production-margin-card b { color: #087648; }
.production-kpi-grid .production-loss-card::before { background: #d62831; }
.production-kpi-grid .production-loss-card b { color: #b82029; }
.production-section { margin-bottom: 8px; scroll-margin-top: 116px; }
.production-section .section-head h2 { margin: 1px 0 3px; font-size: 15px; }
.production-section .section-head p { margin: 0; color: #6b7b88; font-size: 10px; }
.production-section-total { color: #9a6800; font-size: 19px; white-space: nowrap; }
.production-entry-panel { margin: 8px 0; overflow: hidden; border: 1px solid #d7d1bd; border-radius: 4px; background: #fff; }
.production-entry-panel > summary { display: flex; align-items: center; min-height: 38px; padding: 8px 11px; color: #6f4c00; background: #fff8da; font-size: 11px; font-weight: 850; cursor: pointer; }
.production-entry-panel[open] > summary { border-bottom: 1px solid #e8d996; }
.production-entry-panel .production-inline-form { border: 0; border-radius: 0; }
.app-body .production-inline-form { grid-template-columns: repeat(4,minmax(135px,1fr)); }
.production-field-grow { grid-column: span 2; }
.production-steps-table { min-width: 1050px!important; }
.production-finance-tip { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 8px 0; padding: 10px 12px; border: 1px solid #e4cf7d; border-left: 4px solid #ffc000; border-radius: 4px; background: #fffaf0; }
.production-finance-tip > div { display: grid; gap: 2px; }
.production-finance-tip b { color: #5d470c; font-size: 11px; }
.production-finance-tip span { color: #786b49; font-size: 9px; }
.production-subtitle { margin: 14px 0 6px; color: #4f6271; font-size: 11px; text-transform: uppercase; letter-spacing: .45px; }
.production-calculated-total { display: flex; align-items: center; min-height: 32px; padding: 6px 8px; border: 1px solid #e4cf7d; border-radius: 2px; color: #755000; background: #fff8da; font-size: 13px; font-weight: 900; }

@media (max-width: 1400px) {
  .production-kpi-grid { grid-template-columns: repeat(4,minmax(140px,1fr)); }
  .app-body .production-summary-cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .production-detail-head { align-items: flex-start!important; flex-direction: column; }
  .page-head-actions { width: 100%; justify-content: flex-start; }
  .production-overview-main { grid-template-columns: 1fr; }
  .production-overview-progress { justify-items: start; }
  .production-kpi-grid,.app-body .production-summary-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .app-body .production-inline-form { grid-template-columns: repeat(2,minmax(135px,1fr)); }
  .production-finance-tip { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .production-kpi-grid,.app-body .production-summary-cards,.app-body .production-inline-form { grid-template-columns: 1fr; }
  .production-field-grow { grid-column: auto; }
  .page-head-actions .button { flex: 1 1 130px; }
}

/* Plataforma multiempresa */
.sidebar-company { padding: 0 2px 12px; margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.14); display: grid; gap: 3px; }
.sidebar-company strong { color: #fff; font-size: 11px; line-height: 1.3; }
.sidebar-company small { color: rgba(255,255,255,.65); font-size: 9px; }
.topbar-title { display: grid; gap: 1px; }
.topbar-title small { color: #718096; font-size: 9px; font-weight: 600; }
.auth-switch { display: flex; justify-content: center; gap: 6px; margin-top: 18px; color: #667085; font-size: 11px; }
.auth-switch a { color: #9b6500; font-weight: 800; }
.register-shell { width: min(1120px,calc(100vw - 32px)); margin: 28px auto; display: grid; grid-template-columns: .82fr 1.18fr; overflow: hidden; border-radius: 24px; background: #fff; border: 1px solid #e1e6ed; box-shadow: 0 28px 70px rgba(21,32,50,.13); }
.register-intro { padding: 48px 42px; color: #2e2205; background: linear-gradient(145deg,#ffc107,#ffd75d); }
.register-brand-logo { display: flex; width: 180px; height: 58px; margin-bottom: 44px; background: #fff; border-radius: 12px; padding: 8px 12px; }
.register-intro h1 { max-width: 430px; margin: 8px 0 14px; font-size: clamp(30px,4vw,48px); line-height: 1.02; }
.register-intro>p { max-width: 460px; color: #59440e; line-height: 1.65; }
.register-benefits { display: grid; gap: 12px; margin: 30px 0; }
.register-benefits span { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; }
.register-benefits i { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.8); font-style: normal; }
.register-price { display: grid; gap: 4px; padding: 20px; border: 1px solid rgba(77,54,0,.17); border-radius: 16px; background: rgba(255,255,255,.46); }
.register-price strong { font-size: 26px; }.register-price em { margin-left: 4px; font-size: 11px; font-style: normal; font-weight: 700; }
.register-price small,.register-price span { color: #624c14; font-weight: 700; }
.register-card { padding: 42px; }
.register-card .login-heading { text-align: left; margin-bottom: 24px; }
.register-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.register-form .span-2 { grid-column: 1/-1; }
.form-section-title { margin-top: 6px; color: #8a650b; font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.terms-check { display: flex!important; flex-direction: row!important; align-items: flex-start; gap: 9px!important; padding: 12px; border-radius: 10px; background: #fff8df; }
.terms-check input { width: 16px!important; min-width: 16px; margin-top: 1px; }
.terms-check span { color: #5d6470; font-size: 10px; line-height: 1.5; }
.user-limit-badge { display: flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid #e2c264; border-radius: 10px; color: #694800; background: #fff8da; font-size: 10px; }
.user-limit-badge strong { font-size: 15px; }
.users-layout { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(280px,.7fr); gap: 14px; }
.users-list-panel,.new-user-panel,.profile-guide { padding: 18px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-title h2 { margin: 0 0 3px; font-size: 16px; }.panel-title p { margin: 0; color: #78869a; font-size: 10px; }
.user-access-grid { display: grid; gap: 8px; }
.user-access-card { display: grid; grid-template-columns: 38px minmax(0,1fr) auto auto; align-items: center; gap: 11px; padding: 12px; border: 1px solid #e1e6ed; border-radius: 12px; background: #fff; }
.user-access-card.inactive { opacity: .62; background: #f5f6f8; }
.user-access-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #4e3600; background: #ffd256; font-weight: 900; }
.user-access-info { display: grid; gap: 2px; min-width: 0; }.user-access-info strong { font-size: 12px; }.user-access-info span { overflow: hidden; color: #6f7c8e; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.user-access-info small { color: #9b6500; font-size: 9px; font-weight: 800; }
.stack-form { display: grid; gap: 11px; }.form-warning { color: #b42318; font-weight: 700; }
.profile-guide { margin-top: 14px; }.profile-guide h2 { margin: 0 0 13px; font-size: 15px; }
.profile-guide-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }.profile-guide-grid div { display: grid; gap: 4px; padding: 12px; border-radius: 10px; background: #f7f8fa; }.profile-guide-grid strong { font-size: 11px; }.profile-guide-grid span { color: #6f7c8e; font-size: 9px; line-height: 1.5; }
.narrow-form-panel { max-width: 820px; padding: 20px; }
.subscription-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,.7fr); gap: 14px; }
.subscription-main,.subscription-company { padding: 24px; }.subscription-main h2 { margin: 6px 0; font-size: 26px; }
.subscription-price { margin: 12px 0 20px; color: #17734b; font-size: 31px; font-weight: 900; }.subscription-price small { margin-left: 5px; color: #718096; font-size: 10px; }
.subscription-features { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; color: #3c4b60; font-size: 10px; font-weight: 700; }
.trial-callout,.subscription-blocked { display: grid; gap: 4px; margin-top: 22px; padding: 14px; border-radius: 11px; background: #fff7d7; color: #6c4a00; }.subscription-blocked { background: #fff0f0; color: #a82020; font-weight: 700; }
.billing-connected { display: grid; gap: 4px; margin-top: 18px; padding: 14px; border: 1px solid #bfe6d1; border-radius: 11px; background: #effaf4; color: #12613d; }.billing-connected span { font-size: 10px; }
.billing-activation-form { display: flex; align-items: end; gap: 10px; margin-top: 18px; padding: 14px; border: 1px solid #f0cf68; border-radius: 11px; background: #fffaf0; }.billing-activation-form label { flex: 1; }.billing-activation-form select { min-width: 210px; }
.billing-error { margin-top: 12px; padding: 9px; border-radius: 8px; background: #fff0f0; color: #a82020; font-size: 9px; font-weight: 700; }
.subscription-company>span { color: #718096; font-size: 10px; }.subscription-company dl { display: grid; gap: 10px; margin: 22px 0; }.subscription-company dl div { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 9px; border-bottom: 1px solid #e7ebf0; }.subscription-company dt { color: #718096; font-size: 10px; }.subscription-company dd { margin: 0; font-size: 10px; font-weight: 800; text-align: right; }.subscription-company>small { color: #7a8798; line-height: 1.6; }
.platform-company-list { display: grid; gap: 12px; }.platform-company-card { padding: 16px; }.platform-company-card>header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 13px; }.platform-company-card>header div { display: grid; gap: 3px; }.platform-company-card>header span { color: #718096; font-size: 9px; }
.platform-company-form { display: grid; grid-template-columns: repeat(6,minmax(100px,1fr)) auto; align-items: end; gap: 9px; }.platform-company-form button { min-height: 35px; }
.platform-admin-body { min-height: 100vh; margin: 0; background: #eef1f5; color: #162234; }
.platform-admin-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 10px clamp(20px,4vw,64px); border-bottom: 3px solid #ffc000; background: #fff; box-shadow: 0 3px 16px rgba(24,36,52,.08); }
.platform-admin-header>a img { display: block; width: 150px; max-height: 46px; object-fit: contain; }
.platform-admin-header>div { display: flex; align-items: center; gap: 14px; font-size: 10px; }.platform-admin-header>div span { color: #6e7b8d; }.platform-admin-header>div strong { color: #162234; }.platform-admin-header>div a { padding: 8px 12px; border-radius: 7px; background: #162234; color: #fff; text-decoration: none; font-weight: 800; }
.platform-admin-main { width: min(1500px,calc(100% - 32px)); margin: 24px auto 50px; }
.account-grid { display: grid; grid-template-columns: minmax(260px,.7fr) minmax(360px,1.3fr); gap: 16px; align-items: start; }
.account-summary-card { text-align: center; padding: 28px; }
.account-avatar { width: 64px; height: 64px; margin: 0 auto 12px; font-size: 24px; }
.account-summary-card h2 { margin: 0; }
.account-summary-card > p { color: #718096; margin: 4px 0 20px; }
.account-summary-card dl { margin: 0; text-align: left; display: grid; gap: 1px; border: 1px solid #e1e6ed; border-radius: 12px; overflow: hidden; }
.account-summary-card dl div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 10px 12px; background: #f7f8fa; }
.account-summary-card dt { color: #718096; }.account-summary-card dd { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.account-password-card { padding: 24px; }
.profile-home-card { margin-top: 16px; padding: 28px; }.profile-home-card h2 { margin: 6px 0; }
.profile-home-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
@media (max-width: 900px) {
  .register-shell,.users-layout,.subscription-grid,.account-grid { grid-template-columns: 1fr; }
  .register-intro { padding: 32px 24px; }.register-brand-logo { margin-bottom: 24px; }
  .register-card { padding: 28px 22px; }.profile-guide-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .platform-company-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .platform-admin-header { align-items: flex-start; }.platform-admin-header>div { align-items: flex-end; flex-direction: column; gap: 4px; }.platform-admin-header>div span { display: none; }
}
@media (max-width: 560px) {
  .register-form,.subscription-features,.profile-guide-grid { grid-template-columns: 1fr; }
  .billing-activation-form { align-items: stretch; flex-direction: column; }
  .register-form .span-2 { grid-column: auto; }.user-access-card { grid-template-columns: 36px minmax(0,1fr); }.user-access-card>.tag,.user-access-card>a { grid-column: 2; justify-self: start; }
}

/* Site público */
.public-body { color: #172033; background: #fff; }
.public-main { display: block; min-height: 100vh; margin: 0; background: #fff; }
.public-main>.content { display: block; width: 100%; max-width: none; margin: 0; padding: 0; }
.landing-page { overflow: hidden; background: #fff; }
.landing-header { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 28px; height: 78px; padding: 0 max(28px,calc((100vw - 1240px)/2)); border-bottom: 1px solid rgba(222,226,232,.9); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
.landing-brand { display: flex; width: 178px; text-decoration: none; }
.landing-brand img { display: block; width: 100%; }
.landing-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.landing-nav a,.landing-login { color: #4d5869; font-size: 13px; font-weight: 700; text-decoration: none; }
.landing-nav a:hover,.landing-login:hover { color: #9a6800; }
.landing-header-actions { display: flex; align-items: center; gap: 18px; }
.landing-small-cta { min-height: 39px; padding: 8px 15px; border-radius: 9px; font-size: 12px; box-shadow: none; }
.landing-hero { position: relative; display: grid; grid-template-columns: minmax(0,.9fr) minmax(520px,1.1fr); align-items: center; gap: 70px; min-height: 690px; padding: 76px max(32px,calc((100vw - 1240px)/2)) 88px; background: radial-gradient(circle at 91% 10%,rgba(255,192,0,.18),transparent 30%), linear-gradient(145deg,#fff 20%,#fffaf0 100%); }
.landing-hero::before { content: ""; position: absolute; left: -140px; bottom: -230px; width: 440px; height: 440px; border: 80px solid rgba(255,192,0,.07); border-radius: 50%; }
.landing-hero-copy { position: relative; z-index: 2; }
.landing-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #f0dc9f; border-radius: 999px; color: #76540a; background: #fff9e4; font-size: 10px; font-weight: 850; letter-spacing: .45px; text-transform: uppercase; }
.landing-pill i { width: 8px; height: 8px; border-radius: 50%; background: #f47621; box-shadow: 0 0 0 4px rgba(244,118,33,.12); }
.landing-hero h1 { max-width: 650px; margin: 22px 0 22px; color: #172033; font-size: clamp(44px,5.3vw,72px); line-height: .98; letter-spacing: -3.1px; }
.landing-hero h1 em { color: #b87800; font-style: normal; }
.landing-hero-copy>p { max-width: 600px; margin: 0; color: #606c7d; font-size: 18px; line-height: 1.7; }
.landing-hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 31px; }
.landing-primary-cta { min-height: 52px; padding: 13px 22px; }
.landing-text-link { color: #253149; font-size: 13px; font-weight: 800; text-decoration: none; }
.landing-text-link:hover { color: #9a6800; }
.landing-trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 27px; color: #5d6878; font-size: 11px; font-weight: 700; }
.landing-trust-row span::first-letter { color: #159a62; }
.landing-product-preview { position: relative; z-index: 2; overflow: hidden; border: 1px solid #dce2e9; border-radius: 18px; background: #fff; box-shadow: 0 35px 85px rgba(30,40,58,.2),0 8px 20px rgba(30,40,58,.08); transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.preview-window-bar { display: flex; align-items: center; gap: 6px; height: 37px; padding: 0 14px; border-bottom: 1px solid #e6eaf0; color: #8791a0; background: #fafbfc; font-size: 8px; }
.preview-window-bar i { width: 7px; height: 7px; border-radius: 50%; background: #d8dde5; }.preview-window-bar i:first-child { background:#ed6a5e; }.preview-window-bar i:nth-child(2) { background:#f4bf4f; }.preview-window-bar i:nth-child(3) { background:#61c454; }.preview-window-bar span { margin-left: 7px; }
.preview-layout { display: grid; grid-template-columns: 65px 1fr; min-height: 410px; }
.preview-layout>aside { display: flex; align-items: center; flex-direction: column; gap: 15px; padding: 19px 13px; background: #151c28; }
.preview-layout>aside b { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 10px; border-radius: 8px; color: #382700; background: #ffc000; font-size: 10px; }
.preview-layout>aside span { width: 28px; height: 6px; border-radius: 5px; background: #344052; }.preview-layout>aside span.on { background: #ffc000; }
.preview-content { padding: 24px; background: #f3f6fa; }
.preview-title { display: flex; align-items: flex-start; justify-content: space-between; }.preview-title>span { display: grid; gap: 4px; }.preview-title small { color: #b97800; font-size: 6px; font-weight: 900; letter-spacing: 1px; }.preview-title strong { font-size: 18px; }.preview-title>i { padding: 5px 7px; border-radius: 999px; color: #168257; background: #eaf8f2; font-size: 6px; font-style: normal; font-weight: 800; }
.preview-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin: 21px 0 11px; }.preview-kpis>div { display: grid; gap: 7px; padding: 13px; border: 1px solid #e1e6ed; border-radius: 9px; background: #fff; }.preview-kpis small { color: #788494; font-size: 7px; }.preview-kpis strong { font-size: 12px; }.preview-kpis .positive { color: #159a62; }.preview-kpis .negative { color: #dc3f4d; }
.preview-chart { padding: 15px; border: 1px solid #e1e6ed; border-radius: 10px; background: #fff; }.preview-chart-head { display: flex; align-items: center; justify-content: space-between; }.preview-chart-head strong { font-size: 9px; }.preview-chart-head span { color: #8993a3; font-size: 6px; }
.preview-bars { display: flex; align-items: flex-end; gap: 13px; height: 116px; margin-top: 14px; padding: 0 8px; border-bottom: 1px solid #dbe1e9; background: repeating-linear-gradient(to bottom,#fff,#fff 37px,#edf0f4 38px); }.preview-bars i { flex: 1; min-height: 12px; border-radius: 4px 4px 0 0; background: linear-gradient(#ffd963,#f0ae00); }
.preview-assistant { display: grid; grid-template-columns: 30px 1fr 25px; align-items: center; gap: 9px; margin-top: 11px; padding: 10px; border: 1px solid #f0d47d; border-radius: 9px; background: #fffaf0; }.preview-assistant>b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #fff; background: #f47621; font-size: 8px; }.preview-assistant>span { display: grid; gap: 2px; }.preview-assistant strong { font-size: 8px; }.preview-assistant small { color: #738094; font-size: 6px; }.preview-assistant>i { color: #b87800; font-style: normal; font-weight: 900; }
.landing-proof-strip { display: flex; align-items: center; justify-content: center; gap: 28px; min-height: 76px; padding: 20px; color: #6d7786; background: #171e2b; font-size: 10px; font-weight: 900; letter-spacing: 1.8px; }.landing-proof-strip i { width: 4px; height: 4px; border-radius: 50%; background: #ffc000; }
.landing-section { padding: 104px max(32px,calc((100vw - 1240px)/2)); }
.landing-section-heading { max-width: 730px; margin: 0 auto 48px; text-align: center; }.landing-section-heading h2,.landing-ai-copy h2,.landing-pricing h2 { margin: 9px 0 13px; color: #172033; font-size: clamp(34px,4vw,48px); line-height: 1.08; letter-spacing: -1.7px; }.landing-section-heading p,.landing-pricing>div>p { margin: 0; color: #697486; font-size: 16px; line-height: 1.65; }
.landing-feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.landing-feature { position: relative; min-height: 235px; padding: 28px; border: 1px solid #e3e7ed; border-radius: 16px; background: #fff; transition: transform .18s ease,box-shadow .18s ease,border-color .18s ease; }.landing-feature:hover { transform: translateY(-4px); border-color: #eccb6d; box-shadow: 0 18px 38px rgba(28,38,56,.09); }.landing-feature.featured { border-color: #e9c75d; background: linear-gradient(145deg,#fffdf7,#fff7dc); }
.feature-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; color: #3f2b00; background: #ffc000; font-size: 12px; font-weight: 900; }.landing-feature h3 { margin: 21px 0 10px; font-size: 18px; }.landing-feature p { margin: 0; color: #6a7586; font-size: 13px; line-height: 1.7; }.landing-feature>b { display: block; margin-top: 18px; color: #9a6800; font-size: 11px; }
.landing-ai-section { display: grid; grid-template-columns: minmax(0,.85fr) minmax(500px,1.15fr); align-items: center; gap: 90px; padding: 105px max(32px,calc((100vw - 1120px)/2)); color: #fff; background: radial-gradient(circle at 80% 10%,rgba(255,192,0,.14),transparent 30%),#171e2b; }
.landing-ai-copy h2 { color: #fff; }.landing-ai-copy>p { color: #b8c1ce; font-size: 16px; line-height: 1.7; }.landing-ai-copy ul { display: grid; gap: 18px; margin: 29px 0 0; padding: 0; list-style: none; }.landing-ai-copy li { display: flex; align-items: flex-start; gap: 12px; }.landing-ai-copy li>i { display: grid; place-items: center; flex: 0 0 auto; width: 25px; height: 25px; border-radius: 8px; color: #3b2a00; background: #ffc000; font-style: normal; font-weight: 900; }.landing-ai-copy li>span { display: grid; gap: 3px; color: #9da9b9; font-size: 12px; }.landing-ai-copy li strong { color: #fff; font-size: 13px; }
.landing-chat-card { overflow: hidden; border: 1px solid #3b4555; border-radius: 18px; background: #f7f8fa; box-shadow: 0 30px 70px rgba(0,0,0,.26); }.landing-chat-card>header { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 16px 18px; color: #172033; background: #fff; border-bottom: 1px solid #e3e7ed; }.landing-chat-card>header>b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #fff; background: #f47621; font-size: 11px; }.landing-chat-card>header>span { display: grid; gap: 2px; }.landing-chat-card>header strong { font-size: 12px; }.landing-chat-card>header small { color: #7d8899; font-size: 8px; }.landing-chat-card>header>i { padding: 6px 9px; border-radius: 999px; color: #18825a; background: #eaf8f2; font-size: 8px; font-style: normal; font-weight: 800; }
.landing-chat-messages { display: flex; flex-direction: column; gap: 17px; min-height: 340px; padding: 25px; }.landing-chat-messages p { margin: 0; }.user-message { align-self: flex-end; max-width: 72%; padding: 13px 15px; border-radius: 14px 14px 4px 14px; color: #fff; background: #253149; font-size: 11px; line-height: 1.55; }.ai-message { display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: flex-start; gap: 9px; max-width: 84%; }.ai-message>b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #3b2a00; background: #ffc000; font-size: 8px; }.ai-message p { padding: 13px 15px; border: 1px solid #e0e5ec; border-radius: 4px 14px 14px; color: #4d596c; background: #fff; font-size: 11px; line-height: 1.6; }.ai-message strong { color: #172033; }
.landing-chat-card>footer { display: flex; align-items: center; justify-content: space-between; margin: 0 15px 15px; padding: 10px 10px 10px 15px; border: 1px solid #d8dee7; border-radius: 12px; color: #909aab; background: #fff; font-size: 9px; }.landing-chat-card>footer b { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; color: #fff; background: #f47621; }
.landing-security { background: #f5f7fa; }.landing-security-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; max-width: 1080px; margin: 0 auto; }.landing-security-grid article { padding: 30px; border: 1px solid #e0e5ec; border-radius: 16px; background: #fff; }.landing-security-grid article>span { color: #bd8000; font-size: 10px; font-weight: 900; letter-spacing: 1px; }.landing-security-grid h3 { margin: 18px 0 9px; font-size: 17px; }.landing-security-grid p { margin: 0; color: #6c7788; font-size: 12px; line-height: 1.7; }
.landing-pricing { display: grid; grid-template-columns: minmax(0,1fr) 390px; align-items: center; gap: 90px; padding: 105px max(32px,calc((100vw - 1080px)/2)); background: #fff; }.landing-pricing>div { max-width: 570px; }.landing-price-card { padding: 34px; border: 1px solid #e5c45a; border-radius: 20px; background: linear-gradient(145deg,#fffdf6,#fff7d9); box-shadow: 0 24px 55px rgba(55,42,10,.12); }.landing-price-card>span { color: #936400; font-size: 11px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; }.landing-price-card>strong { display: block; margin: 13px 0 23px; color: #172033; font-size: 33px; }.landing-price-card>strong small { margin-left: 5px; color: #6d7787; font-size: 10px; }.landing-price-card ul { display: grid; gap: 12px; margin: 0 0 25px; padding: 0; list-style: none; }.landing-price-card li { color: #505c6e; font-size: 12px; font-weight: 700; }.landing-price-card li::before { content: "✓"; margin-right: 9px; color: #138b59; font-weight: 900; }.landing-price-card .button { width: 100%; justify-content: space-between; }.landing-price-card>small { display: block; margin-top: 12px; color: #7b8492; text-align: center; font-size: 9px; }
.landing-footer { display: grid; grid-template-columns: 185px 1fr auto; align-items: center; gap: 28px; padding: 40px max(32px,calc((100vw - 1240px)/2)); color: #9da8b7; background: #171e2b; }.landing-footer img { width: 175px; padding: 7px 10px; border-radius: 9px; background: #fff; }.landing-footer p { margin: 0; font-size: 11px; }.landing-footer div { display: flex; gap: 18px; }.landing-footer a { color: #fff; font-size: 11px; font-weight: 700; text-decoration: none; }.landing-footer>small { grid-column: 1/-1; padding-top: 18px; border-top: 1px solid #2d3746; font-size: 9px; }
.auth-back-link,.register-back-link { display: inline-block; margin-bottom: 19px; color: #7a6750; font-size: 10px; font-weight: 800; text-decoration: none; }.register-back-link { color: #614600; }

@media (max-width: 1050px) {
  .landing-nav { display: none; }
  .landing-hero { grid-template-columns: 1fr; gap: 55px; text-align: center; }
  .landing-hero-copy { display: grid; justify-items: center; }.landing-trust-row,.landing-hero-actions { justify-content: center; }
  .landing-product-preview { width: min(780px,100%); margin: 0 auto; transform: none; text-align: left; }
  .landing-feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .landing-ai-section { grid-template-columns: 1fr; gap: 55px; }.landing-ai-copy { max-width: 700px; }
}
@media (max-width: 720px) {
  .landing-header { height: 68px; padding: 0 16px; }.landing-brand { width: 142px; }.landing-header-actions { gap: 10px; }.landing-login { font-size: 11px; }.landing-small-cta { padding: 7px 10px; font-size: 10px; }
  .landing-hero { min-height: 0; padding: 64px 18px; }.landing-hero h1 { font-size: 42px; letter-spacing: -2px; }.landing-hero-copy>p { font-size: 15px; }.landing-hero-actions { align-items: stretch; flex-direction: column; width: 100%; }.landing-primary-cta { width: 100%; }.landing-trust-row { gap: 10px; font-size: 9px; }
  .preview-layout { grid-template-columns: 45px 1fr; min-height: 340px; }.preview-layout>aside { padding: 14px 8px; }.preview-content { padding: 14px; }.preview-kpis { grid-template-columns: 1fr; }.preview-kpis>div:nth-child(n+2) { display: none; }.preview-bars { height: 90px; gap: 7px; }.preview-assistant { display: none; }
  .landing-proof-strip { flex-wrap: wrap; gap: 14px; }.landing-proof-strip i { display: none; }
  .landing-section,.landing-ai-section,.landing-pricing { padding: 75px 18px; }.landing-section-heading { margin-bottom: 34px; }.landing-section-heading h2,.landing-ai-copy h2,.landing-pricing h2 { font-size: 34px; }
  .landing-feature-grid,.landing-security-grid { grid-template-columns: 1fr; }.landing-feature { min-height: 0; }
  .landing-ai-section { gap: 40px; }.landing-chat-messages { min-height: 300px; padding: 16px; }.user-message,.ai-message { max-width: 94%; }
  .landing-pricing { grid-template-columns: 1fr; gap: 35px; }.landing-price-card { padding: 26px 22px; }
  .landing-footer { grid-template-columns: 1fr; justify-items: start; padding: 36px 20px; }.landing-footer>small { grid-column: auto; width: 100%; }
}
