.staff-auth{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100vh;
  padding:20px;
}

.staff-auth-card{
  width:100%;
  max-width:440px;
  padding:28px;
  border-radius:22px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,0.06);
  box-shadow:var(--shadow);
}

.staff-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:14px;
  margin-top:20px;
}

.staff-card{
  text-align:left;
  padding:24px;
  cursor:pointer;
  min-height:156px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}

.staff-card:hover{
  transform:translateY(-2px);
}

.staff-stack{
  display:grid;
  gap:24px;
}

.staff-form{
  display:grid;
  gap:16px;
}

.staff-two-col{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.staff-list{
  display:grid;
  gap:12px;
  margin-top:14px;
}

.staff-item{
  border:1px solid var(--stroke);
  background:rgba(255,255,255,0.05);
  border-radius:18px;
  padding:14px;
}

.staff-item-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  flex-wrap:wrap;
}

.staff-item-title{
  margin:0;
  font-family:var(--serif);
  font-size:20px;
  font-weight:700;
  line-height:1.1;
}

.staff-item-meta{
  margin:6px 0 0;
  color:var(--muted);
  font-size:14px;
}

.staff-total{
  margin:12px 0 0;
  color:var(--text);
  font-weight:700;
}

.staff-empty{
  color:var(--muted);
  font-size:14px;
}

.staff-form-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.staff-sale-composition{
  display:grid;
  gap:14px;
}

.staff-sale-composition-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.staff-scent-list{
  display:grid;
  gap:12px;
}

.staff-scent-row{
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(120px,0.7fr) auto;
  gap:12px;
  align-items:end;
}

.staff-shift-warning{
  display:grid;
  gap:12px;
  justify-items:start;
  margin-top:12px;
  padding:14px;
  border:1px solid var(--stroke);
  border-radius:18px;
  background:rgba(255,255,255,0.04);
}

.sales-form.is-disabled{
  opacity:0.55;
  pointer-events:none;
}

.sales-form .form-group label{
  display:block;
  margin-bottom:8px;
  font-size:14px;
  font-weight:700;
  color:var(--text);
}

.sales-form .form-group input,
.sales-form .form-group select,
.sales-form .form-group textarea{
  width:100%;
  min-height:46px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,0.08);
  color:var(--text);
  font:inherit;
  box-sizing:border-box;
}

.sales-form .form-group input:focus,
.sales-form .form-group select:focus,
.sales-form .form-group textarea:focus{
  outline:none;
  border-color:rgba(255,255,255,0.32);
  box-shadow:0 0 0 3px rgba(255,255,255,0.08);
}

.inventory-qty{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:64px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,0.08);
  font-weight:700;
}

.inventory-qty.is-low{
  color:#ffe7a0;
  border-color:rgba(255,200,100,0.3);
  background:rgba(255,180,60,0.12);
}

.inventory-movement-list{
  display:grid;
  gap:10px;
  margin-top:14px;
}

.inventory-movement-item{
  border:1px solid var(--stroke);
  background:rgba(255,255,255,0.04);
  border-radius:16px;
  padding:12px;
}

.hours-status{
  margin-top:14px;
}

.hours-clock-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.customer-profile-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  width:100%;
  max-width:none;
}

.customer-profile-head-actions{
  display:flex;
  justify-content:flex-end;
  margin-left:auto;
}

.hours-clock-row .btn{
  width:auto;
}

/* ===== STAFF LOGIN ===== */

.staff-login-brand{
  display:grid;
  justify-items:center;
  text-align:center;
  margin-bottom:18px;
}

.staff-login-logo{
  width:88px;
  height:88px;
  object-fit:contain;
  margin-bottom:14px;
  border-radius:999px;
  box-shadow:0 10px 30px rgba(0,0,0,0.18);
}

.staff-auth-card .card-title{
  text-align:center;
  margin-bottom:8px;
}

.staff-login-note{
  margin:0;
  max-width:30ch;
  text-align:center;
}

/* Form layout */
.admin-form{
  display:grid;
  gap:16px;
}

/* Label */
.form-group label{
  font-size:14px;
  font-weight:700;
  color:var(--text);
  margin-bottom:6px;
  display:block;
}

/* Inputs */
.form-group input{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,0.08);
  color:var(--text);
  font-size:15px;
  font-weight:500;
  outline:none;
  transition:all 0.15s ease;
  box-sizing:border-box;
}

.form-group textarea{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,0.08);
  color:var(--text);
  font-size:15px;
  font-weight:500;
  outline:none;
  transition:all 0.15s ease;
  box-sizing:border-box;
  resize:vertical;
  min-height:112px;
}

