.hu-sched-wrap{max-width:1100px;margin:0 auto;padding:24px;font-family:inherit}.hu-sched-header{margin:0 auto 18px;text-align:center;display:flex;flex-direction:column;align-items:center}.hu-sched-header-logo{width:min(240px,55vw);height:auto;display:block;margin:0 auto 6px;filter:drop-shadow(0 10px 24px rgba(0,0,0,.10))}.hu-sched-header h2,.hu-sched-title{margin:0 0 8px;font-size:42px;line-height:1.05;color:#78b800;font-family:"Marker Felt","Segoe Print","Bradley Hand","Brush Script MT",cursive;font-weight:700;letter-spacing:.5px;text-align:center;text-shadow:0 2px 0 rgba(255,255,255,.75),0 10px 18px rgba(120,184,0,.12)}.hu-sched-header p{margin:0;color:#5a5f67;text-align:center;max-width:680px}.hu-sched-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.hu-tab-btn{border:none;background:#e8edf1;color:#12222b;padding:12px 18px;border-radius:999px;font-weight:700;cursor:pointer}.hu-tab-btn.is-active{background:#0e5b43;color:#fff}.hu-tab-panel{display:none}.hu-tab-panel.is-active{display:block}.hu-sched-card{background:#fff;border:1px solid #e6ebef;border-radius:20px;padding:22px;box-shadow:0 12px 28px rgba(16,24,40,.06);margin-bottom:20px}.hu-grid,.hu-availability-grid{display:grid;gap:16px}.hu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hu-availability-grid{grid-template-columns:repeat(2,minmax(0,1fr))}label{display:block;font-weight:700;margin-bottom:6px}input[type="text"],input[type="date"],select,textarea{width:100%;border:1px solid #ccd6dd;border-radius:14px;padding:12px 14px;font-size:15px;background:#fff}textarea{resize:vertical}.hu-btn{display:inline-block;border:none;background:#0e5b43;color:#fff;padding:13px 18px;border-radius:14px;font-weight:700;cursor:pointer;margin-top:8px}.hu-table-wrap{overflow:auto}.hu-table{width:100%;border-collapse:collapse}.hu-table th,.hu-table td{padding:12px 10px;border-bottom:1px solid #edf1f4;text-align:left;vertical-align:top}.hu-status{display:inline-block;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:700}.hu-status-pending{background:#fff3cd;color:#7a5b00}.hu-status-approved{background:#d1f4df;color:#0b5a2a}.hu-status-denied{background:#fde1e1;color:#8b1c1c}.hu-sched-notice{background:#ecfdf3;border:1px solid #c8ead5;color:#0e5b43;border-radius:14px;padding:12px 14px;margin-bottom:16px}.hu-sched-login{padding:20px;border:1px solid #e2e8f0;border-radius:16px;background:#fff}@media(max-width:768px){.hu-grid,.hu-availability-grid{grid-template-columns:1fr}.hu-sched-wrap{padding:16px}.hu-sched-header-logo{width:min(180px,60vw)}.hu-sched-header h2,.hu-sched-title{font-size:30px}}


.hu-cancel-toggle {
  background: #fff;
  border: 1px solid #d14b4b;
  color: #d14b4b;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}

.hu-cancel-row td {
  background: #fff8f8;
}

.hu-cancel-form {
  display: grid;
  gap: 12px;
}

.hu-cancel-summary {
  font-size: 14px;
  color: #222;
}

.hu-cancel-grid {
  display: grid;
  grid-template-columns: minmax(180px, 240px) auto;
  gap: 12px;
  align-items: center;
}

.hu-btn-danger {
  background: #b42318 !important;
}

@media (max-width: 767px) {
  .hu-cancel-grid {
    grid-template-columns: 1fr;
  }
}


#hu_range_end_wrap[hidden]{display:none!important;}


.hu-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:14px}.hu-section-head h3{margin:0 0 4px}.hu-section-head p{margin:0;color:#5a5f67;font-size:14px}.hu-manager-table td,.hu-manager-table th{vertical-align:top}.hu-review-form{display:grid;gap:10px;min-width:240px}.hu-review-note{min-height:86px;border-radius:14px}.hu-decision-actions{display:flex;gap:10px;flex-wrap:wrap}.hu-decision-btn{appearance:none;border:none;border-radius:12px;padding:10px 14px;font-weight:700;cursor:pointer;line-height:1;box-shadow:0 8px 18px rgba(16,24,40,.08)}.hu-decision-approve{background:#0e5b43;color:#fff}.hu-decision-deny{background:#fff1f1;color:#9f1d1d;border:1px solid #efc2c2}.hu-decision-btn:hover{transform:translateY(-1px)}.hu-status-canceled{background:#f1f5f9;color:#475467}@media(max-width:768px){.hu-section-head{align-items:flex-start;flex-direction:column}.hu-review-form{min-width:0}}


.hu-history-filters {
  display:grid;
  grid-template-columns: minmax(180px,220px) minmax(260px,420px);
  gap:14px;
  align-items:end;
  justify-content:start;
  margin:0 0 18px;
}

.hu-history-filter-item {
  display:flex;
  flex-direction:column;
  gap:6px;
}

.hu-history-filter-item label {
  display:block;
  font-weight:700;
  color:#203127;
  line-height:1.2;
  margin:0;
}

.hu-history-filters select {
  width:100%;
  min-width:0;
  height:44px;
  border:1px solid #cfd8d2;
  border-radius:12px;
  padding:0 12px;
  background:#fff;
}

.hu-no-filter-results td {
  text-align:center;
  color:#5b6b63;
}

@media (max-width: 767px) {
  .hu-history-filters {
    grid-template-columns: 1fr;
  }
}


.hu-review-note-error {
  border-color: #d63638 !important;
  box-shadow: 0 0 0 1px rgba(214,54,56,.18) !important;
  background: #fff8f8 !important;
}


.hu-manager-tabs{margin:0 0 16px}.hu-manager-tab-btn{border:none;background:#e8edf1;color:#12222b;padding:12px 18px;border-radius:999px;font-weight:700;cursor:pointer}.hu-manager-tab-btn.is-active{background:#0e5b43;color:#fff}.hu-manager-tab-panel{display:none}.hu-manager-tab-panel.is-active{display:block}
.hu-history-filters{grid-template-columns:minmax(220px,260px) minmax(340px,520px);gap:16px;align-items:end}.hu-history-filter-item label{margin-bottom:0}.hu-history-filters select{height:46px}
@media(max-width:768px){.hu-manager-tabs{display:flex;flex-direction:column}.hu-history-filters{grid-template-columns:1fr}}

.hu-sched-warning{background:#fff8e8;border:1px solid #f0d48a;color:#6b5313;}


.hu-tab-btn,.hu-manager-tab-btn{position:relative;display:inline-flex;align-items:center;gap:8px}.hu-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#d92d20;color:#fff;font-size:11px;font-weight:800;line-height:1;box-shadow:0 2px 8px rgba(217,45,32,.28)}.hu-tab-btn.is-active .hu-badge,.hu-manager-tab-btn.is-active .hu-badge{background:#ff5a4f;color:#fff}@media(max-width:768px){.hu-tab-btn,.hu-manager-tab-btn{justify-content:center}}
.hu-sched-card .hu-grid:first-of-type{grid-template-columns:minmax(0,1.45fr) minmax(240px,1fr)}#hu_window_id{min-height:54px;line-height:1.25;padding:10px 42px 10px 14px;font-size:14px}@media(max-width:900px){.hu-sched-card .hu-grid:first-of-type{grid-template-columns:1fr}#hu_window_id{font-size:15px}}

/* v1.8.4 - give Schedule Period more room and shorten visual crowding */
.hu-grid:first-of-type {
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, .9fr);
  align-items: start;
}
#hu_window_id {
  font-size: 14px;
  padding-right: 34px;
}
@media (max-width: 900px) {
  .hu-grid:first-of-type {
    grid-template-columns: 1fr;
  }
  #hu_window_id {
    font-size: 15px;
  }
}


.hu-success-popup-open{overflow:hidden}
.hu-success-popup-overlay{
  position:fixed;
  inset:0;
  background:rgba(7,14,20,.62);
  z-index:999999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.hu-success-popup{
  position:relative;
  width:min(92vw,560px);
  background:#fff;
  border-radius:28px;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 28px 80px rgba(0,0,0,.34);
  padding:30px 24px 24px;
  text-align:center;
  animation:huPopupIn .24s ease-out;
}
.hu-success-popup-close{
  position:absolute;
  top:12px;
  right:14px;
  border:none;
  background:transparent;
  color:#475467;
  font-size:30px;
  line-height:1;
  cursor:pointer;
}
.hu-success-popup-logo{
  width:min(240px,68%);
  height:auto;
  display:block;
  margin:0 auto 8px;
}
.hu-success-popup-title{
  margin:6px 0 10px;
  color:#78b800;
  font-size:clamp(34px,4.4vw,52px);
  line-height:1.03;
  font-family:"Marker Felt","Segoe Print","Bradley Hand","Brush Script MT",cursive;
  font-weight:700;
  text-align:center;
}
.hu-success-popup-text{
  margin:0 auto 18px;
  max-width:420px;
  color:#475467;
  font-size:18px;
  line-height:1.55;
}
.hu-success-popup-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:140px;
  border:none;
  border-radius:999px;
  background:#0e5b43;
  color:#fff;
  padding:13px 20px;
  font-weight:700;
  cursor:pointer;
}
@keyframes huPopupIn{
  from{opacity:0;transform:translateY(10px) scale(.98)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
@media (max-width:640px){
  .hu-success-popup{padding:24px 18px 18px;border-radius:24px}
  .hu-success-popup-text{font-size:16px}
}


.hu-request-date-count-note{
  margin:8px 0 10px;
  font-size:13px;
  line-height:1.4;
  color:#b42318;
  font-weight:700;
}


/* Center primary and manager tabs */
.hu-sched-tabs,
.hu-manager-tabs{
  display:flex !important;
  flex-wrap:wrap !important;
  justify-content:center !important;
  align-items:center !important;
  gap:10px !important;
}

.hu-tab-btn,
.hu-manager-tab-btn{
  margin:0 !important;
}


.hu-error-popup-title{
  color:#b42318 !important;
  font-family:inherit !important;
  font-size:34px !important;
  font-weight:800 !important;
}


.hu-delete-reviewed-btn{
  border:none;
  border-radius:12px;
  background:#b42318;
  color:#fff;
  padding:8px 12px;
  font-weight:700;
  cursor:pointer;
  line-height:1;
}
.hu-delete-reviewed-btn:hover{
  background:#912018;
}


/* ===== Visual polish v1.8.19 ===== */
.hu-sched-wrap{
  max-width:1120px;
}
.hu-sched-card{
  border-radius:24px !important;
  padding:28px !important;
  box-shadow:0 18px 40px rgba(16,24,40,.08) !important;
  border:1px solid #e8eef2 !important;
}
.hu-form-intro{
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:16px 18px;
  border-radius:18px;
  background:linear-gradient(180deg,#f7fff0,#f4fbf6);
  border:1px solid rgba(120,184,0,.18);
  margin-bottom:18px;
}
.hu-form-intro-icon{
  width:42px;
  height:42px;
  border-radius:14px;
  background:linear-gradient(135deg,#0e5b43,#78b800);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  flex:0 0 42px;
  box-shadow:0 10px 22px rgba(14,91,67,.16);
}
.hu-form-intro h4{
  margin:0 0 4px;
  color:#0e5b43;
  font-size:20px;
  font-weight:800;
}
.hu-form-intro p{
  margin:0;
  color:#667085;
}

.hu-current-availability-card{
  margin:0 0 18px;
  padding:18px;
  border-radius:18px;
  background:linear-gradient(180deg,#ffffff,#f8fcf4);
  border:1px solid rgba(120,184,0,.22);
  box-shadow:0 10px 24px rgba(120,184,0,.08);
}
.hu-current-availability-head{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:10px;
}
.hu-current-availability-icon{
  width:40px;
  height:40px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#eaf7d1;
  font-size:20px;
  flex:0 0 40px;
}
.hu-current-availability-date{
  color:#5b6673;
  margin-top:2px;
}
.hu-current-availability-summary{
  color:#22303a;
  line-height:1.65;
}

.hu-sched-header p{
  font-size:16px !important;
  color:#4b5563 !important;
}
.hu-sched-header::after{
  content:"Plan ahead, keep the team smooth, and make scheduling easier ✨";
  display:block;
  margin-top:8px;
  font-size:14px;
  color:#78b800;
  font-weight:700;
  text-align:center;
}
.hu-sched-card h3{
  color:#0e5b43;
  font-size:26px;
  font-weight:800;
}
.hu-tab-panel{
  animation:huTabFade .22s ease;
}
@keyframes huTabFade{
  from{opacity:0;transform:translateY(6px)}
  to{opacity:1;transform:translateY(0)}
}
label[for="hu_window_id"]::before,
label[for="hu_effective_date"]::before{content:"📅 ";}

label[for="hu_date_id"]::before{content:"🗓️ ";}
label[for="hu_request_type"]::before{content:"⏰ ";}
label[for="hu_availability_notes"]::before,
label[for="hu_request_comment"]::before{content:"📝 ";}
label[for="hu_employee_name"]::before,
label[for="hu_av_employee_name"]::before{content:"👤 ";}
label[for="hu_request_scope"]::before{content:"✨ ";}

.hu-availability-accordion{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.hu-day-card{
  border:1px solid #dde7db;
  background:linear-gradient(180deg,#ffffff,#f9fcf6);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 8px 18px rgba(16,24,40,.05);
}
.hu-day-summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 16px;
  font-weight:800;
  color:#193325;
}
.hu-day-summary::-webkit-details-marker{display:none;}
.hu-day-summary-icon{
  width:34px;height:34px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  background:#eef8dc;
  flex:0 0 34px;
}
.hu-day-summary-text{flex:1;}
.hu-day-summary-hint{
  color:#78b800;
  font-size:12px;
  font-weight:700;
}
.hu-day-card[open] .hu-day-summary{
  background:linear-gradient(180deg,#f5fce8,#ffffff);
  border-bottom:1px solid #ebf2e6;
}
.hu-day-card-body{
  padding:14px 16px 16px;
}
.hu-day-card-body label{
  margin-bottom:8px;
}
.hu-day-card-body select{
  background:#fff;
}
.hu-sched-warning{
  background:linear-gradient(180deg,#fff9e8,#fffef7) !important;
  border-color:#f6d886 !important;
}
.hu-btn{
  background:linear-gradient(135deg,#0e5b43,#78b800) !important;
  border-radius:999px !important;
  box-shadow:0 10px 24px rgba(14,91,67,.20) !important;
}
.hu-btn:hover{
  transform:translateY(-1px);
}
@media (max-width:900px){
  .hu-availability-accordion{
    grid-template-columns:1fr;
  }
}


/* v1.8.21 safe UI cleanup (keeps popup intact) */
.hu-sched-header::after{
  content:none !important;
  display:none !important;
}
.hu-form-intro{
  justify-content:center !important;
  text-align:center !important;
}
.hu-form-intro-icon{
  display:none !important;
}
.hu-form-intro > div{
  width:100% !important;
}
.hu-form-intro h4,
.hu-form-intro p{
  text-align:center !important;
}
