﻿* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100vh;
  background: #F9F6F0;
  color: #5C4A3A;
  font-family: Georgia, 'Times New Roman', serif;
}
.wrap {
  max-width: 720px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 24px 20px 48px;
  box-sizing: border-box;
}

.wrap form {
  width: 100%;
}

/* Header — style invitation */
.site-header {
  text-align: center;
  margin-bottom: 24px;
}

.site-header-home {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.site-header-home:hover {
  transform: translateY(-2px);
}
.logo-frame {
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(184, 148, 60, 0.45);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 0 0 5px rgba(184, 148, 60, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-frame img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.header-rule {
  width: 72px;
  height: 1px;
  background: #B8943C;
  margin: 0 auto 12px;
  opacity: 0.75;
}
.header-venue {
  margin: 0 0 8px;
  font-family: Cinzel, Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #B8943C;
}
.site-header h1 {
  font-family: Cinzel, Georgia, serif;
  font-size: 22px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: #5C4A3A;
  margin: 0;
  text-transform: uppercase;
}

.staff {
  text-align: center;
  font-size: 12px;
  color: #7A6555;
  margin-bottom: 20px;
}

/* Staff account chip (Google-style, fixed top-right) */
.user-menu-bar {
  position: fixed;
  top: 16px;
  right: max(16px, calc((100vw - 720px) / 2));
  z-index: 30;
  font-family: Roboto, Arial, sans-serif;
}

.staff-toolbar {
  position: relative;
  z-index: 30;
  /* Reserve space so fixed Accueil / Staff / avatar never cover the form. */
  min-height: 48px;
  margin-bottom: 8px;
}
.user-menu {
  position: relative;
  z-index: 2;
}
.user-menu-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: default;
  z-index: 1;
}
.user-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 3;
  width: 320px;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(60, 64, 67, 0.18);
  overflow: hidden;
}
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 4px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.18);
  cursor: pointer;
  color: #3c4043;
  transition: box-shadow .15s ease, background .15s ease;
}
.user-chip:hover,
.user-chip[aria-expanded="true"] {
  background: #f8f9fa;
  box-shadow: 0 1px 4px rgba(60, 64, 67, 0.24);
}
.user-chip-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.user-chip-avatar-lg {
  width: 48px;
  height: 48px;
}
.user-chip-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.user-chip-initial {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
}
.user-chip-avatar-lg .user-chip-initial {
  font-size: 18px;
}
.user-chip-name {
  font-size: 13px;
  font-weight: 500;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-chip-chevron {
  display: none;
}
.user-menu-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid #e8eaed;
}
.user-menu-identity {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.user-menu-identity strong {
  font-size: 14px;
  font-weight: 500;
  color: #202124;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-menu-identity span {
  font-size: 12px;
  color: #5f6368;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-menu-actions {
  padding: 8px 0;
}
.user-menu-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 13px;
  color: #3c4043;
  text-decoration: none;
}
.user-menu-action:hover {
  background: #f1f3f4;
}
.user-menu-action-signout {
  border-top: 1px solid #e8eaed;
  margin-top: 4px;
  padding-top: 14px;
}
.user-menu-action-icon {
  width: 18px;
  text-align: center;
  color: #5f6368;
  font-size: 14px;
  flex-shrink: 0;
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.user-chip-avatar-xl {
  width: 72px;
  height: 72px;
}
.user-chip-avatar-xl .user-chip-initial {
  font-size: 28px;
}
.profile-card-identity h2 {
  margin: 0 0 4px;
  font-family: Roboto, Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #202124;
}
.profile-card-identity p {
  margin: 0;
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  color: #5f6368;
}
.profile-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.staff-hub-intro {
  text-align: center;
  color: #7A6555;
  font-size: 15px;
  margin: 0 0 28px;
  line-height: 1.55;
}

.staff-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.staff-hub-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #E8DDD0;
  border-radius: 12px;
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.staff-hub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 148, 60, 0.45);
  box-shadow: 0 10px 28px rgba(58, 46, 28, 0.08);
}

.staff-hub-icon {
  display: block;
  font-size: 28px;
  margin-bottom: 12px;
}

.staff-hub-card h2 {
  margin: 0 0 8px;
  font-family: Cinzel, Georgia, serif;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5C4A3A;
}

.staff-hub-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #7A6555;
}

@media (max-width: 600px) {
  .user-menu-bar { top: 12px; right: 12px; }
  .user-chip-name { display: none; }
  .user-chip { padding: 2px; border: 0; box-shadow: none; background: transparent; }
  .user-menu-panel { width: min(320px, calc(100vw - 24px)); }
}

.card {
  background: #fff;
  border: 1px solid #E8DDD0;
  border-radius: 8px;
  padding: 24px 20px;
  margin-bottom: 18px;
  width: 100%;
  box-sizing: border-box;
}
.card h2 {
  font-family: Cinzel, Georgia, serif;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #B8943C;
  margin: 0 0 16px;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.card h2 .lbl-fr,
.card h2 .lbl-ar {
  display: inline;
}
.card h2 .lbl-ar::before {
  content: none;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.grid .full { grid-column: 1 / -1; }
label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 10px;
  font-size: 12px;
  color: #7A6555;
  margin-bottom: 5px;
}
.lbl-fr {
  display: inline;
  font-size: 12px;
  color: #7A6555;
}
.lbl-ar {
  display: inline;
  font-family: 'Noto Sans Arabic', sans-serif;
  font-size: 11px;
  color: #9A8474;
  direction: rtl;
  text-align: right;
  margin-left: auto;
}
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #E0D5C8;
  border-radius: 4px;
  font: inherit;
  font-family: Georgia, 'Times New Roman', 'Noto Sans Arabic', serif;
  font-size: 14px;
  background: #FDFBF7;
  color: #5C4A3A;
}
textarea { min-height: 72px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #B8943C;
  box-shadow: 0 0 0 2px rgba(184,148,60,.15);
}
.req > .lbl-fr::after { content: ' *'; color: #B8943C; }
.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}
.btn {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  border-radius: 4px;
  font-family: Cinzel, Georgia, serif;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, #B8943CCC, #B8943C);
  color: #fff;
}
.btn-primary:disabled { opacity: .6; cursor: wait; }
.status {
  text-align: center;
  min-height: 20px;
  font-size: 13px;
  margin-top: 12px;
}
.status.ok { color: #3d6b45; }
.status.err { color: #a04444; }
.hint {
  font-size: 11px;
  color: #9A8474;
  margin-top: 4px;
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(249, 246, 240, 0.88);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.loading-overlay[hidden] { display: none !important; }
.loading-box {
  text-align: center;
  background: #fff;
  border: 1px solid #E8DDD0;
  border-radius: 10px;
  padding: 32px 28px;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(92, 74, 58, 0.12);
}
.loading-box > [hidden] { display: none !important; }
.overlay-success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #eef6ef;
  color: #3d6b45;
  font-size: 24px;
  line-height: 48px;
  font-weight: 600;
}
.overlay-error-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #faf0f0;
  color: #a04444;
  font-size: 22px;
  line-height: 48px;
  font-weight: 700;
}
.overlay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}
.btn-secondary {
  background: #fff;
  color: #5C4A3A;
  border: 1px solid #E0D5C8;
}
.overlay-error-msg {
  color: #a04444;
}
.loading-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 18px;
  border: 3px solid #E8DDD0;
  border-top-color: #B8943C;
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-title {
  font-family: Cinzel, Georgia, serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #5C4A3A;
  margin: 0 0 8px;
}
.loading-sub {
  font-size: 12px;
  color: #9A8474;
  margin: 0;
}
.form-busy {
  pointer-events: none;
  opacity: 0.55;
}

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
}