/* Focus */
.form-group input:focus{
  border-color:rgba(255,255,255,0.4);
  box-shadow:0 0 0 3px rgba(255,255,255,0.08);
}

.form-group textarea:focus{
  border-color:rgba(255,255,255,0.4);
  box-shadow:0 0 0 3px rgba(255,255,255,0.08);
}

/* Button */
.admin-form .btn{
  margin-top:8px;
  width:100%;
  justify-content:center;
}

/* Status text */
.admin-status{
  text-align:center;
  font-size:14px;
  margin-top:6px;
}

.partner-apply-card{
  max-width:520px;
}

.partner-apply-actions{
  justify-content:center;
  gap:12px;
  margin:10px 0 6px;
}

.partner-apply-actions .gsi-material-button{
  max-width:300px;
}

.partner-apply-form{
  margin-top:10px;
}

.staff-profile-hero{
  position:relative;
  margin:-16px -16px 14px;
}

.staff-profile-cover{
  height:120px;
  border-radius:18px 18px 0 0;
  background:linear-gradient(135deg, rgba(255,255,255,0.24), rgba(255,255,255,0.08));
}

.staff-profile-avatar-wrap{
  position:absolute;
  left:16px;
  bottom:-28px;
}

.staff-profile-avatar{
  width:92px;
  height:92px;
  border-radius:999px;
  object-fit:cover;
  border:4px solid rgba(109,50,58,0.9);
  background:rgba(255,255,255,0.16);
  box-shadow:0 10px 24px rgba(0,0,0,0.22);
}

.availability-weekdays{
  display:grid;
  grid-template-columns:repeat(7, minmax(0,1fr));
  gap:8px;
  margin-bottom:8px;
}

.availability-weekdays span{
  text-align:center;
  font-size:12px;
  color:var(--muted);
}

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

.availability-cell{
  min-height:86px;
  border:1px solid var(--stroke);
  border-radius:12px;
  background:rgba(255,255,255,0.05);
  color:var(--text);
  padding:10px;
  text-align:left;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  cursor:pointer;
}

.availability-cell.is-empty{
  background:transparent;
  cursor:default;
}

.availability-cell.is-today{
  border-color:rgba(255,255,255,0.45);
}

.availability-cell.is-available{
  background:rgba(74, 160, 92, 0.22);
}

.availability-cell.is-preferred{
  background:rgba(235, 182, 67, 0.24);
}

.availability-cell.is-unavailable{
  background:rgba(188, 73, 88, 0.25);
}

.availability-cell:focus-visible{
  outline:2px solid rgba(255,255,255,0.48);
  outline-offset:2px;
}

.availability-cell.is-selected{
  border-color:rgba(255,255,255,0.55);
  box-shadow:0 0 0 2px rgba(255,255,255,0.16) inset, 0 6px 18px rgba(0,0,0,0.14);
  transform:translateY(-1px);
}

.availability-day{
  font-weight:700;
}

.availability-count{
  font-size:12px;
  color:var(--muted);
}

@media (max-width:640px){
  .staff-grid{
    grid-template-columns:1fr;
  }

  .staff-two-col{
    grid-template-columns:1fr;
  }

  .hours-clock-row{
    flex-direction:column;
  }

  .hours-clock-row .btn{
    width:100%;
  }

  .staff-form-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .staff-form-actions .btn{
    width:100%;
  }

  .staff-scent-row{
    grid-template-columns:1fr;
  }

  .availability-grid,
  .availability-weekdays{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }

  .staff-shift-warning{
    justify-items:stretch;
  }

  .staff-shift-warning .btn{
    width:100%;
  }
}

@media (max-width:480px){
  .staff-auth-card{
    padding:22px;
  }

  .staff-login-logo{
    width:76px;
    height:76px;
  }
}
.staff-current-shift{
  margin-bottom:18px;
}

.staff-dashboard-topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  margin-bottom:22px;
}

.staff-dashboard-topbar > div:first-child{
  flex:1 1 auto;
  min-width:0;
}

.staff-dashboard-topbar #logoutBtn{
  flex:0 0 auto;
  width:auto;
  white-space:nowrap;
}

.staff-shift-active{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  flex-wrap:wrap;
}

.staff-shift-duration{
  font-size:20px;
  font-weight:700;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,0.08);
}

