.acrm-wrap {
    max-width: 1220px;
}
.acrm-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 16px;
    margin: 20px 0;
}
.acrm-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.acrm-card span {
    display: block;
    color: #667085;
    font-size: 13px;
    margin-bottom: 8px;
}
.acrm-card strong {
    font-size: 34px;
    line-height: 1;
}
.acrm-panel {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    padding: 18px;
    margin: 16px 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.acrm-panel h2 {
    margin-top: 0;
    font-size: 18px;
}
.acrm-grid {
    display: grid;
    gap: 14px;
}
.acrm-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.acrm-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.acrm-panel label,
.acrm-settings-form label {
    display: block;
    font-weight: 600;
    color: #1d2327;
}
.acrm-panel input,
.acrm-panel select,
.acrm-panel textarea,
.acrm-settings-form input,
.acrm-settings-form textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 6px;
    font-weight: 400;
}
.acrm-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.acrm-section-header h2 {
    margin: 0;
}
.acrm-repeat-table-wrap {
    overflow-x: auto;
}
.acrm-repeat-table th,
.acrm-repeat-table td {
    vertical-align: top;
}
.acrm-repeat-table input,
.acrm-repeat-table select,
.acrm-repeat-table textarea {
    min-width: 110px;
}
.acrm-repeat-table textarea {
    min-width: 170px;
}
.acrm-status {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 600;
}
.acrm-status-draft {
    background: #fff4ce;
    color: #7a4f01;
}
.acrm-status-final {
    background: #dff6dd;
    color: #0f6b21;
}
.acrm-search-form {
    margin: 14px 0;
}
.acrm-search-form input[type="search"] {
    min-width: 280px;
}
.acrm-sticky-actions {
    position: sticky;
    bottom: 0;
    background: rgba(246,247,247,0.95);
    padding: 14px 0 !important;
    border-top: 1px solid #dcdcde;
    z-index: 10;
}
.acrm-login-box,
.acrm-frontend-wrap {
    max-width: 600px;
    margin: 40px auto;
    background: #fff;
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Voucher preview */
.acrm-preview-body {
    margin: 0;
    background: #f3f4f6;
    color: #111827;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}
.acrm-print-controls {
    max-width: 980px;
    margin: 20px auto;
    display: flex;
    gap: 10px;
}
.acrm-voucher-page {
    width: 860px;
    min-height: 1217px;
    margin: 20px auto 40px;
    background: #fff;
    padding: 26px 48px;
    box-sizing: border-box;
    box-shadow: 0 10px 35px rgba(0,0,0,0.12);
}
.acrm-voucher-brand {
    height: 76px;
    border-radius: 12px;
    background: #f1f3f6;
    color: #969aa3;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    overflow: hidden;
}
.acrm-voucher-brand img {
    max-height: 64px;
    max-width: 78%;
    object-fit: contain;
}
.acrm-voucher-page h1 {
    text-align: center;
    margin: 20px 0 26px;
    font-size: 24px;
    line-height: 1.2;
}
.acrm-voucher-meta {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 30px;
    margin-bottom: 24px;
    color: #0f2440;
}
.acrm-voucher-meta span,
.acrm-voucher-meta strong {
    display: block;
}
.acrm-voucher-meta strong {
    font-weight: 700;
}
.acrm-voucher-summary > div {
    display: grid;
    grid-template-columns: 110px 1fr;
    border-bottom: 1px solid #e5e7eb;
    padding: 4px 0;
}
.acrm-voucher-summary > div span,
.acrm-voucher-summary > div strong {
    display: inline;
}
.acrm-section-title {
    text-align: center;
    font-size: 18px;
    margin: 24px 0 14px;
}
.acrm-voucher-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 18px;
    table-layout: fixed;
}
.acrm-voucher-table th,
.acrm-voucher-table td {
    border: 1px solid #e5e7eb;
    padding: 9px 7px;
    text-align: left;
    vertical-align: middle;
    word-break: break-word;
    font-size: 12px;
    line-height: 1.15;
}
.acrm-voucher-table th {
    background: #fbfcfd;
    font-weight: 700;
}
.acrm-voucher-table td strong {
    font-weight: 700;
}
.muted {
    color: #6b7280;
}
.acrm-voucher-text-section {
    margin: 20px 12px 0;
}
.acrm-voucher-text-section h3 {
    color: #0f2440;
    font-size: 14px;
    margin: 0 0 8px;
}
.acrm-voucher-text-section ul {
    margin: 0 0 0 18px;
    padding: 0;
}
.acrm-voucher-text-section li {
    margin: 3px 0;
}
.acrm-voucher-footer {
    margin-top: 28px;
    min-height: 26px;
    border-radius: 999px;
    background: #f1f3f6;
    color: #969aa3;
    text-align: center;
    padding: 8px 16px;
    font-size: 12px;
}

@media (max-width: 960px) {
    .acrm-grid-4,
    .acrm-grid-2,
    .acrm-cards {
        grid-template-columns: 1fr;
    }
    .acrm-voucher-page {
        width: auto;
        margin: 12px;
        padding: 20px;
    }
    .acrm-voucher-meta {
        grid-template-columns: 1fr;
    }
}

@page {
    size: A4;
    margin: 8mm;
}
@media print {
    body.acrm-preview-body {
        background: #fff;
    }
    .no-print,
    #adminmenumain,
    #wpadminbar {
        display: none !important;
    }
    .acrm-voucher-page {
        width: auto;
        min-height: auto;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }
    .acrm-voucher-table th,
    .acrm-voucher-table td {
        padding: 6px 5px;
        font-size: 10.5px;
    }
    .acrm-section-title {
        margin: 18px 0 10px;
    }
}

