*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--wa-font);
  font-size: var(--wa-font-size, 16px);
  background: var(--wa-bg);
  color: var(--wa-text);
  direction: rtl;
  -webkit-tap-highlight-color: transparent;
  min-height: 100%;
}
body {
  padding-bottom: calc(var(--wa-nav-h) + env(safe-area-inset-bottom, 0px));
  padding-top: env(safe-area-inset-top, 0px);
}

#app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--wa-header-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: var(--wa-surface);
  border-bottom: 1px solid var(--wa-border);
}
#app-header .brand {
  font-weight: 800;
  font-size: 1rem;
  color: var(--wa-primary-dark);
  flex: 1;
}
#app-header button.icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--wa-surface-2);
  border-radius: 12px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--wa-text);
}

#global-search-wrap {
  padding: 8px 12px 10px;
  background: var(--wa-surface);
  border-bottom: 1px solid var(--wa-border);
}
#global-search-wrap[hidden] {
  display: none !important;
}
#global-search {
  width: 100%;
  height: 44px;
  border: 1.5px solid var(--wa-border);
  border-radius: 12px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--wa-bg);
  color: var(--wa-text);
  outline: none;
}
#global-search:focus {
  border-color: var(--wa-primary);
}
#btn-toggle-search.is-active {
  background: var(--wa-primary);
  color: #0a0a0a;
}
#app-header button.icon-btn {
  border: 1px solid var(--wa-gold, #d4af37);
}

.tab-page {
  display: none;
  padding: 12px;
  max-width: 720px;
  margin: 0 auto;
  flex-direction: column;
  gap: 12px;
}
.tab-page.active { display: flex; }

.card {
  background: var(--wa-surface);
  border: 1px solid var(--wa-border);
  border-radius: var(--wa-radius);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--wa-shadow);
}
.card-title {
  font-weight: 800;
  font-size: 0.95rem;
  margin: 0 0 8px;
}
.muted { color: var(--wa-text-muted); font-size: 0.82rem; }
.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.stat-pill {
  background: var(--wa-surface-2);
  border-radius: var(--wa-radius-sm);
  padding: 12px;
}
.stat-pill .n {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--wa-primary-dark);
}
.stat-pill .l { font-size: 0.75rem; color: var(--wa-text-muted); margin-top: 2px; }

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.dot.ok { background: var(--wa-complete); }
.dot.bad { background: var(--wa-incomplete); }
.dot.warn { background: var(--wa-orange, #fb923c); } /* نارنجی روشن — ناقص */
.dot.future { background: #ef4444; } /* قرمز — آینده */

.badge-code {
  display: inline-block;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--wa-accent-soft);
  color: var(--wa-text);
  border: 1px solid var(--wa-border);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}
.btn {
  box-shadow: 0 1px 0 rgba(232, 197, 71, 0.12);
}
.btn-primary {
  background: linear-gradient(180deg, #6ee7b7 0%, var(--wa-primary) 100%);
  color: #111 !important;
  -webkit-text-fill-color: #111;
  border: none !important;
  box-shadow: 0 2px 8px rgba(52, 211, 153, 0.25);
}
.btn-primary * { color: #111 !important; }
.btn-secondary {
  background: var(--wa-surface-2);
  color: var(--wa-text);
  border: 0.5px solid rgba(232, 197, 71, 0.55) !important;
  box-shadow:
    0 0 0 0.5px rgba(255, 236, 170, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 245, 200, 0.14);
}
.btn-danger { background: var(--wa-danger); color: #fff; border: none !important; }
.btn-orange {
  background: linear-gradient(180deg, #fed7aa 0%, var(--wa-orange-light, #fed7aa) 100%) !important;
  color: #111 !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(253, 186, 116, 0.3);
}
.btn-purple {
  background: linear-gradient(180deg, #e9d5ff 0%, var(--wa-purple-light, #e9d5ff) 100%) !important;
  color: #111 !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(216, 180, 254, 0.3);
}
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 0.82rem; }
/* نوار طلایی — همه دکمه‌ها غیر از فیروزه‌ای / نارنجی / بنفش */
.icon-btn,
.skill-btn,
.collapse-toggle,
.btn-neshan,
.chip:not(.active),
button.btn:not(.btn-primary):not(.btn-orange):not(.btn-purple):not(.btn-danger) {
  border: 0.5px solid rgba(232, 197, 71, 0.5) !important;
  box-shadow:
    0 0 0 0.5px rgba(255, 236, 170, 0.1),
    inset 0 1px 0 rgba(255, 245, 200, 0.12);
}
.card {
  box-shadow: 0 4px 24px rgba(0,0,0,0.45), 0 0 0 1px rgba(232, 197, 71, 0.06);
}

.chip-row {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 12px;
  width: 100%;
}
.chip {
  display: block;
  width: 100%;
  text-align: right;
  border: 1px solid var(--wa-border);
  background: var(--wa-surface);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--wa-text);
  cursor: pointer;
  box-sizing: border-box;
}
.chip.active {
  background: var(--wa-primary);
  color: #111 !important;
  border-color: var(--wa-primary);
  font-weight: 800;
}
/* room chips can stay compact horizontal */
.chip-row.chip-row-rooms {
  flex-direction: row;
  flex-wrap: wrap;
}
.chip-row.chip-row-rooms .chip {
  width: auto;
  flex: 1 1 auto;
  text-align: center;
  padding: 10px 12px;
  font-size: 0.85rem;
}

#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--wa-nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex;
  background: var(--wa-surface);
  border-top: 1px solid var(--wa-border);
  z-index: 50;
}
#bottom-nav button {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.65rem;
  color: var(--wa-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  padding: 6px 2px;
}
#bottom-nav button .ico {
  font-size: 1.55rem;
  line-height: 1;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#bottom-nav button .ico svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#bottom-nav button.active {
  color: var(--wa-primary);
  font-weight: 800;
}
#bottom-nav button.active .ico svg {
  stroke-width: 2.2;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 60;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal-backdrop.open { display: flex; }
.sheet {
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow: auto;
  background: var(--wa-surface);
  border-radius: 18px 18px 0 0;
  padding: 12px 16px 24px;
}
.sheet h3 { margin: 8px 0 12px; font-size: 1.05rem; }
.field { margin-bottom: var(--wa-field-gap, 14px); }
.field label { font-size: 0.88rem; }
.field input, .field select, .field textarea { font-size: 1rem; }
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--wa-text-secondary);
}
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 42px;
  border: 1.5px solid var(--wa-border);
  border-radius: 10px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--wa-bg);
  color: var(--wa-text);
}
.field textarea { min-height: 80px; resize: vertical; }

