/* Immigration CRM - admin and portal styles. Scoped under .imcrm */
.imcrm{--ink:#1d2327;--mut:#646970;--line:#dcdcde;--bg:#fff;--soft:#f6f7f7;--brand:#1d4e89;--red:#b32d2e;--amber:#996800;--green:#1a7f37;--blue:#1d4e89}
.imcrm *{box-sizing:border-box}
.imcrm h1.imcrm-title{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:6px}
.imcrm .imcrm-sub{color:var(--mut);margin:0 0 14px}
.imcrm-card{background:var(--bg);border:1px solid var(--line);border-radius:6px;padding:14px 16px;margin:0 0 16px}
.imcrm-card>h2,.imcrm-card>h3{margin:0 0 10px;font-size:15px}
.imcrm-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px;align-items:start}
.imcrm-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:0 0 16px}
.imcrm-stat{background:var(--bg);border:1px solid var(--line);border-radius:6px;padding:12px 14px}
.imcrm-stat b{display:block;font-size:26px;line-height:1.1}
.imcrm-stat span{color:var(--mut);font-size:12px}
.imcrm-stat.red b{color:var(--red)}.imcrm-stat.amber b{color:var(--amber)}
.imcrm table.imcrm-t{width:100%;border-collapse:collapse;background:var(--bg)}
.imcrm table.imcrm-t th,.imcrm table.imcrm-t td{padding:7px 9px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;font-size:13px}
.imcrm table.imcrm-t th{background:var(--soft);font-weight:600;white-space:nowrap}
.imcrm table.imcrm-t tr:last-child td{border-bottom:0}
.imcrm .imcrm-empty{color:var(--mut);text-align:center;padding:18px}
.imcrm-badge{display:inline-block;padding:1px 8px;border-radius:10px;font-size:11px;font-weight:600;line-height:18px;background:#e9ecef;color:#333;white-space:nowrap}
.imcrm-b-red{background:#fbe3e4;color:var(--red)}.imcrm-b-amber{background:#fcf0cd;color:#7a5200}.imcrm-b-green{background:#dff3e4;color:var(--green)}
.imcrm-b-blue{background:#e1ecf8;color:var(--blue)}.imcrm-b-muted{background:#eef0f2;color:#646970}
.imcrm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px 14px}
.imcrm-f label{display:block;font-weight:600;margin:0 0 3px;font-size:12px}
.imcrm-f input[type=text],.imcrm-f input[type=email],.imcrm-f input[type=date],.imcrm-f input[type=datetime-local],.imcrm-f input[type=number],.imcrm-f select,.imcrm-f textarea{width:100%;max-width:100%}
.imcrm-wide{grid-column:1/-1}
.imcrm-help{color:var(--mut);font-size:12px;margin:3px 0 0}
.imcrm-req{color:var(--red)}
.imcrm-check{font-weight:400!important}
.imcrm-inline{display:inline;margin:0}
.imcrm-actions{margin:12px 0 0}
.imcrm-warn{background:#fcf0cd;border-left:4px solid #dba617;padding:9px 12px;margin:0 0 14px}
.imcrm-danger{background:#fbe3e4;border-left:4px solid var(--red);padding:9px 12px;margin:0 0 14px}
.imcrm-ok{background:#dff3e4;border-left:4px solid var(--green);padding:9px 12px;margin:0 0 14px}
.imcrm-muted{color:var(--mut)}
.imcrm-right{text-align:right!important}
.imcrm details.imcrm-add{margin:0 0 14px;border:1px dashed var(--line);border-radius:6px;padding:8px 12px;background:var(--soft)}
.imcrm details.imcrm-add>summary{cursor:pointer;font-weight:600}
.imcrm-filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:0 0 12px}
.imcrm-timeline{list-style:none;margin:0;padding:0}
.imcrm-timeline li{padding:6px 0;border-bottom:1px solid var(--line);font-size:13px}
.imcrm-msg{border:1px solid var(--line);border-radius:6px;padding:10px 12px;margin:0 0 10px;background:var(--bg)}
.imcrm-msg.in{background:#f2f7fd}.imcrm-msg header{color:var(--mut);font-size:12px;margin:0 0 6px}
.imcrm-msg pre{white-space:pre-wrap;font:inherit;margin:0}
/* questionnaire */
.imcrm-q h3{margin:22px 0 4px;padding-top:10px;border-top:2px solid var(--line);font-size:15px}
.imcrm-q .imcrm-qnote{color:var(--mut);font-size:12px;margin:0 0 8px}
.imcrm-qrow{margin:0 0 10px}
.imcrm-qrow>label{display:block;font-weight:600;margin:0 0 2px}
.imcrm-qrow .imcrm-help{margin:0 0 3px}
.imcrm-rep{border:1px solid var(--line);border-radius:6px;padding:10px 12px;margin:0 0 10px;background:var(--soft)}
.imcrm-rep>h4{margin:0 0 8px;font-size:13px}
.imcrm-yn{display:flex;gap:16px}
.imcrm-explain{margin-top:6px}
.imcrm-qa dt{font-weight:600;margin-top:8px}.imcrm-qa dd{margin:2px 0 0 0;padding:5px 8px;background:var(--soft);border-radius:4px;white-space:pre-wrap}
.imcrm-qa dd.blank{color:#999;font-style:italic}
.imcrm-pay{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}
.imcrm-pay>div{border:1px solid var(--line);border-radius:6px;padding:10px 12px;background:var(--bg)}
.imcrm-pay h4{margin:0 0 4px}
/* Client invoice: Stripe first, followed by Zelle and Cash App side by side. */
.imcrm-pay.imcrm-invoice-pay{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.imcrm-invoice-pay>div{min-width:0;overflow-wrap:anywhere;padding:20px;border-radius:8px;break-inside:avoid}
.imcrm-invoice-pay>.imcrm-pay-wide{grid-column:1/-1}
.imcrm-invoice-pay>.imcrm-pay-primary{border:1px solid #9db6d6;background:#f5f9ff}
.imcrm-invoice-pay .imcrm-pay-provider{margin:4px 0 12px;color:#475467;font-size:14px}
.imcrm-invoice-pay .imcrm-card-logos{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.imcrm-invoice-pay .imcrm-card-logos .imcrm-payment-logo{display:block;width:54px;height:34px;max-width:100%;object-fit:contain;margin:0;flex:none}
.imcrm-invoice-pay h4.imcrm-pay-brand{display:flex;align-items:center;min-height:40px;margin:0 0 14px}
.imcrm-invoice-pay .imcrm-pay-brand .imcrm-payment-logo{display:block;max-width:100%;object-fit:contain;margin:0}
.imcrm-invoice-pay p:last-child{margin-bottom:0}
.imcrm-invoice-pay .imcrm-pay-cta{display:inline-block;background:#1d4e89;color:#fff;border:1px solid #1d4e89;border-radius:6px;padding:10px 18px;font:600 15px/1.5 -apple-system,Segoe UI,Arial,sans-serif;cursor:pointer;text-decoration:none}
.imcrm-invoice-pay .imcrm-pay-cta:hover{background:#163d6b;color:#fff}
.imcrm-invoice-pay .imcrm-pay-cta:focus-visible{outline:3px solid #7cb1ef;outline-offset:3px}
@media screen and (max-width:560px){.imcrm-pay.imcrm-invoice-pay{grid-template-columns:minmax(0,1fr)}.imcrm-invoice-pay>div{padding:16px}}
/* portal */
.imcrm-portal{max-width:980px;margin:0 auto;padding:8px 0;font-size:16px;line-height:1.5}
.imcrm-portal .imcrm-card{box-shadow:0 1px 2px rgba(0,0,0,.04)}
.imcrm-portal table.imcrm-t th,.imcrm-portal table.imcrm-t td{font-size:14px}
.imcrm-portal .imcrm-btn,.imcrm-portal button.imcrm-btn{display:inline-block;background:var(--brand);color:#fff;border:0;border-radius:5px;padding:9px 16px;font-size:15px;cursor:pointer;text-decoration:none}
.imcrm-portal .imcrm-btn.alt{background:#fff;color:var(--brand);border:1px solid var(--brand)}
.imcrm-portal .imcrm-f input,.imcrm-portal .imcrm-f select,.imcrm-portal .imcrm-f textarea,.imcrm-portal .imcrm-qrow input[type=text],.imcrm-portal .imcrm-qrow input[type=date],.imcrm-portal .imcrm-qrow input[type=email],.imcrm-portal .imcrm-qrow input[type=number],.imcrm-portal .imcrm-qrow select,.imcrm-portal .imcrm-qrow textarea{width:100%;padding:8px;font-size:15px;border:1px solid #8c8f94;border-radius:4px}
.imcrm-portal .imcrm-progress{height:8px;background:#e5e7ea;border-radius:4px;overflow:hidden}
.imcrm-portal .imcrm-progress>i{display:block;height:100%;background:var(--brand)}
.imcrm-portal .imcrm-qrow{margin-bottom:14px}
@media (max-width:640px){.imcrm-portal table.imcrm-t{display:block;overflow-x:auto}}
@media print{
  #adminmenumain,#wpadminbar,#wpfooter,.imcrm-noprint,.nav-tab-wrapper,.notice{display:none!important}
  #wpcontent{margin-left:0!important}html.wp-toolbar{padding-top:0!important}
  .imcrm-card{border:0;padding:0}
  .imcrm-q h3{break-after:avoid}.imcrm-qrow,.imcrm-rep{break-inside:avoid}
  .imcrm-print-blank input,.imcrm-print-blank textarea,.imcrm-print-blank select{border:0!important;border-bottom:1px solid #000!important;background:transparent!important;box-shadow:none!important}
  .imcrm-print-blank textarea{min-height:48px}
}