/* Front-end CRM portal */
.acrm-portal-app {
    --acrm-bg: #f5f7fb;
    --acrm-card: #ffffff;
    --acrm-border: #e5e7eb;
    --acrm-text: #111827;
    --acrm-muted: #6b7280;
    --acrm-primary: #0f2440;
    --acrm-primary-hover: #183a66;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    background: var(--acrm-bg);
    color: var(--acrm-text);
    font-family: Arial, Helvetica, sans-serif;
}
.acrm-portal-app * {
    box-sizing: border-box;
}
.acrm-portal-sidebar {
    background: #0f2440;
    color: #fff;
    min-height: 100vh;
    padding: 22px 18px;
    position: sticky;
    top: 0;
    align-self: start;
}
.acrm-portal-logo {
    border-bottom: 1px solid rgba(255,255,255,0.16);
    padding-bottom: 20px;
    margin-bottom: 18px;
}
.acrm-portal-logo strong,
.acrm-portal-logo span {
    display: block;
}
.acrm-portal-logo strong {
    font-size: 21px;
    line-height: 1.2;
}
.acrm-portal-logo span {
    opacity: .72;
    font-size: 13px;
    margin-top: 4px;
}
.acrm-portal-sidebar nav {
    display: grid;
    gap: 8px;
}
.acrm-portal-sidebar nav a {
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 700;
}
.acrm-portal-sidebar nav a:hover,
.acrm-portal-sidebar nav a.active {
    background: rgba(255,255,255,0.13);
    color: #fff;
}
.acrm-portal-user {
    margin-top: 34px;
    border-top: 1px solid rgba(255,255,255,0.16);
    padding-top: 16px;
    color: rgba(255,255,255,0.72);
    font-size: 13px;
    line-height: 1.5;
}
.acrm-portal-user strong {
    color: #fff;
}
.acrm-portal-user a {
    color: #fff;
}
.acrm-portal-main {
    padding: 28px;
    max-width: 1440px;
    width: 100%;
}
.acrm-portal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}
.acrm-portal-topbar h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
}
.acrm-portal-topbar p {
    color: var(--acrm-muted);
    margin: 6px 0 0;
}
.acrm-portal-app .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
    color: #0f2440;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.2;
}
.acrm-portal-app .button:hover {
    background: #f8fafc;
}
.acrm-portal-app .button-primary {
    background: var(--acrm-primary);
    border-color: var(--acrm-primary);
    color: #fff;
}
.acrm-portal-app .button-primary:hover {
    background: var(--acrm-primary-hover);
    color: #fff;
}
.acrm-portal-app .button-large {
    min-height: 42px;
    padding-left: 18px;
    padding-right: 18px;
}
.acrm-portal-app .widefat {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.acrm-portal-app .widefat th,
.acrm-portal-app .widefat td {
    border-bottom: 1px solid var(--acrm-border);
    padding: 11px 10px;
    text-align: left;
    vertical-align: middle;
}
.acrm-portal-app .widefat th {
    background: #f8fafc;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #475569;
}
.acrm-portal-app .widefat tr:last-child td {
    border-bottom: 0;
}
.acrm-portal-app .widefat a {
    color: #0f2440;
    font-weight: 700;
}
.acrm-portal-app .submitdelete {
    color: #b42318 !important;
}
.acrm-portal-app input,
.acrm-portal-app select,
.acrm-portal-app textarea {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 9px 10px;
    background: #fff;
    color: #111827;
    min-height: 38px;
}
.acrm-portal-app textarea {
    min-height: 76px;
}
.acrm-portal-app .description {
    color: var(--acrm-muted);
    font-size: 13px;
}
.acrm-notice {
    border-radius: 10px;
    padding: 12px 14px;
    margin: 0 0 16px;
    font-weight: 700;
}
.acrm-notice.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.acrm-table-scroll {
    overflow-x: auto;
}
.acrm-front-form .acrm-repeat-table th,
.acrm-front-form .acrm-repeat-table td {
    min-width: 120px;
}
.acrm-front-form .acrm-repeat-table th:nth-last-child(1),
.acrm-front-form .acrm-repeat-table td:nth-last-child(1) {
    min-width: 70px;
}
.acrm-portal-app .acrm-sticky-actions {
    background: rgba(245,247,251,0.96);
    margin: 0;
}
body:has(.acrm-portal-app) {
    margin: 0;
}
body:has(.acrm-portal-app) header,
body:has(.acrm-portal-app) footer,
body:has(.acrm-portal-app) .site-header,
body:has(.acrm-portal-app) .site-footer,
body:has(.acrm-portal-app) .entry-title {
    display: none;
}
body:has(.acrm-portal-app) .entry-content,
body:has(.acrm-portal-app) .wp-site-blocks,
body:has(.acrm-portal-app) .site,
body:has(.acrm-portal-app) .content-area,
body:has(.acrm-portal-app) main {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

@media (max-width: 900px) {
    .acrm-portal-app {
        grid-template-columns: 1fr;
    }
    .acrm-portal-sidebar {
        min-height: auto;
        position: static;
    }
    .acrm-portal-sidebar nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .acrm-portal-main {
        padding: 18px;
    }
    .acrm-portal-topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* v0.3 custom CRM login */
.acrm-login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, #e2e8f0, #f8fafc 42%, #eef2f7 100%);
    padding: 24px;
    box-sizing: border-box;
}
.acrm-login-card {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
    padding: 34px;
    color: #0f172a;
}
.acrm-login-brand {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    background: #0f2440;
    color: #fff;
    border-radius: 16px;
    padding: 13px 16px;
    margin-bottom: 24px;
}
.acrm-login-brand strong {
    font-size: 19px;
    letter-spacing: .01em;
}
.acrm-login-brand span {
    font-size: 12px;
    color: #cbd5e1;
}
.acrm-login-card h1 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.1;
}
.acrm-login-card p {
    margin: 0 0 22px;
    color: #64748b;
}
.acrm-custom-login-form {
    display: grid;
    gap: 16px;
}
.acrm-custom-login-form label {
    display: grid;
    gap: 7px;
    font-weight: 700;
    color: #334155;
}
.acrm-custom-login-form input[type="text"],
.acrm-custom-login-form input[type="password"] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 13px 14px;
    min-height: 46px;
    font-size: 15px;
    box-sizing: border-box;
}
.acrm-custom-login-form .acrm-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #475569;
}
.acrm-custom-login-form .button {
    width: 100%;
    justify-content: center;
    text-align: center;
    border: 0;
    border-radius: 12px;
    min-height: 48px;
    background: #0f2440;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}
.acrm-custom-login-form .button:hover {
    background: #19375f;
    color: #fff;
}
.acrm-notice.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
body:has(.acrm-login-screen) {
    margin: 0;
}
body:has(.acrm-login-screen) header,
body:has(.acrm-login-screen) footer,
body:has(.acrm-login-screen) .site-header,
body:has(.acrm-login-screen) .site-footer,
body:has(.acrm-login-screen) .entry-title {
    display: none;
}
body:has(.acrm-login-screen) .entry-content,
body:has(.acrm-login-screen) .wp-site-blocks,
body:has(.acrm-login-screen) .site,
body:has(.acrm-login-screen) .content-area,
body:has(.acrm-login-screen) main {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

/* v0.4 professional CRM shell */
.acrm-portal-v4 {
    --acrm-bg: #f3f6fb;
    --acrm-card: #ffffff;
    --acrm-border: #e3e8f0;
    --acrm-text: #111827;
    --acrm-muted: #68778d;
    --acrm-primary: #102949;
    --acrm-primary-2: #0f7fbd;
    --acrm-primary-hover: #173c68;
    --acrm-soft-blue: #eaf6fc;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    min-height: 100vh;
    background: linear-gradient(135deg, #f7faff 0%, #eef3fa 100%);
    font-family: Inter, Arial, Helvetica, sans-serif;
}
.acrm-portal-v4 .acrm-portal-sidebar {
    background: linear-gradient(180deg, #102949 0%, #0b1d35 100%);
    padding: 28px 20px;
    box-shadow: 10px 0 30px rgba(16, 41, 73, 0.12);
}
.acrm-portal-v4 .acrm-portal-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 26px;
    margin-bottom: 22px;
}
.acrm-logo-emblem {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #0e91d2;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 10px 24px rgba(14, 145, 210, 0.30);
}
.acrm-portal-v4 .acrm-portal-logo strong {
    font-size: 22px;
    letter-spacing: -0.02em;
}
.acrm-portal-v4 .acrm-portal-logo span:not(.acrm-logo-emblem) {
    color: rgba(255,255,255,.68);
}
.acrm-portal-v4 .acrm-portal-sidebar nav a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 13px 15px;
    border-radius: 14px;
    color: rgba(255,255,255,.78);
    text-decoration: none !important;
    transition: all .16s ease;
}
.acrm-portal-v4 .acrm-portal-sidebar nav a:hover,
.acrm-portal-v4 .acrm-portal-sidebar nav a.active {
    background: rgba(255,255,255,.13);
    box-shadow: inset 3px 0 0 #0e91d2;
    color: #fff;
}
.acrm-portal-v4 .acrm-portal-user {
    margin-top: 42px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 16px;
}
.acrm-portal-v4 .acrm-portal-user span,
.acrm-portal-v4 .acrm-portal-user strong,
.acrm-portal-v4 .acrm-portal-user a {
    display: block;
}
.acrm-portal-v4 .acrm-portal-user a {
    margin-top: 8px;
    color: #93d8ff;
    text-decoration: none;
    font-weight: 800;
}
.acrm-portal-v4 .acrm-portal-main {
    padding: 34px 38px;
    max-width: none;
}
.acrm-portal-v4 .acrm-portal-topbar {
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(226,232,240,.9);
    border-radius: 24px;
    padding: 24px 26px;
    margin-bottom: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
}
.acrm-top-kicker {
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #0e91d2;
    margin-bottom: 7px;
}
.acrm-portal-v4 .acrm-portal-topbar h1 {
    color: #102949;
    font-size: 34px;
    letter-spacing: -0.04em;
}
.acrm-portal-v4 .button,
.acrm-portal-v4 button.button {
    border-radius: 12px;
    text-decoration: none !important;
    box-shadow: none;
}
.acrm-portal-v4 .button-primary,
.acrm-portal-v4 .acrm-top-create {
    background: linear-gradient(135deg, #102949 0%, #0e91d2 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 24px rgba(14,145,210,.20);
}
.acrm-dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 22px;
    padding: 28px;
    border-radius: 26px;
    background: linear-gradient(135deg, #102949 0%, #13456f 52%, #0e91d2 100%);
    color: #fff;
    box-shadow: 0 20px 45px rgba(16,41,73,.18);
    overflow: hidden;
    position: relative;
}
.acrm-dashboard-hero:after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
}
.acrm-dashboard-hero > * {
    position: relative;
    z-index: 1;
}
.acrm-hero-label {
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #b9e9ff;
    margin-bottom: 10px;
}
.acrm-dashboard-hero h2 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #fff;
}
.acrm-dashboard-hero p {
    color: rgba(255,255,255,.82);
    margin: 0;
    max-width: 610px;
    font-size: 15px;
}
.acrm-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.acrm-dashboard-hero .button {
    border-color: rgba(255,255,255,.24);
}
.acrm-dashboard-hero .button:not(.button-primary) {
    background: rgba(255,255,255,.12);
    color: #fff;
}
.acrm-dashboard-hero .button-primary {
    background: #fff;
    color: #102949;
}
.acrm-stats-v4 {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 18px;
}
.acrm-stat-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border: 1px solid rgba(226,232,240,.95);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 15px 36px rgba(15, 23, 42, 0.06);
}
.acrm-stat-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09);
}
.acrm-stat-icon {
    flex: 0 0 44px;
    height: 44px;
    width: 44px;
    border-radius: 16px;
    background: var(--acrm-soft-blue);
    color: #0e91d2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    font-weight: 900;
}
.acrm-stat-card span:not(.acrm-stat-icon) {
    color: #68778d;
    font-weight: 800;
}
.acrm-stat-card strong {
    display: block;
    margin-top: 6px;
    color: #102949;
    font-size: 35px;
    letter-spacing: -0.04em;
}
.acrm-stat-card small {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    margin-top: 6px;
}
.acrm-latest-voucher {
    font-size: 22px !important;
    padding-top: 8px;
}
.acrm-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 20px;
    align-items: start;
}
.acrm-panel-v4,
.acrm-portal-v4 .acrm-panel {
    border: 1px solid rgba(226,232,240,.95);
    border-radius: 22px;
    box-shadow: 0 15px 36px rgba(15, 23, 42, 0.06);
}
.acrm-panel-v4 .acrm-section-header p {
    margin: 5px 0 0;
    color: #68778d;
}
.acrm-quick-panel {
    display: grid;
    gap: 12px;
}
.acrm-quick-panel h2 {
    margin: 0 0 4px;
    color: #102949;
}
.acrm-quick-panel a {
    display: block;
    border: 1px solid #e3e8f0;
    border-radius: 16px;
    padding: 14px;
    text-decoration: none !important;
    background: #f8fbff;
    transition: all .16s ease;
}
.acrm-quick-panel a:hover {
    background: #eef8fd;
    border-color: #bde7fb;
}
.acrm-quick-panel strong,
.acrm-quick-panel span {
    display: block;
}
.acrm-quick-panel strong {
    color: #102949;
    margin-bottom: 4px;
}
.acrm-quick-panel span {
    color: #68778d;
    font-size: 13px;
}
.acrm-portal-v4 .widefat {
    border: 1px solid #e3e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: none;
}
.acrm-portal-v4 .widefat th {
    background: #f7f9fc;
    color: #607086;
    padding: 14px 12px;
}
.acrm-portal-v4 .widefat td {
    padding: 14px 12px;
    color: #25364d;
}
.acrm-action-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.acrm-action-links a {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 5px 9px;
    border-radius: 9px;
    background: #f1f6fb;
    color: #102949 !important;
    font-size: 12px;
    text-decoration: none !important;
}
.acrm-action-links a:hover {
    background: #e2f3fc;
}
.acrm-action-links .submitdelete {
    background: #fff1f2;
    color: #b42318 !important;
}
.acrm-portal-v4 .acrm-status {
    padding: 6px 10px;
}
.acrm-portal-v4 .acrm-search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}
.acrm-portal-v4 .acrm-search-form input[type="search"] {
    min-height: 42px;
    border-radius: 12px;
}
body:has(.acrm-portal-v4),
body:has(.acrm-login-screen-v4) {
    background: #f3f6fb;
}
body:has(.acrm-portal-v4) #wpadminbar,
body:has(.acrm-login-screen-v4) #wpadminbar {
    display: none !important;
}
html:has(.acrm-portal-v4),
html:has(.acrm-login-screen-v4) {
    margin-top: 0 !important;
}

