/* Split scope/status Dock; only this workspace is affected. */
html body.leave-style #history-view.leave-query-has-dock > .leave-list-tabs {display:none!important;}
html body.leave-style #app-shell #history-view.leave-query-has-dock {padding-bottom:114px!important;}
html body.leave-style #leave-query-dock {position:fixed;bottom:max(14px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:7px;width:max-content;max-width:min(var(--lqd-available,calc(100vw - 24px)),calc(100vw - 24px));padding:9px 18px;box-sizing:border-box;border:1px solid #94b8d3;border-radius:25px;background:linear-gradient(145deg,#ffffffed,#eef6fbdc);backdrop-filter:blur(10px) saturate(130%);box-shadow:inset 0 1px 0 #fff,0 12px 28px #244f7e20;z-index:19;}
html body.leave-style #leave-query-dock[hidden],#leave-query-dock [hidden] {display:none!important;}
#leave-query-dock .lqd-group {display:flex;align-items:center;gap:6px;min-width:0;}
#leave-query-dock .lqd-divider {height:37px;width:1px;flex:none;margin:0 7px;background:linear-gradient(transparent,#9bbbd2,transparent);}
html body.leave-style #leave-query-dock button {position:relative;display:grid;place-items:center;flex:0 1 auto;width:calc(var(--lqd-slot,48px) + var(--lqd-growth,0px));min-width:20px!important;height:54px;min-height:54px!important;padding:0!important;margin:0!important;border:0!important;border-radius:13px!important;background:transparent!important;color:#6187a4;box-shadow:none!important;transform:none!important;overflow:visible;transition:width .2s ease!important;}
#leave-query-dock .lqd-icon {display:grid;place-items:center;width:var(--lqd-icon,42px);height:42px;border:1px solid #a5c2d9;border-radius:13px;background:linear-gradient(145deg,#fff,#f0f6fa);box-shadow:inset 0 1px 0 #fff,0 3px 7px #315b7f14;transform:translateY(var(--lqd-lift,0px)) scale(var(--lqd-scale,1));transition:transform .2s ease,box-shadow .2s ease;pointer-events:none;}
#leave-query-dock .lqd-icon svg {width:25px;height:25px;}
#leave-query-dock button[aria-pressed=true] .lqd-icon {color:#06528b;background:linear-gradient(145deg,#edf8ff,#b5d6ed);border-color:#8bb8d5;}
#leave-query-dock button:is(:hover,:focus-visible) .lqd-icon {box-shadow:0 7px 16px #315b7f28;}
#leave-query-dock button:disabled {opacity:.35;cursor:default;}
#leave-query-dock .lqd-label {position:absolute;bottom:calc(100% + 17px);left:50%;transform:translateX(-50%);padding:6px 10px;border:1px solid #c2d6e6;border-radius:9px;background:#fffffff5;box-shadow:0 4px 12px #203f601a;color:#244760;font-size:12px;white-space:nowrap;visibility:hidden;opacity:0;pointer-events:none;}
#leave-query-dock button:is(:hover,:focus-visible) .lqd-label {opacity:1;visibility:visible;}
#leave-query-dock button:focus-visible {outline:2px solid #2978cb!important;outline-offset:3px;}
@media(max-width:600px) {
html body.leave-style #leave-query-dock {padding:7px 8px;gap:3px;border-radius:21px;}
#leave-query-dock .lqd-group {gap:2px;}
#leave-query-dock .lqd-divider {margin:0 3px;height:30px;}
html body.leave-style #leave-query-dock button {width:var(--lqd-slot,33px);min-width:20px!important;height:46px;min-height:46px!important;}
#leave-query-dock .lqd-icon {width:var(--lqd-icon,29px);height:34px;border-radius:10px;transform:none;}
#leave-query-dock .lqd-icon svg {width:21px;height:21px;}
#leave-query-dock .lqd-label {width:max-content;max-width:95px;white-space:normal;text-align:center;}
}

@mediaprint {#leave-query-dock {display:none!important;}}
/* The shared phone helper creates a duplicate select; the Dock replaces it too. */


html body.leave-style #history-view #leave-query-context {display:inline-flex;margin:0 2px 10px;padding:5px 10px;border:1px solid #d0e0ec;border-radius:9px;color:#466781;background:#f6fafe;font-size:12px;line-height:1.4;}

html body.leave-style #history-view.leave-query-has-dock #open-new-history {display:none!important;}
#leave-query-dock .lqd-dot {position:absolute;bottom:0;left:50%;width:6px;height:6px;transform:translateX(-50%);border-radius:50%;background:#ed354a;box-shadow:0 1px 4px #d4264533;}
/* A function opens the original modal; the Dock must not cover its actions. */
html body.leave-style:has(.modal-overlay:not(.hidden)) #leave-query-dock {display:none!important;}
/* The duration already says hours; avoid repeating the unit after the time range. */
html body.leave-style #history-view #history-list .record-row>span:nth-child(3) .sub[data-i18n="小時紀錄"] {display:none!important;}

/* All status operations now live in the right Dock, including on phones. */
html body.leave-style #history-view.leave-query-has-dock :is(.filters,.oa-phone-status) {display:none!important;}

#leave-status-chip[hidden] {display:none!important;}
#leave-status-chip {
  display:inline-flex;align-items:center;gap:.4em;flex:none;max-inline-size:100%;
  min-block-size:28px;padding:2px 8px;margin-inline-start:5px;
  border:1px solid #bfd4e6;border-radius:999px;background:#eaf4fb;color:#234b69;
  font:inherit;font-size:.78rem;cursor:pointer;
}
#leave-status-chip:focus-visible {outline:2px solid #174f8b;outline-offset:2px;}
@media (pointer:coarse) { #leave-status-chip {min-block-size:44px;} }
