:root {
  color-scheme: light;
  --ink: #1c201d;
  --muted: #818781;
  --line: #e9ece8;
  --canvas: #f7f8f6;
  --paper: #fff;
  --green: #2b7567;
  --green-dark: #215d52;
  --soft-green: #e8f4ef;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Manrope", "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.login-screen { display: grid; min-height: 100vh; place-items: center; padding: 22px; background: var(--canvas); }
.login-card { width: min(100%, 410px); padding: 30px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 12px 40px #2028200a; }
.login-card .brand-mark { margin-bottom: 22px; }
.login-card .eyebrow { margin-bottom: 5px; }
.login-card h1 { margin-bottom: 6px; font-size: 25px; }
.login-description { margin: 0 0 22px; color: var(--muted); font-size: 12px; }
.login-card .field-label { display: block; margin: 14px 0 6px; }
.login-card .text-input { min-height: 42px; padding: 0 11px; }
.login-submit { width: 100%; margin-top: 21px; }
.remember-option { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; cursor: pointer; }
.remember-option input { width: 18px; height: 18px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--green); cursor: pointer; }
.remember-option strong { display: block; font-size: 12px; }
.remember-option small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.inactive-people { margin-top: 18px; }
.inactive-people summary { margin-bottom: 10px; color: #6f786f; font-size: 13px; font-weight: 700; cursor: pointer; }
.account-section-title { margin: 6px 0 0; font: 700 13px var(--display); }
.account-footer { justify-content: space-between; }
.account-logout { color: #a32d20; }
.login-error { margin: 12px 0 0; padding: 9px 11px; border-radius: 7px; background: #fff0ed; color: #963f32; font-size: 11px; }
.login-submit:disabled, .button:disabled { cursor: wait; opacity: .65; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 3; display: flex; flex-direction: column; width: 248px; padding: 27px 17px 18px; background: #191a17; color: #f8f9f6; }
.brand, .mobile-brand { display: inline-flex; align-items: center; gap: 9px; color: inherit; font: 800 21px/1 var(--display); letter-spacing: -.8px; text-decoration: none; cursor: pointer; }
.brand { padding: 0 8px; }
.brand-mark { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px 9px 9px 3px; background: #8ed3b3; color: #193d31; font: 800 21px/1 var(--display); transform: rotate(-4deg); }
.brand-dot { color: #8ed3b3; }
.workspace-label { margin: 51px 9px 12px; color: #858980; font-size: 10px; font-weight: 700; letter-spacing: 1.3px; }
.side-nav { display: grid; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 13px; width: 100%; padding: 11px 12px; border: 0; border-radius: 8px; background: transparent; color: #a8aca4; text-align: left; font-weight: 600; transition: background .16s, color .16s; }
.nav-link:hover { background: #252722; color: #fff; }
.nav-link.active { background: #2b302b; color: #f8f9f6; }
.nav-icon { display: inline-grid; width: 19px; place-items: center; font-size: 17px; }
.sidebar-bottom { margin-top: auto; }
.store-card { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 12px 9px; border-top: 1px solid #343630; border-bottom: 1px solid #343630; }
.store-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 8px; background: #333a32; color: #a6d9bb; font-size: 19px; }
.store-card strong, .store-card small, .profile-copy strong, .profile-copy small { display: block; }
.store-card strong, .profile-copy strong { font-size: 12px; font-weight: 600; }
.store-card small, .profile-copy small { margin-top: 2px; color: #999e96; font-size: 10px; }
.chevron { margin-left: auto; color: #93988f; font-size: 16px; }
.profile-button { display: flex; align-items: center; width: 100%; gap: 10px; padding: 9px; border: 0; border-radius: 8px; background: transparent; color: #f8f9f6; text-align: left; }
.profile-button:hover { background: #252722; }
.avatar { display: inline-grid; flex: 0 0 auto; width: 34px; height: 34px; place-items: center; border-radius: 50%; font-size: 10px; font-weight: 700; }
.avatar-dark { background: #d6a47d; color: #39291e; }
.avatar-teal { background: #dcefe8; color: #276654; }
.avatar-lilac { background: #ede6f5; color: #64527f; }
.avatar-rose { background: #f7e5df; color: #8b5345; }
.avatar-yellow { background: #f4edce; color: #756528; }
.profile-copy { min-width: 0; }
.profile-copy strong { font-size: 11px; }
.profile-copy small { font-size: 10px; }

.main-content { min-height: 100vh; margin-left: 248px; padding: 0 42px 25px; }
.topbar { display: flex; min-height: 76px; align-items: center; justify-content: space-between; border-bottom: 1px solid #eaede9; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: #898f87; font-size: 12px; }
.breadcrumbs strong { color: #343934; font-weight: 600; }
.crumb-separator { color: #c4c9c3; }
.topbar-actions { display: flex; align-items: center; gap: 17px; }
.today-label { color: #7d847d; font-size: 11px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 0 15px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 700; transition: background .15s, transform .15s, box-shadow .15s; }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--green); color: #fff; box-shadow: 0 3px 8px #2b756722; }
.button-primary:hover { background: var(--green-dark); }
.button-primary span { font-size: 16px; font-weight: 400; }
.button-quiet { border-color: #e4e8e3; background: #fff; color: #555d56; }
.button-quiet:hover { background: #f6f7f5; }
.mobile-brand, .mobile-profile { display: none; }
.mobile-nav { display: none; }
.prototype-note { display: flex; align-items: center; gap: 7px; margin-top: 16px; padding: 9px 12px; border: 1px solid #e6efe7; border-radius: 7px; background: #f0f7f1; color: #637769; font-size: 10px; }
.prototype-note span { color: #43856e; }

.page-section { max-width: 1120px; margin: 0 auto; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 34px 0 25px; }
.eyebrow { margin: 0 0 7px; color: #789087; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; font: 800 29px/1.2 var(--display); letter-spacing: -1.2px; }
.heading-spark { color: #79b89b; font-size: 20px; vertical-align: 3px; }
.heading-subtitle { margin: 0; color: #80877f; font-size: 12px; }
.desktop-add { min-width: 139px; }
.staff-select { min-width: 155px; margin-left: auto; padding: 8px 26px 8px 10px; border: 1px solid #dce6de; border-radius: 7px; background: #fff; color: #333a34; font-size: 11px; }

.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat-card { min-height: 127px; padding: 15px 17px 13px; border: 1px solid #e8ebe7; border-radius: 10px; background: var(--paper); box-shadow: 0 2px 6px #20282004; }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: #747b74; font-size: 11px; font-weight: 600; }
.stat-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; font-size: 14px; }
.icon-lilac { background: #f1ecf8; color: #7a619d; }
.icon-peach { background: #fff0e7; color: #c67a43; }
.icon-mint { background: #e7f4ed; color: #4a9271; }
.stat-value { display: block; margin-top: 9px; font: 800 24px/1 var(--display); letter-spacing: -.5px; }
.stat-caption { display: block; margin-top: 6px; color: #9aa099; font-size: 10px; }

.section-title h2 { margin: 0 0 3px; font: 700 16px/1.2 var(--display); letter-spacing: -.3px; }
.section-title p { margin: 0; color: #8b918a; font-size: 10px; }
.toolbar-controls { display: flex; align-items: center; gap: 9px; }
.schedule-settings-button { min-height: 34px; padding: 0 10px; white-space: nowrap; font-size: 10px; }
.select-wrap select, .text-input { width: 100%; border: 1px solid #e4e8e3; border-radius: 7px; background: #fff; color: #353a35; outline: none; }
.select-wrap select { min-width: 136px; height: 34px; padding: 0 27px 0 10px; color: #686f68; font-size: 10px; }
.select-wrap select:focus, .text-input:focus, .staff-select:focus { border-color: #80ae9e; box-shadow: 0 0 0 3px #4d9c7d17; }
.segmented-control { display: inline-flex; padding: 3px; border: 1px solid #e7eae6; border-radius: 7px; background: #fff; }
.segment { min-height: 26px; padding: 0 10px; border: 0; border-radius: 5px; background: transparent; color: #858b84; font-size: 10px; }
.segment.active { background: #edf4ef; color: #387563; font-weight: 700; }

.attendance-input { width: 100%; min-height: 44px; font-size: 16px; }
textarea.attendance-input { min-height: 64px; resize: vertical; }
.duration-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.duration-box { display: flex; align-items: center; gap: 6px; }
.duration-box .attendance-input { min-width: 0; flex: 1; text-align: center; font-weight: 700; }
.duration-box span { color: #5f685f; font-size: 13px; font-weight: 600; }
.person-total-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.person-total-head strong { font: 800 16px var(--display); }
.person-total-head span { color: #5f7a6c; font-size: 12px; }
.person-total-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 8px; }
.person-total-grid > div { display: grid; gap: 2px; padding: 10px; border-radius: 9px; background: #fff; }
.person-total-grid span { color: #6f786f; font-size: 11px; font-weight: 600; }
.person-total-grid strong { font: 800 17px var(--display); }
.person-total-main strong { color: #1f5e50; font-size: 22px; }
.person-total-grid small { color: #6f786f; font-size: 11px; }
.summary-row small { color: #8b928a; }
.summary-hint { margin: 8px 0 0; color: #8b928a; font-size: 11px; }
.attendance-date-row .attendance-input { flex: 1; min-width: 0; }
.chip { flex: 0 0 auto; min-height: 40px; padding: 0 12px; border: 1px solid #dfe6e0; border-radius: 999px; background: #f7f9f6; color: #3f4a41; font-size: 13px; font-weight: 600; }
.chip:hover, .chip.active { border-color: #2b7567; background: #e8f4ef; color: #1f5e50; }
.attendance-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.type-chip { position: relative; cursor: pointer; }
.type-chip input { position: absolute; opacity: 0; pointer-events: none; }
.type-chip span { display: grid; min-height: 44px; place-items: center; padding: 4px; border: 1px solid #dfe6e0; border-radius: 9px; background: #f7f9f6; color: #3f4a41; font-size: 13px; font-weight: 600; text-align: center; }
.type-chip input:checked + span { border-color: #2b7567; background: #2b7567; color: #fff; }
.type-chip input:focus-visible + span { outline: 3px solid #80ae9e66; outline-offset: 2px; }
.summary-row { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 8px; padding: 7px 0; border-top: 1px solid #edf0ec; font-size: 12px; }
.summary-header { border-top: 0; color: #7d857d; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.type-badge { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.type-absent { background: #fdecea; color: #a33b2c; }
.type-late, .type-early { background: #fff3df; color: #965b12; }
.type-leave { background: #e8f1fb; color: #2c5d8f; }
.type-sick { background: #f1ebfa; color: #6a4c93; }
.type-other { background: #eef1ee; color: #555d56; }
.nav-badge { display: inline-grid; min-width: 19px; height: 19px; margin-left: auto; padding: 0 5px; place-items: center; border-radius: 999px; background: #d93a2b; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; box-shadow: 0 0 0 2px #191a17; }
.mobile-nav-link { position: relative; }
.mobile-nav-link .nav-badge { position: absolute; top: 0; left: calc(50% + 6px); margin: 0; box-shadow: 0 0 0 2px #fff; }
.sgk-pending-head { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.sgk-pending-head strong { display: block; color: #8f2f22; font: 800 14px var(--display); }
.sgk-pending-head small { display: block; color: #9a5b50; font-size: 11px; }
.sgk-pending-icon { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #d93a2b; color: #fff; font-weight: 900; animation: sgk-pulse 1.8s ease-in-out infinite; }
@keyframes sgk-pulse { 0%, 100% { box-shadow: 0 0 0 0 #d93a2b55; } 50% { box-shadow: 0 0 0 7px #d93a2b00; } }
@media (prefers-reduced-motion: reduce) { .sgk-pending-icon { animation: none; } }
.sgk-pending-list { display: grid; gap: 6px; }
.sgk-pending-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.sgk-pending-actions .text-action { min-height: 36px; padding: 6px 12px; border: 1px solid #e3c7c1; border-radius: 8px; background: #fff; font-size: 12px; font-weight: 700; }
.sgk-pending-actions .sgk-report-action { border-color: #b03526; background: #b03526; color: #fff; }
.sgk-pending-actions .sgk-report-action:hover { background: #8f2a1e; }
.sgk-badge, .evidence-badge { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.evidence-badge { background: #eef1ee; color: #555d56; }
.evidence-badge.is-missing { background: #fff1d6; color: #8a5a0c; }
.sgk-report-action { color: #b03526; font-weight: 700; }
.sgk-report-action:hover { background: #fdecea; }
.evidence-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.evidence-pick { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; border-radius: 10px; cursor: pointer; }
.evidence-pick:focus-within { outline: 3px solid #80ae9e66; outline-offset: 2px; }
.evidence-preview { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 8px; border: 1px solid #dfe6e0; border-radius: 10px; background: #f7f9f6; }
.evidence-preview img { width: 64px; height: 64px; flex: 0 0 auto; border-radius: 7px; object-fit: cover; background: #e8ece8; }
.evidence-preview strong { display: block; font-size: 13px; }
.evidence-help { display: block; margin-top: 6px; color: #7d857d; font-size: 11px; line-height: 1.4; }
.segment-blocked { color: #b03526; }
.segment-blocked.active { background: #fdecea; color: #a32d20; }
.evidence-pick.is-disabled { opacity: .45; pointer-events: none; }
.purchase-hint { margin: 0; color: #6f786f; font-size: 12px; }
.purchase-chevron { flex: 0 0 auto; color: #7d857d; font-size: 16px; transition: transform .15s; }
.purchase-collapsible:not([open]) .purchase-chevron { transform: rotate(-90deg); }
/* Each pasted line is a card: green = matched, amber = one suggestion, purple = several possibilities
   (best guess pre-selected), red = not in the catalog, grey = skipped. */
.attendance-empty { margin: 0; padding: 18px; border: 1px dashed #dce2dc; border-radius: 10px; background: #fff; color: #7d857d; font-size: 12px; text-align: center; }
.permission-item { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 4px 8px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.permission-item:hover { background: #f5f8f5; }
.permission-item input { width: 18px; height: 18px; accent-color: var(--green); }
.permission-item small { color: #8b928a; }
.sort-handle { min-width: 32px; min-height: 32px; color: #78857a; cursor: grab; touch-action: none; user-select: none; font-size: 17px; line-height: 1; }
.sort-handle:active { cursor: grabbing; }
.delete-action { min-height: 30px; padding: 4px 9px; color: #b35443; font-weight: 600; white-space: nowrap; }
.delete-action:hover { background: #fff0ed; color: #963f32; }
.edit-action { min-height: 30px; padding: 4px 9px; color: #3d617d; font-weight: 600; white-space: nowrap; }
.edit-action:hover { background: #eef4f8; color: #2c4c66; }
.meta-person { display: inline-flex; align-items: center; gap: 6px; }
.meta-person .avatar { width: 19px; height: 19px; font-size: 7px; }
.progress-track { width: 62px; height: 4px; margin-top: 6px; overflow: hidden; border-radius: 999px; background: #eef0ed; }
.progress-bar { height: 100%; border-radius: inherit; background: #78b49a; transition: width .2s ease; }
.custom-check { display: grid; width: 17px; height: 17px; flex: 0 0 auto; place-items: center; border: 1.5px solid #d1d8d1; border-radius: 5px; background: #fff; color: transparent; transition: all .15s ease; }
.custom-check svg { width: 11px; height: 11px; }
.text-action { padding: 4px 7px; border: 0; border-radius: 5px; background: transparent; color: #8b928a; font-size: 10px; }
.text-action:hover { background: #f3f5f2; color: #414841; }
.text-action.delete:hover { background: #fff0ed; color: #b35443; }
.empty-state { padding: 47px 20px; border: 1px dashed #dce2dc; border-radius: 10px; background: #fff; text-align: center; }
.empty-icon { display: grid; width: 42px; height: 42px; place-items: center; margin: 0 auto 12px; border-radius: 13px; background: #eef6f0; color: #5a9679; font-size: 23px; }
.empty-state h3 { margin: 0 0 6px; font: 700 14px var(--display); }
.empty-state p { margin: 0 0 15px; color: #858d85; font-size: 11px; }

.people-summary { display: flex; align-items: center; gap: 9px; margin: -1px 0 15px; color: #7d857d; font-size: 11px; }
.people-summary strong { color: #353b35; }
.summary-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; background: #e9f2ec; color: #44806a; font-size: 14px; }
.departments-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.department-avatar { display: inline-grid; flex: 0 0 auto; width: 21px; height: 21px; place-items: center; border-radius: 6px; background: #e8f4ec; color: #438269; font-size: 13px; }
.department-avatar.large { width: 37px; height: 37px; border-radius: 10px; font-size: 18px; }
.no-members { color: #969d96; font-size: 10px; }
.person-name { margin: 0; font: 700 12px var(--display); }
.person-view-button { width: 100%; margin-top: 11px; padding: 7px; border: 1px solid #e8ede8; border-radius: 6px; background: #fafbf9; color: #587264; font-size: 10px; font-weight: 600; }
.person-view-button:hover { background: #edf5ef; border-color: #d6e8db; }
.page-footer { display: flex; justify-content: space-between; max-width: 1120px; margin: 36px auto 0; padding-top: 15px; border-top: 1px solid #e8ebe7; color: #a2a8a0; font-size: 9px; }
.page-footer > span:first-child { color: #69736b; font: 800 11px var(--display); }
.suz-toggle { display: none; }
.suz-body { display: contents; }
.page-footer .brand-dot { color: #70a989; }

.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 18px; background: #1017137a; backdrop-filter: blur(3px); }
.modal-card { width: min(100%, 510px); max-height: min(92vh, 770px); overflow: auto; padding: 22px; border: 1px solid #edf0ec; border-radius: 14px; background: #fff; box-shadow: 0 24px 80px #111a1433; }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.modal-heading .eyebrow { margin-bottom: 5px; }
.modal-heading h2 { margin: 0; font: 800 20px var(--display); letter-spacing: -.5px; }
.icon-button { display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 7px; background: #f3f5f2; color: #757c75; font-size: 21px; line-height: 1; }
.icon-button:hover { background: #e9ede8; color: #333a33; }
.field-label { display: block; margin: 14px 0 6px; color: #4a514a; font-size: 10px; font-weight: 700; }
.field-label span { color: #929991; font-weight: 400; }
.text-input { min-height: 39px; padding: 9px 11px; font-size: 11px; }
.text-input::placeholder { color: #a8aea7; }
.textarea { display: block; resize: vertical; line-height: 1.5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row > div { min-width: 0; }
.monthly-schedule-fields { margin-top: 12px; padding: 10px 12px; border: 1px solid #e7ece7; border-radius: 8px; background: #f9fbf8; }
.monthly-schedule-fields .field-label { margin-top: 0; }
.schedule-help { display: block; margin-top: 5px; color: #858d85; font-size: 9px; }
.time-input { max-width: 160px; min-height: 38px; padding: 0 10px; font-size: 14px; }
.schedule-settings-modal { width: min(100%, 520px); }
.schedule-settings-hint { margin: -4px 0 14px; color: #7d857d; font-size: 11px; }
.weekday-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.weekday-setting { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 11px; border: 1px solid #e7ebe6; border-radius: 8px; background: #fff; }
.weekday-setting span { color: #404840; font-size: 11px; font-weight: 600; }
.weekday-setting select { width: 105px; padding: 6px 8px; border: 1px solid #e2e7e1; border-radius: 6px; background: #fbfcfa; color: #4c564d; font-size: 10px; }
.evidence-button { color: #5e758c; white-space: nowrap; }
.evidence-button:hover { background: #eef4f8; color: #3d617d; }
.evidence-modal-card { width: min(100%, 620px); }
.evidence-preview-image { display: block; width: 100%; max-height: 65vh; border-radius: 9px; background: #f3f5f2; object-fit: contain; }
.evidence-gallery { display: grid; gap: 14px; max-height: 70vh; overflow: auto; }
.evidence-figure { margin: 0; }
.evidence-figure figcaption { margin-top: 6px; color: #4f574f; font-size: 12px; font-weight: 600; }
.photo-proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 12px; }
.photo-proof-item { position: relative; margin: 0; overflow: hidden; border: 1px solid #dfe6e0; border-radius: 9px; background: #f3f5f2; aspect-ratio: 1; }
.photo-proof-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-proof-item figcaption { position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 999px; background: #000000a6; color: #fff; font-size: 11px; font-weight: 700; }
.photo-proof-item.is-loading { display: grid; place-items: center; color: #6f786f; font-size: 11px; }
.photo-proof-remove { position: absolute; top: 4px; right: 4px; display: grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #b03526; color: #fff; font-size: 18px; font-weight: 700; line-height: 1; box-shadow: 0 1px 4px #0005; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 21px; padding-top: 15px; border-top: 1px solid #edf0ec; }
.transfer-hint { margin: -5px 0 12px; color: #788078; font-size: 11px; line-height: 1.55; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; max-width: calc(100vw - 32px); padding: 11px 16px; border-radius: 8px; background: #202b25; color: #fff; font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; box-shadow: 0 8px 25px #10151033; }
.toast { display: flex; align-items: center; gap: 14px; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.has-action { pointer-events: auto; }
.toast-action { flex: 0 0 auto; padding: 5px 10px; border: 1px solid #ffffff40; border-radius: 6px; background: transparent; color: #fff; font-size: 12px; font-weight: 700; }
.toast-action:hover { background: #ffffff1a; }

@media (min-width: 1440px) {
  .main-content { padding-right: 56px; padding-left: 56px; }
}
@media (max-width: 1020px) {
  .sidebar { width: 218px; }
  .main-content { margin-left: 218px; padding-right: 24px; padding-left: 24px; }
  .departments-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; padding: 0 17px calc(88px + env(safe-area-inset-bottom, 0px)); }
  .topbar { min-height: 61px; }
  .mobile-brand { display: inline-flex; font-size: 18px; }
  .mobile-brand .brand-mark { width: 25px; height: 25px; font-size: 18px; }
  .breadcrumbs, .today-label { display: none; }
  .topbar-actions { gap: 10px; }
  .topbar-actions > .button { min-height: 35px; padding: 0 11px; font-size: 10px; }
  .mobile-profile { display: inline-flex; padding: 0; border: 0; border-radius: 50%; background: transparent; }
  .mobile-profile .avatar { width: 30px; height: 30px; font-size: 9px; }
  .prototype-note { margin-top: 11px; padding: 8px 10px; font-size: 9px; }
  .mobile-nav { position: fixed; inset: auto 0 0; z-index: 5; display: flex; justify-content: space-around; gap: 5px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #e6eae5; background: #fff; box-shadow: 0 -5px 18px #1720170c; }
  .mobile-nav-link { display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 3px 1px; border: 0; border-radius: 7px; background: transparent; color: #858d85; font-size: 9px; font-weight: 600; }
  .mobile-nav-link span { font-size: 16px; line-height: 1.1; }
  .mobile-nav-link.active { background: #edf5ef; color: #367760; }
  .page-heading { align-items: center; margin: 25px 0 19px; }
  .page-heading h1 { font-size: 25px; }
  .page-heading .eyebrow { font-size: 8px; }
  .heading-subtitle { max-width: 280px; font-size: 10px; }
  .desktop-add { display: none; }
  #addPersonButton { width: 36px; min-width: 36px; height: 36px; min-height: 36px; overflow: hidden; padding: 0; gap: 0; font-size: 0; }
  #addPersonButton span { font-size: 18px; }
  .stats-grid { gap: 8px; }
  .stat-card { min-height: 108px; padding: 11px 10px; border-radius: 8px; }
  .stat-top { gap: 4px; font-size: 9px; }
  .stat-icon { width: 23px; height: 23px; border-radius: 7px; font-size: 12px; }
  .stat-value { margin-top: 7px; font-size: 21px; }
  .stat-caption { margin-top: 5px; font-size: 8px; line-height: 1.25; }
  .toolbar-controls { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 7px; }
  .schedule-settings-button { order: 2; }
  .select-wrap { min-width: 0; flex: 1; }
  .select-wrap select { width: 100%; min-width: 0; }
  .segment { padding: 0 9px; }
  .weekday-settings-grid { grid-template-columns: 1fr; }
  .mobile-nav { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .mobile-nav { gap: 2px; padding-right: 6px; padding-left: 6px; }
  .mobile-nav-link { flex: 1 0 48px; }
  .mobile-nav-link { font-size: 8px; }
  .person-total-grid { grid-template-columns: repeat(3, 1fr); }
  .person-total-main { grid-column: 1 / -1; }
  .summary-header { display: none; }
  .summary-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 10px; }
  .summary-row span:first-child { grid-column: 1 / -1; font-weight: 700; }
  .summary-row span[data-label]::before { content: attr(data-label) ": "; color: #7d857d; }
  .transfer-action, .evidence-button { font-size: 9px; }
  .delete-action, .edit-action { padding: 4px 6px; font-size: 11px; }
  .toast { right: 12px; left: 12px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); justify-content: space-between; }
  .progress-track { width: 48px; }
  .staff-select { min-width: 115px; max-width: 45%; font-size: 10px; }
  .page-footer { margin-top: 27px; }
}
@media (max-width: 380px) {
  .main-content { padding-right: 12px; padding-left: 12px; }
  .stats-grid { gap: 6px; }
  .stat-card { padding-right: 7px; padding-left: 7px; }
  .stat-top { font-size: 8px; }
  .stat-caption { font-size: 7px; }
  .segmented-control { gap: 0; }
  .segment { padding: 0 7px; font-size: 9px; }
}

/* iPhone Safari zooms into any field whose text is under 16px and stays zoomed; on phones and
   touch screens every field uses 16px so tapping one never zooms the page. While typing the bottom menu
   hides (app.js adds body.typing), otherwise iPhone lifts it onto the keyboard over the form. */
@media (max-width: 760px), (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea { font-size: 16px !important; }
  body.typing .mobile-nav { display: none; }
}

/* Phones: every page starts with its title and the work; the sign-in note, the small text over the title,
   the description under it and the footer only take room there. */
@media (max-width: 760px) {
  .prototype-note, .page-footer, .page-heading .eyebrow, .page-heading .heading-subtitle { display: none; }
  /* "⚙ Süz" (js/ortak.js): the filters wait behind one row until it is tapped. */
  .suz-toggle { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid #dfe6e0; border-radius: 10px; background: #fff; color: #2f4f46; font: inherit; font-size: 15px; font-weight: 700; text-align: left; cursor: pointer; }
  .suz-toggle small { min-width: 0; overflow: hidden; padding: 2px 8px; border-radius: 999px; background: #e3f3ea; color: #23704f; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  .suz-arrow { margin-left: auto; color: #7d857d; }
  .suz-arrow::before { content: "▾"; }
  .suz.suz-open .suz-arrow::before { content: "▴"; }
  .suz:not(.suz-open) .suz-body { display: none !important; }
  .suz-body { display: grid; gap: 8px; }
  /* Fingers need ~36px: the filter segments (Tümü / Açık / Biten …) everywhere. */
  .segmented-control .segment { min-height: 36px; padding: 0 11px; font-size: 12px; }
}

.done-by-link { padding: 0; border: 0; background: none; color: #1f5e50; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
#photoProofAnswer { display: grid; gap: 4px; margin-top: 10px; }
.department-edit-button { margin-left: auto; align-self: flex-start; }


/* Phones: easier-to-read task lists (item text 13px, details and buttons 11px). */
@media (max-width: 760px) {
  .toolbar-controls .select-wrap { flex: 1 1 100%; }
  .transfer-action, .evidence-button, .blocked-action, .delete-action, .edit-action { font-size: 11px; }
}

/* Menu: grouped sidebar (İşletme / Personel / Ayarlar), four phone buttons, ⚙ on phones */
.workspace-label + .side-nav + .workspace-label { margin-top: 26px; }
.side-nav-settings { margin-top: 18px; padding-top: 14px; border-top: 1px solid #2c2f2a; }
.mobile-settings { display: none; }
.personnel-tabs { display: flex; gap: 6px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; }
.personnel-tab { position: relative; display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; min-height: 36px; padding: 0 14px; border: 1px solid #e1e6e0; border-radius: 999px; background: #fff; color: #59625a; font-size: 13px; font-weight: 700; }
.personnel-tab.active { border-color: #2b7567; background: #2b7567; color: #fff; }
/* Çalışanlar tabs (Çalışanlar · Puantaj · Zimmet · Disiplin), under the page heading on every screen size */
.staff-tabs { display: flex; gap: 6px; margin: 4px 0 16px; overflow-x: auto; scrollbar-width: none; }
.staff-tab { position: relative; display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; min-height: 38px; padding: 0 16px; border: 1px solid #e1e6e0; border-radius: 999px; background: #fff; color: #59625a; font-size: 13px; font-weight: 700; cursor: pointer; }
.staff-tab.active { border-color: #1f5e50; background: #e8f4ef; color: #1f5e50; }
.personnel-tab .nav-badge { position: static; margin: 0; }
.hr-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 10px 12px; border: 1px solid #f0d9a8; border-radius: 9px; background: #fff8e8; color: #6d5214; font-size: 13px; font-weight: 600; }
.hr-banner.is-overdue { border-color: #efc1b8; background: #fff0ed; color: #8a3a2c; }
.hr-banner .button { min-height: 34px; flex: 0 0 auto; }
@media (max-width: 760px) {
  .mobile-settings { display: inline-grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 1px solid #e3e8e2; border-radius: 50%; background: #fff; color: #4b544c; font-size: 16px; }
  .mobile-settings.hidden { display: none !important; }
  .mobile-nav { justify-content: space-around; overflow-x: visible; }
  .mobile-nav-link { flex: 1 1 0; font-size: 11px; }
  .mobile-nav-link span { font-size: 19px; }
  .mobile-nav-link #mobilePersonnelLabel { font-size: 11px; }
  .mobile-nav-link .nav-badge { font-size: 9px; }
  .personnel-tab { min-height: 38px; font-size: 13px; }
}

/* Çalışanlar: cards with the file status, the person file */
.people-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.people-toolbar .text-input { flex: 1 1 220px; min-height: 38px; font-size: 13px; }
.people-toolbar .segment { min-height: 32px; font-size: 12px; }
.hr-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.hr-chip { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 999px; background: #eef1ed; color: #59625a; font-size: 11px; font-weight: 700; }
.hr-chip.is-ok { background: #e3f3ea; color: #23704f; }
.hr-chip.is-warn { background: #fff4dc; color: #85620f; }
.hr-chip.is-bad { background: #fde7e2; color: #9a3b2b; }
.hr-chip.is-pending { background: #e6effb; color: #2a5a96; }

/* Shared cards and forms */
.hr-card { margin-bottom: 14px; padding: 16px; border: 1px solid #e7ebe6; border-radius: 12px; background: #fff; }
.hr-card h2 { margin: 0 0 10px; font: 800 16px/1.3 var(--display); }
.hr-field-error { color: #a33d2c; font-size: 12px; font-weight: 600; }
.text-input.is-invalid { border-color: #d6826f; background: #fff8f6; }
.hr-form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.hr-info { display: grid; }
.hr-info-row { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0f2ef; font-size: 13px; }
.hr-info-row:last-child { border-bottom: 0; }
.hr-info-row > span { color: #7d857d; }
.hr-info-row strong { font-weight: 600; overflow-wrap: anywhere; }
.hr-info-row .text-action { margin-left: 6px; font-size: 12px; }
.hr-empty { color: #b4b9b3; font-style: normal; }
.hr-info-meta { margin: 8px 0; color: #7d857d; font-size: 12px; }
.hr-account-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }


/* First sign-in */
.onboarding { position: fixed; inset: 0; z-index: 30; overflow-y: auto; padding: 22px 14px calc(30px + env(safe-area-inset-bottom, 0px)); background: var(--canvas); }

/* Personel ayarları */
.hr-setting-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid #f0f2ef; font-size: 13px; }
.hr-setting-row > span:first-child { flex: 1 1 180px; font-weight: 600; }
.hr-setting-row .text-input { flex: 1 1 200px; width: auto; min-height: 38px; font-size: 13px; }
.hr-setting-row select.text-input { flex: 0 0 160px; }
.hr-setting-row small { color: #7d857d; }
.hr-setting-row .hr-days { flex: 0 0 80px; text-align: center; }
.hr-toggle { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.hr-toggle input { width: 17px; height: 17px; accent-color: var(--green); }
.hr-doctype { margin-bottom: 10px; padding: 10px 12px; border: 1px solid #e7ebe6; border-radius: 10px; background: #fbfcfa; }
.hr-doctype-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hr-doctype-top .text-input { flex: 1 1 220px; width: auto; min-height: 38px; font-size: 13px; font-weight: 700; }
.hr-doctype-positions { margin-top: 8px; }
.hr-doctype-positions summary { color: #2b7567; font-size: 12px; font-weight: 700; cursor: pointer; }
.hr-kvkk { width: 100%; font-size: 13px; line-height: 1.5; }
.hr-save-bar { position: sticky; bottom: 12px; display: flex; justify-content: flex-end; padding: 10px; border: 1px solid #e3e8e2; border-radius: 10px; background: #fffffff2; box-shadow: 0 8px 22px #1d221d14; }
@media (max-width: 760px) {
  .hr-info-row { grid-template-columns: 1fr; gap: 2px; }
  .hr-setting-row select.text-input { flex: 1 1 100%; }
  .hr-save-bar { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .hr-form-actions .button { flex: 1 1 auto; }
}
@media (min-width: 761px) {
  .personnel-tabs { display: none; }
}
@media (max-width: 760px) {
  .people-toolbar .segmented-control { display: flex; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .people-toolbar .segmented-control .segment { flex: 0 0 auto; white-space: nowrap; }
  .people-toolbar .segment { flex: 1 1 0; min-height: 36px; font-size: 12px; }
}

/* Phones turned sideways get the desktop layout with a short screen: the sidebar scrolls on its own
   and uses less space, so every menu item and the account button stay reachable. */
.sidebar { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
@media (max-height: 620px) {
  .sidebar { padding-top: 14px; padding-bottom: 10px; }
  .workspace-label { margin-top: 16px; margin-bottom: 6px; }
  .workspace-label + .side-nav + .workspace-label { margin-top: 12px; }
  .side-nav { gap: 2px; }
  .nav-link { padding: 7px 12px; }
  .side-nav-settings { margin-top: 8px; padding-top: 8px; }
  .sidebar-bottom { margin-top: 12px; }
  .store-card { display: none; }
}

/* Narrow desktop widths (tablets, phones turned sideways): the task toolbar wraps instead of pushing the page sideways. */
@media (max-width: 1180px) {
  .toolbar-controls { width: 100%; flex-wrap: wrap; gap: 7px; }
}

/* Ödeme · Puantaj · Zimmet */
.payroll-tabs { display: flex; width: fit-content; max-width: 100%; margin: 4px 0 14px; overflow-x: auto; }
.payroll-tabs .segment { min-height: 34px; padding: 0 14px; font-size: 13px; white-space: nowrap; }
.payroll-tabs .nav-badge { margin-left: 4px; }


.hr-doc-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.hr-doc-tools .button, #peopleZipAll { min-height: 34px; font-size: 12px; text-decoration: none; display: inline-flex; align-items: center; }

@media (max-width: 760px) {
  .payroll-tabs { width: 100%; }
  .payroll-tabs .segment { flex: 1 1 auto; }
}

.hr-exempt-tools { display: flex; gap: 14px; margin: 4px 0 8px; }
.hr-exempt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 12px; }
.hr-exempt-list small { color: #7a837b; font-size: 11px; }

/* ---- İş başvurusu: public form (basvuru.php) and the same form inside the panel ---- */
.apply-page { background: var(--canvas); }
.apply-shell { max-width: 640px; margin: 0 auto; padding: 18px 14px 40px; }
.apply-card { padding: 22px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 12px 40px #2028200a; }
.apply-card h1 { margin: 2px 0 6px; font: 800 24px/1.2 var(--display); }
.apply-intro { margin: 0 0 6px; color: #5b635c; font-size: 14px; }
.apply-section { margin-top: 18px; padding-top: 14px; border-top: 1px solid #eef1ed; }
.apply-section h2 { margin: 0 0 4px; font: 800 16px/1.3 var(--display); }
.apply-field { margin-top: 4px; }
.apply-field .text-input { width: 100%; }
.apply-page .text-input { font-size: 15px; min-height: 44px; }
.apply-page .field-label { font-size: 12px; }
.apply-hint { margin: 2px 0 8px; color: #7a837b; font-size: 12px; }
.apply-sub { margin-top: 10px; }
.apply-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.apply-chip { position: relative; cursor: pointer; }
.apply-chip input { position: absolute; opacity: 0; pointer-events: none; }
.apply-chip span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid #d9dfd8; border-radius: 999px; background: #fff; color: #3f4740; font-size: 13px; font-weight: 600; }
.apply-chip input:checked + span { border-color: var(--green); background: var(--soft-green); color: var(--green-dark); }
.apply-chip input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.apply-job { display: grid; grid-template-columns: 1.3fr 1.2fr .8fr auto; gap: 6px; margin-bottom: 6px; }
[data-apply-jobs].is-muted { opacity: .45; }
.apply-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.apply-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; cursor: pointer; }
.apply-check input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--green); }
.apply-consent { margin-top: 12px; font-weight: 600; }
.apply-kvkk summary { color: var(--green-dark); font-weight: 700; cursor: pointer; }
.apply-kvkk-text { max-height: 260px; overflow: auto; margin-top: 8px; padding: 10px 12px; border: 1px solid #e4e9e3; border-radius: 9px; background: #fafbf9; font-size: 12px; white-space: pre-wrap; }
.apply-error { display: block; margin-top: 4px; color: #b04a35; font-size: 12px; font-weight: 600; }
.apply-submit-error { margin-top: 14px; }
.apply-submit { width: 100%; min-height: 48px; margin-top: 18px; font-size: 15px; }
.apply-file { position: relative; display: inline-flex; align-items: center; overflow: hidden; }
.apply-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.apply-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.apply-file-item { display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 8px; border: 1px solid #e4e9e3; border-radius: 9px; background: #fafbf9; font-size: 12px; }
.apply-file-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.apply-file-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.apply-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply-done { text-align: center; padding: 34px 22px; }
.apply-done-mark { display: inline-grid; place-items: center; width: 54px; height: 54px; margin-bottom: 10px; border-radius: 50%; background: var(--soft-green); color: var(--green); font-size: 28px; font-weight: 800; }
.apply-embedded .apply-section:first-child { margin-top: 4px; }

.app-note { margin: 0 0 12px; padding: 9px 12px; border: 1px solid #f1dfb0; border-radius: 9px; background: #fff8e6; color: #6f5310; font-size: 13px; }
.avatar-large { width: 56px; height: 56px; font-size: 18px; }
.app-files { display: flex; flex-wrap: wrap; gap: 8px; }
.app-file { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid #e0e6df; border-radius: 9px; color: var(--green-dark); font-size: 13px; font-weight: 600; text-decoration: none; }
.app-card-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.app-card-title h2 { margin: 0; }
.app-link-row { display: flex; gap: 6px; margin-top: 8px; }
.app-link-row .text-input { flex: 1; min-width: 0; }
.app-open-toggle { font-size: 14px; }
.app-single-toggle { margin-top: 12px; }
.app-question-type { width: auto; }
.app-template { margin-top: 12px; padding-top: 10px; border-top: 1px solid #eef1ed; }
.app-template .text-input { width: 100%; margin-bottom: 6px; }
.app-mail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.app-mail-grid .text-input { width: 100%; }

@media (max-width: 760px) {
  .apply-job { grid-template-columns: 1fr 1fr; }
  .apply-job [data-job="duration"] { grid-column: 1; }
  .app-mail-grid { grid-template-columns: 1fr; }
}

.notify-times { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 4px; font-size: 13px; }
.notify-times .text-input { width: 120px; }


/* "Yeni" / "Bugün" marks next to records the person has not seen before */
.badge-new { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border-radius: 999px; background: #d94a38; color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; vertical-align: middle; }


.ob-list { list-style: none; margin: 0; padding: 0; }
.ob-list li { display: flex; gap: 10px; padding: 7px 0; border-top: 1px solid #eef1ed; font-size: 13px; }
.ob-list li:first-child { border-top: 0; }
.ob-list li > span { width: 18px; color: #9aa29a; font-weight: 800; }
.ob-list li.is-done > span { color: #23704f; }
.ob-list li.is-done strong { color: #6b746c; text-decoration: line-through; }
.ob-list small { display: block; color: #6b746c; font-size: 12px; }


#peopleGrid, #inactivePeopleGrid { display: block; }

.delete-card { border-color: #f1c7bd; }
.delete-card .button { color: #9a3b2b; border-color: #f1c7bd; }

.is-task { --cal: #2b7567; --cal-bg: #e3f3ea; }
.is-repeat { --cal: #5b8a7e; --cal-bg: #eef4f1; }
.is-interview { --cal: #2a5a96; --cal-bg: #e6effb; }
.is-leave, .is-sick, .is-absent { --cal: #b07b12; --cal-bg: #fff4dc; }
.is-start { --cal: #7b4bb3; --cal-bg: #f1ecf8; }
.cal-empty { margin: 0; color: #9aa29a; font-size: 12px; }


@media (max-width: 760px) {
  .pt-row .pt-iban { padding-left: 42px; }
  /* iPhone home-screen app: keep the top bar below the clock and the menu above the home bar. */
  .topbar { padding-top: env(safe-area-inset-top, 0px); min-height: calc(61px + env(safe-area-inset-top, 0px)); }
  .mobile-nav { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
}
.login-screen { padding-top: calc(22px + env(safe-area-inset-top, 0px)); padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 760px) {
  #addDepartmentButton { min-height: 36px; padding: 0 10px; font-size: 11px; white-space: nowrap; }
}


/* ---- Takvim: selected day, holidays, filter chips, own events, heat ---- */
.heading-buttons { display: flex; align-items: center; gap: 8px; }
.is-event { --cal: #c0612b; --cal-bg: #fdeee4; }
.is-expiry { --cal: #b03526; --cal-bg: #fbe9e6; }
.is-birthday { --cal: #c2457f; --cal-bg: #fbe8f1; }
.is-holiday { --cal: #8a6d1f; --cal-bg: #f7f0da; }

@media (max-width: 760px) {
  .heading-buttons .button-quiet { min-height: 36px; font-size: 12px; }
}

/* ---- Bakım ve Abonelikler ---- */
.is-maintenance { --cal: #4a6fa5; --cal-bg: #e9f0fa; }




@keyframes bday-fall { to { transform: translateY(520px) rotate(540deg); opacity: 0; } }
@keyframes bday-pop { from { transform: scale(.3); } 70% { transform: scale(1.15); } to { transform: scale(1); } }


#handoverAssetsBox .hr-toggle { display: flex; margin-top: 4px; }

/* ---- Ayarlar: one page, section menu on the left (a scrolling row on the phone) ---- */
.settings-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; align-items: start; }
.settings-menu { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 2px; padding: 6px; border: 1px solid #e7ebe6; border-radius: 12px; background: #fff; }
.settings-menu-item { padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; color: #3d453e; font: inherit; font-size: 13.5px; font-weight: 600; text-align: left; cursor: pointer; }
.settings-menu-item:hover { background: #f3f6f3; }
.settings-menu-item.active { background: #e3f3ea; color: #1f5b4b; }
.settings-content { min-width: 0; }
.settings-general { display: grid; gap: 12px; }
.settings-general .hr-card { margin: 0; }

@media (max-width: 900px) {
  .settings-layout { grid-template-columns: 1fr; gap: 12px; }
  .settings-menu { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .settings-menu::-webkit-scrollbar { display: none; }
  .settings-menu-item { flex: 0 0 auto; white-space: nowrap; }
}

/* Back button of a full-page detail (başvuru, çalışan dosyası): stays in view while the page scrolls. */
.detail-back { position: sticky; top: 8px; z-index: 4; display: inline-flex; align-items: center; min-height: 40px; margin-bottom: 12px; padding: 7px 14px; border: 1px solid #9dbfae; border-radius: 8px; background: #fff; color: #1f5b4b; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 1px 3px #10171233; }
.detail-back:hover { background: #e3f3ea; }
@media print { .detail-back { display: none; } }