/* v0.4 login - sample inspired */
.acrm-login-screen-v4 {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    min-height: 100vh;
    background: #e9edf3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    font-family: Arial, Helvetica, sans-serif;
}
.acrm-login-wrap-v4 {
    width: 354px;
    max-width: calc(100vw - 28px);
    text-align: center;
}
.acrm-login-logo-v4 {
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 10px;
    color: #111827;
}
.acrm-login-logo-v4 img {
    max-height: 58px;
    max-width: 230px;
    object-fit: contain;
}
.acrm-plane-mark {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid #10a0df;
    color: #102949;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    transform: rotate(-15deg);
    background: #fff;
}
.acrm-login-logo-v4 small,
.acrm-login-logo-v4 strong {
    display: block;
    text-align: left;
    line-height: 1;
}
.acrm-login-logo-v4 small {
    color: #0e91d2;
    font-weight: 900;
    font-size: 13px;
}
.acrm-login-logo-v4 strong {
    color: #111827;
    font-size: 31px;
    letter-spacing: -0.05em;
}
.acrm-login-card-v4 {
    position: relative;
    background: #fff;
    border-top: 3px solid #0e91d2;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(15, 23, 42, .05);
    padding: 28px 26px 14px;
    text-align: left;
}
.acrm-login-tab-v4 {
    position: absolute;
    right: 0;
    top: -54px;
    min-height: 54px;
    min-width: 66px;
    padding: 0 13px;
    background: #088ccb;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px 3px 0 0;
}
.acrm-custom-login-form-v4 {
    display: block;
}
.acrm-custom-login-form-v4 label,
.acrm-login-row-v4 label {
    font-size: 11px;
    color: #6b7280;
    font-weight: 400;
    margin: 0 0 8px;
}
.acrm-login-row-v4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
}
.acrm-login-row-v4 a {
    font-size: 11px;
    color: #008bd2;
    text-decoration: none;
}
.acrm-login-input-v4 {
    display: flex;
    height: 36px;
    margin-bottom: 0;
}
.acrm-login-input-v4 input[type="text"],
.acrm-login-input-v4 input[type="password"] {
    flex: 1;
    min-width: 0;
    border: 1px solid #cbd3df;
    border-right: 0;
    border-radius: 0;
    height: 36px;
    min-height: 36px;
    padding: 7px 10px;
    box-shadow: none;
    font-size: 13px;
    outline: none;
}
.acrm-login-input-v4 input:focus {
    border-color: #0e91d2;
}
.acrm-login-input-v4 span {
    width: 31px;
    height: 36px;
    border: 1px solid #cbd3df;
    background: #eef2f6;
    color: #667085;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.acrm-login-actions-v4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
}
.acrm-login-actions-v4 .acrm-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #777;
    font-size: 12px;
    font-weight: 400;
}
.acrm-login-actions-v4 input[type="checkbox"] {
    width: 13px;
    height: 13px;
    margin: 0;
}
.acrm-login-actions-v4 button {
    min-width: 54px;
    height: 29px;
    border: 0;
    border-radius: 3px;
    background: #088ccb;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.acrm-login-actions-v4 button:hover {
    background: #057bb3;
}
.acrm-login-copy-v4 {
    margin-top: 13px;
    color: #8c96a4;
    font-size: 11px;
}
.acrm-login-card-v4 .acrm-notice.error {
    font-size: 12px;
    margin-bottom: 14px;
    padding: 9px 10px;
}
@media (max-width: 1180px) {
    .acrm-stats-v4,
    .acrm-dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
    .acrm-dashboard-grid .acrm-panel:first-child {
        grid-column: 1 / -1;
    }
}
@media (max-width: 760px) {
    .acrm-portal-v4 .acrm-portal-main {
        padding: 18px;
    }
    .acrm-dashboard-hero,
    .acrm-portal-v4 .acrm-portal-topbar {
        align-items: flex-start;
        flex-direction: column;
    }
    .acrm-stats-v4,
    .acrm-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .acrm-hero-actions {
        justify-content: flex-start;
    }
}

