* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #172554;
    --ink: #0f172a;
    --blue: #2563eb;
    --gold: #f59e0b;
    --green: #059669;
    --red: #dc2626;
    --muted: #64748b;
    --bg: #f7f9fc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 18px 44px rgba(15, 23, 42, .08);
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--ink);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
}

.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px;
    background: linear-gradient(180deg, #07111f, var(--navy));
    color: #fff;
}

.panel-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    font-weight: 800;
    line-height: 1.15;
}

.panel-brand img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
}

.panel-brand strong {
    color: var(--gold);
}

.panel-nav {
    display: grid;
    gap: 8px;
}

.panel-nav a,
.nav-group span {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    color: #dbeafe;
    font-weight: 700;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

.nav-group {
    display: grid;
    gap: 6px;
}

.nav-group span {
    color: #ffffff;
    background: rgba(255,255,255,.08);
}

.nav-group a {
    min-height: 36px;
    margin-left: 20px;
    padding-left: 14px;
    color: #bfdbfe;
    font-size: 13px;
}

.panel-nav a:hover,
.panel-nav a.active {
    background: rgba(255,255,255,.12);
    color: #fff;
    transform: translateX(3px);
}

.app-main {
    padding: 28px;
    min-width: 0;
}

.panel-topbar,
.section-bar,
.topbar-actions,
.filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.panel-topbar {
    margin-bottom: 22px;
}

.admin-page[hidden] {
    display: none !important;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
}

h1,
h2,
h3 {
    color: var(--navy);
    letter-spacing: 0;
}

.primary-btn,
.ghost-btn,
.danger-btn,
.success-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.primary-btn {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 12px 24px rgba(23,37,84,.18);
}

.primary-btn:hover,
.ghost-btn:hover,
.danger-btn:hover,
.success-btn:hover {
    transform: translateY(-2px);
}

.ghost-btn {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--navy);
}

.danger-btn {
    background: #fee2e2;
    color: var(--red);
}

