:root {
    --avt-portal-navy: #101827;
    --avt-portal-navy-2: #172235;
    --avt-portal-red: #d92d20;
    --avt-portal-red-dark: #b42318;
    --avt-portal-button: #d92d20;
    --avt-portal-button-text: #ffffff;
    --avt-portal-button-hover: #b42318;
    --avt-portal-button-hover-text: #ffffff;
    --avt-portal-button-dark: #b42318;
    --avt-portal-menu: #ffffff;
    --avt-portal-menu-active-bg: #fff1f0;
    --avt-portal-text: #172033;
    --avt-portal-muted: #667085;
    --avt-portal-line: #e4e7ec;
    --avt-portal-bg: #f5f7fa;
    --avt-portal-white: #ffffff;
    --avt-portal-alert: #16a34a;
    --avt-portal-green: #067647;
    --avt-portal-blue: #175cd3;
    --avt-portal-amber: #b54708;
}

body.avt-portal-page,
body.avt-portal-page * {
    box-sizing: border-box;
}

body.avt-portal-page {
    margin: 0;
    min-width: 320px;
    background: var(--avt-portal-bg);
    color: var(--avt-portal-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

body.avt-portal-page img {
    max-width: 100%;
    height: auto;
}

body.avt-portal-page a {
    color: inherit;
}

body.avt-portal-page button,
body.avt-portal-page input,
body.avt-portal-page select,
body.avt-portal-page textarea {
    font: inherit;
}

body.avt-portal-page svg {
    width: 1.2em;
    height: 1.2em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.avt-portal-page .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.avt-portal-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.avt-portal-logo-plate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    min-height: 58px;
    padding: 8px 14px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.avt-portal-logo-plate img {
    display: block;
    max-width: 150px;
    max-height: 44px;
    object-fit: contain;
}

.avt-portal-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--avt-portal-red);
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.04em;
    box-shadow: 0 10px 24px rgba(217, 45, 32, 0.25);
}

.avt-portal-brand-name {
    display: grid;
    line-height: 1;
}

.avt-portal-brand-name strong {
    color: var(--avt-portal-navy);
    font-size: 24px;
    letter-spacing: -0.04em;
}

.avt-portal-brand-name small {
    margin-top: 5px;
    color: var(--avt-portal-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.22em;
}

.avt-portal-brand-on-dark .avt-portal-brand-name strong,
.avt-portal-brand-on-dark .avt-portal-brand-name small {
    color: #fff;
}

.avt-portal-login-screen {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(430px, 46%) 1fr;
    background: #fff;
}

.admin-bar .avt-portal-login-screen {
    min-height: calc(100vh - 32px);
}

.avt-portal-brand-panel {
    position: relative;
    overflow: hidden;
    padding: 56px clamp(40px, 6vw, 92px);
    background:
        radial-gradient(circle at 10% 10%, rgba(217, 45, 32, 0.3), transparent 30%),
        linear-gradient(145deg, #0b1320 0%, #111d2f 58%, #19273c 100%);
    color: #fff;
}

.avt-portal-brand-panel::before,
.avt-portal-brand-panel::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.avt-portal-brand-panel::before {
    right: -180px;
    bottom: -180px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.02), 0 0 0 140px rgba(255, 255, 255, 0.015);
}

.avt-portal-brand-panel::after {
    left: -110px;
    bottom: 20%;
    width: 260px;
    height: 260px;
    background: rgba(217, 45, 32, 0.08);
    filter: blur(2px);
}

.avt-portal-brand-panel-inner {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: calc(100vh - 112px);
    flex-direction: column;
}

.avt-portal-brand-copy {
    max-width: 620px;
    margin: auto 0 42px;
}

.avt-portal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #ffb4ad;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.avt-portal-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
}

.avt-portal-eyebrow-dark {
    color: var(--avt-portal-red);
}

.avt-portal-brand-copy h1,
.avt-portal-page-heading h1,
.avt-portal-detail-hero h1,
.avt-portal-login-heading h2,
.avt-portal-centered-state h1 {
    margin: 0;
    color: inherit;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.avt-portal-brand-copy h1 {
    max-width: 600px;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.02;
}

.avt-portal-brand-copy p {
    max-width: 580px;
    margin: 24px 0 0;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.75;
}

.avt-portal-feature-list {
    display: grid;
    gap: 18px;
    max-width: 620px;
    margin-bottom: auto;
}

.avt-portal-feature {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: start;
}

.avt-portal-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #ff857a;
}

.avt-portal-feature div {
    display: grid;
    gap: 3px;
}

.avt-portal-feature strong {
    font-size: 16px;
}

.avt-portal-feature span:not(.avt-portal-feature-icon) {
    color: #aeb8c6;
    font-size: 14px;
}

.avt-portal-brand-footer {
    margin: 40px 0 0;
    color: #8793a5;
    font-size: 13px;
}

.avt-portal-login-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px clamp(28px, 6vw, 96px);
    background:
        linear-gradient(rgba(255,255,255,0.82), rgba(255,255,255,0.82)),
        linear-gradient(135deg, #f7f9fc 0%, #eef2f7 100%);
}

.avt-portal-back-site {
    position: absolute;
    top: 34px;
    right: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--avt-portal-muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.avt-portal-back-site:hover,
.avt-portal-back-site:focus {
    color: var(--avt-portal-red);
}

.avt-portal-login-card {
    width: min(100%, 530px);
    padding: clamp(30px, 4vw, 48px);
    border: 1px solid #e6eaf0;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 30px 80px rgba(16, 24, 39, 0.12);
}

.avt-portal-login-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 24px;
    border-radius: 16px;
    background: #fff1f0;
    color: var(--avt-portal-red);
}

.avt-portal-login-lock svg {
    width: 25px;
    height: 25px;
}

.avt-portal-login-heading {
    margin-bottom: 28px;
}

.avt-portal-login-heading .avt-portal-eyebrow {
    margin-bottom: 12px;
}

.avt-portal-login-heading h2 {
    color: var(--avt-portal-navy);
    font-size: 38px;
}

.avt-portal-login-heading p {
    margin: 12px 0 0;
    color: var(--avt-portal-muted);
    font-size: 16px;
}

.avt-portal-login-form {
    display: grid;
    gap: 20px;
}

.avt-portal-login-form > label,
.avt-portal-followup-form label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}