/* v0.5 voucher creation builder - operational style */
.acrm-legacy-builder {
    --legacy-blue: #8bd4f2;
    --legacy-soft: #eef8fd;
    --legacy-line: #cfe4ee;
    --legacy-title: #0082cf;
    background: #fff;
    border: 1px solid #dbe5ee;
    border-radius: 18px;
    padding: 18px 22px 90px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}
.acrm-builder-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding: 4px 0 16px;
}
.acrm-builder-toolbar h2 {
    margin: 0 0 4px;
    font-size: 22px;
}
.acrm-builder-toolbar p {
    margin: 0;
    color: #64748b;
}
.acrm-builder-meta {
    display: grid;
    grid-template-columns: 180px 150px;
    gap: 10px;
    align-items: end;
}
.acrm-legacy-builder label {
    font-size: 11px;
    font-weight: 700;
    color: #344054;
}
.acrm-legacy-builder input,
.acrm-legacy-builder select,
.acrm-legacy-builder textarea {
    width: 100%;
    max-width: 100%;
    min-height: 29px;
    padding: 4px 7px;
    border: 1px solid #b8cbd6;
    border-radius: 3px;
    background: #fff;
    box-sizing: border-box;
    font-size: 12px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04);
}
.acrm-legacy-builder input[type="checkbox"] {
    width: 14px;
    height: 14px;
    min-height: 14px;
    padding: 0;
    vertical-align: middle;
}
.acrm-legacy-section {
    margin: 0 0 12px;
    border: 1px solid #edf2f6;
    border-radius: 5px;
    overflow: visible;
    background: #fbfdff;
}
.acrm-legacy-title {
    color: var(--legacy-title);
    background: #f7f7f7;
    border-bottom: 1px solid #ebeff3;
    font-weight: 900;
    padding: 7px 10px;
    font-size: 14px;
}
.acrm-legacy-table-wrap {
    overflow-x: auto;
    padding: 10px;
}
.acrm-legacy-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    table-layout: auto;
}
.acrm-legacy-table th,
.acrm-legacy-table td {
    border: 1px solid #a8c3cf;
    padding: 4px 5px;
    vertical-align: middle;
    background: #fff;
}
.acrm-legacy-table th {
    background: linear-gradient(#d7f5f7, #bce6ea);
    color: #233142;
    font-size: 11px;
    text-align: left;
    font-weight: 800;
}
.acrm-legacy-table td {
    background: #eef9fd;
}
.acrm-legacy-table input,
.acrm-legacy-table select {
    min-width: 100px;
}
.acrm-mutamer-table th:nth-child(1),
.acrm-mutamer-table th:nth-child(3),
.acrm-mutamer-table th:nth-child(4) { width: 120px; }
.acrm-mutamer-table th:nth-child(5),
.acrm-mutamer-table th:nth-child(6) { width: 70px; text-align: center; }
.acrm-center { text-align: center !important; }
.acrm-mini-remove {
    border: 0;
    color: #b42318;
    background: transparent;
    font-weight: 900;
    cursor: pointer;
    font-size: 14px;
}
.acrm-add-legacy-row {
    margin: 0 10px 10px !important;
}
.acrm-check-line {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin: 8px 10px;
}
.acrm-hotel-block {
    border-top: 1px solid #dcecf3;
}
.acrm-hotel-head {
    display: grid;
    grid-template-columns: 95px 1.5fr .58fr .48fr;
    gap: 12px;
    align-items: center;
    background: var(--legacy-blue);
    padding: 9px 12px;
}
.acrm-hotel-head label {
    display: inline-flex !important;
    gap: 5px;
    align-items: center;
    white-space: nowrap;
}
.acrm-hotel-name {
    font-weight: 700;
}
.acrm-hotel-fields {
    display: grid;
    grid-template-columns: .72fr 1.12fr .92fr .55fr .96fr .72fr .96fr .88fr .72fr .55fr;
    gap: 9px;
    align-items: end;
    padding: 8px 12px 10px;
    background: var(--legacy-soft);
}
.acrm-hotel-fields label {
    display: grid !important;
    gap: 4px;
}
.acrm-tiny-check {
    align-items: center !important;
    justify-items: center;
    text-align: center;
}
.acrm-travel-type-section {
    padding-bottom: 12px;
}
.acrm-travel-type-section label {
    display: inline-grid !important;
    grid-template-columns: 90px 130px;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0 24%;
}
.acrm-flight-table th:first-child,
.acrm-flight-table td:first-child { width: 100px; }
.acrm-transport-visa {
    margin-left: 18% !important;
    font-size: 13px !important;
}
.acrm-transport-grid {
    display: grid;
    grid-template-columns: 34px minmax(170px, .8fr) minmax(240px, 1.2fr) minmax(200px, 1fr) minmax(120px, .6fr) minmax(110px, .55fr);
    gap: 0;
    padding: 10px;
    align-items: center;
}
.acrm-transport-grid > div {
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    padding: 4px 7px;
}
.acrm-transport-grid > input,
.acrm-transport-grid > select,
.acrm-transport-grid > label {
    border-radius: 0;
    margin: 0;
    min-height: 32px;
}
.acrm-transport-grid > label {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #f2fbff;
    border: 1px solid #e0eef6;
}
.acrm-transport-grid > input,
.acrm-transport-grid > select {
    border-color: #c4d6df;
    background: #fff;
}
.acrm-additional-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px 18px;
    padding: 16px 26%;
    align-items: center;
}
.acrm-additional-grid label {
    display: grid !important;
    grid-template-columns: 95px 1fr;
    align-items: center;
    gap: 7px;
}
.acrm-additional-grid label span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.acrm-notes-label {
    display: grid !important;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    align-items: start;
    padding: 0 26% 10px;
}
.acrm-save-note {
    color: #64748b;
    font-size: 12px;
    padding: 0 26% 16px;
    margin: 0;
}
.acrm-legacy-builder .acrm-sticky-actions {
    position: sticky;
    bottom: 0;
    background: rgba(255,255,255,.96) !important;
    border-top: 1px solid #e5e7eb;
    margin: 18px -22px -90px !important;
    padding: 14px 22px !important;
    box-shadow: 0 -10px 25px rgba(15, 23, 42, .05);
}
@media (max-width: 1100px) {
    .acrm-builder-toolbar,
    .acrm-builder-meta { grid-template-columns: 1fr; display: grid; }
    .acrm-hotel-head,
    .acrm-hotel-fields,
    .acrm-transport-grid,
    .acrm-additional-grid { grid-template-columns: 1fr; }
    .acrm-additional-grid,
    .acrm-notes-label,
    .acrm-save-note { padding-left: 12px; padding-right: 12px; }
    .acrm-travel-type-section label { margin-left: 12px; }
}

