html {
  font-size: 16px;
}

[x-cloak] {
  display: none !important;
}

.sidebar-section-caret {
  display: inline-block;
  transition: transform 0.15s ease;
}

.sidebar-section-toggle[aria-expanded="false"] .sidebar-section-caret {
  transform: rotate(-90deg);
}

.translate-x-full {
  --tw-translate-x: 100%;
  translate: var(--tw-translate-x) var(--tw-translate-y);
}

#budgetOptionsPanel {
  width: 100%;
  max-width: 360px;
}

.field-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
}

.field-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  outline: none;
}

.field-input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgb(79 70 229 / 0.15);
}

.validation-message {
  margin-top: 0.25rem;
  display: block;
  font-size: 0.8125rem;
  color: #e11d48;
}

.admin-card {
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 10px 30px rgb(15 23 42 / 0.04);
}

.btn-primary-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: #F6B36B;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.btn-primary-admin:hover {
  background: #F2A457;
  color: #fff;
}

.btn-secondary-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
}

.btn-secondary-admin:hover {
  background: #f8fafc;
  color: #0f172a;
}

.btn-confirm-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-confirm-admin:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgb(14 165 233 / 0.25);
}

.btn-confirm-success {
  background: #059669;
}

.btn-confirm-success:hover {
  background: #047857;
}

.btn-confirm-warning {
  background: #d97706;
}

.btn-confirm-warning:hover {
  background: #b45309;
}

.btn-confirm-danger {
  background: #dc2626;
}

.btn-confirm-danger:hover {
  background: #b91c1c;
}

/* ── Bootbox modal shell without loading full Bootstrap CSS ── */
body.modal-open {
  overflow: hidden;
}

.bootbox.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1055;
  display: none;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}

.bootbox.modal.show {
  display: block;
}

.bootbox.modal.fade .modal-dialog {
  transform: translateY(-0.75rem);
  transition: transform 0.2s ease-out;
}

.bootbox.modal.show .modal-dialog {
  transform: none;
}

.bootbox .modal-dialog {
  position: relative;
  width: auto;
  max-width: 32rem;
  margin: 1.75rem auto;
  pointer-events: none;
}

.bootbox .modal-dialog-centered {
  display: flex;
  min-height: calc(100% - 3.5rem);
  align-items: center;
}

.bootbox .modal-content {
  position: relative;
  display: flex;
  width: 100%;
  flex-direction: column;
  pointer-events: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 24px 80px rgb(15 23 42 / 0.24);
  outline: 0;
}

.bootbox .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem 0;
}

.bootbox .modal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.bootbox .modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1.25rem;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.5;
}

.bootbox .modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0 1.25rem 1.25rem;
}

.bootbox .modal-footer .btn {
  cursor: pointer;
  font-family: inherit;
}

.bootbox .modal-footer .btn-primary-admin {
  border: 0;
}

.bootbox .bootbox-close-button {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.bootbox .bootbox-close-button::before {
  content: "\00d7";
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  width: 100vw;
  height: 100vh;
  background: rgb(15 23 42 / 0.45);
}

.modal-backdrop.fade {
  opacity: 0;
}

.modal-backdrop.show {
  opacity: 1;
}

/* ── FullCalendar theme integration ── */
.fc {
  font-family: inherit;
  font-size: 0.8125rem;
}

.fc .fc-toolbar-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.fc .fc-button {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 0.5rem;
  text-transform: capitalize;
}

.fc .fc-button:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.fc .fc-button-active {
  background: #F6B36B;
  border-color: #F6B36B;
  color: #fff;
}

.fc .fc-button-active:hover {
  background: #F2A457;
  color: #fff;
}

.fc .fc-button:disabled {
  opacity: 0.5;
}

.fc .fc-col-header-cell-cushion {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  padding: 0.5rem;
}

.fc .fc-daygrid-day-number {
  color: #334155;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
}

.fc .fc-day-today {
  background: #FFF4E8 !important;
}

.fc .fc-day-today .fc-daygrid-day-number {
  color: #E89535;
}

.fc .fc-event {
  border-radius: 0.375rem;
  padding: 1px 2px;
  font-size: 0.6875rem;
  line-height: 1.2;
}

.fc-event-custom {
  pointer-events: none;
}

.fc .fc-daygrid-event-harness {
  margin-top: 1px;
}

.fc .fc-list-event-title {
  color: #334155;
}

.fc .fc-list-day-cushion {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
}

.fc-theme-standard td,
.fc-theme-standard th {
  border-color: #e2e8f0;
}

.fc-theme-standard .fc-scrollgrid {
  border-color: #e2e8f0;
}

.fc .fc-timegrid-slot-label-cushion {
  color: #64748b;
  font-size: 0.6875rem;
}