.success-btn {
    background: #dcfce7;
    color: var(--green);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.metric-card,
.panel-section,
.vendor-preview-card,
.modal-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.metric-card {
    padding: 18px;
}

.metric-card span,
.metric-card small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.metric-card strong {
    display: block;
    margin: 8px 0 4px;
    color: var(--navy);
    font-size: 28px;
}

.panel-section {
    margin-bottom: 22px;
    padding: 20px;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    gap: 20px;
}

.filter-row {
    margin: 16px 0;
}

.filter-row input,
.filter-row select,
.report-filter-grid input,
.report-filter-grid select,
.panel-form input,
.panel-form select,
.panel-form textarea {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    outline: none;
}

.report-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.report-filter-grid label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.compact-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page-form {
    max-width: 780px;
}

.panel-form textarea {
    min-height: 84px;
    padding-top: 10px;
    resize: vertical;
}

.panel-form {
    display: grid;
    gap: 12px;
}

.panel-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.checkbox-field,
.front-ad-checkbox {
    display: flex !important;
    align-items: center;
    gap: 9px;
    width: max-content;
    color: var(--navy) !important;
    cursor: pointer;
}

.checkbox-field input,
.front-ad-checkbox input {
    width: 18px;
    min-height: 18px;
    accent-color: var(--gold);
}

.front-ad-checkbox {
    margin: 2px 0 14px;
    padding: 11px 13px;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    background: #fff7ed;
    font-size: 14px;
    font-weight: 800;
}

.add-on-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.add-on-card {
    border-color: #fed7aa;
    background: #fff7ed;
}

.copy-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.copy-input-row .ghost-btn {
    min-height: 42px;
    white-space: nowrap;
}

.tiny-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    margin-left: 7px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--navy);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.copy-line {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.status-badge {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: var(--green);
    font-size: 11px;
    font-weight: 900;
}

.status-badge.pending {
    background: #fff7ed;
    color: #d97706;
}

.status-badge.suspended {
    background: #fee2e2;
    color: var(--red);
}

.card-actions,
.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.row-actions {
    margin-top: 0;
    min-width: 0;
    flex-wrap: nowrap;
}

.card-actions button,
.card-actions a,
.row-actions button,
.row-actions a {
    min-height: 30px;
    padding: 0 8px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

.admin-vendor-table tbody tr {
    transition: background .2s ease;
}

.admin-vendor-table tbody tr:hover {
    background: #f8fafc;
}

.vendor-row-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.vendor-row-title img {
    width: 36px;
    height: 36px;
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
}

.vendor-row-title strong {
    display: block;
    color: var(--navy);
    font-size: 13px;
}

.vendor-row-title span,
.block-reason {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.admin-vendor-table code {
    padding: 5px 7px;
    border-radius: 6px;
    background: #f1f5f9;
    color: var(--navy);
    font-size: 11px;
    white-space: nowrap;
}

.admin-vendor-table th:nth-child(2),
.admin-vendor-table td:nth-child(2),
.admin-vendor-table th:nth-child(3),
.admin-vendor-table td:nth-child(3) {
    max-width: 150px;
}

.admin-vendor-table td:nth-child(2),
.admin-vendor-table td:nth-child(3) {
    color: var(--muted);
    font-size: 12px;
}

.admin-vendor-table th:nth-child(7),
.admin-vendor-table td:nth-child(7) {
    width: 1%;
    white-space: nowrap;
}

.plan-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.plan-card {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.plan-card strong {
    color: var(--navy);
}

.plan-card p {
    margin: 6px 0;
    color: var(--muted);
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}

td {
    font-size: 13px;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15,23,42,.55);
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-card {
    width: min(720px, 100%);
    max-height: 92vh;
    overflow: auto;
    padding: 20px;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: #f1f5f9;
    cursor: pointer;
}

.impersonation-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff7ed;
    color: #92400e;
    font-weight: 800;
}

.impersonation-banner button {
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: var(--gold);
    color: #111827;
    cursor: pointer;
    font-weight: 900;
}

.vendor-preview-card {
    align-self: start;
    overflow: hidden;
    padding-bottom: 18px;
}

.vendor-preview-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.vendor-preview-card h3,
.vendor-preview-card p,
.vendor-preview-actions {
    margin: 14px 16px 0;
}

.vendor-preview-card p {
    color: var(--muted);
}

.vendor-preview-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.vendor-preview-actions span {
    padding: 7px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--navy);
    font-size: 12px;
    font-weight: 900;
}

.mini-card-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.mini-card {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.mini-card strong {
    display: block;
    color: var(--navy);
    font-size: 16px;
}

.mini-card span {
    display: inline-block;
    margin: 7px 0;
    color: var(--gold);
    font-weight: 900;
}

.mini-card p,
.empty-note {
    color: var(--muted);
    line-height: 1.6;
}

.admin-detail-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 18px;
    margin-top: 16px;
}

.detail-profile-card {
    align-self: start;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.detail-profile-card img {
    width: 110px;
    height: 110px;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    object-fit: contain;
}

.detail-profile-card p {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.6;
}

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

.detail-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.media-manager-grid,
.public-gallery,
.public-video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.media-tile {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.media-tile img,
.public-gallery img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.media-tile iframe,
.public-video-grid iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 8px;
}

.media-tile button {
    width: calc(100% - 16px);
    margin: 8px;
}

.public-profile-page {
    min-height: 100vh;
    background: var(--bg);
}

.public-profile-hero {
    padding: 24px clamp(18px, 5vw, 70px) 44px;
    background:
        linear-gradient(135deg, rgba(7,17,31,.98), rgba(23,37,84,.96)),
        radial-gradient(circle at right top, rgba(245,158,11,.2), transparent 35%);
    color: #fff;
}

.public-profile-hero .panel-brand {
    width: max-content;
    margin-bottom: 34px;
}

.public-hero-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.public-hero-content img {
    width: 128px;
    height: 128px;
    padding: 14px;
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
}

.public-hero-content h1 {
    color: #fff;
    font-size: clamp(32px, 5vw, 56px);
}

.public-hero-content p {
    margin-top: 9px;
    color: #dbeafe;
    font-weight: 700;
}

.public-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    width: min(1180px, calc(100% - 36px));
    margin: -28px auto 40px;
}

.public-profile-side {
    position: sticky;
    top: 18px;
    align-self: start;
}

.public-profile-side .panel-section {
    display: grid;
    gap: 12px;
}

@media (max-width: 1100px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: static;
        height: auto;
    }

    .panel-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-group a {
        margin-left: 0;
    }

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

    .report-filter-grid,
    .compact-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .admin-detail-layout,
    .detail-info-grid {
        grid-template-columns: 1fr;
    }

    .public-profile-layout {
        grid-template-columns: 1fr;
    }

    .public-profile-side {
        position: static;
    }
}

@media (max-width: 700px) {
    .app-main {
        padding: 18px;
    }

    .panel-topbar,
    .section-bar,
    .topbar-actions,
    .filter-row {
        align-items: stretch;
        flex-direction: column;
    }

    .metric-grid,
    .report-filter-grid,
    .compact-metrics,
    .media-manager-grid,
    .public-gallery,
    .public-video-grid {
        grid-template-columns: 1fr;
    }

    .panel-nav {
        grid-template-columns: 1fr;
    }

    .table-wrap {
        overflow-x: visible;
    }

    .admin-vendor-table,
    .admin-vendor-table thead,
    .admin-vendor-table tbody,
    .admin-vendor-table th,
    .admin-vendor-table td,
    .admin-vendor-table tr {
        display: block;
        width: 100%;
    }

    .admin-vendor-table thead {
        display: none;
    }

    .admin-vendor-table tr {
        margin-bottom: 12px;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: #fff;
    }

    .admin-vendor-table td {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        padding: 8px 0;
        border-bottom: 1px solid #edf2f7;
    }

    .admin-vendor-table td::before {
        content: attr(data-label);
        flex: 0 0 90px;
        color: var(--muted);
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .admin-vendor-table td:last-child {
        border-bottom: 0;
    }

    .admin-vendor-table td:last-child::before {
        display: none;
    }

    .vendor-row-title {
        min-width: 0;
    }

    .row-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .row-actions button,
    .row-actions a {
        flex: 1 1 112px;
    }

    .public-hero-content {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* CodeIgniter 4 backend screens */
.panel-body {
    margin: 0;
    background: #f7f9fc;
    color: #0f172a;
    font-family: Inter, Arial, sans-serif;
}

.panel-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.panel-sidebar {
    background: #172554;
    color: #fff;
    padding: 22px;
}

.panel-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    margin-bottom: 26px;
}

.panel-brand img,
.auth-logo {
    width: 44px;
    height: 44px;
}

.panel-nav {
    display: grid;
    gap: 8px;
}

.panel-nav span {
    margin-top: 12px;
    color: #fbbf24;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 800;
}

.panel-nav a {
    color: #dbeafe;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    transition: background .2s ease, transform .2s ease;
}

.panel-nav a:hover,
.panel-nav a.active {
    background: rgba(255, 255, 255, .13);
    transform: translateX(2px);
}

.panel-nav-group {
    display: grid;
    gap: 6px;
}

.panel-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: 0;
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, .08);
    color: #fbbf24;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
}

.panel-nav-group.open .panel-nav-toggle span {
    transform: rotate(45deg);
}

.panel-subnav {
    display: none;
    gap: 6px;
    padding-left: 12px;
}

.panel-nav-group.open .panel-subnav {
    display: grid;
}

.panel-subnav a {
    font-size: 13px;
}

.panel-main {
    padding: 22px;
}

.panel-topbar,
.panel-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.panel-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.panel-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.panel-card span,
.panel-card small {
    display: block;
    color: #64748b;
}

.panel-card strong {
    font-size: 24px;
}

.panel-form,
.panel-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.panel-form.compact,
.panel-filters {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.panel-form label,
.panel-wide {
    display: grid;
    gap: 6px;
}

.panel-wide {
    grid-column: 1 / -1;
}

.panel-form input,
.panel-form select,
.panel-form textarea,
.panel-filters input,
.panel-filters select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
}

.panel-form .ck-editor {
    color: #0f172a;
    font-weight: 400;
}

.panel-form .ck-editor__editable_inline {
    min-height: 140px;
}

.panel-form .ck-toolbar,
.panel-form .ck-content {
    border-color: #cbd5e1 !important;
}

.panel-form .cke {
    border-color: #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
}

.panel-form .cke_top {
    border-bottom-color: #cbd5e1;
    background: #f8fafc;
}

.profile-form-section {
    display: grid;
    gap: 18px;
    padding: 18px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #f8fbff;
}

.profile-form-section-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.profile-form-section-head > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.profile-form-section-head h3 {
    margin: 0;
    color: #172554;
    font-size: 18px;
}

.profile-form-section-head p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.profile-form-actions {
    display: flex;
    justify-content: flex-end;
}

.profile-media-preview {
    display: grid;
    gap: 8px;
    align-content: start;
}

.profile-media-preview span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.profile-media-preview img {
    display: block;
    width: 100%;
    max-height: 160px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
}

.profile-media-preview-wide img {
    aspect-ratio: 16 / 7;
    max-height: 220px;
    object-fit: cover;
}

.profile-media-preview-banner img {
    aspect-ratio: 1200 / 330;
    max-height: 260px;
    object-fit: cover;
}

.profile-media-grid {
    display: grid;
    grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr);
    gap: 16px;
}

