/* R85 — scalable appointment blacklist workspace. Business rules unchanged. */
.appointment-blacklist-button{
  border:1px solid #dc2626!important;
  background:#dc2626!important;
  color:#fff!important;
}
.appointment-blacklist-button:hover{background:#b91c1c!important;border-color:#b91c1c!important}
.appointment-blacklist-card-badge{
  display:inline-flex;align-items:center;margin-left:5px;border:1px solid #fecaca;border-radius:999px;
  padding:1px 5px;background:#dc2626;color:#fff;font-size:8px;font-weight:900;line-height:1.35;vertical-align:middle;white-space:nowrap;
}
.finance-blacklist-badge{
  display:inline-flex;align-items:center;margin-left:7px;border-radius:999px;padding:3px 7px;background:#dc2626;color:#fff;
  font-size:9px;font-weight:900;line-height:1.2;box-shadow:0 2px 6px rgba(220,38,38,.16);vertical-align:middle;
}
.appointment-attendance-alert.is-blacklist{border-color:#fecaca!important;background:#fff1f2!important;color:#9f1239!important}

.appointment-blacklist-modal-v2{
  width:min(1160px,calc(100vw - 24px))!important;
  max-width:1160px!important;
  padding:24px 24px 20px!important;
  border-radius:20px!important;
  overflow:hidden!important;
}
.appointment-blacklist-title-v2{
  margin:0 0 16px!important;
  padding:0 48px!important;
  color:#273a43!important;
  font-size:25px!important;
  line-height:1.25!important;
  font-weight:900!important;
}
.appointment-blacklist-html-v2{margin:0!important;padding:0!important;overflow:visible!important}
.abl-shell{color:#334155;text-align:left}
.abl-toolbar{
  margin-bottom:12px;padding:12px;border:1px solid #e2ecea;border-radius:14px;background:#fbfdfd;
}
.abl-search-row{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:8px}
.abl-search,.abl-select,.abl-status-select{
  min-height:42px;border:1px solid #d7e3e1;border-radius:10px;background:#fff;color:#334155;outline:none;
  font-family:inherit;font-size:12px;font-weight:700;transition:border-color .15s,box-shadow .15s;
}
.abl-search{width:100%;padding:9px 12px}
.abl-select,.abl-status-select{padding:8px 30px 8px 10px;cursor:pointer}
.abl-search:focus,.abl-select:focus,.abl-status-select:focus{border-color:#00a997;box-shadow:0 0 0 3px rgba(0,169,151,.10)}
.abl-toolbar-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px}
.abl-filters{display:flex;flex-wrap:wrap;gap:6px}
.abl-filters button{
  min-height:32px;border:1px solid #d8e2e8;border-radius:999px;padding:5px 10px;background:#fff;color:#52666c;
  font-family:inherit;font-size:10px;font-weight:800;cursor:pointer;
}
.abl-filters button:hover{border-color:#b7cfca;background:#f8fbfa}
.abl-filters button.is-active{border-color:#00a997;background:#edfffb;color:#007d72}
.abl-filters b{margin-left:3px}
.abl-status-select{min-width:165px;min-height:32px;font-size:10px}

.abl-workspace{
  display:grid;grid-template-columns:minmax(330px,38%) minmax(0,62%);height:min(610px,68vh);
  border:1px solid #e2e8e7;border-radius:16px;overflow:hidden;background:#f8fbfa;
}
.abl-list-pane{display:flex;min-width:0;flex-direction:column;border-right:1px solid #e2e8e7;background:#f7faf9}
.abl-list-head{
  display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 12px;border-bottom:1px solid #e6eeec;background:#fff;
}
.abl-list-head strong{font-size:11px;color:#273a43}
.abl-list-head span{font-size:9px;color:#718489}
.abl-list{flex:1;min-height:0;overflow:auto;padding:9px}
.abl-card{
  width:100%;display:block;margin:0 0 7px;padding:11px 12px;border:1px solid #e0e9e7;border-left:3px solid transparent;
  border-radius:12px;background:#fff;text-align:left;font-family:inherit;color:inherit;cursor:pointer;
  transition:border-color .14s,box-shadow .14s,background .14s,transform .14s;
}
.abl-card:last-child{margin-bottom:0}
.abl-card:hover{border-color:#bcd3cf;box-shadow:0 5px 16px rgba(15,118,110,.07);transform:translateY(-1px)}
.abl-card.is-selected{border-color:#8cd9d0;border-left-color:#00a997;background:#f5fffd;box-shadow:0 0 0 2px rgba(0,169,151,.08)}
.abl-card.is-released{opacity:.74}
.abl-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.abl-card-name-wrap{min-width:0;display:block}
.abl-card-name{
  display:-webkit-box;overflow:hidden;color:#17324d;font-size:13px;font-weight:900;line-height:1.35;
  -webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-word;
}
.abl-card-meta{display:block;margin-top:3px;color:#718489;font-size:9px;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.abl-status{
  display:inline-flex;flex:none;align-items:center;min-height:23px;border-radius:999px;padding:3px 7px;font-size:8px;font-weight:900;white-space:nowrap;
}
.abl-status.is-active{border:1px solid #fecaca;background:#fff1f2;color:#b91c1c}
.abl-status.is-released{border:1px solid #d9e1e7;background:#f3f6f8;color:#64748b}
.abl-badges{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.abl-badge{
  display:inline-flex;align-items:center;gap:3px;min-height:22px;border-radius:999px;padding:2px 7px;font-size:9px;font-weight:800;
}
.abl-badge.is-no-show{border:1px solid #fecaca;background:#fff7f7;color:#b91c1c}
.abl-badge.is-late{border:1px solid #fed7aa;background:#fff9f2;color:#c2410c}
.abl-card-latest{
  display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:5px;margin-top:9px;padding-top:8px;border-top:1px solid #edf2f1;
  color:#64748b;font-size:9px;
}
.abl-card-latest span{color:#94a3b8}
.abl-card-latest strong{color:#3f5058;font-size:9px}
.abl-card-latest time{min-width:0;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.abl-empty{
  display:flex;min-height:150px;align-items:center;justify-content:center;flex-direction:column;gap:4px;padding:20px;text-align:center;
  color:#718489;background:#fff;border:1px dashed #dbe6e3;border-radius:12px;
}
.abl-empty strong{font-size:12px;color:#445a61}.abl-empty span{font-size:10px}

.abl-detail{min-width:0;min-height:0;overflow:auto;background:#fff}
.abl-detail-content{min-height:100%;padding:16px 18px 18px}
.abl-detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:14px;border-bottom:1px solid #e8efed}
.abl-detail-title-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.abl-detail-title-row h3{margin:0;color:#17324d;font-size:20px;line-height:1.25;font-weight:900;word-break:break-word}
.abl-detail-header p{margin:5px 0 0;color:#718489;font-size:10px;line-height:1.5}
.abl-detail-back{
  display:none;margin:0 0 10px;border:1px solid #d7e3e1;border-radius:9px;padding:7px 10px;background:#fff;color:#52666c;font-family:inherit;font-size:10px;font-weight:800;
}
.abl-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0}
.abl-summary-grid>div{min-width:0;border:1px solid #e5edeb;border-radius:11px;padding:10px;background:#fbfdfd}
.abl-summary-grid span{display:block;color:#718489;font-size:9px;line-height:1.35}
.abl-summary-grid strong{display:block;margin-top:4px;color:#273a43;font-size:12px;line-height:1.3;word-break:break-word}
.abl-summary-grid strong.is-no-show{color:#b91c1c}.abl-summary-grid strong.is-late{color:#c2410c}
.abl-release-note{margin:0 0 14px;border:1px solid #dbe5e9;border-radius:10px;padding:9px 10px;background:#f8fafc}
.abl-release-note strong{font-size:10px;color:#475569}.abl-release-note span{margin-left:7px;font-size:9px;color:#94a3b8}
.abl-release-note p{margin:5px 0 0;color:#64748b;font-size:10px}
.abl-detail-section{margin-top:6px}
.abl-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:8px}
.abl-section-head h4{margin:0;color:#273a43;font-size:12px;font-weight:900}.abl-section-head p{margin:2px 0 0;color:#94a3b8;font-size:9px}
.abl-section-head>span{border-radius:999px;padding:3px 7px;background:#f1f5f4;color:#60757b;font-size:9px;font-weight:800}
.abl-timeline{position:relative}
.abl-timeline-item{position:relative;display:grid;grid-template-columns:18px minmax(0,1fr);gap:8px;padding:0 0 10px}
.abl-timeline-item:before{content:"";position:absolute;left:8px;top:13px;bottom:-1px;width:1px;background:#e3ebe9}
.abl-timeline-item:last-child:before{display:none}
.abl-timeline-marker{position:relative;z-index:1;width:9px;height:9px;margin:5px 0 0 4px;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px currentColor;background:currentColor}
.abl-timeline-marker.is-no-show{color:#ef4444}.abl-timeline-marker.is-late{color:#f59e0b}
.abl-timeline-body{min-width:0;border:1px solid #e6edeb;border-radius:10px;padding:9px 10px;background:#fff}
.abl-timeline-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.abl-timeline-head strong{color:#31464e;font-size:10px}.abl-timeline-head time{color:#718489;font-size:9px;white-space:nowrap}
.abl-timeline-meta,.abl-timeline-note,.abl-timeline-source,.abl-timeline-void{margin-top:4px;font-size:9px;line-height:1.45}
.abl-timeline-meta{color:#52666c}.abl-timeline-note{color:#334155}.abl-timeline-source{color:#94a3b8}.abl-timeline-void{color:#9a6b6b}
.abl-timeline-item.is-void{opacity:.55}
.abl-show-more{
  width:100%;min-height:34px;border:1px solid #d9e5e2;border-radius:9px;background:#f8fbfa;color:#0f766e;font-family:inherit;font-size:10px;font-weight:900;cursor:pointer;
}
.abl-show-more:hover{background:#f0faf7}
.abl-detail-actions{
  display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding-top:13px;border-top:1px solid #e7eeec;
}
.abl-detail-actions>div strong{display:block;color:#3c5158;font-size:10px}.abl-detail-actions>div span{display:block;margin-top:2px;color:#94a3b8;font-size:9px}
.abl-detail-actions button{
  min-height:36px;border-radius:9px;padding:7px 11px;background:#fff;font-family:inherit;font-size:10px;font-weight:900;cursor:pointer;
}
.abl-detail-actions button.is-danger{border:1px solid #fecaca;color:#b91c1c}.abl-detail-actions button.is-danger:hover{background:#fff5f5}
.abl-detail-actions button.is-reactivate{border:1px solid #9edfd7;color:#007d72}.abl-detail-actions button.is-reactivate:hover{background:#f1fffc}
.abl-detail-empty,.abl-detail-loading{
  display:flex;min-height:100%;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:28px;text-align:center;color:#718489;
}
.abl-detail-empty strong,.abl-detail-loading strong{color:#445a61;font-size:12px}.abl-detail-empty span{font-size:10px;line-height:1.45}
.abl-detail-empty button{margin-top:5px;border:1px solid #d5e1df;border-radius:8px;padding:6px 9px;background:#fff;color:#0f766e;font-family:inherit;font-weight:800}
.abl-detail-empty.is-compact{min-height:100px;border:1px dashed #dbe6e3;border-radius:10px}
.abl-detail-loading span{width:22px;height:22px;border:3px solid #d7e6e2;border-top-color:#00a997;border-radius:50%;animation:abl-spin .7s linear infinite}
@keyframes abl-spin{to{transform:rotate(360deg)}}

.abl-list::-webkit-scrollbar,.abl-detail::-webkit-scrollbar{width:8px}
.abl-list::-webkit-scrollbar-thumb,.abl-detail::-webkit-scrollbar-thumb{background:#c9d8d5;border:2px solid transparent;border-radius:999px;background-clip:padding-box}

@media(max-width:920px){
  .appointment-blacklist-modal-v2{padding:18px 16px 14px!important}
  .appointment-blacklist-title-v2{font-size:22px!important}
  .abl-workspace{grid-template-columns:minmax(285px,42%) minmax(0,58%)}
  .abl-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:820px){
  .appointment-blacklist-modal-v2{width:min(760px,calc(100vw - 16px))!important}
  .abl-workspace{display:block;height:min(650px,70vh)}
  .abl-list-pane{height:100%;border-right:0}
  .abl-detail{display:none;height:100%}
  .abl-shell.is-detail-open .abl-list-pane{display:none}
  .abl-shell.is-detail-open .abl-detail{display:block}
  .abl-detail-back{display:inline-flex}
}
@media(max-width:560px){
  .appointment-blacklist-modal-v2{padding:16px 10px 10px!important;border-radius:14px!important}
  .appointment-blacklist-title-v2{padding:0 38px!important;font-size:20px!important}
  .abl-toolbar{padding:9px}
  .abl-search-row{grid-template-columns:1fr}
  .abl-toolbar-row{align-items:stretch;flex-direction:column}
  .abl-status-select{width:100%}
  .abl-workspace{height:68vh}
  .abl-card{padding:10px}
  .abl-detail-content{padding:13px}
  .abl-detail-title-row h3{font-size:17px}
  .abl-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .abl-detail-actions{align-items:stretch;flex-direction:column}
  .abl-detail-actions button{width:100%}
  .appointment-blacklist-card-badge{font-size:7px}
  .finance-blacklist-badge{margin-left:5px;font-size:8px}
}


/* R86 — time range + simplified sorting controls */
.abl-search-row{display:block}
.abl-control-row{
  display:grid;
  grid-template-columns:minmax(220px,1fr) minmax(220px,1fr);
  gap:10px;
  margin-top:10px;
}
.abl-control{display:block;min-width:0}
.abl-control>span{
  display:block;
  margin:0 0 5px;
  color:#334155;
  font-size:11px;
  font-weight:900;
}
.abl-control .abl-select{
  width:100%;
  min-height:44px;
  font-size:13px;
  font-weight:800;
}
.abl-custom-range{
  display:flex;
  align-items:flex-end;
  gap:8px;
  margin-top:9px;
  padding:10px;
  border:1px solid #d9e6e3;
  border-radius:11px;
  background:#fff;
}
.abl-custom-range[hidden]{display:none!important}
.abl-custom-range label{display:block;flex:1;min-width:0}
.abl-custom-range label>span{
  display:block;
  margin-bottom:4px;
  color:#64748b;
  font-size:9px;
  font-weight:800;
}
.abl-custom-range input{
  width:100%;
  min-height:38px;
  border:1px solid #d7e3e1;
  border-radius:9px;
  padding:7px 9px;
  background:#fff;
  color:#334155;
  font-family:inherit;
  font-size:11px;
  font-weight:700;
  outline:none;
}
.abl-custom-range input:focus{border-color:#00a997;box-shadow:0 0 0 3px rgba(0,169,151,.10)}
.abl-range-separator{padding:0 2px 10px;color:#94a3b8;font-size:10px;font-weight:800}
.abl-filter-divider{width:1px;height:25px;background:#dbe6e3;margin:3px 2px}
.abl-list-loading{
  display:flex;
  min-height:160px;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:7px;
  color:#64748b;
}
.abl-list-loading span{
  width:22px;height:22px;border:3px solid #d7e6e2;border-top-color:#00a997;border-radius:50%;
  animation:abl-spin .7s linear infinite;
}
.abl-list-loading strong{font-size:11px;color:#445a61}
@media(max-width:820px){
  .abl-control-row{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
  .abl-control-row{grid-template-columns:1fr}
  .abl-custom-range{align-items:stretch;flex-direction:column}
  .abl-range-separator{display:none}
  .abl-filter-divider{display:none}
}


/* R87 — list-first workspace, larger type, stronger SOAH CI, reliable wheel scrolling */
.appointment-blacklist-modal-v2{
  width:min(1180px,calc(100vw - 20px))!important;
  max-width:1180px!important;
  padding:22px 22px 18px!important;
  border-top:5px solid #00A997!important;
  box-shadow:0 24px 70px rgba(15,23,42,.22)!important;
}
.appointment-blacklist-title-v2{
  margin:0 0 14px!important;
  color:#183b3a!important;
  font-size:28px!important;
  letter-spacing:-.2px;
}
.appointment-blacklist-html-v2{overflow:hidden!important}

.abl-shell{font-size:13px;color:#274248}
.abl-icon{width:16px;height:16px;display:inline-block;vertical-align:-3px;flex:none}
.abl-toolbar{
  margin-bottom:12px;
  padding:13px 14px 11px;
  border:1px solid #d8e8e5;
  border-radius:16px;
  background:linear-gradient(180deg,#fbfffe 0%,#f5fbfa 100%);
  box-shadow:0 4px 14px rgba(0,169,151,.05);
}
.abl-primary-tools{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(190px,260px);
  gap:10px;
  align-items:end;
}
.abl-search-wrap{position:relative;display:block}
.abl-search-wrap>.abl-icon{
  position:absolute;left:13px;top:50%;transform:translateY(-50%);
  width:18px;height:18px;color:#00A997;pointer-events:none;
}
.abl-search{
  min-height:48px!important;
  padding:10px 14px 10px 42px!important;
  border-radius:12px!important;
  font-size:14px!important;
  font-weight:700!important;
}
.abl-search::placeholder{color:#91a5a4}
.abl-period-control>span{
  display:flex!important;align-items:center;gap:6px;
  margin-bottom:5px!important;color:#28514f!important;
  font-size:12px!important;font-weight:900!important;
}
.abl-period-control>span .abl-icon{color:#00A997}
.abl-period-control .abl-select{
  min-height:48px!important;
  border:1px solid #cfe2df!important;
  border-radius:12px!important;
  font-size:14px!important;
  font-weight:900!important;
  color:#244b49!important;
}
.abl-toolbar-row{margin-top:10px}
.abl-filters{gap:7px}
.abl-filters button{
  display:inline-flex;align-items:center;gap:5px;
  min-height:36px;padding:6px 11px;
  border-color:#d9e4e3;border-radius:999px;
  font-size:11px;font-weight:900;
}
.abl-filters button .abl-icon{width:14px;height:14px}
.abl-filters button.is-active{
  border-color:#00A997;
  background:#eafffb;
  color:#007b72;
  box-shadow:0 0 0 2px rgba(0,169,151,.06);
}
.abl-filter-divider{height:28px;background:#d7e4e2}

.abl-workspace{
  display:block;
  height:min(620px,68vh);
  border:1px solid #dbe7e5;
  border-radius:18px;
  overflow:hidden;
  background:#f6faf9;
}
.abl-list-pane{
  height:100%;
  border-right:0;
  background:#f6faf9;
}
.abl-detail{display:none}
.abl-shell.has-selection .abl-workspace{
  display:grid;
  grid-template-columns:minmax(360px,42%) minmax(0,58%);
}
.abl-shell.has-selection .abl-list-pane{border-right:1px solid #dfe9e7}
.abl-shell.has-selection .abl-detail{display:block}

.abl-list-head{
  padding:13px 15px;
  background:#fff;
  border-bottom:1px solid #e0eae8;
}
.abl-list-head strong{font-size:14px;color:#193f3d}
.abl-list-head span{font-size:11px;color:#718985}
.abl-list{
  padding:10px;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
  touch-action:pan-y;
  scrollbar-gutter:stable;
}
.abl-detail{
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
  touch-action:pan-y;
  scrollbar-gutter:stable;
  background:#fff;
}
.abl-card{
  margin-bottom:9px;
  padding:14px 15px;
  border:1px solid #dfe8e6;
  border-left:4px solid transparent;
  border-radius:14px;
  box-shadow:0 3px 10px rgba(25,63,61,.035);
}
.abl-card:hover{
  border-color:#a9d9d3;
  box-shadow:0 7px 20px rgba(0,169,151,.10);
}
.abl-card.is-selected{
  border-color:#65cfc3;
  border-left-color:#00A997;
  background:#effdfa;
  box-shadow:0 0 0 2px rgba(0,169,151,.09),0 8px 22px rgba(0,169,151,.08);
}
.abl-card-name{font-size:16px;line-height:1.35;color:#143c3a}
.abl-card-meta{
  display:flex;flex-wrap:wrap;gap:6px 12px;
  margin-top:6px;color:#617875;font-size:11px;line-height:1.5;
  white-space:normal;
}
.abl-card-meta span{display:inline-flex;align-items:center;gap:4px}
.abl-card-meta .abl-icon{width:13px;height:13px;color:#7a9692}
.abl-status{
  gap:4px;min-height:27px;padding:4px 8px;
  font-size:10px;
}
.abl-status .abl-icon{width:13px;height:13px}
.abl-badges{gap:6px;margin-top:10px}
.abl-badge{
  min-height:27px;padding:4px 8px;gap:5px;
  font-size:11px;font-weight:900;
}
.abl-badge .abl-icon{width:13px;height:13px}
.abl-card-latest{
  grid-template-columns:auto auto auto minmax(0,1fr);
  gap:6px;margin-top:11px;padding-top:10px;
  font-size:11px;
}
.abl-card-latest>.abl-icon{width:14px;height:14px;color:#00A997}
.abl-card-latest strong{font-size:11px;color:#314c49}
.abl-card-latest time{font-size:11px}

.abl-detail-content{padding:20px 22px 22px}
.abl-detail-title-row{gap:10px}
.abl-detail-title-row h3{font-size:24px;color:#133d3a}
.abl-detail-header p{margin-top:7px;font-size:12px;color:#617875}
.abl-summary-grid{gap:10px;margin:16px 0}
.abl-summary-grid>div{
  position:relative;
  min-height:88px;
  padding:13px 12px;
  border-color:#dfeae8;
  border-radius:13px;
  background:#fbfefd;
}
.abl-summary-grid>div>.abl-icon{
  position:absolute;right:11px;top:11px;
  width:18px;height:18px;color:#00A997;opacity:.85;
}
.abl-summary-grid span{font-size:11px;color:#6b817e}
.abl-summary-grid strong{margin-top:8px;font-size:17px;color:#183d3a}
.abl-section-head h4{
  display:flex;align-items:center;gap:7px;
  font-size:14px;color:#1c4542;
}
.abl-section-head h4 .abl-icon{color:#00A997}
.abl-section-head>span{font-size:10px;padding:4px 8px}
.abl-timeline-item{grid-template-columns:20px minmax(0,1fr);gap:9px;padding-bottom:11px}
.abl-timeline-body{padding:11px 12px;border-radius:12px}
.abl-timeline-head strong{font-size:12px}
.abl-timeline-head time{font-size:11px}
.abl-timeline-meta,.abl-timeline-source,.abl-timeline-void{font-size:10.5px}
.abl-timeline-note{font-size:12px}
.abl-show-more{min-height:38px;font-size:11px}
.abl-detail-actions>div strong{font-size:12px}
.abl-detail-actions>div span{font-size:10px}
.abl-detail-actions button{min-height:40px;font-size:11px}

.abl-detail-empty>.abl-icon{
  width:42px;height:42px;color:#80cfc6;
  margin-bottom:6px;
}
.abl-detail-empty strong{font-size:15px;color:#315a57}
.abl-detail-empty span{font-size:11px}

.abl-custom-range{margin-top:10px}
.abl-list-loading strong{font-size:12px}

@media(max-width:920px){
  .abl-primary-tools{grid-template-columns:minmax(0,1fr) minmax(180px,230px)}
  .abl-shell.has-selection .abl-workspace{grid-template-columns:minmax(320px,44%) minmax(0,56%)}
}
@media(max-width:820px){
  .abl-primary-tools{grid-template-columns:1fr}
  .abl-workspace{display:block;height:min(650px,70vh)}
  .abl-shell.has-selection .abl-workspace{display:block}
  .abl-shell.has-selection .abl-list-pane{display:none}
  .abl-shell.has-selection .abl-detail{display:block;height:100%}
  .abl-detail-back{display:inline-flex}
}
@media(max-width:560px){
  .appointment-blacklist-title-v2{font-size:23px!important}
  .abl-card-name{font-size:15px}
  .abl-card-meta{font-size:11px}
  .abl-filters button{font-size:10px;padding:5px 8px}
  .abl-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* R88 — non-modal detail drawer. List remains full-width and scrollable. */
.abl-workspace{
  position:relative!important;
  display:block!important;
}
.abl-shell.has-selection .abl-workspace{
  display:block!important;
}
.abl-list-pane,
.abl-shell.has-selection .abl-list-pane{
  display:flex!important;
  width:100%!important;
  height:100%!important;
  border-right:0!important;
}
.abl-detail{
  display:block!important;
  position:absolute!important;
  top:0!important;
  right:0!important;
  bottom:0!important;
  width:min(580px,48%)!important;
  height:auto!important;
  border-left:1px solid #d8e6e3!important;
  border-radius:0 0 0 16px;
  background:#fff!important;
  box-shadow:-18px 0 38px rgba(15,23,42,.14);
  transform:translateX(calc(100% + 24px));
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:transform .22s ease,opacity .18s ease,visibility .18s;
  z-index:20;
}
.abl-shell.has-selection .abl-detail,
.abl-shell.is-detail-open .abl-detail{
  transform:translateX(0);
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.abl-detail-content{padding:0!important;min-height:100%}
.abl-detail-sticky{
  position:sticky;
  top:0;
  z-index:5;
  padding:12px 18px 12px;
  border-bottom:1px solid #e3ecea;
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(8px);
}
.abl-detail-topbar{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-height:34px;
  margin-bottom:6px;
}
.abl-detail-close,
.abl-detail-back{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:34px;
  border:1px solid #d8e5e2;
  border-radius:10px;
  background:#fff;
  color:#46615e;
  font-family:inherit;
  font-size:11px;
  font-weight:900;
  cursor:pointer;
}
.abl-detail-close{
  width:36px;
  padding:0;
  margin-left:auto;
}
.abl-detail-close .abl-icon{width:18px;height:18px}
.abl-detail-close:hover,
.abl-detail-back:hover{
  border-color:#9fd8d0;
  background:#f0fffc;
  color:#007d72;
}
.abl-detail-close.is-loading{
  position:absolute;
  top:12px;
  right:14px;
  z-index:8;
}
.abl-detail-back{display:none;padding:6px 10px}
.abl-detail-header{
  padding:0!important;
  border-bottom:0!important;
}
.abl-detail-body{
  padding:16px 20px 22px;
}
.abl-detail-title-row h3{
  max-width:420px;
}
.abl-list{
  position:relative;
  z-index:1;
}
.abl-shell.has-selection .abl-list{
  padding-right:10px!important;
}
.abl-card{
  position:relative;
  z-index:1;
}
.abl-card.is-selected{
  z-index:2;
}
@media(max-width:920px){
  .abl-detail{width:min(540px,54%)!important}
}
@media(max-width:820px){
  .abl-detail{
    width:100%!important;
    border-left:0!important;
    border-radius:0!important;
    box-shadow:none;
  }
  .abl-shell.has-selection .abl-list-pane{display:flex!important}
  .abl-detail-back{display:inline-flex}
  .abl-detail-topbar{justify-content:space-between}
}


/* R89 — focused patient popup. Keeps approved list screen unchanged. */
.abl-shell{position:relative}
.abl-person-overlay[hidden]{display:none!important}
.abl-person-overlay{
  position:absolute;
  inset:0;
  z-index:60;
  display:grid;
  place-items:center;
  padding:14px;
  background:rgba(15,23,42,.22);
  backdrop-filter:blur(2px);
}
.abl-person-popup{
  position:relative;
  display:flex;
  flex-direction:column;
  width:min(980px,calc(100% - 20px));
  max-height:calc(100% - 16px);
  overflow:hidden;
  border:1px solid #cfe4e0;
  border-top:5px solid #00A997;
  border-radius:20px;
  background:#fff;
  box-shadow:0 24px 70px rgba(15,23,42,.24);
}
.abl-person-popup.is-loading{min-height:380px}
.abl-popup-close{
  position:absolute;
  top:14px;
  right:14px;
  z-index:8;
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border:1px solid #d9e6e3;
  border-radius:12px;
  background:#fff;
  color:#526b67;
  cursor:pointer;
}
.abl-popup-close:hover{border-color:#92d6ce;background:#f2fffc;color:#007d72}
.abl-popup-close .abl-icon{width:20px;height:20px}
.abl-popup-header{
  flex:none;
  padding:18px 62px 16px 20px;
  border-bottom:1px solid #e3ecea;
  background:linear-gradient(180deg,#fbfffe 0%,#f6fbfa 100%);
}
.abl-popup-identity{
  display:grid;
  grid-template-columns:132px minmax(0,1fr) auto;
  gap:18px;
  align-items:start;
}
.abl-popup-photo{
  width:132px;
  min-width:132px;
}
.abl-popup-photo>img,
.abl-popup-photo-fallback{
  width:132px;
  height:154px;
  border:1px solid #d8e6e3;
  border-radius:16px;
  background:#eef9f7;
  object-fit:cover;
}
.abl-popup-photo-fallback{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:#5d7b77;
}
.abl-popup-photo-fallback .abl-icon{width:36px;height:36px;color:#00A997}
.abl-popup-photo-fallback span{font-size:10px;font-weight:800}
.abl-popup-photo>small{
  display:block;
  margin-top:5px;
  color:#839794;
  font-size:9px;
  text-align:center;
}
.abl-popup-person{min-width:0}
.abl-popup-name-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  justify-content:space-between;
}
.abl-popup-eyebrow{
  display:block;
  margin-bottom:4px;
  color:#00A997;
  font-size:10px;
  font-weight:900;
  letter-spacing:.2px;
}
.abl-popup-name-row h3{
  margin:0;
  color:#173f3c;
  font-size:26px;
  line-height:1.25;
  font-weight:900;
  word-break:break-word;
}
.abl-popup-name-row .abl-status{margin-top:2px}
.abl-popup-fields{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px 10px;
  margin-top:14px;
}
.abl-popup-field{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  padding:9px 10px;
  border:1px solid #dfeae8;
  border-radius:11px;
  background:#fff;
}
.abl-popup-field>.abl-icon{width:16px;height:16px;color:#00A997}
.abl-popup-field>div{min-width:0}
.abl-popup-field span{
  display:block;
  color:#7a8f8c;
  font-size:9px;
  font-weight:800;
}
.abl-popup-field strong{
  display:block;
  margin-top:2px;
  overflow:hidden;
  color:#284946;
  font-size:12px;
  font-weight:900;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.abl-popup-action-wrap{
  min-width:164px;
  padding-top:30px;
}
.abl-popup-primary-action{
  width:100%;
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border-radius:12px;
  padding:9px 14px;
  font-family:inherit;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}
.abl-popup-primary-action .abl-icon{width:17px;height:17px}
.abl-popup-primary-action.is-release{
  border:1px solid #ef4444;
  background:#fff1f2;
  color:#b91c1c;
}
.abl-popup-primary-action.is-release:hover{background:#fee2e2}
.abl-popup-primary-action.is-reactivate{
  border:1px solid #00A997;
  background:#eafffb;
  color:#007b72;
}
.abl-popup-primary-action.is-reactivate:hover{background:#d7fff8}
.abl-popup-confirm{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(180px,260px) auto;
  gap:10px;
  align-items:center;
  margin-top:12px;
  padding:10px 12px;
  border:1px solid #fecaca;
  border-radius:12px;
  background:#fff7f7;
}
.abl-popup-confirm[hidden]{display:none!important}
.abl-popup-confirm>div:first-child strong{
  display:block;
  color:#991b1b;
  font-size:11px;
}
.abl-popup-confirm>div:first-child span{
  display:block;
  margin-top:2px;
  color:#7f1d1d;
  font-size:9px;
}
.abl-popup-confirm input{
  min-height:36px;
  border:1px solid #f1c8c8;
  border-radius:9px;
  padding:7px 9px;
  font-family:inherit;
  font-size:10px;
  outline:none;
}
.abl-popup-confirm input:focus{border-color:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.08)}
.abl-popup-confirm-actions{display:flex;gap:6px}
.abl-popup-confirm-actions button{
  min-height:36px;
  border:1px solid #d9e4e2;
  border-radius:9px;
  padding:6px 10px;
  background:#fff;
  color:#4b625f;
  font-family:inherit;
  font-size:10px;
  font-weight:900;
  cursor:pointer;
}
.abl-popup-confirm-actions button.is-confirm{border-color:#ef4444;background:#dc2626;color:#fff}
.abl-popup-confirm-actions button:disabled{opacity:.55;cursor:wait}
.abl-popup-scroll{
  flex:1;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  padding:16px 20px 22px;
  overscroll-behavior:contain;
  touch-action:pan-y;
}
.abl-popup-kpi{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.abl-popup-kpi>div{
  position:relative;
  min-height:88px;
  padding:13px 12px;
  border:1px solid #dfeae8;
  border-radius:13px;
  background:#fbfefd;
}
.abl-popup-kpi>div>.abl-icon{
  position:absolute;
  top:12px;
  right:12px;
  width:18px;
  height:18px;
  color:#00A997;
}
.abl-popup-kpi span{
  display:block;
  color:#718783;
  font-size:10px;
  font-weight:800;
}
.abl-popup-kpi strong{
  display:block;
  margin-top:10px;
  color:#173f3c;
  font-size:18px;
  line-height:1.2;
}
.abl-popup-kpi>div.is-danger strong{color:#dc2626}
.abl-popup-kpi>div.is-danger>.abl-icon{color:#ef4444}
.abl-popup-kpi>div.is-late strong{color:#c2410c}
.abl-popup-kpi>div.is-late>.abl-icon{color:#f59e0b}
.abl-popup-history{margin-top:16px}
.abl-popup-section-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.abl-popup-section-title>div{display:flex;align-items:center;gap:7px}
.abl-popup-section-title .abl-icon{width:18px;height:18px;color:#00A997}
.abl-popup-section-title h4{margin:0;color:#214946;font-size:15px;font-weight:900}
.abl-popup-section-title>span{
  border-radius:999px;
  padding:4px 8px;
  background:#eff5f4;
  color:#607672;
  font-size:10px;
  font-weight:800;
}
.abl-person-popup .abl-timeline-body{padding:12px 13px}
.abl-person-popup .abl-timeline-head strong{font-size:12px}
.abl-person-popup .abl-timeline-head time{font-size:11px}
.abl-person-popup .abl-timeline-meta,
.abl-person-popup .abl-timeline-source{font-size:10.5px}
.abl-person-popup .abl-timeline-note{font-size:12px}
.abl-person-popup .abl-show-more{margin-top:4px}
@media(max-width:900px){
  .abl-person-popup{width:min(760px,calc(100% - 12px))}
  .abl-popup-identity{grid-template-columns:110px minmax(0,1fr)}
  .abl-popup-photo{width:110px;min-width:110px}
  .abl-popup-photo>img,.abl-popup-photo-fallback{width:110px;height:132px}
  .abl-popup-action-wrap{grid-column:1/-1;padding-top:0}
  .abl-popup-primary-action{width:auto;min-width:180px}
}
@media(max-width:640px){
  .abl-person-overlay{padding:6px}
  .abl-person-popup{width:100%;max-height:100%;border-radius:14px}
  .abl-popup-header{padding:14px 52px 12px 14px}
  .abl-popup-identity{grid-template-columns:88px minmax(0,1fr);gap:12px}
  .abl-popup-photo{width:88px;min-width:88px}
  .abl-popup-photo>img,.abl-popup-photo-fallback{width:88px;height:108px;border-radius:12px}
  .abl-popup-name-row{display:block}
  .abl-popup-name-row h3{font-size:20px}
  .abl-popup-name-row .abl-status{margin-top:7px}
  .abl-popup-fields{grid-template-columns:1fr}
  .abl-popup-action-wrap{grid-column:1/-1}
  .abl-popup-primary-action{width:100%}
  .abl-popup-confirm{grid-template-columns:1fr}
  .abl-popup-confirm-actions{justify-content:flex-end}
  .abl-popup-scroll{padding:12px 14px 18px}
  .abl-popup-kpi{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* R90 — compact blacklist shell + focused patient popup sizing */
.appointment-blacklist-modal-v2{
  width:min(980px,calc(100vw - 24px))!important;
  max-width:980px!important;
}
.appointment-blacklist-title-v2{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.abl-title-content{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
}
.abl-title-content>.abl-icon{
  width:24px;
  height:24px;
  color:#00A997;
  stroke-width:2;
}
.abl-person-popup{
  width:min(880px,calc(100% - 20px))!important;
}
.abl-popup-photo>small{
  color:#607d79;
  font-size:10px;
  font-weight:800;
}
@media(max-width:900px){
  .appointment-blacklist-modal-v2{
    width:min(94vw,900px)!important;
    max-width:94vw!important;
  }
  .abl-person-popup{width:min(820px,calc(100% - 12px))!important}
}
@media(max-width:640px){
  .appointment-blacklist-modal-v2{
    width:calc(100vw - 12px)!important;
    max-width:calc(100vw - 12px)!important;
  }
  .abl-person-popup{width:100%!important}
}


/* R91 — patient portrait in blacklist cards */
.abl-card-main{
  display:grid;
  grid-template-columns:60px minmax(0,1fr);
  gap:12px;
  align-items:start;
}
.abl-card-body{min-width:0}
.abl-card-photo{
  position:relative;
  width:60px;
  height:72px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #d6e8e4;
  border-radius:12px;
  background:linear-gradient(180deg,#effaf8 0%,#e7f6f3 100%);
  color:#00A997;
  box-shadow:0 2px 7px rgba(0,169,151,.08);
}
.abl-card-photo>img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.abl-card-photo>img[hidden]{display:none!important}
.abl-card-photo-fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
}
.abl-card-photo-fallback[hidden]{display:none!important}
.abl-card-photo-fallback .abl-icon{
  width:28px;
  height:28px;
  color:#63bfb5;
  stroke-width:1.6;
}
.abl-card-photo.has-photo{
  border-color:#b9dcd7;
  background:#fff;
}
.abl-card-photo.no-photo{
  background:linear-gradient(180deg,#f4fbfa 0%,#edf8f6 100%);
}
@media(max-width:640px){
  .abl-card-main{
    grid-template-columns:52px minmax(0,1fr);
    gap:10px;
  }
  .abl-card-photo{
    width:52px;
    height:64px;
    border-radius:10px;
  }
  .abl-card-photo-fallback .abl-icon{
    width:24px;
    height:24px;
  }
}
