:root {
  --bs-primary: #636f4c;
  --bs-primary-rgb: 99, 111, 76;
  --bs-secondary: #ffcc00;
  --bs-body-font-family: "Inter", sans-serif;
  --bs-body-font-size: 13px;
  --bs-body-line-height: 1.4;
  --bs-border-radius: 0.75rem;
  --bs-border-radius-lg: 1rem;
  --bs-border-radius-sm: 0.5rem;
  --bs-body-bg: #f8f9fa;
  --bs-body-color: #1a1c1e;
  --bs-link-color: var(--bs-primary);
  --bs-accordion-btn-icon: none;
  --bs-accordion-btn-active-icon: none;
  --bs-btn-box-shadow: 0px 1px 4px rgba(26, 28, 30, 0.15);
  --sidebar-width: 170px;
  --sidebar-collapsed-width: 30px;
  --bs-box-shadow-sm: 0px 1px 4px rgba(26, 28, 30, 0.15);
  --bs-success-bg-subtle: #d1fae5;
  --bs-success-rgb: 46, 125, 50;
  --bs-accordion-bg: var(--bs-primary);
  --bs-table-bg: #fff;
  --bs-nav-link-color: rgba(255, 255, 255, 1);
  --bs-nav-link-font-size: 16px;
}

#sidebarMenu {
  width: var(--sidebar-width);
  transition: width 0.3s ease;
}

#sidebarMenu a.nav-link {
  color: #1a1c1e !important;
}

#sidebarMenu.collapsed {
  width: var(--sidebar-collapsed-width);
}

#sidebarMenu .sidebar-text,
#sidebarMenu .user-info {
  transition: opacity 0.2s ease;
}

#sidebarMenu.collapsed .sidebar-text,
#sidebarMenu.collapsed .user-info {
  opacity: 0;
  pointer-events: none;
  display: none;
}

#sidebarMenu.collapsed a.nav-link {
  text-align: center;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#sidebarMenu.collapsed .nav-link i {
  margin-right: 0 !important;
}

#sidebarCollapseInner i {
  display: inline-block;
  transition: transform 0.3s;
}

#sidebarMenu.collapsed #sidebarCollapseInner i {
  transform: rotate(180deg);
}

/* Custom Checkbox Style (Animated Toggle Switch with SVG Icons) */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 28px;
  height: 28px;
  background-color: transparent;
  border: none;
  border-radius: 0;
  position: relative;
  cursor: pointer;
  vertical-align: middle;
  margin: 0;
  padding: 0;
  background-image: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.filters input[type="checkbox"] {
  height: 22px;
}

input[type="checkbox"] ~ label {
  cursor: pointer;
  line-height: 28px;
}

/* Override Bootstrap .form-check-input specificity */
input[type="checkbox"].form-check-input {
  width: 56px !important;
  height: 28px !important;
  border-radius: 0 !important;
  background-image: none !important;
  background: none !important;
  border: none !important;
  margin: 0;
  float: left;
}

/* SVG Toggle Background */
input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Toggle Off State - using SVG symbol */
input[type="checkbox"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none'%3E%3Cpath stroke='%231a1c1e' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M10.5 17.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7'/%3E%3Cpath stroke='%231a1c1e' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M17.5 5.833h-7a8.167 8.167 0 1 0 0 16.334h7a8.167 8.167 0 0 0 0-16.334'/%3E%3C/svg%3E");
}

/* Toggle On State - using SVG symbol */
input[type="checkbox"]:checked::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none'%3E%3Cpath stroke='%232e7d32' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M17.5 17.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7'/%3E%3Cpath stroke='%232e7d32' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M17.5 5.833h-7a8.167 8.167 0 1 0 0 16.334h7a8.167 8.167 0 0 0 0-16.334'/%3E%3C/svg%3E");
}

/* Adjust Bootstrap form-check container for the wider switch */
.form-check {
  padding-left: 4em;
  min-height: 1.75rem;
}

.form-check .form-check-label {
  cursor: pointer;
}

.accordion-button::after {
  content: none;
}

*:focus,
*:active {
  outline: none !important;
  box-shadow: none !important;
}