.date-picker {
  position: relative;
  border: 1px solid #E0D5C8;
  border-radius: 6px;
  padding: 12px;
  background: #FDFBF7;
}
.date-picker-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.date-picker-title {
  font-family: Cinzel, Georgia, serif;
  font-size: 13px;
  color: #B8943C;
  letter-spacing: .06em;
}
.date-nav {
  border: 1px solid #E0D5C8;
  background: #fff;
  color: #5C4A3A;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
/* Month / year picker opened from the calendar title */
.date-picker-nav { position: relative; }

.month-nav-title {
  border: 0;
  background: transparent;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}
.month-nav-title:hover { background: #F5EFE4; }
.month-nav-caret {
  margin-left: 6px;
  font-size: 10px;
  opacity: .7;
}

.month-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: default;
}

.month-picker-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 21;
  padding: 10px;
  border: 1px solid #E0D5C8;
  border-radius: 6px;
  background: #FDFBF7;
  box-shadow: 0 8px 24px rgba(92, 74, 58, .18);
}

.month-picker-year {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.month-picker-year .date-nav:disabled { opacity: .4; cursor: default; }

.month-picker-year-select {
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 0 8px;
  font-family: Cinzel, Georgia, serif;
  font-size: 13px;
  color: #B8943C;
  text-align: center;
}

.month-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.month-picker-month {
  padding: 8px 4px;
  border: 1px solid #E0D5C8;
  border-radius: 4px;
  background: #fff;
  color: #5C4A3A;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.month-picker-month:hover { background: #F5EFE4; }
.month-picker-month.selected {
  border-color: #B8943C;
  background: #B8943C;
  color: #fff;
}

.month-picker-today {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 6px;
  border: 0;
  background: transparent;
  color: #8A7355;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.date-picker-weekdays,
.date-picker-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.date-picker-weekdays span {
  font-size: 11px;
  color: #9A8474;
  padding: 4px 0;
}
.date-picker-days .day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-radius: 4px;
}
.date-picker-days .empty { visibility: hidden; }
.date-picker-days .busy {
  color: #C4B8A8;
  background: #F3EEE6;
  cursor: not-allowed;
}
.date-picker-days button.available {
  border: 1px solid #C9A962;
  background: #F5F0E3;
  color: #5C4A3A;
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.date-picker-days button.available:hover {
  background: #EBE0C8;
}
.date-picker-days button.selected {
  background: #B8943C;
  color: #fff;
  border-color: #B8943C;
}
.date-picker-days .available.read-only {
  border: 1px solid #C9A962;
  background: #F5F0E3;
  color: #5C4A3A;
  font-weight: 500;
}
.date-selected {
  margin: 8px 0 0;
  font-size: 13px;
  color: #5C4A3A;
  font-weight: 500;
}

.page-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  max-width: 420px;
  width: 100%;
  text-align: center;
  background: #fff;
  border: 1px solid #E8DDD0;
  border-radius: 8px;
  padding: 32px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.login-card h1 {
  font-family: Cinzel, Georgia, serif;
  font-size: 18px;
  letter-spacing: 0.12em;
  color: #B8943C;
  margin: 0 0 12px;
}

.login-card p {
  line-height: 1.7;
  font-size: 14px;
  color: #7A6555;
  margin: 0;
}

.login-hint {
  font-size: 12px !important;
  margin-top: 12px !important;
  color: #9A8474 !important;
}

.login-error {
  margin-top: 12px !important;
  color: #8B4513 !important;
  font-size: 13px !important;
}

.login-card .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(135deg, #B8943CCC, #B8943C);
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}

input[type="date"],
input[type="time"] {
  box-sizing: border-box;
  min-height: 0;
  max-height: 42px;
  line-height: 1.35;
  -webkit-appearance: none;
  appearance: none;
}

input[type="date"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value {
  min-height: 1em;
  text-align: left;
}

.avail-list-title {
  margin: 20px 0 10px;
  font-family: Cinzel, Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7A6555;
}

.avail-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.avail-list li {
  padding: 8px 0;
  border-bottom: 1px solid #E8DDD0;
  font-size: 14px;
  color: #5C4A3A;
}

.avail-list li:last-child {
  border-bottom: none;
}

/* Planning */
.planning-wrap {
  max-width: 980px;
}

.planning-intro {
  text-align: center;
  color: #7A6555;
  font-size: 15px;
  margin: 0 0 24px;
  line-height: 1.55;
}

.planning-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 820px) {
  .planning-layout {
    grid-template-columns: 1fr;
  }
}

.planning-calendar-panel,
.planning-detail-panel {
  background: #fff;
  border: 1px solid #E8DDD0;
  border-radius: 12px;
  padding: 20px 18px;
}

.planning-calendar .date-picker-days button.day-free,
.planning-calendar .date-picker-days button.day.free {
  background: #FAF7F2;
  color: #8A7355;
  border: 1px solid #E8DDD0;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.planning-calendar .date-picker-days button.day-reserved,
.planning-calendar .date-picker-days button.day.reserved {
  background: #B8943C;
  background-image: linear-gradient(180deg, #E8C878 0%, #B8943C 100%);
  color: #fff;
  border: 1px solid #9A7830;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-weight: 700;
  padding: 0;
  font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.planning-calendar .date-picker-days button.day-reserved .day-mark,
.planning-calendar .date-picker-days button.day.reserved .day-mark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  margin-top: 1px;
}

.planning-calendar .date-picker-days button.day-reserved.selected,
.planning-calendar .date-picker-days button.day.reserved.selected,
.planning-calendar .date-picker-days button.day-free.selected,
.planning-calendar .date-picker-days button.day.free.selected {
  box-shadow: 0 0 0 3px #5C4A3A;
}

.planning-calendar .date-picker-days button.day-reserved.selected,
.planning-calendar .date-picker-days button.day.reserved.selected {
  background: #9A7830;
  background-image: linear-gradient(180deg, #D4B050 0%, #9A7830 100%);
  color: #fff;
  border-color: #5C4A3A;
}

.planning-calendar .date-picker-days button.day-past .day-num {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.planning-calendar .date-picker-days button.day-free.day-past {
  color: #A89888;
}

.planning-calendar .day-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  font-size: 9px;
  line-height: 1;
  background: #5C4A3A;
  color: #fff;
  border-radius: 999px;
  padding: 2px 5px;
}

.planning-intro-meta {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #B8943C;
  font-weight: 600;
}

.planning-month-hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: #8A7355;
  text-align: center;
  line-height: 1.45;
}

.planning-upcoming {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E8DDD0;
}

.planning-upcoming h2 {
  margin: 0 0 10px;
  font-family: Cinzel, Georgia, serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #B8943C;
}

.planning-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 14px 0 0;
  font-size: 12px;
  color: #8A7355;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.legend-dot.reserved { background: #B8943C; }
.legend-dot.free { background: #E8DDD0; }

.planning-empty {
  color: #8A7355;
  text-align: center;
  padding: 24px 12px;
}

.planning-day-title {
  margin: 0 0 6px;
  font-family: Cinzel, Georgia, serif;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: capitalize;
  color: #5C4A3A;
}

.planning-day-count {
  margin: 0 0 16px;
  font-size: 13px;
  color: #8A7355;
}

.planning-event-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.planning-event-card {
  width: 100%;
  text-align: left;
  background: #FAF7F2;
  border: 1px solid #E8DDD0;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.planning-event-card.active,
.planning-event-card:hover {
  border-color: rgba(184, 148, 60, 0.55);
  background: #FFF8EB;
}

.planning-event-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.planning-event-meta {
  font-size: 12px;
  color: #8A7355;
}

.planning-event-detail h2 {
  margin: 0 0 12px;
  font-family: Cinzel, Georgia, serif;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #B8943C;
}

.planning-fields {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(120px, 38%) 1fr;
  gap: 8px 12px;
  font-size: 13px;
}

.planning-fields dt {
  margin: 0;
  color: #8A7355;
  font-weight: 600;
}

.planning-fields dd {
  margin: 0;
  color: #5C4A3A;
  white-space: pre-wrap;
  word-break: break-word;
}

.planning-error {
  background: #FFF3F0;
  border: 1px solid #E8B4A8;
  color: #8B3A2F;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.planning-documents {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.planning-document-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #E8DDD0;
  border-radius: 10px;
  background: #FAF7F2;
}

.planning-document-title {
  font-weight: 600;
  color: #5C4A3A;
}

.planning-document-number {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: #8A7355;
}

.planning-document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.planning-doc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #B8943C;
  background: #B8943C;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.planning-doc-btn.secondary {
  background: #fff;
  color: #5C4A3A;
}

.planning-doc-btn:hover:not(:disabled) {
  filter: brightness(0.96);
}

.planning-doc-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.planning-print {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-basis: 100%;
  justify-content: flex-end;
}

.planning-print-copies {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #5C4A3A;
}

.planning-print-copies input {
  width: 64px;
  padding: 6px 8px;
}

.planning-document-error {
  margin: 0 0 14px;
  font-size: 13px;
  color: #8B3A2F;
}

.planning-cancel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #E8DDD0;
}

.planning-doc-btn.danger {
  background: #fff;
  border-color: #C45A4A;
  color: #8B3A2F;
}

.planning-doc-btn.danger:hover:not(:disabled) {
  background: #FDF4F2;
}

.btn-danger {
  background: #8B3A2F;
  color: #fff;
}

.btn-danger:hover:not(:disabled) {
  filter: brightness(0.96);
}

.reservation-edit-hint {
  text-align: center;
  margin: 0 0 18px;
}

/* —— Devis (pricing quote) —— */
.devis-intro {
  margin: 0 0 18px;
  text-align: center;
}

.devis-calendar .date-picker-weekdays,
.devis-calendar .date-picker-days {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  width: 100%;
  align-items: stretch;
}

.devis-calendar .date-picker-days .day {
  aspect-ratio: auto;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
}

.devis-calendar .date-picker-days .day.day-priced {
  aspect-ratio: auto;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
  padding: 2px 1px;
  line-height: 1.1;
  overflow: hidden;
}

.devis-calendar .day-num {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
}

.devis-calendar .day-price {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.9;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
}

.devis-calendar .date-picker-days button.available .day-price {
  color: #7A6230;
}

.devis-calendar .date-picker-days button.selected {
  box-shadow: 0 0 0 2px rgba(184, 148, 60, 0.35);
}

.devis-calendar .date-picker-days button.selected .day-price {
  color: #fff;
  opacity: 0.95;
}

.devis-calendar .date-picker-days .busy .day-price {
  color: #B0A090;
  font-size: 8px;
}

@media (max-width: 600px) {
  .staff-toolbar {
    min-height: 44px;
    margin-bottom: 4px;
  }

  .wrap {
    padding-top: 16px;
  }

  .devis-calendar.date-picker,
  .devis-calendar {
    padding: 8px 4px;
  }

  .devis-calendar .date-picker-days {
    gap: 3px;
  }

  .devis-calendar .date-picker-days .day,
  .devis-calendar .date-picker-days .day.day-priced {
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    padding: 2px 0;
  }

  .devis-calendar .day-num {
    font-size: 11px;
  }

  .devis-calendar .day-price {
    font-size: 8px;
  }

  .devis-calendar .date-picker-days .busy .day-price {
    font-size: 7px;
  }
}

.devis-quote-card .devis-client-line {
  margin: 0 0 14px;
  font-size: 14px;
  color: #5C4A3A;
  font-weight: 500;
}

.devis-breakdown {
  margin: 0;
  padding: 0;
  border-top: 1px solid #E5D9C8;
}

.devis-breakdown .devis-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #E5D9C8;
  margin: 0;
}

.devis-breakdown .devis-line dt {
  margin: 0;
  font-size: 14px;
  color: #5C4A3A;
  font-weight: 400;
}

.devis-breakdown .devis-line dd {
  margin: 0;
  font-size: 15px;
  color: #3D3228;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.devis-breakdown .devis-line.muted dt,
.devis-breakdown .devis-line.muted dd {
  color: #9A8474;
  font-weight: 400;
}

.devis-breakdown .devis-total {
  border-bottom: none;
  padding-top: 14px;
}

.devis-breakdown .devis-total dt {
  font-weight: 600;
}

.devis-breakdown .devis-total dd {
  font-size: 18px;
  color: #B8943C;
}

/* —— Devis options (checkboxes) —— */
.devis-options {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.devis-option {
  margin: 0;
  border: 1px solid #E5D9C8;
  border-radius: 6px;
  background: #FFFcf7;
}

.devis-option > label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px;
  cursor: pointer;
  margin: 0;
}

.devis-option input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: #B8943C;
}

.devis-option-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.devis-option-text .lbl-fr {
  font-size: 14px;
  color: #3D3228;
  font-weight: 500;
}

.devis-option-text .lbl-ar {
  font-size: 13px;
  color: #7A6A5A;
  direction: rtl;
}

.devis-option-note {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #9A8474;
  font-weight: 400;
  line-height: 1.35;
}

.devis-option-badge,
.devis-option-price {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: #7A6230;
  background: #F5F0E3;
  border: 1px solid #E0D2B0;
  border-radius: 4px;
  padding: 3px 7px;
  white-space: nowrap;
  align-self: flex-start;
}

.devis-option-badge.soon {
  color: #8A7A6A;
  background: #F0EBE3;
  border-color: #DDD5C8;
}

.devis-option.locked > label {
  cursor: default;
  opacity: 0.95;
}

.devis-option.locked input[type="checkbox"] {
  opacity: 0.7;
  cursor: not-allowed;
}

.devis-option.coming-soon {
  opacity: 0.55;
  background: #F5F2EC;
}

.devis-option.coming-soon > label {
  cursor: not-allowed;
}

.devis-option.disabled-soft {
  opacity: 0.5;
}

.devis-option.disabled-soft > label {
  cursor: not-allowed;
}

.devis-option-tapis {
  padding-bottom: 4px;
}

.devis-tapis-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px 12px 38px;
}

.devis-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid #E5D9C8;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
}

.devis-radio.active {
  border-color: #B8943C;
  background: #F5F0E3;
}

.devis-radio input {
  accent-color: #B8943C;
}

.devis-radio .lbl-fr {
  color: #3D3228;
}

.devis-radio .lbl-ar {
  color: #7A6A5A;
  direction: rtl;
}

.devis-remise {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px dashed #D4C4A0;
  border-radius: 6px;
  background: #FBF7F0;
}

.devis-remise .lbl-fr {
  margin: 0 0 4px;
  font-size: 13px;
  color: #5C4A3A;
}

.devis-remise .lbl-ar {
  margin: 0 0 10px;
  font-size: 12px;
  color: #7A6A5A;
  direction: rtl;
  text-align: right;
}

.devis-phone {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #B8943C;
}

.devis-phone a {
  color: #B8943C;
  text-decoration: none;
}

.devis-phone a:hover {
  text-decoration: underline;
}

.devis-actions {
  display: flex;
  margin-top: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  text-align: center;
}

.devis-breakdown .devis-line dt {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.devis-breakdown .devis-line dt .lbl-ar {
  font-size: 12px;
  color: #9A8474;
  direction: rtl;
  font-weight: 400;
}

/* —— Public devis share page (WhatsApp / Messenger OG preview) —— */
.devis-share {
  max-width: 440px;
  margin: 0 auto;
  padding: 36px 22px 56px;
  text-align: center;
}

.devis-share-header {
  margin-bottom: 22px;
}

.devis-share-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(184, 148, 60, 0.45);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 0 0 5px rgba(184, 148, 60, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.devis-share-logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.devis-share-script {
  margin: 0 0 12px;
  font-family: "Great Vibes", "Segoe Script", cursive;
  font-size: 42px;
  color: #B8943C;
  line-height: 1.15;
}

.devis-share-rule {
  width: 72px;
  height: 1px;
  margin: 0 auto 12px;
  background: #B8943C;
  opacity: 0.75;
  position: relative;
}

.devis-share-rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  background: #B8943C;
  transform: translate(-50%, -50%) rotate(45deg);
}

.devis-share-venue {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #B8943C;
}

.devis-share-client {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: #3D3228;
}

.devis-share-date {
  margin: 0 0 20px;
  font-size: 14px;
  color: #7A6555;
}

.devis-share-section {
  margin: 0 0 22px;
  text-align: left;
}

.devis-share-section-title {
  margin: 0 0 4px;
  font-family: Cinzel, Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #B8943C;
  font-weight: 600;
  text-align: center;
}

.devis-share-section-sub {
  margin: 0 0 12px;
  font-size: 12px;
  color: #7A6555;
  text-align: center;
}

.devis-share-options {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #E5D9C8;
  border-radius: 8px;
  overflow: hidden;
  background: #FFFcf7;
}

.devis-share-options li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid #E5D9C8;
}

.devis-share-options li:last-child {
  border-bottom: none;
}

.devis-share-free .devis-share-options {
  border-color: #D4C4A0;
  background: linear-gradient(180deg, #FBF7F0 0%, #FFFcf7 100%);
  box-shadow: 0 4px 18px rgba(184, 148, 60, 0.08);
}

.devis-share-opt-label {
  font-size: 14px;
  color: #3D3228;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.devis-share-opt-label small {
  font-size: 11px;
  color: #9A8474;
}

.devis-share-opt-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: #7A6230;
  background: #F5F0E3;
  border: 1px solid #E0D2B0;
  border-radius: 4px;
  padding: 3px 8px;
}

.devis-share-opt-price {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: #B8943C;
  font-variant-numeric: tabular-nums;
}

.devis-share-breakdown {
  margin: 0;
  padding: 0;
  border-top: 1px solid #E5D9C8;
  text-align: left;
}

.devis-share-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #E5D9C8;
  margin: 0;
}

.devis-share-line dt {
  margin: 0;
  font-size: 14px;
  color: #5C4A3A;
}

.devis-share-line dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #3D3228;
  font-variant-numeric: tabular-nums;
}

