.restore-special-hours-calendar,
.restore-special-hours-shift,
.restore-special-hours-employee {
  box-sizing: border-box;
  display: grid;
  gap: 11px;
  min-width: 0;
  max-width: 100%;
  padding: 13px;
  border: 1px solid rgba(104, 168, 255, 0.3);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(43, 94, 151, 0.16), rgba(224, 183, 86, 0.055)), #0d1015;
}

.restore-admin-special-alert {
  box-sizing: border-box;
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(224, 183, 86, 0.52);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(224, 183, 86, 0.18), rgba(104, 168, 255, 0.1)), #101116;
  box-shadow: 0 0 22px rgba(224, 183, 86, 0.09);
}

.restore-admin-special-alert.current {
  border-color: rgba(104, 221, 172, 0.62);
  background: linear-gradient(145deg, rgba(35, 136, 97, 0.22), rgba(104, 168, 255, 0.08)), #0e1314;
}

.restore-admin-special-alert.error { border-color: rgba(255, 113, 113, 0.55); }

.restore-admin-special-alert h2,
.restore-admin-special-alert strong,
.restore-admin-special-alert p { margin: 0; }

.restore-admin-special-alert h2 {
  color: #f7d77c;
  font-size: 17px;
  line-height: 1.35;
}

.restore-admin-special-alert.current h2 { color: #91efc6; }

.restore-admin-special-alert strong {
  color: #f4f0e7;
  font-size: 14px;
}

.restore-admin-special-alert bdi {
  min-width: 0;
  color: #f5f7fb;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
  overflow-wrap: anywhere;
  unicode-bidi: isolate;
}

.restore-admin-special-alert p {
  color: #c5ceda;
  font-size: 12px;
  line-height: 1.5;
}

.restore-special-hours-list-label {
  margin: 0;
  color: #aab7c8;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
}

.restore-special-hours-next-owner {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(224, 183, 86, 0.38);
  border-radius: 12px;
  background: rgba(224, 183, 86, 0.08);
}

.restore-special-hours-next-owner > span {
  color: #d8bd73;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.restore-special-hours-next-owner strong {
  color: #f2d782;
  font-size: 12px;
}

.restore-special-hours-next-owner bdi {
  min-width: 0;
  color: #f3efe7;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
  unicode-bidi: isolate;
}

body.restore-personal-large-ui .restore-admin-special-alert { padding: 20px; gap: 11px; }
body.restore-personal-large-ui .restore-admin-special-alert h2 { font-size: 24px; }
body.restore-personal-large-ui .restore-admin-special-alert strong,
body.restore-personal-large-ui .restore-admin-special-alert bdi { font-size: 20px; }
body.restore-personal-large-ui .restore-admin-special-alert p { font-size: 17px; }

.restore-special-hours-calendar > div:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.restore-special-hours-calendar h4,
.restore-special-hours-shift h4,
.restore-special-hours-employee h3 {
  margin: 0;
  color: #eef5ff;
  font-size: 14px;
  line-height: 1.45;
}

.restore-special-hours-calendar > div:first-child > span {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid rgba(104, 168, 255, 0.25);
  border-radius: 999px;
  color: #a9cbff;
  font-size: 9px;
  font-weight: 800;
}

.restore-special-hours-status {
  margin: 0;
  color: #b8c6d8;
  font-size: 12px;
  line-height: 1.55;
}

.restore-special-hours-status.error { color: #ffaaa5; }

.restore-special-hours-calendar-list,
.restore-special-hours-periods { display: grid; gap: 7px; }

.restore-special-hours-calendar-list > div,
.restore-special-hours-periods > p,
.restore-special-hours-upcoming {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(104, 168, 255, 0.18);
  border-radius: 12px;
  background: rgba(104, 168, 255, 0.06);
}

.restore-special-hours-calendar-list strong,
.restore-special-hours-periods strong,
.restore-special-hours-upcoming strong {
  color: #bcd8ff;
  font-size: 12px;
}

.restore-special-hours-calendar-list bdi,
.restore-special-hours-periods bdi,
.restore-special-hours-upcoming bdi {
  min-width: 0;
  color: #f3efe7;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
  unicode-bidi: isolate;
}

.restore-special-hours-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.restore-special-hours-actions a,
.restore-special-hours-actions button,
.restore-special-hours-google {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid rgba(104, 168, 255, 0.3);
  border-radius: 12px;
  background: rgba(104, 168, 255, 0.11);
  color: #c9deff;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.restore-special-hours-calendar > small,
.restore-special-hours-shift > small,
.restore-special-hours-employee > small {
  color: #8997a9;
  font-size: 9px;
  line-height: 1.55;
}

.restore-special-hours-calendar > small a,
.restore-special-hours-employee > small a {
  color: #9fbada;
  text-underline-offset: 2px;
}

.restore-special-hours-grid,
.restore-special-hours-employee-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
}

.restore-special-hours-grid .restore-owner-shift-fact.special,
.restore-special-hours-employee-grid .restore-earnings-day-metric.special,
.restore-earnings-day-work-grid .restore-earnings-day-metric.special {
  border-color: rgba(104, 168, 255, 0.38);
  background: rgba(104, 168, 255, 0.11);
}

.restore-special-hours-grid .restore-owner-shift-fact.special dd,
.restore-special-hours-employee-grid .restore-earnings-day-metric.special strong,
.restore-earnings-day-work-grid .restore-earnings-day-metric.special strong { color: #a9ccff; }

.restore-special-hours-upcoming > span {
  color: #8fa4bd;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.restore-special-hours-google { width: 100%; }

html[dir='rtl'] .restore-special-hours-calendar-list bdi,
html[dir='rtl'] .restore-special-hours-periods bdi,
html[dir='rtl'] .restore-special-hours-upcoming bdi,
html[dir='rtl'] .restore-special-hours-next-owner bdi,
html[dir='rtl'] .restore-admin-special-alert bdi { text-align: right; }

@media (max-width: 430px) {
  .restore-special-hours-actions { grid-template-columns: minmax(0, 1fr); }
  .restore-special-hours-calendar > div:first-child { display: grid; }
  .restore-special-hours-calendar > div:first-child > span { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .restore-special-hours-actions a,
  .restore-special-hours-actions button,
  .restore-special-hours-google { transition: none !important; }
}