.staff-shift-warning{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
/* ===== INVENTORY CHECK UI ===== */

.inventory-check-card{
  border:1px solid var(--stroke);
  background:rgba(255,255,255,0.05);
  border-radius:18px;
  padding:16px;
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
}

.inventory-check-left{
  flex:1;
}

.inventory-check-title{
  font-family:var(--serif);
  font-size:20px;
  font-weight:700;
  margin:0;
}

.inventory-check-meta{
  margin:6px 0 0;
  font-size:14px;
  color:var(--muted);
}

.inventory-check-status{
  margin-top:6px;
  font-size:13px;
  font-weight:600;
}

/* Status colors */
.inventory-check-status.is-ok{
  color:rgba(180,255,200,0.9);
}

.inventory-check-status.is-over{
  color:#d8ebff;
}

.inventory-check-status.is-short{
  color:#ffe7a0;
}

/* Right side input */
.inventory-check-right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
}

.inventory-check-label{
  font-size:12px;
  color:var(--muted);
}

.inventory-check-input{
  width:90px;
  padding:10px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,0.08);
  color:var(--text);
  font-size:18px;
  font-weight:700;
  text-align:center;
}

/* Highlight states */
.inventory-check-input.is-ok{
  border-color:rgba(120,255,180,0.4);
}

.inventory-check-input.is-over{
  border-color:rgba(120,180,255,0.4);
}

.inventory-check-input.is-short{
  border-color:rgba(255,180,60,0.4);
}

/* Mobile */
@media (max-width:640px){
  .inventory-check-card{
    flex-direction:column;
    align-items:flex-start;
  }

  .inventory-check-right{
    width:100%;
    align-items:stretch;
  }

  .inventory-check-input{
    width:100%;
  }
}
/* ===== INVENTORY CHECK FORM POLISH ===== */

.inventory-check-toolbar{
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.inventory-check-toolbar .form-group{
  min-width: 220px;
  max-width: 280px;
}

.inventory-check-toolbar select{
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  box-sizing: border-box;
  outline: none;
}

.inventory-check-toolbar select:focus{
  border-color: rgba(255,255,255,0.36);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}

.inventory-check-card{
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.inventory-check-left{
  flex: 1 1 auto;
  min-width: 0;
}

.inventory-check-right{
  flex: 0 0 220px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.inventory-check-label{
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-align: right;
}

.inventory-check-input{
  width: 100%;
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.10);
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.inventory-check-input:focus{
  border-color: rgba(255,255,255,0.38);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}

.inventory-check-input.is-ok{
  border-color: rgba(120,255,180,0.35);
  background: rgba(120,255,180,0.06);
}

.inventory-check-input.is-over{
  border-color: rgba(120,180,255,0.4);
  background: rgba(120,180,255,0.08);
}

.inventory-check-input.is-short{
  border-color: rgba(255,180,60,0.4);
  background: rgba(255,180,60,0.08);
}

.inventory-check-status{
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
}

.inventory-check-status.is-ok{
  color: rgba(180,255,200,0.95);
}

.inventory-check-status.is-over{
  color: #d8ebff;
}

.inventory-check-status.is-short{
  color: #ffe7a0;
}

@media (max-width: 640px){
  .staff-dashboard-topbar{
    flex-direction:row;
    align-items:flex-start;
  }

  .staff-dashboard-topbar #logoutBtn{
    min-height:44px;
    padding:10px 16px;
  }

  .inventory-check-toolbar{
    align-items: stretch;
  }

  .inventory-check-toolbar .form-group{
    min-width: 100%;
    max-width: 100%;
  }

  .inventory-check-card{
    flex-direction: column;
    align-items: stretch;
  }

  .inventory-check-right{
    flex: 1 1 auto;
    width: 100%;
    margin-left: 0;
  }

  .inventory-check-label{
    text-align: left;
  }
}
/* ===== HOURS DROPDOWN POLISH ===== */

.hours-select{
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.10);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  outline: none;
  box-sizing: border-box;

  /* remove default browser look */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* custom dropdown arrow */
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.8) 50%),
    linear-gradient(135deg, rgba(255,255,255,0.8) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 4px),
    calc(100% - 12px) calc(50% - 4px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.hours-select:focus{
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}

/* ===== BACKOFFICE DESIGN SYSTEM ALIGNMENT ===== */

body:not(.customer-page){
  background:
    radial-gradient(circle at 18% 0%, rgba(243, 211, 154, 0.11), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(255,255,255,0.08), transparent 24%),
    linear-gradient(180deg, rgba(109,50,58,1), rgba(95,43,50,0.98));
}

body:not(.customer-page) .container{
  width:min(1380px, calc(100vw - 56px));
}

body:not(.customer-page) .section{
  padding:42px 0;
}

body:not(.customer-page) .card{
  background:
    linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.045));
  border-color:rgba(255,255,255,0.15);
}