#toast {
  position: fixed;
  bottom: calc(var(--wa-nav-h) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--wa-text);
  color: var(--wa-bg);
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 80;
  max-width: 90%;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.list-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-bottom: 1px solid var(--wa-border);
  background: var(--wa-surface);
  cursor: pointer;
}
.list-item:active { background: var(--wa-surface-2); }
.list-item .body { flex: 1; min-width: 0; }
.list-item .title { font-weight: 700; font-size: 0.92rem; }
.list-item .meta { font-size: 0.78rem; color: var(--wa-text-muted); margin-top: 3px; }

.empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--wa-text-muted);
}
.empty .big { font-size: 2rem; margin-bottom: 8px; }

.agent-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--wa-text-muted);
}
.agent-status .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wa-success);
}
.agent-status.offline .pulse { background: var(--wa-warning); }

#agent-log {
  max-height: 280px;
  overflow-y: auto;
  margin: 10px 0;
  padding: 8px;
  background: var(--wa-surface-2);
  border-radius: 12px;
  font-size: 0.88rem;
}
#agent-log .msg { margin-bottom: 8px; padding: 8px 10px; border-radius: 10px; }
#agent-log .msg.user { background: var(--wa-primary); color: #fff; }
#agent-log .msg.bot { background: var(--wa-surface); border: 1px solid var(--wa-border); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* amenities horizontal RTL — label on top, checkbox below */
.amenity-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: var(--wa-field-gap, 14px);
  justify-content: flex-start;
}
.amenity-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 72px;
  padding: 8px 10px;
  background: var(--wa-surface-2);
  border-radius: 12px;
  border: 1px solid var(--wa-border);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--wa-text);
}
.amenity-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--wa-primary);
}
.input-num {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.btn-neshan {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1.5px dashed var(--wa-primary);
  background: var(--wa-surface-2);
  color: var(--wa-text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
.opp-card {
  background: var(--wa-surface);
  border: 1px solid var(--wa-border);
  border-radius: var(--wa-radius);
  padding: 12px;
  margin-bottom: 0;
}
.opp-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--wa-accent-soft);
  margin-bottom: 6px;
}
.opp-card .line { font-size: 0.92rem; margin: 4px 0; }
.chip.active { color: #111 !important; }
.stat-grid { grid-template-columns: 1fr; }
@media (min-width: 400px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

.sheet {
  display: flex;
  flex-direction: column;
}
.sheet .field,
.tab-page > .btn,
.tab-page > .card,
.tab-page > #prop-list,
.tab-page > #client-list,
.tab-page > #contact-list {
  width: 100%;
}
#prop-list, #client-list, #contact-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}
.list-item {
  width: 100%;
  box-sizing: border-box;
}
/* calendar — fits mobile width, today = yellow */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  width: 100%;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.cal-dow {
  text-align: center;
  font-size: 0.7rem;
  color: var(--wa-text-muted);
  padding: 4px 0;
  min-width: 0;
  overflow: hidden;
}
.cal-day {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  height: auto;
  aspect-ratio: 1 / 1;
  max-height: 48px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--wa-surface-2);
  color: var(--wa-text);
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}
.cal-day.empty { background: transparent; cursor: default; border: none; }
.cal-day.today {
  background: var(--wa-orange-light, #fdba74) !important;
  color: #111 !important;
  border-color: var(--wa-orange, #fb923c);
  font-weight: 800;
  box-shadow: none;
}
.cal-day.holiday { color: #f87171; font-weight: 700; }
.cal-day.friday { color: #f472b6; }
.cal-day.today.holiday {
  background: var(--wa-orange-light, #fdba74) !important;
  color: #111 !important;
  box-shadow: inset 0 0 0 2px #f87171;
}
.cal-day.selected {
  outline: 2px solid var(--wa-primary);
  outline-offset: 1px;
}
#page-calendar {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
#page-calendar .card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.cal-day .dot-rem {
  position: absolute;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--wa-primary);
}
.cal-day .dot-con {
  position: absolute;
  bottom: 3px;
  left: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--wa-warning);
}
.contract-block {
  display: none;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--wa-border);
}
.contract-block.show { display: flex; }

/* force all form controls full-width column */
.sheet .field input,
.sheet .field select,
.sheet .field textarea,
.sheet .btn-block,
.sheet .btn-neshan {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.amenity-row {
  width: 100%;
}

.skill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
  width: 100%;
}
.skill-btn {
  display: block;
  width: 100%;
  text-align: right;
  border: 1px solid var(--wa-border);
  background: var(--wa-surface-2);
  color: var(--wa-text);
  border-radius: 12px;
  padding: 10px 8px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.35;
  min-height: 52px;
  box-sizing: border-box;
}
.skill-btn:active { background: var(--wa-primary); color: #111; }
.rule-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--wa-border);
  font-size: 0.88rem;
}
.rule-item button {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--wa-danger);
  font-size: 0.85rem;
  cursor: pointer;
}

