/* TIM HEBAT REV648 - compact, high-contrast shift roster. Cosmetic only.
   Scoped to the shift setup screen. No edits to React handlers or persisted data. */
.shift-setup-screen .shift-template-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 9px !important;
  width: 100%;
}
.shift-setup-screen .shift-template-card {
  display: grid !important;
  grid-template-columns: minmax(135px,1.05fr) minmax(165px,1.06fr) minmax(264px,1.95fr) minmax(105px,.8fr) auto;
  grid-template-rows: auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 5px;
  padding: 11px 13px !important;
  min-height: 82px;
  width: 100%;
  border: 1px solid #cfd9e6 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 2px 9px rgba(13, 30, 55, .045) !important;
  overflow: visible;
}
.shift-setup-screen .shift-template-card.is-effective::before {
  width: 4px;
  border-radius: 14px 0 0 14px;
  background: #1c7860;
}
.shift-setup-screen .shift-template-card__top {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  column-gap: 8px;
  row-gap: 5px;
}
.shift-setup-screen .shift-template-card__top > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: 4px;
}
.shift-setup-screen .shift-code {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid #cedbef;
  border-radius: 6px;
  background: #eef4ff;
  color: #173e75;
  font-size: 11.5px;
  line-height: 1.2;
  font-weight: 850;
}
.shift-setup-screen .shift-template-card h3 {
  font-size: 14px !important;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: #12243e !important;
  margin: 0 !important;
  overflow-wrap: anywhere;
}
.shift-setup-screen .effective-badge {
  padding: 4px 7px;
  font-size: 11px;
  color: #155d42 !important;
  background: #e8f7ef;
  border-color: #b9e6cc;
  white-space: nowrap;
}
.shift-setup-screen .shift-time-display {
  grid-column: 2;
  grid-row: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  margin: 0 !important;
  border: 1px solid #e2e8f0;
  background: #f7f9fc;
  border-radius: 9px;
}
.shift-setup-screen .shift-time-display > div:not(.shift-time-line) {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.shift-setup-screen .shift-time-display span {
  font-size: 11px !important;
  color: #526176 !important;
  font-weight: 750;
  line-height: 1.1;
}
.shift-setup-screen .shift-time-display strong {
  color: #10243c !important;
  font-size: 17px !important;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}
.shift-setup-screen .shift-time-line {
  height: 2px;
  min-width: 9px;
  max-width: 20px;
  flex: 1;
  background: #9babbf;
}
.shift-setup-screen .shift-time-line::after {
  height: 6px;
  width: 6px;
  background: #51667f;
}
.shift-setup-screen .shift-meta-grid {
  grid-column: 3;
  grid-row: 1;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px !important;
  min-width: 0;
}
.shift-setup-screen .shift-meta-grid span {
  min-width: 0;
  min-height: 47px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5px 7px !important;
  border-radius: 8px;
  background: #f0f4f8 !important;
  color: #40516a !important;
  font-size: 11px !important;
  line-height: 1.2;
  font-weight: 650;
}
.shift-setup-screen .shift-meta-grid strong {
  display: block;
  margin-top: 3px;
  color: #162e4a !important;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.shift-setup-screen .shift-reference-note {
  grid-column: 4;
  grid-row: 1;
  align-self: center;
  margin: 0 !important;
  padding: 0;
  color: #3d4f66 !important;
  font-size: 12px !important;
  line-height: 1.4;
  font-weight: 650;
}
.shift-setup-screen .shift-card-actions {
  grid-column: 5;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin: 0 !important;
  white-space: nowrap;
}
.shift-setup-screen .shift-card-actions .btn {
  min-height: 35px;
  border-radius: 9px;
  padding: 0 8px;
  gap: 5px;
  font-size: 12px !important;
  font-weight: 750;
}
.shift-setup-screen .shift-card-actions .btn--secondary {
  background: #fff;
  color: #163c67;
  border-color: #cad6e7;
}
.shift-setup-screen .shift-card-actions .btn--retire {
  background: #fff7f5;
  color: #9b3030 !important;
  border: 1px solid #f1d2cc;
}
.shift-setup-screen .overnight-note {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: start;
  margin: 0 !important;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 750;
  color: #8a4a13 !important;
}
.shift-setup-screen .shift-template-grid::after {
  content: "PS (Pagi-Siang) adalah shift reguler. PS2 (20:00-22:00), PS3 (19:00-22:00), PS4 (18:00-22:00) adalah preset SPL/lembur, bukan shift reguler.";
  display: block;
  grid-column: 1 / -1;
  border: 1px solid #cddced;
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
  color: #234666;
  background: #f3f8ff;
}
/* Accessible confirmation: replace low-contrast blue banner with white surface. */
.shift-setup-screen .shift-confirm-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 14px;
  align-items: center;
  margin-top: 2px;
  padding: 14px 17px !important;
  min-height: 0;
  border: 1px solid #cddae9 !important;
  border-left: 4px solid #245e92 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 4px 16px rgba(18, 38, 68, .055) !important;
  color: #142b45 !important;
}
.shift-setup-screen .shift-confirm-card__copy {
  gap: 11px;
  align-items: center;
  min-width: 0;
}
.shift-setup-screen .confirm-icon {
  width: 38px;
  height: 38px;
  border: 1px solid #d7e6f5;
  border-radius: 10px;
  background: #edf5fe !important;
  color: #214e7d !important;
}
.shift-setup-screen .shift-confirm-card .eyebrow {
  color: #245a87 !important;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .07em;
}
.shift-setup-screen .shift-confirm-card h2 {
  color: #10243d !important;
  margin: 3px 0 4px !important;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.3;
}
.shift-setup-screen .shift-confirm-card p,
.shift-setup-screen .shift-confirm-card p strong {
  color: #324761 !important;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
}
.shift-setup-screen .shift-confirm-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px;
}
.shift-setup-screen .shift-confirm-actions label {
  min-width: 0;
}
.shift-setup-screen .shift-confirm-actions label > span,
.shift-setup-screen .shift-confirm-actions .field-hint,
.shift-setup-screen .shift-confirm-actions .field-hint--light {
  color: #455d78 !important;
  opacity: 1 !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}