.avt-portal-input-wrap {
    position: relative;
    display: block;
}

.avt-portal-input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    display: inline-flex;
    color: #98a2b3;
    transform: translateY(-50%);
    pointer-events: none;
}

.avt-portal-login-form input[type="text"],
.avt-portal-login-form input[type="password"],
.avt-portal-login-form input[type="email"] {
    width: 100%;
    height: 54px;
    padding: 0 48px;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    background: #fff;
    color: #101828;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.avt-portal-login-form input::placeholder {
    color: #98a2b3;
}

.avt-portal-login-form input:focus,
.avt-portal-followup-form select:focus,
.avt-portal-followup-form textarea:focus {
    border-color: var(--avt-portal-red);
    box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.1);
}

.avt-portal-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #667085;
    cursor: pointer;
    transform: translateY(-50%);
}

.avt-portal-password-toggle:hover,
.avt-portal-password-toggle.is-active {
    background: #f2f4f7;
    color: var(--avt-portal-red);
}

.avt-portal-login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: -2px;
}

.avt-portal-remember {
    display: inline-flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 9px !important;
    color: #475467 !important;
    font-weight: 500 !important;
    cursor: pointer;
}

.avt-portal-remember input {
    width: 17px;
    height: 17px;
    accent-color: var(--avt-portal-red);
}

.avt-portal-login-options a {
    color: var(--avt-portal-red);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.avt-portal-login-options a:hover {
    text-decoration: underline;
}

.avt-portal-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 18px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
    color: #344054;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.avt-portal-button:hover,
.avt-portal-button:focus {
    border-color: var(--avt-portal-button-hover);
    background: var(--avt-portal-button-hover);
    color: var(--avt-portal-button-hover-text) !important;
    transform: translateY(-1px);
}

.avt-portal-button span,
.avt-portal-button svg {
    color: inherit !important;
}

.avt-portal-button:hover span,
.avt-portal-button:focus span,
.avt-portal-button:hover svg,
.avt-portal-button:focus svg {
    color: var(--avt-portal-button-hover-text) !important;
}

.avt-portal-button-primary {
    border-color: var(--avt-portal-button);
    background: var(--avt-portal-button);
    color: var(--avt-portal-button-text) !important;
    box-shadow: 0 10px 24px rgba(217, 45, 32, 0.2);
}

.avt-portal-button-primary:hover,
.avt-portal-button-primary:focus {
    border-color: var(--avt-portal-button-hover);
    background: var(--avt-portal-button-hover);
    color: var(--avt-portal-button-hover-text) !important;
    box-shadow: 0 14px 30px rgba(217, 45, 32, 0.25);
}

.avt-portal-login-submit {
    width: 100%;
    min-height: 54px;
    margin-top: 4px;
    border-radius: 12px;
    font-size: 15px;
}

.avt-portal-login-submit svg {
    margin-left: 4px;
}

.avt-portal-security-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 22px 0 0;
    padding-top: 20px;
    border-top: 1px solid #eaecf0;
    color: #667085;
    font-size: 12px;
}

.avt-portal-security-note svg {
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--avt-portal-green);
}

.avt-portal-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
}

.avt-portal-alert-error {
    border: 1px solid #fecdca;
    background: #fef3f2;
    color: #b42318;
}

.avt-portal-alert-success {
    border: 1px solid #abefc6;
    background: #ecfdf3;
    color: #067647;
}

.avt-portal-alert svg {
    flex: 0 0 auto;
}

.avt-portal-denied-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--avt-portal-bg);
}

.avt-portal-access-denied {
    text-align: center;
}

.avt-portal-access-denied .avt-portal-login-lock {
    margin-left: auto;
    margin-right: auto;
}

.avt-portal-access-denied h2 {
    margin: 0;
    font-size: 34px;
}

.avt-portal-access-denied p {
    margin: 14px 0 24px;
    color: var(--avt-portal-muted);
}

.avt-portal-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--avt-portal-bg);
}

.admin-bar .avt-portal-app {
    min-height: calc(100vh - 32px);
}

.avt-portal-app-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid #e4e7ec;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
}

.admin-bar .avt-portal-app-header {
    top: 32px;
}

.avt-portal-header-inner {
    width: min(100% - 48px, 1440px);
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 auto;
}

.avt-portal-header-brand,
.avt-portal-user-menu {
    display: flex;
    align-items: center;
}

.avt-portal-header-brand {
    gap: 18px;
}

.avt-portal-header-brand .avt-portal-logo-plate {
    min-width: 112px;
    min-height: 44px;
    padding: 4px 10px;
    border: 0;
    box-shadow: none;
}

.avt-portal-header-brand .avt-portal-logo-plate img {
    max-width: 120px;
    max-height: 36px;
}

.avt-portal-header-brand .avt-portal-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    font-size: 16px;
}

.avt-portal-header-brand .avt-portal-brand-name strong {
    font-size: 20px;
}

.avt-portal-header-divider {
    width: 1px;
    height: 30px;
    background: #e4e7ec;
}

