:root{
  --bg:#f7faff!important;
  --card:#ffffff!important;
  --ink:#17323a!important;
  --muted:#71858b!important;
  --line:#e5ebf2!important;
  --blue:#e8f3ff!important;
  --blue-strong:#2389f5!important;
  --mint:#e9faef!important;
  --mint-strong:#25c96f!important;
  --aqua:#eaf7ff!important;
  --aqua-strong:#3aa6d8!important;
  --sage:#eef2ff!important;
  --sage-strong:#627fd8!important;
  --free:#e9faef!important;
  --free-border:#b9e5c8!important;
  --blocked:#dff6f3!important;
  --blocked-border:#9fded5!important;
  --blocked-text:#2f6d68!important;
}
html,body{background:#f7faff!important;color:var(--ink)!important}
.main{background:linear-gradient(180deg,#f6faff 0%,#fbfdff 58%,#f2f7ff 100%)!important}
.sidebar{background:#fbfdff!important;border-left-color:#e3ebf4!important}
.topbar h1,.section-title h3{color:#173f70!important}
.card{border-color:#e4ebf3!important;box-shadow:0 7px 24px rgba(35,90,145,.055)!important}

/* Blue-forward navigation: green remains an accent, not the dominant UI color. */
.menu-btn.calendar{background:#dceeff!important}
.menu-btn.clients{background:#e8f3ff!important}
.menu-btn.settings{background:#eaf7ff!important}
.menu-btn.booking{background:#eef2ff!important}
.menu-action.new{background:#d8eaff!important;color:#164f88!important}
.menu-action.link{background:#e7f3ff!important;color:#245f8c!important}
.btn-primary{background:linear-gradient(135deg,#2389f5,#1466bd)!important;color:#fff!important}
.staff-picker-btn,.view-switch{background:#eaf4ff!important;border-color:#d6e7f7!important}

/* Keep positive/availability states green so status remains immediately clear. */
.slot:not(.blocked-cell):not(.past-cell)[data-free="1"],
.free-cell,.status-success,.success-chip{
  background:#e9faef!important;
  border-color:#b9e5c8!important;
}

/* זמן חסום/לא פעיל: טורקיז בהיר בלבד, ללא חום. */
.slot.blocked-cell,
.slot[data-closed="1"]:not(.past-cell),
.block-card{
  background:#dff6f3!important;
  border-color:#9fded5!important;
  color:#2f6d68!important;
}
.slot[data-closed="1"]:not(.past-cell){background-image:none!important;cursor:not-allowed}
.slot[data-closed="1"]:not(.past-cell) .closed-hint{color:#2f6d68!important}
.month-chip.blocked,.hero-event.blocked{background:#dff6f3!important;color:#2f6d68!important}
.dot.blocked{background:#75c2b8!important}
.btn-brown{background:#75c2b8!important;color:#17323a!important}
.slot.past-cell{background:#fff!important;border-color:var(--line)!important}
.slot.past-cell:hover{background:#fff!important}

/* Client card: clear hierarchy, compact data rows and a dedicated history area. */
#clientDetail{
  background:#fff!important;
  border:1px solid #dfe9f4!important;
  border-radius:20px!important;
  padding:18px!important;
  box-shadow:0 18px 52px rgba(32,83,132,.10)!important;
  color:#17323a!important;
}
#clientDetail>h2,#clientDetail>h3{
  color:#173f70!important;
  margin-top:0;
}
#clientDetail>h3{
  margin:18px 0 8px!important;
  padding-top:14px;
  border-top:1px solid #e7eef6;
}
#clientDetail .data-list{
  border:1px solid #e2ebf4!important;
  border-radius:14px!important;
  overflow:hidden!important;
  background:#fff!important;
}
#clientDetail .data-row{
  background:#fff!important;
  border-bottom:1px solid #edf2f7!important;
  padding:11px 12px!important;
}
#clientDetail .data-row:last-child{border-bottom:0!important}
#clientDetail .data-row:hover{background:#f7fbff!important}
#clientDetail .muted{color:#6f8490!important}
#clientDetail .status-chip{border-radius:999px!important}
#clientDetail input,#clientDetail select,#clientDetail textarea{
  border-color:#d7e3ef!important;
  background:#fff!important;
}
#clientDetail input:focus,#clientDetail select:focus,#clientDetail textarea:focus{
  border-color:#6db3f5!important;
  box-shadow:0 0 0 3px rgba(35,137,245,.10)!important;
  outline:none!important;
}

.v22-recurrence-box{margin:2px 0 4px;border:1px solid #d7e5f3;border-radius:16px;padding:14px;background:linear-gradient(135deg,#f1f7ff,#f9fcff);display:grid;gap:12px}
.v22-cycle-toggle{align-items:flex-start!important}.v22-cycle-toggle span{display:grid;gap:3px}.v22-cycle-toggle strong{color:#24577b}.v22-cycle-toggle small,.v22-cycle-note{font-size:12px;color:#71858b;line-height:1.55}
.v22-recurrence-fields{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}.v22-recurrence-fields.hidden{display:none!important}.v22-recurrence-fields small{font-size:11px;color:#71858b}
.v22-history-tools{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:10px 0 12px;padding:11px;background:#f2f7ff;border:1px solid #dce7f2;border-radius:13px}
.v22-history-tools label{display:grid;gap:5px;font-size:12px;font-weight:700;color:#55717f}.v22-history-tools select{min-width:145px;border:1px solid #d5e2ef;border-radius:10px;padding:8px 10px;background:#fff;color:#214e68}
.v22-history-empty{text-align:center;color:#71858b;padding:16px!important}

@media(max-width:650px){
  .v22-recurrence-fields{grid-template-columns:1fr}
  .v22-history-tools{display:grid;grid-template-columns:1fr}
  .v22-history-tools select{width:100%}
  #clientDetail{padding:14px!important;border-radius:16px!important;max-width:calc(100vw - 20px)!important;box-sizing:border-box!important}
  #clientDetail .data-row{padding:10px!important}
}


.report-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.report-preview .report-time{min-width:90px;font-size:12px}.report-preview .report-row{gap:12px}#reportEmailForm{margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}@media(max-width:520px){.report-filter-grid{grid-template-columns:1fr}}

.recurrence-tile{display:grid;gap:6px;min-width:230px;max-width:100%;margin:0 0 16px;border:1px solid #b9d9fa;border-radius:18px;background:#eaf4ff;color:#173f70;padding:14px 20px;text-align:right;font:inherit;cursor:pointer}.recurrence-tile strong{font-size:32px;line-height:1.1}.recurrence-tile small{font-size:12px;color:#53738f}.recurrence-tile:hover{background:#dceeff}.recurrence-modal{width:min(850px,100%)}.recurrence-filters{grid-template-columns:1fr 1fr;margin-bottom:12px}.recurrence-row{display:flex;gap:16px;justify-content:space-between;align-items:center;border:1px solid #dce7f2;background:#f7fbff;border-radius:14px;padding:14px;margin-bottom:10px}.recurrence-row>div{min-width:0;overflow-wrap:anywhere}.recurrence-row small{display:block;margin-top:6px}.recurrence-row button{flex-shrink:0}.recurrence-status{font-size:12px;color:#315f83;margin-top:6px}.recurrence-row button:disabled{opacity:.65;cursor:default}@media(max-width:650px){.recurrence-filters{grid-template-columns:1fr}.recurrence-row{align-items:stretch;flex-direction:column}.recurrence-tile{width:100%}}

.recurrence-channel{margin:12px 0;gap:7px}.recurrence-whatsapp{display:inline-block;text-decoration:none;text-align:center;flex-shrink:0;max-width:100%}.recurrence-row .btn:disabled{cursor:not-allowed}
