body {
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(122, 134, 67, 0.05), rgba(200, 253, 13, 0));
  pointer-events: none;
}

.card.login-card {
  border: none;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.logo-mark {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.login-footer {
  font-size: 0.95rem;
}

/* Bottom navigation for mobile app-like layout */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(56px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1030;
}
.bottom-nav .nav-item {
  color: #6c757d;
  font-size: 0.85rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.bottom-nav .nav-item.active {
  color: #0d6efd;
}

.bottom-nav .bi::before {
  font-size: 1.3rem;
}

/* Reserve space so content isn't hidden under nav */
main,
body {
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

.calendar-card {
  border-radius: 1rem;
  overflow: hidden;
}

.calendar-grid,
.calendar-days {
  display: grid;
  /* show Mon-Fri only for wider cells */
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.2rem;
}

.calendar-weekday {
  font-size: 0.82rem;
  color: #6c757d;
  text-align: center;
  padding: 0.25rem 0;
}

.calendar-cell {
  min-height: 2.5rem;
  border-radius: 0.15rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid #dee4f6;
  color: #212529;
  font-size: 0.86rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

.calendar-day-number {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.1;
}

.calendar-event-list {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  margin-top: 0.35rem;
  width: 100%;
}

.calendar-event-badge {
  font-size: 0.6rem;
  padding: 0.18rem 0.36rem;
  border-radius: 0.21rem;
  background: rgba(13, 110, 253, 0.12);
  color: #0d6efd;
  display: block;
  line-height: 1.1;
  text-align: center;
  width: 100%;
}

.calendar-event-badge.calendar-event-more {
  background: rgba(108, 117, 125, 0.16);
  color: #6c757d;
  font-weight: 600;
}

.calendar-cell:hover,
.calendar-cell.selected {
  background: rgba(13, 110, 253, 0.12);
  border-color: rgba(13, 110, 253, 0.28);
}

.calendar-cell.active {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}

.calendar-cell.active .calendar-event-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.calendar-cell.active .calendar-event-badge.calendar-event-more {
  background: rgba(255, 255, 255, 0.3);
}

.calendar-empty {
  background: transparent;
  border: none;
}

.delivery-details {
  background: transparent;
  border: none;
  padding: 0;
}

/* Collapsible section styling */
.btn-link[data-bs-toggle="collapse"] {
  transition: color 0.2s ease;
}

.btn-link[data-bs-toggle="collapse"]:hover {
  color: #0d6efd !important;
}

.btn-link[data-bs-toggle="collapse"] svg {
  transition: transform 0.3s ease;
}

.btn-link[data-bs-toggle="collapse"][aria-expanded="false"] svg {
  transform: rotate(-180deg);
}

.btn-link[data-bs-toggle="collapse"][aria-expanded="true"] svg {
  transform: rotate(0deg);
}



.delivery-details-header h5 {
  margin-bottom: 0.5rem;
}

.delivery-piece {
  border-radius: 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.85rem 0.9rem;
  background: #f8f9fa;
}

.delivery-piece .table {
  font-size: 0.67rem;
  margin-bottom: 0;
}

.delivery-piece .table thead {
  background: #f0f0f0;
}

.delivery-piece .table th,
.delivery-piece .table td {
  padding: 0.4rem 0.6rem;
  border-color: rgba(0, 0, 0, 0.08);
}

.delivery-piece .group-name {
  font-weight: 600;
}

.delivery-piece .item-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.delivery-details-empty {
  padding: 1rem 0;
}

.screen { display: none; }
.screen.active { display: block; }
