/* schedule.css */
/* [LM_CHANGE][2026-02-03] Add Google Maps icon beside Branch select */

:root{
  --bg:#050505;
  --card:#0b0b0b;
  --text:#ffffff;
  --muted:rgba(255,255,255,0.75);
  --muted2:rgba(255,255,255,0.55);
  --border:rgba(255,255,255,0.14);
  --border2:rgba(255,255,255,0.20);
  --error:#ff4d4d;
  --ok:#2ee59d;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(900px 600px at 20% 0%, #111 0%, var(--bg) 55%, #000 100%);
  color:var(--text);
}

.wrap{
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 14px 28px;
}

.top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.brandRow{
  display:flex;
  align-items:center;
  gap: 14px;
  min-width: 0;
}

.brand-logo{
  height:48px;
  width:auto;
  object-fit:contain;
  flex: 0 0 auto;
}

.navBtns{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.navBtn{
  height: 40px;
  display:inline-flex;
  align-items:center;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.22);
  color: var(--text);
  text-decoration:none;
  font-size: 14px;
  white-space: nowrap;
}

.navBtn:hover{ border-color: rgba(255,255,255,0.32); }

.navBtn.active{
  border-color: rgba(255,255,255,0.45);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
}

.btn{
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  background: linear-gradient(180deg, #1a1a1a, #0f0f0f);
  color: var(--text);
  cursor:pointer;
  flex: 0 0 auto;
}

.tag{
  font-size: 13px;
  color: var(--muted2);
  margin: 0 0 14px;
}

.card{
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border-radius: 18px;
  padding: 16px;
}

.title{ font-size: 26px; margin: 6px 0 12px; }

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

.row2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field label{
  display:block;
  font-size: 13px;
  color: var(--muted2);
  margin-bottom: 6px;
}

.field input, .field select, .field textarea{
  width:100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  padding: 10px 12px;
  font-size: 15px;
  outline: none;
}

.field textarea{ resize: vertical; }

.field input:focus, .field select:focus, .field textarea:focus{
  border-color: rgba(255,255,255,0.35);
}

.selectWithIcon{
  display:grid;
  grid-template-columns: 1fr 44px;
  gap: 10px;
  align-items:center;
}

.iconBtn{
  height: 44px;
  width: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.22);
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.iconBtn:hover{
  border-color: rgba(255,255,255,0.32);
}

.iconBtn.disabled{
  opacity: 0.45;
  pointer-events: none;
}

.iconSvg{
  width: 22px;
  height: 22px;
  fill: rgba(255,255,255,0.85);
  /* [LM_FIX][2026-02-15] Ensure the SVG never steals clicks from the overlaid native date input */
  pointer-events: none;
}

/* [LM_FIX][2026-02-15] Native date input must be CLICKABLE to open the picker.
   Some browsers ignore programmatic open or hidden inputs.
   We overlay the input on top of the calendar icon. */
.nativeDateOverlay{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.01;
  cursor: pointer;
  border: 0;
  background: transparent;
  /* [LM_FIX][2026-02-15] Keep the input above the icon so the entire button area opens the picker */
  z-index: 2;
  /* [LM_FIX][2026-02-15] Some browsers only open the picker when the click is on the built-in indicator.
     Disable pointer-events on the input and open the picker via the wrapper click handler instead.
     This makes the ENTIRE 44x44 button clickable (including the center). */
  pointer-events: none;
}

/* [LM_ADD][2026-02-15] Date field: keep the right-cell compact (do not stretch full width) */
.selectWithIcon.datePick{
  grid-template-columns: minmax(180px, 320px) 44px;
  justify-content: start;
}

.timeRow{
  display:grid;
  grid-template-columns: 1fr 90px;
  gap: 6px;
}

.hint{
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted2);
}

.actions{ display:flex; justify-content:flex-end; margin-top: 4px; }

.btnPrimary{
  height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.28);
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
  color: var(--text);
  cursor:pointer;
  font-size: 15px;
}

.small{ font-size: 14px; color: var(--muted); }
.muted{ color: var(--muted2); }

.error{ margin: 8px 0 2px; color: var(--error); font-size: 14px; }
.ok{ margin: 8px 0 2px; color: var(--ok); font-size: 14px; }

.footer{ margin-top: 14px; text-align:center; }

@media (max-width: 900px){
  .brand-logo{ height:42px; }
  .navBtn{ height: 38px; padding: 0 12px; }
  .row2{ grid-template-columns: 1fr; }
  .timeRow{ grid-template-columns: 1fr 90px; }
  .selectWithIcon{ grid-template-columns: 1fr 44px; }
}


/* [WEB_UI_FIX][2026-02-05] Custom dropdown styling for time (hours/minutes) */
.dd {
  position: relative;
  min-width: 60px;
}
.ddBtn {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  background: rgba(10,10,10,0.9);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  padding: 0 14px;
  text-align: left;
  cursor: pointer;
}
.ddBtn:hover {
  border-color: rgba(255,255,255,0.45);
}
.ddBtn:focus {
  outline: none;
  border-color: rgba(255,0,0,0.75);
  box-shadow: 0 0 0 3px rgba(255,0,0,0.22);
}
.ddBtn::after {
  content: "▾";
  float: right;
  opacity: 0.9;
}
.ddMenu {
  display: none;
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow: auto;
  border-radius: 14px;
  background: rgba(12,12,12,0.98);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 14px 40px rgba(0,0,0,0.55);
  padding: 6px;
}
.dd.open .ddMenu { display: block; }
.ddOpt {
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
}
.ddOpt:hover {
  background: rgba(255,255,255,0.08);
}
.ddOpt.active {
  background: rgba(255,0,0,0.22);
  border: 1px solid rgba(255,0,0,0.35);
}
.ddOpt.disabled,
.ddOpt:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.ddOpt.disabled:hover,
.ddOpt:disabled:hover {
  background: transparent;
}

/* =========================================================
   [LM_ADD][2026-02-15] Modal (schedule-only)
   - Used for CLOSED date message (no server.js change)
   ========================================================= */
.lmModal{display:none; position:fixed; inset:0; z-index:9999;}
.lmModal.isOpen{display:block;}
.lmModal__backdrop{position:absolute; inset:0; background: rgba(0,0,0,0.55);}
.lmModal__panel{
  position:relative;
  max-width: 520px;
  margin: 12vh auto 0;
  background: #161616;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
  overflow:hidden;
}
.lmModal__head{display:flex; align-items:center; justify-content:space-between; padding: 12px 14px; border-bottom:1px solid rgba(255,255,255,0.10);} 
.lmModal__title{font-weight:700; letter-spacing:0.2px;}
.lmModal__x{background:transparent; border:0; color:#fff; font-size: 22px; line-height: 1; cursor:pointer; padding: 6px 10px; opacity:0.85;}
.lmModal__x:hover{opacity:1;}
.lmModal__body{padding: 14px; color: rgba(255,255,255,0.92);}
.lmModal__actions{padding: 12px 14px 14px; display:flex; justify-content:flex-end; gap:10px;}

@media (max-width: 520px){
  .lmModal__panel{margin: 10vh 12px 0;}
}
