body.login-page {
  margin: 0;
}

.brand-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
}

.sidebar-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.login-form-side {
  background: #ffffff;
}

.login-ads-side {
  background: linear-gradient(135deg, #1b2a4a, #0f3d63);
}

.login-ad-image-wrap {
  width: 100%;
  max-width: 640px;
  height: 60vh;
  max-height: 620px;
  border-radius: .75rem;
  overflow: hidden;
}

.login-ad-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-sidebar {
  width: 260px;
  min-height: 100vh;
  background: #1b2a4a !important;
}

.app-sidebar .nav-link.active {
  background: rgba(255, 255, 255, .15);
  font-weight: 600;
}

.app-sidebar .nav-link {
  border-radius: .375rem;
}

.app-topbar {
  min-height: 56px;
}

.app-admin main,
.app-trabajador,
.app-despacho {
  background: #f5f6fa;
  min-height: 100vh;
}

.worker-header {
  position: sticky;
  top: 0;
  z-index: 10;
}

.app-footer {
  background: transparent;
}

.app-footer a {
  text-decoration: underline;
}

.camera-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #1b2a4a;
  border-radius: .75rem;
  overflow: hidden;
}

.camera-frame video,
.camera-frame img {
  object-fit: cover;
}

.despacho-icon {
  width: 48px;
  height: 48px;
  border-radius: .5rem;
  background: #f5f6fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #1b2a4a;
}

.worker-zone-highlight {
  outline: 2px solid #0d6efd;
  outline-offset: 4px;
  border-radius: .5rem;
  transition: outline-color .3s ease;
}

.worker-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #dfe6f1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1b2a4a;
}

.app-sidebar.offcanvas-lg {
  background: #1b2a4a !important;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-weekday {
  text-align: center;
  font-size: .75rem;
  text-transform: uppercase;
  color: #6c757d;
  font-weight: 600;
  padding: 4px 0;
}

.calendar-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: .5rem;
  background: #f5f6fa;
  color: #1b2a4a;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 6px;
  font-weight: 600;
}

.calendar-cell:hover {
  background: #e5e9f5;
  color: #1b2a4a;
}

.calendar-cell-empty {
  background: transparent;
}

.calendar-cell-today {
  outline: 2px solid #0d6efd;
}

.calendar-day-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
}

.worker-week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

@media (max-width: 767.98px) {
  .worker-week-grid {
    grid-template-columns: 1fr;
  }
}

.worker-week-day {
  background: #f5f6fa;
  border-radius: .5rem;
  padding: 8px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.worker-week-day-today {
  outline: 2px solid #0d6efd;
}

.worker-week-day-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(27, 42, 74, .08);
}

@media (max-width: 767.98px) {
  .worker-week-day-header {
    flex-direction: row-reverse;
    justify-content: flex-end;
  }
}

.worker-week-day-name {
  font-size: .7rem;
  text-transform: uppercase;
  color: #6c757d;
  font-weight: 600;
}

.worker-week-day-number {
  font-size: .9rem;
  font-weight: 700;
  color: #1b2a4a;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.worker-week-day-today .worker-week-day-number {
  background: #0d6efd;
  color: #fff;
}

.worker-week-day-tasks {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.worker-week-empty {
  font-size: .75rem;
  color: #adb5bd;
  font-style: italic;
}

.worker-task-chip {
  font-size: .75rem;
  line-height: 1.25;
  padding: 4px 6px;
  border-radius: .375rem;
  background: #fff;
  border-left: 3px solid #6c757d;
}

.worker-task-chip-asignada {
  border-left-color: #6c757d;
}

.worker-task-chip-en_proceso {
  border-left-color: #0d6efd;
}

.worker-task-chip-finalizada {
  border-left-color: #198754;
  background: #f1f9f4;
}

.trello-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.trello-column {
  background: #f5f6fa;
  border-radius: .5rem;
  padding: 12px;
  min-height: 200px;
}

.trello-column-header {
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 10px;
}

.trello-card {
  background: #ffffff;
  border-radius: .5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  padding: 10px 12px;
  margin-bottom: 10px;
  cursor: grab;
}

.trello-card.dragging {
  opacity: .4;
}

.trello-column.drag-over {
  outline: 2px dashed #0d6efd;
}

@media (max-width: 767.98px) {
  .trello-board {
    grid-template-columns: 1fr;
  }
}