button[data-dish-card].reserve-dish-card {
  background: #ffffff !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  box-shadow: 0px 1px 4px rgba(26, 28, 30, 0.15) !important;
  display: flex;
  flex-direction: column;
  padding: 16px !important;
}

button[data-dish-card].reserve-dish-card.selected {
  background: #fdf5e6 !important;
  border: 1px solid #2e7d32 !important;
  box-shadow: 0px 1px 4px rgba(26, 28, 30, 0.15) !important;
}

button[data-dish-card].reserve-dish-card:focus,
button[data-dish-card].reserve-dish-card:focus-visible,
button[data-dish-card].reserve-dish-card:active {
  box-shadow: 0px 1px 4px rgba(26, 28, 30, 0.15) !important;
  outline: none !important;
}

#menu-weeks-accordion
  > .accordion-item
  > .accordion-header
  > .accordion-button {
  background-color: #fff;
  color: var(--bs-body-color);
}

#menu-weeks-accordion .accordion-body .accordion .accordion-button {
  background-color: var(--bs-primary);
  color: #fff;
}

#menu-weeks-accordion
  .accordion-body
  .accordion
  .accordion-button
  .bi-lock-fill {
  color: #fff !important;
}

#menu-weeks-accordion .accordion-body .accordion .accordion-button svg {
  filter: brightness(0) invert(1);
}

#menu-weeks-accordion .weekLabel {
  font-weight: 600;
  color: #1a1c1e;
  font-size: 20px;
}
#menu-weeks-accordion .weekRange {
  font-weight: 600;
  color: #636f4c;
  font-size: 20px;
}

.badge {
  --bs-badge-font-size: 12px;
  --bs-badge-border-radius: 6px;
}

.site-error {
  box-shadow: 0px 1px 4px rgba(26, 28, 30, 0.15);
  border-radius: 12px;
}

.form-container {
  max-width: 640px;
  width: 90%;
  margin-top: 15vw;
  margin-bottom: 10vw;
}

/* Default form controls */
.form-control,
.form-select {
  background-color: #f8f9fa;
  border: none;
  border-bottom: 1px solid #2e7d32;
  border-radius: 0;
}

.form-control:focus,
.form-select:focus {
  background-color: #f8f9fa;
  border: none;
  border-bottom: 1px solid #2e7d32;
  border-radius: 0;
}

/* Filter inputs in GridView tables */
.grid-view .form-control,
.grid-view .form-select {
  background-color: #fff;
  border: 1px solid var(--bs-primary);
  border-radius: 6px;
  text-align: center;
}

.grid-view .form-control:focus,
.grid-view .form-select:focus {
  background-color: #fff;
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.25rem rgba(99, 111, 76, 0.25);
}

/* First tr in thead inside grid-view */
.grid-view thead tr:first-of-type th {
  background-color: var(--bs-primary);
  vertical-align: top;
}

/* Decorative footer bar for grid-view */
.grid-view {
  position: relative;
  box-shadow: 0px 1px 4px rgba(26, 28, 30, 0.15);
}

.table-bordered > :not(caption) > * > * {
  border-width: 0;
}
.table-bordered > thead > tr > th {
  color: #fff;
}
.table-bordered {
  text-align: center;
  overflow: auto;
}
.grid-view table {
  position: relative;
}
.grid-view table::after {
  content: "";
  position: absolute;
  display: block;
  height: 16px;
  background-color: var(--bs-primary);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  width: 100%;
  box-shadow: 0px 1px 4px rgba(26, 28, 30, 0.15);
}
.table > thead {
  border-top: white solid 0;
}
.table th {
  font-weight: 600;
  vertical-align: middle;
}
.table td {
  vertical-align: middle;
}

/* Border radius for first and last header cells */
.grid-view thead tr:first-of-type th:first-child {
  border-top-left-radius: 10px;
}
.grid-view thead tr:first-of-type th:last-child {
  border-top-right-radius: 10px;
}

.grid-view thead tr:first-of-type a {
  color: #fff !important;
  text-decoration: none !important;
}

.grid-view thead tr:first-of-type a:hover,
.grid-view thead tr:first-of-type a:focus,
.grid-view thead tr:first-of-type a:active,
.grid-view thead tr:first-of-type a:visited {
  color: #fff !important;
  text-decoration: none !important;
}
.grid-view tbody a {
  color: #73609b;
}

