/* THRS V14.37 — Approval Requests: compact, paginated operational view.
   Scope: Work Schedules > Approval Requests only. No shared card/other-tab overrides. */
html[data-theme="light"] .work-schedules-pro {
  --wsr-bg:#fff;--wsr-soft:#f7f9fc;--wsr-soft2:#eef3f8;
  --wsr-ink:#102f4b;--wsr-muted:#617991;--wsr-line:#dae5ee;
  --wsr-gold:#bd8e51;--wsr-nav:#113b59;
  --wsr-shadow:0 3px 8px rgba(13,45,73,.035),0 14px 30px rgba(13,45,73,.06);
}
html[data-theme="dark"] .work-schedules-pro {
  --wsr-bg:#14344e;--wsr-soft:#1b3c55;--wsr-soft2:#27475f;
  --wsr-ink:#f1f6fc;--wsr-muted:#bfd0e1;--wsr-line:#3b5c75;
  --wsr-gold:#ebc58d;--wsr-nav:#0f304a;
  --wsr-shadow:0 4px 13px rgba(0,13,30,.15),0 19px 38px rgba(0,13,30,.25);
}
html[data-theme] .work-schedules-pro .ws-requests-panel {
  border:1px solid color-mix(in srgb,var(--wsr-gold) 24%,var(--wsr-line)) !important;
  box-shadow:var(--wsr-shadow) !important;
  border-radius:18px !important;
  background:var(--wsr-bg) !important;
  overflow:hidden !important;min-width:0 !important;
}
html[data-theme] .work-schedules-pro .ws-requests-panel > .thrs-card-header{
  background:linear-gradient(112deg,var(--wsr-bg),var(--wsr-soft)) !important;
  border-bottom:1px solid var(--wsr-line) !important;
  padding:18px 22px !important;
  min-height:59px !important;
}
html[data-theme] .work-schedules-pro .ws-requests-panel > .thrs-card-header h3{
  font-size:16px !important;font-weight:900 !important;
  line-height:1.4 !important;color:var(--wsr-ink) !important;
}
html[data-theme] .work-schedules-pro .ws-requests-panel > .thrs-card-header+div{
  padding:18px 20px !important;
  min-width:0 !important;
}
html[data-theme] .work-schedules-pro .ws-request-dashboard{
  display:flex;flex-direction:column;gap:15px;
  min-width:0 !important;color:var(--wsr-ink) !important;
}
html[data-theme] .work-schedules-pro .ws-requests-overview{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  border:1px solid rgba(226,195,145,.33);
  border-radius:13px;padding:16px 18px;
  color:#fff;
  background:radial-gradient(ellipse at 87% -90%,rgba(229,184,118,.20),transparent 65%),
    linear-gradient(110deg,#092941,#133c59 75%,#0b2b45);
  box-shadow:0 8px 17px rgba(9,40,68,.09);
}
html[data-theme] .work-schedules-pro .ws-requests-overview-text{
  min-width:0;display:flex;flex-direction:column;gap:4px;
}
html[data-theme] .work-schedules-pro .ws-requests-overview-text strong{
  color:#fff;font-weight:910;font-size:16px;line-height:1.4;
}
html[data-theme] .work-schedules-pro .ws-requests-overview-text span{
  font-size:11.5px;color:#d6e3ee;font-weight:630;line-height:1.55;
}
html[data-theme] .work-schedules-pro .ws-requests-total{
  display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;
  border:1px solid rgba(229,192,136,.48);
  border-radius:999px;padding:9px 12px;white-space:nowrap;
  background:rgba(255,255,255,.085);color:#f5d5a6;
  font-size:12px;font-weight:870;font-variant-numeric:tabular-nums;
}
html[data-theme] .work-schedules-pro .ws-requests-statusbar{
  display:flex;gap:7px;padding:6px;overflow-x:auto;
  border:1px solid var(--wsr-line);border-radius:13px;
  background:var(--wsr-soft);
  scrollbar-width:thin;scrollbar-color:var(--wsr-gold) transparent;
}
html[data-theme] .work-schedules-pro .ws-requests-status-option{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  flex:1 0 auto;min-height:40px;padding:8px 12px;white-space:nowrap;
  border:1px solid transparent;border-radius:9px;
  color:var(--wsr-muted);background:transparent;
  font:inherit;font-size:11.5px;font-weight:790;cursor:pointer;
  transition:border-color .15s,background-color .15s,box-shadow .15s;
}
html[data-theme] .work-schedules-pro .ws-requests-status-option:hover:not(.active){
  border-color:var(--wsr-line);background:var(--wsr-bg);
}
html[data-theme] .work-schedules-pro .ws-requests-status-option.active{
  border:1px solid rgba(214,175,117,.63);
  color:#fff !important;background:linear-gradient(120deg,#133d5a,#0a2e47);
  box-shadow:0 5px 13px rgba(12,44,75,.135);
}
html[data-theme] .work-schedules-pro .ws-requests-status-option strong{
  min-width:25px;display:inline-grid;place-items:center;
  padding:4px 7px;border-radius:8px;
  color:var(--wsr-muted);background:var(--wsr-bg);
  border:1px solid var(--wsr-line);
  font-size:10.5px;font-weight:900;font-variant-numeric:tabular-nums;
}
html[data-theme] .work-schedules-pro .ws-requests-status-option.active strong{
  color:#f4d3a0;background:rgba(255,255,255,.12);
  border-color:rgba(234,199,150,.33);
}
html[data-theme] .work-schedules-pro .ws-requests-toolbar{
  display:grid;grid-template-columns:minmax(210px,1fr) auto auto;gap:10px;
  align-items:center;min-width:0;
}
html[data-theme] .work-schedules-pro .ws-requests-search{
  display:flex;align-items:center;gap:10px;
  width:100%;height:43px;min-width:0;
  padding:0 13px;border:1px solid var(--wsr-line);border-radius:11px;
  background:var(--wsr-bg);color:var(--wsr-muted);
  box-shadow:inset 0 1px 2px rgba(11,45,70,.021);
}
html[data-theme] .work-schedules-pro .ws-requests-search:focus-within{
  border-color:var(--wsr-gold);box-shadow:0 0 0 3px color-mix(in srgb,var(--wsr-gold) 13%,transparent);
}
html[data-theme] .work-schedules-pro .ws-requests-search input{
  background:transparent !important;min-width:0;flex:1;height:40px;
  padding:0;border:0 !important;outline:none !important;box-shadow:none !important;
  font-family:inherit;color:var(--wsr-ink) !important;
  font-size:12px;font-weight:710;
}
html[data-theme] .work-schedules-pro .ws-requests-search input::placeholder{
  color:var(--wsr-muted);opacity:.84;
}
html[data-theme] .work-schedules-pro .ws-requests-page-size{
  display:flex;align-items:center;gap:8px;white-space:nowrap;
  color:var(--wsr-muted);font-size:11.5px;font-weight:780;
}
html[data-theme] .work-schedules-pro .ws-requests-page-size select{
  height:43px;min-width:100px;padding:0 10px;
  background:var(--wsr-bg);color:var(--wsr-ink);
  border:1px solid var(--wsr-line);border-radius:10px;
  font:inherit;font-weight:800;cursor:pointer;
}
html[data-theme] .work-schedules-pro .ws-requests-result-count{
  font-size:11.5px;font-weight:770;white-space:nowrap;
  color:var(--wsr-muted);font-variant-numeric:tabular-nums;
  padding-inline:4px;
}
html[data-theme] .work-schedules-pro .ws-request-dashboard>.ws-request-list{
  display:flex !important;flex-direction:column !important;gap:9px !important;
  min-width:0 !important;
}
html[data-theme] .work-schedules-pro .ws-request-dashboard .ws-request-compact{
  display:block !important;
  min-width:0 !important;
  padding:0 !important;margin:0 !important;
  background:var(--wsr-bg) !important;
  border:1px solid var(--wsr-line) !important;
  border-radius:12px !important;
  box-shadow:0 2px 8px rgba(12,45,73,.027) !important;
  overflow:hidden !important;
  transition:border-color .16s,box-shadow .16s;
}
html[data-theme] .work-schedules-pro .ws-request-dashboard .ws-request-compact:hover{
  border-color:color-mix(in srgb,var(--wsr-gold) 45%,var(--wsr-line)) !important;
  box-shadow:0 5px 14px rgba(12,43,73,.063) !important;
}
html[data-theme] .work-schedules-pro .ws-request-dashboard .ws-request-compact.is-expanded{
  border-color:color-mix(in srgb,var(--wsr-gold) 70%,var(--wsr-line)) !important;
  box-shadow:0 7px 16px rgba(12,45,73,.075) !important;
}
html[data-theme] .work-schedules-pro .ws-request-summary{
  display:flex;align-items:center;gap:12px;min-width:0;
  padding:13px 15px;min-height:77px;
}
html[data-theme] .work-schedules-pro .ws-request-mini-avatar{
  display:grid;place-items:center;
  flex:0 0 39px;width:39px;height:39px;
  color:var(--wsr-gold);font-size:11px;font-weight:900;
  background:color-mix(in srgb,var(--wsr-gold) 11%,var(--wsr-soft));
  border:1px solid color-mix(in srgb,var(--wsr-gold) 29%,var(--wsr-line));
  border-radius:11px;
}
html[data-theme] .work-schedules-pro .ws-request-summary-main{
  flex:1;min-width:0;display:flex;flex-direction:column;gap:5px;
}
html[data-theme] .work-schedules-pro .ws-request-summary-title{
  color:var(--wsr-ink);font-size:13.1px;font-weight:910;line-height:1.38;
  white-space:nowrap;text-overflow:ellipsis;overflow:hidden;
}
html[data-theme] .work-schedules-pro .ws-request-summary-sub{
  display:flex;align-items:center;flex-wrap:wrap;gap:3px 7px;
  font-size:10.8px;color:var(--wsr-muted);line-height:1.45;font-weight:700;
  min-width:0;
}
html[data-theme] .work-schedules-pro .ws-request-summary-sub>span,
html[data-theme] .work-schedules-pro .ws-request-summary-sub time{
  max-width:100%;overflow:hidden;text-overflow:ellipsis;
}
html[data-theme] .work-schedules-pro .ws-request-row-actions{
  display:flex;align-items:center;gap:8px;flex:0 0 auto;
  flex-wrap:wrap;justify-content:flex-end;
}
html[data-theme] .work-schedules-pro .ws-request-status-pill{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:27px;padding:5px 9px;border-radius:999px;
  color:var(--ws-request-status-color);background:var(--ws-request-status-bg);
  border:1px solid var(--ws-request-status-border);
  font-size:10.5px;font-weight:870;white-space:nowrap;
}
html[data-theme="dark"] .work-schedules-pro .ws-request-status-pill{
  color:var(--wsr-ink);background:var(--wsr-soft2);
  border-color:var(--wsr-line);
}
html[data-theme] .work-schedules-pro .ws-request-expand{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  min-height:35px;padding:7px 11px;
  color:var(--wsr-ink);background:var(--wsr-soft);
  border:1px solid var(--wsr-line);border-radius:9px;
  font:inherit;font-size:11px;font-weight:800;
  cursor:pointer;white-space:nowrap;
}
html[data-theme] .work-schedules-pro .ws-request-expand svg{transition:transform .15s;}
html[data-theme] .work-schedules-pro .ws-request-expand[aria-expanded="true"] svg{transform:rotate(180deg)}
html[data-theme] .work-schedules-pro .ws-request-expand:hover{
  border-color:var(--wsr-gold);background:var(--wsr-bg);
}
html[data-theme] .work-schedules-pro .ws-request-row-actions .thrs-btn{
  min-height:35px;border-radius:9px !important;
  font-size:11px !important;font-weight:820 !important;
  padding:8px 11px !important;white-space:nowrap !important;
}
html[data-theme] .work-schedules-pro .ws-request-detail{
  background:var(--wsr-soft);
  padding:15px 17px;
  border-top:1px solid var(--wsr-line);
  color:var(--wsr-ink);
  display:flex;flex-direction:column;gap:13px;
}
html[data-theme] .work-schedules-pro .ws-request-detail-top{
  display:flex;align-items:center;gap:8px 20px;flex-wrap:wrap;
  color:var(--wsr-muted);font-size:11.5px;line-height:1.45;
}
html[data-theme] .work-schedules-pro .ws-request-detail-top strong,
html[data-theme] .work-schedules-pro .ws-request-reason strong,
html[data-theme] .work-schedules-pro .ws-request-schedule-detail>strong{
  color:var(--wsr-ink);font-size:11.5px;font-weight:900;
}
html[data-theme] .work-schedules-pro .ws-request-reason{
  display:flex;flex-direction:column;gap:6px;
}
html[data-theme] .work-schedules-pro .ws-request-reason p{
  margin:0;padding:12px 13px;border-radius:9px;
  color:var(--wsr-muted);font-size:12px;font-weight:670;line-height:1.65;
  background:var(--wsr-bg);border:1px solid var(--wsr-line);
  white-space:pre-wrap;overflow-wrap:anywhere;
}
html[data-theme] .work-schedules-pro .ws-request-schedule-detail{
  display:flex;flex-direction:column;gap:9px;
}
html[data-theme] .work-schedules-pro .ws-request-schedule-detail .ws-chips{
  display:flex;flex-wrap:wrap;gap:7px;
}
html[data-theme] .work-schedules-pro .ws-request-schedule-detail .ws-chip{
  color:var(--wsr-ink) !important;background:var(--wsr-bg) !important;
  border:1px solid var(--wsr-line) !important;
  border-radius:8px !important;
  font-size:10.5px !important;font-weight:760 !important;
  line-height:1.5 !important;white-space:normal !important;
}
html[data-theme] .work-schedules-pro .ws-requests-pagination{
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:12px;
  background:var(--wsr-soft);
  border:1px solid var(--wsr-line);border-radius:11px;
  padding:12px 14px;
}
html[data-theme] .work-schedules-pro .ws-requests-pagination>span{
  font-size:11.5px;font-weight:850;color:var(--wsr-muted);
  font-variant-numeric:tabular-nums;
}
html[data-theme] .work-schedules-pro .ws-requests-pagination>div{
  display:flex;align-items:center;gap:5px;flex-wrap:wrap;
}
html[data-theme] .work-schedules-pro .ws-requests-pagination button{
  min-width:34px;height:34px;display:inline-grid;place-items:center;
  padding:0 8px;border:1px solid var(--wsr-line);
  border-radius:8px;background:var(--wsr-bg);
  color:var(--wsr-ink);font-size:11px;font-weight:850;
  cursor:pointer;transition:background .15s,border-color .15s;
}
html[data-theme] .work-schedules-pro .ws-requests-pagination button:hover:not(:disabled){
  border-color:var(--wsr-gold);background:var(--wsr-soft2);
}
html[data-theme] .work-schedules-pro .ws-requests-pagination button.is-current{
  color:#fff;background:linear-gradient(140deg,#184763,#0b304a);
  border-color:#c19962;
}
html[data-theme] .work-schedules-pro .ws-requests-pagination button:disabled{
  cursor:not-allowed;opacity:.44;
}
html[data-theme] .work-schedules-pro .ws-request-dashboard :is(button,input,select):focus-visible{
  outline:2px solid var(--wsr-gold) !important;outline-offset:2px !important;
}
html[data-theme] .work-schedules-pro .ws-requests-empty{
  min-height:135px !important;
  color:var(--wsr-muted) !important;
  background:var(--wsr-soft) !important;
}
@media(max-width:930px){
 html[data-theme] .work-schedules-pro .ws-requests-toolbar{
   grid-template-columns:minmax(0,1fr) auto;
 }
 html[data-theme] .work-schedules-pro .ws-requests-result-count{
   grid-column:1/-1;text-align:start;
 }
 html[data-theme] .work-schedules-pro .ws-request-summary{
   flex-wrap:wrap;gap:9px;padding:12px;
 }
 html[data-theme] .work-schedules-pro .ws-request-row-actions{
   flex:0 0 100%;justify-content:flex-start;
 }
}
@media(max-width:560px){
 html[data-theme] .work-schedules-pro .ws-requests-panel>.thrs-card-header+div{padding:12px !important;}
 html[data-theme] .work-schedules-pro .ws-requests-overview{
   flex-wrap:wrap;padding:13px 14px;
 }
 html[data-theme] .work-schedules-pro .ws-requests-statusbar{gap:5px;padding:5px;}
 html[data-theme] .work-schedules-pro .ws-requests-status-option{
   flex:0 0 auto;min-height:37px;padding:7px 9px;font-size:10.5px;
 }
 html[data-theme] .work-schedules-pro .ws-requests-toolbar{
   grid-template-columns:1fr !important;gap:8px;
 }
 html[data-theme] .work-schedules-pro .ws-requests-page-size{
   justify-self:start;
 }
 html[data-theme] .work-schedules-pro .ws-requests-result-count{
   grid-column:auto;
 }
 html[data-theme] .work-schedules-pro .ws-request-summary-main{
   flex:1 1 calc(100% - 55px);
 }
 html[data-theme] .work-schedules-pro .ws-request-summary-title{
   white-space:normal;overflow-wrap:anywhere;
   display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
 }
 html[data-theme] .work-schedules-pro .ws-request-row-actions{
   justify-content:space-between;gap:7px;
 }
 html[data-theme] .work-schedules-pro .ws-request-detail{padding:12px;}
 html[data-theme] .work-schedules-pro .ws-requests-pagination{padding:10px;}
 html[data-theme] .work-schedules-pro .ws-requests-pagination>div{gap:4px;}
 html[data-theme] .work-schedules-pro .ws-requests-pagination button{min-width:32px;height:32px;}
}
@media(prefers-reduced-motion:reduce){
 html[data-theme] .work-schedules-pro .ws-request-dashboard *{transition:none !important}
}