.devis-share-total dt {
  font-weight: 600;
}

.devis-share-total dd {
  font-size: 18px;
  color: #B8943C;
}

.devis-share-muted {
  margin: 0 0 14px;
  font-size: 13px;
  color: #9A8474;
  line-height: 1.5;
}

.devis-share-included {
  margin: 0 0 22px;
  font-size: 12px;
  color: #7A6555;
  line-height: 1.55;
  text-align: left;
}

.devis-quote-free {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #E0D2B0;
  border-radius: 6px;
  background: #FBF7F0;
}

.devis-quote-free-title {
  margin: 0 0 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7A6230;
}

.devis-quote-free-title .lbl-ar {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  direction: rtl;
}

.devis-quote-free-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.devis-quote-free-list li {
  font-size: 12px;
  color: #5C4A3A;
  background: #fff;
  border: 1px solid #E5D9C8;
  border-radius: 999px;
  padding: 4px 10px;
}

.devis-free-card {
  border-color: #D4C4A0;
  box-shadow: 0 6px 20px rgba(184, 148, 60, 0.07);
}

.devis-share-contact {
  padding: 14px 16px;
  border: 1px dashed #D4C4A0;
  border-radius: 6px;
  background: #FBF7F0;
}

.devis-share-contact > p:first-child {
  margin: 0 0 8px;
  font-size: 13px;
  color: #5C4A3A;
}

