/* ===========================================================
   کلینیک — طراحی با الهام از معماری ایرانی و دقت بالینی
   پالت: فیروزه‌ای عمیق + کهربایی (زعفرانی)
   بدون گلس‌مورفیسم، بدون ظاهر پیش‌فرض AI
   =========================================================== */

:root {
  /* بایگانی پرونده‌ها: قرمز گلی ملایم، کم‌رنگ‌تر از قرمز خطر */
  --archive: #A0525C; --archive-tint: rgba(160,82,92,.07); --archive-border: rgba(160,82,92,.28);
  /* پالت Indigo Harbor — ایندیگو + خاکستری‌های سرد بندری */
  --teal: #4f46e5;
  --teal-strong: #4338ca;
  --teal-tint: #eef0fd;
  --amber: #b9822e;
  --amber-strong: #96681f;
  --amber-tint: #f6efe2;
  --red: #c45454;
  --red-tint: #f5e8e8;
  --green: #389e6b;
  --green-tint: #e8f2ed;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  /* Light mode (پیش‌فرض) — خاکستری آبی روشن و آرام */
  /* زمینه‌ی صفحه یک درجه تیره‌تر از کادرهای متن است تا کادری که مستقیم روی
     صفحه می‌نشیند (مثل جست‌وجو) از زمینه جدا بماند. */
  --bg: #e6eaf1;
  --surface: #ffffff;
  --surface-hover: #f6f8fb;
  /* زمینه‌ی کادرهای متن یک درجه از کارت تیره‌تر است: روی سفید خالص، نشانگر
     I-شکل ماوس در ویندوز (که سفید با لبه‌ی نازک است) عملاً دیده نمی‌شد. */
  --input-bg: #f5f7fa;
  --input-border: #d4dae4;
  --text-primary: #1e2433;
  --text-secondary: #5d6678;
  --text-muted: #949cab;
  --border: #d4dae4;
  --border-light: #e5e9f0;
  --shadow-sm: 0 1px 3px rgba(30,36,51,0.05);
  --shadow-md: 0 4px 16px rgba(30,36,51,0.06);
  --shadow-lg: 0 8px 32px rgba(30,36,51,0.08);

  /* Compatibility aliases for old iOS color names */
  --ios-blue: #4f46e5;
  --ios-green: #389e6b;
  --ios-red: #c45454;
  --ios-orange: #b9822e;
  --ios-purple: #4f46e5;
  --ios-teal: #4f46e5;

  /* رنگ اختصاصی ماژول جاری — پیش‌فرض (admin) */
  --accent: #4f46e5;
  --accent-strong: #4338ca;
  --accent-tint: #eef0fd;
  /* زمینه‌ی پُررنگ زیر متن سفید (آیتم فعال منو، دکمه‌ی اصلی). در حالت روشن همان accent است؛
     در حالت تاریک accent روشن‌تر است تا به‌عنوان رنگ متن خوانا باشد، پس برای زمینه‌ی متن سفید
     یک نسخه‌ی تیره‌تر لازم است — وگرنه متن سفید روی بنفش کم‌رنگ محو می‌شد. */
  --accent-solid: #4f46e5;

  /* کهربایی ملایم (هشدارها) */
  --amber: #b9822e;
  --amber-strong: #96681f;
  --amber-tint: #f6efe2;
}

[data-theme="dark"] {
  --archive: #E3949C; --archive-tint: rgba(227,148,156,.10); --archive-border: rgba(227,148,156,.30);
  /* Compatibility aliases for old iOS color names */
  --ios-blue: #7c85cf;
  --ios-green: #59a67a;
  --ios-red: #cc6666;
  --ios-orange: #c7954e;
  --ios-purple: #7c85cf;
  --ios-teal: #7c85cf;
  --bg: #12141a;
  --surface: #1e2129;
  --surface-hover: #262933;
  --input-bg: #1e2129;
  --input-border: #333842;
  --text-primary: #e6e8eb;
  --text-secondary: #9ea2a8;
  --text-muted: #6e7278;
  --border: #333842;
  --border-light: rgba(255,255,255,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);

  --accent: #7c85cf;
  --accent-strong: #9da6eb;
  --accent-tint: rgba(124, 133, 207, 0.15);
  --accent-solid: #5156c9;

  /* کهربایی — نسخه تاریک */
  --amber: #c7954e;
  --amber-strong: #d9ab6a;
  --amber-tint: rgba(199, 149, 78, 0.15);
}

/* ===========================================================
   Persian geometric background motif
   الگوی هندسی ظریف در پس‌زمینه (الهام از معماری ایرانی)
   =========================================================== */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 15% 20%, rgba(79, 70, 229, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 75%, rgba(93, 102, 120, 0.04) 0%, transparent 50%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(79, 70, 229, 0.015) 40px,
      rgba(79, 70, 229, 0.015) 41px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(79, 70, 229, 0.015) 40px,
      rgba(79, 70, 229, 0.015) 41px
    );
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] body::before {
  background-image:
    radial-gradient(ellipse at 15% 20%, rgba(129, 140, 248, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 75%, rgba(152, 160, 179, 0.04) 0%, transparent 50%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(129, 140, 248, 0.025) 40px,
      rgba(129, 140, 248, 0.025) 41px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(129, 140, 248, 0.025) 40px,
      rgba(129, 140, 248, 0.025) 41px
    );
}

/* ===========================================================
   رنگ‌بندی یکدست — همه ماژول‌ها از تم زرشکی + طلایی استفاده می‌کنند
   (رنگ اختصاصی هر ماژول به درخواست مشتری حذف شد)
   =========================================================== */

/* ===========================================================
   Base
   =========================================================== */

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Estedad', 'Vazirmatn', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: background 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  line-height: 1.6;
}

/* ===========================================================
   Common components
   =========================================================== */

/* Card — replaced glassmorphism with clean surface + shadow */
.ios-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ios-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}

/* کارت‌هایی که داخل‌شان فرم (input/select/textarea) است نباید با هاور برجسته و تکون بخورند */
.ios-card:has(input):hover,
.ios-card:has(select):hover,
.ios-card:has(textarea):hover {
  transform: none;
  box-shadow: var(--shadow-md);
  border-color: var(--border-light);
}

/* Glass — Modal base */
.glass {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Card variants */
.card-accent {
  border-inline-start: 4px solid var(--accent);
}

.card-amber {
  border-inline-start: 4px solid var(--amber);
}

.card-hoverable {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.card-hoverable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Metric number style */
.metric-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 4px;
}

.metric-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Buttons */
.ios-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  min-height: 44px;
  border-radius: 999px; /* Pill shape for primary actions */
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.2;
  position: relative;
  overflow: hidden;
}

