/* K697 shared phone layout — canteen · mess · battalion · console */

.topbar-search-btn,
.phone-nav { display: none; }

html { -webkit-text-size-adjust: 100%; }

/* ملخّص أرقام جنب عنوان الصفحة: فواصل على الديسكتوب، وصفوف مرتّبة على الموبايل */
.title-summary {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
}
.title-summary .sum-chunk + .sum-chunk {
  padding-inline-start: 10px;
  border-inline-start: 1px solid var(--border);
}

@media (max-width: 900px) {
  html, body { overflow-x: hidden; overflow-x: clip; }

  .sidebar {
    height: 100dvh;
    max-height: 100dvh;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .topbar {
    padding: max(8px, env(safe-area-inset-top, 0px)) 10px 8px;
    gap: 8px;
    min-height: 56px;
  }

  .topbar-menu-btn {
    display: flex;
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .hub-back {
    padding: 8px 10px 8px 8px;
    min-height: 44px;
  }

  .topbar-date { display: none; }

  .topbar-user-chip {
    padding: 4px;
    gap: 0;
  }
  .topbar-user-chip > span:not(.avatar) { display: none; }
  .topbar-user-chip .avatar {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .topbar-search-btn {
    display: flex;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
    margin-right: auto;
    color: var(--text);
  }

  .topbar-search {
    display: none;
    flex: 1 1 100%;
    max-width: none;
    order: 8;
  }
  body.search-open .topbar-search { display: block; }
  body.search-open .topbar-search-btn { background: var(--bg-muted); }

  .topbar-search input,
  input.field,
  select.field,
  textarea.field,
  input[type="search"],
  input[type="number"],
  input[type="text"],
  input[type="password"],
  input[type="date"] {
    font-size: 16px !important;
    min-height: 44px;
  }

  .content { padding: 14px 12px 20px; }

  .site-footer {
    /* W16: مساحة كافية لشريط التنقل + جزيرة الإجراءات العائمة فوقه */
    padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px));
    margin-bottom: 0;
  }

  .page-title { font-size: 20px; }
  .page-header { margin-bottom: 14px; gap: 10px; }
  .page-subtitle { font-size: 13px; }

  .title-summary {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 10px;
    gap: 4px;
  }
  .title-summary .sum-chunk,
  .title-summary .sum-chunk + .sum-chunk {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 8px;
    padding-inline-start: 0;
    border-inline-start: 0;
    font-size: 13px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
    margin-bottom: 14px;
  }
  /* كارت لوحده في آخر سطر ياخد العرض كله بدل نص فاضي */
  .stats-grid > .stat-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .stat-card {
    padding: 12px 12px 10px;
    gap: 4px;
  }
  .stat-label {
    font-size: 11.5px;
    line-height: 1.35;
  }
  .stat-value { font-size: 18px; }
  .stat-foot { font-size: 10.5px; line-height: 1.4; }

  .card { padding: 14px 12px; }

  .meal-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .meal-tab {
    flex: none;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    overflow: hidden;
  }
  .meal-tab .mt-sub {
    display: block;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .col {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .btn,
  .btn-sm {
    min-height: 42px;
    padding: 10px 14px;
    font-size: 14px;
    touch-action: manipulation;
    white-space: normal;
    text-align: center;
  }
  .btn-lg { width: 100%; min-height: 48px; font-size: 16px; }

  .actions { gap: 8px; }
  .actions .btn {
    flex: 1 1 calc(50% - 8px);
    min-width: 140px;
  }

  .print-bar,
  .toolbar { gap: 8px; }
  .print-bar .btn { flex: 1 1 140px; }

  .row-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px !important;
    width: 100%;
  }
  .row-actions .btn,
  .row-actions form {
    width: 100%;
    margin: 0;
  }
  .row-actions form .btn { width: 100%; }
  .partial-inline {
    grid-column: 1 / -1;
    display: flex !important;
    width: 100%;
    gap: 8px;
  }
  .partial-inline input[type="number"] {
    flex: 1;
    width: auto !important;
    min-height: 42px;
    font-size: 16px !important;
  }

  .alert { font-size: 13.5px; padding: 12px 14px; }

  .data-table-wrap {
    overflow: visible;
    border: none;
    border-radius: 0;
  }
  table.data-table {
    min-width: 0 !important;
    font-size: 14px;
  }
  table.data-table thead { display: none; }
  table.data-table,
  table.data-table tbody,
  table.data-table tfoot {
    display: block;
    width: 100%;
  }
  table.data-table tbody tr {
    display: block;
    position: relative;
    margin: 0 0 12px;
    padding: 12px 12px 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
  }
  table.data-table tbody tr:nth-child(even) td,
  table.data-table tbody tr:hover td {
    background: transparent;
  }
  table.data-table tbody td {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    text-align: start;
    border-bottom: 1px dashed color-mix(in srgb, var(--border) 80%, transparent);
  }
  table.data-table tbody td:last-child { border-bottom: none; }
  table.data-table tbody td::before {
    content: attr(data-label);
    font-weight: 800;
    font-size: 12px;
    color: var(--text-muted);
    flex: 0 0 38%;
    max-width: 42%;
    text-align: start;
    line-height: 1.4;
  }
  table.data-table tbody td:not([data-label])::before,
  table.data-table tbody td[data-label=""]::before {
    display: none;
  }
  table.data-table tbody td.is-title {
    display: block;
    font-size: 16px;
    font-weight: 900;
    padding-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
  }
  table.data-table tbody td.is-title::before { display: none; }
  table.data-table tbody td.is-index,
  table.data-table tbody td[data-label="#"] {
    display: none;
  }
  table.data-table tbody td.is-check {
    display: block;
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0;
    border: none;
    width: auto;
  }
  table.data-table tbody td.is-check::before { display: none; }
  table.data-table tbody td.is-blank,
  table.data-table tfoot td.is-blank {
    display: none;
  }
  table.data-table tbody td.is-check input {
    width: 22px;
    height: 22px;
  }
  /* مساحة للـcheckbox المثبّت في ركن الكارت بدل ما يركب على أول قيمة
     (أهم من قواعد الموديول اللي بتحط padding للصف) */
  table.data-table tbody tr.has-pin {
    padding-left: 42px !important;
  }
  table.data-table tbody td.is-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-bottom: none;
  }
  table.data-table tbody td.is-actions::before {
    display: block;
    content: attr(data-label);
    flex: 0 0 100%;
    margin-bottom: 2px;
    max-width: none;
  }
  /* أزرار الإجراءات جوه خلية الجدول: زرارين في السطر بدل ما يتكدسوا */
  table.data-table tbody td.is-actions > .btn,
  table.data-table tbody td.is-actions > form {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    margin: 0;
  }
  table.data-table tbody td.is-actions > form {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  /* الحقول المرئية فقط هي اللي تستحق صف كامل — input hidden مش سبب */
  table.data-table tbody td.is-actions > form:has(input:not([type=hidden]), select) {
    flex-basis: 100%;
  }
  table.data-table tbody td.is-actions > form .btn { width: 100%; }
  /* آخر زرار لوحده في صف شبكة .row-actions ياخد العمودين */
  .row-actions > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  /* آخر زرار مباشر في خلية الإجراءات لو فضل لوحده يملا العرض */
  table.data-table tbody td.is-actions > .btn:last-child,
  table.data-table tbody td.is-actions > form:last-child {
    flex-grow: 1;
  }
  table.data-table tbody td.is-actions > form input[type="number"],
  table.data-table tbody td.is-actions > form input[type="text"] {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
  }

  /* مصفوفة الصلاحيات: كارت لكل صفحة + 4 صناديق اختيار في شبكة */
  table.data-table.perm-matrix tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
  }
  table.data-table.perm-matrix tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-muted);
    text-align: start;
  }
  table.data-table.perm-matrix tbody td::before {
    display: block;
    flex: none;
    max-width: none;
    margin: 0;
    font-size: 12px;
  }
  table.data-table.perm-matrix tbody td:first-child {
    grid-column: 1 / -1;
    display: block;
    padding: 0 0 8px;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
    font-size: 15px;
    font-weight: 800;
  }
  table.data-table.perm-matrix tbody td:first-child::before { display: none; }
  table.data-table.perm-matrix tbody td:first-child span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
    opacity: .5;
  }
  table.data-table.perm-matrix tbody td input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin: 0;
    flex: 0 0 auto;
  }
  table.data-table tbody td.is-span {
    display: block;
    text-align: center;
    justify-content: center;
    border: none;
    color: var(--text-muted);
  }
  table.data-table tbody td.is-span::before { display: none; }

  table.data-table tfoot tr {
    display: block;
    padding: 12px;
    margin-top: 4px;
    border-radius: 12px;
    background: var(--bg-muted);
    border: 1px solid var(--border);
  }
  table.data-table tfoot td {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    text-align: start;
    border: none;
    background: transparent;
  }
  table.data-table tfoot td::before {
    content: attr(data-label);
    font-weight: 800;
    color: var(--text-muted);
    font-size: 12px;
  }
  table.data-table tfoot td:not([data-label])::before,
  table.data-table tfoot td[data-label=""]::before { display: none; }

  /* Invoice / form line tables: stack fields, never pin the product cell as a checkbox */
  table.data-table.form-lines tbody td {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
  }
  table.data-table.form-lines tbody td::before {
    flex: none;
    max-width: none;
    width: 100%;
  }
  table.data-table.form-lines tbody td.is-title {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    font-size: inherit;
    font-weight: inherit;
  }
  table.data-table.form-lines tbody td.is-check {
    position: static;
    width: 100%;
    top: auto;
    left: auto;
  }
  table.data-table.form-lines input.field,
  table.data-table.form-lines select.field,
  table.data-table.form-lines textarea.field {
    width: 100%;
    max-width: 100%;
  }
  table.data-table.form-lines .line-meta,
  table.data-table.form-lines .fixed-panel,
  table.data-table.form-lines .member-grid,
  table.data-table.form-lines .uc-meta {
    width: 100%;
    min-width: 0;
  }

  .member-grid {
    grid-template-columns: 1fr !important;
  }
  .member-chip {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    align-items: flex-start;
  }
  .member-chip input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
  }
  .member-chip .mc-name,
  .member-chip .mc-amt {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .member-chip .mc-amt { white-space: nowrap; }
  .member-chip-qty {
    align-items: center;
    max-width: 100%;
  }
  .member-chip-qty .mc-check {
    min-width: 0;
    flex: 1 1 auto;
  }
  .mc-qty {
    flex: 0 0 auto;
    margin-inline-start: auto;
  }
  .mc-qty input[type="number"] {
    width: 48px !important;
    min-width: 48px;
    max-width: 56px;
    min-height: 44px;
    height: 44px;
    padding: 4px 2px !important;
    flex: 0 0 auto;
  }
  .qty-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    flex: 0 0 auto;
  }
  .item-eat-card .member-grid {
    grid-template-columns: 1fr !important;
  }
  .item-eat-guest {
    flex-wrap: wrap;
    align-items: center;
  }
  .item-eat-section,
  .item-eat-card,
  .item-eat-head,
  .item-eat-tools,
  .item-eat-guest,
  .meal-person-costs,
  .meal-summary {
    min-width: 0;
    max-width: 100%;
  }
  .item-eat-head {
    flex-direction: column;
    align-items: stretch;
  }
  .item-eat-tools { width: 100%; }
  .item-eat-tools .btn { flex: 1 1 auto; }
  .meal-person-costs { grid-template-columns: 1fr !important; }
  .meal-summary {
    flex-direction: column;
    align-items: stretch;
  }

  .phone-nav {
    display: flex;
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 180;
    background: color-mix(in srgb, var(--bg-card) 97%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    align-items: stretch;
    gap: 2px;
    box-shadow: 0 -8px 24px rgba(26, 22, 16, 0.08);
  }
  .phone-nav-item {
    flex: 1 1 0;
    min-width: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 7px 4px;
    min-height: 56px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 800;
    font-family: inherit;
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    touch-action: manipulation;
    line-height: 1.15;
  }
  .phone-nav-item span:last-child {
    max-width: 100%;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
  }
  .phone-nav-icon { font-size: 20px; line-height: 1; }
  .phone-nav-item.active {
    color: var(--primary-dark);
    background: color-mix(in srgb, var(--accent) 14%, transparent);
  }
}

