﻿:root {
    --hxg-ink: #243144;
    --hxg-sand: #f5efe6;
    --hxg-gold: #c8a16a;
    --hxg-gold-soft: #e4c48f;
    --hxg-forest: #1d4338;
    --hxg-forest-deep: #15342c;
    --hxg-forest-mist: #437564;
    --hxg-slate: #7b7a74;
    --hxg-card: #fffdfa;
    --hxg-line: #eadfce;
    --hxg-ivory: #fffaf3;
    --hx-gold-1: #A07847;
    --hx-gold-2: #B38954;
    --hx-gold-3: #DDAC6C;
    --hx-gold-4: #F9C682;
    --menu-bg: #0B0B0B; /* nếu đặt trên nền tối */
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    color: var(--hxg-ink);
}

.app-shell {
    background: radial-gradient(circle at top right, rgba(200, 155, 60, 0.14), transparent 30%), linear-gradient(180deg, #f6f1e6 0%, #fbfaf7 100%);
    overflow-x: hidden;
}

.app-frame {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.portal-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: stretch;
    background: linear-gradient(90deg, #17352d 0%, #2f6b52 100%);
    border-bottom: 1px solid rgba(200, 161, 106, 0.24);
    box-shadow: 0 10px 28px rgba(25, 47, 39, 0.14);
    position: sticky;
    top: 0;
    z-index: 50;
    overflow: visible;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1.4rem;
    min-width: 240px;
    background: rgba(18, 39, 33, 0.5);
}

.portal-brand-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.portal-brand-copy {
    display: flex;
    flex-direction: column;
    color: #f9f3e8;
}

    .portal-brand-copy strong {
        font-size: 1rem;
        font-weight: 800;
        letter-spacing: 0.04em;
    }

    .portal-brand-copy span {
        color: rgba(248, 241, 231, 0.7);
        font-size: 0.78rem;
    }

.portal-nav {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    scrollbar-width: none;
    overflow-y: visible;
    position: relative;
    z-index: 60;
    min-width: 0;
    width: 100%;
}

    .portal-nav::-webkit-scrollbar {
        display: none;
    }

.portal-nav-item {
    position: relative;
    display: flex;
    align-items: stretch;
    flex: 0 0 auto;
}

    .portal-nav-item > a,
    .portal-nav-trigger {
        display: inline-flex;
        align-items: center;
        gap: 0.7rem;
        border: 0;
        background: transparent;
        color: #fffdf8;
        padding: 1.15rem 1rem;
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
        position: relative;
    }

        .portal-nav-item > a:hover,
        .portal-nav-trigger:hover,
        .portal-nav-item.open .portal-nav-trigger,
        .portal-nav-item.active > a,
        .portal-nav-item.active > .portal-nav-trigger {
            background: linear-gradient(180deg, rgba(214, 180, 119, 0.24) 0%, rgba(214, 180, 119, 0.16) 100%);
            color: #fff;
        }

            .portal-nav-item.active > a::after,
            .portal-nav-item.active > .portal-nav-trigger::after,
            .portal-nav-item.open .portal-nav-trigger::after,
            .portal-nav-trigger:hover::after {
                content: "";
                position: absolute;
                left: 0.95rem;
                right: 0.95rem;
                bottom: 0;
                height: 3px;
                border-radius: 999px 999px 0 0;
                background: #f0c98b;
            }

        .portal-nav-trigger i:first-child,
        .portal-nav-item > a i:first-child {
            color: #f0c98b;
        }

.portal-nav-caret {
    font-size: 0.72rem;
    color: rgba(255, 251, 244, 0.82);
}

.portal-account {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.85rem 1rem 0.85rem 0.5rem;
    overflow: visible;
    flex: 0 0 auto;
}

.portal-account-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 2.75rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 245, 228, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 0.7rem 1rem;
}

    .portal-account.open .portal-account-trigger,
    .portal-account-trigger:hover {
        background: rgba(255, 255, 255, 0.14);
    }

.portal-dropdown {
    position: absolute;
    top: calc(100% + 0.2rem);
    left: 0;
    min-width: 250px;
    padding: 0.55rem;
    border-radius: 18px;
    border: 1px solid rgba(36, 49, 68, 0.08);
    background: rgba(255, 252, 247, 0.98);
    box-shadow: 0 22px 48px rgba(39, 41, 56, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 120;
}

.portal-dropdown-right {
    right: 1rem;
    left: auto;
}

.has-menu.open .portal-dropdown,
.portal-account.open .portal-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.portal-dropdown-group-title {
    display: block;
    padding: 0.55rem 0.8rem 0.35rem;
    color: #9b886b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.portal-dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.72rem 0.85rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #334154;
    text-decoration: none;
    font-weight: 600;
    text-align: left;
}

    .portal-dropdown-item:hover {
        background: #f3ede4;
        color: #1f2d40;
    }

    .portal-dropdown-item i {
        width: 1rem;
        color: #9d7947;
    }

    .portal-dropdown-item.muted {
        color: #8d8578;
    }

.portal-dropdown-button {
    cursor: pointer;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--hxg-gold);
    font-size: 0.75rem;
    font-weight: 700;
}

.content-wrap {
    padding: 1.6rem 2rem 2rem;
}

.topbar {
    padding-bottom: 1.1rem;
}

.page-title {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 800;
}

.panel-card,
.info-card,
.login-card,
.vcard-card {
    border-radius: 24px;
    background: var(--hxg-card);
    border: 1px solid rgba(20, 33, 61, 0.05);
}

.page-body {
    padding-top: 0.5rem;
}

.admin-breadcrumb {
    --bs-breadcrumb-divider-color: #9d8d78;
    --bs-breadcrumb-item-active-color: #6f6a61;
    font-size: 0.92rem;
}

    .admin-breadcrumb a {
        color: #466b5a;
        text-decoration: none;
        font-weight: 600;
    }

        .admin-breadcrumb a:hover {
            color: #2e5041;
        }

.admin-data-table td,
.admin-data-table th {
    vertical-align: middle;
}

.admin-list-page {
    display: grid;
    gap: 1rem;
}

.admin-list-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.admin-list-title {
    margin: 0;
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 800;
    color: var(--hxg-ink);
}

.admin-list-subtitle {
    margin: 0.55rem 0 0;
    color: #667487;
    max-width: 70ch;
}

.admin-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.55rem;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(90deg, #cb8f4c 0%, #db6f48 100%);
    color: #fff;
    font-weight: 700;
    padding: 0.45rem 1rem;
}

    .admin-add-btn:hover,
    .admin-add-btn:focus {
        color: #fff;
        background: linear-gradient(90deg, #bb8040 0%, #cc643e 100%);
    }

.admin-list-card {
    overflow: hidden;
    border-radius: 18px;
}

.admin-toolbar {
    display: grid;
    grid-template-columns: minmax(320px, 1.4fr) minmax(240px, 0.65fr) auto auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.9rem;
    /* border-bottom: 1px solid #ece4d8; */
    background: #fffdfa;
}

.admin-toolbar-branch {
    grid-template-columns: minmax(320px, 1.35fr) minmax(220px, 0.62fr) minmax(180px, 0.52fr) minmax(180px, 0.52fr) auto auto;
}

.admin-toolbar-employee {
    grid-template-columns: minmax(320px, 1.25fr) minmax(190px, 0.58fr) minmax(190px, 0.58fr) minmax(190px, 0.58fr) minmax(180px, 0.54fr) auto auto;
}

.admin-toolbar-department {
    grid-template-columns: minmax(320px, 1.3fr) minmax(220px, 0.7fr) minmax(220px, 0.7fr) auto auto;
}

.admin-toolbar-search {
    position: relative;
}

    .admin-toolbar-search i {
        position: absolute;
        top: 50%;
        left: 1rem;
        transform: translateY(-50%);
        color: #8a8f9c;
    }

    .admin-toolbar-search .form-control,
    .admin-toolbar-select {
        min-height: 2.85rem;
        border-radius: 8px;
        border: 1px solid #dddfe7;
        background: #fff;
    }

    .admin-toolbar-search .form-control {
        padding-left: 2.8rem;
    }

.admin-toolbar-select {
    padding-right: 2.65rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236e7482' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M3.5 6l4.5 4 4.5-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 14px 14px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.admin-toolbar-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.85rem;
    border-radius: 8px;
    border: 0;
    background: linear-gradient(90deg, #446d5a 0%, #2f5a49 100%);
    color: #fff;
    font-weight: 700;
    padding: 0.5rem 1rem;
}

    .admin-toolbar-filter-btn:hover,
    .admin-toolbar-filter-btn:focus {
        color: #fff;
        background: linear-gradient(90deg, #3a5f4f 0%, #284d3f 100%);
    }

.admin-toolbar-reset-btn {
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 8px;
    border: 1px solid #dddfe7;
    background: #fff;
    color: #6e7482;
}

    .admin-toolbar-reset-btn:hover,
    .admin-toolbar-reset-btn:focus {
        background: #f5f7fb;
        color: #394252;
    }

.admin-sample-table {
    margin-bottom: 0;
}

    .admin-sample-table thead th {
        border-bottom: 0;
        background: linear-gradient(90deg, #4f866d 0%, #4f866d 100%);
        color: #fffdf8;
        font-weight: 500;
        padding: 0.5rem 1rem;
        white-space: nowrap;
        /* border-right: 1px solid #e8ebf0; */
    }

    .admin-sample-table tbody td {
        padding: 0.5rem 1rem;
        border-color: #e8ebf0;
        background: #fffefc;
        vertical-align: middle;
    }

    .admin-sample-table tbody tr:nth-child(even) td {
        background: #f6f8f5;
    }

    .admin-sample-table tbody tr:nth-child(odd) td {
        background: #fffefc;
    }

.admin-index-col {
    width: 72px;
    text-align: center;
    font-weight: 700;
    color: #6f766f;
}

.admin-display-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: #e8f4ea;
    color: #5f875f;
    font-size: 0.84rem;
    font-weight: 700;
}

    .admin-display-badge.is-hidden {
        background: #f2ece8;
        color: #9a6b55;
    }

.admin-table-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}

.admin-table-icon {
    width: 1.9rem;
    height: 1.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 1.05rem;
    text-decoration: none;
}

    .admin-table-icon.is-view,
    .admin-table-icon.is-edit {
        color: #5878d8;
    }

    .admin-table-icon.is-visible {
        color: #2f8a60;
    }

    .admin-table-icon.is-qr {
        color: #b3832f;
    }

    .admin-table-icon.is-disabled {
        color: #98a4b3;
        cursor: default;
        opacity: 0.75;
    }

    .admin-table-icon.is-hidden {
        color: #a06a48;
    }

    .admin-table-icon.is-delete {
        color: #b14d3e;
    }

    .admin-table-icon:hover,
    .admin-table-icon:focus {
        opacity: 0.78;
    }

.admin-toast-host {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    display: grid;
    gap: 0.75rem;
}

.admin-toast {
    min-width: 280px;
    max-width: 360px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(47, 94, 75, 0.12);
    background: rgba(255, 253, 249, 0.98);
    box-shadow: 0 18px 36px rgba(31, 45, 64, 0.16);
    color: #274236;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

    .admin-toast.show {
        opacity: 1;
        transform: translateY(0);
    }

.admin-toast-icon {
    color: #2f8a60;
    font-size: 1.05rem;
}

.admin-toast-text {
    line-height: 1.4;
    font-weight: 600;
}

.company-logo-preview {
    min-height: 152px;
    border: 1px dashed #d7c9b6;
    border-radius: 16px;
    background: #fffaf3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.75rem;
}

    .company-logo-preview img {
        width: 100%;
        max-height: 132px;
        object-fit: contain;
    }

.company-logo-preview-placeholder {
    display: grid;
    place-items: center;
    gap: 0.45rem;
    color: #8f866f;
    text-align: center;
    font-weight: 600;
}

    .company-logo-preview-placeholder i {
        font-size: 1.5rem;
        color: #b7905d;
    }

.admin-company-logo-cell {
    display: flex;
    justify-content: center;
}

.admin-company-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #eadfce;
    padding: 0.2rem;
}

.admin-company-logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #b7905d;
    background: #fffaf3;
}

.admin-form-tabs {
    gap: 0.65rem;
    border-bottom: 1px solid #e6dccf;
}

    .admin-form-tabs .nav-item {
        margin-bottom: -1px;
    }

    .admin-form-tabs .nav-link {
        border: 1px solid transparent;
        border-radius: 14px 14px 0 0;
        padding: 0.85rem 1rem;
        color: #5c685f;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        gap: 0.55rem;
        background: transparent;
    }

        .admin-form-tabs .nav-link i {
            color: #b88d56;
        }

        .admin-form-tabs .nav-link:hover {
            border-color: transparent;
            color: #2e5041;
            background: rgba(232, 224, 208, 0.45);
        }

        .admin-form-tabs .nav-link.active {
            color: #23493b;
            background: linear-gradient(180deg, #fffdfa 0%, #f4ecdf 100%);
            border-color: #e6dccf #e6dccf #fffdfa;
        }

.admin-form-tab-content {
    padding: 1.25rem 0 0;
}

.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--multiple,
.select2-container--default .select2-selection--single {
    min-height: 2.85rem;
    border-radius: 8px;
    border: 1px solid #dddfe7;
    background: #fff;
}

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 2.85rem;
        padding-left: 0.9rem;
        color: var(--hxg-ink);
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 2.85rem;
        right: 0.45rem;
    }

.select2-container--default .select2-selection--multiple {
    padding: 0.35rem 0.45rem;
}

    .select2-container--default .select2-selection--multiple .select2-selection__choice {
        margin-top: 0.2rem;
        border: 1px solid #d8c6ad;
        background: #f7efe2;
        color: #315344;
        border-radius: 999px;
        padding: 0.18rem 0.55rem 0.18rem 1.4rem;
        font-weight: 600;
    }

    .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
        left: 0.45rem;
        right: auto;
        border-right: 0;
        color: #9a6b55;
    }

.select2-dropdown {
    border: 1px solid #dddfe7;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(31, 45, 64, 0.14);
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #dddfe7;
    border-radius: 8px;
    padding: 0.45rem 0.7rem;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: linear-gradient(90deg, #2f5e4b 0%, #4f866d 100%);
}

.select2-container--default .select2-results__option--selected {
    background: #eef5f1;
    color: #274236;
}

.employee-detail-label {
    display: block;
    margin-bottom: 0.35rem;
    color: #8a7a66;
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.employee-detail-value {
    min-height: 2.85rem;
    display: flex;
    align-items: center;
    padding: 0.8rem 0.95rem;
    border: 1px solid #e1e4eb;
    border-radius: 10px;
    background: #fffefc;
    color: var(--hxg-ink);
    font-weight: 500;
}

    .employee-detail-value.is-multiline {
        align-items: flex-start;
        min-height: 4rem;
        white-space: pre-wrap;
    }

.employee-detail-empty {
    color: #9aa2ad;
    font-style: italic;
}

.employee-detail-list {
    display: grid;
    gap: 0.85rem;
}

.employee-detail-item {
    padding: 0.9rem 1rem;
    border: 1px solid #ebe3d7;
    border-radius: 12px;
    background: #fffefb;
}

.employee-detail-item-title {
    font-weight: 700;
    color: #294737;
}

.employee-detail-item-subtitle {
    margin-top: 0.25rem;
    color: #6c7380;
}

.hxg-vcard-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.25rem;
    /* background: #f6f2eb; */
}

.hxg-vcard-toolbar {
    position: static;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.5rem 0 0;
    z-index: 30;
}

.hxg-vcard-frame {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
}

.hxg-export-staging {
    position: fixed;
    left: -100000px;
    top: 0;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.hxg-vcard-export-frame {
    display: grid;
    gap: 3rem;
    padding: 48px;
    background: #f6f2eb;
    box-sizing: border-box;
}

.hxg-vcard-export-horizontal {
    width: 1360px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hxg-vcard-export-vertical {
    width: 600px;
    grid-template-columns: 1fr;
    gap: 32px;
}

    .hxg-vcard-export-vertical .hxg-vcard-panel {
        min-height: auto;
    }

    .hxg-vcard-export-vertical .hxg-vcard-panel-back {
        min-height: 560px;
    }

    .hxg-vcard-export-vertical .hxg-vcard-brand-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

.hxg-vcard-panel {
    min-height: 1000px;
    background: #fff;
    border: 2px solid var(--hx-gold-1);
    position: relative;
    padding: 2.6rem 3rem;
}

.hxg-vcard-panel-back {
    display: grid;
    place-items: center;
    text-align: center;
}

.hxg-vcard-back-logo img {
    width: min(378px, 50%);
    object-fit: contain;
    text-align: center;
}

.hxg-vcard-panel-front {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.hxg-vcard-front-top,
.hxg-vcard-front-bottom {
    display: flex;
    flex-direction: column;
}

.hxg-vcard-heading {
    margin-top: 0.8rem;
}

.hxg-vcard-wordmark-light,
.hxg-vcard-wordmark-bold {
    color: #090909;
    line-height: 0.9;
    letter-spacing: -0.055em;
    text-transform: uppercase;
}

.hxg-vcard-wordmark-light {
    font-size: clamp(4.6rem, 8vw, 7rem);
    font-weight: 300;
    background: linear-gradient(135deg, var(--hx-gold-1), var(--hx-gold-3) 55%, var(--hx-gold-4));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hxg-vcard-wordmark-bold {
    margin-top: 0.35rem;
    font-size: clamp(4.7rem, 8.1vw, 7rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--hx-gold-1), var(--hx-gold-3) 55%, var(--hx-gold-4));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hxg-vcard-export-mode .hxg-vcard-wordmark-light,
.hxg-vcard-export-mode .hxg-vcard-wordmark-bold {
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #c79b54 !important;
    color: #c79b54 !important;
}

.hxg-vcard-export-mode .hxg-vcard-panel-front {
    justify-content: space-between !important;
}

.hxg-vcard-brand-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.95rem 1.1rem;
    align-items: center;
}

.hxg-vcard-brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
}

    .hxg-vcard-brand-item img {
        max-width: 100%;
        max-height: 36px;
        object-fit: contain;
        filter: saturate(1.02);
    }

.hxg-vcard-person {
    margin-top: 0;
    padding-top: 0;
}

    .hxg-vcard-person h1 {
        margin: 0;
        font-size: clamp(2.3rem, 3.2vw, 3.3rem);
        font-weight: 800;
        letter-spacing: -0.04em;
        text-transform: uppercase;
        white-space: nowrap;
    }

.hxg-vcard-person-title {
    margin-top: 0.7rem;
    font-size: clamp(1.15rem, 1.45vw, 1.55rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8f7447;
    white-space: nowrap;
}

.hxg-vcard-contact-list {
    margin-top: 1.75rem;
    display: grid;
    gap: 0.75rem;
}

.hxg-vcard-front-bottom {
    padding-top: 3rem;
}

.hxg-vcard-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.95rem 1.4rem;
    border: 1px solid var(--hx-gold-1);
    border-radius: 999px;
    background: #fff8ef;
    color: #8f7447;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .hxg-vcard-action-btn:hover {
        background: var(--hx-gold-1);
        color: #fff;
    }

    .hxg-vcard-action-btn:disabled {
        opacity: 0.7;
        cursor: wait;
    }

.hxg-vcard-action-btn-dark {
    background: #2b344d;
    border-color: #2b344d;
    color: #fff;
}

    .hxg-vcard-action-btn-dark:hover {
        background: #1f2740;
        border-color: #1f2740;
        color: #fff;
    }

.hxg-vcard-contact-row {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    font-size: clamp(1.3rem, 1.85vw, 2.05rem);
    line-height: 1.5;
    color: #111;
    width: 100%;
}

.hxg-vcard-contact-label {
    font-weight: 400;
}

.hxg-vcard-contact-row a,
.hxg-vcard-contact-row span:last-child {
    color: #111;
    text-decoration: none;
    /* white-space: nowrap; */
}

.hxg-vcard-contact-row-address {
    align-items: start;
}

    .hxg-vcard-contact-row-address span:last-child {
        max-width: 88%;
    }

@media (max-width: 991.98px) {
    .hxg-vcard-page {
        align-items: stretch;
    }

    .hxg-vcard-toolbar {
        padding: 1rem 0 0;
        flex-wrap: wrap;
    }

    .hxg-vcard-frame {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hxg-vcard-panel {
        min-height: auto;
        padding: 2rem 1.6rem;
    }

    .hxg-vcard-panel-back {
        min-height: 420px;
    }

    .hxg-vcard-brand-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hxg-vcard-contact-row {
        font-size: 1.12rem;
    }
}

.hxg-qr-page {
    /* min-height: 100vh; */
    display: grid;
    place-items: center;
    /* padding: 2rem 1.25rem; */
    /* background: #f6f2eb; */
}

.hxg-qr-card {
    width: min(900px, 100%);
    background: #fff;
    border: 1px solid #e6dece;
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 0 24px 48px rgba(34, 51, 44, 0.12);
}

.hxg-qr-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.hxg-qr-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.hxg-qr-card-header h1 {
    margin: 0.2rem 0 0.35rem;
    font-size: 2rem;
    color: #21324d;
}

.hxg-qr-card-header p {
    margin: 0;
    color: #667085;
}

.hxg-qr-eyebrow {
    color: #b8955a;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
}

.hxg-qr-layout {
    display: grid;
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.hxg-qr-box {
    background: #fffefc;
    border: 1px solid #eadfcf;
    border-radius: 24px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hxg-qr-image {
    width: 100%;
    height: auto;
    max-width: 280px;
    display: block;
}

.hxg-qr-info {
    display: grid;
    gap: 1rem;
}

.hxg-qr-meta {
    padding: 1rem 1.1rem;
    border: 1px solid #ece5da;
    border-radius: 16px;
    background: #fffefb;
}

.hxg-qr-label {
    display: block;
    margin-bottom: 0.35rem;
    color: #8a7a66;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hxg-qr-meta strong,
.hxg-qr-meta a {
    color: #21324d;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
}

@media (max-width: 991.98px) {
    .hxg-qr-card {
        padding: 1.5rem;
    }

    .hxg-qr-card-header {
        flex-direction: column;
    }

    .hxg-qr-header-actions {
        justify-content: flex-start;
    }

    .hxg-qr-layout {
        grid-template-columns: 1fr;
    }
}

.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate,
.dataTables_wrapper .dataTables_length {
    padding: 0.9rem 1rem 1rem;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info {
    display: none;
}

.admin-table-footer {
    display: flex;
    justify-content: flex-end;
    padding: 0.75rem 1rem 1rem;
}

.dataTables_wrapper .dataTables_paginate {
    float: none;
    margin: 0;
    padding: 0;
}

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        min-width: 2.35rem;
        height: 2.35rem;
        margin-left: 0.2rem !important;
        border-radius: 8px !important;
        border: 1px solid rgba(47, 94, 75, 0.18) !important;
        background: #f8fbf9 !important;
        color: #2f5e4b !important;
        box-shadow: none !important;
    }

        .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
            border-color: #4f866d !important;
            background: #e8f2ee !important;
            color: #214535 !important;
        }

        .dataTables_wrapper .dataTables_paginate .paginate_button.current,
        .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
            border-color: #2f5e4b !important;
            background: linear-gradient(90deg, #2f5e4b 0%, #4f866d 100%) !important;
            color: #fff !important;
        }

        .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
        .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
            opacity: 0.55;
            color: #8b93a1 !important;
            background: #f5f7fa !important;
        }

.dataTables_wrapper .dataTables_filter input {
    margin-left: 0.5rem;
    border: 1px solid #d9cebe;
    border-radius: 10px;
    padding: 0.35rem 0.65rem;
}

.dashboard-module-list {
    margin: 0;
    padding-left: 1.1rem;
    color: #5e6470;
}

    .dashboard-module-list li + li {
        margin-top: 0.7rem;
    }

.login-shell,
.vcard-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    /* background:
    radial-gradient(circle at 15% 20%, rgba(228, 196, 143, 0.28), transparent 22%),
    radial-gradient(circle at 85% 14%, rgba(39, 73, 61, 0.12), transparent 20%),
    radial-gradient(circle at 80% 85%, rgba(200, 161, 106, 0.16), transparent 18%),
    linear-gradient(180deg, #f7f1e8 0%, #f3ede3 100%); */
    /* padding: 1.5rem; */
}

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

    .detail-grid div {
        padding: 1rem;
        background: var(--hxg-sand);
        border-radius: 16px;
    }

    .detail-grid strong,
    .detail-grid span {
        display: block;
    }

    .detail-grid strong {
        margin-bottom: 0.4rem;
    }

.vcard-page {
    width: min(960px, 100%);
}

.vcard-card {
    overflow: hidden;
}

.vcard-banner {
    height: 140px;
    background: linear-gradient(120deg, #b68a30 0%, #14213d 100%);
}

.vcard-body {
    padding: 0 2rem 2rem;
    margin-top: -3rem;
}

.avatar-lg {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    background: #fff;
}

.company-logo {
    width: 74px;
    height: 74px;
    object-fit: contain;
    background: #fff;
    border-radius: 18px;
    padding: 0.5rem;
}

.contact-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.info-card {
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: #fcfaf6;
}

.chip-link {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    text-decoration: none;
    color: var(--hxg-ink);
    background: #f0eadf;
}

.qr-box {
    width: 180px;
    height: 180px;
    object-fit: contain;
    background: #fff;
    border-radius: 16px;
    padding: 0.5rem;
}

.login-showcase {
    width: min(1120px, 100%);
    min-height: 690px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    border-radius: 30px;
    overflow: hidden;
    background: rgba(255, 253, 248, 0.84);
    box-shadow: 0 36px 90px rgba(72, 56, 32, 0.18);
    backdrop-filter: blur(10px);
}

.login-story-panel {
    background: radial-gradient(circle at 72% 18%, rgba(152, 194, 175, 0.28), transparent 22%), linear-gradient(180deg, var(--hxg-forest-deep) 0%, #2f7557 100%);
    color: #fffdf9;
    padding: 3.5rem 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-story-top {
    max-width: 480px;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: rgba(255, 251, 245, 0.78);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.login-badge-dot {
    width: 0.78rem;
    height: 0.78rem;
    border-radius: 50%;
    background: var(--hxg-gold-soft);
    box-shadow: 0 0 0 0.3rem rgba(228, 196, 143, 0.14);
}

.login-story-title {
    margin: 3.6rem 0 3.1rem;
    font-size: 30px;
    line-height: 40px;
    font-weight: 600;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.login-feature-card {
    width: min(100%, 470px);
    padding: 1.55rem 1.6rem 1.75rem;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.login-feature-icon {
    width: 3.2rem;
    height: 3.2rem;
    display: inline-grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    color: #f5d395;
    font-size: 1.2rem;
}

.login-feature-card h2 {
    font-size: 1.55rem;
    margin: 1.2rem 0 0.7rem;
    font-weight: 800;
    line-height: 1.2;
}

.login-feature-card p {
    margin: 0;
    color: rgba(255, 250, 245, 0.78);
    line-height: 1.68;
    font-size: 0.96rem;
    max-width: 34ch;
}

.login-pager-dots {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

    .login-pager-dots span {
        width: 0.78rem;
        height: 0.78rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.32);
    }

        .login-pager-dots span.active {
            width: 2.2rem;
            background: #ffcf86;
        }

.login-form-panel {
    background: linear-gradient(180deg, rgba(255, 254, 251, 0.96) 0%, rgba(255, 251, 245, 0.98) 100%);
    padding: 2.4rem 2.8rem 2.25rem;
    display: flex;
    flex-direction: column;
}

.login-brand-lockup {
    display: flex;
    justify-content: center;
    margin-bottom: 0.15rem;
}

.login-brand-logo {
    width: 126px;
    max-width: 42%;
    object-fit: contain;
}

.login-form-wrap {
    width: min(460px, 100%);
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.login-form-title {
    text-align: center;
    font-size: clamp(1.8rem, 2.05vw, 2.5rem);
    margin: 0.25rem 0 2.2rem;
    color: #2d3342;
    font-weight: 780;
    letter-spacing: -0.05em;
    line-height: 1.12;
    text-wrap: balance;
}

.login-form {
    flex: 1;
}

.login-label {
    color: #46392f;
    font-weight: 700;
    margin-bottom: 0.65rem;
    font-size: 0.98rem;
}

.login-validation {
    margin-bottom: 1rem;
    border-radius: 16px;
    background: rgba(143, 33, 33, 0.08);
    color: #9a2a2a;
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
}

    .login-validation:empty {
        display: none;
    }

.login-input-wrap {
    position: relative;
}

.login-input {
    min-height: 3.8rem;
    border-radius: 20px;
    border: 1px solid #e7d5c0;
    background: rgba(255, 255, 255, 0.72);
    padding-left: 3.1rem;
    padding-right: 3.4rem;
    font-size: 1rem;
    box-shadow: none;
}

    .login-input:focus {
        border-color: #c7a26b;
        box-shadow: 0 0 0 0.2rem rgba(200, 161, 106, 0.15);
    }

    .login-input::placeholder {
        color: #8d8378;
    }

.login-input-icon {
    position: absolute;
    top: 50%;
    left: 1.15rem;
    transform: translateY(-50%);
    color: #a48054;
    font-size: 1rem;
    pointer-events: none;
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #a48054;
    padding: 0.3rem;
}

.login-row {
    margin: 0.95rem 0 1.45rem;
}

.login-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #6f6559;
    font-size: 0.98rem;
}

    .login-checkbox input {
        width: 1rem;
        height: 1rem;
        accent-color: #3f8a67;
    }

.login-submit-btn {
    min-height: 3.95rem;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(90deg, #367f5e 0%, #45976e 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1.08rem;
    box-shadow: 0 18px 36px rgba(57, 121, 91, 0.24);
}

    .login-submit-btn:hover,
    .login-submit-btn:focus {
        color: #fff;
        background: linear-gradient(90deg, #2d7052 0%, #3d8f67 100%);
    }

    .login-submit-btn:active {
        transform: translateY(1px);
    }

.login-footer-note {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid #e7dccf;
    color: #887a6d;
    font-size: 0.92rem;
}

@media (max-width: 991px) {
    .portal-header {
        grid-template-columns: 1fr;
    }

    .portal-brand,
    .portal-account {
        justify-content: space-between;
    }

    .portal-nav {
        padding: 0 0.5rem;
    }

    .portal-nav-item > a,
    .portal-nav-trigger {
        padding: 1rem 0.9rem;
    }

    .portal-dropdown,
    .portal-dropdown-right {
        position: fixed;
        left: 0.8rem;
        right: 0.8rem;
        top: auto;
        min-width: auto;
    }

    .content-wrap {
        padding: 1.25rem;
    }

    .admin-list-header {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-toolbar {
        grid-template-columns: 1fr;
    }

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

    .login-showcase {
        grid-template-columns: 1fr;
    }

    .login-story-panel {
        min-height: 420px;
        padding: 2.25rem 1.5rem;
    }

    .login-story-title {
        margin: 2.25rem 0 2rem;
        font-size: 1.9rem;
        line-height: 1.32;
    }

    .login-form-panel {
        padding: 2rem 1.35rem 1.5rem;
    }

    .login-form-title {
        margin-bottom: 1.7rem;
    }

    .login-footer-note {
        flex-direction: column;
    }
}

@media (min-width: 992px) {
    .portal-nav {
        overflow: visible;
    }

    .portal-nav-item,
    .portal-account {
        overflow: visible;
    }

        .has-menu:hover .portal-dropdown,
        .portal-account:hover .portal-dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
}

@media (max-width: 575px) {
    .login-shell,
    .vcard-shell {
        padding: 0.8rem;
    }

    .login-showcase {
        border-radius: 22px;
    }

    .login-feature-card {
        padding: 1.35rem;
    }

        .login-feature-card h2 {
            font-size: 1.35rem;
        }
}

.login-directory-link {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 3rem;
    border: 1px solid rgba(160, 120, 71, 0.28);
    border-radius: 16px;
    background: #fffaf3;
    color: var(--hxg-forest);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.18s ease;
}

    .login-directory-link:hover {
        background: #f6efe4;
        color: var(--hxg-forest-deep);
    }

.public-directory-shell {
    min-height: 100vh;
    padding: 30px 0 0 0;
    /* background:
        radial-gradient(circle at top left, rgba(29, 67, 56, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(200, 161, 106, 0.18), transparent 24%),
        linear-gradient(180deg, #f8f3ea 0%, #fdfbf7 100%); */
}

.public-directory-page {
    max-width: 1180px;
    margin: 0 auto;
}

.public-directory-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.public-directory-eyebrow {
    display: inline-block;
    margin-bottom: 0.6rem;
    color: #8d6b3c;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.public-directory-hero h1 {
    margin: 0;
    color: var(--hxg-forest-deep);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

.public-directory-hero p {
    margin: 0.65rem 0 0;
    max-width: 720px;
    color: #5d665f;
    font-size: 1rem;
}

.public-directory-login-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1.15rem;
    border-radius: 16px;
    background: var(--hxg-forest);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(29, 67, 56, 0.18);
}

    .public-directory-login-link:hover {
        background: var(--hxg-forest-deep);
        color: #fff;
    }

.public-directory-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.public-directory-search {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.5rem;
    padding: 0 1rem;
    border: 1px solid #eadfce;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 40px rgba(53, 53, 53, 0.06);
}

    .public-directory-search i {
        color: #8f744b;
    }

    .public-directory-search input {
        width: 100%;
        border: 0;
        outline: 0;
        background: transparent;
        color: #243144;
    }

.public-directory-count {
    flex: 0 0 auto;
    min-width: 180px;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    background: rgba(255, 253, 250, 0.9);
    border: 1px solid #eadfce;
    text-align: center;
}

    .public-directory-count strong {
        display: block;
        color: var(--hxg-forest-deep);
        font-size: 1.2rem;
    }

    .public-directory-count span {
        color: #6e7069;
    }

.public-directory-card {
    overflow: hidden;
    border: 1px solid rgba(234, 223, 206, 0.9);
    border-radius: 10px;
    background: rgba(255, 253, 250, 0.94);
    box-shadow: 0 24px 50px rgba(34, 42, 49, 0.08);
}

.public-directory-table thead th {
    padding: 1rem;
    border-bottom: 1px solid #ece1d2;
    background: #f8f1e7;
    color: #6b5535;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.public-directory-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-color: #f1e7d9;
}

.public-directory-name {
    font-weight: 700;
    color: var(--hxg-forest-deep);
    white-space: nowrap;
}

.public-directory-company,
.public-directory-role,
.public-directory-contact-line {
    font-weight: 700;
    color: var(--hxg-forest-deep);
}

.public-directory-subtext {
    margin-top: 0.3rem;
    color: #6f736b;
    font-size: 0.93rem;
    line-height: 1.45;
}

.public-directory-vcard {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: rgba(29, 67, 56, 0.1);
    color: var(--hxg-forest);
    text-decoration: none;
}

    .public-directory-vcard:hover {
        background: rgba(29, 67, 56, 0.16);
        color: var(--hxg-forest-deep);
    }

    .public-directory-vcard.disabled {
        background: #f1ede6;
        color: #a5a093;
        cursor: default;
    }

.public-directory-empty {
    padding: 1.25rem;
    color: #7a756b;
    text-align: center;
}

.public-directory-card .dataTables_wrapper .row {
    margin: 0;
}

.public-directory-card .dataTables_filter,
.public-directory-card .dataTables_length {
    display: none;
}

.public-directory-datatable-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem 1.2rem;
    border-top: 1px solid #f1e7d9;
}

.public-directory-card .dataTables_info {
    margin: 0;
    padding: 0;
    color: #6f736b;
}

.public-directory-card .dataTables_paginate {
    margin: 0;
    padding: 0;
}

.public-directory-card .pagination {
    margin: 0;
    gap: 0.35rem;
}

.public-directory-card .page-link {
    border: 1px solid #eadfce;
    color: var(--hxg-forest);
    border-radius: 10px;
    min-width: 2.4rem;
    text-align: center;
    box-shadow: none;
}

.public-directory-card .page-item.active .page-link {
    background: var(--hxg-forest);
    border-color: var(--hxg-forest);
    color: #fff;
}

.public-directory-card .page-item.disabled .page-link {
    color: #a5a093;
    background: #f7f2ea;
    border-color: #eee3d3;
}

@media (max-width: 991.98px) {
    .public-directory-hero,
    .public-directory-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .public-directory-login-link {
        justify-content: center;
    }

    .public-directory-count {
        min-width: 0;
    }

    .public-directory-datatable-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .public-directory-card .dataTables_paginate {
        overflow-x: auto;
    }
}

@media (max-width: 767.98px) {
    .public-directory-shell {
        padding: 1rem 0.75rem 1.5rem;
    }

    .public-directory-hero {
        margin-bottom: 1rem;
    }

        .public-directory-hero h1 {
            font-size: 2.1rem;
        }

        .public-directory-hero p {
            font-size: 0.92rem;
        }

    .public-directory-login-link {
        min-height: 3rem;
        border-radius: 14px;
    }

    .public-directory-search {
        min-height: 3.25rem;
        border-radius: 16px;
        padding: 0 0.9rem;
    }

    .public-directory-count {
        padding: 0.8rem 0.9rem;
        border-radius: 16px;
    }

    .public-directory-card {
        border-radius: 18px;
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

        .public-directory-card .table-responsive {
            overflow: visible;
        }

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

        .public-directory-table thead,
        .public-directory-table colgroup {
            display: none;
        }

        .public-directory-table tbody tr {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            margin-bottom: 0.9rem;
            padding: 0.95rem 1rem;
            border: 1px solid rgba(234, 223, 206, 0.9);
            border-radius: 18px;
            background: rgba(255, 253, 250, 0.97);
            box-shadow: 0 14px 32px rgba(34, 42, 49, 0.08);
            font-size: 19px;
        }

        .public-directory-table tbody td {
            grid-column: 1 / -1;
            padding: 0;
            border: 0;
            font-size: 20px;
        }

            .public-directory-table tbody td + td {
                margin-top: 0.85rem;
                padding-top: 0.85rem;
                border-top: 1px solid #f1e7d9;
            }

            .public-directory-table tbody td::before {
                content: attr(data-label);
                display: block;
                margin-bottom: 0.4rem;
                color: #8d6b3c;
                font-size: 1.1rem;
                font-weight: 800;
                letter-spacing: 0.08em;
                text-transform: uppercase;
            }

            .public-directory-table tbody td[data-label="QR"],
            .public-directory-table tbody td[data-label="vCard"] {
                grid-column: auto;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                margin-top: 0.95rem;
                padding-top: 0.95rem;
                border-top: 1px solid #f1e7d9;
            }

            .public-directory-table tbody td[data-label="vCard"] {
                margin-left: 0;
            }

            .public-directory-table tbody td[data-label="QR"] + td[data-label="vCard"] {
                margin-top: 0.95rem;
                padding-top: 0.95rem;
                border-top: 1px solid #f1e7d9;
            }

            .public-directory-table tbody td[data-label="QR"]::before,
            .public-directory-table tbody td[data-label="vCard"]::before {
                margin-bottom: 0.55rem;
                text-align: center;
            }

    .public-directory-name,
    .public-directory-company,
    .public-directory-role,
    .public-directory-contact-line {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .public-directory-name {
        white-space: normal;
    }

    .public-directory-subtext {
        font-size: 1.1rem;
        line-height: 1.5;
        word-break: break-word;
    }

    .public-directory-vcard {
        width: 2.75rem;
        height: 2.75rem;
    }

    .public-directory-datatable-footer {
        margin-top: 0.2rem;
        padding: 0.85rem 0.15rem 0;
        border-top: 0;
    }

    .public-directory-card .dataTables_info {
        font-size: 0.9rem;
    }

    .public-directory-card .pagination {
        justify-content: flex-start;
    }
}