.shift-setup-screen .shift-confirm-actions input[type="date"] {
  min-height: 42px;
  width: 100%;
  background: #fff !important;
  color: #152b45 !important;
  border: 1px solid #adbed1 !important;
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 700;
}
.shift-setup-screen .shift-confirm-actions .btn--primary {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #842c37 !important;
  border-radius: 9px;
  background: #8b303a !important;
  color: #fff !important;
  font-size: 12.5px;
  white-space: nowrap;
}
.shift-setup-screen .shift-confirm-actions .btn--primary:disabled {
  color: #46576b !important;
  background: #e9edf2 !important;
  border-color: #b5bfcb !important;
  opacity: 1;
}
.shift-setup-screen .shift-confirm-actions .btn--primary:hover:not(:disabled) {
  background: #72242e !important;
}
/* The screen caption must remain legible at ordinary browser zoom. */
.shift-setup-screen .page-title p,
.shift-setup-screen .shift-control-card__unit span,
.shift-setup-screen .shift-toolbar label > span,
.shift-setup-screen .setup-status-card > span,
.shift-setup-screen .shift-reference-note {
  color: #40546b !important;
}
.shift-setup-screen .shift-count-badge {
  color: #234365 !important;
  background: #eaf1f8;
  border: 1px solid #cfdcec;
}
@media(max-width: 1230px) {
  .shift-setup-screen .shift-template-card {
    grid-template-columns: minmax(130px, 1.1fr) minmax(160px, 1.05fr) minmax(252px, 1.8fr) auto;
    column-gap: 10px;
  }
  .shift-setup-screen .shift-reference-note {display: none;}
  .shift-setup-screen .shift-card-actions {grid-column: 4;}
}
@media(max-width: 930px) {
  .shift-setup-screen .shift-template-card {
    grid-template-columns: minmax(125px, 1fr) minmax(160px, 1fr) minmax(205px, 1.6fr);
    padding: 10px 12px !important;
  }
  .shift-setup-screen .shift-meta-grid {grid-template-columns: repeat(2, minmax(0,1fr));}
  .shift-setup-screen .shift-meta-grid span {min-height: 32px;}
  .shift-setup-screen .shift-card-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-end;
  }
  .shift-setup-screen .overnight-note {grid-row: 3;}
  .shift-setup-screen .shift-confirm-card {grid-template-columns: 1fr;}
  .shift-setup-screen .shift-confirm-actions {grid-template-columns: minmax(0,1fr) auto;}
}
@media(max-width: 590px) {
  .shift-setup-screen .shift-template-card {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 9px;
    padding: 12px !important;
  }
  .shift-setup-screen .shift-template-card__top {grid-column: 1; grid-row: 1;}
  .shift-setup-screen .shift-time-display {grid-column: 2; grid-row: 1;}
  .shift-setup-screen .shift-meta-grid {grid-column: 1 / -1; grid-row: 2;grid-template-columns:repeat(4,minmax(0,1fr));}
  .shift-setup-screen .shift-card-actions {grid-column: 1 / -1;grid-row: 3;justify-content: flex-start;}
  .shift-setup-screen .overnight-note {grid-row: 4;}
  .shift-setup-screen .shift-template-card h3 {font-size: 13px !important;}
  .shift-setup-screen .shift-meta-grid span {font-size: 10px !important;padding: 5px !important;}
  .shift-setup-screen .shift-meta-grid strong {font-size: 11px;}
  .shift-setup-screen .shift-confirm-actions {grid-template-columns: 1fr;}
  .shift-setup-screen .shift-confirm-actions .btn--primary {width: 100%;}
}