.avt-portal-header-product {
    color: #475467;
    font-size: 14px;
    font-weight: 800;
}

.avt-portal-user-menu {
    gap: 12px;
}

.avt-portal-user-avatar,
.avt-portal-client-avatar,
.avt-portal-detail-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fee4e2;
    color: var(--avt-portal-red-dark);
    font-weight: 800;
}

.avt-portal-user-avatar {
    width: 40px;
    height: 40px;
    font-size: 13px;
}

.avt-portal-user-copy {
    display: grid;
    line-height: 1.25;
}

.avt-portal-user-copy strong {
    color: #101828;
    font-size: 14px;
}

.avt-portal-user-copy span {
    color: #667085;
    font-size: 12px;
}

.avt-portal-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    padding: 9px 12px;
    border-radius: 9px;
    color: #475467;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.avt-portal-logout:hover,
.avt-portal-logout:focus {
    background: #f2f4f7;
    color: var(--avt-portal-red);
}

.avt-portal-main {
    width: min(100% - 48px, 1440px);
    flex: 1;
    margin: 0 auto;
    padding: 46px 0 56px;
}

.avt-portal-page-heading,
.avt-portal-detail-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.avt-portal-page-heading {
    margin-bottom: 28px;
}

.avt-portal-page-heading .avt-portal-eyebrow {
    margin-bottom: 10px;
}

.avt-portal-page-heading h1,
.avt-portal-detail-hero h1 {
    color: #101828;
    font-size: clamp(32px, 4vw, 46px);
}

.avt-portal-page-heading p,
.avt-portal-detail-hero p {
    margin: 8px 0 0;
    color: #667085;
}

.avt-portal-page-date {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #fff;
    color: #475467;
    font-size: 13px;
    font-weight: 700;
}

.avt-portal-page-date svg {
    color: var(--avt-portal-red);
}

.avt-portal-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.avt-portal-stat-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 15px;
    align-items: start;
    padding: 20px;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(16, 24, 39, 0.04);
}

.avt-portal-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #f2f4f7;
    color: #475467;
}

.avt-portal-stat-icon svg {
    width: 24px;
    height: 24px;
}

.avt-portal-stat-copy {
    display: grid;
}

.avt-portal-stat-copy > span {
    color: #667085;
    font-size: 13px;
    font-weight: 700;
}

.avt-portal-stat-copy strong {
    margin-top: 2px;
    color: #101828;
    font-size: 30px;
    line-height: 1.15;
}

.avt-portal-stat-copy small {
    margin-top: 5px;
    color: #98a2b3;
    font-size: 11px;
}

.avt-portal-stat-blue .avt-portal-stat-icon {
    background: #eff8ff;
    color: var(--avt-portal-blue);
}

.avt-portal-stat-amber .avt-portal-stat-icon {
    background: #fffaeb;
    color: var(--avt-portal-amber);
}

.avt-portal-stat-green .avt-portal-stat-icon {
    background: #ecfdf3;
    color: var(--avt-portal-green);
}

.avt-portal-table-card,
.avt-portal-card {
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(16, 24, 39, 0.05);
}

.avt-portal-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid #e4e7ec;
}

.avt-portal-table-header h2,
.avt-portal-card-heading h2 {
    margin: 0;
    color: #101828;
    font-size: 19px;
    letter-spacing: -0.02em;
}

.avt-portal-table-header p,
.avt-portal-card-heading p {
    margin: 4px 0 0;
    color: #667085;
    font-size: 13px;
}

.avt-portal-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #067647;
    font-size: 12px;
    font-weight: 800;
}

.avt-portal-live-badge > span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #12b76a;
    box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.13);
}

.avt-portal-table-wrap {
    overflow-x: auto;
}

.avt-portal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.avt-portal-table th,
.avt-portal-table td {
    padding: 15px 18px;
    border-bottom: 1px solid #eaecf0;
    text-align: left;
    vertical-align: middle;
}

.avt-portal-table th {
    background: #f9fafb;
    color: #667085;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.avt-portal-table tbody tr {
    transition: background 0.18s ease;
}

.avt-portal-table tbody tr:hover {
    background: #fcfcfd;
}

.avt-portal-table tbody tr:last-child td {
    border-bottom: 0;
}

.avt-portal-lead-number {
    color: var(--avt-portal-red);
    font-weight: 800;
}

.avt-portal-client-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 170px;
}

.avt-portal-client-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    font-size: 11px;
}

.avt-portal-client-cell > div {
    display: grid;
    line-height: 1.25;
}

.avt-portal-client-cell strong {
    color: #101828;
    font-size: 13px;
}

.avt-portal-client-cell span:not(.avt-portal-client-avatar) {
    margin-top: 3px;
    color: #98a2b3;
    font-size: 11px;
}

.avt-portal-range-separator {
    color: #98a2b3;
}

.avt-portal-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.avt-portal-status-new {
    background: #eff8ff;
    color: #175cd3;
}

.avt-portal-status-contacted {
    background: #f4f3ff;
    color: #5925dc;
}

.avt-portal-status-progress {
    background: #fffaeb;
    color: #b54708;
}

.avt-portal-status-converted {
    background: #ecfdf3;
    color: #067647;
}

.avt-portal-status-rejected {
    background: #fef3f2;
    color: #b42318;
}

.avt-portal-status-large {
    min-height: 34px;
    padding: 7px 13px;
    font-size: 12px;
}

.avt-portal-view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e4e7ec;
    border-radius: 9px;
    background: #fff;
    color: #475467;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.avt-portal-view-button:hover,
