@import url("https://cdn.jsdelivr.net/npm/fullcalendar@6.1.17/index.global.min.css");

body {
  background:
    radial-gradient(1200px 520px at -10% -20%, rgba(2, 132, 199, 0.15), transparent 60%),
    radial-gradient(900px 420px at 110% 0%, rgba(59, 130, 246, 0.12), transparent 60%),
    #eef2f7;
  color: #1f2937;
}

.area-main {
  min-width: 0;
}

.area-sidebar {
  width: 200px;
  background: linear-gradient(180deg, #0f172a, #111827 45%, #172554);
  color: #e5e7eb;
}

.area-sidebar .offcanvas-title,
.area-sidebar .text-body-secondary,
.area-sidebar .text-body-emphasis {
  color: #e5e7eb !important;
}

.area-sidebar .nav-link {
  color: #d1d5db;
  font-weight: 500;
  border-radius: 10px;
}

.area-sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.area-sidebar .nav-link.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
}

.card-soft {
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.metric-title {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.metric-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
}

.table thead th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table td,
.table th {
  vertical-align: top;
}

.quote-link {
  word-break: break-all;
  font-size: 0.88rem;
}

.photo-thumb {
  max-width: 100px;
  max-height: 70px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  object-fit: cover;
}

.admin-tabs .nav-link {
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  border: 1px solid #dbe3ef;
  color: #334155;
  background: #ffffff;
}

.admin-tabs .nav-link.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.submenu-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.submenu-btn {
  border-radius: 999px;
}

.quote-actions-dropdown {
  display: inline-block;
}

.quote-actions-menu {
  min-width: 16rem;
  max-height: 320px;
  overflow-y: auto;
}

.modal {
  overflow-y: auto;
}

.modal-dialog-scrollable .modal-content {
  max-height: calc(100vh - 1rem);
}

.modal-dialog-scrollable .modal-content > form {
  display: flex;
  flex-direction: column;
  max-height: inherit;
  min-height: 0;
}

.modal-dialog-scrollable .modal-header,
.modal-dialog-scrollable .modal-footer {
  position: sticky;
  z-index: 2;
  background: #ffffff;
}

.modal-dialog-scrollable .modal-header {
  top: 0;
}

.modal-dialog-scrollable .modal-footer {
  bottom: 0;
}

.modal-dialog-scrollable .modal-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
}

.modal-dialog-scrollable .modal-content > form .modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal-dialog.modal-fullscreen .modal-content {
  height: 100dvh;
  max-height: 100dvh;
}

.modal-dialog.modal-fullscreen .modal-content > form {
  height: 100%;
}

.tt-calendar {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  padding: 0.5rem;
}

.calendar-hint {
  margin-top: 0.65rem;
  color: #64748b;
  font-size: 0.86rem;
}

.fc .fc-toolbar-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.fc .fc-button {
  border-radius: 8px !important;
  border-color: #cbd5e1 !important;
  background: #f8fafc !important;
  color: #1e293b !important;
  box-shadow: none !important;
}

.fc .fc-button.fc-button-active,
.fc .fc-button:active {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
}

.fc .fc-daygrid-day.fc-day-today {
  background: rgba(30, 64, 175, 0.08) !important;
}

.fc .fc-event {
  border: 0;
  border-radius: 7px;
  padding: 1px 3px;
}

@media (max-width: 991.98px) {
  .area-sidebar {
    width: 310px;
  }
}
