.admin-module{--ad-ink:#10263d;--ad-muted:#6d7f90;--ad-line:#dce5ec;--ad-brand:#075985;--ad-deep:#0b365d;--ad-green:#087f5b;min-height:calc(100vh - 56px);background:radial-gradient(circle at 92% 0,rgba(14,116,144,.1),transparent 30rem),#f5f8fa;color:var(--ad-ink)}
.ad-page{padding:30px clamp(20px,3vw,48px) 48px}.ad-page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:20px}.ad-page-header h1{margin:4px 0 6px;font-size:2.1rem;font-weight:780;line-height:1.12;letter-spacing:-.02em}.ad-page-header p{margin:0;color:var(--ad-muted);font-size:.95rem;line-height:1.45}.ad-eyebrow,.ad-section__header span{color:var(--ad-brand);font-size:.74rem;font-weight:850;line-height:1.2;text-transform:uppercase}.ad-page-header__actions,.ad-section__header--actions>div:last-child,.ad-form-actions{display:flex;align-items:center;gap:10px}
.ad-button{min-height:42px;padding:0 14px;border:1px solid var(--ad-line);border-radius:10px;background:#fff;color:var(--ad-ink);font-size:.9rem;font-weight:750;line-height:1.2;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;transition:.18s ease}.ad-button:hover:not(:disabled){border-color:#9fb4c4;color:var(--ad-ink);transform:translateY(-1px);box-shadow:0 5px 14px rgba(16,38,61,.08)}.ad-button:disabled{opacity:.55;cursor:not-allowed}.ad-button--primary{border-color:var(--ad-deep);background:var(--ad-deep);color:#fff}.ad-button--primary:hover:not(:disabled){color:#fff}.ad-button--ghost{background:rgba(255,255,255,.72)}.ad-button--danger{border-color:#b42318;background:#b42318;color:#fff}.ad-button--danger-ghost{border-color:#fecaca;background:#fff7f7;color:#b42318}.ad-button--icon{width:42px;padding:0;color:#b42318}
.ad-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.ad-metrics article{position:relative;padding:16px 18px;border:1px solid var(--ad-line);border-radius:13px;background:rgba(255,255,255,.86);box-shadow:0 5px 18px rgba(16,38,61,.035);overflow:hidden}.ad-metrics span{display:block;color:var(--ad-muted);font-size:.84rem;font-weight:650;line-height:1.3}.ad-metrics strong{display:block;margin-top:4px;font-size:1.8rem;font-weight:780;line-height:1.05}.ad-metrics i{position:absolute;right:16px;bottom:17px;color:#b9cbd7;font-size:1.25rem}
.atlas-admin-panel,.ad-detail-shell{border:1px solid var(--ad-line);border-radius:18px;background:#fff;box-shadow:0 16px 46px rgba(16,38,61,.08);overflow:hidden}.atlas-admin-panel__header{min-height:80px;padding:18px 22px;border-bottom:1px solid var(--ad-line);display:flex;align-items:center;justify-content:space-between;gap:18px}.atlas-admin-panel__header h2{margin:3px 0 0;font-size:1rem;font-weight:780;line-height:1.25}.ad-search{width:min(330px,100%);padding:0 12px;border:1px solid var(--ad-line);border-radius:10px;display:flex;align-items:center;gap:9px;color:var(--ad-muted)}.ad-search input{width:100%;min-height:42px;border:0;outline:0;background:transparent;color:var(--ad-ink);font-size:.9rem}
.ad-company-grid{padding:18px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.ad-company-card{position:relative;min-height:215px;padding:17px;border:1px solid var(--ad-line);border-radius:14px;display:flex;flex-direction:column;color:var(--ad-ink);text-decoration:none;transition:.18s ease}.ad-company-card:hover{border-color:#93b5c7;color:var(--ad-ink);transform:translateY(-2px);box-shadow:0 12px 26px rgba(16,38,61,.09)}.ad-company-card__brand,.ad-detail-hero__brand{width:43px;height:43px;border-radius:11px;background:linear-gradient(145deg,#0d668d,var(--ad-deep));display:grid;place-items:center;color:#fff;font-size:.8rem;font-weight:850;letter-spacing:.04em}.ad-company-card__status{position:absolute;right:15px;top:16px;font-size:.74rem;font-weight:780}.ad-company-card__status i{font-size:.5rem}.ad-company-card__status.is-active{color:#07835e}.ad-company-card__status.is-inactive{color:#b42318}.ad-company-card>strong{margin-top:15px;font-size:1rem;font-weight:780;line-height:1.25}.ad-company-card>small{margin-top:3px;color:var(--ad-muted);font-size:.82rem}.ad-company-card__modules{margin-top:13px;display:flex;flex-wrap:wrap;gap:5px}.ad-company-card__modules code{padding:3px 6px;border-radius:5px;background:#edf3f6;color:#476276;font-size:.7rem}.ad-company-card__open{margin-top:auto;padding-top:14px;border-top:1px solid #edf1f4;color:var(--ad-brand);font-size:.82rem;font-weight:780;display:flex;align-items:center;justify-content:space-between}
.ad-detail-hero{min-height:110px;padding:22px 26px;display:flex;align-items:center;gap:15px}.ad-detail-hero__brand{width:50px;height:50px;font-size:.9rem}.ad-detail-hero h2{margin:4px 0 2px;font-size:1.45rem;font-weight:780;line-height:1.12}.ad-detail-hero__meta{color:var(--ad-muted);font-size:.84rem}.ad-detail-hero>.ad-status-pill{margin-left:auto}.ad-status-pill{padding:6px 9px;border-radius:999px;display:inline-flex;align-items:center;gap:6px;font-size:.74rem;font-weight:780;white-space:nowrap}.ad-status-pill.is-active{background:#dff7ed;color:#067354}.ad-status-pill.is-inactive{background:#fee8e7;color:#a42920}.ad-tabs{display:flex;gap:3px;padding:0 26px;border-top:1px solid var(--ad-line);border-bottom:1px solid var(--ad-line);background:#fbfcfd}.ad-tabs button{position:relative;min-height:50px;padding:0 15px;border:0;background:transparent;color:var(--ad-muted);font-size:.9rem;font-weight:750;line-height:1.2}.ad-tabs button:disabled{opacity:.38}.ad-tabs button.is-active{color:var(--ad-brand)}.ad-tabs button.is-active:after{content:'';position:absolute;left:12px;right:12px;bottom:-1px;height:3px;border-radius:3px 3px 0 0;background:var(--ad-brand)}.ad-detail-content{padding:24px 26px 28px}
.ad-section{border:1px solid var(--ad-line);border-radius:14px;background:#fff;overflow:hidden}.ad-section+.ad-section{margin-top:16px}.ad-section__header{min-height:66px;padding:14px 17px;border-bottom:1px solid var(--ad-line);background:#fbfcfd;display:flex;align-items:center;justify-content:space-between;gap:16px}.ad-section__header h3{margin:3px 0 0;font-size:1rem;font-weight:780;line-height:1.25}.ad-form-grid{padding:18px;display:grid;grid-template-columns:1.2fr 1fr .8fr;gap:15px}.ad-field{display:grid;gap:6px;min-width:0;color:var(--ad-muted);font-size:.78rem;font-weight:750;line-height:1.3}.ad-input{width:100%;min-height:42px;padding:0 11px;border:1px solid #ccd8e1;border-radius:9px;outline:0;background:#fff;color:var(--ad-ink);font-size:.9rem}.ad-input:focus{border-color:#2180aa;box-shadow:0 0 0 3px rgba(33,128,170,.13)}.ad-input:disabled{background:#eef2f5}.ad-field .validation-message{color:#b42318;font-size:.76rem;font-weight:700}.ad-entitlement-grid{padding:18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ad-entitlement{min-height:68px;padding:12px 14px;border:1px solid var(--ad-line);border-radius:11px;display:flex;align-items:center;gap:11px;cursor:pointer}.ad-entitlement:hover{border-color:#9ab4c5;background:#f9fbfc}.ad-entitlement input{width:17px;height:17px;accent-color:var(--ad-brand)}.ad-entitlement>i{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;background:#e7f2f7;color:var(--ad-brand)}.ad-entitlement strong,.ad-entitlement small{display:block}.ad-entitlement strong{font-size:.86rem;font-weight:780;line-height:1.25}.ad-entitlement small{margin-top:2px;color:var(--ad-muted);font-size:.76rem}.ad-entitlement--tenant{border-color:#b7d8ca;background:#f2faf7}.ad-entitlement--tenant>i{background:#d9f2e8;color:var(--ad-green)}.ad-form-actions{margin-top:18px}.ad-form-actions__spacer{flex:1}
.ad-user-list,.ad-whatsapp-list{padding:4px 17px 17px}.ad-user-row{min-height:68px;display:grid;grid-template-columns:40px minmax(130px,1fr) minmax(150px,1.2fr) auto 42px;align-items:center;gap:12px;border-bottom:1px solid #edf1f4}.ad-user-row:last-child,.ad-whatsapp-row:last-child{border-bottom:0}.ad-user-row__avatar{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:var(--ad-deep);color:#fff;font-size:.74rem;font-weight:800}.ad-user-row__identity strong,.ad-user-row__identity span{display:block}.ad-user-row__identity strong,.ad-whatsapp-row__company strong{font-size:.9rem;font-weight:780;line-height:1.3}.ad-user-row__identity span,.ad-user-row__email,.ad-whatsapp-row__company small{color:var(--ad-muted);font-size:.82rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ad-whatsapp-row{min-height:90px;display:grid;grid-template-columns:minmax(190px,.85fr) minmax(220px,1fr) auto;align-items:end;gap:16px;border-bottom:1px solid #edf1f4}.ad-whatsapp-row__company{align-self:center;display:flex;align-items:center;gap:11px}.ad-whatsapp-row__company strong,.ad-whatsapp-row__company small{display:block}.ad-whatsapp-row__company small{margin-top:3px}.ad-whatsapp-row__icon{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:#e0f8ea;color:#087f5b}.ad-field--inline{padding-bottom:13px}.ad-whatsapp-row>.ad-button{margin-bottom:13px}
.ad-state{min-height:300px;border:1px dashed #cbd7df;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--ad-muted);font-size:.9rem;line-height:1.45;text-align:center}.ad-state>i{font-size:1.5rem;color:var(--ad-brand)}.ad-state>strong{color:var(--ad-ink);font-weight:780}.ad-state--error{border-color:#f3b5b0;background:#fff8f7;color:#8e2b24}.ad-state--error>strong{color:#8e2b24}.ad-state--compact{min-height:190px;margin:17px}.ad-inline-loading{min-height:190px;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--ad-muted);font-size:.9rem}.ad-skeleton-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.ad-skeleton{border-radius:16px;background:linear-gradient(90deg,#e8eef2 25%,#f5f8fa 38%,#e8eef2 63%);background-size:400% 100%;animation:ad-shimmer 1.4s infinite}.ad-skeleton--company{min-height:215px}.ad-skeleton--detail{min-height:600px}@keyframes ad-shimmer{0%{background-position:100% 0}100%{background-position:0 0}}
@media(max-width:1000px){.ad-metrics{grid-template-columns:repeat(2,1fr)}.ad-company-grid,.ad-skeleton-grid{grid-template-columns:repeat(2,1fr)}.ad-form-grid{grid-template-columns:1fr}.ad-user-row{grid-template-columns:40px 1fr auto 40px}.ad-user-row__email{display:none}.ad-whatsapp-row{grid-template-columns:1fr;padding:16px 0;align-items:stretch}.ad-field--inline,.ad-whatsapp-row>.ad-button{margin:0;padding:0}}
@media(max-width:700px){.ad-page{padding:20px 12px 36px}.ad-page-header,.atlas-admin-panel__header,.ad-section__header--actions{align-items:flex-start;flex-direction:column}.ad-page-header__actions{width:100%}.ad-page-header__actions .ad-button{flex:1}.ad-metrics,.ad-company-grid,.ad-skeleton-grid,.ad-entitlement-grid{grid-template-columns:1fr}.atlas-admin-panel__header .ad-search{width:100%}.ad-detail-hero{padding:18px 16px;flex-wrap:wrap}.ad-detail-hero>.ad-status-pill{margin-left:0}.ad-tabs{padding:0 8px;overflow-x:auto}.ad-tabs button{white-space:nowrap}.ad-detail-content{padding:16px}.ad-form-actions{flex-wrap:wrap}.ad-form-actions__spacer{display:none}.ad-form-actions .ad-button{flex:1}.ad-section__header--actions>div:last-child{flex-wrap:wrap}}

/* Integration forms share responsive columns; actions keep their intrinsic width. */
.ad-integration-fields,.ad-integration-row{grid-template-columns:repeat(12,minmax(0,1fr))}
.ad-integration-fields>.ad-field,.ad-integration-row>*{grid-column:span 12;min-width:0}
.ad-integration-row>.ad-button{justify-self:start}
.ad-integration-row .ad-whatsapp-row__company>span:last-child{min-width:0}
.ad-integration-row .ad-whatsapp-row__icon{flex-shrink:0}
.ad-form-actions--section{margin-top:0;padding:18px}
@media(min-width:701px){
    .ad-integration-fields>.ad-field,.ad-integration-row>.ad-field,.ad-integration-row>.ad-whatsapp-row__company{grid-column:span 6}
    .ad-integration-row>.ad-button{grid-column:7 / span 6}
}
@media(min-width:1001px){
    .ad-integration-fields>.ad-field,.ad-integration-row>.ad-field,.ad-integration-row>.ad-whatsapp-row__company{grid-column:span 4}
    .ad-integration-row>.ad-button{grid-column:9 / span 4}
}
@media(min-width:1601px){
    .ad-integration-fields>.ad-field,.ad-integration-row>.ad-field,.ad-integration-row>.ad-whatsapp-row__company{grid-column:span 3}
    .ad-integration-row>.ad-button{grid-column:7 / span 3}
}
@media(max-width:700px){
    .ad-integration-row>.ad-button{justify-self:stretch}
}