.avt-portal-view-button:focus {
    border-color: var(--avt-portal-red);
    background: #fff5f4;
    color: var(--avt-portal-red);
    transform: translateX(2px);
}

.avt-portal-empty {
    padding: 55px 20px !important;
    text-align: center !important;
}

.avt-portal-empty > * {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.avt-portal-empty-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 16px;
    background: #f2f4f7;
    color: #667085;
}

.avt-portal-empty strong {
    color: #101828;
    font-size: 16px;
}

.avt-portal-empty > span:last-child {
    margin-top: 5px;
    color: #667085;
    font-size: 13px;
}

.avt-portal-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 22px;
}

.avt-portal-pagination a,
.avt-portal-pagination-disabled {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #475467;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.avt-portal-pagination a:hover {
    color: var(--avt-portal-red);
}

.avt-portal-pagination-disabled {
    opacity: 0.38;
}

.avt-portal-pagination-current {
    padding: 7px 11px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #fff;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
}

.avt-portal-detail-nav {
    margin-bottom: 22px;
}

.avt-portal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475467;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.avt-portal-back-link:hover,
.avt-portal-back-link:focus {
    color: var(--avt-portal-red);
}

.avt-portal-detail-hero {
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(16, 24, 39, 0.04);
}

.avt-portal-detail-client {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avt-portal-detail-avatar {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    font-size: 18px;
}

.avt-portal-detail-hero .avt-portal-eyebrow {
    margin-bottom: 4px;
}

.avt-portal-detail-hero h1 {
    font-size: 30px;
}

.avt-portal-detail-hero p {
    margin-top: 4px;
    font-size: 13px;
}

.avt-portal-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.avt-portal-card {
    padding: 24px;
}

.avt-portal-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eaecf0;
}

.avt-portal-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    background: #fff1f0;
    color: var(--avt-portal-red);
}

.avt-portal-card-icon svg {
    width: 21px;
    height: 21px;
}

.avt-portal-detail-row {
    display: grid;
    grid-template-columns: minmax(150px, 0.9fr) minmax(0, 1.1fr);
    gap: 20px;
    padding: 11px 0;
    border-bottom: 1px solid #f2f4f7;
}

.avt-portal-detail-row:last-child {
    border-bottom: 0;
}

.avt-portal-detail-row > span {
    color: #667085;
    font-size: 13px;
}

.avt-portal-detail-row > strong {
    color: #101828;
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
    text-align: right;
}

.avt-portal-estimate-card {
    border-top: 4px solid var(--avt-portal-red);
}

.avt-portal-estimate-highlight {
    display: grid;
    gap: 5px;
    margin-bottom: 12px;
    padding: 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #101827 0%, #1b2940 100%);
    color: #fff;
}

.avt-portal-estimate-highlight > span {
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.avt-portal-estimate-highlight strong {
    font-size: clamp(22px, 3vw, 30px);
    letter-spacing: -0.03em;
}

.avt-portal-estimate-highlight small {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
}

.avt-portal-message {
    margin-bottom: 20px;
    padding: 16px;
    border-left: 3px solid var(--avt-portal-red);
    border-radius: 0 12px 12px 0;
    background: #f9fafb;
}

.avt-portal-message-label {
    display: block;
    margin-bottom: 7px;
    color: #667085;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.avt-portal-message p {
    margin: 0;
    color: #344054;
    font-size: 14px;
    line-height: 1.7;
}

.avt-portal-followup-form {
    display: grid;
    gap: 16px;
}

.avt-portal-followup-form select,
.avt-portal-followup-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
    color: #101828;
    outline: none;
}

.avt-portal-followup-form textarea {
    min-height: 150px;
    resize: vertical;
}

.avt-portal-followup-form .avt-portal-button {
    justify-self: start;
}

.avt-portal-centered-state {
    max-width: 620px;
    margin: 90px auto;
    padding: 42px;
    border: 1px solid #e4e7ec;
    border-radius: 20px;
    background: #fff;
    text-align: center;
    box-shadow: 0 15px 40px rgba(16, 24, 39, 0.06);
}

.avt-portal-centered-state > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: #f2f4f7;
    color: #667085;
}

.avt-portal-centered-state h1 {
    color: #101828;
    font-size: 30px;
}

.avt-portal-centered-state p {
    margin: 10px 0 24px;
    color: #667085;
}

.avt-portal-app-footer {
    width: min(100% - 48px, 1440px);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto;
    padding: 20px 0 28px;
    border-top: 1px solid #e4e7ec;
    color: #98a2b3;
    font-size: 11px;
}

@media (max-width: 1180px) {
    .avt-portal-login-screen {
        grid-template-columns: minmax(380px, 42%) 1fr;
    }

    .avt-portal-brand-copy h1 {
        font-size: 48px;
    }

    .avt-portal-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .avt-portal-login-screen {
        grid-template-columns: 1fr;
    }

    .avt-portal-brand-panel {
        min-height: auto;
        padding: 34px 32px 42px;
    }

    .avt-portal-brand-panel-inner {
        min-height: auto;
    }

    .avt-portal-brand-copy {
        margin: 60px 0 30px;
    }

    .avt-portal-brand-copy h1 {
        max-width: 680px;
        font-size: 42px;
    }

    .avt-portal-feature-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: none;
    }

    .avt-portal-feature {
        grid-template-columns: 1fr;
    }

    .avt-portal-brand-footer {
        display: none;
    }

    .avt-portal-login-panel {
        min-height: 620px;
        padding: 70px 28px 48px;
    }

    .avt-portal-detail-grid {
        grid-template-columns: 1fr;
    }

    .avt-portal-user-copy,
    .avt-portal-header-divider,
    .avt-portal-header-product {
        display: none;
    }
}

