:root {
  --blue: #0b63ce;
  --blue-2: #0955b5;
  --blue-soft: #eaf3ff;
  --orange: #f27a2d;
  --orange-soft: #fff1e8;
  --green: #199b69;
  --green-soft: #e8f7f1;
  --red: #d64545;
  --red-soft: #fff0f0;
  --ink: #172235;
  --text: #344054;
  --muted: #7a8699;
  --line: #e8edf3;
  --surface: #ffffff;
  --page: #f5f7fb;
  --sidebar: #101b2d;
  --sidebar-soft: #18263b;
  --shadow: 0 18px 50px rgba(27, 45, 74, .10);
  --radius: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--page); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
svg { width: 20px; height: 20px; fill: currentColor; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; border-radius: 12px; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.brand-subtitle { font-size: 12px; color: var(--muted); margin-top: 2px; }
.eyebrow, .panel-kicker, .modal-kicker, .preview-kicker { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--blue); }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(440px, 560px) 1fr; background: #fff; }
.login-card { padding: 52px clamp(36px, 7vw, 92px); display: flex; flex-direction: column; justify-content: center; max-width: 620px; width: 100%; margin: auto; }
.brand-login { margin-bottom: 62px; }
.login-copy h1 { font-size: clamp(34px, 4vw, 48px); line-height: 1.03; letter-spacing: -.045em; margin: 10px 0 16px; }
.login-copy p { color: var(--muted); line-height: 1.65; font-size: 15px; margin: 0 0 32px; max-width: 500px; }
.form-stack { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span, .field-label { font-size: 13px; font-weight: 700; color: var(--text); }
.field em { font-style: normal; color: var(--muted); font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #dce3ec; border-radius: 12px; padding: 12px 13px; outline: none; background: #fff; color: var(--ink); transition: .18s ease; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #7db5f5; box-shadow: 0 0 0 3px rgba(11, 99, 206, .10); }
.field textarea { resize: vertical; min-height: 74px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 48px; }
.password-wrap .icon-button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.form-error { color: #a92f2f; background: var(--red-soft); border: 1px solid #ffd7d7; border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.demo-hint { margin-top: 24px; padding: 14px 16px; border-radius: 12px; background: #f7f9fc; color: var(--muted); display: grid; gap: 4px; font-size: 12px; }
.demo-hint strong { color: var(--text); }

.login-art { position: relative; overflow: hidden; background: radial-gradient(circle at 20% 15%, #2a81e8 0, #1167d1 26%, #0a4d9e 68%, #083f80 100%); min-height: 100vh; }
.login-art::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(to bottom, transparent, #000 18%, #000); }
.art-orb { position: absolute; border-radius: 50%; filter: blur(2px); background: rgba(255,255,255,.11); }
.orb-one { width: 420px; height: 420px; top: -120px; right: -120px; }
.orb-two { width: 280px; height: 280px; bottom: -80px; left: 8%; }
.preview-card { position: absolute; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.94); box-shadow: 0 24px 70px rgba(1, 35, 80, .28); border-radius: 22px; color: var(--ink); backdrop-filter: blur(10px); }
.preview-menu { width: 360px; padding: 24px; left: 13%; top: 28%; transform: rotate(-2deg); }
.preview-menu strong { display: block; font-size: 25px; margin: 9px 0 5px; }
.preview-menu small { color: var(--muted); }
.preview-notice { width: 330px; padding: 18px 20px; right: 9%; top: 54%; display: flex; gap: 12px; align-items: flex-start; transform: rotate(2deg); }
.preview-notice strong, .preview-notice small { display: block; }
.preview-notice small { color: var(--muted); margin-top: 4px; line-height: 1.4; }
.notice-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--orange); margin-top: 5px; box-shadow: 0 0 0 6px var(--orange-soft); flex: 0 0 auto; }

.button { border: 0; border-radius: 11px; min-height: 42px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 750; font-size: 13px; transition: .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .6; transform: none; }
.button.primary { background: var(--blue); color: #fff; box-shadow: 0 7px 16px rgba(11,99,206,.20); }
.button.primary:hover { background: var(--blue-2); }
.button.secondary { background: #eef2f7; color: var(--text); }
.button.tertiary { background: var(--blue-soft); color: var(--blue); }
.button.danger { background: var(--red); color: #fff; }
.button.danger.ghost { background: var(--red-soft); color: var(--red); }
.button.wide { width: 100%; justify-content: space-between; min-height: 48px; }
.small-button { min-height: 36px; }
.icon-button { width: 38px; height: 38px; border: 0; border-radius: 10px; display: inline-grid; place-items: center; background: #f1f4f8; color: var(--text); }
.icon-button.small { width: 36px; height: 36px; background: transparent; }
.text-button { border: 0; background: transparent; color: var(--blue); font-size: 13px; font-weight: 750; padding: 6px 0; }

.admin-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--sidebar); color: #fff; padding: 25px 17px 18px; display: flex; flex-direction: column; z-index: 30; }
.sidebar-brand { padding: 0 8px 25px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar .brand-logo { background: #fff; width: 42px; height: 42px; }
.sidebar .brand-subtitle { color: #8ea0bb; }
.nav-list { display: grid; gap: 6px; padding-top: 24px; }
.nav-item { width: 100%; min-height: 46px; border: 0; border-radius: 11px; background: transparent; color: #aebbd0; display: flex; align-items: center; gap: 12px; padding: 0 13px; font-size: 13px; font-weight: 650; text-align: left; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(40,130,240,.30), rgba(40,130,240,.12)); box-shadow: inset 3px 0 0 #4e9df6; }
.sidebar-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; }
.admin-mini { display: flex; align-items: center; gap: 10px; padding: 7px 8px 16px; }
.avatar { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: #2a78d3; color: #fff; font-size: 12px; font-weight: 800; }
.admin-mini-copy { min-width: 0; }
.admin-mini-copy strong, .admin-mini-copy span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-mini-copy strong { font-size: 12px; color: #fff; }
.admin-mini-copy span { color: #8496b1; font-size: 11px; margin-top: 2px; }
.nav-item.logout { margin-top: 5px; color: #f4a6a6; }

.main-column { min-width: 0; }
.topbar { min-height: 80px; padding: 15px 30px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.topbar p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.topbar-right { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 12px; }
.server-pill { display: inline-flex; align-items: center; gap: 7px; background: var(--green-soft); color: #167c57; border-radius: 999px; padding: 7px 10px; font-weight: 700; }
.server-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(25,155,105,.12); }
.content { padding: 28px 30px 44px; max-width: 1480px; margin: 0 auto; }

.welcome-panel { border-radius: 22px; background: linear-gradient(125deg, #0b63ce, #0b54aa); color: #fff; padding: 28px 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; box-shadow: 0 18px 36px rgba(9,85,181,.18); overflow: hidden; position: relative; }
.welcome-panel::after { content: ""; width: 260px; height: 260px; position: absolute; right: -80px; top: -130px; border-radius: 50%; border: 46px solid rgba(255,255,255,.07); }
.welcome-panel .eyebrow { color: #bcdcff; }
.welcome-panel h1 { margin: 7px 0 5px; font-size: 28px; letter-spacing: -.035em; }
.welcome-panel p { margin: 0; color: #d6e8fc; font-size: 13px; }
.quick-actions { display: flex; gap: 9px; position: relative; z-index: 1; }
.welcome-panel .button.primary { background: #fff; color: var(--blue); box-shadow: none; }
.welcome-panel .button.secondary { background: rgba(255,255,255,.13); color: #fff; border: 1px solid rgba(255,255,255,.17); }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-top: 20px; }
.metric-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 19px; display: flex; align-items: center; gap: 14px; box-shadow: 0 8px 20px rgba(39,57,86,.04); }
.metric-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: 0 0 auto; }
.metric-card.blue .metric-icon { background: var(--blue-soft); color: var(--blue); }
.metric-card.green .metric-icon { background: var(--green-soft); color: var(--green); }
.metric-card.orange .metric-icon { background: var(--orange-soft); color: var(--orange); }
.metric-card.gray .metric-icon { background: #f0f2f5; color: #637083; }
.metric-card span, .metric-card strong { display: block; }
.metric-card span { color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.metric-card strong { font-size: 25px; letter-spacing: -.03em; }

.dashboard-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; margin-top: 20px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.panel-head h3 { margin: 4px 0 0; font-size: 17px; }
.stack-list { display: grid; gap: 8px; }
.list-row { border: 1px solid #edf1f5; border-radius: 13px; padding: 12px 13px; display: flex; align-items: center; gap: 12px; transition: .14s ease; background: #fff; }
.list-row:hover { border-color: #dbe5f1; transform: translateY(-1px); }
.date-tile { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: 0 0 auto; }
.date-tile strong, .date-tile span { display: block; text-align: center; line-height: 1; }
.date-tile strong { font-size: 16px; }
.date-tile span { font-size: 9px; margin-top: 4px; font-weight: 800; }
.row-copy { min-width: 0; flex: 1; }
.row-copy strong, .row-copy span { display: block; }
.row-copy strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-copy span { color: var(--muted); font-size: 11px; margin-top: 4px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.badge { border-radius: 999px; padding: 5px 8px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.badge.green { color: #167c57; background: var(--green-soft); }
.badge.orange { color: #af5c25; background: var(--orange-soft); }
.badge.blue { color: #145fab; background: var(--blue-soft); }
.badge.gray { color: #697586; background: #f0f2f5; }
.badge.red { color: #a23d3d; background: var(--red-soft); }
.skeleton { height: 66px; border-radius: 12px; background: linear-gradient(90deg, #f2f4f7 25%, #e9edf2 38%, #f2f4f7 58%); background-size: 400% 100%; animation: skeleton 1.3s ease infinite; }
@keyframes skeleton { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.section-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.month-switcher { display: flex; align-items: center; gap: 10px; }
.month-switcher > div { min-width: 160px; }
.month-switcher span, .month-switcher strong { display: block; }
.month-switcher span { color: var(--muted); font-size: 10px; }
.month-switcher strong { font-size: 17px; text-transform: capitalize; margin-top: 2px; }
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.menu-admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 17px; min-width: 0; transition: .15s ease; }
.menu-admin-card:hover { border-color: #cfdcec; box-shadow: 0 10px 24px rgba(39,57,86,.06); }
.menu-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.menu-date { display: flex; align-items: center; gap: 10px; }
.menu-date .date-tile { width: 46px; height: 46px; }
.menu-date strong, .menu-date span { display: block; }
.menu-date > div > strong { font-size: 13px; }
.menu-date > div > span { color: var(--muted); font-size: 11px; margin-top: 3px; }
.menu-items-preview { padding: 14px 0; display: grid; gap: 6px; min-height: 105px; }
.menu-item-preview { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 12px; }
.menu-item-preview .emoji { width: 22px; text-align: center; }
.more-items { color: var(--muted); font-size: 11px; margin-left: 30px; }
.menu-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 11px; border-top: 1px solid #eef1f5; }
.menu-card-foot span { color: var(--muted); font-size: 11px; }
.menu-card-foot .text-button { font-size: 11px; }
.empty-state { grid-column: 1 / -1; background: #fff; border: 1px dashed #d8e0ea; border-radius: var(--radius); padding: 50px 20px; text-align: center; color: var(--muted); }
.empty-state .empty-icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 18px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: 24px; }
.empty-state strong { display: block; color: var(--ink); margin-bottom: 5px; }

.filter-tabs { display: inline-flex; padding: 4px; border-radius: 11px; background: #e9eef5; }
.filter-tab { border: 0; background: transparent; border-radius: 8px; padding: 8px 13px; color: var(--muted); font-size: 12px; font-weight: 700; }
.filter-tab.active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(25,35,55,.08); }
.notice-admin-list { display: grid; gap: 10px; }
.notice-admin-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 17px 18px; display: grid; grid-template-columns: 5px minmax(0,1fr) auto; gap: 15px; align-items: stretch; }
.notice-accent { border-radius: 999px; background: var(--blue); }
.notice-accent.ORANGE { background: var(--orange); }
.notice-accent.GREEN { background: var(--green); }
.notice-content { min-width: 0; }
.notice-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.notice-content h3 { margin: 0; font-size: 14px; }
.notice-content p { color: var(--text); margin: 7px 0 9px; font-size: 12px; line-height: 1.5; }
.notice-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 10px; }
.notice-actions { display: flex; align-items: center; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(10,19,34,.52); z-index: 100; display: grid; place-items: center; padding: 24px; backdrop-filter: blur(3px); overflow-y: auto; }
.modal { width: min(620px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: #fff; border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.22); padding: 22px; }
.modal-large { width: min(820px, 100%); }
.modal-confirm { width: min(420px, 100%); text-align: center; padding: 30px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 21px; }
.modal-head h2 { margin: 4px 0 0; font-size: 21px; }
.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.time-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.toggle-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 15px 0; }
.check-field { border: 1px solid #e1e7ef; border-radius: 12px; padding: 12px; display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check-field.standalone { margin-top: 15px; }
.check-field input { margin-top: 2px; accent-color: var(--blue); width: 16px; height: 16px; }
.check-field strong, .check-field small { display: block; }
.check-field strong { font-size: 12px; }
.check-field small { color: var(--muted); font-size: 10px; line-height: 1.35; margin-top: 3px; }
.items-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 10px; }
.items-head small { display: block; color: var(--muted); margin-top: 3px; font-size: 10px; }
.menu-items-editor { display: grid; gap: 8px; }
.menu-item-editor { display: grid; grid-template-columns: 64px minmax(180px,1fr) 180px 38px; gap: 8px; align-items: center; padding: 8px; border: 1px solid #e8edf3; border-radius: 12px; background: #fbfcfe; }
.menu-item-editor input, .menu-item-editor select { border: 1px solid #dde4ec; border-radius: 9px; background: #fff; padding: 9px 10px; min-width: 0; width: 100%; }
.remove-item { width: 34px; height: 34px; border: 0; border-radius: 9px; background: var(--red-soft); color: var(--red); font-weight: 800; }
.modal-actions { display: flex; gap: 9px; margin-top: 22px; padding-top: 17px; border-top: 1px solid #edf0f4; }
.modal-actions.split { justify-content: space-between; }
.modal-actions.center { justify-content: center; }
.right-actions { display: flex; gap: 9px; margin-left: auto; }
.confirm-icon { width: 54px; height: 54px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 18px; background: var(--red-soft); color: var(--red); font-size: 24px; font-weight: 900; }
.modal-confirm h2 { margin: 0 0 8px; }
.modal-confirm p { color: var(--muted); font-size: 13px; line-height: 1.5; }

.toast-host { position: fixed; top: 18px; right: 18px; z-index: 300; display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: 270px; max-width: 390px; background: #172235; color: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; animation: toast-in .18s ease; }
.toast.success { background: #147753; }
.toast.error { background: #aa3a3a; }
.toast strong, .toast span { display: block; }
.toast strong { font-size: 12px; }
.toast span { font-size: 11px; opacity: .82; margin-top: 2px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

.mobile-only { display: none; }
.sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.38); z-index: 25; }

@media (max-width: 1120px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cards-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .login-shell { display: block; }
  .login-art { display: none; }
  .login-card { min-height: 100vh; padding: 34px 24px; }
  .brand-login { margin-bottom: 44px; }
  .admin-shell { display: block; }
  .sidebar { position: fixed; left: -270px; width: 252px; transition: left .2s ease; }
  .sidebar.open { left: 0; }
  .mobile-only { display: inline-grid; }
  .topbar { padding: 13px 18px; }
  .topbar-right .today-label { display: none; }
  .content { padding: 20px 16px 36px; }
  .welcome-panel { align-items: flex-start; flex-direction: column; padding: 23px; }
  .quick-actions { width: 100%; }
  .quick-actions .button { flex: 1; }
  .cards-grid { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 12px; align-items: start; }
  .modal { max-height: calc(100vh - 24px); margin-top: 0; }
  .menu-item-editor { grid-template-columns: 56px minmax(0,1fr) 38px; }
  .menu-item-editor select { grid-column: 2 / 3; }
}

@media (max-width: 560px) {
  .topbar-right .server-pill { display: none; }
  .metric-grid { grid-template-columns: 1fr; }
  .section-toolbar { align-items: stretch; flex-direction: column; }
  .section-toolbar > .button { width: 100%; }
  .month-switcher { justify-content: space-between; }
  .form-grid.two, .toggle-row { grid-template-columns: 1fr; }
  .time-pair { grid-template-columns: 1fr 1fr; }
  .modal-actions.split { flex-direction: column-reverse; }
  .right-actions { width: 100%; margin-left: 0; }
  .right-actions .button { flex: 1; }
  .modal-actions.split > .button { width: 100%; }
  .notice-admin-card { grid-template-columns: 4px minmax(0,1fr); }
  .notice-actions { grid-column: 2; justify-content: flex-start; }
}

/* v0.9 — presença, movimento e histórico */
.presence-toolbar { align-items: flex-end; }
.section-inline-title { margin: 4px 0 0; font-size: 21px; }
.presence-date-control { display:flex; align-items:end; gap:8px; flex-wrap:wrap; }
.presence-date-control label { display:block; color:var(--muted); font-size:10px; font-weight:700; }
.presence-date-control input { border:1px solid #dce3ec; border-radius:10px; padding:10px 11px; background:#fff; color:var(--ink); }
.presence-metrics .metric-card small { display:block; margin-top:3px; color:var(--muted); font-size:10px; font-weight:600; }
.presence-admin-grid { margin-top:18px; }
.realtime-status-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.realtime-number { background:#f8fafc; border:1px solid #e7ecf2; border-radius:13px; padding:13px; text-align:center; }
.realtime-number span,.realtime-number small { display:block; color:var(--muted); font-size:10px; }
.realtime-number strong { display:block; font-size:24px; margin:4px 0 2px; color:var(--ink); }
.inline-form-card { display:grid; grid-template-columns:minmax(180px,1fr) 110px 120px auto; gap:9px; align-items:end; margin-top:16px; padding-top:15px; border-top:1px solid #edf0f4; }
.inline-form-card > div strong,.inline-form-card > div small { display:block; }
.inline-form-card > div strong { font-size:12px; }
.inline-form-card > div small { color:var(--muted); font-size:10px; margin-top:3px; line-height:1.4; }
.field.compact input { padding:9px; }
.muted-small { color:var(--muted); font-size:10px; }
.presence-config-form .field input { width:100%; }
.charts-grid-admin { margin-top:18px; }
.chart-panel { min-width:0; overflow:hidden; }
.admin-chart { display:block; width:100%; height:260px; }
.chart-legend { display:flex; gap:16px; flex-wrap:wrap; margin-top:6px; color:var(--muted); font-size:10px; }
.chart-legend span { display:flex; align-items:center; gap:6px; }
.legend-dot { width:9px; height:9px; border-radius:50%; display:inline-block; }
.blue-dot { background:#0b63ce; }.green-dot{background:#199b69;}.orange-dot{background:#f27a2d;}
.presence-days-panel { margin-top:18px; }
.table-scroll { overflow:auto; }
.presence-table { width:100%; border-collapse:collapse; min-width:620px; }
.presence-table th,.presence-table td { padding:11px 12px; text-align:left; border-bottom:1px solid #edf0f4; font-size:11px; }
.presence-table th { color:var(--muted); font-size:9px; text-transform:uppercase; letter-spacing:.05em; }
.presence-table tbody tr:hover { background:#fafcff; }

@media (max-width: 980px) {
  .realtime-status-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .inline-form-card { grid-template-columns:1fr 1fr; }
  .inline-form-card > div { grid-column:1/-1; }
}
@media (max-width: 620px) {
  .presence-toolbar { align-items:stretch; flex-direction:column; }
  .presence-date-control { align-items:stretch; }
  .presence-date-control input,.presence-date-control .button { flex:1; }
  .realtime-status-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .inline-form-card { grid-template-columns:1fr; }
  .inline-form-card > div { grid-column:auto; }
}
.gateway-help{margin-top:14px;padding:12px 14px;border-radius:14px;background:#f6f8fb;display:flex;flex-direction:column;gap:4px;color:#667085;font-size:12px}.gateway-help strong{color:#18324f}.finance-grid{align-items:start}.payment-status{font-weight:700;font-size:11px}.payment-status.APROVADO{color:#167a50}.payment-status.PENDENTE,.payment-status.CRIADO{color:#9a5b00}.payment-status.RECUSADO,.payment-status.CANCELADO,.payment-status.EXPIRADO{color:#9c3d3d}.payment-status.ESTORNADO{color:#6b7280}.small-action{padding:7px 10px!important;font-size:10px!important}