.ios-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-tint), 0 0 0 1px var(--accent);
}

.ios-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle 70px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.25), transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.ios-btn:hover::before {
  opacity: 1;
}

/* Ensure text and icons stay above the glow */
.ios-btn > * {
  position: relative;
  z-index: 2;
}

.ios-btn:hover {
  transform: scale(1.02);
}

.ios-btn:active {
  transform: scale(0.96);
}

.ios-btn-primary {
  background-color: var(--accent-solid);
  background-image: none;
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
}

.ios-btn-primary:hover {
  background-image: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0.1));
  box-shadow: 0 6px 12px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.12);
}

.ios-btn-secondary {
  background-color: var(--surface);
  background-image: none;
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
}

.ios-btn-secondary:hover {
  background-color: var(--surface-hover);
  background-image: none;
  border-color: var(--text-muted);
  box-shadow: 0 4px 8px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.05);
}

.ios-btn-amber {
  background-color: var(--amber);
  background-image: none;
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
}

.ios-btn-amber:hover {
  background-image: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0.1));
  box-shadow: 0 6px 12px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.12);
}

.ios-btn-danger {
  background-color: var(--red);
  background-image: none;
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
}

.ios-btn-danger:hover {
  background-image: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0.1));
  box-shadow: 0 6px 12px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.12);
}

.ios-btn-success {
  background-color: var(--ios-green);
  background-image: none;
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
}

.ios-btn-success:hover {
  background-image: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0.1));
  box-shadow: 0 6px 12px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.12);
}

/* Empty state block.
   When a card has no rows yet, the action that fills it belongs in the middle
   of the empty box, not up in the card header where the eye is not looking. */
.pf-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 34px 18px;
  border: 1.5px dashed var(--border);
  border-radius: 16px;
  background: var(--bg-card);
}
.pf-empty > svg { width: 42px; height: 42px; color: var(--text-muted); opacity: .45; }
.pf-empty p { margin: 0; font-size: 13px; font-weight: 700; color: var(--text-secondary); }
.pf-empty small { font-size: 11.5px; color: var(--text-muted); max-width: 46ch; }

/* Blue call-to-action.
   Used for "add something here" buttons on empty cards (upload a document,
   register the first wound, issue a consent form). Those must read as the
   obvious next step, so they get the system blue rather than the brand
   accent, which is already spent on page headings. */
.ios-btn-blue {
  background-color: var(--ios-blue);
  background-image: none;
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
}

.ios-btn-blue:hover {
  background-image: linear-gradient(rgba(255,255,255,0.12), rgba(255,255,255,0.12));
  box-shadow: 0 6px 12px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.12);
}

.ios-btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  min-height: auto;
  border-radius: 12px; /* Rounded rectangle for smaller inline buttons */
}

/* Delete/remove action inside a list or form: a real button with red text,
   lighter than .ios-btn-danger so a row of actions doesn't shout. */
.ios-btn-danger-soft {
  background-color: var(--surface);
  background-image: none;
  color: var(--red);
  border: 1px solid color-mix(in srgb, var(--red) 35%, transparent);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
}
.ios-btn-danger-soft:hover {
  background-color: color-mix(in srgb, var(--red) 10%, var(--surface));
}

/* Icon-only button (close, remove row, view).
   Owner rule: a clickable thing must look like a button, so a bare icon
   always sits in a round chip with its own background and border. */
.ios-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  cursor: pointer;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ios-icon-btn:hover {
  background: var(--surface-hover);
  border-color: var(--text-muted);
  color: var(--text-primary);
}
.ios-icon-btn:active { transform: scale(0.94); }
.ios-icon-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-tint), 0 0 0 1px var(--accent);
}
.ios-icon-btn svg { width: 18px; height: 18px; }
.ios-icon-btn-sm { width: 30px; height: 30px; }
.ios-icon-btn-sm svg { width: 15px; height: 15px; }
.ios-icon-btn-danger {
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 35%, transparent);
}
.ios-icon-btn-danger:hover {
  color: var(--red);
  background: color-mix(in srgb, var(--red) 10%, var(--surface));
  border-color: var(--red);
}

/* Link to a record (a patient name, an invoice number) in a table or a
   sentence. Underlined so it never reads as plain text. */
.ios-link {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.ios-link:hover { text-decoration-thickness: 2px; }

/* Inputs */
.ios-input {
  width: 100%;
  padding: 12px 16px;
  min-height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--input-border, var(--border));
  background: var(--input-bg, var(--surface));
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  cursor: text;
  caret-color: var(--accent);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select.ios-input {
  cursor: pointer;
}

.ios-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint), 0 0 0 1px var(--accent);
}

.ios-input::placeholder {
  color: var(--text-muted);
}

/* Sidebar */
.ios-sidebar {
  background: var(--surface);
  border-inline-end: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  /* نوار نسخه‌ی آزمایشی (اگر باشد) خودش sticky است و بالای صفحه می‌ماند؛ سایدبار
     زیر آن می‌چسبد و به همان اندازه کوتاه‌تر می‌شود، وگرنه دکمه‌ی خروج از پایین
     صفحه بیرون می‌زند و صفحه یک اسکرول بی‌خودی به اندازه‌ی نوار پیدا می‌کند.
     مقدار --demo-bar-h را layouts/main.php از ارتفاع واقعی نوار می‌گذارد. */
  position: sticky;
  top: var(--demo-bar-h, 0px);
  height: calc(100vh - var(--demo-bar-h, 0px));
  overflow: hidden;
}

/* فقط بخش منوها اسکرول می‌خورد؛ لوگو و دکمه‌ی خروج ثابت می‌مانند */
.ios-sidebar .nav-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.ios-sidebar .logo-area {
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 8px;
}

.ios-sidebar .logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  flex-shrink: 0;
}

.ios-sidebar .logo-text {
  font-weight: 800;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.3;
}

.ios-sidebar .nav-section {
  padding: 8px 12px;
}

.ios-sidebar .nav-section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 12px 6px;
}

.ios-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  transition: background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}

.ios-nav-item:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.ios-nav-item.active {
  background-color: var(--accent-solid);
  background-image: none;
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
  font-weight: 600;
}

.ios-sub-nav-active {
  background-color: var(--accent-solid);
  background-image: none;
  color: #fff !important;
  border: 1px solid transparent;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  font-weight: 600;
}

