/* Inventory and team: match the merchant palette and keep working controls comfortable. */
#catalog-section, #members-section {
  padding: 24px;
  border: 1px solid #e0eaed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 18px #10223508;
}
#catalog-section .panel-head, #members-section .panel-head { margin: 0 0 20px; }
#catalog-section .panel-head h2, #members-section .panel-head h2 { margin: 0 0 5px; font-size: 17px; line-height: 1.5; color: #173542; }
#catalog-section .panel-head p, #members-section .panel-head p { color: #617b87; font-size: 13px; line-height: 1.7; }
#add-product { min-height: 44px; padding: 0 18px; border: 1px solid #008a94; border-radius: 9px; background: #008a94; color: #fff; font-size: 13px; font-weight: 700; }
#add-product:hover { background: #00747d; }
#catalog-branch-label { margin: 0 0 14px; color: #415e68; font-size: 13px; font-weight: 700; }
#catalog-branch-label select { min-width: 200px; min-height: 44px; border-color: #d5e3e7; border-radius: 8px; font-size: 13px; }
#catalog-section .search-form { max-width: none; gap: 10px; }
#catalog-section .search-input { height: 46px; border-color: #d5e3e7; border-radius: 8px; }
#catalog-section .search-input input { height: 44px; font-size: 13px; }
#catalog-section .search-button { min-height: 46px; border-radius: 8px; font-size: 13px; font-weight: 700; }
#catalog-section .catalog-message, #members-section .catalog-message { min-height: 0; margin: 16px 0; color: #526f79; font-size: 13px; line-height: 1.7; }
#catalog-section .catalog-message:empty, #members-section .catalog-message:empty { display: none; }
#catalog-section .catalog-message.error, #members-section .catalog-message.error { color: #a64038; }
#catalog-section .table-scroll, #members-section .table-scroll { border: 1px solid #e0eaed; border-radius: 10px; }
#catalog-section table, #members-section table { min-width: 720px; font-size: 13px; }
#catalog-section th, #members-section th { height: 46px; background: #f4f8f9; color: #607985; font-size: 12px; font-weight: 600; }
#catalog-section td, #members-section td { height: 62px; padding: 12px 14px; color: #263f48; border-bottom: 1px solid #edf2f3; }
#catalog-section tbody tr:last-child td, #members-section tbody tr:last-child td { border-bottom: 0; }
#catalog-section td.product-name, #members-section td.product-name { color: #173542; font-weight: 700; }
#catalog-section td.low { color: #a34235; font-weight: 700; }
#catalog-section .product-thumbnail { width: 44px; height: 44px; border-radius: 9px; background: #edf7f7; }
#catalog-section .load-more { min-height: 44px; border-color: #d5e3e7; color: #315964; font-size: 13px; }
@media (max-width: 760px) {
  #catalog-section, #members-section { padding: 16px; }
  #catalog-section .panel-head, #members-section .panel-head { margin-bottom: 16px; }
  #catalog-branch-label { display: grid; gap: 6px; width: 100%; }
  #catalog-branch-label[hidden] { display: none; }
  #catalog-branch-label select { width: 100%; }
  #catalog-section .search-form { flex-wrap: wrap; }
  #catalog-section .search-input { flex: 1 1 180px; }
  #catalog-section .table-scroll, #members-section .table-scroll { overflow: visible; background: #fff; }
  #catalog-section table, #members-section table { display: block; min-width: 0; width: 100%; }
  #catalog-section thead, #members-section thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  #catalog-section tbody, #members-section tbody { display: grid; }
  #catalog-section tbody tr, #members-section tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; border-bottom: 1px solid #e7eff1; }
  #catalog-section tbody tr:last-child, #members-section tbody tr:last-child { border-bottom: 0; }
  #catalog-section tbody td, #members-section tbody td { display: grid; align-content: start; gap: 4px; height: auto; min-width: 0; padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
  #catalog-section tbody td::before, #members-section tbody td::before { color: #6a838d; font-size: 11px; font-weight: 500; }
  #catalog-section tbody td:nth-child(1)::before { content: 'المنتج'; }
  #catalog-section tbody td:nth-child(2)::before { content: 'التصنيف'; }
  #catalog-section tbody td:nth-child(3)::before { content: 'الباركود'; }
  #catalog-section tbody td:nth-child(4)::before { content: 'الكمية'; }
  #catalog-section tbody td:nth-child(5)::before { content: 'سعر البيع'; }
  #catalog-section tbody td:nth-child(6)::before { content: 'الحالة'; }
  #members-section tbody td:nth-child(1)::before { content: 'الاسم'; }
  #members-section tbody td:nth-child(2)::before { content: 'رقم الهاتف'; }
  #members-section tbody td:nth-child(3)::before { content: 'الدور'; }
  #members-section tbody td:nth-child(4)::before { content: 'الحالة'; }
}
.workspace-empty { display:grid; justify-items:center; gap:8px; text-align:center; padding:48px 20px; border:1px solid #e0eaed; border-radius:10px; background:#fff; }
.workspace-empty[hidden] { display:none; }.workspace-empty-icon { display:grid; place-items:center; width:54px; height:54px; border-radius:15px; background:#e7f6f6; color:#008a94; font-size:26px; }.workspace-empty h3 { margin:6px 0 0; font-size:16px; }.workspace-empty p { margin:0 0 10px; color:#617b87; font-size:13px; line-height:1.7; }.workspace-empty-action { min-height:44px; padding:0 16px; border:0; border-radius:9px; background:#008a94; color:#fff; font:inherit; font-weight:700; cursor:pointer; }

/* Inventory toolbar: search, then filters, each clearly separated from the table below. */
.search-form { margin-bottom: 12px; }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 18px; }
.catalog-filters label { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: #526f79; font-size: 13px; }
.catalog-filters select { min-width: 180px; min-height: 44px; padding: 8px 12px; border: 1px solid #d4e1e8; border-radius: 7px; background: #fff; color: #173542; font: inherit; font-size: 14px; }
.catalog-filters select:disabled { opacity: .6; }