/* v0.7 compact KSA-style customer voucher */
.acrm-preview-body-v6 {
    background: #dfe3e8;
    font-family: Arial, Helvetica, sans-serif;
    color: #000;
}
.acrm-voucher-page-ksa {
    width: 820px;
    min-height: 1160px;
    padding: 10px 12px 18px;
    position: relative;
    border: 1px solid #000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    font-size: 10px;
    line-height: 1.15;
}
.acrm-ksa-header {
    display: grid;
    grid-template-columns: 1fr 160px 1fr;
    gap: 8px;
    align-items: start;
    min-height: 118px;
}
.acrm-ksa-company {
    color: #003fbb;
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 2px;
}
.acrm-ksa-head-left div,
.acrm-ksa-head-right div {
    margin: 2px 0;
}
.acrm-ksa-head-logo {
    text-align: center;
    font-weight: 800;
    min-height: 80px;
}
.acrm-ksa-head-logo img {
    max-width: 130px;
    max-height: 90px;
    object-fit: contain;
}
.acrm-ksa-kaaba {
    font-size: 48px;
    line-height: 1;
}
.acrm-ksa-head-right {
    text-align: right;
    font-weight: 600;
}
.acrm-ksa-agent {
    color: #003fbb;
    font-size: 13px;
    font-weight: 800;
}
.acrm-ksa-whatsapp {
    margin-top: 14px !important;
    font-weight: 800;
}
.acrm-ksa-title-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    border: 1px solid #000;
    margin: 0 0 2px;
    font-size: 12px;
    font-weight: 700;
}
.acrm-ksa-title-row > div {
    padding: 3px 5px;
    border-right: 1px solid #000;
}
.acrm-ksa-title-row > div:last-child {
    border-right: 0;
}
.acrm-ksa-title-row span {
    font-weight: 800;
}
.acrm-ksa-section-label,
.acrm-ksa-flight-head {
    border: 1px solid #000;
    border-bottom: 0;
    background: #efefef;
    text-align: center;
    font-weight: 800;
    padding: 2px;
    margin-top: 6px;
}
.acrm-ksa-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin: 0 0 5px;
}
.acrm-ksa-table th,
.acrm-ksa-table td {
    border: 1px solid #000;
    padding: 2px 3px;
    font-size: 9.3px;
    line-height: 1.15;
    vertical-align: top;
    word-break: break-word;
}
.acrm-ksa-table th {
    background: #f4f4f4;
    text-align: center;
    font-weight: 800;
}
.acrm-ksa-mutamer th:nth-child(1) { width: 5%; }
.acrm-ksa-mutamer th:nth-child(2) { width: 13%; }
.acrm-ksa-mutamer th:nth-child(3) { width: 25%; }
.acrm-ksa-mutamer th:nth-child(4) { width: 4%; }
.acrm-ksa-mutamer th:nth-child(5) { width: 7%; }
.acrm-ksa-mutamer th:nth-child(6) { width: 5%; }
.acrm-ksa-accommodation th:nth-child(1) { width: 9%; }
.acrm-ksa-accommodation th:nth-child(2) { width: 31%; }
.acrm-ksa-accommodation th:nth-child(3) { width: 9%; }
.acrm-ksa-accommodation th:nth-child(4) { width: 7%; }
.acrm-ksa-accommodation th:nth-child(5) { width: 9%; }
.acrm-ksa-accommodation th:nth-child(6) { width: 11%; }
.acrm-ksa-accommodation th:nth-child(7),
.acrm-ksa-accommodation th:nth-child(8) { width: 9%; }
.acrm-ksa-accommodation th:nth-child(9) { width: 6%; }
.acrm-ksa-total-row td {
    font-weight: 800;
    text-align: right;
}
.acrm-ksa-total-row td:last-child {
    text-align: center;
}
.acrm-ksa-flight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 78px;
    gap: 4px;
    align-items: start;
    margin-top: 6px;
}
.acrm-ksa-flight-grid .acrm-ksa-table {
    margin-bottom: 0;
}
.acrm-ksa-qr {
    height: 76px;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    background: repeating-linear-gradient(45deg, #fff, #fff 4px, #111 4px, #111 6px);
    color: #fff;
    text-shadow: 0 1px 2px #000;
}
.acrm-ksa-instructions {
    min-height: 44px;
    margin-top: 6px;
    font-size: 10px;
    font-style: italic;
}
.acrm-ksa-instructions ul {
    margin: 3px 0 0 15px;
    padding: 0;
}
.acrm-ksa-contacts {
    margin-top: 10px;
    font-size: 10px;
}
.acrm-ksa-contacts > strong {
    display: block;
    margin: 8px 0 2px;
}
.acrm-ksa-contacts .acrm-ksa-table {
    width: 62%;
}
.acrm-ksa-terms {
    margin-top: 8px;
    font-size: 8.8px;
    color: #333;
}
.acrm-ksa-stamp {
    position: absolute;
    left: 310px;
    top: 520px;
    transform: rotate(-35deg);
    color: rgba(60, 190, 80, 0.55);
    border: 3px solid rgba(60, 190, 80, 0.45);
    border-radius: 8px;
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 6px 18px;
    pointer-events: none;
}

@media print {
    @page { size: A4; margin: 6mm; }
    .acrm-preview-body-v6 .acrm-voucher-page-ksa {
        width: auto;
        min-height: auto;
        margin: 0;
        padding: 0;
        border: 1px solid #000;
        box-shadow: none;
        font-size: 9.5px;
    }
    .acrm-preview-body-v6 .acrm-ksa-table th,
    .acrm-preview-body-v6 .acrm-ksa-table td {
        padding: 1.7px 2.5px;
        font-size: 8.7px;
    }
    .acrm-preview-body-v6 .acrm-ksa-header {
        min-height: 98px;
    }
    .acrm-preview-body-v6 .acrm-ksa-stamp {
        top: 500px;
    }
    .acrm-preview-body-v6 .acrm-ksa-contacts .acrm-ksa-table {
        width: 72%;
    }
}

/* v0.7 professional empty/search states */
.acrm-empty-state {
    text-align: center;
    padding: 38px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    margin: 10px 0;
}
.acrm-empty-state .acrm-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #0f4c81;
    font-size: 28px;
}
.acrm-empty-state h3 {
    margin: 0 0 6px;
    font-size: 22px;
    color: #0f172a;
}
.acrm-empty-state p {
    margin: 0 auto 18px;
    max-width: 520px;
    color: #64748b;
    font-size: 14px;
}
.acrm-empty-state .button {
    margin: 4px;
}
.acrm-crm-search {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin: 16px 0 18px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}
.acrm-crm-search input[type="search"] {
    min-width: 320px;
    max-width: 520px;
    flex: 1;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    padding: 0 14px;
}
.acrm-front-validation-error {
    margin: 16px 0;
    border-left: 4px solid #dc2626 !important;
    background: #fef2f2 !important;
    color: #7f1d1d !important;
}