.ios-nav-item .nav-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.ios-sidebar .nav-footer {
  flex-shrink: 0;
  padding: 8px 12px 16px;
  border-top: 1px solid var(--border-light);
}

/* Header */
.ios-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ios-header-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

/* فهرست کشویی اعلان‌ها زیر زنگوله (نسخه‌ی گوشی در بخش ‎max-width: 767px‎) */
.notif-wrap { position: relative; }
.notif-panel {
  position: absolute;
  top: 44px;
  inset-inline-end: 0;
  width: 22rem;
}

/* Badges */
.ios-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.badge-active {
  background: var(--green-tint);
  color: var(--green);
}

.badge-inactive {
  background: var(--red-tint);
  color: var(--red);
}

.badge-role {
  background: var(--accent-tint);
  color: var(--accent-strong);
}

.badge-warning {
  background: var(--amber-tint);
  color: var(--amber);
}

/* Theme Switch Slider (from old project) */
.theme-slider-container {
  width: 58px;
  height: 28px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 9999px;
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  user-select: none;
  display: inline-block;
}
html[data-theme="dark"] .theme-slider-container {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-light);
}
.theme-slider-knob {
  width: 22px;
  height: 22px;
  background: var(--surface);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  inset-inline-start: 2px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-primary);
}
html[data-theme="dark"] .theme-slider-knob {
  transform: translateX(30px);
}
html[dir="rtl"][data-theme="dark"] .theme-slider-knob {
  transform: translateX(-30px);
}
/* گوشی: کلید کشویی تم جا می‌گرفت؛ همان دکمه یک دایره‌ی تک‌دکمه‌ای هم‌اندازه‌ی زنگوله می‌شود */
@media (max-width: 767px) {
  .theme-slider-container { width: 36px; height: 36px; }
  .theme-slider-knob,
  html[data-theme="dark"] .theme-slider-knob,
  html[dir="rtl"][data-theme="dark"] .theme-slider-knob {
    inset: 0; width: 100%; height: 100%; transform: none;
    background: transparent; box-shadow: none; font-size: 16px;
  }
}

/* Language Toggle Pill */
.lang-select {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  transition: all 0.2s ease;
}
.lang-select:hover {
  background: var(--surface-hover);
  border-color: var(--text-muted);
}

/* Custom Select Dropdown */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}
.custom-select-trigger {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.custom-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  max-height: 250px;
  overflow-y: auto;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  transform: translateY(-5px);
}
.custom-select-dropdown.dropup {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 6px;
  transform: translateY(5px);
}
.custom-select-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.custom-select-dropdown.dropup.show {
  transform: translateY(0);
}
.custom-select-option {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.custom-select-option:hover {
  background: var(--bg-soft);
}
.custom-select-option.selected {
  background: var(--accent-tint);
  color: var(--accent-strong);
  font-weight: 700;
}

/* Icons */
.icon-minimal {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Table styles for reuse */
.table-container {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table-container th {
  padding: 14px 16px;
  text-align: start;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 13px;
  border-bottom: 1px solid var(--border-light);
  background: var(--surface);
}

.table-container td {
  padding: 14px 16px;
  border-top: 1px solid var(--border-light);
  color: var(--text-primary);
}

.table-container tr:hover td {
  background: var(--surface-hover);
}

/* Flash messages */
.flash-success {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--green-tint);
  color: var(--green);
  font-size: 14px;
  font-weight: 500;
}

.flash-error {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--red-tint);
  color: var(--red);
  font-size: 14px;
  font-weight: 500;
}

.flash-warning {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--amber-tint);
  color: var(--amber);
  font-size: 14px;
  font-weight: 500;
}

.flash-info {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}

/* Empty state */
.empty-state {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border-light);
  margin: 24px 0;
}

.divider-subtle {
  height: 1px;
  background: var(--border-light);
  margin: 8px 0;
}

/* 
  Persian decorative border motif — subtle repeating pattern
  برای کارت‌های خاص مثل لاگین
*/
.decorative-border {
  position: relative;
  overflow: hidden;
}

.decorative-border::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--amber), var(--accent));
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Hide number input spinners */
.no-spinners::-webkit-inner-spin-button, 
.no-spinners::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
.no-spinners {
  -moz-appearance: textfield;
}

