:root {
  --ink: #17251f;
  --muted: #64716b;
  --line: #dfe6e2;
  --paper: #ffffff;
  --canvas: #f3f6f4;
  /* Verde da marca Expresso Taubate (logotipo) e tons acessiveis para texto e botoes. */
  --brand: #00913e;
  --green: #007a35;
  --green-dark: #00632b;
  --green-soft: #e6f4eb;
  --amber: #b76a17;
  --amber-soft: #fff3df;
  --blue: #276b8c;
  --blue-soft: #e7f3f8;
  --red: #aa3c3c;
  --red-soft: #faeaea;
  --shadow: 0 18px 50px rgba(23, 37, 31, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; }
.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(20px, 5vw, 72px);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { display: block; height: 44px; width: auto; }
.brand strong, .brand small { display: block; }
.brand strong { color: var(--green-dark); letter-spacing: -.01em; }
.brand-text { padding-left: 12px; border-left: 1px solid var(--line); }
.brand small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.user-area { display: flex; align-items: center; gap: 20px; text-align: right; }
.user-area strong, .user-area span { display: block; }
.user-area span { color: var(--muted); font-size: .82rem; }
.link-button { border: 0; background: transparent; color: var(--green); cursor: pointer; padding: 8px; font-weight: 700; }
.container { width: min(900px, calc(100% - 36px)); margin: 0 auto; padding: 48px 0 72px; min-height: calc(100vh - 140px); }
.container-wide { width: min(1240px, calc(100% - 36px)); }
footer { text-align: center; padding: 24px; color: var(--muted); font-size: .8rem; }
.login-shell { min-height: 620px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(40px, 8vw, 120px); }
.login-copy h1, .page-heading h1, .form-heading h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.02; letter-spacing: -.055em; margin: 12px 0 20px; }
.login-copy p { color: var(--muted); font-size: 1.1rem; max-width: 620px; }
.eyebrow { color: var(--green); text-transform: uppercase; font-size: .76rem; letter-spacing: .14em; font-weight: 800; }
.rule-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.rule-pills span { border: 1px solid #cddbd4; border-radius: 999px; padding: 8px 12px; font-size: .8rem; background: rgba(255,255,255,.65); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(24px, 4vw, 42px); }
.login-panel h2 { font-size: 1.8rem; margin: 8px 0; }
.muted, .form-heading p, .page-heading p, .form-section p { color: var(--muted); }
.stack { display: grid; gap: 18px; margin-top: 26px; }
.stack.compact { margin-top: 14px; gap: 12px; }
label, fieldset { display: grid; gap: 8px; font-size: .88rem; font-weight: 700; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { margin-bottom: 8px; }
input, select, textarea { width: 100%; color: var(--ink); background: #fbfcfb; border: 1px solid #cfd9d4; border-radius: 10px; padding: 12px 13px; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 122, 53, .15); }
textarea { resize: vertical; }
.button { display: inline-flex; justify-content: center; align-items: center; border: 0; border-radius: 10px; padding: 12px 18px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--green); color: white; }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { background: white; color: var(--green); border: 1px solid #b9cec4; }
.button-secondary:hover { background: var(--green-soft); }
.button-block { width: 100%; }
.heading-actions { display: flex; gap: 10px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 34px; }
.page-heading h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 10px; }
.page-heading p { margin: 0; max-width: 680px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 28px 0 42px; }
.summary-card { padding: 20px; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: 14px; }
.summary-card span, .summary-card small, .summary-card strong { display: block; }
.summary-card span { color: var(--muted); font-size: .82rem; }
.summary-card strong { font-size: 2rem; letter-spacing: -.04em; margin: 6px 0 -2px; }
.summary-card small { color: var(--muted); }
.accent-amber { border-top-color: var(--amber); }.accent-green { border-top-color: var(--green); }.accent-blue { border-top-color: var(--blue); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: 1.25rem; }.section-heading span { color: var(--muted); font-size: .85rem; }
.requests-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.request-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 8px 30px rgba(23,37,31,.035); }
.request-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.request-heading h3 { margin: 3px 0 0; font-size: 1.3rem; }.request-id { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.status { border-radius: 999px; padding: 6px 10px; font-size: .73rem; font-weight: 800; white-space: nowrap; }
.status-warning { background: var(--amber-soft); color: var(--amber); }.status-success { background: var(--green-soft); color: var(--green); }.status-info { background: var(--blue-soft); color: var(--blue); }.status-danger { background: var(--red-soft); color: var(--red); }
.manager-line { color: var(--muted); font-size: .85rem; }
.period-list { list-style: none; margin: 20px 0; padding: 0; border-top: 1px solid var(--line); }
.period-list li { display: grid; grid-template-columns: 1fr auto; padding: 12px 0; border-bottom: 1px solid var(--line); }
.period-list span { font-size: .78rem; color: var(--muted); }.period-list strong { grid-row: span 2; align-self: center; }.period-list small { font-size: .75rem; }
.request-meta { display: flex; flex-wrap: wrap; gap: 8px; }.request-meta span { padding: 6px 9px; background: var(--canvas); border-radius: 7px; font-size: .75rem; }
.notes { color: var(--muted); font-size: .85rem; }.review-note { margin-top: 16px; padding: 12px; border-left: 3px solid var(--blue); background: var(--blue-soft); border-radius: 0 8px 8px 0; }.review-note p { margin: 4px 0 0; }
.review-box { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }.review-box summary { cursor: pointer; color: var(--green); font-weight: 800; }
.request-action { margin-top: 18px; }
.empty-state { text-align: center; padding: 70px 20px; background: white; border: 1px dashed #cbd8d1; border-radius: 18px; }.empty-state > span { display: grid; place-items: center; margin: 0 auto 12px; width: 48px; height: 48px; background: var(--green-soft); color: var(--green); border-radius: 50%; font-weight: 900; }.empty-state h3 { margin-bottom: 4px; }.empty-state p { color: var(--muted); margin-top: 0; }
.alert { border-radius: 10px; padding: 13px 15px; margin: 18px 0; }.alert ul { margin: 8px 0 0; }.alert-success { background: var(--green-soft); color: var(--green-dark); border: 1px solid #b9dfcf; }.alert-danger { background: var(--red-soft); color: #792b2b; border: 1px solid #efc2c2; }
.back-link { display: inline-block; color: var(--green); text-decoration: none; font-weight: 800; margin-bottom: 28px; }.form-heading { margin-bottom: 28px; }.form-heading h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 8px; }
.request-form { padding: clamp(24px, 5vw, 52px); }.form-section { display: flex; gap: 14px; align-items: start; }.form-section h2 { margin: 0; font-size: 1.25rem; }.form-section p { margin: 3px 0 0; font-size: .85rem; }.section-number { flex: 0 0 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--green); color: white; font-weight: 900; }.separated { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 30px; }
.form-grid { display: grid; gap: 18px; margin-top: 22px; }.two-columns { grid-template-columns: repeat(2, 1fr); }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }.choice-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); padding: 15px; border-radius: 12px; cursor: pointer; }.choice-card:has(input:checked) { border-color: var(--green); background: var(--green-soft); }.choice-card input { width: auto; }.choice-card strong, .choice-card small { display: block; }.choice-card small { color: var(--muted); font-weight: 400; }
.periods { display: grid; gap: 10px; margin-top: 18px; }.period-row { display: grid; grid-template-columns: 100px 1fr 1fr; gap: 12px; align-items: end; padding: 14px; background: var(--canvas); border-radius: 12px; }.period-row[hidden] { display: none; }.period-label { align-self: center; font-weight: 800; font-size: .82rem; }.rule-callout { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; padding: 12px 14px; border-radius: 9px; color: #72501a; background: var(--amber-soft); font-size: .82rem; }
.agreement { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border: 1px solid #cfdcd5; border-radius: 10px; background: #fbfcfb; }.agreement[hidden] { display: none; }.agreement input { width: auto; }
.inline-options { display: flex; gap: 22px; height: 44px; align-items: center; }.inline-options label { display: flex; align-items: center; gap: 7px; }.inline-options input { width: auto; }
.request-form > label { margin-top: 22px; }.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); margin-top: 34px; padding-top: 24px; }.form-footer p { margin: 0; max-width: 510px; color: var(--muted); font-size: .82rem; }.error-page { margin-top: 80px; }
.calendar-layout { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }.calendar-form { margin: 0; }.calendar-form h2, .calendar-table-wrap h2 { margin: 0 0 18px; font-size: 1.2rem; }.calendar-table-wrap { overflow-x: auto; }table { width: 100%; border-collapse: collapse; }th, td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: left; }th { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }.table-empty { color: var(--muted); text-align: center; padding: 32px; }
.request-search { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 8px 0 -18px; }
.request-search label { flex: 1 1 320px; max-width: 520px; }
.request-search .link-button { align-self: center; }
.own-request { margin: 16px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--amber-soft); color: #72501a; font-size: .85rem; }
.table-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 18px; }
.table-toolbar .table-search { margin-bottom: 0; flex: 1 1 280px; }
.filter-status { margin: 0; color: var(--muted); font-size: .88rem; }
.filter-status a { color: var(--green); font-weight: 700; }
.alert-info-team { background: var(--blue-soft); color: #1d4f68; border: 1px solid #bcdbe8; }
.relink summary { cursor: pointer; color: var(--green); font-weight: 700; font-size: .85rem; }
.relink[open] { flex-basis: 100%; }
.topbar { border-bottom: 3px solid var(--brand); }
.auth-logo { display: block; width: 150px; height: auto; margin: 0 auto 18px; }
.auth-panel .eyebrow { display: block; text-align: center; }
.auth-panel h1 { text-align: center; }
.auth-shell { min-height: 60vh; display: grid; place-items: center; }
.auth-panel { width: min(460px, 100%); }
.auth-panel h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -.03em; margin: 10px 0 8px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; font-size: .88rem; }
.auth-links a { color: var(--green); font-weight: 700; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }
.hint { margin: -6px 0 0; color: var(--muted); font-size: .8rem; font-weight: 400; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form select { min-width: 220px; padding: 8px 10px; }
.actions-cell { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }
.section-heading.spaced { margin-top: 36px; }
.main-nav { display: flex; gap: 6px; margin-right: auto; margin-left: 28px; }
.main-nav a { padding: 8px 12px; border-radius: 9px; text-decoration: none; font-weight: 700; font-size: .88rem; color: var(--muted); }
.main-nav a:hover { background: var(--canvas); color: var(--ink); }
.main-nav a.active { background: var(--green-soft); color: var(--green); }
a.summary-card { text-decoration: none; transition: box-shadow .15s, transform .15s; }
a.summary-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.summary-card.selected { outline: 2px solid var(--green); outline-offset: -2px; }
.accent-red { border-top-color: var(--red); }
.alert-warning { background: var(--amber-soft); color: #72501a; border: 1px solid #f0d2a6; font-size: .85rem; margin: 14px 0 0; }
.chip-import { background: var(--blue-soft) !important; color: var(--blue); font-weight: 700; }
.button-small { padding: 7px 12px; font-size: .8rem; }
.link-button.danger { color: var(--red); }
.table-panel { padding: clamp(18px, 3vw, 28px); }
.table-search { max-width: 420px; margin-bottom: 18px; }
.table-scroll { overflow-x: auto; }
.balances-table td { vertical-align: top; font-size: .88rem; }
.balances-table td small { display: block; color: var(--muted); font-size: .76rem; }
.balances-table tr[hidden] { display: none; }
.balances-table .numeric { text-align: right; white-space: nowrap; }
.balances-table .notes-cell { color: var(--muted); font-size: .8rem; max-width: 220px; }
.balances-table .status { margin-left: 6px; }
@media (max-width: 900px) {
  .main-nav { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .topbar { flex-wrap: wrap; }
  .login-shell { grid-template-columns: 1fr; padding-top: 30px; }.login-copy { text-align: center; }.login-copy p { margin-inline: auto; }.rule-pills { justify-content: center; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }.requests-grid { grid-template-columns: 1fr; }
  .calendar-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topbar { padding: 10px 16px; }.user-area > div { display: none; }.brand strong { font-size: .9rem; }.brand-logo { height: 36px; }.brand-text small { display: none; }
  .container, .container-wide { width: min(100% - 24px, 900px); padding-top: 30px; }.page-heading { align-items: stretch; flex-direction: column; }.page-heading .button { width: 100%; }
  .heading-actions { flex-direction: column; }
  .summary-grid, .two-columns, .choice-grid { grid-template-columns: 1fr; }.period-row { grid-template-columns: 1fr 1fr; }.period-label { grid-column: 1 / -1; }.form-footer { align-items: stretch; flex-direction: column; }.form-footer .button { width: 100%; }
}
