/* CENTRAL bulk timesheet copying. Layout also works inside the native iPhone WebView. */
.ct-copy-dialog{width:min(680px,calc(100vw - 20px));max-height:min(92dvh,900px);overflow:auto;background:#1d1b19;color:#f2e6dd;border:1px solid #57473c;border-radius:14px;padding:0;box-shadow:0 24px 80px #000a}
.ct-copy-dialog::backdrop{background:#050404cc}
.ct-copy-head{padding:20px 22px 16px;border-bottom:1px solid #4b3b30;display:flex;gap:12px;align-items:start;justify-content:space-between}
.ct-copy-head h2{font-size:20px;letter-spacing:.035em;margin:5px 0}
.ct-copy-head p{color:#b7a89b;margin:7px 0 0;font-size:12px;line-height:1.5}
.ct-copy-close{border:0;background:#302923;color:#f4dac7;font-size:19px;border-radius:9px;width:36px;height:36px;flex:none;cursor:pointer}
.ct-copy-body{padding:17px 21px;display:grid;gap:15px}
.ct-copy-field{display:grid;gap:6px;font-size:11px;letter-spacing:.075em;color:#c3a994;font-weight:800}
.ct-copy-field .fieldctl{width:100%;min-height:43px;max-width:100%;background:#28211c}
.ct-copy-section{display:grid;gap:10px;padding:12px;border:1px solid #4d3b30;border-radius:10px;background:#231e1a}
.ct-copy-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:21px;flex-wrap:wrap}
.ct-copy-section-head strong{font-size:10px;letter-spacing:.12em;color:#ead2c0}
.ct-copy-section-head span{font-size:11px;color:#9f8e82}
.ct-copy-minor{background:transparent;border:0;color:#e9a884;font-size:11px;font-weight:800;cursor:pointer;padding:4px}
.ct-copy-days{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:6px}
.ct-copy-targets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:225px;overflow-y:auto}
.ct-copy-option{display:flex;align-items:center;gap:8px;padding:9px;min-width:0;border-radius:7px;background:#302923;border:1px solid #554339;cursor:pointer}
.ct-copy-option input{flex:none;accent-color:#e28355;width:16px;height:16px}
.ct-copy-option span{display:grid;gap:3px;min-width:0}
.ct-copy-option strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ct-copy-option small{font-size:10px;color:#b5a193;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ct-copy-option:has(input:checked){border-color:#ce855a;background:#402e25}
.ct-copy-option.is-disabled{opacity:.45;cursor:not-allowed}
.ct-copy-overwrite{display:flex;align-items:start;gap:9px;padding:11px 12px;border:1px solid #6d4e3a;border-radius:9px;background:#30241f;cursor:pointer}
.ct-copy-overwrite input{accent-color:#e28355;margin-top:3px;flex:none}
.ct-copy-overwrite span{display:grid;gap:4px}
.ct-copy-overwrite strong{font-size:12px;color:#f3cfba}
.ct-copy-overwrite small{font-size:11px;color:#b9a293;line-height:1.35}
.ct-copy-preview{padding:12px 13px;background:#302c29;border:1px solid #554a43;border-radius:9px;display:grid;gap:5px;font-variant-numeric:tabular-nums}
.ct-copy-preview strong{font-size:13px;color:#f5d9c6}
.ct-copy-preview span{font-size:12px;color:#c4b4a6}
.ct-copy-message{font-size:12px;line-height:1.5;color:#b8cbaa;min-height:20px;margin:0}
.ct-copy-message.is-error{color:#ffb69e}
.ct-copy-actions{position:sticky;bottom:0;background:#211d1a;border-top:1px solid #554237;padding:14px 21px;display:flex;align-items:center;justify-content:flex-end;gap:9px;z-index:2}
.ct-copy-actions .btn{min-height:42px}
.ct-copy-actions .btn:disabled{opacity:.4;cursor:not-allowed}
@media(max-width:570px){
 .ct-copy-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 18px)}
 .ct-copy-head{padding:14px 15px}
 .ct-copy-head h2{font-size:17px}
 .ct-copy-body{padding:12px 13px;gap:11px}
 .ct-copy-section{padding:10px}
 .ct-copy-days,.ct-copy-targets{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ct-copy-option{padding:8px 7px}
 .ct-copy-option strong{font-size:11px}
 .ct-copy-option small{font-size:9px}
 .ct-copy-actions{padding:10px 12px calc(10px + env(safe-area-inset-bottom));gap:8px}
 .ct-copy-actions .btn{flex:1;padding:10px;font-size:11px}
 .ct-copy-field .fieldctl{font-size:16px}
}
