:root {
  --velcar-red: #c8102e;
  --velcar-red-dark: #9f0d24;
  --velcar-black: #111111;
  --velcar-ink: #202124;
  --velcar-muted: #6b7280;
  --velcar-body-bg: #f3f4f6;
}

html[data-menu-color="dark"] {
  --tz-menu-bg: var(--velcar-black);
  --tz-menu-item-color: #b8bec7;
  --tz-menu-item-hover-color: #ffffff;
  --tz-menu-item-active-color: #ffffff;
  --tz-menu-item-active-bg: rgba(200, 16, 46, 0.22);
  --tz-menu-condensed-link-bg: #1b1b1b;
}

html {
  --tz-primary: var(--velcar-red);
  --tz-primary-rgb: 200, 16, 46;
  --tz-primary-text-emphasis: var(--velcar-red-dark);
  --tz-primary-bg-subtle: #f9d8de;
  --tz-primary-border-subtle: #ef9aaa;
  --tz-link-color: var(--velcar-red);
  --tz-link-color-rgb: 200, 16, 46;
  --tz-link-hover-color: var(--velcar-red-dark);
  --tz-link-hover-color-rgb: 159, 13, 36;
  --tz-focus-ring-color: rgba(200, 16, 46, 0.25);
  --tz-body-bg: var(--velcar-body-bg);
}

body {
  background-color: var(--velcar-body-bg);
}

.navbar-custom {
  --tz-topbar-bg: #ffffff;
  --tz-topbar-item-color: var(--velcar-black);
  --tz-topbar-item-hover-color: var(--velcar-red);
  border-bottom: 1px solid #e5e7eb;
  overflow: visible;
}

.topbar {
  min-height: var(--tz-topbar-height);
  overflow: visible;
}

.logo span.logo-lg,
.logo-topbar span.logo-lg {
  height: 70px;
  display: inline-flex;
  align-items: center;
}

.logo span.logo-lg img,
.logo-topbar span.logo-lg img,
.auth-brand img {
  width: 160px !important;
  height: 30px !important;
  max-width: 160px;
  object-fit: contain;
}

.logo span.logo-sm img,
.logo-topbar span.logo-sm img {
  max-height: 30px;
  object-fit: contain;
}

.leftside-menu .logo {
  background: var(--velcar-black);
}

.topbar-menu {
  height: var(--tz-topbar-height);
}

.topbar-menu > li {
  display: inline-flex;
  align-items: center;
  min-height: var(--tz-topbar-height);
}

.nav-user {
  min-height: var(--tz-topbar-height);
  max-height: var(--tz-topbar-height);
  overflow: hidden;
}

.account-user-avatar {
  width: 38px !important;
  min-width: 38px;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  color: #ffffff;
  background: var(--velcar-red);
  font-size: 1.15rem;
}

.account-user-avatar img {
  width: 38px !important;
  height: 38px !important;
  max-width: 38px;
  max-height: 38px;
  object-fit: cover;
}

.user-list-avatar {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  color: #ffffff;
  background: var(--velcar-red);
}

.user-list-avatar img {
  width: 34px;
  height: 34px;
  object-fit: cover;
}

[data-bs-toggle="fullscreen"] {
  border: 0;
  background: transparent;
  color: var(--velcar-black);
}

[data-bs-toggle="fullscreen"]:hover,
[data-bs-toggle="fullscreen"]:focus {
  color: var(--velcar-red);
}

.side-nav-title {
  color: #ef9aaa;
}

.side-nav-link.active {
  border-left: 3px solid var(--velcar-red);
}

.btn-primary,
.btn-soft-primary,
.btn-outline-primary:hover,
.page-item.active .page-link {
  --tz-btn-bg: var(--velcar-red);
  --tz-btn-border-color: var(--velcar-red);
  --tz-btn-hover-bg: var(--velcar-red-dark);
  --tz-btn-hover-border-color: var(--velcar-red-dark);
  --tz-btn-active-bg: var(--velcar-red-dark);
  --tz-btn-active-border-color: var(--velcar-red-dark);
}

.btn-outline-primary {
  --tz-btn-color: var(--velcar-red);
  --tz-btn-border-color: var(--velcar-red);
}