/* SaaS: بطاقات الإحصائيات والنماذج أوضح على الشاشات المتوسطة */
@media (max-width: 900px) {
  .page-header {
    flex-wrap: wrap;
  }
  .filters-bar,
  .filter-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .filters-bar .btn,
  .filter-row .btn {
    grid-column: 1 / -1;
  }
  .month-switcher,
  .month-bar {
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .stat-value { font-size: 16px; }
  .hub-back__brand { display: none; }
  /* الكلمة الواحدة الطويلة كانت بتنقسم نصّين في الشريط السفلي */
  .phone-nav-item { font-size: 10.5px; padding-inline: 2px; }
}

@media (max-width: 900px) and (min-width: 420px) {
  .member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (hover: none) {
  .stat-card:hover,
  .btn:hover { transform: none; }
}

@media (max-width: 520px) {
  body.login-page {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 16px;
  }
  body.login-page .login-card {
    padding: 24px 18px;
    max-width: 100%;
    width: 100%;
  }
  body.login-page input.field,
  body.login-page button.btn {
    min-height: 48px;
    font-size: 16px;
    width: 100%;
  }
}

.hub-owner-console {
  display: block;
  margin: 6px 0 8px;
  color: #f0d090;
  font-weight: 800;
  text-decoration: none;
}

#hubBrandGate { -webkit-user-select: none; user-select: none; }

.k697-install-card {
  margin: 0 0 18px;
  width: 100%;
  max-width: 1020px;
}
.k697-install-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 14px 16px;
  border: 1.5px solid rgba(240, 160, 48, 0.45);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(240, 160, 48, 0.16), rgba(240, 160, 48, 0.04)), #101820;
  color: #f5f0e8;
  font: inherit;
  cursor: pointer;
  text-align: inherit;
}
.k697-install-ico {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #1c2834, #121920);
  font-size: 20px;
}
.k697-install-copy {
  flex: 1;
  min-width: 0;
}
.k697-install-copy strong {
  display: block;
  color: #f6ecd0;
  font-size: 16px;
  font-weight: 800;
}
.k697-install-copy small {
  display: block;
  margin-top: 4px;
  color: #cbb98a;
  font-size: 12.5px;
  line-height: 1.55;
  font-weight: 700;
}
.k697-install-chev {
  color: #f0a030;
  font-size: 22px;
  font-weight: 800;
}