/* v0.8 QR, editable contact details, and Urdu terms */
.acrm-ksa-qr {
    background: #fff !important;
    color: #111 !important;
    text-shadow: none !important;
    border: 1px solid #000;
    height: auto;
    min-height: 76px;
    padding: 2px;
    flex-direction: column;
    gap: 2px;
}
.acrm-ksa-qr img {
    width: 72px;
    height: 72px;
    display: block;
}
.acrm-ksa-qr small {
    font-size: 7px;
    line-height: 1;
    font-weight: 700;
}
.acrm-contact-table td:nth-child(1) { width: 38%; }
.acrm-contact-table td:nth-child(2) { width: 30%; }
.acrm-contact-table td:nth-child(3) { width: 32%; }
.acrm-ksa-terms-page {
    margin-top: 10px;
    break-inside: avoid;
    page-break-inside: avoid;
}
.acrm-urdu-terms {
    font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
    font-size: 12px;
    line-height: 2;
    text-align: right;
    direction: rtl;
    padding: 8px 10px;
    min-height: 180px;
}
.acrm-urdu-terms ul {
    list-style-position: inside;
    padding: 0;
    margin: 0;
}
.acrm-urdu-terms li {
    margin: 0 0 4px;
}
.acrm-settings-form textarea[dir="rtl"],
.acrm-notes-label textarea[name="terms"] {
    font-family: "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
    line-height: 1.8;
}