.price-block { width: 100%; display: block; position: static; clear: both; }
.amenity-row { margin-top: 4px; }
.amenity-item {
  min-width: 64px;
  min-height: auto;
  padding: 8px 10px;
}
.amenity-item input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  min-height: 18px;
  appearance: auto;
}
.contract-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--wa-border);
}
.contract-row .actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.contract-row .actions button {
  flex: 1;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid var(--wa-border);
  background: var(--wa-surface-2);
  color: var(--wa-text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.contract-row .actions button.danger {
  color: var(--wa-danger);
  border-color: var(--wa-danger);
}

.step-tabs { display: flex; flex-direction: row; gap: 8px; margin: 8px 0 12px; width: 100%; }
.step-tabs .chip { flex: 1; text-align: center; }
#agent-today-tasks .list-item { margin-bottom: 6px; }

.collapse-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  color: var(--wa-text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  padding: 4px 0;
  cursor: pointer;
  text-align: right;
}
.collapse-body { margin-top: 12px; }
.collapse-body[hidden] { display: none !important; }
.chevron { font-size: 0.75rem; opacity: 0.7; }
input.input-num {
  font-variant-numeric: tabular-nums;
  direction: ltr;
  text-align: left;
}
/* price blocks visibility */
.price-block.is-hidden,
.price-block[hidden] {
  display: none !important;
  height: auto !important;
  overflow: visible !important;
}

/* FORM OVERLAP FIX — property/client sheets */
.modal-backdrop {
  align-items: flex-end;
  justify-content: center;
  overscroll-behavior: contain;
}
.modal-backdrop .sheet {
  display: block !important;
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--wa-surface);
  border-radius: 18px 18px 0 0;
  box-sizing: border-box;
}
.modal-backdrop .sheet > * {
  position: static !important;
  float: none !important;
  clear: both;
  max-width: 100%;
}
.modal-backdrop .sheet .field {
  display: block !important;
  width: 100% !important;
  position: relative !important;
  float: none !important;
  clear: both !important;
  margin: 0 0 14px 0 !important;
  padding: 0 !important;
  min-height: 0;
  box-sizing: border-box;
}
.modal-backdrop .sheet .field > label {
  display: block !important;
  position: static !important;
  width: 100%;
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  line-height: 1.4;
  white-space: normal;
  float: none !important;
  color: var(--wa-text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
}
.modal-backdrop .sheet .field > input,
.modal-backdrop .sheet .field > select,
.modal-backdrop .sheet .field > textarea,
.modal-backdrop .sheet .field > button {
  display: block !important;
  width: 100% !important;
  position: static !important;
  float: none !important;
  box-sizing: border-box;
}
.modal-backdrop .sheet .amenity-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  margin: 0 0 14px 0;
  padding: 0;
  position: static !important;
  clear: both;
}
.modal-backdrop .sheet .amenity-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  min-width: auto;
  padding: 10px 12px;
  position: static !important;
  float: none !important;
}
.modal-backdrop .sheet .amenity-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--wa-primary);
}
.modal-backdrop .sheet .price-block {
  width: 100%;
  position: static !important;
  clear: both;
  margin: 0;
  padding: 0;
}
.modal-backdrop .sheet .price-block.is-hidden,
.modal-backdrop .sheet .price-block[hidden] {
  display: none !important;
}
/* checkbox row: label + text in one line, no white ghost box */
.modal-backdrop .sheet .field-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 0 14px 0;
  padding: 10px 12px;
  background: var(--wa-surface-2);
  border: 1px solid var(--wa-border);
  border-radius: 12px;
  box-sizing: border-box;
}
.modal-backdrop .sheet .field-check input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--wa-primary);
}
.modal-backdrop .sheet .field-check span {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wa-text);
  line-height: 1.35;
}