.profile-media-upload-card {
    display: grid;
    align-content: start;
    gap: 13px;
    padding: 16px;
    border: 1px solid #dbe4ef;
    border-radius: 7px;
    background: #f8fbff;
}

.profile-media-upload-card h4 { margin: 0; color: #172b4d; font-size: 14px; }
.profile-media-upload-card p { margin: 5px 0 0; color: #64748b; font-size: 12px; line-height: 1.45; }
.profile-media-upload-card label { display: grid; gap: 6px; color: #334155; font-size: 12px; font-weight: 700; }
.profile-media-upload-card input[type="file"] { min-height: 38px; padding: 6px 8px; border: 1px solid #cbd8e6; border-radius: 5px; background: #fff; font: inherit; }
.profile-media-upload-card .profile-upload-note { color: #64748b; font-size: 11px; font-weight: 500; }
.profile-media-preview-logo img { width: min(150px, 100%); aspect-ratio: 1; max-height: none; object-fit: contain; }
.profile-media-preview-wide img { aspect-ratio: 1000 / 250; max-height: none; object-fit: contain; }

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

.business-verification-box {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #eff6ff;
}

.business-verification-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.business-verification-head i {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
}

.business-verification-head strong,
.business-verification-head span {
    display: block;
}

.business-verification-head span {
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.business-document-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.business-document-option {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 8px 12px;
    background: #fff;
    color: #172554;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
}

.business-document-option.active,
.business-document-option:hover {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.business-document-upload {
    display: block;
}

.business-document-upload input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
}

.business-document-upload span {
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 118px;
    border: 2px dashed #93c5fd;
    border-radius: 10px;
    background: #fff;
    color: #172554;
    cursor: pointer;
    text-align: center;
}

.business-document-upload i {
    color: #2563eb;
    font-size: 24px;
}

.business-document-upload small,
.business-document-file {
    color: #64748b;
    font-size: 13px;
}

.business-document-file a {
    color: #2563eb;
    font-weight: 800;
}

.panel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 9px 13px;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}

.panel-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
}

.panel-btn.primary {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.panel-btn.primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

.panel-btn.danger {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

.panel-btn.danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

.panel-btn.small {
    padding: 6px 10px;
    font-size: 12px;
}

.panel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.panel-table th,
.panel-table td {
    padding: 11px 10px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

.panel-table th {
    background: #f8fafc;
    color: #475569;
}

.panel-table input,
.panel-table select {
    width: 100%;
    min-width: 90px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 7px 8px;
    font: inherit;
    box-sizing: border-box;
}

.panel-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-vendor-list-table {
    table-layout: fixed;
    font-size: 12px;
}

.admin-vendor-list-table th:nth-child(1),
.admin-vendor-list-table td:nth-child(1) {
    width: 25%;
}

.admin-vendor-list-table th:nth-child(2),
.admin-vendor-list-table td:nth-child(2) {
    width: 11%;
}

.admin-vendor-list-table th:nth-child(3),
.admin-vendor-list-table td:nth-child(3) {
    width: 15%;
}

.admin-vendor-list-table th:nth-child(4),
.admin-vendor-list-table td:nth-child(4) {
    width: 11%;
}

.admin-vendor-list-table th:nth-child(5),
.admin-vendor-list-table td:nth-child(5) {
    width: 8%;
}

.admin-vendor-list-table th:nth-child(6),
.admin-vendor-list-table td:nth-child(6) {
    width: 30%;
}

.admin-vendor-list-table td {
    vertical-align: middle;
    padding: 8px 7px;
    overflow-wrap: anywhere;
}

.admin-vendor-list-table td > strong,
.admin-vendor-list-table td > small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 10px;
}

.admin-vendor-list-table td > strong {
    font-size: 12px;
    line-height: 1.3;
}

.admin-vendor-table-wrap {
    overflow-x: visible;
}

.vendor-type-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 4px 6px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.vendor-type-badge.distributor {
    background: #fff3db;
    color: #9a6100;
}

.vendor-type-badge.dealer {
    background: #ecfdf3;
    color: #067647;
}

.admin-vendor-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.admin-vendor-actions .panel-btn {
    white-space: nowrap;
    padding: 5px 7px;
    font-size: 10px;
}

.admin-vendor-actions form {
    margin: 0;
}

@media (max-width: 760px) {
    .admin-vendor-table-wrap,
    .admin-vendor-list-table,
    .admin-vendor-list-table tbody,
    .admin-vendor-list-table tr,
    .admin-vendor-list-table td {
        display: block;
        width: 100% !important;
    }

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

    .admin-vendor-list-table tr {
        margin-bottom: 12px;
        padding: 8px 12px;
        border: 1px solid #e2e8f0;
        border-radius: 7px;
        background: #fff;
    }

    .admin-vendor-list-table td {
        display: grid;
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 8px;
        border: 0;
        padding: 6px 0;
    }

    .admin-vendor-list-table td::before {
        content: attr(data-label);
        color: #64748b;
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .admin-vendor-actions { justify-content: flex-start; }
}

.status-action-btn.active {
    border-color: #16a34a;
    background: #16a34a;
    color: #fff;
}

.status-action-btn.active:hover {
    border-color: #15803d;
    background: #15803d;
    color: #fff;
}

.status-action-btn.pending {
    border-color: #f59e0b;
    background: #f59e0b;
    color: #fff;
}

.status-action-btn.pending:hover {
    border-color: #d97706;
    background: #d97706;
    color: #fff;
}

.vendor-status-cell {
    display: grid;
    gap: 8px;
    justify-items: start;
}

.vendor-status-cell form {
    margin: 0;
}

.status-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 4px 9px 4px 5px;
    background: #fff;
    color: #475569;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.status-toggle-btn span {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #cbd5e1;
}

.status-toggle-btn.active {
    border-color: #16a34a;
    background: #dcfce7;
    color: #166534;
}

.status-toggle-btn.active span {
    background: #16a34a;
}

.status-toggle-btn.pending {
    border-color: #f59e0b;
    background: #fef3c7;
    color: #92400e;
}

.status-toggle-btn.pending span {
    background: #f59e0b;
}

.status-toggle-btn:hover {
    box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
}

.action-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.item-photo-thumb {
    display: block;
    width: 72px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
}

.public-item-photo {
    width: 100%;
    height: 150px;
    margin-bottom: 12px;
}

.public-photo-card {
    margin: 0;
}

.public-photo-card figcaption {
    margin-top: 8px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
}

.vendor-media-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 18px;
}

.vendor-media-thumb {
    position: relative;
    display: grid;
    gap: 10px;
    overflow: hidden;
    min-height: 0;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
}

.vendor-media-open {
    display: block;
    width: 100%;
    height: auto;
    min-height: 118px;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.vendor-media-open img,
.vendor-media-open iframe {
    display: block;
    width: 100%;
    height: 150px;
    border: 0;
    border-radius: 8px;
    object-fit: cover;
    pointer-events: none;
}

.vendor-media-thumb > img {
    display: block;
    width: 100%;
    height: 118px;
    object-fit: cover;
}

.media-title {
    display: block;
    padding: 8px 10px 10px;
    color: #0f172a;
    font-size: 12px;
    line-height: 1.35;
}

.media-sequence {
    display: block;
    padding: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.media-edit-form {
    display: grid;
    gap: 10px;
    padding: 0;
}

.media-edit-form input {
    width: 100%;
    min-height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    color: #0f172a;
    font: inherit;
}

.video-thumb span {
    display: block;
    padding: 8px;
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
}

.profile-video-admin-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.profile-video-card {
    display: grid;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.profile-video-preview-wrap {
    position: relative;
}

.profile-video-card iframe {
    display: block;
    width: 100%;
    height: 150px;
    border: 0;
    border-radius: 8px;
    background: #111827;
}

.profile-video-card strong {
    color: #172554;
    font-size: 14px;
    line-height: 1.35;
}

.profile-video-edit-form {
    display: grid;
    gap: 10px;
}

.profile-video-edit-form label {
    display: grid;
    gap: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.profile-video-edit-form input {
    width: 100%;
    min-height: 38px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    color: #0f172a;
    font: inherit;
}

.profile-video-update-btn {
    width: 100%;
    min-height: 38px;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .04em;
    box-shadow: 0 6px 14px rgba(37, 99, 235, .2);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.profile-video-update-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, .26);
}

.media-delete-btn {
    position: absolute;
    top: 7px;
    right: 7px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.media-delete-btn svg {
    width: 15px;
    height: 15px;
}

.media-delete-btn:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(220, 38, 38, .24);
}

.media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 72px;
    background: rgba(2, 6, 23, .86);
}

.media-lightbox.active {
    display: flex;
}

.media-lightbox figure {
    width: min(920px, 100%);
    margin: 0;
    color: #fff;
    text-align: center;
}

.media-lightbox img,
.media-lightbox iframe {
    width: 100%;
    max-height: 78vh;
    border: 0;
    border-radius: 8px;
    background: #000;
    object-fit: contain;
}

.media-lightbox iframe {
    aspect-ratio: 16 / 9;
}

.media-lightbox figcaption {
    margin-top: 12px;
    font-weight: 800;
}

.media-lightbox-close,
.media-lightbox-nav {
    position: absolute;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    cursor: pointer;
    font-weight: 900;
}

.media-lightbox-close {
    top: 18px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 28px;
}

.media-lightbox-nav {
    top: 50%;
    width: 46px;
    height: 46px;
    font-size: 24px;
    transform: translateY(-50%);
}

.media-lightbox-nav.previous {
    left: 18px;
}

.media-lightbox-nav.next {
    right: 18px;
}

.status-badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
    background: #e2e8f0;
}

.status-badge.approved {
    background: #dcfce7;
    color: #166534;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.suspended {
    background: #fee2e2;
    color: #991b1b;
}

.panel-alert {
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
    background: #e0f2fe;
}

.panel-alert.success {
    background: #dcfce7;
}

.panel-alert.error {
    background: #fee2e2;
}

.panel-alert.warning {
    background: #fef3c7;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.auth-card {
    width: min(420px, 100%);
}

.auth-shell {
    background:
        linear-gradient(135deg, rgba(7, 17, 31, .94), rgba(23, 37, 84, .9)),
        url("../images/demo-banner.svg") center/cover no-repeat;
}

.login-page-card {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, .58fr);
    width: min(1040px, calc(100vw - 32px));
    min-height: 620px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(2, 6, 23, .35);
}

.login-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 34px;
    background:
        linear-gradient(145deg, rgba(15, 23, 42, .98), rgba(30, 58, 138, .94)),
        radial-gradient(circle at right top, rgba(245, 158, 11, .35), transparent 42%);
    color: #fff;
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    line-height: 1.05;
}

.login-logo img {
    width: 54px;
    height: 54px;
}

.login-kicker {
    display: inline-flex;
    margin-bottom: 14px;
    color: #fbbf24;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
}

.login-brand-panel h1 {
    max-width: 540px;
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
}

.login-brand-panel p {
    max-width: 520px;
    margin: 18px 0 0;
    color: #dbeafe;
    line-height: 1.7;
    font-weight: 600;
}

.login-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.login-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #eff6ff;
    font-size: 13px;
    font-weight: 800;
}

.login-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
}

.login-form-head span {
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.login-form-head h2 {
    margin: 10px 0 8px;
    color: #0f172a;
    font-size: 34px;
}

.login-form-head p {
    margin: 0 0 24px;
    color: #64748b;
    line-height: 1.5;
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-form label {
    display: grid;
    gap: 8px;
    color: #334155;
    font-weight: 800;
}

.login-form input {
    height: 48px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 14px;
    color: #0f172a;
    font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.login-form input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
    outline: 0;
}

.login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 50px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb, #172554);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, .26);
}

.login-secondary-link {
    display: inline-flex;
    margin-top: 18px;
    color: #2563eb;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 880px) {
    .panel-shell,
    .panel-form,
    .panel-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .panel-sidebar {
        position: static;
    }

    .panel-table {
        font-size: 12px;
    }

    .vendor-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-video-admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .media-lightbox {
        padding: 18px 56px;
    }

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

    .login-brand-panel {
        gap: 34px;
    }

    .login-form-panel {
        padding: 28px;
    }
}

/* Global button and icon hover color */
:where(button, input[type="button"], input[type="submit"], input[type="reset"], a[class*="btn"], a[class*="button"], [class*="-btn"], [class*="_btn"], .icon-btn):not(.cke_button):not(.cke_combo_button):hover {
    background: #f59e0b !important;
    border-color: #f59e0b !important;
    color: #fff !important;
}

:where(button, input[type="button"], input[type="submit"], input[type="reset"], a[class*="btn"], a[class*="button"], [class*="-btn"], [class*="_btn"], .icon-btn):not(.cke_button):not(.cke_combo_button):hover :where(i, svg, span) {
    color: #fff !important;
}

:where([class*="-icon"], [class*="_icon"], .fa, .fa-solid, .fa-regular, .fa-brands):hover {
    color: #f59e0b !important;
}

/* FCK-style editor polish */
.panel-form .cke_chrome {
    width: 100% !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
}

.panel-form .cke_top {
    border-bottom: 1px solid #bfdbfe !important;
}

.panel-form .cke_bottom {
    border-top: 1px solid #bfdbfe !important;
    background: #eff6ff !important;
}

.panel-form .cke_contents {
    border-top: 0 !important;
    background: #fff;
}

#cke_vendorProfileDescription .cke_top,
#cke_vendorProfileAddress .cke_top {
    padding: 7px 8px 4px !important;
    background: #eaf3ff !important;
}

#cke_vendorProfileAddress.cke_chrome {
    border-radius: 12px !important;
}

#cke_vendorProfileAddress .cke_top {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 8px 10px 2px !important;
    box-sizing: border-box !important;
    background: #eff6ff !important;
}

