:root {
  --ink: #16384f;
  --muted: #647b89;
  --soft: #edf5fa;
  --surface: #ffffff;
  --page: #fffaf1;
  --line: #d6e4ec;
  --teal: #064b78;
  --teal-dark: #003d66;
  --teal-soft: #e3f1fa;
  --green: #5b946c;
  --green-soft: #e9f4eb;
  --amber: #b96b12;
  --amber-soft: #fff0d7;
  --coral: #c7504e;
  --orange: #df8b1d;
  --orange-soft: #fff1d9;
  --shadow: 0 14px 35px rgba(21, 62, 89, .08);
  --radius: 20px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--page); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(6, 75, 120, .24); outline-offset: 2px; }
[hidden] { display: none !important; }

.app-shell { width: min(100%, 760px); min-height: 100vh; margin: 0 auto; padding-bottom: calc(90px + var(--safe-bottom)); }
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 18px 15px; background: var(--surface); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--teal); color: #fff; font-size: 12px; font-weight: 850; letter-spacing: -.04em; box-shadow: 0 6px 15px rgba(6, 75, 120, .2); }
.brand-copy { display: grid; gap: 2px; line-height: 1; }
.brand-copy strong { font-size: 18px; letter-spacing: -.05em; }
.brand-copy strong span { color: var(--orange); }
.brand-copy small { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--teal-dark); }
.icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.connection-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 10px; border-radius: 99px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 800; white-space: nowrap; }
.connection-pill[data-status="offline"] { background: var(--amber-soft); color: var(--amber); }
.connection-pill[data-status="syncing"] { background: var(--teal-soft); color: var(--teal-dark); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.time-panel { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 21px 20px 24px; background: linear-gradient(125deg, #0d625c, #13897d); color: #fff; }
.eyebrow { margin: 0 0 5px; color: var(--teal); font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.time-panel .eyebrow { color: rgba(255,255,255,.68); }
.current-date { margin: 0; color: rgba(255,255,255,.92); font-size: 13px; font-weight: 650; }
.current-time { color: #fff; font-size: clamp(34px, 9vw, 46px); font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -.075em; line-height: .9; }

.pending-banner { display: flex; align-items: center; gap: 9px; margin: 14px 16px 0; padding: 11px 12px; border: 1px solid #f2d39f; border-radius: 14px; background: var(--amber-soft); color: #7c4e14; font-size: 12px; }
.pending-icon { display: grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; background: #e8a942; color: #fff; font-size: 12px; font-weight: 900; }
.pending-banner strong { font-weight: 900; }
.text-button { margin-left: auto; padding: 4px 0 4px 8px; border: 0; background: transparent; color: #8a5612; font-size: 11px; font-weight: 850; text-decoration: underline; white-space: nowrap; }

.main-content { padding: 26px 16px 18px; }
.view-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; color: var(--ink); font-size: clamp(26px, 7vw, 34px); letter-spacing: -.065em; line-height: 1; }
h2 { margin: 0; color: var(--ink); font-size: 17px; letter-spacing: -.04em; }
.intro-copy { max-width: 550px; margin-bottom: 20px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.step-label { padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 10px; font-weight: 800; white-space: nowrap; }

.form-card { margin-bottom: 13px; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.field-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.field-heading > div { display: grid; gap: 3px; }
.field-heading label, .field-label { color: var(--ink); font-size: 14px; font-weight: 820; }
.field-heading small { color: var(--muted); font-size: 11px; }
.field-heading label span, .field-label span, .client-field label span { color: var(--muted); font-size: 10px; font-weight: 600; }
.field-number { display: grid; place-items: center; flex: 0 0 29px; width: 29px; height: 29px; border-radius: 10px; background: var(--teal-soft); color: var(--teal-dark); font-size: 10px; font-weight: 900; }
.compact-heading { margin-bottom: 11px; }

.collaborator-list { display: grid; gap: 8px; }
.choice-button, .location-button { display: flex; align-items: center; min-height: 51px; width: 100%; border: 1px solid var(--line); border-radius: 13px; background: #fbfdfd; color: var(--ink); text-align: left; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.choice-button { gap: 10px; padding: 7px 10px; font-size: 13px; font-weight: 750; }
.choice-button:hover, .location-button:hover { border-color: #9bcfc7; transform: translateY(-1px); }
.choice-button.is-selected { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 0 0 1px rgba(15,118,110,.12); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #fff; font-size: 10px; font-weight: 900; }
.avatar-a { background: #387e91; }.avatar-b { background: #8661a7; }.avatar-c { background: #bf7551; }
.checkmark { display: none; margin-left: auto; color: var(--teal); font-size: 16px; font-weight: 900; }
.choice-button.is-selected .checkmark { display: block; }

.location-toggle { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.location-button { justify-content: flex-start; gap: 8px; padding: 8px 10px; font-size: 12px; font-weight: 780; }
.location-button.is-selected { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-dark); }
.location-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #edf2f1; color: var(--muted); font-size: 9px; font-weight: 900; }
.location-button.is-selected .location-icon { background: #fff; color: var(--teal); }
.client-field { margin-top: 13px; }
.client-field label { display: block; margin-bottom: 6px; color: var(--ink); font-size: 11px; font-weight: 760; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fbfdfd; color: var(--ink); transition: border-color .18s ease, box-shadow .18s ease; }
input { min-height: 47px; padding: 0 13px; font-size: 13px; }
textarea { min-height: 80px; resize: vertical; padding: 12px 13px; font-size: 13px; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: #9aaeb0; }
input:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15,118,110,.09); outline: none; }
.character-count { margin-top: 5px; color: var(--muted); font-size: 10px; text-align: right; }

.action-section { padding-top: 8px; }
.action-section-heading { display: flex; align-items: center; justify-content: space-between; margin: 5px 0 12px; }
.punch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.punch-button { display: flex; flex-direction: column; align-items: flex-start; min-height: 112px; padding: 14px 13px 12px; border: 1px solid transparent; border-radius: 18px; color: #fff; text-align: left; box-shadow: 0 8px 18px rgba(34, 66, 66, .1); transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.punch-button:hover { filter: saturate(1.07); transform: translateY(-2px); box-shadow: 0 11px 22px rgba(34, 66, 66, .15); }
.punch-button:active { transform: translateY(0); }
.punch-button:disabled { cursor: wait; opacity: .6; transform: none; }
.punch-entry { background: linear-gradient(135deg, #0f766e, #149487); }
.punch-break-start { background: linear-gradient(135deg, #8661a7, #a276c1); }
.punch-break-end { background: linear-gradient(135deg, #367e90, #4c9bb0); }
.punch-exit { background: linear-gradient(135deg, #b45c54, #d27868); }
.punch-icon { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 13px; border: 1px solid rgba(255,255,255,.35); border-radius: 9px; background: rgba(255,255,255,.15); font-size: 16px; font-weight: 900; }
.punch-button > span:not(.punch-icon) { font-size: 13px; font-weight: 850; }
.punch-button small { margin-top: 4px; color: rgba(255,255,255,.78); font-size: 10px; }
.action-feedback { min-height: 22px; margin: 12px 3px 0; color: var(--green); font-size: 12px; font-weight: 700; }
.action-feedback.is-error { color: var(--coral); }

.history-toolbar { display: flex; gap: 8px; margin: 0 0 14px; }
.outline-button { min-height: 39px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--teal-dark); font-size: 11px; font-weight: 800; }
.outline-button:hover { border-color: #9bcfc7; background: var(--teal-soft); }
.history-list { display: grid; gap: 9px; }
.empty-history { padding: 33px 18px; border: 1px dashed #b9cfca; border-radius: var(--radius); color: var(--muted); text-align: center; }
.empty-history strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 14px; }
.empty-history p { margin: 0; font-size: 12px; line-height: 1.5; }
.history-item { display: grid; grid-template-columns: 4px 1fr auto; gap: 12px; align-items: stretch; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 6px 16px rgba(28,65,69,.04); }
.history-accent { border-radius: 8px; background: var(--teal); }
.history-item[data-type="saida"] .history-accent { background: var(--coral); }.history-item[data-type="inicio_intervalo"] .history-accent { background: #8661a7; }.history-item[data-type="fim_intervalo"] .history-accent { background: #367e90; }
.history-main { min-width: 0; }.history-title { margin: 0 0 3px; color: var(--ink); font-size: 13px; font-weight: 850; }.history-meta { margin: 0; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.history-note { margin: 7px 0 0; color: #587279; font-size: 11px; line-height: 1.35; }.history-time { color: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 850; text-align: right; white-space: nowrap; }.history-status { display: block; margin-top: 5px; color: var(--green); font-size: 9px; font-weight: 850; text-transform: uppercase; }.history-status.pending { color: var(--amber); }

.bottom-nav { position: fixed; z-index: 10; right: 0; bottom: 0; left: 0; display: flex; justify-content: center; gap: 4px; padding: 9px 16px calc(9px + var(--safe-bottom)); border-top: 1px solid rgba(219,231,228,.9); background: rgba(255,255,255,.94); box-shadow: 0 -8px 24px rgba(28,65,69,.06); backdrop-filter: blur(14px); }
.nav-button { position: relative; display: grid; justify-items: center; gap: 3px; min-width: 115px; min-height: 51px; padding: 7px 17px; border: 0; border-radius: 13px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 800; }
.nav-button.is-active { background: var(--teal-soft); color: var(--teal-dark); }.nav-icon { font-size: 21px; line-height: 18px; }.nav-badge { position: absolute; top: 3px; right: 26px; min-width: 16px; padding: 2px 4px; border-radius: 9px; background: var(--amber); color: #fff; font-size: 9px; }
.toast { position: fixed; z-index: 30; right: 16px; bottom: calc(84px + var(--safe-bottom)); left: 16px; display: none; max-width: 550px; margin: auto; padding: 12px 14px; border-radius: 13px; background: #17323b; color: #fff; box-shadow: 0 10px 28px rgba(23,50,59,.2); font-size: 12px; font-weight: 700; text-align: center; }.toast.is-visible { display: block; animation: toast-in .2s ease-out; }
.no-script { margin: 16px; padding: 13px; border-radius: 10px; background: var(--amber-soft); color: var(--amber); font-size: 13px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 560px) { .app-header { padding-right: 28px; padding-left: 28px; }.time-panel { padding-right: 30px; padding-left: 30px; }.main-content { padding-right: 28px; padding-left: 28px; }.collaborator-list { grid-template-columns: repeat(3, 1fr); }.choice-button { flex-direction: column; justify-content: center; gap: 5px; min-height: 104px; padding: 11px 7px; text-align: center; }.choice-button .checkmark { position: absolute; margin: 0; transform: translate(34px, -37px); }.choice-button { position: relative; }.bottom-nav { right: auto; left: 50%; width: min(100%, 760px); transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Identidade 2W, autenticação e administração */
.login-shell { position: relative; display: grid; place-items: center; min-height: 100vh; overflow: hidden; padding: 22px 16px; background: linear-gradient(145deg, #064b78 0%, #003d66 48%, #f5f0e7 48.1%, #fffaf1 100%); }
.login-decoration { position: absolute; right: -110px; bottom: -110px; width: 300px; height: 300px; border: 34px solid rgba(223,139,29,.28); border-radius: 50%; }
.login-card { position: relative; z-index: 1; width: min(100%, 430px); padding: 27px 23px 21px; border: 1px solid rgba(214,228,236,.8); border-radius: 25px; background: rgba(255,255,255,.97); box-shadow: 0 25px 70px rgba(0,40,70,.2); }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 35px; }
.login-brand > div:last-child { display: grid; gap: 3px; }
.login-brand strong { color: var(--ink); font-size: 24px; letter-spacing: -.07em; line-height: 1; }
.login-brand strong span { color: var(--orange); }
.login-brand small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.logo-placeholder { display: grid; place-items: center; width: 55px; height: 55px; border: 2px solid var(--teal); border-radius: 17px; background: var(--teal); color: #fff; font-size: 17px; font-weight: 900; letter-spacing: -.1em; box-shadow: 5px 5px 0 var(--orange); }
.login-heading h1 { max-width: 340px; margin-bottom: 9px; font-size: 30px; }
.login-heading p:not(.eyebrow) { margin-bottom: 25px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.login-form, .user-form { display: grid; gap: 8px; }
.login-form label, .user-form label { margin-top: 5px; color: var(--ink); font-size: 11px; font-weight: 850; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 70px; }
.password-toggle { position: absolute; top: 50%; right: 11px; transform: translateY(-50%); padding: 4px; border: 0; background: transparent; color: var(--teal); font-size: 10px; font-weight: 850; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 8px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--teal); color: #fff; font-size: 12px; font-weight: 850; box-shadow: 0 8px 16px rgba(6,75,120,.18); transition: transform .18s ease, background .18s ease; }
.primary-button:hover { background: var(--teal-dark); transform: translateY(-1px); }.primary-button:disabled { cursor: wait; opacity: .55; transform: none; }
.login-footer { margin: 26px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.45; text-align: center; }
.form-feedback { min-height: 18px; margin: 4px 0 0; color: var(--green); font-size: 11px; font-weight: 700; line-height: 1.4; }.form-feedback.is-error { color: var(--coral); }
.user-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fafdff; }
.logged-user, .identity-preview { display: flex; align-items: center; gap: 9px; }.logged-user > div, .identity-preview > div { display: grid; gap: 2px; }.logged-user strong, .identity-preview strong { color: var(--ink); font-size: 12px; }.logged-user small, .identity-preview small { color: var(--muted); font-size: 10px; font-weight: 700; }.user-avatar { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; background: var(--teal); color: #fff; font-size: 10px; font-weight: 900; }.user-avatar.small { width: 34px; height: 34px; border-radius: 11px; }.logout-button { min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--teal); font-size: 10px; font-weight: 850; }.logout-button:hover { border-color: var(--orange); color: var(--orange); }
.identity-card { background: linear-gradient(110deg, #f1f8fc, #fff); }.identity-preview { min-height: 48px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.75); }.identity-preview .avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--teal); color: #fff; font-size: 10px; font-weight: 900; }.identity-lock { margin-left: auto; color: var(--green); font-size: 12px; }.select, select { min-height: 47px; width: 100%; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdfd; color: var(--ink); font-size: 13px; }
.users-table-card { margin-top: 13px; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }.table-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 13px; }.users-list { display: grid; gap: 8px; }.user-row { display: flex; align-items: center; gap: 9px; min-height: 55px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 13px; background: #fbfdfe; }.user-row-main { display: grid; min-width: 0; gap: 3px; }.user-row-main strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.user-row-main small { color: var(--muted); font-size: 10px; }.role-chip { color: var(--green); font-weight: 850; }.role-chip.admin { color: var(--orange); }.you-label { margin-left: auto; color: var(--green); font-size: 10px; font-weight: 850; }.delete-user { margin-left: auto; padding: 5px 7px; border: 0; border-radius: 7px; background: #fff0ef; color: var(--coral); font-size: 10px; font-weight: 850; }.delete-user:hover { background: var(--coral); color: #fff; }
.punch-entry { background: linear-gradient(135deg, #064b78, #0b6799); }.punch-break-start { background: linear-gradient(135deg, #c7771a, #e19a35); }.punch-break-end { background: linear-gradient(135deg, #5b946c, #75ab83); }.punch-exit { background: linear-gradient(135deg, #ad5f4f, #cf7969); }
.time-panel { background: linear-gradient(125deg, #064b78, #0a6898); }.pending-banner { border-color: #f2d39f; }.bottom-nav { background: rgba(255,255,255,.96); }
@media (min-width: 560px) { .user-strip { padding-right: 28px; padding-left: 28px; } }


/* Gestão administrativa, aprovação e apuração estimada */
.section-hint { margin: -3px 0 13px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.management-offline { margin: 0 0 13px; padding: 12px 14px; border: 1px solid #f2d39f; border-radius: 13px; background: var(--amber-soft); color: #7c4e14; font-size: 12px; font-weight: 750; line-height: 1.45; }
.review-card, .settings-card, .overtime-card { margin-top: 13px; }
.approval-list, .overtime-list { display: grid; gap: 8px; }
.approval-item { display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: #fbfdfe; }
.approval-mark { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; background: var(--amber-soft); color: var(--amber); font-size: 18px; font-weight: 900; }
.approval-main { display: grid; min-width: 0; gap: 3px; }
.approval-main strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.approval-main span { color: var(--ink); font-size: 11px; font-weight: 750; }
.approval-main small { overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.35; text-overflow: ellipsis; }
.approval-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.approve-button, .reject-button { min-height: 32px; padding: 0 9px; border: 0; border-radius: 9px; font-size: 10px; font-weight: 850; }
.approve-button { background: var(--green-soft); color: #39744b; }
.reject-button { background: #fff0ef; color: var(--coral); }
.approve-button:disabled, .reject-button:disabled { cursor: wait; opacity: .55; }
.management-form { display: grid; gap: 8px; }
.management-form > label, .management-form .salary-grid label { color: var(--ink); font-size: 11px; font-weight: 850; }
.salary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 5px; }
.salary-grid > div { display: grid; align-content: start; gap: 5px; }
.salary-grid input { min-height: 43px; }
.field-help { color: var(--muted); font-size: 10px; line-height: 1.35; }
.calculation-preview { margin: 4px 0 7px; padding: 12px 13px; border: 1px solid #bfdbed; border-radius: 12px; background: #f1f8fc; color: var(--teal-dark); font-size: 11px; font-weight: 750; line-height: 1.5; }
.schedule-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 7px 0 9px; padding-top: 8px; border-top: 1px solid var(--line); }
.schedule-heading h3 { margin: 0; color: var(--ink); font-size: 14px; letter-spacing: -.03em; }
.schedule-days { display: grid; gap: 8px; }
.schedule-day { padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdfe; }
.day-toggle { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 12px; font-weight: 850; }
.day-toggle input { width: 17px; height: 17px; min-height: 17px; margin: 0; accent-color: var(--teal); }
.day-shift-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-top: 9px; }
.time-field { display: grid; gap: 4px; color: var(--muted); font-size: 9px; font-weight: 750; }
.time-field input { min-height: 38px; padding: 0 6px; font-size: 11px; }
.schedule-summary { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.schedule-warning { margin-top: 8px; padding: 11px 12px; border: 1px solid #e8b2a0; border-radius: 11px; background: #fff3ed; color: #8a3f2b; font-size: 11px; font-weight: 750; line-height: 1.45; }
.save-settings-button { width: 100%; }
.month-picker { width: 145px; min-height: 38px; padding: 0 8px; font-size: 11px; }
.overtime-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 11px 0; }
.overtime-kpi { display: grid; align-content: start; gap: 7px; min-height: 75px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdfe; }
.overtime-kpi span { color: var(--muted); font-size: 9px; font-weight: 750; line-height: 1.35; }
.overtime-kpi strong { color: var(--teal-dark); font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; }
.overtime-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdfe; }
.overtime-row > div { display: grid; gap: 4px; }
.overtime-row strong { color: var(--ink); font-size: 11px; }
.overtime-row small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.overtime-row > span { color: var(--teal-dark); font-size: 11px; font-weight: 900; white-space: nowrap; }
.overtime-row.incomplete { border-color: #f2d39f; background: #fffaf1; }
.overtime-row.incomplete > span { color: var(--amber); }
.payroll-disclaimer { margin: 13px 0 0; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.5; }
.history-status.approved { color: var(--green); }
.history-status.rejected { color: var(--coral); }
.nav-button { flex: 1 1 0; min-width: 0; max-width: 155px; padding-right: 8px; padding-left: 8px; }
.approval-badge { background: var(--coral); }

@media (max-width: 430px) {
  .main-content { padding-right: 12px; padding-left: 12px; }
  .approval-item { grid-template-columns: 25px minmax(0, 1fr); align-items: start; }
  .approval-actions { grid-column: 2; justify-content: flex-start; }
  .salary-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .day-shift-fields { grid-template-columns: 1fr 1fr; }
  .overtime-kpi { padding: 8px; }
  .overtime-kpi strong { font-size: 13px; }
  .month-picker { width: 132px; }
  .nav-button { font-size: 9px; }
}

.timestamp-warning { display: block; margin-top: 3px; color: #9f3e2d !important; font-size: 10px !important; font-weight: 850; line-height: 1.4; }

/* Ajuste manual, Minha conta e tema escuro */
.punch-button:disabled { cursor: not-allowed; filter: grayscale(.55); opacity: .38; transform: none; }
.adjustment-card { margin-top: 13px; }
.adjustment-card h2 { margin: 0; color: var(--ink); font-size: 15px; }
.adjustment-form { display: grid; gap: 8px; }
.adjustment-form label { margin-top: 4px; color: var(--ink); font-size: 11px; font-weight: 850; }
.adjustment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.adjustment-grid > div { display: grid; gap: 5px; }
.adjustment-submit { width: 100%; margin-top: 5px; }
.user-actions { display: flex; align-items: center; gap: 6px; }
.compact-button { min-height: 30px; padding: 0 9px; font-size: 10px; }
.password-form { display: grid; gap: 8px; max-width: 430px; }
.password-form label { margin-top: 4px; color: var(--ink); font-size: 11px; font-weight: 850; }
.install-control { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--teal-dark); font-size: 10px; font-weight: 850; }
.install-control svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.install-control:hover { border-color: var(--teal); background: var(--teal-soft); }
body[data-theme="dark"] {
  --ink: #e5eef4; --muted: #a7bac6; --soft: #182a35; --surface: #12212a; --page: #0b151b; --line: #2b424f; --teal-soft: #173d4b; --green-soft: #1b392d; --amber-soft: #49351b; --orange-soft: #49351b; --shadow: 0 14px 35px rgba(0, 0, 0, .28);
}
body[data-theme="dark"] .app-header, body[data-theme="dark"] .user-strip, body[data-theme="dark"] .bottom-nav { background: rgba(18, 33, 42, .96); }
body[data-theme="dark"] .form-card, body[data-theme="dark"] .history-item, body[data-theme="dark"] .approval-item, body[data-theme="dark"] .user-row, body[data-theme="dark"] .schedule-day, body[data-theme="dark"] .overtime-kpi, body[data-theme="dark"] .overtime-row { background: var(--surface); }
body[data-theme="dark"] input, body[data-theme="dark"] textarea, body[data-theme="dark"] select, body[data-theme="dark"] .choice-button, body[data-theme="dark"] .location-button { background: #0f1d25; color: var(--ink); }
body[data-theme="dark"] .location-button.is-selected { background: var(--teal-soft); color: var(--ink); }
body[data-theme="dark"] .location-icon { background: #20343e; }
body[data-theme="dark"] .location-button.is-selected .location-icon { background: #294955; }
body[data-theme="dark"] .history-note { color: #a6bec5; }
body[data-theme="dark"] .outline-button, body[data-theme="dark"] .icon-button, body[data-theme="dark"] .install-control { background: #152832; color: #bfe2ef; }
body[data-theme="dark"] .empty-history { border-color: #3c5b67; }
body[data-theme="dark"] .login-shell { background: linear-gradient(145deg, #061f32 0%, #0b334d 48%, #101c23 48.1%, #0b151b 100%); }
body[data-theme="dark"] .login-card { border-color: #2b424f; background: rgba(18, 33, 42, .98); }
body[data-theme="dark"] .login-heading p:not(.eyebrow), body[data-theme="dark"] .login-footer { color: var(--muted); }
@media (max-width: 430px) { .user-actions { gap: 4px; } .compact-button { padding: 0 7px; } .install-control span { display: none; } .install-control { width: 32px; justify-content: center; padding: 0; } }