/* Agent action cards */
.agent-action-card {
  margin: 6px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--wa-border);
  background: var(--wa-card, rgba(255,255,255,0.04));
  font-size: 0.85rem;
}
.agent-action-card .aac-title { font-weight: 700; margin-bottom: 4px; color: var(--wa-text); }
.agent-action-card .aac-meta { color: var(--wa-muted, #9aa); margin-bottom: 8px; line-height: 1.45; }
.agent-action-card .aac-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.agent-action-card .aac-actions button {
  font-size: 0.75rem;
  padding: 6px 10px;
  min-height: 36px;
  border-radius: 10px;
}


/* نوار طلایی — فیلدها و کنترل‌ها در داشبورد/دستیار/تنظیمات/تقویم */
#page-dashboard input,
#page-dashboard select,
#page-dashboard textarea,
#page-agent input,
#page-agent select,
#page-agent textarea,
#page-calendar input,
#page-calendar select,
#page-calendar textarea,
#sheet-settings input,
#sheet-settings select,
#sheet-settings textarea,
#page-dashboard .collapse-toggle,
#page-agent .collapse-toggle,
#page-calendar .collapse-toggle,
#sheet-settings .collapse-toggle,
#page-dashboard .btn-secondary,
#page-agent .btn-secondary,
#page-calendar .btn-secondary,
#sheet-settings .btn-secondary {
  border: 0.5px solid rgba(232, 197, 71, 0.55) !important;
  box-shadow: 0 0 0 0.5px rgba(255, 236, 170, 0.1), inset 0 1px 0 rgba(255, 245, 200, 0.12);
  border-radius: 12px;
}
#page-dashboard .field,
#page-agent .field,
#page-calendar .field,
#sheet-settings .field {
  border: none;
}

.dash-alert-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.25);
}
.dash-alert-dot.warn { background: #fbbf24; }
.dash-alert-dot.overdue { background: #ef4444; }
.rem-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--wa-border);
}
.rem-row .rem-meta { flex: 1; min-width: 0; }
.rem-row .rem-time { font-size: 0.8rem; color: var(--wa-text-muted); }


/* لبه طلایی ظریف + حس براق لوکس */
.btn-secondary:active,
.icon-btn:active,
.collapse-toggle:active {
  box-shadow:
    0 0 8px rgba(232, 197, 71, 0.22),
    inset 0 1px 0 rgba(255, 245, 200, 0.18);
}
#page-dashboard input:focus,
#page-dashboard select:focus,
#page-dashboard textarea:focus,
#page-agent input:focus,
#page-agent select:focus,
#page-agent textarea:focus,
#page-calendar input:focus,
#page-calendar select:focus,
#page-calendar textarea:focus,
#sheet-settings input:focus,
#sheet-settings select:focus,
#sheet-settings textarea:focus {
  border-color: rgba(245, 220, 140, 0.85) !important;
  box-shadow: 0 0 0 2px rgba(232, 197, 71, 0.18), inset 0 1px 0 rgba(255, 245, 200, 0.1);
  outline: none;
}