@media print {
    .acrm-preview-body-v6 .acrm-ksa-qr img {
        width: 68px;
        height: 68px;
    }
    .acrm-preview-body-v6 .acrm-urdu-terms {
        font-size: 11px;
        line-height: 1.9;
    }
}

/* v0.9 professional final voucher print refinements */
.acrm-ksa-header-v9 {
    display: grid;
    grid-template-columns: 1.45fr 0.95fr;
    gap: 12px;
    align-items: stretch;
    min-height: 92px;
    padding: 8px 8px 6px;
    border: 1px solid #000;
    background: #fff;
}
.acrm-ksa-brand-block {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
}
.acrm-ksa-brand-logo {
    width: 104px;
    max-height: 78px;
    object-fit: contain;
    flex: 0 0 auto;
}
.acrm-ksa-brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: #0f4c81;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -1px;
    flex: 0 0 auto;
}
.acrm-ksa-brand-text {
    min-width: 0;
}
.acrm-ksa-header-v9 .acrm-ksa-company {
    color: #0f172a;
    font-size: 20px;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    line-height: 1.05;
}
.acrm-ksa-doc-title {
    display: inline-block;
    margin: 4px 0 5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eef6ff;
    border: 1px solid #b9ddff;
    color: #0f4c81;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.acrm-ksa-brand-text div:not(.acrm-ksa-company):not(.acrm-ksa-doc-title) {
    font-size: 10px;
    color: #111827;
    margin: 1px 0;
}
.acrm-ksa-voucher-meta {
    border-left: 2px solid #0f4c81;
    padding-left: 12px;
    text-align: right;
    font-size: 10.5px;
    line-height: 1.45;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.acrm-voucher-no-badge {
    display: inline-flex;
    align-self: flex-end;
    align-items: center;
    gap: 8px;
    background: #0f4c81;
    color: #fff;
    border: 2px solid #0b2f55;
    border-radius: 8px;
    padding: 5px 10px;
    margin-bottom: 5px;
    box-shadow: 0 2px 0 #091f38;
}
.acrm-voucher-no-badge span {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    opacity: 0.95;
}
.acrm-voucher-no-badge strong {
    font-size: 18px;
    letter-spacing: 0.7px;
    line-height: 1;
}
.acrm-ksa-title-row-v9 {
    grid-template-columns: 1.35fr 0.65fr;
    margin-top: 4px;
    background: #f8fafc;
}
.acrm-ksa-title-row-v9 > div {
    text-align: center;
}
.acrm-ksa-table th,
.acrm-ksa-table td {
    text-align: center;
    vertical-align: middle;
}
.acrm-ksa-accommodation td:nth-child(2),
.acrm-contact-table td,
.acrm-ksa-transport td,
.acrm-ksa-flight-table td,
.acrm-ksa-mutamer td {
    text-align: center;
}
.acrm-ksa-total-row td {
    text-align: center !important;
}
.acrm-ksa-section-label,
.acrm-ksa-flight-head {
    background: #eaf2fa;
    color: #0f172a;
    letter-spacing: 0.2px;
}
.acrm-ksa-transport th:nth-child(1) { width: 28%; }
.acrm-ksa-transport th:nth-child(2) { width: 25%; }
.acrm-ksa-transport th:nth-child(3) { width: 47%; }
.acrm-ksa-contacts .acrm-ksa-table {
    width: 72%;
}
.acrm-urdu-terms-image-wrap {
    width: 100%;
    text-align: center;
    padding: 6px 0 0;
    direction: rtl;
}
.acrm-urdu-terms-image-wrap img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}
.acrm-ksa-terms-page {
    page-break-inside: avoid;
    break-inside: avoid;
}

@media print {
    .acrm-preview-body-v6 .acrm-ksa-header-v9 {
        min-height: 80px;
        padding: 6px;
        gap: 8px;
    }
    .acrm-preview-body-v6 .acrm-ksa-brand-logo {
        width: 92px;
        max-height: 64px;
    }
    .acrm-preview-body-v6 .acrm-ksa-header-v9 .acrm-ksa-company {
        font-size: 17px;
    }
    .acrm-preview-body-v6 .acrm-voucher-no-badge {
        padding: 4px 8px;
        margin-bottom: 3px;
    }
    .acrm-preview-body-v6 .acrm-voucher-no-badge strong {
        font-size: 16px;
    }
    .acrm-preview-body-v6 .acrm-ksa-voucher-meta {
        font-size: 9.4px;
    }
    .acrm-preview-body-v6 .acrm-ksa-title-row-v9 {
        margin-top: 3px;
    }
    .acrm-preview-body-v6 .acrm-ksa-terms-page {
        margin-top: 8px;
    }
}