.ios-btn-back{position:relative;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;padding:12px 22px;padding-inline-start:52px;border-radius:var(--radius-md);background:var(--surface);color:#b91c1c;font-weight:600;font-size:14px;line-height:1;text-decoration:none;border:1px solid var(--border-light);box-shadow:var(--shadow-sm);cursor:pointer;}
.ios-btn-back-label{display:inline-block;text-align:center;transition:opacity .5s ease;white-space:nowrap;}
.ios-btn-back:hover .ios-btn-back-label{opacity:0;}
.ios-btn-back-panel{position:absolute;top:0;bottom:0;inset-inline-start:0;z-index:10;display:grid;place-items:center;width:44px;background:#dc2626;color:#fff;transition:width .5s cubic-bezier(0.4, 0, 0.2, 1);}
.ios-btn-back:hover .ios-btn-back-panel{width:100%;}
.ios-btn-back-panel svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;opacity:1;}

/* ردیف بالای صفحه (عنوان + دکمه‌ها + «بازگشت»): وقتی جا کم بود، دکمه‌ها له و
   متنشان دوخطی می‌شد و «بازگشت به …» (متنش از صفحه‌ی قبلی می‌آید و گاهی بلند
   است) از وسط بریده می‌شد. حالا دکمه‌ها هرگز کوچک نمی‌شوند؛ اگر جا نشدند، کل
   گروه دکمه‌ها مرتب به خط بعد می‌رود. */
.ios-btn-back{flex-shrink:0;}
.ios-btn-back-label{max-width:16em;overflow:hidden;text-overflow:ellipsis;}
.flex:has(> .ios-btn-back){flex-wrap:wrap;row-gap:8px;}
.flex:has(> .ios-btn-back) > :is(a, button, form){flex-shrink:0;white-space:nowrap;}
.flex.justify-between:has(> .ios-btn-back, > .flex > .ios-btn-back){flex-wrap:wrap;gap:12px;}
.flex.justify-between > .flex:has(> .ios-btn-back){margin-inline-start:auto;}

/* ===========================================================
   Global UI Polish
   =========================================================== */

/* Hover-lift for cards */
.ios-card { transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease; }
.ios-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
/* روی صفحه‌ی لمسی hover بعد از ضربه گیر می‌کند و کارت بالا می‌ماند */
@media (hover: none) { .ios-card:hover { transform: none; box-shadow: var(--shadow-md); } }

/* Table hover & tabular nums */
table { font-variant-numeric: tabular-nums; border-collapse: separate; border-spacing: 0; }
.metric-value { font-variant-numeric: tabular-nums; }
tbody tr { transition: background 0.15s ease; }
tbody tr:hover td { background-color: var(--surface-hover); }

/* Soft focus ring */
.ios-input:focus-visible, .ios-btn:focus-visible, select:focus-visible, button:focus-visible { 
  outline: 2px solid var(--accent); outline-offset: 2px; 
}

/* Subtle header texture */
.ios-header { 
  background-image: radial-gradient(circle at top right, rgba(79, 70, 229, 0.05), transparent 60%); 
}
[data-theme="dark"] .ios-header {
  background-image: radial-gradient(circle at top right, rgba(129, 140, 248, 0.08), transparent 60%); 
}

/* Skeleton Loading */
@keyframes shimmer { 0% { background-position: -1000px 0; } 100% { background-position: 1000px 0; } }
.skeleton { 
  animation: shimmer 2.5s infinite linear; 
  background: linear-gradient(to right, var(--surface) 4%, var(--surface-hover) 25%, var(--surface) 36%); 
  background-size: 1000px 100%; 
  border-radius: var(--radius-sm);
}

/* Flash Slide */
@keyframes slideDown { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes shrink-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.flash-success, .flash-error, .flash-warning, .flash-info { animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* Thin Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Empty state friendly UI */
.empty-state { text-align: center; padding: 48px 24px; animation: slideDown 0.5s ease both; }
.empty-state-icon { width: 64px; height: 64px; color: var(--text-muted); margin: 0 auto 16px; opacity: 0.5; }
.empty-state-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.empty-state-desc { font-size: 13px; color: var(--text-secondary); }

/* Sticky Table Header */
table th { position: sticky; top: 0; z-index: 10; background: var(--surface); box-shadow: 0 1px 0 var(--border-light); border-bottom: none !important; }

/* ===========================================================
   مرکز پیامک — کنترل گروه هدف، الگوهای آماده و پیش‌نمایش پیام
   =========================================================== */

.sms-seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-hover);
  border: 1px solid var(--border-light);
  border-radius: 999px;
}
.sms-seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-secondary);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.sms-seg-btn:hover { color: var(--text-primary); }
.sms-seg-btn.is-active {
  background: var(--surface);
  color: var(--accent-strong);
  box-shadow: var(--shadow-sm);
}
.sms-seg-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.sms-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface-hover);
  border: 1px solid var(--border-light);
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.sms-chip:hover {
  color: var(--accent-strong);
  background: var(--accent-tint);
  border-color: var(--accent);
}

.sms-meter {
  height: 4px;
  border-radius: 999px;
  background: var(--border-light);
  overflow: hidden;
}
.sms-meter > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.2s ease, background 0.2s ease;
}
.sms-meter.is-over > span { background: var(--amber); }

.sms-preview {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--surface-hover);
  border: 1px dashed var(--border);
}
.sms-preview-bubble {
  padding: 10px 13px;
  border-radius: 14px;
  border-start-start-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}
.sms-preview-bubble.is-empty { color: var(--text-muted); }

.sms-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.sms-toolbar .ios-input { height: 38px; padding-block: 0; font-size: 13px; }

/* زبانه‌های بالای صفحه تمام عرض، روی گوشی هم */
.sms-tabs { display: flex; width: 100%; }
.sms-tabs .sms-seg-btn { flex: 1; justify-content: center; }

.sms-chip.is-on {
  color: var(--accent-strong);
  background: var(--accent-tint);
  border-color: var(--accent);
}

/* هشدار وضعیت — فقط وقتی پیامک خاموش/آزمایشی/بی‌کلید است */
.sms-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid;
  border-radius: var(--radius-md);
}

/* عنوان مرحله‌های ارسال با شماره‌ی گرد */
.sms-step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.sms-step > span {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 13px;
  color: var(--accent-strong);
  background: var(--accent-tint);
}

/* کارت‌های «به چه کسی؟» */
.sms-aud {
  display: block;
  min-height: 64px;
  padding: 12px 14px;
  text-align: start;
  font: inherit;
  cursor: pointer;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.sms-aud b { display: block; font-size: 14px; }
.sms-aud small { display: block; margin-top: 2px; font-size: 12px; color: var(--text-secondary); }
.sms-aud:hover { border-color: var(--accent); }
.sms-aud.is-on {
  border-color: var(--accent);
  background: var(--accent-tint);
  box-shadow: 0 0 0 1px var(--accent);
}

/* قاب گوشی دور پیش‌نمایش */
.sms-phone {
  padding: 14px;
  border-radius: 20px;
  background: var(--surface-hover);
  border: 1px solid var(--border-light);
}

/* ردیف‌های «پیام‌های خودکار» */
.sms-row { padding: 14px 0; border-top: 1px solid var(--border-light); }
.sms-row-head { display: flex; align-items: center; gap: 12px; }
.sms-row-head > div { flex: 1; }
.sms-row-body { margin-top: 12px; }

/* کلید روشن/خاموش */
.sms-switch { position: relative; flex: none; width: 44px; height: 26px; cursor: pointer; }
.sms-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sms-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--border);
  transition: background 0.2s ease;
  pointer-events: none;
}
.sms-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: inset-inline-start 0.2s ease;
}
.sms-switch input:checked + span { background: var(--green); }
.sms-switch input:checked + span::after { inset-inline-start: 21px; }
.sms-switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ردیف‌های گزارش */
.sms-log {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
}
.sms-log:first-of-type { border-top: 0; }

/* ===========================================================
   منوی گوشی
   -----------------------------------------------------------
   تا پیش از این، سایدبار زیر ۷۶۸ پیکسل فقط `hidden` می‌شد و هیچ
   جایگزینی نداشت: روی گوشی هیچ راهی برای رفتن به صفحه‌ی دیگر نبود و
   کاربر مجبور بود در مرورگر «نسخه‌ی دسکتاپ» را بزند. حالا همان سایدبار
   از کنار می‌آید بیرون.

   ⚠️ جهت‌دار است: در فارسی سایدبار سمت راست می‌نشیند و باید به راست
   جمع شود، در انگلیسی به چپ. به‌جای left/right از منطق dir استفاده شده.
   =========================================================== */