.btn-soft-primary {
  color: var(--velcar-red);
  background-color: rgba(200, 16, 46, 0.12);
  border-color: transparent;
}

.btn-soft-primary:hover,
.btn-soft-primary:focus {
  color: #ffffff;
  background-color: var(--velcar-red);
}

.text-primary,
.text-info,
.text-purple,
.text-pink {
  color: var(--velcar-red) !important;
}

.bg-primary-subtle,
.bg-info-subtle,
.bg-purple-subtle,
.bg-pink-subtle {
  background-color: rgba(200, 16, 46, 0.12) !important;
}

.text-bg-primary,
.text-bg-info,
.text-bg-purple,
.text-bg-pink {
  color: #ffffff !important;
  background-color: var(--velcar-black) !important;
}

.text-bg-primary .widget-icon,
.text-bg-info .widget-icon,
.text-bg-purple .widget-icon,
.text-bg-pink .widget-icon {
  color: #ffffff;
  background-color: var(--velcar-red);
}

.badge.text-bg-purple,
.badge.text-bg-info,
.badge.text-bg-primary {
  background-color: var(--velcar-red) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--velcar-red);
  box-shadow: 0 0 0 0.18rem rgba(200, 16, 46, 0.16);
}

.table thead.table-light th,
.table-light {
  --tz-table-bg: #f5f5f5;
  color: var(--velcar-ink);
}

.authentication-bg {
  background: linear-gradient(135deg, #111111 0%, #242424 58%, #c8102e 100%);
}

.velcar-calendar-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: calc(100vh - 180px);
  background: #ffffff;
  border-radius: 6px;
  box-shadow: var(--tz-box-shadow);
  overflow: hidden;
}

.velcar-calendar-sidebar {
  border-right: 1px solid #e5e7eb;
  padding: 28px 24px;
  background: #ffffff;
}

.calendar-sidebar-title {
  color: #344054;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.calendar-sidebar-muted {
  color: var(--velcar-muted);
  font-size: 0.82rem;
  margin-bottom: 22px;
}

.external-event {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  color: #475467;
  font-weight: 600;
  cursor: grab;
  user-select: none;
}

.external-event:active {
  cursor: grabbing;
}

.event-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.event-dot-red {
  background: var(--velcar-red);
}

.event-dot-black {
  background: var(--velcar-black);
}

.event-dot-gray {
  background: #667085;
}

.velcar-calendar-main {
  min-width: 0;
  padding: 24px 28px 28px;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.calendar-toolbar h2 {
  margin: 0;
  color: #344054;
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
}

.calendar-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  color: #475467;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}

.calendar-weekdays > div {
  padding: 8px 4px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid #e5e7eb;
  border-left: 1px solid #e5e7eb;
}

.calendar-day {
  min-height: 118px;
  padding: 10px 8px;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.calendar-day.is-muted {
  background: #fcfcfd;
}

.calendar-day.is-today {
  background: #fff6f7;
}

.calendar-day.is-drop-target {
  outline: 2px solid rgba(200, 16, 46, 0.45);
  outline-offset: -2px;
}

.calendar-day-number {
  color: #475467;
  font-weight: 700;
  text-align: right;
  margin-bottom: 8px;
}

.calendar-day.is-muted .calendar-day-number {
  color: #c1c7d0;
}

.calendar-event {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 3px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 5px 6px;
  margin-bottom: 5px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-event.type-seguimiento,
.calendar-event.type-cotizacion {
  background: var(--velcar-red);
}

.calendar-event.type-obra {
  background: var(--velcar-black);
}

.calendar-event.type-pedido {
  background: #667085;
}

@media (max-width: 991.98px) {
  .velcar-calendar-shell {
    grid-template-columns: 1fr;
  }

  .velcar-calendar-sidebar {
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }

  .calendar-toolbar {
    grid-template-columns: 1fr;
  }

  .calendar-toolbar h2,
  .calendar-nav {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .velcar-calendar-main {
    padding: 18px 12px;
  }

  .calendar-day {
    min-height: 92px;
    padding: 7px 5px;
  }

  .calendar-event {
    font-size: 0.68rem;
  }
}