@media (max-width: 760px) {
    .admin-bar .avt-portal-login-screen,
    .admin-bar .avt-portal-app {
        min-height: calc(100vh - 46px);
    }

    .admin-bar .avt-portal-app-header {
        top: 46px;
    }

    .avt-portal-brand-panel {
        display: none;
    }

    .avt-portal-login-panel {
        min-height: 100vh;
        align-items: flex-start;
        padding: 90px 18px 36px;
    }

    .avt-portal-back-site {
        top: 28px;
        right: 22px;
    }

    .avt-portal-login-card {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .avt-portal-login-heading h2 {
        font-size: 32px;
    }

    .avt-portal-login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .avt-portal-header-inner,
    .avt-portal-main,
    .avt-portal-app-footer {
        width: min(100% - 28px, 1440px);
    }

    .avt-portal-header-inner {
        min-height: 68px;
    }

    .avt-portal-header-brand .avt-portal-logo-plate {
        min-width: 94px;
    }

    .avt-portal-header-brand .avt-portal-logo-plate img {
        max-width: 96px;
    }

    .avt-portal-logout {
        width: 40px;
        height: 40px;
        justify-content: center;
        margin-left: 0;
        padding: 0;
        border: 1px solid #e4e7ec;
    }

    .avt-portal-logout span {
        display: none;
    }

    .avt-portal-main {
        padding: 30px 0 42px;
    }

    .avt-portal-page-heading,
    .avt-portal-detail-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .avt-portal-page-date {
        display: none;
    }

    .avt-portal-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .avt-portal-stat-card {
        grid-template-columns: 42px 1fr;
        gap: 11px;
        padding: 15px;
    }

    .avt-portal-stat-icon {
        width: 42px;
        height: 42px;
    }

    .avt-portal-stat-copy strong {
        font-size: 25px;
    }

    .avt-portal-stat-copy small {
        display: none;
    }

    .avt-portal-table-card {
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .avt-portal-table-header {
        padding: 0 0 16px;
        border: 0;
    }

    .avt-portal-live-badge {
        display: none;
    }

    .avt-portal-table-wrap {
        overflow: visible;
    }

    .avt-portal-table,
    .avt-portal-table tbody,
    .avt-portal-table tr,
    .avt-portal-table td {
        display: block;
        width: 100%;
    }

    .avt-portal-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .avt-portal-table tr {
        margin-bottom: 14px;
        padding: 16px;
        border: 1px solid #e4e7ec;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 7px 20px rgba(16, 24, 39, 0.04);
    }

    .avt-portal-table td {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        padding: 9px 0;
        border-bottom: 1px solid #f2f4f7;
        text-align: right;
    }

    .avt-portal-table td::before {
        content: attr(data-label);
        color: #667085;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        text-align: left;
    }

    .avt-portal-table td:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .avt-portal-client-cell {
        min-width: 0;
        justify-content: flex-end;
    }

    .avt-portal-view-button {
        width: auto;
        min-width: 90px;
        padding: 0 12px;
    }

    .avt-portal-view-button::before {
        content: attr(data-action-label);
        margin-right: 6px;
        font-weight: 800;
    }

    .avt-portal-detail-hero {
        padding: 20px;
    }

    .avt-portal-detail-client {
        align-items: flex-start;
    }

    .avt-portal-detail-avatar {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }

    .avt-portal-card {
        padding: 20px;
    }

    .avt-portal-detail-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .avt-portal-detail-row > strong {
        text-align: left;
    }

    .avt-portal-app-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .avt-portal-user-avatar {
        display: none;
    }

    .avt-portal-stats-grid {
        grid-template-columns: 1fr;
    }

    .avt-portal-stat-card {
        grid-template-columns: 46px 1fr;
    }

    .avt-portal-stat-copy small {
        display: block;
    }

    .avt-portal-pagination {
        justify-content: space-between;
        gap: 8px;
    }

    .avt-portal-pagination a span,
    .avt-portal-pagination-disabled span {
        display: none;
    }
}

/* Version 1.1.6 — Le portail est une interface privée indépendante. */
body.avt-portal-page .chaty-widget,
body.avt-portal-page .chaty-widget-is,
body.avt-portal-page .chaty-widget-show,
body.avt-portal-page [class^="chaty-widget"],
body.avt-portal-page [class*=" chaty-widget"],
body.avt-portal-page [id^="chaty-widget"],
body.avt-portal-page [id*="chaty-widget"],
body.avt-portal-page .mystickyelements-fixed,
body.avt-portal-page .mystickyelements-contact-form,
body.avt-portal-page [class^="mystickyelements"],
body.avt-portal-page [class*=" mystickyelements"],
body.avt-portal-page [id^="mystickyelements"],
body.avt-portal-page [id*="mystickyelements"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Le logo remplit proprement sa plaque blanche sans être réduit par une hauteur maximale trop basse. */
.avt-portal-brand-panel .avt-portal-logo-plate {
    width: 168px;
    height: 82px;
    min-width: 168px;
    min-height: 82px;
    padding: 4px 6px;
    overflow: hidden;
}

.avt-portal-brand-panel .avt-portal-logo-plate img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

.avt-portal-header-brand .avt-portal-logo-plate {
    width: 126px;
    height: 52px;
    min-width: 126px;
    min-height: 52px;
    padding: 3px 5px;
    overflow: hidden;
}

.avt-portal-header-brand .avt-portal-logo-plate img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

.avt-portal-login-options {
    justify-content: flex-start;
}

@media (max-width: 760px) {
    .avt-portal-header-brand .avt-portal-logo-plate {
        width: 104px;
        height: 44px;
        min-width: 104px;
        min-height: 44px;
    }
}


/* VERSION 1.1.8 — Correction de l’alignement vertical des cartes de prix. */
.avt-portal-header-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 34px;
}

.avt-portal-header-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.avt-portal-header-nav a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    color: #667085;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease;
}

.avt-portal-header-nav a:hover,
.avt-portal-header-nav a:focus {
    background: #f2f4f7;
    color: #101828;
}

.avt-portal-header-nav a.is-active {
    background: var(--avt-portal-menu-active-bg);
    color: var(--avt-portal-red);
}

.avt-portal-header-nav svg {
    width: 17px;
    height: 17px;
}

.avt-portal-stats-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.avt-portal-stat-red .avt-portal-stat-icon {
    background: #fff1f0;
    color: var(--avt-portal-red);
}

.avt-portal-stat-red .avt-portal-stat-copy strong {
    font-size: clamp(20px, 1.8vw, 27px);
    white-space: nowrap;
}

.avt-portal-pricing-heading {
    align-items: flex-end;
}

.avt-portal-pricing-warning {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
    padding: 17px 18px;
    border: 1px solid #fedf89;
    border-radius: 14px;
    background: #fffaeb;
    color: #7a2e0e;
}

.avt-portal-pricing-warning-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #fef0c7;
    color: #b54708;
}