/* نوار نسخه‌ی آزمایشی — چسبندگی‌اش اینجاست، نه در استایل خطی، تا مدیای
   گوشی بتواند برش دارد (آنجا هدر پنل باید بچسبد و جای top:0 یکی است). */
.demo-ribbon { position: sticky; top: 0; z-index: 50; }

.ios-nav-toggle,
.ios-nav-overlay { display: none; }

@media (max-width: 767px) {
  .ios-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: var(--radius-sm, 12px);
    color: var(--text-primary);
    background: var(--surface-hover);
  }

  .ios-sidebar {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    z-index: 70;
    height: 100dvh;
    box-shadow: var(--shadow-lg);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  [dir="rtl"] .ios-sidebar { transform: translateX(100%); }
  [dir="ltr"] .ios-sidebar { transform: translateX(-100%); }
  .ios-sidebar.is-open     { transform: translateX(0); }

  .ios-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0, 0, 0, 0.45);
  }

  /* هدر روی گوشی تنگ است؛ بدون این، دکمه‌ی منو و نام کاربر روی هم می‌افتند */
  .ios-header {
    padding: 0 14px;
    gap: 10px;

    /* دکمه‌ی منو تنها راه رفتن به صفحه‌ی دیگر است؛ اگر با اسکرول برود، کاربر
       باید تا بالای صفحه برگردد. پس هدر می‌چسبد. */
    position: sticky;
    top: 0;
    z-index: 40;
  }

  /* «خوش آمدید، …» روی گوشی جا ندارد و نشان Onyx را له می‌کرد؛ برداشته می‌شود */
  .ios-header-title { display: none; }

  /* برچسب نقش («مدیر») روی گوشی جای نام کاربر را می‌گرفت و نام نصفه می‌ماند */
  .ios-header .badge-role { display: none; }

  /* فهرست اعلان‌ها روی گوشی: به‌جای آویزان شدن از لبه‌ی زنگوله (که بسته به
     جای زنگوله و پهنای گوشی از کنار صفحه بیرون می‌زد)، به خود هدر می‌چسبد و
     با ۱۲ پیکسل فاصله از دو طرف، همیشه تمام‌عرض و داخل صفحه باز می‌شود. */
  .notif-wrap { position: static; }
  .notif-panel { top: calc(100% + 6px); left: 12px; right: 12px; width: auto; }

  /* نوار نسخه‌ی آزمایشی جایش را به هدر می‌دهد و با صفحه بالا می‌رود؛ روی
     گوشی دو نوار چسبیده روی هم می‌افتند و نیمی از صفحه را می‌خورند. */
  .demo-ribbon { position: static; }

  /* ردیف عنوان صفحه‌ها (عنوان + دکمه‌های کنارش) روی گوشی در یک خط جا
     نمی‌شود؛ بدون شکستن به چند خط، دکمه‌ها از پهلوی صفحه بیرون می‌زدند و کل
     صفحه با منوی همبرگری به یک طرف کج می‌شد. */
  main .flex.justify-between,
  main .flex.justify-between > .flex { flex-wrap: wrap; }
  main .flex.justify-between > .flex { row-gap: 8px; }

  /* تور ایمنی: هیچ عنصری نباید صفحه را از پهلو پهن‌تر از گوشی کند.
     clip (نه hidden) تا هدر چسبنده و اسکرول جدول‌ها از کار نیفتد. */
  main { overflow-x: clip; }

  /* جدول‌های پهن داخل .table-container با overflow:hidden بریده می‌شدند */
  .table-container { overflow-x: auto; }

  /* دکمه‌ی «بازگشت» روی گوشی فقط آیکون: متنش (مثلاً «بازگشت به کالاهای انبار»)
     کنار عنوان و دکمه‌های صفحه جا نمی‌شد و از لبه بریده می‌شد؛ hover هم روی
     لمس گیر می‌کرد و کل دکمه قرمز می‌ماند. */
  .ios-btn-back {
    width: 50px;
    height: 50px;
    padding: 0 !important;
    flex: 0 0 auto;
  }
  .ios-btn-back-label { display: none; }
  .ios-btn-back-panel { width: 100% !important; }
  .ios-btn-back-panel svg { width: 22px; height: 22px; }

  /* کارت‌ها روی گوشی: ۲۴ پیکسل فاصله‌ی داخلی از ۳۷۵ پیکسل عرض زیاد بود و
     کارت‌های آماری (عدد ۲۸ پیکسلی) هر کدام یک‌سوم صفحه را می‌گرفتند. */
  .ios-card { padding: 16px; }
  .ios-card.p-0 { padding: 0; }
  .metric-value { font-size: 22px; }
  .metric-icon { width: 36px; height: 36px; flex-shrink: 0; }
  main { padding: 14px !important; }

  /* فرم فیلتر جمع‌شده پشت دکمه (js/mobile-ui.js) */
  .m-filter-toggle { width: 100%; margin-bottom: 12px; position: relative; }
  .m-filter-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
  }
  form.m-filter-closed { display: none !important; }

  /* ---- جدول ← کارت (برچسب‌ها را js/mobile-ui.js می‌گذارد) ----
     هر ردیف یک بلوک «عنوان: مقدار». عنوان با float به ابتدای خط می‌رود و
     مقدار به انتها؛ این‌طوری محتوای خانه (متن، badge، دکمه) دست نمی‌خورد. */
  table.m-cards {
    min-width: 0 !important;
    width: 100% !important;
    display: block;
  }
  table.m-cards thead { display: none; }
  table.m-cards tbody,
  table.m-cards tfoot { display: block; }
  /* بخش جمع‌شده (مثل «تمام‌شده‌ها» در پذیرش) روی گوشی هم پنهان بماند */
  table.m-cards tbody[hidden] { display: none; }
  table.m-cards tbody tr.finished-sep:first-child { margin-top: 10px; padding: 22px 12px 12px; border-top: 2px dashed var(--border) !important; }
  table.m-cards tr {
    display: block;
    padding: 12px 16px;
    border-top: 1px solid var(--border-light) !important;
    border-bottom: 0 !important;
  }
  table.m-cards tbody tr:first-child { border-top: 0 !important; }
  table.m-cards tr:hover td { background: transparent; }
  table.m-cards td,
  table.m-cards tfoot th {
    display: flow-root;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 3px 0 !important;
    border: 0 !important;
    background: transparent !important;
    text-align: end !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    line-height: 1.7;
  }
  table.m-cards td[data-label]::before {
    content: attr(data-label);
    float: inline-start;
    margin-inline-end: 12px;
    max-width: 48%;
    text-align: start;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
  }
  [dir="rtl"] table.m-cards td[data-label]::before { float: right; }
  [dir="ltr"] table.m-cards td[data-label]::before { float: left; }
  /* خانه‌هایی که خودشان چند بلوک دارند (عکس + نام + توضیح) کنار عنوان جا
     نمی‌شوند؛ عنوان می‌رود بالای آن‌ها. */
  table.m-cards td[data-label]:has(> div, > p, > ul) { text-align: start !important; }
  table.m-cards td[data-label]:has(> div, > p, > ul)::before {
    float: none !important;
    display: block;
    max-width: none;
    margin-bottom: 4px;
  }

  /* خانه‌ی خالی فقط یک خط «عنوان:» بی‌مقدار می‌ساخت */
  table.m-cards td[data-label]:empty { display: none; }

  /* ستون دکمه‌ها / شماره‌ی ردیف: بدون عنوان، کنار هم */
  table.m-cards td.m-nolabel { text-align: start !important; }
  table.m-cards td.m-nolabel:has(a, button, form) {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
  }
  table.m-cards td.m-nolabel:has(a, button, form) > div { display: flex; flex-wrap: wrap; gap: 8px; }
  /* اولین ستون با عنوان معمولاً «چه کسی/چه چیزی» است (نام بیمار، کالا، کارمند) */
  table.m-cards td.m-first { font-weight: 700; color: var(--text-primary); }
  table.m-cards td.m-head { text-align: start !important; font-weight: 700; }
  table.m-cards td.m-full { display: block; text-align: center !important; padding: 0 !important; }
}