.devis-share-wa {
  display: inline-flex;
  margin-top: 12px;
  text-decoration: none;
}

.devis-copy-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #9A8474;
}

.devis-share-phone {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #B8943C;
}

.devis-share-phone a {
  color: #B8943C;
  text-decoration: none;
}

.devis-share-phone a:hover {
  text-decoration: underline;
}

.devis-share-blocked {
  padding: 48px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.devis-share-blocked img {
  opacity: 0.7;
  margin-bottom: 8px;
}

/* Dashboard */
.dashboard-wrap { max-width: 980px; }

.dash-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.dash-chip {
  border: 1px solid #E8DDD0;
  background: #fff;
  color: #5C4A3A;
  border-radius: 999px;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.dash-chip:hover { border-color: #B8943C; color: #B8943C; }

.dash-range {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.dash-range label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #7A6555;
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.dash-kpi {
  background: #fff;
  border: 1px solid #E8DDD0;
  border-radius: 8px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-kpi-accent { border-color: #B8943C; background: #FBF6EA; }

.dash-kpi-label {
  font-family: Cinzel, Georgia, serif;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #B8943C;
}

.dash-kpi-value { font-size: 22px; color: #3F3226; }

.dash-kpi-note { font-size: 11px; color: #9A8474; }

.dash-table-wrap { overflow-x: auto; }

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.dash-table th {
  text-align: left;
  font-family: Cinzel, Georgia, serif;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #B8943C;
  padding: 8px 10px;
  border-bottom: 1px solid #E8DDD0;
  white-space: nowrap;
}

.dash-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #F1E9DD;
  vertical-align: top;
}

.dash-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #FBF6EA;
  border: 1px solid #B8943C;
  color: #8A6D1F;
  font-size: 11px;
  white-space: nowrap;
}

/* Themed date field (dashboard range) */
.dash-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-field-label {
  font-size: 12px;
  color: #7A6555;
}

.date-field {
  position: relative;
  min-width: 170px;
}

.date-field-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #E0D5C8;
  border-radius: 6px;
  background: #FDFBF7;
  color: #5C4A3A;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.date-field-btn:hover,
.date-field-btn[aria-expanded="true"] { border-color: #B8943C; }

.date-field-icon { color: #B8943C; font-size: 12px; }

.date-field-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: default;
}

.date-field-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 31;
  width: 300px;
  max-width: calc(100vw - 32px);
  box-shadow: 0 8px 24px rgba(92, 74, 58, .18);
  border-radius: 6px;
}

/* CIN scanner (camera view) */
body.cin-open { overflow: hidden; }

.cin-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
}

.cin-stage {
  position: absolute;
  inset: 0 0 var(--cin-panel, 214px) 0;
  overflow: hidden;
  background: #111;
}

.cin-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The card frame; the huge shadow dims everything outside it. */
.cin-guide {
  position: absolute;
  border: 3px solid rgba(255, 255, 255, .92);
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55);
  transition: border-color .15s ease, box-shadow .15s ease;
  pointer-events: none;
}

.cin-guide.reading {
  border-color: #F0B429;
}

.cin-guide.ready {
  border-color: #2ecc71;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55), 0 0 18px 3px rgba(46, 204, 113, .75);
}

/* The one line that tells what to do now: large, on a solid pill so it reads on any camera picture. */
.cin-status {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  max-width: 94%;
  margin: 0;
  padding: 9px 18px;
  border-radius: 999px;
  text-align: center;
  font-size: clamp(15px, 2.6vw, 21px);
  line-height: 1.25;
  color: #fff;
  background: rgba(20, 16, 12, .78);
}
.cin-status:empty { display: none; }
.cin-status.ok { background: #1e8f4e; font-weight: 700; }
.cin-status.warn { background: #b86a12; }

/* Step bar: which side is being scanned. */
.cin-steps {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(20, 16, 12, .78);
}
.cin-step { display: flex; align-items: center; gap: 7px; opacity: .55; font-size: clamp(14px, 2.3vw, 18px); }
.cin-step.active { opacity: 1; font-weight: 700; color: #F0D58A; }
.cin-step.done { opacity: 1; color: #7fe0a4; }
.cin-step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid currentColor; font-size: 13px; font-weight: 700;
}
.cin-step.done .cin-step-n { background: #1e8f4e; border-color: #1e8f4e; color: #fff; }
.cin-step-line { width: 28px; height: 2px; background: rgba(255, 255, 255, .4); }

.cin-heading { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 4px; }
.cin-pictogram { flex: none; line-height: 0; }

.cin-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--cin-panel, 214px);
  padding: 10px 16px 14px;
  background: #1c1713;
  text-align: center;
  overflow-y: auto;
}

.cin-title {
  margin: 0 0 2px;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(16px, 2.6vw, 21px);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #D9B866;
}

.cin-help {
  margin: 0 0 10px;
  font-size: clamp(13px, 2vw, 16px);
  line-height: 1.4;
  color: #d8cdbd;
}

.cin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.cin-btn {
  border: 1px solid #6e5d4a;
  background: transparent;
  color: #f3eadb;
  border-radius: 6px;
  padding: 10px 16px;
  min-height: 44px;
  font: inherit;
  font-size: clamp(14px, 2vw, 16px);
  cursor: pointer;
}

.cin-btn:disabled { opacity: .45; cursor: not-allowed; }

.cin-btn-primary {
  background: #B8943C;
  border-color: #B8943C;
  color: #fff;
}

.cin-btn-ghost { border-color: transparent; color: #b9ad9b; }

.cin-busy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(0, 0, 0, .93);
  z-index: 2;
}

.cin-busy[hidden] { display: none; }

.cin-busy-text { margin: 0; font-size: 15px; }

.cin-spinner {
  width: 38px;
  height: 38px;
  border: 4px solid rgba(255, 255, 255, .25);
  border-top-color: #D9B866;
  border-radius: 50%;
  animation: cin-spin 0.9s linear infinite;
}

@keyframes cin-spin { to { transform: rotate(360deg); } }

/* Scan block in the reservation form */
.cin-scan {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border: 1px dashed #C9A962;
  border-radius: 8px;
  background: #FBF6EA;
}

.cin-scan-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.cin-scan-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }

.cin-scan-thumb {
  display: block;
  width: 150px;
  border: 1px solid #E0D5C8;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.cin-scan-thumb img { display: block; width: 100%; height: auto; }

.cin-scan-notes { margin: 0; padding-left: 18px; font-size: 12px; color: #7A6555; }

.cin-filled { background: #F3FAF4 !important; border-color: #8CC79A !important; }

/* Filled by the scan but read with doubt: to be checked */
.cin-uncertain { background: #FFF6E5 !important; border-color: #E0A93B !important; }

.cin-busy-step {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(16px, 2.6vw, 22px);
  letter-spacing: .08em;
  color: #D9B866;
}
.cin-busy-text { font-size: clamp(15px, 2.4vw, 19px); }

/* Between the two sides. */
.cin-flip {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: rgba(10, 8, 6, .94);
}
.cin-flip[hidden] { display: none; }
.cin-flip-icon {
  width: 86px; height: 86px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 50px; font-weight: 700; color: #fff; background: #1e8f4e;
}
.cin-flip.warn .cin-flip-icon { background: #b86a12; }
.cin-flip-title { margin: 0; font-family: Cinzel, Georgia, serif; font-size: clamp(22px, 4vw, 32px); letter-spacing: .06em; text-transform: uppercase; color: #F0D58A; }
.cin-flip-text { margin: 0; max-width: 520px; font-size: clamp(16px, 2.8vw, 22px); line-height: 1.4; color: #f3eadb; }

/* ---------------------------------------------------------------------------------------------------------------
   Event page (public): catalog by part, quantities per product, running total
   --------------------------------------------------------------------------------------------------------------- */
.evt-wrap { max-width: 980px; padding-bottom: 96px; }

.evt-section h2 { margin-bottom: 4px; }

.evt-group {
  margin: 26px 0 12px;
  font-family: Cinzel, Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #B8943C;
  text-align: center;
}

/* One product per line, shop-menu style: slim rounded band, name + price and quantity on the left, photo on the right. */
.evt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.evt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px;
  align-items: stretch;
  min-height: 84px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(90deg, #F3E6D3 0%, #FAF2E6 100%);
  border: 1px solid #EADBC4;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.evt-row.has-qty { border-color: #B8943C; box-shadow: 0 4px 14px rgba(184, 148, 60, .22); }

.evt-body { display: flex; align-items: center; justify-content: space-between; gap: 8px 18px; padding: 8px 14px 8px 20px; min-width: 0; }
.evt-info { min-width: 0; }

.evt-photo {
  display: block;
  width: 100%;
  height: 0;          /* a tall photo must not stretch the row: it fills the height the text sets */
  min-height: 100%;
  object-fit: cover;
  background: #F3ECE1;
}

.evt-name {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #7A2E2A;
}
.evt-price { margin: 2px 0 0; font-family: Cinzel, Georgia, serif; font-size: 17px; font-weight: 600; color: #7A2E2A; }
.evt-price span { font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.evt-price-edit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin: 2px 0 0; font-family: Cinzel, Georgia, serif; color: #7A2E2A; }
.evt-price-input {
  box-sizing: border-box;
  width: 82px;
  height: 32px;
  padding: 0 8px;
  text-align: right;
  font: inherit;
  font-size: 16px;   /* 16px: no zoom when the field is focused on iOS */
  font-weight: 600;
  color: #7A2E2A;
  background: rgba(255, 255, 255, .7);
  border: 1px dashed #D9C9B0;
  border-radius: 8px;
}
.evt-price-input:focus { outline: 2px solid #B8943C; outline-offset: 1px; background: #fff; }
.evt-price-input.edited { border: 1px solid #B8943C; background: #fff; }
.evt-price-unit { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.evt-list-price { font-family: inherit; font-size: 12px; font-style: normal; color: #9A8474; text-decoration: line-through; }
.evt-price-reset { width: 28px; height: 28px; padding: 0; border: 1px solid #D9C9B0; border-radius: 50%; background: #fff; color: #7A2E2A; font-size: 15px; line-height: 1; cursor: pointer; }
.evt-price-reset:hover { border-color: #B8943C; color: #B8943C; }
.evt-email-label { margin-top: 12px; }

.evt-note { margin-left: 8px; font-family: inherit; font-size: 11px; font-style: normal; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: #9A8474; }

.evt-controls { display: flex; align-items: center; gap: 12px; flex: none; }
.evt-qty { display: flex; align-items: center; gap: 4px; }
.evt-step {
  width: 36px;
  height: 36px;
  border: 1px solid #D9C9B0;
  border-radius: 50%;
  background: #fff;
  color: #7A2E2A;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.evt-step:hover:not(:disabled) { border-color: #B8943C; color: #B8943C; }
.evt-step:disabled { opacity: .35; cursor: default; }
.evt-qty-input {
  box-sizing: border-box;
  padding: 0 4px;   /* the global input padding left no room for 3-4 digit quantities */
  width: 76px;
  height: 36px;
  text-align: center;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #5C4A3A;
  border: 1px solid #E0D5C8;
  border-radius: 18px;
  background: #fff;
  -moz-appearance: textfield;
  appearance: textfield;
}
.evt-qty-input::-webkit-outer-spin-button,
.evt-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.evt-qty-input:focus { outline: 2px solid #B8943C; outline-offset: 1px; }

.evt-line { margin: 0; min-width: 76px; text-align: right; font-size: 15px; font-weight: 700; color: #5C4A3A; }
.evt-line-empty { font-weight: 400; color: #C9BBA8; }

/* Fixed lines (included services): same band, no photo, no stepper. */
.evt-row-nophoto { grid-template-columns: minmax(0, 1fr); }
.evt-row-nophoto .evt-body { padding: 10px 18px 10px 20px; }

.evt-row-fixed { grid-template-columns: minmax(0, 1fr); background: #F7F1E6; }
.evt-row-fixed .evt-body { padding: 10px 18px 10px 20px; }
.evt-fixed-qty { margin: 0; font-size: 13px; color: #9A8474; }

.evt-duration-label { margin-top: 16px; }
.evt-duration { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.evt-duration-btn {
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid #D9C9B0;
  border-radius: 22px;
  background: #fff;
  color: #5C4A3A;
  font-family: Cinzel, Georgia, serif;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.evt-duration-btn:hover { border-color: #B8943C; }
.evt-duration-btn.selected { background: #B8943C; border-color: #B8943C; color: #fff; }
.evt-date-label { margin: 0 0 6px; font-size: 12px; color: #7A6555; }
/* Centered: label, picker button and its calendar panel share the same 300 px column. */
.evt-date-card { text-align: center; }
.evt-date-card .date-field { width: 300px; max-width: 100%; margin: 0 auto; text-align: left; }
.evt-date-card .date-field-panel { left: 50%; transform: translateX(-50%); }
.date-field-placeholder { color: #9A8474; }

.evt-send .hint { text-transform: none; letter-spacing: 0; font-size: 13px; line-height: 1.5; margin-bottom: 14px; }
.evt-send .actions { margin-top: 14px; }
/* Honeypot: off-screen, not display:none, so robots still fill it in. */
.evt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.evt-subtotal { margin: 16px 0 0; text-align: right; font-size: 14px; color: #7A6755; }
.evt-subtotal strong { font-size: 16px; color: #5C4A3A; }

/* The running total stays in view while the visitor scrolls the catalog. */
.evt-bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px -4px 0;
  padding: 12px 16px;
  background: rgba(249, 246, 240, .96);
  backdrop-filter: blur(6px);
  border: 1px solid #E8DDD0;
  border-radius: 12px;
  box-shadow: 0 -6px 24px rgba(92, 74, 58, .1);
}
.evt-bar-total { display: flex; flex-direction: column; }
.evt-bar-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #9A8474; }
.evt-bar-amount { font-family: Cinzel, Georgia, serif; font-size: 22px; color: #5C4A3A; }
.evt-reset { padding: 10px 16px; }

@media (max-width: 640px) {
  .evt-row { grid-template-columns: minmax(0, 1fr) 96px; border-radius: 18px; }
  .evt-body { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 8px 6px 8px 14px; }
  .evt-controls { gap: 2px 8px; flex-wrap: wrap; }
  .evt-name { font-size: 13px; }
  .evt-price { font-size: 15px; }
  .evt-note { display: block; margin: 1px 0 0; }
  .evt-step { width: 34px; height: 34px; }
  .evt-qty-input { width: 64px; height: 34px; }
  .evt-line { min-width: 0; font-size: 13px; white-space: nowrap; }
}

/* ---------------------------------------------------------------------------------------------------------------
   Staff: card with actions + share sheet (same layout as the wedding invitation share sheet)
   --------------------------------------------------------------------------------------------------------------- */
.staff-hub-card-actions { display: flex; flex-direction: column; }
.staff-hub-card-actions:hover { transform: none; }
.staff-hub-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.staff-hub-buttons .btn { padding: 10px 18px; }

.share-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, .5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.share-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 100vh;
  overflow-y: auto;
  border-radius: 18px 18px 0 0;
  padding: 20px 20px calc(28px + env(safe-area-inset-bottom));
  background: #F9F6F0;
  border: 1px solid #E3D3B1;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, .15);
}
.share-handle { width: 36px; height: 4px; border-radius: 2px; margin: 0 auto 18px; background: #E3D3B1; }
.share-title {
  margin: 0 0 4px;
  text-align: center;
  font-family: Cinzel, Georgia, serif;
  font-size: 14px;
  letter-spacing: .08em;
  color: #B8943C;
}
.share-sub { margin: 0 0 18px; text-align: center; font-size: 13px; font-style: italic; color: #7A6555; }
.share-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.share-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 4px;
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(184, 148, 60, .15);
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  color: #5C4A3A;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.share-app:hover { border-color: rgba(184, 148, 60, .55); }
.share-app-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.share-icon-native { background: linear-gradient(135deg, #25D366, #E1306C); }
.share-icon-whatsapp { background: #25D366; }
.share-icon-messenger { background: #0084FF; }
.share-icon-email { background: #B8943C; }
.share-app-label { font-family: Cinzel, Georgia, serif; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.share-url {
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(184, 148, 60, .3);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  color: #5C4A3A;
  word-break: break-all;
}
.share-copy, .share-close { display: block; width: 100%; }
.share-close { margin-top: 12px; }
.share-hint { margin: 8px 0 0; text-align: center; font-size: 12px; font-style: italic; color: #7A6555; }

@media (min-width: 640px) {
  .share-overlay { align-items: center; }
  .share-sheet { border-radius: 18px; }
}

/* —— Liste des invités (staff + porte) —— */
.gl-wrap { max-width: 980px; }
.gl-hint { font-size: 13px; color: #8a7a68; margin: 0 0 12px; }
.gl-msg { padding: 10px 14px; border-radius: 6px; font-size: 13px; margin: 0 0 14px; }
.gl-msg-ok { background: #edf5ee; color: #3d6b45; }
.gl-msg-err { background: #fbeeee; color: #a04444; }
.gl-pin { text-align: center; border-color: #B8943C; }
.gl-pin-code { font-family: Cinzel, Georgia, serif; font-size: 40px; letter-spacing: .3em; color: #5C4A3A; margin: 6px 0 12px; }
.gl-new { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; }
.gl-list-item { display: block; width: 100%; text-align: left; background: #FDFBF7; border: 1px solid #E8DDD0; border-radius: 6px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; font: inherit; color: inherit; }
.gl-list-item:hover { border-color: #B8943C; }
.gl-list-name { display: block; font-weight: 600; }
.gl-list-meta { display: block; font-size: 12.5px; color: #8a7a68; margin-top: 2px; }
.gl-stats { margin: 0; }
.gl-flag-count, .gl-flag { color: #b5651d; }
.gl-link { word-break: break-all; background: #FDFBF7; border: 1px dashed #E0D5C8; border-radius: 6px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.gl-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.gl-buttons .btn { padding: 10px 16px; }
.gl-import { margin-top: 12px; font-size: 13.5px; }
.gl-import ul { margin: 6px 0 0; padding-left: 20px; }
.gl-filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; align-items: center; margin-bottom: 12px; }
.gl-check { display: flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.gl-check input { width: auto; }
.gl-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 16px; padding: 14px; background: #FDFBF7; border: 1px solid #E8DDD0; border-radius: 6px; }
.gl-form .gl-buttons { grid-column: 1 / -1; margin: 0; }
.gl-table-wrap { overflow-x: auto; }
.gl-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.gl-table th { text-align: left; font-family: Cinzel, Georgia, serif; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #B8943C; padding: 6px 8px; border-bottom: 1px solid #E0D5C8; }
.gl-table td { padding: 7px 8px; border-bottom: 1px solid #F0E8DC; vertical-align: top; }
.gl-table tr.gl-arrived td { background: #f1f8f2; }
.gl-actions { white-space: nowrap; text-align: right; }
.gl-link-btn { background: none; border: none; color: #8a6d1f; cursor: pointer; font: inherit; font-size: 13px; padding: 2px 6px; text-decoration: underline; }
.gl-danger { color: #a04444; }
@media (max-width: 640px) {
  .gl-new, .gl-filters, .gl-form { grid-template-columns: 1fr; }
}

/* Porte : une main, un téléphone, du soleil — gros éléments, fort contraste */
.gd-wrap { max-width: 640px; margin: 0 auto; padding: 14px 14px 80px; }
.gd-pin { text-align: center; margin-top: 8vh; }
.gd-title { font-family: Cinzel, Georgia, serif; font-size: 20px; color: #5C4A3A; margin: 0 0 6px; }
.gd-sub { color: #8a7a68; margin: 0 0 16px; font-size: 14px; }
.gd-pin-input { text-align: center; font-size: 26px; letter-spacing: .4em; padding: 14px; margin-bottom: 14px; }
.gd-pin-btn { width: 100%; padding: 16px; font-size: 13px; }
.gd-error { color: #a04444; font-size: 14px; margin: 12px 0 0; text-align: center; }
.gd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; position: sticky; top: 0; z-index: 5; background: #F9F6F0; padding: 6px 0 8px; }
.gd-list-name { font-family: Cinzel, Georgia, serif; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #B8943C; }
.gd-counts { font-size: 14px; margin-top: 2px; }
.gd-count-main b { font-size: 24px; color: #3d6b45; }
.gd-count-rest { color: #8a7a68; }
.gd-refresh { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #E0D5C8; background: #fff; font-size: 20px; color: #5C4A3A; cursor: pointer; }
.gd-search { position: relative; margin: 6px 0 10px; }
.gd-search input { font-size: 18px; padding: 14px 40px 14px 14px; }
.gd-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: none; background: none; font-size: 18px; color: #8a7a68; cursor: pointer; }
.gd-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.gd-tab { flex: 1; padding: 9px 4px; border: 1px solid #E0D5C8; background: #fff; border-radius: 6px; font: inherit; font-size: 13.5px; color: #5C4A3A; cursor: pointer; }
.gd-tab span { color: #8a7a68; font-size: 12px; }
.gd-tab.active { background: #B8943C; border-color: #B8943C; color: #fff; }
.gd-tab.active span { color: #fff; }
.gd-list { list-style: none; margin: 0; padding: 0; }
.gd-item { background: #fff; border: 1px solid #E8DDD0; border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.gd-item.arrived { background: #f1f8f2; border-color: #cfe3d2; }
.gd-item.open { border-color: #B8943C; box-shadow: 0 0 0 2px rgba(184,148,60,.18); }
.gd-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: none; padding: 12px 12px; min-height: 60px; cursor: pointer; font: inherit; color: inherit; }
.gd-mark { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #E0D5C8; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: bold; }
.gd-item.arrived .gd-mark { background: #3d6b45; border-color: #3d6b45; }
.gd-info { flex: 1; min-width: 0; }
.gd-name { display: block; font-size: 17px; font-weight: 600; line-height: 1.25; }
.gd-meta { display: block; font-size: 12.5px; color: #8a7a68; margin-top: 2px; }
.gd-time { flex: none; font-size: 13px; color: #3d6b45; }
.gd-panel { padding: 4px 14px 14px; border-top: 1px solid #F0E8DC; }
.gd-panel-text { margin: 10px 0; }
.gd-note { background: #FDFBF7; border-left: 3px solid #B8943C; padding: 8px 10px; margin: 10px 0; font-size: 14px; }
.gd-flag { border-left-color: #b5651d; color: #7a4310; }
.gd-stepper { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 14px 0; font-size: 16px; }
.gd-stepper button { width: 54px; height: 54px; border-radius: 50%; border: 1px solid #B8943C; background: #fff; font-size: 28px; line-height: 1; color: #8a6d1f; cursor: pointer; }
.gd-stepper button:disabled { opacity: .35; }
.gd-stepper b { font-size: 24px; }
.gd-panel-actions { display: flex; gap: 10px; }
.gd-panel-actions .btn { flex: 1; padding: 14px 10px; }
.gd-panel-actions .gd-go { flex: 2; background: #3d6b45; font-size: 12.5px; }
.gd-more { text-align: center; color: #8a7a68; font-size: 13px; margin: 12px 0; }
.gd-add-open { width: 100%; padding: 14px; margin-top: 10px; }
.gd-add { margin-top: 12px; display: grid; gap: 10px; }
.gd-scope { font-size: 12.5px; color: #8a6d1f; margin-top: 2px; }
.gd-chips { display: flex; flex-wrap: nowrap; gap: 6px; margin: 0 -14px 8px; padding: 0 14px 2px; overflow-x: auto; scrollbar-width: none; }
.gd-chips::-webkit-scrollbar { display: none; }
.gd-chips-wrap { flex-wrap: wrap; margin: 0 0 8px; padding: 0; overflow: visible; }
.gd-chips-wrap .gd-chip { flex: 1 1 auto; text-align: center; }
.gd-chip { flex: none; white-space: nowrap; padding: 8px 12px; border: 1px solid #E0D5C8; background: #fff; border-radius: 999px; font: inherit; font-size: 13px; color: #5C4A3A; cursor: pointer; text-align: left; }
.gd-chip span { color: #8a7a68; font-size: 12px; margin-left: 2px; }
.gd-chip.active { background: #5C4A3A; border-color: #5C4A3A; color: #fff; }
.gd-chip.active span { color: #e8ddd0; }

/* —— Facturation événements —— */
.inv-card { max-width: 100%; }
.inv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.inv-grid .inv-wide { grid-column: 1 / -1; }
.inv-grid label { display: block; margin-bottom: 4px; }
.inv-table-wrap { overflow-x: auto; }
.inv-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.inv-table th { text-align: left; font-family: Cinzel, Georgia, serif; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #B8943C; padding: 6px 6px; border-bottom: 1px solid #E0D5C8; }
.inv-table td { padding: 6px; border-bottom: 1px solid #F0E8DC; vertical-align: middle; }
.inv-num { text-align: right; white-space: nowrap; }
.inv-unit { color: #8a7a68; font-size: 12px; }
.inv-empty { color: #8a7a68; text-align: center; padding: 14px; }
.inv-rate { width: auto; min-width: 74px; padding: 6px 8px; }
.inv-copies { width: auto; margin-left: 6px; padding: 4px 8px; }
.inv-remove { border: none; background: none; color: #a04444; cursor: pointer; font-size: 15px; }
.inv-add { display: grid; grid-template-columns: 1fr 70px 100px auto auto; gap: 8px; align-items: center; margin-top: 12px; }
.inv-small { text-align: right; }
.inv-check { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; margin: 12px 0; }
.inv-check input[type="checkbox"] { width: auto; }
.inv-warn { color: #a04444; }
.inv-totals { width: 100%; max-width: 380px; margin-left: auto; border-collapse: collapse; font-size: 14px; }
.inv-totals td { padding: 4px 0; }
.inv-totals td:last-child { text-align: right; white-space: nowrap; }
.inv-muted td { color: #8a7a68; font-size: 13px; }
.inv-net td { border-top: 1px solid #B8943C; padding-top: 8px; font-size: 16px; font-weight: 600; color: #8a6d1f; }
.inv-done { text-align: center; }
.inv-number { font-family: Cinzel, Georgia, serif; font-size: 26px; color: #5C4A3A; margin: 6px 0; }
@media (max-width: 640px) {
  .inv-grid { grid-template-columns: 1fr; }
  .inv-add { grid-template-columns: 1fr 1fr; }
  .inv-add > :first-child { grid-column: 1 / -1; }
}