#cke_vendorProfileAddress .cke_top::after {
    content: "";
    display: block;
    clear: both;
}

#cke_vendorProfileAddress .cke_toolbar {
    display: inline-block !important;
    float: left;
    margin: 0 8px 6px 0 !important;
}

#cke_vendorProfileAddress .cke_toolgroup,
#cke_vendorProfileAddress .cke_combo_button {
    border: 1px solid #dbeafe !important;
    border-radius: 8px !important;
    background: #fff !important;
}

#cke_vendorProfileAddress .cke_contents {
    min-height: 220px;
}

#cke_vendorProfileDescription .cke_toolgroup,
#cke_vendorProfileAddress .cke_toolgroup,
#cke_vendorProfileDescription .cke_combo_button,
#cke_vendorProfileAddress .cke_combo_button {
    border: 0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: none !important;
}

#cke_vendorProfileDescription .cke_toolgroup,
#cke_vendorProfileAddress .cke_toolgroup {
    margin: 0 6px 6px 0 !important;
}

#cke_vendorProfileDescription .cke_combo,
#cke_vendorProfileAddress .cke_combo {
    margin: 0 8px 6px 0 !important;
}

#cke_vendorProfileAddress .cke_toolgroup,
#cke_vendorProfileAddress .cke_combo_button {
    border: 1px solid #dbeafe !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.panel-form .cke a.cke_button,