/* ===========================================================
   مسیر ناوبری (breadcrumb) — public/assets/js/nav-trail.js
   =========================================================== */
.crumbs{flex:1;min-width:0;display:flex;justify-content:center;padding:0 16px;}
.crumbs[hidden]{display:none;}
@media (max-width:767px){.crumbs{display:none;}}
.crumb-list{display:inline-flex;flex-wrap:nowrap;max-width:100%;overflow:hidden;align-items:center;gap:6px;margin:0;padding:8px 12px;list-style:none;border:1px solid var(--border-light);border-radius:12px;background:var(--surface);box-shadow:var(--shadow-sm);font-size:13px;color:var(--text-muted);}
.crumb-item{display:inline-flex;align-items:center;gap:6px;}
.crumb-link{color:inherit;text-decoration:none;transition:color .15s ease;display:inline-flex;align-items:center;}
.crumb-link:hover{color:var(--text-primary);}
.crumb-home svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.crumb-page{color:var(--text-primary);font-weight:600;}
.crumb-item .crumb-link,.crumb-page{white-space:nowrap;}
.crumb-sep{display:inline-flex;align-items:center;}
.crumb-sep svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;opacity:.6;}
[dir="rtl"] .crumb-sep svg{transform:scaleX(-1);}
.crumb-more{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border:0;border-radius:6px;background:transparent;color:inherit;cursor:pointer;}
.crumb-more:hover{background:var(--bg-soft);color:var(--text-primary);}
.crumb-more svg{width:16px;height:16px;fill:currentColor;}

/* نشان Kayren Onyx وسط هدر: جای مسیر ناوبری را فقط وقتی خالی است می‌گیرد (صفحه‌ی اصلی).
   نشان از لوگوی رسمی سایت kayrenlabs.com است؛ نوشته با فونت سیستمی iOS (San Francisco) —
   روی ویندوز و اندروید که این فونت را ندارند، Segoe UI / Roboto جایش می‌آید. نشان در هر دو
   زبان سمت چپ نوشته می‌ماند، پس جهت این بلوک همیشه چپ‌به‌راست است. */
.onyx-brand{flex:1;min-width:0;display:flex;direction:ltr;justify-content:center;align-items:center;gap:10px;text-decoration:none;transition:opacity .15s ease;}
.onyx-brand-mark{width:auto;height:28px;}
.onyx-brand-word{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Helvetica Neue","Segoe UI Variable Display","Segoe UI",Roboto,Arial,sans-serif;font-size:15px;font-weight:600;letter-spacing:.14em;line-height:1;white-space:nowrap;color:var(--text-primary);}
.onyx-brand:hover{opacity:.8;}
.crumbs:not([hidden]) + .onyx-brand{display:none;}
/* گوشی: نشان و نوشته کوچک‌تر، وسطِ فضای خالی بین دکمه‌ی منو و دکمه‌های تم/زنگوله
   (flex:1 همان فضا را می‌گیرد، پس روی گوشی باریک هم روی دکمه‌ها نمی‌افتد). */
@media (max-width:767px){
  .onyx-brand{gap:6px;}
  .onyx-brand-mark{height:20px;}
  .onyx-brand-word{font-size:12px;letter-spacing:.1em;}
}

/* ===== صفحه‌ی تنظیمات: کارت‌های جمع‌شونده =====
   صفحه تمام‌عرض است؛ گزینه‌ها با گرید خودکار (هر ستون حدود ۳۶۰ پیکسل) چیده می‌شوند تا روی
   مانیتور بزرگ از این سر تا آن سر کشیده نشوند. بدنه‌ی کارتِ باز، رنگ زمینه‌ی صفحه را می‌گیرد
   تا مرزش با سرتیتر و با کارت‌های بعدی روشن باشد. */
.set-page { width: 100%; }
.set-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.set-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.set-card.is-open {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}
.set-card-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: none;
  border: 0;
  text-align: start;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.set-card-head:hover { background: var(--surface-hover); }
.set-card.is-open .set-card-head:hover,
.set-card-head.cursor-default:hover { background: none; }
/* آیکون هر بخش: یک کاشی کوچک با رنگ ملایم ماژول */
.set-card-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent-tint);
  color: var(--accent-strong);
  transition: background 0.15s ease, color 0.15s ease;
}
/* کارتِ باز فقط با پُررنگ شدن کاشی آیکون مشخص می‌شود؛ نه قاب رنگی دور کل کارت */
.set-card.is-open .set-card-icon { background: var(--accent-solid); color: #fff; }
.set-card-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.set-card-static .set-card-body { padding-top: 16px; }
.set-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.set-card-summary {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 0;
}
.set-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.6;
  margin: 0 12px;
}
/* برچسب «فعال/غیرفعال» در خلاصه‌ی سرتیتر */
.set-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-inline-start: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--surface-hover);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}
.set-state::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.set-state.is-on {
  background: rgba(56, 158, 107, 0.12);
  color: var(--green);
  border-color: transparent;
}
[data-theme="dark"] .set-state.is-on { color: #6cc596; }
.set-card-chevron {
  width: 28px;
  height: 28px;
  padding: 4px;
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--text-secondary);
  background: var(--surface-hover);
  transition: transform 0.2s ease, background 0.15s ease, color 0.15s ease;
}
.set-card.is-open .set-card-chevron { transform: rotate(180deg); }
/* بدنه همرنگ سرتیتر است و فقط یک خط نازک (با فاصله از لبه‌ها) از آن جدایش می‌کند؛
   زمینه‌ی خاکستریِ جدا، کارتِ باز را دوتکه و شلوغ نشان می‌داد. */
