/* Thin disclosure marks, consistent across fields and expandable cards. */
:root{--disclosure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%239b9ba3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
body select:not([multiple]){appearance:none;-webkit-appearance:none;background-image:var(--disclosure-icon);background-position:right 12px center;background-repeat:no-repeat;background-size:20px;padding-right:40px;cursor:pointer}
body input:is([type=date],[type=time]){cursor:pointer}
body .shell :is(.workday-chevron,.report-summary-chevron,.unpaid-chevron,.release-chevron,.attendance-chevron){display:inline-block;flex:none;width:20px;height:20px;min-width:20px;font-size:0;background:var(--disclosure-icon) center/20px no-repeat;transition:transform .2s ease}
.ledger-receipt>summary>b>.ledger-chevron{display:block;flex:none;width:20px;height:20px;min-width:20px;font-size:0;background:var(--disclosure-icon) center/20px no-repeat;transition:transform .2s ease}
.ledger-receipt>summary::before,.ledger-receipt>summary::after{content:none!important;display:none!important}
.ledger-receipt[open]>summary>b>.ledger-chevron{transform:rotate(180deg)}
@media(prefers-reduced-motion:reduce){.ledger-receipt>summary>b>.ledger-chevron{transition:none}}
.ios-sheet{box-sizing:border-box;background:#202022;color:#f5f5f5;border:1px solid #3b3b40;border-radius:28px;padding:12px 16px 20px;width:calc(100% - 32px);max-width:440px;max-height:min(80dvh,660px);overflow:hidden;box-shadow:0 24px 100px #0008}
.ios-sheet::backdrop{background:#0007;backdrop-filter:blur(6px)}
.ios-sheet-handle{width:34px;height:4px;background:#66666b;border-radius:3px;margin:0 auto 12px}
.ios-sheet-header{display:flex;align-items:center;gap:10px;min-height:42px;margin-bottom:12px}
.ios-sheet-header h2{flex:1;font-size:15px;line-height:1.4;font-weight:600;letter-spacing:0;margin:0;text-align:center;overflow-wrap:anywhere}
.ios-sheet-header button{background:none;border:0;padding:10px 0;font:inherit;font-size:14px;color:var(--lime);cursor:pointer;flex:none;min-width:56px;min-height:44px}
.ios-sheet-header:has(.ios-sheet-done) h2{max-width:calc(100% - 132px)}
.ios-sheet-header:not(:has(.ios-sheet-done)){padding-right:66px}
.ios-sheet-header .ios-sheet-done{font-weight:600;text-align:right}
.ios-sheet button:focus-visible,.ios-wheel:focus-visible{outline:2px solid var(--lime);outline-offset:-2px;border-radius:12px}
.ios-choice-body{max-height:calc(min(80dvh,660px) - 105px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.ios-choice-search{box-sizing:border-box;margin-bottom:12px;border:0;background:#303034;border-radius:12px;font-size:16px}
.ios-choice-list{background:#2b2b2e;border-radius:17px;overflow:hidden}
.ios-choice-option{width:100%;border:0;background:transparent;color:inherit;font:inherit;font-size:16px;text-align:left;padding:15px 16px;min-height:54px;display:flex;gap:14px;align-items:center;cursor:pointer}
.ios-choice-option+ .ios-choice-option{border-top:1px solid #3b3b40}
.ios-choice-option>span:first-child{flex:1;overflow-wrap:anywhere}
.ios-choice-option[hidden]{display:none}
.ios-choice-option:hover{background:#ffffff05}
.ios-choice-option[aria-selected=true]{color:var(--lime);background:#75D98108}
.ios-choice-option:disabled{color:#77777e;cursor:default}
.ios-choice-check{width:18px;height:18px;flex:none}
.ios-choice-option[aria-selected=true] .ios-choice-check{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 10 4 4 8-9' stroke='%2375D981' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat}
.ios-choice-group{font-size:12px;color:#a0a0a8;padding:14px 16px 7px;background:#202022}
.ios-wheel-preview{text-align:center;font-size:22px;font-weight:600;font-variant-numeric:tabular-nums;padding:8px 0 22px}
.ios-wheel-labels{display:grid;text-align:center;font-size:11px;color:#95959e;padding:0 6px 8px}
.ios-wheels{display:grid;position:relative;background:#242427;border-radius:18px;padding:0 6px;isolation:isolate}
.ios-wheels:before{content:'';position:absolute;inset:88px 5px auto;height:44px;border-radius:10px;background:#ffffff0c;border-top:1px solid #ffffff04;border-bottom:1px solid #ffffff04;z-index:-1;pointer-events:none}
.ios-wheel{height:220px;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y mandatory;scrollbar-width:none;padding:88px 0;-webkit-mask-image:linear-gradient(transparent,#000 35%,#000 65%,transparent);mask-image:linear-gradient(transparent,#000 35%,#000 65%,transparent);touch-action:pan-y}
.ios-wheel::-webkit-scrollbar{display:none}
.ios-wheel-option{height:44px;line-height:44px;white-space:nowrap;text-align:center;scroll-snap-align:center;font-size:20px;color:#909098;font-variant-numeric:tabular-nums;cursor:pointer;user-select:none}
.ios-wheel-option[aria-selected=true]{color:#f5f5f5;font-weight:500}
.ios-sheet .ios-wheel-error{color:#edc27e;font-size:12px;text-align:center;margin:12px 0 0;min-height:0}
.ios-wheel-error:empty{display:none}
@media(max-width:600px){.ios-sheet{margin:auto 0 0;width:100%;max-width:none;border-radius:28px 28px 0 0;border-bottom:0;padding-bottom:max(24px,env(safe-area-inset-bottom));max-height:85dvh}.ios-choice-body{max-height:calc(85dvh - 130px)}.ios-wheel-option{font-size:20px}}
@media(prefers-reduced-motion:reduce){body .shell :is(.workday-chevron,.report-summary-chevron,.unpaid-chevron,.release-chevron,.attendance-chevron){transition:none}}

/* Plain disclosures use the same small mark as employee cards. */
summary{list-style:none;position:relative}
summary::-webkit-details-marker{display:none}
summary:not(:has(.workday-chevron,.report-summary-chevron,.unpaid-chevron,.release-chevron,.attendance-chevron)):not(.ledger-receipt>summary){padding-right:30px}
summary:not(:has(.workday-chevron,.report-summary-chevron,.unpaid-chevron,.release-chevron,.attendance-chevron)):not(.ledger-receipt>summary)::after{content:'';position:absolute;right:4px;top:50%;width:20px;height:20px;margin-top:-10px;background:var(--disclosure-icon) center/20px no-repeat;transition:transform .2s ease}
details[open]>summary::after{transform:rotate(180deg)}

/* The real field still owns values and validation, but can never open a native picker. */
.ios-field-wrap{position:relative;display:inline-grid;width:100%;vertical-align:middle;min-width:0}
.ios-native-field{visibility:hidden!important;pointer-events:none!important;margin:0!important;grid-area:1/1;min-width:0!important;max-width:100%!important}
.ios-field-trigger{position:absolute;inset:0;width:100%;min-width:0;display:block;border:1px solid #535351;background:#141415;color:var(--ink);border-radius:14px;padding:13px 38px 13px 14px;font:inherit;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ios-field-trigger::after{content:'';position:absolute;right:12px;top:50%;transform:translateY(-50%);width:18px;height:18px;background:var(--disclosure-icon) center/18px no-repeat;pointer-events:none}
.ios-field-trigger[data-kind=date]::after{background:none;border:1.5px solid currentColor;border-radius:3px;width:12px;height:12px;box-shadow:inset 0 3px currentColor;opacity:.7}
.ios-wheel-sound{display:block;margin:8px auto 0;background:transparent;border:0;color:var(--muted);font-size:12px;padding:10px 16px;min-height:40px;border-radius:20px}
.ios-wheel-sound[aria-pressed=true]{color:var(--lime)}

/* The date itself identifies the control; keep its label, remove decorative icon. */
.ios-field-trigger[data-kind=date]::after{display:none}
.ios-field-trigger[data-kind=date]{padding-right:14px}
input[type=date]::-webkit-calendar-picker-indicator{display:none}


/* Compact picker rows keep a full finger-sized hit area. */
.ios-choice-option{padding:11px 14px;min-height:46px;font-size:15px}
.ios-choice-group{padding:11px 14px 6px}
.ios-wheel-preview{font-size:20px;padding-bottom:16px}
.ios-field-trigger{padding:11px 34px 11px 12px;border-radius:12px}

/* Keep picker controls reachable in landscape and other short viewports. */
.ios-sheet:has(.ios-wheels){overflow-y:auto;overscroll-behavior:contain}
.ios-sheet:has(.ios-wheels) .ios-sheet-header{position:sticky;top:0;z-index:2;background:transparent}
@media(max-height:600px){
 .ios-sheet:has(.ios-wheels) .ios-wheel{height:132px;padding:44px 0}
 .ios-sheet:has(.ios-wheels) .ios-wheels:before{top:44px}
 .ios-sheet:has(.ios-wheels) .ios-wheel-preview{font-size:18px;padding:2px 0 10px}
}
