/* MARRC Enterprise Completion UI — isolated namespace */
.marrc-ent-panel{padding:0!important}
.marrc-ent-shell{display:grid;gap:16px}
.marrc-ent-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:8px}
.marrc-ent-head h1{margin:0;font-size:clamp(1.25rem,2.2vw,1.8rem)}
.marrc-ent-head p{margin:.35rem 0 0;opacity:.78}
.marrc-ent-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.marrc-ent-card{border:1px solid rgba(148,163,184,.22);border-radius:16px;padding:15px;background:linear-gradient(145deg,rgba(15,23,42,.96),rgba(30,41,59,.92));box-shadow:0 10px 30px rgba(2,6,23,.16)}
.marrc-ent-card h3{margin:0 0 8px;font-size:1rem}
.marrc-ent-kpi-label{font-size:.74rem;text-transform:uppercase;letter-spacing:.08em;opacity:.65}
.marrc-ent-kpi{font-size:1.8rem;font-weight:800;margin-top:5px}
.marrc-ent-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.marrc-ent-toolbar>*{max-width:100%}
.marrc-ent-input,.marrc-ent-select,.marrc-ent-textarea{width:100%;box-sizing:border-box;border:1px solid rgba(148,163,184,.28);border-radius:10px;padding:10px 11px;background:rgba(2,6,23,.35);color:inherit}
.marrc-ent-textarea{min-height:90px;resize:vertical}
.marrc-ent-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.marrc-ent-form .wide{grid-column:span 2}
.marrc-ent-form .full{grid-column:1/-1}
.marrc-ent-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}
.marrc-ent-btn{border:1px solid rgba(148,163,184,.32);border-radius:10px;padding:9px 12px;background:rgba(15,23,42,.5);color:inherit;cursor:pointer;font:inherit}
.marrc-ent-btn.primary{background:rgba(180,83,9,.86);border-color:rgba(251,191,36,.45);color:#fff}
.marrc-ent-btn.success{background:rgba(22,101,52,.82);color:#fff}
.marrc-ent-btn.danger{background:rgba(127,29,29,.82);color:#fff}
.marrc-ent-btn:focus-visible,.marrc-ent-input:focus-visible,.marrc-ent-select:focus-visible,.marrc-ent-textarea:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.marrc-ent-table{width:100%;border-collapse:collapse;font-size:.9rem}
.marrc-ent-table th,.marrc-ent-table td{padding:9px 8px;border-bottom:1px solid rgba(148,163,184,.15);text-align:left;vertical-align:top}
.marrc-ent-table th{font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;opacity:.65}
.marrc-ent-scroll{overflow:auto}
.marrc-ent-pill{display:inline-flex;align-items:center;gap:5px;border:1px solid rgba(148,163,184,.22);border-radius:999px;padding:3px 8px;font-size:.72rem;background:rgba(148,163,184,.08)}
.marrc-ent-muted{opacity:.7;font-size:.86rem}
.marrc-ent-status{min-height:1.3rem;margin-top:7px;font-size:.85rem}
.marrc-ent-list{display:grid;gap:9px}
.marrc-ent-item{border:1px solid rgba(148,163,184,.18);border-radius:13px;padding:12px;background:rgba(2,6,23,.2)}
.marrc-ent-item-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;flex-wrap:wrap}
.marrc-ent-2col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.marrc-ent-progress{height:9px;border-radius:999px;background:rgba(148,163,184,.15);overflow:hidden}
.marrc-ent-progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#d97706,#f59e0b);transition:width .35s ease}
.marrc-ent-empty{padding:18px;border:1px dashed rgba(148,163,184,.24);border-radius:13px;opacity:.72}
.marrc-ent-note{font-size:.78rem;opacity:.7;margin-top:6px}
.marrc-ent-tab{position:relative}
@media (max-width:1100px){.marrc-ent-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.marrc-ent-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.marrc-ent-grid,.marrc-ent-form,.marrc-ent-2col{grid-template-columns:1fr}.marrc-ent-form .wide{grid-column:auto}.marrc-ent-card{padding:12px}.marrc-ent-table{min-width:760px}}

/* ============================================================
   MARRC-ENTERPRISE-READABILITY-V1
   Light enterprise workspace / high-contrast typography
   Scoped exclusively to .marrc-ent-* components.
   ============================================================ */

.marrc-ent-panel{
  color:#16233b !important;
}

.marrc-ent-shell{
  color:#16233b !important;
}

.marrc-ent-head h1,
.marrc-ent-head h2,
.marrc-ent-head h3{
  color:#16233b !important;
  opacity:1 !important;
}

.marrc-ent-head p{
  color:#66758a !important;
  opacity:1 !important;
}

.marrc-ent-card{
  background:#ffffff !important;
  color:#16233b !important;
  border:1px solid #dfe5ee !important;
  box-shadow:0 10px 28px rgba(16,24,40,.08) !important;
}

.marrc-ent-card h1,
.marrc-ent-card h2,
.marrc-ent-card h3,
.marrc-ent-card h4,
.marrc-ent-card strong{
  color:#16233b !important;
  opacity:1 !important;
}

.marrc-ent-card p{
  color:#5f6f86 !important;
  opacity:1 !important;
  line-height:1.55;
}

.marrc-ent-kpi-label{
  color:#5f6f86 !important;
  opacity:1 !important;
  font-weight:800;
}

.marrc-ent-kpi{
  color:#102a56 !important;
  opacity:1 !important;
  font-weight:900;
}

.marrc-ent-item{
  background:#f7f9fc !important;
  color:#24344d !important;
  border:1px solid #dfe5ee !important;
}

.marrc-ent-item strong,
.marrc-ent-item span,
.marrc-ent-item div,
.marrc-ent-item p{
  color:#24344d !important;
  opacity:1 !important;
}

.marrc-ent-list{
  color:#24344d !important;
}

.marrc-ent-list > div{
  color:#24344d !important;
}

.marrc-ent-input,
.marrc-ent-select,
.marrc-ent-textarea{
  background:#ffffff !important;
  color:#172b4d !important;
  border:1px solid #cfd8e6 !important;
  box-shadow:inset 0 1px 2px rgba(16,24,40,.03) !important;
}

.marrc-ent-input::placeholder,
.marrc-ent-textarea::placeholder{
  color:#74839a !important;
  opacity:1 !important;
}

.marrc-ent-select option{
  background:#ffffff !important;
  color:#172b4d !important;
}

.marrc-ent-btn{
  background:#ffffff !important;
  color:#17345f !important;
  border:1px solid #c7d2e2 !important;
  font-weight:800 !important;
  box-shadow:0 3px 10px rgba(16,24,40,.05) !important;
}

.marrc-ent-btn.primary{
  background:linear-gradient(135deg,#d9a441,#f07b3c) !important;
  color:#ffffff !important;
  border-color:#d88a2c !important;
  font-weight:900 !important;
}

.marrc-ent-btn.success{
  background:#198754 !important;
  color:#ffffff !important;
  border-color:#198754 !important;
}

.marrc-ent-btn:hover,
.marrc-ent-btn:focus-visible{
  filter:brightness(.98);
  transform:translateY(-1px);
}

.marrc-ent-card table,
.marrc-ent-card th,
.marrc-ent-card td{
  color:#24344d !important;
}

.marrc-ent-card th{
  background:#f6f8fb !important;
  color:#4d6079 !important;
}

.marrc-ent-card td{
  background:#ffffff !important;
  border-color:#e2e7ef !important;
}

.marrc-ent-card a{
  color:#174a9c !important;
  font-weight:700;
}

.marrc-ent-card small{
  color:#6b7b91 !important;
  opacity:1 !important;
}

.marrc-ent-card label{
  color:#34465f !important;
  font-weight:700;
}

.marrc-ent-card input,
.marrc-ent-card select,
.marrc-ent-card textarea{
  color:#172b4d !important;
}

.marrc-ent-card input:focus,
.marrc-ent-card select:focus,
.marrc-ent-card textarea:focus{
  outline:3px solid rgba(217,164,65,.18) !important;
  border-color:#d3a142 !important;
}

.marrc-ent-card .muted,
.marrc-ent-card .note,
.marrc-ent-card .empty,
.marrc-ent-card .status{
  color:#66758a !important;
  opacity:1 !important;
}

.marrc-ent-card .error{
  color:#b42318 !important;
  opacity:1 !important;
}

.marrc-ent-card .success{
  color:#087443 !important;
  opacity:1 !important;
}

@media (max-width:900px){
  .marrc-ent-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:640px){
  .marrc-ent-grid{
    grid-template-columns:1fr;
  }

  .marrc-ent-card{
    padding:14px !important;
  }

  .marrc-ent-btn{
    min-height:44px;
  }

  .marrc-ent-input,
  .marrc-ent-select,
  .marrc-ent-textarea{
    min-height:44px;
  }
}

/* MARRC CRM LAYOUT V2 ZERO-IMPACT PREVIEW */
.marrc-ent-card{min-width:0!important;overflow:visible!important;}
.marrc-ent-card form{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px!important;align-items:end!important;}
.marrc-ent-card form>*{min-width:0!important;max-width:100%!important;}
.marrc-ent-card form textarea{grid-column:1/-1!important;width:100%!important;min-height:90px!important;resize:vertical;}
.marrc-ent-card input,.marrc-ent-card select,.marrc-ent-card textarea{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;}
.marrc-ent-card .job-meta,.marrc-ent-card .pill{max-width:100%;overflow-wrap:anywhere;}
@media(max-width:760px){.marrc-ent-card form{grid-template-columns:1fr!important}.marrc-ent-card form textarea{grid-column:auto!important}.marrc-ent-card form button{width:100%;}}
@media(max-width:900px){.marrc-ent-grid{grid-template-columns:1fr!important;}}
/* END MARRC CRM LAYOUT V2 ZERO-IMPACT PREVIEW */
/* MARRC CRM LAYOUT V3 */
.marrc-ent-form{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px 12px!important;align-items:end!important;min-width:0!important;overflow:visible!important}
.marrc-ent-form>*{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
.marrc-ent-form input,.marrc-ent-form select,.marrc-ent-form textarea{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
.marrc-ent-form textarea,.marrc-ent-form .wide{grid-column:1/-1!important}
.marrc-ent-form button{max-width:100%!important;min-width:0!important}
.marrc-ent-form input::placeholder,.marrc-ent-form textarea::placeholder{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
.marrc-ent-card{min-width:0!important;overflow:visible!important}
@media(max-width:760px){
 .marrc-ent-form{grid-template-columns:1fr!important}
 .marrc-ent-form textarea,.marrc-ent-form .wide{grid-column:auto!important}
 .marrc-ent-form button{width:100%!important}
}
@media(max-width:900px){
 .marrc-ent-grid{grid-template-columns:1fr!important}
}
/* END MARRC CRM LAYOUT V3 */

/* MARRC WHATSAPP UI V2 */
.marrc-wa-list{max-height:390px;overflow:auto;padding-right:3px}
.marrc-wa-tools{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
.marrc-wa-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.marrc-wa-actions .marrc-ent-btn{font-size:12px;padding:7px 9px!important}
.marrc-wa-meta{font-size:11px;opacity:.65;margin-top:5px}
.marrc-wa-more{font-size:12px;text-align:center;padding:8px;opacity:.7}
@media(max-width:760px){
  .marrc-wa-actions .marrc-ent-btn{flex:1 1 120px}
  .marrc-wa-tools .marrc-ent-btn{flex:1 1 130px}
}
/* END MARRC WHATSAPP UI V2 */