.set-card-body {
  margin: 0 20px;
  padding: 20px 0 22px;
  border-top: 1px solid var(--border-light);
}
.set-field + .set-field {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}
.set-field-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.set-field-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
/* برچسب کوچک بالای یک کادر (مثلاً «اندازه‌ی کاغذ») */
.set-sub-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.set-help {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
}
/* گزینه‌ها کنار هم با عرض ثابت، نه هر یکی یک ردیفِ تمام‌عرض */
.set-grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 12px; }
/* یک گزینه. گزینه‌ی انتخاب‌شده با :has() رنگ می‌گیرد، پس با هر کلیک همان لحظه عوض می‌شود. */
.set-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.set-option:hover { border-color: var(--text-muted); }
.set-option:not(.set-toggle-row):has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-tint);
}
.set-option input[type="radio"],
.set-option input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--accent-solid);
  cursor: pointer;
}
.set-option-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.set-option-desc  { font-size: 12px; margin-top: 3px; line-height: 1.6; color: var(--text-secondary); }
/* گزینه‌ی کوچک (روز هفته، اندازه‌ی کاغذ، بخش‌های چاپ) */
.set-chip { padding: 10px 12px; }
.set-chip .set-option-title { font-size: 13px; font-weight: 500; }
/* ردیف کلید روشن/خاموش: وضعیت را خود کلید نشان می‌دهد، کادر رنگ نمی‌گیرد */
.set-toggle-row { align-items: flex-start; }
.set-toggle-row .sms-switch { margin-top: 2px; }
.set-toggle-row .sms-switch input { width: auto; height: auto; }
.set-link { justify-content: space-between; text-decoration: none; }
.set-link:hover { border-color: var(--accent); }
/* کادر ساعت شیفت */
.set-time { width: 6.5rem !important; padding: 8px !important; text-align: center; font-size: 14px; cursor: pointer; }
/* دکمه‌ی آیکونیِ حذف */
.set-icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--red);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--red) 35%, transparent);
  cursor: pointer;
  transition: background 0.15s ease;
}
.set-icon-btn:hover { background: rgba(196, 84, 84, 0.12); }
/* نوار ذخیره که با اسکرول پایین صفحه می‌ماند */
.set-save-bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 -6px 24px rgba(0,0,0,0.06);
}

/* خانه‌ی جدول با dir="ltr" (درصد، موبایل، کد) در صفحه‌ی راست‌به‌چپ: جهت متن چپ‌به‌راست بماند
   ولی خودِ خانه مثل سرستونش راست‌چین شود؛ وگرنه عدد به لبه‌ی چپ خانه می‌چسبید و زیر
   سرستون نمی‌افتاد (مثلاً ستون «درصد» در نرخ‌های پورسانت). */
html[dir="rtl"] td[dir="ltr"] { text-align: right; }

/* ===== دسترسی‌ها (صفحه‌ی نقش‌ها و فرم کاربر — roles/_perm_picker.php) =====
   هر بخش یک کادر جدا با عنوان پررنگ و نوار رنگی کنار آن، با فاصله از کادر بعدی،
   تا چشم تیک‌های بخش‌های مختلف را با هم قاطی نکند. */
.perm-box { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 1rem 1.1rem 1.1rem; }
.perm-box-title { font-size: .92rem; font-weight: 800; color: var(--text-primary); padding-inline-start: .6rem; border-inline-start: 3px solid var(--accent); line-height: 1.3; margin-bottom: .85rem; }
.perm-main-row { border: 1px solid var(--border-light); background: var(--input-bg); }
.perm-from-role { display: inline-block; font-size: .68rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; background: var(--accent-tint); color: var(--accent-strong); }

/* زبانه‌های «کاربران | نقش‌ها» (users/_tabs.php) */
.perm-seg { display: inline-flex; flex-shrink: 0; padding: 3px; gap: 2px; border-radius: 12px; background: var(--input-bg); border: 1px solid var(--border); }
.perm-seg a { display: inline-block; text-align: center; text-decoration: none; font-size: .8rem; font-weight: 600; padding: .45rem 1.1rem; border-radius: 9px; color: var(--text-secondary); white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.perm-seg a.is-on { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.perm-seg a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 480px) { .perm-seg { width: 100%; } .perm-seg a { flex: 1; padding-inline: .4rem; } }

/* ===== نوار «تمام‌شده‌ها» زیر فهرست نوبت‌های روز (reception/_finished_bar.php) =====
   مرز «کارِ مانده» و «کارِ تمام‌شده» باید با یک نگاه دیده شود: خط‌چین جداکننده،
   نوار تمام‌عرض، متن پررنگ و عدد در دایره‌ی تیره. */
tr.finished-sep td { padding: 22px 12px 14px; border-top: 2px dashed var(--border); }
tr.finished-sep:hover td { background: transparent; }
.finished-bar {
    width: 100%; min-height: 58px; display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: 16px; cursor: pointer; text-align: start;
    background: var(--surface-hover); border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm); color: var(--text-primary);
    transition: background-color .15s ease, border-color .15s ease;
}
.finished-bar:hover { border-color: var(--accent); }
.finished-bar:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.finished-bar[aria-expanded="true"] { background: var(--accent-tint); border-color: var(--accent); }
.finished-bar-icon {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--green-tint, rgba(52, 199, 89, .14)); color: var(--ios-green);
}
.finished-bar-icon svg { width: 18px; height: 18px; }
.finished-bar-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; font-weight: 800; }
.finished-bar-text small { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.finished-bar-count {
    min-width: 32px; height: 32px; padding: 0 10px; border-radius: 999px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--text-primary); color: var(--surface); font-size: 14px; font-weight: 800;
}
.finished-bar-chev { width: 20px; height: 20px; flex-shrink: 0; color: var(--text-secondary); transition: transform .2s ease; }
.finished-bar[aria-expanded="true"] .finished-bar-chev { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .finished-bar-chev { transition: none; } }