.staff-auth{
  display:grid;
  place-items:center;
  align-content:center;
  gap:16px;
  min-height:100vh;
  padding:24px;
}

.staff-auth-card{
  width:min(100%, 520px);
  padding:28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.05));
}

.partner-apply-card{
  width:min(100%, 720px);
  max-width:720px;
}

.staff-auth-card .card-title{
  font-size:28px;
  line-height:1.08;
}

.admin-topbar,
.staff-dashboard-topbar{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:22px;
  padding:20px;
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04)),
    linear-gradient(135deg, rgba(243, 211, 154, 0.08), transparent 58%);
  box-shadow:var(--shadow);
}

.admin-topbar > div:first-child,
.staff-dashboard-topbar > div:first-child{
  flex:1 1 auto;
  min-width:0;
}

.staff-grid{
  grid-template-columns:repeat(auto-fill, minmax(240px, 1fr));
  gap:14px;
}

.staff-card{
  min-height:148px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.045));
  transition:transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.staff-card:hover{
  transform:translateY(-3px);
  background:rgba(255,255,255,0.09);
  border-color:rgba(243, 211, 154, 0.24);
}

.staff-item,
.inventory-check-card,
.inventory-movement-item,
.staff-shift-warning{
  background:rgba(255,255,255,0.05);
  border:1px solid var(--stroke);
}

.staff-form,
.admin-form,
.admin-scent-form,
.sales-form{
  display:grid;
  gap:16px;
}

.form-group{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.form-group label,
.sales-form .form-group label{
  margin:0;
  font-size:14px;
  font-weight:700;
  color:var(--text);
}

.form-group input,
.form-group select,
.form-group textarea,
.sales-form .form-group input,
.sales-form .form-group select,
.sales-form .form-group textarea,
.hours-select,
.inventory-check-toolbar select,
.inventory-check-input{
  width:100%;
  min-height:46px;
  padding:12px 14px;
  border-radius:var(--radius-sm);
  border:1px solid var(--stroke);
  background:rgba(255,255,255,0.08);
  color:var(--text);
  font:inherit;
  box-sizing:border-box;
  outline:none;
  transition:border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.form-group textarea,
.sales-form .form-group textarea{
  min-height:110px;
  resize:vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder{
  color:var(--muted-2);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.sales-form .form-group input:focus,
.sales-form .form-group select:focus,
.sales-form .form-group textarea:focus,
.hours-select:focus,
.inventory-check-toolbar select:focus,
.inventory-check-input:focus{
  border-color:rgba(255,255,255,0.36);
  box-shadow:0 0 0 3px rgba(255,255,255,0.08);
}

.admin-form-actions,
.staff-form-actions,
.hours-clock-row,
.partner-apply-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.admin-status{
  margin:10px 0 0;
  color:var(--muted);
  font-size:14px;
  text-align:left;
}

.staff-current-shift{
  margin-bottom:18px;
}

.backoffice-card-gap{
  margin-top:16px;
}

.backoffice-row-gap{
  margin-bottom:10px;
}

.backoffice-inline-status{
  margin:0;
}

@media (max-width:900px){
  body:not(.customer-page) .container{
    width:min(100%, calc(100vw - 32px));
  }

  .admin-topbar,
  .staff-dashboard-topbar{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (max-width:640px){
  body:not(.customer-page) .container{
    width:min(100%, calc(100vw - 24px));
  }

  body:not(.customer-page) .section{
    padding:30px 0;
  }

  .staff-auth{
    padding:16px;
  }

  .staff-auth-card{
    padding:22px 18px;
    border-radius:18px;
  }

  .admin-topbar,
  .staff-dashboard-topbar{
    padding:16px;
    border-radius:18px;
  }

  .admin-form-actions,
  .staff-form-actions,
  .hours-clock-row,
  .partner-apply-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .admin-form-actions .btn,
  .staff-form-actions .btn,
  .hours-clock-row .btn,
  .partner-apply-actions .btn{
    width:100%;
  }
}

.delivery-location-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:10px;}
#deliveryLocationMap{height:340px;width:100%;border-radius:14px;margin:12px 0;color:#252525;isolation:isolate;z-index:0;}
#deliveryLocationMap .leaflet-control-attribution{font-size:11px;}
#deliveryLocationMap a{color:#145c85;}
@media(max-width:640px){#deliveryLocationMap{height:280px;}.delivery-location-actions .btn{width:100%;}}