.panel-form .cke a.cke_combo_button {
    transform: none !important;
    transition: background-color .15s ease, border-color .15s ease !important;
}

.panel-form .cke a.cke_button:hover,
.panel-form .cke a.cke_button:focus,
.panel-form .cke a.cke_combo_button:hover,
.panel-form .cke a.cke_combo_button:focus,
.panel-form .cke .cke_button_on {
    background: #dbeafe !important;
    border-color: #bfdbfe !important;
    color: #0f172a !important;
    transform: none !important;
    box-shadow: none !important;
}

.panel-form .cke a.cke_button:hover .cke_button_icon,
.panel-form .cke a.cke_button:hover .cke_button_label,
.panel-form .cke a.cke_combo_button:hover .cke_combo_text,
.panel-form .cke a.cke_combo_button:hover .cke_combo_open {
    color: #0f172a !important;
}

.panel-form .cke .cke_button_icon,
.panel-form .cke .cke_button_label,
.panel-form .cke .cke_combo_text {
    color: #334155 !important;
}

.panel-form .cke_reset_all,
.panel-form .cke_reset_all * {
    font-family: Arial, sans-serif !important;
}

.panel-card .cke span,
.panel-card .cke strong,
.panel-card .cke small {
    display: inline-block;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.panel-card .cke .cke_voice_label,
.panel-card .cke .cke_toolbar_label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}