main {
  min-height: calc(100% - 80px);
}
main.main {
  background-image: url("/img/bg_picture.webp");
  background-size: 100% auto;
  background-position: top;
  background-repeat: no-repeat;
}

nav.navbar {
  min-height: 80px;
}

.deadline-widget {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8px 16px;
  gap: 4px;
  margin: 0 auto;
  width: 174px;
  height: 93px;
  background: #ffffff;
  box-shadow: 0px 1px 4px rgba(26, 28, 30, 0.15);
  border-radius: 8px;
  color: #73609b;
}

.deadline-widget__time {
  width: 138px;
  height: 38px;
  font-weight: 400;
  font-size: 32px;
  line-height: 120%;
  text-align: center;
  white-space: nowrap;
}

.deadline-widget__divider {
  width: 60px;
  height: 0px;
  border-top: 1px solid #73609b;
}

.deadline-widget__date {
  width: 142px;
  height: 31px;
  font-weight: 500;
  font-size: 24px;
  line-height: 130%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-toggle.nav-link::after {
  content: none;
}
.form-check {
  padding-left: 0;
}

/* ── Reserve page: week header ── */
.week-header {
  padding: 0.25rem 0;
}

/* ── Reserve page: day accordion-item wrapper ── */
.site-user-menu .accordion-item,
.office-order .accordion-item {
  background-color: #ffffff;
  /* border: 1px solid #4a5e3a !important; */
  border-radius: 8px !important;
  overflow: hidden;
}

/* ── Reserve page: day accordion button (dark primary bg) ── */
.day-accordion-btn {
  background-color: #4a5e3a !important;
  color: #fff !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* When collapsed — full border-radius on button (it's the only visible element) */
.day-accordion-btn.collapsed {
  border-radius: 0 !important;
}

.day-accordion-btn:focus {
  box-shadow: none !important;
  outline: none !important;
}

/* All SVG icons inside the day button — white */
.day-accordion-btn svg {
  color: #fff !important;
  fill: currentColor;
}

/* Force white for sprite-based status icon (overrides hardcoded fill/stroke in SVG sprite) */
.day-accordion-btn .day-btn-status-icon,
.day-accordion-btn .day-btn-status-icon use {
  fill: #fff !important;
  stroke: #fff !important;
  color: #fff !important;
}
/* Fallback: if sprite has hardcoded fill attributes, use brightness filter to make it white */
.day-accordion-btn .day-btn-status-icon {
  filter: brightness(0) invert(1);
}

/* Hide Bootstrap's built-in chevron — we render our own */
.day-accordion-btn::after {
  display: none !important;
}

/* Rotate our chevron when expanded */
.day-accordion-btn[aria-expanded="true"] .day-btn-chevron {
  transform: rotate(180deg);
}

.day-btn-chevron {
  transition: transform 0.2s ease;
  opacity: 0.85;
}

/* Disabled day */
.accordion-item.day-status-no-menu .day-accordion-btn {
  background-color: #8a9a7a !important;
  opacity: 0.65;
  cursor: not-allowed;
}

/* ── accordion-body: no padding — sections handle their own ── */
.site-user-menu .accordion-body,
.office-order .accordion-body {
  padding: 0 !important;
}

/* Dishes section: light grey bg, standard accordion padding */
.day-dishes-section {
  padding: var(--bs-accordion-body-padding-y) var(--bs-accordion-body-padding-x);
  background-color: #f8f9fa;
  border: 1px solid #4a5e3a;
  border-bottom: none;
}

/* Status bar: white bg, full width, standard accordion padding */
.day-status-bar {
  background-color: #ffffff;
  padding: var(--bs-accordion-body-padding-y) var(--bs-accordion-body-padding-x);
  border: 1px solid #4a5e3a;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* ── Day status block: fixed width so text never shifts layout ── */
.day-status-block {
  width: 210px;
  min-width: 210px;
}

[data-day-status-text] {
  font-size: 16px;
  text-align: center;
  color: #000000;
}

/* ── Dish cards: default (unselected) state ── */
[data-dish-card] {
  background: #ffffff !important;
  box-shadow: 0px 1px 4px rgba(26, 28, 30, 0.15) !important;
  border-radius: 6px !important;
  border: 1px solid transparent !important;
}

[data-dish-card].selected {
  background: #fdf5e6 !important;
  border: 1px solid #2e7d32 !important;
  box-shadow: 0px 1px 4px rgba(26, 28, 30, 0.15) !important;
}

.day-menu-card button .small {
  font-weight: 500;
  color: #4a7c80;
  font-size: 13px;
}
.site-how-it-works {
  padding-top: 150px;
}
.site-how-it-works .step:hover {
  transform: translateY(-5px);
}

/* How it works page styles */
.how-it-works-header {
  background-color: #f8f9fa;
  border-radius: 12px;
}

.header-illustration {
  position: absolute;
  height: 394px;
  top: -120px;
  right: 0;
}
.header-illustration img {
  height: 100%;
}
.how-it-works-section {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
}

.btn-saffron {
  background-color: #e35d1c;
  color: #ffffff;
  border-radius: 8px;
  padding: 8px 24px;
  border: none;
}

.btn-saffron:hover {
  background-color: #c54e18;
  color: #ffffff;
}

.btn {
  transition:
    color 0.15s ease-in-out,
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out,
    background-image 0.15s ease-in-out;
}

.btn.btn-fkc-secondary {
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 10px 12px;
  gap: 10px;
  height: 34px;
  background-color: #f8f9fa;
  border: 1px solid #636f4c;
  border-radius: 8px;
  color: #1a1c1e;
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.btn.btn-fkc-secondary:hover,
.btn.btn-fkc-secondary:focus,
.btn.btn-fkc-secondary:active,
.btn.btn-fkc-secondary.active {
  background-image: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.1)
  );
  background-color: #f8f9fa;
  border-color: #636f4c;
  color: #1a1c1e;
}

.btn.btn-success {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 10px 12px;
  gap: 10px;
  height: auto;
  min-height: 34px;
  background-color: #2e7d32;
  border-radius: 8px;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  border: none;
}

.btn.btn-success:hover,
.btn.btn-success:focus,
.btn.btn-success:active,
.btn.btn-success.active {
  background-image: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.1)
  );
  background-color: #2e7d32;
  color: #ffffff;
  border: none;
}