/* ===== زبانه‌های روان (tab-glide.js) =====
   «تکه»ی زیر زبانه‌ی فعال سُر می‌خورد؛ رنگ و سایه‌اش را اسکریپت از خود زبانه می‌گیرد. */
.tg { isolation: isolate; }
.tg-ind {
    position: absolute; top: 0; left: 0; z-index: 0; box-sizing: border-box; pointer-events: none; opacity: 0;
    transition: transform .3s cubic-bezier(.32,.72,0,1), width .3s cubic-bezier(.32,.72,0,1), height .3s cubic-bezier(.32,.72,0,1),
                background-color .25s ease, box-shadow .25s ease, border-color .25s ease, opacity .2s ease;
}
.tg-still .tg-ind { transition: none !important; }
.tg .tg-item { position: relative; z-index: 1; transition: color .2s ease, opacity .2s ease !important; }
.tg .tg-mute { background: transparent !important; box-shadow: none !important; border-color: transparent !important; }
@media (prefers-reduced-motion: reduce) {
    .tg-ind { transition: background-color .2s ease, opacity .2s ease; }
}

/* نقطه‌ی سبز «آنلاین» در صفحه‌ی کاربران: حلقه‌ای که آرام باز و محو می‌شود */
.online-dot { position: relative; }
.online-dot::after {
    content: ''; position: absolute; inset: 0; border-radius: 9999px;
    background: inherit; animation: online-pulse 2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
@keyframes online-pulse {
    0%   { transform: scale(1);   opacity: .7; }
    70%  { transform: scale(2.6); opacity: 0; }
    100% { transform: scale(2.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .online-dot::after { animation: none; } }

/* ===========================================================
   برچسب بخش (layouts/main.php، #section-ribbon)
   ربانی به رنگ ماژول با آیکون و نام آیتم فعال منو که از زیر هدر آویزان است.
   margin-top منفی = padding بالای <main> (p-5 / md:p-6 / lg:p-8) تا به هدر بچسبد.
   =========================================================== */
.section-ribbon {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 9px;
  margin: -20px 0 16px;
  padding: 14px 18px 21px;
  border-radius: 0 0 12px 12px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
}
.section-ribbon[hidden] { display: none; }
.section-ribbon svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 768px)  { .section-ribbon { margin-top: -24px; font-size: 16px; padding-inline: 20px; } }
@media (min-width: 1024px) { .section-ribbon { margin-top: -32px; margin-bottom: 20px; } }

/* عنوانی که همان نام بخش است: از دید پنهان، برای صفحه‌خوان و مسیر بالای صفحه می‌ماند */
.page-title-dup {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ===========================================================
   پیام‌های موقت (layouts/main.php + js/ios-toast.js)
   کارت شیشه‌ای بالای صفحه که دورش یک خط آبی (رنگ اصلی) می‌چرخد — همان روش کارت بیماران VIP
   (patients/index.php، .vip-diamond). نوع پیام را عنوان و نقطه‌ی رنگی کنارش نشان می‌دهد.
   =========================================================== */
@property --toastAngle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.halo-toasts {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  width: min(440px, calc(100vw - 20px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.halo-toast {
  --toast-dot: var(--ios-blue);
  position: relative;
  border-radius: 18px;
  pointer-events: auto;
  touch-action: none;
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity .22s ease-out, transform .22s ease-out;
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .28), 0 0 22px -6px color-mix(in srgb, var(--ios-blue) 35%, transparent);
}
.halo-toast.is-in { opacity: 1; transform: translateY(0); }
.halo-toast.is-out { opacity: 0; transform: translateY(-14px); }
.halo-toast.is-dragging { transition: none; }
.halo-success { --toast-dot: var(--ios-green); }
.halo-error   { --toast-dot: var(--ios-red); }
.halo-warning { --toast-dot: var(--ios-orange); }

/* خط چرخان دور کادر: یک تکه‌ی پررنگ آبی روی حلقه‌ی کم‌رنگ آبی */
.halo-toast::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 2.5px;
  background: conic-gradient(from var(--toastAngle),
    color-mix(in srgb, var(--ios-blue) 18%, transparent) 0%,
    color-mix(in srgb, var(--ios-blue) 18%, transparent) 50%,
    color-mix(in srgb, var(--ios-blue) 60%, transparent) 68%,
    var(--ios-blue) 82%,
    color-mix(in srgb, var(--ios-blue) 45%, #fff) 86%,
    color-mix(in srgb, var(--ios-blue) 18%, transparent) 91%,
    color-mix(in srgb, var(--ios-blue) 18%, transparent) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: toastBorderSpin 3s linear infinite;
  pointer-events: none;
}
@keyframes toastBorderSpin { to { --toastAngle: 360deg; } }

/* خود کارت: شیشه‌ی تقریباً مات تا متن روی هر صفحه‌ای خوانا بماند */
.halo-surface {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: inherit;
  /* آبی کم‌رنگ از رنگ اصلی پنل تا کادر از پس‌زمینه‌ی خود صفحه جدا دیده شود */
  background: linear-gradient(135deg, color-mix(in srgb, var(--ios-blue) 14%, var(--surface)) 0%, color-mix(in srgb, var(--ios-blue) 6%, var(--surface)) 100%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
}

.halo-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.halo-title { font-size: 15.5px; font-weight: 800; line-height: 1.45; color: var(--text-primary); }
.halo-title::before { content: ''; display: inline-block; vertical-align: middle; margin: -2px 0 0; margin-inline-end: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--toast-dot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--toast-dot) 22%, transparent); }
.halo-msg { font-size: 14.5px; font-weight: 500; line-height: 1.8; color: var(--text-primary); overflow-wrap: anywhere; }
.halo-close { margin: -6px; flex-shrink: 0; width: 34px; height: 34px; }
.halo-close svg { width: 16px; height: 16px; }

/* واژه‌ها یکی‌یکی ظاهر می‌شوند (حرف‌به‌حرف، خط فارسی را از هم جدا می‌کرد) */
.halo-toast [data-stagger] .w { opacity: 0; transition: opacity .16s ease-out; }
.halo-toast.is-in [data-stagger] .w { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .halo-toast, .halo-toast.is-out { transform: none; transition: opacity .12s ease-out; }
  .halo-toast::before { animation: none; }
  .halo-toast [data-stagger] .w { transition: none; }
}