.panel-card .cke .cke_button_label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    white-space: nowrap !important;
}

.panel-card .cke .cke_button__source_label,
.panel-card .cke .cke_button__newpage_label,
.panel-card .cke .cke_button__preview_label,
.panel-card .cke .cke_button__print_label,
.panel-card .cke .cke_button__templates_label {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    display: inline-block !important;
    padding-left: 4px;
    white-space: nowrap !important;
}

.panel-card .cke .cke_button {
    display: inline-block !important;
    float: left;
    width: 28px;
    min-height: 24px;
    padding: 4px 6px !important;
    border-radius: 6px;
    overflow: hidden !important;
    box-sizing: border-box;
}

.panel-card .cke .cke_button__source,
.panel-card .cke .cke_button__newpage,
.panel-card .cke .cke_button__preview,
.panel-card .cke .cke_button__print,
.panel-card .cke .cke_button__templates {
    width: auto;
    overflow: visible !important;
}

.panel-card .cke .cke_toolgroup {
    display: inline-block !important;
    float: left;
}

.panel-card .cke .cke_combo {
    display: inline-block !important;
    float: left;
}

.panel-card .cke .cke_combo_text {
    display: inline-block !important;
}

.panel-card .cke .cke_path,
.panel-card .cke .cke_path * {
    display: inline-block !important;
}