.avt-portal-pricing-warning strong {
    display: block;
    color: #7a2e0e;
    font-size: 14px;
}

.avt-portal-pricing-warning p {
    margin: 4px 0 0;
    color: #93370d;
    font-size: 13px;
}

.avt-portal-pricing-form {
    display: grid;
    gap: 22px;
}

.avt-portal-pricing-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.avt-portal-pricing-column {
    min-width: 0;
    display: grid;
    gap: 20px;
    align-content: start;
}

.avt-portal-pricing-card {
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(16, 24, 39, 0.05);
}

.avt-portal-pricing-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-height: 92px;
    padding: 20px 22px;
    border-bottom: 1px solid #eaecf0;
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
}

.avt-portal-pricing-card-heading h2 {
    margin: 0;
    color: #101828;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.avt-portal-pricing-card-heading p {
    margin: 5px 0 0;
    color: #667085;
    font-size: 12px;
    line-height: 1.5;
}

.avt-portal-pricing-card-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff1f0;
    color: var(--avt-portal-red);
}

.avt-portal-pricing-card-icon svg {
    width: 21px;
    height: 21px;
}

.avt-portal-pricing-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.avt-portal-price-field {
    min-width: 0;
    display: grid;
    gap: 8px;
    padding: 15px 18px;
    border-right: 1px solid #f0f1f3;
    border-bottom: 1px solid #f0f1f3;
}

.avt-portal-price-field:nth-child(2n) {
    border-right: 0;
}

.avt-portal-price-field > span:first-child {
    color: #344054;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.avt-portal-price-input {
    position: relative;
    display: block;
}

.avt-portal-price-input input {
    width: 100%;
    height: 46px;
    padding: 0 78px 0 13px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
    color: #101828;
    font-size: 14px;
    font-weight: 700;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.avt-portal-price-input input:focus {
    border-color: var(--avt-portal-red);
    box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.1);
}

.avt-portal-price-input small {
    position: absolute;
    top: 50%;
    right: 12px;
    color: #667085;
    font-size: 11px;
    font-weight: 800;
    transform: translateY(-50%);
    pointer-events: none;
}

.avt-portal-pricing-card-global {
    grid-column: 1 / -1;
}