.install-banner {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 1090;
  max-width: 520px;
  margin: 0 auto;
  background: #101820;
  color: #f5f0e8;
  border: 1px solid rgba(240, 160, 48, 0.4);
  border-radius: 18px;
  padding: 12px 14px;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.5;
  box-shadow: 0 16px 36px rgba(11, 16, 22, 0.4);
  padding-top: 16px;
}
.install-banner.show { display: flex; }
.install-banner .install-close {
  position: absolute;
  top: 6px;
  left: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #9aa3ad;
  font-size: 18px;
  cursor: pointer;
}
.install-banner .install-ico {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #1c2834, #121920);
  font-size: 20px;
}
.install-banner .install-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.install-banner .install-copy strong {
  font-size: 14.5px;
  color: #f6ecd0;
}
.install-banner .install-copy small {
  color: #9aa3ad;
  font-size: 12px;
  font-weight: 700;
}
.install-banner .install-btn {
  flex: 0 0 auto;
  border: none;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
  padding: 8px 14px;
  min-height: 40px;
  cursor: pointer;
  background: #f0a030;
  color: #0b1016;
}

.app-install-help {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1600;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
}
.app-install-help.is-visible { display: flex; }
.app-install-sheet {
  width: min(520px, 100%);
  background: #101820;
  color: #f4f5f7;
  border-top: 1.5px solid #f0a030;
  border-radius: 20px 20px 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
}
.app-install-sheet h2 {
  margin: 0 0 10px;
  color: #f6ecd0;
  font-size: 18px;
}
.app-install-sheet ol {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  color: #d8dbe0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app-install-sheet li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 14px;
  background: #0b1016;
  border: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.65;
  font-size: 14px;
  font-weight: 700;
}
.app-install-step {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 160, 48, 0.16);
  color: #f0a030;
  font-weight: 800;
  font-size: 13.5px;
}
.app-install-sheet button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: #f0a030;
  color: #0b1016;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}

