.arr-shell {
  color: #111827;
  font-family: inherit;
  margin: 24px auto;
  max-width: 1120px;
}

.arr-toolbar {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.arr-toolbar h2 {
  color: #0f172a;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 4px;
}

.arr-toolbar p {
  color: #586174;
  margin: 0;
}

.arr-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(280px, 420px) 1fr;
}

.arr-calendar,
.arr-form,
.arr-table-wrap {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  padding: 18px;
}

.arr-calendar-summary {
  color: #0f172a;
  cursor: pointer;
  display: none;
  font-weight: 800;
  list-style: none;
}

.arr-calendar-summary::-webkit-details-marker {
  display: none;
}

.arr-calendar-head,
.arr-calendar-weekdays,
.arr-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(34px, 1fr));
  gap: 8px;
}

.arr-calendar-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.arr-calendar-head button,
.arr-calendar-days button {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  min-height: 38px;
}

.arr-calendar-days button.is-selected {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.arr-calendar-weekdays {
  color: #586174;
  font-size: 12px;
  margin-bottom: 8px;
  text-align: center;
}

.arr-form {
  display: grid;
  gap: 14px;
}

.arr-field-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.arr-form label {
  color: #344054;
  display: grid;
  font-size: 14px;
  gap: 6px;
}

.arr-label-text {
  align-items: center;
  display: inline-flex;
  gap: 4px;
}

.arr-required-mark {
  color: #dc2626;
  font-weight: 800;
}

.arr-form input,
.arr-form select,
.arr-form textarea {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  font: inherit;
  min-height: 42px;
  padding: 8px 10px;
  width: 100%;
}

.arr-field-help {
  color: #64748b;
}

.arr-time-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
}

.arr-time-slot {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  border-radius: 6px;
  color: #0f172a;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  gap: 5px;
  justify-content: center;
  min-height: 40px;
  padding: 0 8px;
}

.arr-time-slot:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.arr-time-slot.is-selected {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.arr-time-slot:disabled {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
}

.arr-time-slot .dashicons {
  font-size: 15px;
  height: 15px;
  width: 15px;
}

.arr-button {
  align-items: center;
  background: #2563eb;
  border: 0;
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  text-decoration: none;
}

.arr-button-secondary {
  background: #0f172a;
}

.arr-fullcalendar {
  min-height: 520px;
}

.arr-fullcalendar .fc-button-primary {
  background: #2563eb;
  border-color: #2563eb;
}

.arr-message {
  color: #334155;
  margin: 0;
}

.arr-plan-note {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  color: #1e3a8a;
  display: grid;
  gap: 3px;
  padding: 12px 14px;
}

.arr-plan-note strong {
  color: #1d4ed8;
}

.arr-plan-total {
  align-items: center;
  background: #0f172a;
  border-radius: 8px;
  color: #cbd5e1;
  display: grid;
  gap: 3px;
  padding: 16px;
}

.arr-plan-total strong {
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
}

.arr-plan-total small {
  color: #93c5fd;
}

.arr-modal[hidden] {
  display: none;
}

.arr-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 99999;
}

.arr-modal-backdrop {
  background: rgba(15, 23, 42, 0.64);
  inset: 0;
  position: absolute;
}

.arr-modal-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
  max-width: 520px;
  padding: 26px;
  position: relative;
  width: min(100%, 520px);
}

.arr-modal-close {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  font-size: 22px;
  height: 34px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 34px;
}

.arr-modal-icon {
  align-items: center;
  background: #dcfce7;
  border-radius: 999px;
  color: #15803d;
  display: inline-flex;
  font-size: 24px;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  margin-bottom: 14px;
  width: 48px;
}

.arr-modal-card h3 {
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 40px 8px 0;
}

.arr-modal-card p {
  color: #475569;
  margin: 0 0 18px;
}

.arr-modal-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  gap: 0;
  margin: 0 0 18px;
  overflow: hidden;
}

.arr-modal-summary div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.arr-modal-summary div + div {
  border-top: 1px solid #e2e8f0;
}

.arr-modal-summary dt {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.arr-modal-summary dd {
  color: #0f172a;
  font-weight: 800;
  margin: 0;
}

body.arr-modal-open {
  overflow: hidden;
}

.arr-table-wrap {
  overflow-x: auto;
}

.arr-table {
  border-collapse: collapse;
  width: 100%;
}

.arr-table th,
.arr-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 10px;
  text-align: left;
}

.arr-table th {
  color: #475569;
  font-size: 13px;
}

@media (max-width: 820px) {
  .arr-toolbar,
  .arr-grid,
  .arr-field-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .arr-calendar {
    padding: 0;
  }

  .arr-calendar-summary {
    align-items: center;
    display: flex;
    min-height: 54px;
    padding: 0 16px;
  }

  .arr-calendar[open] .arr-calendar-summary {
    border-bottom: 1px solid #e5e7eb;
  }

  .arr-fullcalendar,
  [data-arr-fallback-calendar] {
    padding: 16px;
  }

  .arr-fullcalendar {
    min-height: 420px;
  }
}