.icon-frame {
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.05);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
}

.how-it-works-title {
  color: #1a1c1e;
  font-weight: 400;
}

.how-it-works-text {
  color: #4a4a4a;
  font-size: 16px;
  line-height: 1.6;
}

.how-it-works-step-icon {
  width: 64px;
  height: 64px;
}

.how-it-works-small-icon {
  width: 24px;
  height: 24px;
}

.how-it-works-arrow {
  width: 32px;
  height: 32px;
}
.iti {
  display: block !important;
}

/* ── Orders page ── */
.order-day-card {
  background: #ffffff;
  border: 1px solid var(--bs-primary);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 1px 4px rgba(26, 28, 30, 0.15);
}

.order-day-header {
  background-color: #636f4c;
  color: #ffffff;
  padding: 8px;
  gap: 16px;
  min-height: 40px;
}

.order-day-header span {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 140%;
  color: #ffffff;
}

.order-day-header svg {
  filter: brightness(0) invert(1);
}

.order-day-body {
  padding: 14px;
  background-color: #f8f9fa;
}

.order-day-body .h6 {
  font-weight: 600;
  color: #1a1c1e;
}

/* Dish cards inside orders page (read-only, always "selected" look) */
.order-day-body .reserve-dish-card {
  background: #ffffff !important;
  border: 1px solid var(--bs-primary) !important;
  border-radius: 8px !important;
  box-shadow: 0px 1px 4px rgba(26, 28, 30, 0.15) !important;
  padding: 12px 14px !important;
  cursor: default !important;
}

.order-day-body .reserve-dish-card .fw-semibold {
  height: auto !important;
  overflow: visible !important;
  font-size: 13px;
  color: #1a1c1e;
}

.week-section {
  background: #ffffff;
  box-shadow: 0px 1px 4px rgba(26, 28, 30, 0.15);
  border-radius: 8px;
}

.week-label {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  color: #1a1c1e;
}

.week-range {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  color: #636f4c;
}
