#managed-form .allocation-fields,
#managed-form fieldset,
#subscription-payment-form [data-custom-plan] {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border, #dce5f0);
  border-radius: 14px;
  margin: 12px 0;
}
#subscription-configure-form [data-custom-plan],
[data-quote-area],
#subscription-configure-form [data-plan-rules] {
  grid-column: 1 / -1;
  min-width: 0;
}
[data-custom-plan] [data-tailored-options] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 12px;
}
[data-custom-plan] [hidden],
[data-quote-area][hidden] {
  display: none;
}
.plan-recommendation {
  padding: 18px;
  margin-block: 14px;
  border: 1px solid #b8d9f3;
  border-radius: 12px;
  background: #f3f9ff;
}
.plan-recommendation p {
  margin-block: 10px 16px;
}
#tailored-prices-form fieldset {
  margin-block: 16px;
  border: 1px solid #dce5f0;
  border-radius: 12px;
  padding: 18px;
}
#managed-form .allocation-fields summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}
#managed-form label,
#subscription-payment-form [data-custom-plan] label {
  margin-bottom: 16px;
}
[data-custom-quote] {
  display: block;
  padding: 16px;
  margin-top: 16px;
  border-radius: 12px;
  background: #edf6ff;
  color: #0a1a2f;
  font-weight: 600;
  line-height: 1.6;
}
.subscription-comparison {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}
@media (max-width: 600px) {
  #managed-form fieldset,
  #managed-form .allocation-fields,
  #subscription-payment-form [data-custom-plan] {
    padding: 14px;
  }
}

.attendance-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 650;
  font-size: 12px;
}
.attendance-status-present {
  background: #dcfce7;
  color: #166534;
}
.attendance-status-absent {
  background: #fee2e2;
  color: #991b1b;
}
.attendance-status-early {
  background: #ffedd5;
  color: #9a3412;
}
.attendance-status-late {
  background: #fef9c3;
  color: #854d0e;
}
.attendance-status-leave {
  background: #edf2f7;
  color: #40516a;
}

.attendance-weekdays {
  margin: 8px 0 16px;
  padding: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
}
.attendance-weekdays > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.attendance-weekdays label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
}
.attendance-weekdays label:has(input:checked) {
  background: #e7f2ff;
  border-color: #147bff;
  color: #0a1a2f;
}
.attendance-weekdays input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #147bff;
}

.managed-history {
  margin-top: 24px;
}
.managed-history-entry {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #dce6f1;
  border-radius: 12px;
}
.managed-history-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 12px;
}
.managed-history-heading time {
  margin-left: auto;
  color: #49617b;
}
.managed-history-entry summary {
  cursor: pointer;
  min-height: 44px;
  padding: 10px 0;
}
.managed-history-entry td {
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .managed-history-heading time {
    margin-left: 0;
    width: 100%;
  }
}
