/* Scoped, mobile-first enhancements for the private Anahita Sales CRM PWA. */
body.page-id-305 .crm-pwa-bar {
  position: sticky; top: 0; z-index: 70;
  margin: 0 auto 12px; padding: 10px 15px;
  max-width: 1250px; border: 1px solid #e1e9e9;
  border-radius: 0 0 17px 17px; direction: rtl;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 35px rgba(17,58,64,.09);
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
body.page-id-305.admin-bar .crm-pwa-bar {top:32px}
body.page-id-305 .crm-pwa-brand {display:flex; gap:9px; align-items:center; min-width:0}
body.page-id-305 .crm-pwa-brand img {width:39px; height:39px; object-fit:contain; border-radius:11px; background:#f2f6f5}
body.page-id-305 .crm-pwa-brand b {display:block; color:#173a40; font-size:14px; line-height:1.25}
body.page-id-305 .crm-pwa-brand small {display:block; color:#648080; font-size:11px; line-height:1.5}
body.page-id-305 .crm-pwa-actions {display:flex; align-items:center; flex-wrap:wrap; gap:6px}
body.page-id-305 .crm-pwa-actions a,
body.page-id-305 .crm-pwa-install {
  cursor:pointer; border:1px solid #d8e7e7; border-radius:10px;
  padding:8px 12px; font:inherit; font-size:12px; font-weight:700;
  line-height:1.5; min-height:38px; display:inline-flex; align-items:center;
  justify-content:center; color:#245b61; text-decoration:none;
  background:#f6fafa; transition: background .2s;
}
body.page-id-305 .crm-pwa-actions a:hover,
body.page-id-305 .crm-pwa-install:hover {background:#e5f1f1}
body.page-id-305 .crm-pwa-actions a[aria-current="page"] {background:#0c6c75; border-color:#0c6c75; color:#fff}
body.page-id-305 .crm-pwa-install {background:#f6edf1; border-color:#ead3dc; color:#8b4360}
body.page-id-305 .crm-pwa-install[hidden] {display:none!important}
body.page-id-305 .crm-pwa-overlay[hidden] {display:none}
body.page-id-305 .crm-pwa-overlay {position:fixed; z-index:100000; inset:0; background:rgba(18,35,42,.56); display:flex; padding:20px; justify-content:center; align-items:center; direction:rtl}
body.page-id-305 .crm-pwa-dialog {position:relative; width:min(430px,100%); border-radius:21px; background:#fff; padding:26px 24px; box-shadow:0 15px 65px #13262d50; text-align:right; color:#213c43}
body.page-id-305 .crm-pwa-dialog h2 {font-size:21px; margin:0 0 14px; color:#17444c}
body.page-id-305 .crm-pwa-dialog p {font-size:14px; line-height:1.9; margin:0 0 10px}
body.page-id-305 .crm-pwa-dialog button {background:#0c6c75; color:white; border:0; padding:10px 18px; border-radius:10px; font:inherit; margin-top:10px; cursor:pointer}
body.page-id-305 .crm-pwa-dialog .crm-pwa-close {position:absolute; top:13px; left:13px; border:0; background:#edf2f2; color:#345; padding:1px 8px; margin:0; border-radius:8px}
body.page-id-305 .ascp-table .asqb-contact-link {display:inline-block; margin:5px 6px 0 0}
@media (max-width:700px) {
  body.page-id-305 .ct-container-full[data-content="normal"] {padding-left:10px; padding-right:10px}
  body.page-id-305 .crm-pwa-bar {margin:0 -2px 15px; padding:10px; border-radius:0 0 15px 15px; flex-wrap:wrap}
  body.page-id-305 .crm-pwa-brand img {width:34px; height:34px}
  body.page-id-305 .crm-pwa-actions {width:100%; display:grid; grid-template-columns:repeat(4,minmax(0,1fr))}
  body.page-id-305 .crm-pwa-actions a,
  body.page-id-305 .crm-pwa-install {padding:9px 4px; font-size:12px; min-width:0; white-space:nowrap}
  body.page-id-305 .ascp-shell {margin:12px 0 24px; font-size:14px}
  body.page-id-305 .ascp-header {border-radius:16px}
  body.page-id-305 .ascp-header h2 {font-size:23px}
  body.page-id-305 .ascp-table td {text-align:right!important; overflow-wrap:anywhere}
  body.page-id-305 .ascp-table td::before {min-width:85px}
  body.page-id-305 .asqb-app {padding:0; margin:12px auto}
  body.page-id-305 .asqb-app-header {padding:16px; border-radius:14px}
  body.page-id-305 .asqb-columns {grid-template-columns:minmax(0,1fr)}
  body.page-id-305 .asqb-card {padding:14px}
  body.page-id-305 .asqb-preview {overflow:auto}
}
@media (display-mode:standalone) {
  body.page-id-305 {background:#f5f9f9}
  body.page-id-305 #header, body.page-id-305 #footer,
  body.page-id-305 .hero-section {display:none!important}
  body.page-id-305 .ct-container-full {padding-top:env(safe-area-inset-top, 0px)}
  body.page-id-305 .crm-pwa-bar {border-radius:0 0 17px 17px}
  body.page-id-305 .crm-pwa-install {display:none!important}
}