.avt-portal-pricing-fields-global {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.avt-portal-pricing-fields-global .avt-portal-price-field {
    border-bottom: 0;
}

.avt-portal-pricing-fields-global .avt-portal-price-field:nth-child(2n) {
    border-right: 1px solid #f0f1f3;
}

.avt-portal-pricing-fields-global .avt-portal-price-field:last-child {
    border-right: 0;
}

.avt-portal-pricing-actions {
    position: sticky;
    z-index: 10;
    bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 17px 20px;
    border: 1px solid #d0d5dd;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 38px rgba(16, 24, 39, 0.14);
    backdrop-filter: blur(12px);
}

.avt-portal-pricing-actions > div:first-child {
    display: grid;
    gap: 3px;
}

.avt-portal-pricing-actions strong {
    color: #101828;
    font-size: 14px;
}

.avt-portal-pricing-actions > div:first-child > span {
    color: #667085;
    font-size: 12px;
}

.avt-portal-pricing-action-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 1320px) {
    .avt-portal-header-left {
        gap: 20px;
    }

    .avt-portal-header-product,
    .avt-portal-header-divider {
        display: none;
    }

    .avt-portal-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1040px) {
    .avt-portal-header-inner {
        min-height: 96px;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .avt-portal-header-left {
        flex: 1 1 100%;
        justify-content: space-between;
    }

    .avt-portal-user-menu {
        margin-left: auto;
    }

    .avt-portal-pricing-sections {
        grid-template-columns: 1fr;
    }

    .avt-portal-pricing-column {
        display: contents;
    }

    .avt-portal-pricing-order-1 { order: 1; }
    .avt-portal-pricing-order-2 { order: 2; }
    .avt-portal-pricing-order-3 { order: 3; }
    .avt-portal-pricing-order-4 { order: 4; }
    .avt-portal-pricing-order-5 { order: 5; }
    .avt-portal-pricing-order-6 { order: 6; }
    .avt-portal-pricing-order-7 { order: 7; }

    .avt-portal-pricing-card-global {
        grid-column: auto;
    }
}

@media (max-width: 760px) {
    .avt-portal-header-left {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .avt-portal-header-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .avt-portal-header-nav a {
        flex: 0 0 auto;
    }

    .avt-portal-user-menu {
        width: 100%;
        justify-content: flex-end;
    }

    .avt-portal-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .avt-portal-pricing-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .avt-portal-pricing-fields,
    .avt-portal-pricing-fields-global {
        grid-template-columns: 1fr;
    }

    .avt-portal-price-field,
    .avt-portal-price-field:nth-child(2n),
    .avt-portal-pricing-fields-global .avt-portal-price-field:nth-child(2n) {
        border-right: 0;
        border-bottom: 1px solid #f0f1f3;
    }

    .avt-portal-price-field:last-child,
    .avt-portal-pricing-fields-global .avt-portal-price-field:last-child {
        border-bottom: 0;
    }

    .avt-portal-pricing-actions {
        position: static;
        align-items: stretch;
        flex-direction: column;
    }

    .avt-portal-pricing-action-buttons {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .avt-portal-stats-grid {
        grid-template-columns: 1fr;
    }

    .avt-portal-header-nav a {
        padding: 8px 10px;
        font-size: 12px;
    }

    .avt-portal-pricing-card-heading {
        min-height: 0;
        padding: 17px;
    }

    .avt-portal-price-field {
        padding: 14px 16px;
    }
}


/* Configuration des couleurs */
.avt-portal-config-page { max-width: 1260px; margin: 0 auto; }
.avt-portal-color-form { display: grid; gap: 22px; }
.avt-portal-color-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.avt-portal-color-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px; border: 1px solid var(--avt-portal-line); border-radius: 16px; background: var(--avt-portal-white); box-shadow: 0 8px 24px rgba(16,24,40,.05); }
.avt-portal-color-card h2 { margin: 0 0 5px; font-size: 16px; color: var(--avt-portal-text); }
.avt-portal-color-card p { margin: 0; color: var(--avt-portal-muted); font-size: 13px; }
.avt-portal-color-control { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.avt-portal-color-control input[type="color"] { width: 48px; height: 42px; padding: 3px; border: 1px solid var(--avt-portal-line); border-radius: 10px; background: #fff; cursor: pointer; }
.avt-portal-color-control input[type="text"] { width: 104px; height: 42px; padding: 0 12px; border: 1px solid var(--avt-portal-line); border-radius: 10px; background: #fff; color: #101828; font-weight: 700; text-transform: uppercase; }
.avt-portal-color-preview { overflow: hidden; border: 1px solid var(--avt-portal-line); border-radius: 18px; background: var(--avt-preview-bg, var(--avt-portal-bg)); box-shadow: 0 8px 24px rgba(16,24,40,.05); }
.avt-portal-color-preview-menu { padding: 16px 22px; background: var(--avt-preview-menu, var(--avt-portal-menu)); color: var(--avt-preview-secondary, var(--avt-portal-navy)); font-weight: 800; border-bottom: 1px solid rgba(16,24,40,.08); }
.avt-portal-color-preview-body { padding: 28px; }
.avt-portal-color-preview-card { max-width: 520px; padding: 24px; border-radius: 15px; background: var(--avt-preview-cards, var(--avt-portal-white)); border: 1px solid rgba(16,24,40,.08); }
.avt-portal-color-preview-card h3 { margin: 0 0 8px; color: var(--avt-preview-secondary, var(--avt-portal-navy)); font-size: 22px; }
.avt-portal-color-preview-card p { margin: 0 0 18px; color: var(--avt-portal-muted); }
.avt-portal-color-preview-card button { border: 0; border-radius: 10px; padding: 11px 18px; background: var(--avt-preview-button, var(--avt-portal-button)); color: var(--avt-preview-button-text, var(--avt-portal-button-text)); font-weight: 800; cursor: pointer; transition: background .18s ease, color .18s ease, transform .18s ease; }
.avt-portal-color-preview-card button:hover, .avt-portal-color-preview-card button:focus { background: var(--avt-preview-button-hover, var(--avt-portal-button-hover)); color: var(--avt-preview-button-hover-text, var(--avt-portal-button-hover-text)); transform: translateY(-1px); }
@media (max-width: 760px) { .avt-portal-color-grid { grid-template-columns: 1fr; } .avt-portal-color-card { align-items: flex-start; flex-direction: column; } }

.avt-portal-color-preview-alert { margin-top: 16px; padding: 11px 14px; border-radius: 10px; background: color-mix(in srgb, var(--avt-preview-alert, var(--avt-portal-alert)) 12%, white); border: 1px solid color-mix(in srgb, var(--avt-preview-alert, var(--avt-portal-alert)) 35%, white); color: var(--avt-preview-alert, var(--avt-portal-alert)); font-weight: 800; }


/* VERSION 1.3.0 — Personnalisation du portail. */
.avt-portal-header-nav .avt-portal-nav-personnalisation {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}


/* VERSION 1.3.1 — lisibilité des titres et personnalisation complète des boutons. */
.avt-portal-color-card h2,
.avt-portal-color-preview-card h3 {
    word-spacing: 0.16em;
}


/* VERSION 1.3.2 — texte normal et texte au survol des boutons. */
.avt-portal-button-primary,
.avt-portal-button-primary span,
.avt-portal-button-primary svg {
    color: var(--avt-portal-button-text) !important;
}

.avt-portal-button:hover,
.avt-portal-button:focus,
.avt-portal-button:hover span,
.avt-portal-button:focus span,
.avt-portal-button:hover svg,
.avt-portal-button:focus svg,
.avt-portal-button-primary:hover,
.avt-portal-button-primary:focus,
.avt-portal-button-primary:hover span,
.avt-portal-button-primary:focus span,
.avt-portal-button-primary:hover svg,
.avt-portal-button-primary:focus svg {
    color: var(--avt-portal-button-hover-text) !important;
}

/* VERSION 1.4.0 — identité de l’entreprise et produit générique. */
.avt-portal-identity-card {
    padding: 24px;
    border: 1px solid var(--avt-portal-line);
    border-radius: 18px;
    background: var(--avt-portal-white);
    box-shadow: 0 8px 24px rgba(16, 24, 40, .05);
}

.avt-portal-identity-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.avt-portal-identity-heading h2 {
    margin: 0 0 5px;
    color: var(--avt-portal-text);
    font-size: 20px;
}

.avt-portal-identity-heading p {
    margin: 0;
    color: var(--avt-portal-muted);
    font-size: 13px;
}

.avt-portal-identity-grid {
    display: grid;
    grid-template-columns: minmax(300px, 1.1fr) repeat(2, minmax(220px, 1fr));
    gap: 18px;
    align-items: stretch;
}

.avt-portal-identity-logo-field,
.avt-portal-identity-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 18px;
    border: 1px solid var(--avt-portal-line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--avt-portal-white) 94%, var(--avt-portal-bg));
}

.avt-portal-field-label,
.avt-portal-identity-field > span {
    color: var(--avt-portal-text);
    font-size: 13px;
    font-weight: 800;
}

.avt-portal-identity-field input[type="text"] {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid var(--avt-portal-line);
    border-radius: 10px;
    background: #fff;
    color: #101828;
    font: inherit;
    font-weight: 650;
}

.avt-portal-identity-field small,
.avt-portal-identity-logo-actions small {
    color: var(--avt-portal-muted);
    font-size: 12px;
    line-height: 1.45;
}

.avt-portal-identity-logo-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avt-portal-identity-logo-preview {
    display: grid;
    place-items: center;
    width: 118px;
    height: 76px;
    flex: 0 0 118px;
    overflow: hidden;
    padding: 8px;
    border: 1px solid var(--avt-portal-line);
    border-radius: 12px;
    background: #fff;
}

.avt-portal-identity-logo-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.avt-portal-identity-logo-preview span {
    color: var(--avt-portal-navy);
    font-size: 24px;
    font-weight: 900;
}

.avt-portal-identity-logo-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.avt-portal-identity-logo-actions input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.avt-portal-file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--avt-portal-line);
    border-radius: 10px;
    background: #fff;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.avt-portal-file-button:hover,
.avt-portal-file-button:focus {
    border-color: var(--avt-portal-red);
    color: var(--avt-portal-red);
    background: color-mix(in srgb, var(--avt-portal-red) 6%, white);
}

.avt-portal-remove-logo {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--avt-portal-muted);
    font-size: 12px;
    font-weight: 700;
}

.avt-portal-remove-logo input {
    margin: 0;
}

@media (max-width: 1080px) {
    .avt-portal-identity-grid {
        grid-template-columns: 1fr 1fr;
    }

    .avt-portal-identity-logo-field {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .avt-portal-identity-grid {
        grid-template-columns: 1fr;
    }

    .avt-portal-identity-logo-field {
        grid-column: auto;
    }

    .avt-portal-identity-logo-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

.avt-portal-brand-name strong {
    max-width: 260px;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.avt-portal-header-brand .avt-portal-brand-name strong {
    max-width: 190px;
    font-size: 16px;
}

/* VERSION 1.5.1 — Suppression manuelle des demandes et fond du menu actif personnalisable. */
.avt-portal-table-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.avt-portal-delete-selected,
.avt-portal-delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fda29b;
    background: #fff;
    color: #b42318;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.avt-portal-delete-selected {
    min-height: 38px;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 10px;
    font-size: 12px;
}

.avt-portal-delete-selected svg,
.avt-portal-delete-button svg {
    width: 17px;
    height: 17px;
}

.avt-portal-delete-selected:hover:not(:disabled),
.avt-portal-delete-selected:focus:not(:disabled),
.avt-portal-delete-button:hover,
.avt-portal-delete-button:focus {
    border-color: #d92d20;
    background: #fef3f2;
    color: #d92d20;
    transform: translateY(-1px);
}

.avt-portal-delete-selected:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.avt-portal-select-column {
    width: 52px;
    text-align: center !important;
}

.avt-portal-select-column input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--avt-portal-red);
    cursor: pointer;
}

.avt-portal-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.avt-portal-delete-button {
    min-height: 38px;
    gap: 7px;
    padding: 0 11px;
    border-radius: 10px;
    font-size: 12px;
}

.avt-portal-color-preview-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.avt-portal-color-preview-active {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 9px;
    background: var(--avt-preview-menu-active-bg, var(--avt-portal-menu-active-bg));
    color: var(--avt-preview-primary, var(--avt-portal-red));
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 760px) {
    .avt-portal-table-header-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .avt-portal-delete-selected {
        width: 100%;
    }

    .avt-portal-row-actions {
        justify-content: flex-start;
    }

    .avt-portal-select-column {
        width: 100%;
    }
}

/* VERSION 1.5.2 — Logo de connexion sans plaque blanche ajoutée par le portail. */
.avt-portal-brand-panel .avt-portal-logo-plate {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    max-width: 220px;
    max-height: 110px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.avt-portal-brand-panel .avt-portal-logo-plate img {
    display: block;
    width: auto;
    height: auto;
    max-width: 220px;
    max-height: 110px;
    object-fit: contain;
    object-position: left center;
}

@media (max-width: 760px) {
    .avt-portal-brand-panel .avt-portal-logo-plate,
    .avt-portal-brand-panel .avt-portal-logo-plate img {
        max-width: 180px;
        max-height: 90px;
    }
}

