/* Shared spacing and responsive fixes. Existing attendance colors are kept. */
.language-toggle { display: block; text-align: left; padding: 10px 16px; margin: 8px 0 0; border: 0; border-radius: 10px; font: inherit; font-size: 14px; background: transparent; color: inherit; cursor: pointer; }
.sidebar > .language-toggle { color: #fff; }
.language-toggle:focus-visible { outline: 2px solid #5cbdb7; outline-offset: 2px; }
.login-language-toggle { margin: 0 0 12px auto; background: rgba(255,255,255,.75); }
.privacy-policy-link { position: relative; display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding-inline: 8px; border-radius: 6px; font-size: 12px; line-height: 1.5; text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 4px; }
.privacy-policy-link:focus-visible { outline: 2px solid #5cbdb7; outline-offset: 2px; }
.privacy-policy-link .policy-link-hint { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.login-footer { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.login-footer .privacy-policy-link { color: #54677d; }
.login-footer .privacy-policy-link:hover { color: #173f5f; }
.sidebar-policy { flex: 0 0 auto; margin-top: 8px; padding-top: 4px; border-top: 1px solid rgba(255,255,255,.12); text-align: center; }
.sidebar-policy .privacy-policy-link { color: #c6d5e4; }
.sidebar-policy .privacy-policy-link:hover { color: #fff; }
.content, .page-view, .card, .form-card, .settings-grid > *, .settings-stack > *, .page-heading > *, .heading-actions { min-width: 0; }
input, select, textarea { box-sizing: border-box; max-width: 100%; min-width: 0; }
input[type="date"], input[type="time"], input[type="month"], input[type="datetime-local"] { width: 100%; min-width: 0; max-width: 100%; -webkit-appearance: none; appearance: none; }
input::-webkit-date-and-time-value { min-height: 1.5em; text-align: left; }
.heading-actions { flex-wrap: wrap; }
.heading-actions input { flex: 1 1 170px; }
.page-heading > .date-input { width: 220px; flex: 0 0 220px; }
.page-heading > div:first-child { flex: 1 1 auto; }
.workspace-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.workspace-tabs button { padding: 10px 18px; border: 0; border-radius: 12px; font: inherit; font-size: 14px; cursor: pointer; background: #eef2f8; color: #546980; }
.workspace-tabs button[aria-selected="true"] { background: #dff4f0; color: #246c65; }
.workspace-tabs button:focus-visible { outline: 2px solid #315c81; outline-offset: 2px; }
.sidebar .nav-item { font-size: 14px; line-height: 20px; padding-block: 10px; }
.self-profile-card { max-width: 760px; }
.profile-summary > div { display: flex; align-items: start; justify-content: space-between; gap: 24px; padding-block: 6px; }
.profile-summary dd { text-align: right; overflow-wrap: anywhere; margin: 0; }
#view-settings .form-card, #view-companies .card, #view-profile .card { padding: 24px; }
#view-settings h2, #view-companies h2, #view-profile h2 { font-size: 18px; line-height: 1.5; }
#view-settings .compact-form, #view-profile .compact-form { gap: 16px; }
.common-contracts-panel, .common-billing-panel, .common-company-panel { padding: 24px; }
.common-contracts-panel > *, .common-billing-panel > * { margin-block: 12px; }
.today-heading-actions { display: flex; align-items: center; gap: 16px; }
.today-heading-actions .button { margin: 0; }
.pull-status { text-align: center; color: #315c81; min-height: 0; font-size: 14px; }
.pull-status:not(:empty) { padding: 12px; }
.dashboard-filters { grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto auto; gap: 16px; justify-content: normal; align-items: end; }
.dashboard-filters datalist { display: none; }
.dashboard-filters label { width: 100%; max-width: none; margin: 0; }
.dashboard-filters input { width: 100%; max-width: none; }
.dashboard-filters .button { align-self: end; margin: 0; min-height: 44px; }
.dashboard-page-size { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; }
.segmented-control { display: inline-flex; gap: 3px; padding: 3px; border-radius: 12px; background: rgba(223, 232, 240, .65); }
.segmented-control button { min-height: 38px; min-width: 48px; border: 0; border-radius: 9px; padding: 8px 10px; color: inherit; background: transparent; cursor: pointer; font: inherit; }
.segmented-control button[aria-pressed="true"] { color: #315c81; background: white; box-shadow: 0 1px 5px #ccd7e0; }
.segmented-control button:focus-visible { outline: 2px solid #315c81; outline-offset: 2px; }
.mobile-header { transition: transform 160ms ease-out; }
.mobile-header.scroll-hidden { transform: translateY(-110%); }
@media (max-width: 720px) {
  input, select, textarea { font-size: 16px; }
  .page-heading, .page-heading > *, .today-heading-actions { max-width: 100%; }
  .page-heading > .date-input, .page-heading > input { width: 100%; flex: 0 1 auto; }
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .today-heading-actions { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .mobile-header { position: sticky; top: 0; z-index: 35; }
  .dashboard-filters { grid-template-columns: minmax(0, 1fr); }
  .dashboard-filters label, .dashboard-page-size, .dashboard-filters .button { grid-column: 1 / -1; }
  .dashboard-filters .button { justify-self: start; }
  #view-settings .form-card, #view-companies .card, #view-profile .card,
  .common-contracts-panel, .common-billing-panel, .common-company-panel { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .mobile-header { transition: none; } }