@media (max-width: 900px) {
  body:not(.login-page) .install-banner {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 901px) {
  .install-banner { display: none !important; }
}

@media (display-mode: standalone) {
  .install-banner,
  .k697-install-card,
  .app-install-help { display: none !important; }
}

@media print {
  .phone-nav,
  .topbar-search-btn,
  .install-banner,
  .k697-install-card,
  .app-install-help { display: none !important; }
  .content { padding: 0 !important; }
  .site-footer { padding-bottom: 16px !important; margin-bottom: 0 !important; }
  table.data-table { display: table !important; min-width: 0 !important; }
  table.data-table thead { display: table-header-group !important; }
  table.data-table tbody { display: table-row-group !important; }
  table.data-table tfoot { display: table-footer-group !important; }
  table.data-table tr { display: table-row !important; padding: 0 !important; border: none !important; background: none !important; box-shadow: none !important; }
  table.data-table th,
  table.data-table td {
    display: table-cell !important;
    position: static !important;
    padding: 4px 5px !important;
    gap: 0 !important;
    border-bottom: 1px solid #666 !important;
    text-align: start;
  }
  /* عناوين الخلايا الخاصة بالموبايل تتكرر فوق الرأس الحقيقي في الطباعة */
  table.data-table td::before { content: none !important; display: none !important; }
  /* إعادة العرض كخلايا يجب ألا تُبطل إخفاء الأعمدة القابلة للنقر */
  table.data-table .no-print { display: none !important; }
  table.data-table td.is-index { display: table-cell !important; }
  table.data-table td.is-blank { display: table-cell !important; }
  table.data-table:has(td.is-actions) thead th:last-child,
  table.data-table td.is-actions { display: none !important; }
}

/* لوحة الكانتين: كروت الأرقام الصغيرة سطرين على الموبايل بدل 6 صفوف */
@media (max-width: 720px) {
  .dash-bento .dash-tile--sm {
    grid-column: span 6;
    min-height: 88px;
    padding: 12px 13px;
  }
  .dash-bento .dash-tile--sm .tile-value { font-size: 17px; }
  .dash-bento .dash-tile--sm .tile-label { font-size: 11px; line-height: 1.35; }
}

/* بطاقة التحميل نصّها خاص بـ iPhone/Safari — لا محل لها على الشاشات الكبيرة */
@media (min-width: 901px) {
  .k697-install-card { display: none !important; }
}
