/* All Info India CRM — website app (/crm/). Loaded only on the CRM page, together with crm.css. */
html{-webkit-text-size-adjust:100%}
body.crmf-body{margin:0;background:#f3f5fa;color:#334155;font:14.5px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Noto Sans Bengali",sans-serif;-webkit-font-smoothing:antialiased}
.crmf-body *,.crmf-body *::before,.crmf-body *::after{box-sizing:border-box}
.crmf-body a{color:#283894}
.crmf-body h1,.crmf-body h2,.crmf-body h3{color:#0f172a;line-height:1.3}
.crmf-body p{margin:0 0 8px}
.crmf-body img{max-width:100%}
.crmf-body .screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.crmf-body [hidden]{display:none!important}
.crmf-body :focus-visible{outline:3px solid #93a3ec;outline-offset:2px}

/* ---------- WordPress admin look-alikes used by the CRM screens ---------- */
.crmf-body input[type=text],.crmf-body input[type=search],.crmf-body input[type=email],.crmf-body input[type=url],.crmf-body input[type=tel],.crmf-body input[type=number],.crmf-body input[type=date],.crmf-body input[type=month],.crmf-body input[type=time],.crmf-body input[type=password],.crmf-body select,.crmf-body textarea{font:inherit;font-size:14.5px;color:#0f172a;background:#fff;border:1px solid #cfd6e4;border-radius:9px;min-height:40px;padding:7px 11px;margin:0;box-shadow:none;outline:0;transition:border-color .15s,box-shadow .15s;max-width:100%}
.crmf-body select{padding-right:30px;-webkit-appearance:none;appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center}
.crmf-body input:focus,.crmf-body select:focus,.crmf-body textarea:focus{border-color:#283894;box-shadow:0 0 0 3px rgba(40,56,148,.14)}
.crmf-body input[type=checkbox],.crmf-body input[type=radio]{width:17px;height:17px;accent-color:#283894;margin:0}
.crmf-body textarea{line-height:1.5}
.crmf-body .button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:0 14px;border-radius:9px;border:1px solid #cfd6e4;background:#fff;color:#1e293b;font:inherit;font-size:14px;font-weight:600;line-height:1.2;text-decoration:none;white-space:nowrap;cursor:pointer;transition:background-color .15s,border-color .15s,color .15s}
.crmf-body .button:hover{border-color:#283894;color:#283894}
.crmf-body .button-primary{background:#283894;border-color:#283894;color:#fff!important}
.crmf-body .button-primary:hover{background:#1e2b77;border-color:#1e2b77;color:#fff}
.crmf-body .button-small{min-height:32px;padding:0 11px;font-size:13px}
.crmf-body .button-large{min-height:44px;padding:0 18px;font-size:15px}
.crmf-body .button-link{border:0;background:none;padding:0;min-height:0;color:#283894;cursor:pointer;font:inherit}
.crmf-body .button .dashicons{font-size:17px;width:17px;height:17px;line-height:17px}
.crmf-body .notice{position:relative;background:#fff;border:1px solid #e5e8ef;border-left:4px solid #283894;border-radius:10px;padding:10px 14px;margin:0 0 14px;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.crmf-body .notice p{margin:0;font-weight:600;color:#0f172a}
.crmf-body .notice-success{border-left-color:#16a34a;background:#f3fbf6}
.crmf-body .notice-error{border-left-color:#dc2626;background:#fef4f3}
.crmf-body .notice-warning{border-left-color:#d97706;background:#fffaf0}
.crmf-body .crm{max-width:1400px;margin:0 auto}
.crmf-body .crm-h1{font-size:23px!important}

/* ---------- App shell ---------- */
.crmf{display:grid;grid-template-columns:256px minmax(0,1fr);min-height:100vh;background:linear-gradient(90deg,#131b4d 256px,transparent 256px)}
.crmf-side{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:6px;padding:18px 14px;background:linear-gradient(185deg,#1b2566 0%,#131b4d 100%);color:#c9d0f0;overflow-y:auto;z-index:40}
.crmf-brand{display:flex;align-items:center;gap:11px;padding:6px 8px 18px;margin-bottom:6px;border-bottom:1px solid rgba(255,255,255,.1);text-decoration:none;color:#fff!important}
.crmf-brand img{width:40px;height:40px;object-fit:contain;border-radius:11px;background:#fff;padding:3px}
.crmf-mark{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;background:#fff;color:#283894;font-weight:800;font-size:19px}
.crmf-brand strong{display:block;font-size:15.5px;line-height:1.2}
.crmf-brand small{display:inline-block;margin-top:3px;padding:1px 8px;border-radius:999px;background:rgba(255,255,255,.14);font-size:11px;font-weight:700;letter-spacing:.08em;color:#dfe4ff}
.crmf-nav{display:flex;flex-direction:column;gap:2px}
.crmf-nav-h{margin:14px 10px 6px!important;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#8190d6}
.crmf-nav a{display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:10px;color:#c9d0f0!important;text-decoration:none;font-weight:600;font-size:14.5px;transition:background-color .15s,color .15s}
.crmf-nav a .dashicons{font-size:19px;width:19px;height:19px;color:#8f9be0}
.crmf-nav a:hover{background:rgba(255,255,255,.08);color:#fff!important}
.crmf-nav a.is-on{background:#fff;color:#1b2566!important;box-shadow:0 8px 18px -10px rgba(0,0,0,.5)}
.crmf-nav a.is-on .dashicons{color:#283894}
.crmf-nav em{margin-left:auto;min-width:22px;padding:1px 7px;border-radius:999px;background:#ef4444;color:#fff;font-style:normal;font-size:11.5px;font-weight:800;text-align:center}
.crmf-side-foot{margin-top:auto;padding-top:12px;border-top:1px solid rgba(255,255,255,.1);display:flex;flex-direction:column;gap:2px}
.crmf-side-foot a{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:10px;color:#aab3e6!important;text-decoration:none;font-size:13.5px;font-weight:600}
.crmf-side-foot a:hover{background:rgba(255,255,255,.08);color:#fff!important}
.crmf-side-foot .dashicons{font-size:17px;width:17px;height:17px}

.crmf-main{min-width:0;display:flex;flex-direction:column}
.crmf-top{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:12px;height:64px;padding:0 24px;background:rgba(255,255,255,.92);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid #e5e8ef}
.crmf-burger{display:none;width:40px;height:40px;border-radius:10px;border:1px solid #e5e8ef;background:#fff;color:#0f172a;cursor:pointer;place-items:center;padding:0}
.crmf-search{position:relative;flex:1;max-width:460px}
.crmf-search .dashicons{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#94a3b8}
.crmf-body .crmf-search input[type=search]{width:100%;padding-left:38px;background:#f3f5fa;border-color:transparent;border-radius:11px}
.crmf-body .crmf-search input[type=search]:focus{background:#fff;border-color:#283894}
.crmf-new{margin-left:auto}
.crmf-user{position:relative}
.crmf-user summary{display:flex;align-items:center;gap:10px;padding:4px 8px 4px 4px;border-radius:12px;cursor:pointer;list-style:none}
.crmf-user summary::-webkit-details-marker{display:none}
.crmf-user summary:hover{background:#f3f5fa}
.crmf-av{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#283894,#4f5fd1);color:#fff;font-weight:800;font-size:14px}
.crmf-user strong{display:block;font-size:14px;color:#0f172a;line-height:1.2}
.crmf-user small{display:block;font-size:12px;color:#64748b}
.crmf-user .dashicons-arrow-down-alt2{font-size:16px;width:16px;height:16px;color:#64748b}
.crmf-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:210px;padding:6px;border-radius:14px;background:#fff;border:1px solid #e5e8ef;box-shadow:0 20px 40px -18px rgba(15,23,42,.35)}
.crmf-menu a{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:9px;color:#1e293b!important;text-decoration:none;font-weight:600}
.crmf-menu a:hover{background:#f3f5fa;color:#283894!important}
.crmf-menu .dashicons{font-size:17px;width:17px;height:17px;color:#64748b}
.crmf-content{padding:22px 24px 48px;min-width:0}
.crmf-scrim{position:fixed;inset:0;z-index:35;background:rgba(15,23,42,.45)}

/* No-access / bare screens */
.crmf-bare{min-height:100vh;display:grid;place-items:center;padding:24px}
.crmf-na{max-width:480px;text-align:center;background:#fff;border:1px solid #e5e8ef;border-radius:20px;padding:36px 28px;box-shadow:0 24px 50px -30px rgba(15,23,42,.4)}
.crmf-na>.dashicons{font-size:30px;width:64px;height:64px;line-height:64px;border-radius:18px;background:#eef1fb;color:#283894;margin-bottom:14px}
.crmf-na h1{font-size:21px;margin:0 0 8px}
.crmf-na p{color:#64748b}
.crmf-na-act{display:flex;gap:10px;justify-content:center;margin-top:18px!important}

@media (max-width:1024px){
  .crmf{grid-template-columns:1fr;background:none}
  .crmf-side{position:fixed;left:0;top:0;bottom:0;width:272px;transform:translateX(-100%);transition:transform .25s ease;box-shadow:20px 0 40px -20px rgba(0,0,0,.5)}
  .crmf.is-open .crmf-side{transform:none}
  .crmf-burger{display:grid}
}
@media (max-width:640px){
  .crmf-top{padding:0 12px;gap:8px}
  .crmf-hide-sm{display:none}
  .crmf-new .button{padding:0 11px}
  .crmf-content{padding:16px 12px 40px}
  .crmf-body .crm-top{align-items:flex-start}
  .crmf-body .crm-actions .button{min-height:36px}
  .crmf-body .crm-card{padding:16px}
  .crmf-body .crm-kpis,.crmf-body .crm-kpis.is-3{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .crmf-body .crm-kpi{padding:12px 14px}
  .crmf-body .crm-kpi strong{font-size:20px}
}
@media print{.crmf-side,.crmf-top{display:none}.crmf{display:block}}
.crmf-nav em.is-blue{background:#4f63ff}
.crmf-av.has-photo{overflow:hidden;background:#e9edf7}
.crmf-av.has-photo img{width:100%;height:100%;object-fit:cover;display:block}
.crmf-nav em.is-amber{background:#f59e0b}
/* Staff app install button */
.crmf-install{display:flex;align-items:center;gap:8px;width:100%;margin:0 0 8px;padding:10px 12px;border:0;border-radius:10px;background:#fff;color:#1b2566;font:inherit;font-weight:700;cursor:pointer}
.crmf-install[hidden]{display:none}
.crmf-install .dashicons{color:#1b2566}
/* CRM login (staff app) */
.crmf-login{width:100%;max-width:380px;background:#fff;border:1px solid #e3e6f0;border-radius:18px;padding:28px 24px;box-shadow:0 20px 40px -24px rgba(15,23,56,.35);text-align:center}
.crmf-login img{width:64px;height:64px;object-fit:contain;border-radius:14px}
.crmf-login h1{font-size:21px;margin:12px 0 2px;color:#0f1738}
.crmf-login-sub{margin:0 0 18px;color:#6b7394}
.crmf-login form{text-align:left}
.crmf-login form p{margin:0 0 12px}
.crmf-login label{display:block;font-weight:600;font-size:14px;margin-bottom:4px;color:#334155}
.crmf-login input[type=text],.crmf-login input[type=password]{width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid #d6dae6;border-radius:10px;font-size:16px}
.crmf-login .login-remember label{display:flex;align-items:center;gap:8px;font-weight:500}
.crmf-login .button,.crmf-login input[type=submit]{width:100%;padding:12px;border:0;border-radius:10px;background:#1b2566;color:#fff;font-size:16px;font-weight:700;cursor:pointer}
.crmf-login-lost{margin:12px 0 0;font-size:14px}
