.ck-editor__editable,
textarea {
    min-height: 150px;
}

.datatable {
    width: 100% !important;
}

table.dataTable tbody td.select-checkbox::before,
table.dataTable tbody td.select-checkbox::after,
table.dataTable tbody th.select-checkbox::before,
table.dataTable tbody th.select-checkbox::after {
    top: 50%;
}

.dataTables_length,
.dataTables_filter,
.dt-buttons {
    margin-bottom: 0.333em;
    margin-top: .2rem;
}

.dataTables_filter {
    margin-right: .2rem;
}

.dt-buttons .btn {
    margin-left: 0.333em;
    border-radius: 0;
}

.table.datatable {
    box-sizing: border-box;
    border-collapse: collapse;
}

table.dataTable thead th {
    border-bottom: 2px solid #c8ced3;
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom: 1px solid #c8ced3;
}

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

.select2-selection__rendered {
    padding-bottom: 5px !important;
}

.has-error .invalid-feedback {
    display: block !important;
}

.btn-info,
.badge-info {
    color: white;
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background-image: none;
}

.sidebar .nav-item {
    cursor: pointer;
}

.btn-default {
    color: #23282c;
    background-color: #f0f3f5;
    border-color: #f0f3f5;
}

.btn-default.focus,
.btn-default:focus {
    box-shadow: 0 0 0 .2rem rgba(209, 213, 215, .5);
}

.btn-default:hover {
    color: #23282c;
    background-color: #d9e1e6;
    border-color: #d1dbe1;
}

.btn-group-xs > .btn,
.btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.searchable-title {
    font-weight: bold;
}
.searchable-fields {
    padding-left:5px;
}
.searchable-link {
    padding:0 5px 0 5px;
}
.searchable-link:hover   {
    cursor: pointer;
    background: #eaeaea;
}
.select2-results__option {
    padding-left: 0px;
    padding-right: 0px;
}

.form-group .required::after {
    content: " *";
    color: red;
}

.form-check.is-invalid ~ .invalid-feedback {
    display: block;
}

.c-sidebar-brand .c-sidebar-brand-full:hover {
    color: inherit;
}

.custom-select.form-control-sm {
    padding: 0.25rem 1.5rem;
}
.app-modern {
    --ui-font: "Source Sans 3", "Helvetica Neue", Helvetica, sans-serif;
    --ui-bg: #ffffff;
    --ui-surface: #ffffff;
    --ui-muted: #6b7280;
    --ui-text: #111827;
    --ui-input-text: #1f2937;
    --ui-input-placeholder: #94a3b8;
    --ui-border: #e5e7eb;
    --ui-border-strong: #d1d5db;
    --ui-primary: #2563eb;
    --ui-primary-strong: #1d4ed8;
    --ui-success: #059669;
    --ui-danger: #dc2626;
    --ui-warning: #d97706;
    --ui-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    font-family: var(--ui-font);
    background: var(--ui-bg);
    color: var(--ui-text);
}

body.app-modern {
    background: var(--ui-bg);
}

.app-modern .c-app,
.app-modern .c-body,
.app-modern .c-wrapper {
    background: var(--ui-bg);
    color: var(--ui-text);
}

.app-modern .c-header {
    background: var(--ui-surface);
    border-bottom: 1px solid var(--ui-border);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.04);
}

.app-modern .c-header .c-header-brand {
    color: var(--ui-text);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.app-modern .c-sidebar {
    background: #f8fafc;
    border-right: 1px solid var(--ui-border);
    box-shadow: 12px 0 30px rgba(15, 23, 42, 0.03);
}

.app-modern .c-sidebar-brand {
    background: transparent;
    border-bottom: 1px solid var(--ui-border);
    padding: 20px 16px;
}

.app-modern .c-sidebar-brand-full {
    color: var(--ui-text);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.app-modern .c-sidebar-nav {
    padding: 16px 10px;
}

.app-modern .c-sidebar-nav-item,
.app-modern .c-sidebar-nav-dropdown {
    margin-bottom: 6px;
}

.app-modern .c-sidebar-nav-link,
.app-modern .c-sidebar-nav-dropdown-toggle {
    color: #111827 !important;
    border-radius: 10px;
    padding: 10px 12px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 600;
}

.app-modern .c-sidebar-nav-dropdown-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    font: inherit;
}

.app-modern .c-sidebar-nav-link:hover,
.app-modern .c-sidebar-nav-dropdown-toggle:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--ui-primary-strong) !important;
    text-decoration: none;
}

.app-modern .c-sidebar-nav-link:hover .c-sidebar-nav-icon,
.app-modern .c-sidebar-nav-dropdown-toggle:hover .c-sidebar-nav-icon {
    color: var(--ui-primary-strong) !important;
}

.app-modern .c-sidebar-nav-link.c-active {
    background: rgba(37, 99, 235, 0.12);
    color: var(--ui-primary-strong) !important;
    font-weight: 600;
}

.app-modern .c-sidebar-nav-icon {
    color: #1f2937 !important;
    opacity: 1;
}

.app-modern .c-sidebar-nav-link.c-active .c-sidebar-nav-icon,
.app-modern .c-sidebar-nav-dropdown-toggle.c-active .c-sidebar-nav-icon {
    color: var(--ui-primary-strong) !important;
}

.app-modern .c-sidebar-nav-link .c-sidebar-nav-icon,
.app-modern .c-sidebar-nav-dropdown-toggle .c-sidebar-nav-icon {
    color: #1f2937 !important;
}

.app-modern .c-sidebar-nav-dropdown-items .c-sidebar-nav-link {
    color: #111827 !important;
    font-weight: 600;
}

.app-modern .c-sidebar-nav-dropdown-toggle::after {
    color: var(--ui-text) !important;
    border-color: var(--ui-text) !important;
}

html:not([dir=rtl]) .app-modern .c-sidebar-nav-dropdown-toggle::after {
    color: var(--ui-text) !important;
    border-color: var(--ui-text) !important;
    opacity: 1 !important;
}

.app-modern .c-sidebar-nav-dropdown-toggle:hover::after {
    color: var(--ui-primary-strong) !important;
    border-color: var(--ui-primary-strong) !important;
}

html:not([dir=rtl]) .app-modern .c-sidebar-nav-dropdown-toggle:hover::after {
    color: var(--ui-primary-strong) !important;
    border-color: var(--ui-primary-strong) !important;
}

.app-modern .c-sidebar-nav-dropdown.c-show .c-sidebar-nav-dropdown-toggle::after {
    color: var(--ui-text) !important;
    border-color: var(--ui-text) !important;
}

html:not([dir=rtl]) .app-modern .c-sidebar-nav-dropdown.c-show > .c-sidebar-nav-dropdown-toggle::after {
    color: var(--ui-text) !important;
    border-color: var(--ui-text) !important;
    opacity: 1 !important;
}

html:not([dir=rtl]) .app-modern .c-sidebar-nav-dropdown:not(.c-show) > .c-sidebar-nav-dropdown-toggle::after {
    color: var(--ui-text) !important;
    border-color: var(--ui-text) !important;
    opacity: 1 !important;
}

html body.app-modern .c-sidebar .c-sidebar-nav .c-sidebar-nav-dropdown > .c-sidebar-nav-dropdown-toggle {
    color: var(--ui-text) !important;
}

html body.app-modern .c-sidebar .c-sidebar-nav .c-sidebar-nav-dropdown > .c-sidebar-nav-dropdown-toggle::after {
    color: var(--ui-text) !important;
    border-color: var(--ui-text) !important;
    border-style: solid !important;
    border-width: 0 2px 2px 0 !important;
    opacity: 1 !important;
    background-color: transparent !important;
    background-image: none !important;
    width: 0.5rem !important;
    height: 0.5rem !important;
    display: inline-block !important;
}

.app-modern .c-sidebar-nav-dropdown-items {
    margin-top: 6px;
    padding-left: 8px;
}

.app-modern .c-main {
    padding-top: 18px;
    background: var(--ui-bg);
}

.app-modern .container-fluid {
    width: 100%;
    max-width: none;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
}

@media (min-width: 1200px) {
    .app-modern .container-fluid {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }
}

.app-modern .card {
    border-radius: 14px;
    border: 1px solid var(--ui-border);
    box-shadow: var(--ui-shadow);
}

.app-modern .card-header {
    background: transparent;
    border-bottom: 1px solid var(--ui-border);
    font-weight: 600;
    color: var(--ui-text);
}

.app-modern .form-control,
.app-modern .custom-select,
.app-modern .select2-container .select2-selection--single,
.app-modern .select2-container .select2-selection--multiple {
    border-radius: 10px;
    border-color: var(--ui-border);
    min-height: 40px;
    color: var(--ui-input-text);
}

.app-modern .form-control::placeholder,
.app-modern textarea.form-control::placeholder,
.app-modern input.form-control::placeholder {
    color: var(--ui-input-placeholder) !important;
    opacity: 1;
}

.app-modern .form-control:disabled::placeholder,
.app-modern .form-control[readonly]::placeholder {
    color: var(--ui-input-placeholder) !important;
    opacity: 0.72;
}

.app-modern .select2-container--default .select2-selection--single .select2-selection__rendered,
.app-modern .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    color: var(--ui-input-text);
}

.app-modern .select2-container--default .select2-selection--single .select2-selection__placeholder,
.app-modern .select2-container--default .select2-selection--multiple .select2-search__field::placeholder,
.app-modern .select2-container--default .select2-search--inline .select2-search__field::placeholder {
    color: var(--ui-input-placeholder) !important;
    opacity: 1;
}

.app-modern .form-control:focus,
.app-modern .custom-select:focus,
.app-modern .select2-container--default .select2-selection--single:focus,
.app-modern .select2-container--default .select2-selection--multiple:focus {
    border-color: var(--ui-primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.app-modern .btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.5rem 1rem;
}

.app-modern .btn-primary {
    background: var(--ui-primary);
    border-color: var(--ui-primary);
}

.app-modern .btn-primary:hover {
    background: var(--ui-primary-strong);
    border-color: var(--ui-primary-strong);
}

.app-modern .btn-danger {
    background: var(--ui-danger);
    border-color: var(--ui-danger);
}

.app-modern .btn-outline-secondary {
    border-color: var(--ui-border-strong);
    color: var(--ui-text);
}

.app-modern .table {
    border-radius: 12px;
    overflow: visible;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface);
}

.app-modern .table th,
.app-modern .table td {
    padding: 0.5rem 0.65rem;
    vertical-align: middle;
}

.app-modern .table thead th {
    background: #f3f4f6;
    color: var(--ui-text);
    border-bottom: 1px solid var(--ui-border);
    font-weight: 600;
}

.app-modern .table tbody tr:hover {
    background: rgba(37, 99, 235, 0.04);
}

.app-modern .alert {
    border-radius: 12px;
}

.app-modern .badge {
    border-radius: 999px;
    padding: 0.35em 0.75em;
    font-weight: 600;
}

.app-modern .pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    color: var(--ui-text);
}

.app-modern .pagination .page-item.active .page-link {
    background: var(--ui-primary);
    border-color: var(--ui-primary);
}

.app-modern .invalid-feedback {
    font-size: 0.85rem;
}

.app-modern .dropdown-menu {
    border-radius: 12px;
    border-color: var(--ui-border);
    box-shadow: var(--ui-shadow);
}

.app-modern .page-actions {
    position: relative;
    z-index: 10;
}

.app-modern .page-actions .dropdown-menu {
    z-index: 1095;
}

/* Allow admin row-action dropdowns to escape table wrappers in all modules. */
.app-modern .table-responsive {
    overflow-y: visible;
}

.app-modern .table-responsive .dropdown-menu {
    z-index: 1095;
}

.app-modern .action-buttons,
.app-modern .action-view-menu,
.app-modern .storefront-preview-menu {
    position: relative;
}

.app-modern .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--ui-primary-strong);
    border-radius: 999px;
}

.app-modern .table.datatable {
    border-collapse: separate;
    border-spacing: 0;
}

.app-modern table.dataTable thead th {
    border-bottom: 1px solid var(--ui-border);
}

.app-modern .dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom: 1px solid var(--ui-border);
}

.app-modern .btn-default {
    background: #f8fafc;
    border-color: var(--ui-border);
}

.app-modern .btn-default:hover {
    background: #eef2f7;
    border-color: var(--ui-border-strong);
}

.app-modern .c-header-nav-link {
    color: var(--ui-text);
}

.app-modern .c-header-nav-link:hover {
    color: var(--ui-primary-strong);
}

.app-modern .c-header-toggler {
    color: var(--ui-text);
}

.app-modern .c-header-toggler:hover {
    color: var(--ui-primary-strong);
}

.app-modern .page-actions {
    margin-bottom: 16px;
}

.app-modern .page-actions .btn + .btn {
    margin-left: 8px;
}

.app-modern .filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-end;
}

.app-modern .filter-panel {
    border: 1px solid var(--ui-border);
    background: #f8fafc;
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    flex: 1 1 420px;
}

.app-modern .filter-panel__title {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ui-muted);
    font-weight: 600;
    margin-bottom: 0;
    min-width: 72px;
}

.app-modern .filter-panel__grid .form-control {
    background: #ffffff;
}

.app-modern .filter-panel__grid {
    flex: 1;
}

.app-modern .filter-panel .mb-2 {
    margin-bottom: 0.4rem !important;
}

.app-modern .filter-panel .form-row {
    margin-left: -4px;
    margin-right: -4px;
}

.app-modern .filter-panel .form-row > [class*="col-"] {
    padding-left: 4px;
    padding-right: 4px;
}

.app-modern .filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
}

.app-modern .table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 16px;
    justify-content: flex-start;
}

.app-modern .action-buttons {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
}

.app-modern .action-buttons form {
    margin: 0;
}

.app-modern .page-actions .btn,
.app-modern .filter-actions .btn,
.app-modern .table-actions .btn,
.app-modern .action-buttons .btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.app-modern .table thead th:first-child,
.app-modern .table tbody td:first-child {
    width: 1%;
    white-space: nowrap;
}

.app-modern .action-buttons .btn {
    padding: 0.25rem 0.55rem;
    font-size: 0.78rem;
}

.app-modern .action-buttons .btn-icon {
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-modern .action-buttons .btn-icon i {
    font-size: 0.85rem;
}

.app-modern .action-buttons .action-view {
    border-color: rgba(37, 99, 235, 0.35);
    color: #2563eb;
}

.app-modern .action-buttons .action-edit {
    border-color: rgba(14, 116, 144, 0.35);
    color: #0e7490;
}

.app-modern .action-buttons .action-delete {
    border-color: rgba(220, 38, 38, 0.35);
    color: #dc2626;
}

#sidebar .c-sidebar-nav-link,
#sidebar .c-sidebar-nav-dropdown-toggle {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    min-height: auto;
}

#sidebar .c-sidebar-nav-dropdown-items .c-sidebar-nav-link {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

#sidebar .c-sidebar-nav-icon {
    margin-top: 0;
    margin-bottom: 0;
}

#sidebar .c-sidebar-nav-link,
#sidebar .c-sidebar-nav-dropdown-toggle {
    display: flex;
    align-items: center;
    padding-left: 0.75rem;
    padding-right: 2rem;
}

#sidebar .c-sidebar-nav-icon {
    width: 1.25rem;
    flex: 0 0 1.25rem;
    margin: 0 0.65rem 0 0;
    text-align: center;
}

.app-modern {
    --admin-bg-a: #f5f7fb;
    --admin-bg-b: #edf2f8;
    --admin-shell: #ffffff;
    --admin-shell-soft: #f8fafd;
    --admin-accent: #0f766e;
    --admin-accent-strong: #0b5e58;
    --admin-ink: #0f172a;
    --admin-muted: #64748b;
    --admin-border: #dbe3ee;
    --admin-shadow: 0 14px 36px rgba(15, 23, 42, 0.09);
}

body.app-modern {
    background:
        radial-gradient(1100px 550px at 12% -10%, rgba(14, 116, 144, 0.10), transparent 56%),
        radial-gradient(900px 500px at 95% 0, rgba(15, 118, 110, 0.12), transparent 58%),
        linear-gradient(180deg, var(--admin-bg-a) 0%, var(--admin-bg-b) 100%);
    color: var(--admin-ink);
}

.app-modern .c-header {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid var(--admin-border);
}

.app-modern .c-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f4f7fc 100%);
    border-right: 1px solid var(--admin-border);
}

.app-modern .c-sidebar-brand {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(120deg, rgba(15, 118, 110, 0.09), rgba(14, 116, 144, 0.11));
}

.app-modern .admin-sidebar-tools {
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.96);
}

.app-modern .admin-sidebar-nav {
    min-height: 0;
    overflow-y: auto;
    padding-top: 0.55rem;
}

.app-modern .admin-sidebar-section {
    margin-bottom: 0.2rem;
}

.app-modern .admin-sidebar-section > .c-sidebar-nav-dropdown-toggle {
    min-height: 2.2rem;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
    text-transform: none;
}

.app-modern .admin-quick-access__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.45rem;
    color: #475569;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-modern .admin-quick-access__header small {
    color: #94a3b8;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.app-modern .admin-quick-access__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
}

.app-modern .admin-quick-slot {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 2.15rem;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0;
    text-decoration: none;
}

.app-modern .admin-quick-slot > a {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.35rem 0.45rem;
    line-height: 1.15;
    color: inherit;
    text-decoration: none;
}

.app-modern .admin-quick-slot--fixed {
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.35rem 0.45rem;
    line-height: 1.15;
}

.app-modern .admin-quick-slot > a > span,
.app-modern .admin-quick-slot__empty > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-modern .admin-quick-slot > a > i,
.app-modern .admin-quick-slot__empty > i {
    flex: 0 0 auto;
    width: 1rem;
    text-align: center;
    color: var(--admin-accent);
}

.app-modern .admin-quick-slot:hover,
.app-modern .admin-quick-slot:focus-within {
    border-color: rgba(15, 118, 110, 0.4);
    background: #ecfdf8;
    color: #0b5e58;
    text-decoration: none;
}

.app-modern .admin-quick-slot__empty {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.35rem 0.45rem;
    color: #94a3b8;
    font-weight: 600;
    line-height: 1.15;
}

.app-modern .admin-quick-slot__remove {
    position: absolute;
    top: -0.3rem;
    right: -0.3rem;
    display: grid;
    place-items: center;
    z-index: 1;
    width: 1.05rem;
    height: 1.05rem;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    background: #fff;
    color: #64748b;
    padding: 0;
    font-size: 0.75rem;
    line-height: 1;
    cursor: pointer;
}

.app-modern .admin-quick-slot__remove:focus-visible,
.app-modern .admin-navigation-pin:focus-visible {
    outline: 2px solid var(--admin-accent);
    outline-offset: 1px;
}

.app-modern .admin-quick-slot__remove-form,
.app-modern .admin-navigation-pin-form {
    display: block;
    margin: 0;
}

.app-modern .admin-quick-slot__remove-form {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.app-modern .admin-quick-slot__remove {
    pointer-events: auto;
}

.app-modern .admin-quick-access__status {
    min-height: 1rem;
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.66rem;
}

.app-modern .c-sidebar-nav-item {
    position: relative;
}

.app-modern .admin-navigation-pin {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    display: block;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #94a3b8;
    padding: 0.25rem;
    outline: none;
    cursor: pointer;
}

.app-modern .admin-navigation-pin[aria-pressed="true"] {
    color: var(--admin-accent);
}

.app-modern .admin-navigation-pin:hover,
.app-modern .admin-navigation-pin:focus-visible {
    color: var(--admin-accent-strong);
}

.app-modern .admin-navigation-pin:focus-visible {
    border-radius: 4px;
}

.app-modern .c-sidebar-nav-link.c-active {
    background: linear-gradient(90deg, rgba(15, 118, 110, 0.17), rgba(14, 116, 144, 0.08));
    border: 1px solid rgba(15, 118, 110, 0.22);
}

.app-modern .c-sidebar-nav-title {
    color: #64748b;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0.65rem 0.6rem 0.45rem;
    padding: 0;
}

.app-modern .c-main {
    background: transparent;
    padding-top: 1rem;
}

.app-modern .container-fluid {
    padding-bottom: 1.2rem;
}

.app-modern .admin-context-shell {
    background: var(--admin-shell);
    border: 1px solid var(--admin-border);
    box-shadow: var(--admin-shadow);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
}

.app-modern .admin-context-shell__header {
    margin-bottom: 0.65rem;
}

.app-modern .admin-context-shell__eyebrow {
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-size: 0.69rem;
    color: var(--admin-muted);
    font-weight: 700;
}

.app-modern .admin-context-shell__title {
    font-family: "Sora", "Source Sans 3", sans-serif;
    font-size: 1.35rem;
    line-height: 1.25;
    color: var(--admin-ink);
    font-weight: 700;
}

.app-modern .admin-context-shell__subtitle {
    color: var(--admin-muted);
    font-size: 0.88rem;
}

.app-modern .admin-context-shell__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
}

.app-modern .admin-context-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--admin-border);
    background: var(--admin-shell-soft);
    color: #1e293b;
    border-radius: 999px;
    padding: 0.16rem 0.62rem;
    font-size: 0.76rem;
}

.app-modern .admin-context-shell__helper {
    border-top: 1px dashed var(--admin-border);
    padding-top: 0.58rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.7rem;
    align-items: center;
    font-size: 0.8rem;
}

.app-modern .admin-context-shell__helper-label {
    color: var(--admin-muted);
    font-weight: 600;
}

.app-modern .admin-context-shell__helper a {
    color: var(--admin-accent-strong);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.app-modern .admin-context-shell__helper a:hover {
    border-bottom-color: var(--admin-accent-strong);
}

.app-modern .card {
    border: 1px solid var(--admin-border);
    border-radius: 14px;
    box-shadow: var(--admin-shadow);
}

.app-modern .card-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-bottom: 1px solid var(--admin-border);
}

.app-modern .table thead th {
    background: #eef4fb;
    border-bottom: 1px solid var(--admin-border);
}

.app-modern .btn-primary {
    background: linear-gradient(135deg, var(--admin-accent) 0%, #0e7490 100%);
    border: none;
    box-shadow: 0 8px 18px rgba(14, 116, 144, 0.22);
}

.app-modern .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(14, 116, 144, 0.25);
}

.app-modern .btn-outline-secondary {
    border-color: #cdd9e7;
    color: #334155;
}

.app-modern .btn-outline-secondary:hover {
    background: #eef4fb;
    border-color: #bdccde;
    color: #0f172a;
}

@media (max-width: 991px) {
    .app-modern .admin-context-shell {
        padding: 0.85rem 0.88rem;
        border-radius: 12px;
    }

    .app-modern .admin-context-shell__title {
        font-size: 1.15rem;
    }
}

.app-modern .action-buttons .action-view:hover {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.5);
}

.app-modern .action-buttons .action-edit:hover {
    background: rgba(14, 116, 144, 0.12);
    color: #0f4c5c;
    border-color: rgba(14, 116, 144, 0.5);
}

.app-modern .action-buttons .action-delete:hover {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
    border-color: rgba(220, 38, 38, 0.5);
}

.app-modern .action-buttons .btn-outline-primary,
.app-modern .action-buttons .btn-outline-secondary,
.app-modern .action-buttons .btn-outline-danger {
    background: #ffffff;
}

.app-modern .action-buttons .btn:hover,
.app-modern .page-actions .btn:hover,
.app-modern .filter-actions .btn:hover,
.app-modern .table-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.app-modern .action-buttons .btn-outline-secondary {
    border-color: #cbd5f5;
    color: #1f2937;
}

.app-modern .action-buttons .btn-outline-secondary:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
    color: var(--ui-primary-strong);
}

.app-modern .action-buttons .btn-outline-danger:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
    color: #b91c1c;
}

.app-modern .user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.app-modern .user-chip__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ui-primary);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.app-modern .brand-lockup {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-decoration: none;
}

.app-modern .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--ui-primary);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.app-modern .brand-title {
    font-size: 1rem;
}

.app-modern .brand-lockup__logo {
    display: block;
    width: auto;
    max-width: min(var(--website-brand-logo-max-width, 180px), 180px);
    max-height: 48px;
    height: auto;
    object-fit: contain;
}

.app-modern .brand-lockup__mark {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 10px;
    background: var(--ui-primary);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.app-modern .brand-lockup__copy {
    min-width: 0;
    line-height: 1.05;
}

.app-modern .brand-lockup__title {
    display: block;
    color: var(--ui-text);
    font-size: 1rem;
    font-weight: 700;
}

.app-modern .admin-mobile-brand .brand-lockup__logo {
    max-width: min(var(--website-brand-logo-max-width, 180px), 145px);
    max-height: 40px;
    height: auto;
}

.admin-auth-brand {
    display: inline-flex;
    max-width: 100%;
}

.coming-soon-brand {
    display: inline-flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.app-modern .c-header {
    height: 64px;
}

.app-modern .c-header-nav-item {
    margin-left: 8px;
}

@keyframes riseFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-modern .content-stack > * {
    animation: riseFade 0.5s ease both;
}

.app-modern .content-stack > *:nth-child(2) {
    animation-delay: 0.05s;
}

.app-modern .content-stack > *:nth-child(3) {
    animation-delay: 0.1s;
}

.app-modern .content-stack > *:nth-child(4) {
    animation-delay: 0.15s;
}

.app-modern .content-stack > *:nth-child(5) {
    animation-delay: 0.2s;
}

.app-modern .content-stack > *:nth-child(6) {
    animation-delay: 0.25s;
}

.app-modern .content-stack > *:nth-child(7) {
    animation-delay: 0.3s;
}

.app-modern .content-stack > *:nth-child(8) {
    animation-delay: 0.35s;
}

@media (prefers-reduced-motion: reduce) {
    .app-modern .content-stack > * {
        animation: none;
    }
}

.app-modern {
    --ui-font: "Source Sans 3", "Helvetica Neue", Helvetica, sans-serif;
    --ui-heading-font: "Sora", "Source Sans 3", "Helvetica Neue", Helvetica, sans-serif;
    --ui-bg: #ffffff;
    --ui-surface: #ffffff;
    --ui-muted: #6b7280;
    --ui-text: #111827;
    --ui-input-text: #1f2937;
    --ui-input-placeholder: #94a3b8;
    --ui-border: #e5e7eb;
    --ui-border-strong: #d1d5db;
    --ui-primary: #2563eb;
    --ui-primary-strong: #1d4ed8;
    --ui-success: #059669;
    --ui-danger: #dc2626;
    --ui-warning: #d97706;
    --ui-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}


/* Settings workspace */
.settings-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.settings-page-header__title {
    margin: 0;
    font-weight: 700;
}

.settings-page-header__subtitle {
    margin: 0.3rem 0 0;
    color: #6b7280;
    font-size: 0.93rem;
}

.settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
    gap: 1rem;
}

.settings-sidebar {
    position: sticky;
    top: 74px;
    align-self: start;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.8rem;
}

.settings-sidebar__title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    margin-bottom: 0.45rem;
}

.settings-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.settings-sidebar__nav a {
    color: #1f2937;
    text-decoration: none;
    border-radius: 8px;
    padding: 0.45rem 0.55rem;
    font-size: 0.9rem;
    line-height: 1.2;
}

.settings-sidebar__nav a:hover,
.settings-sidebar__nav a:focus {
    background: #edf2ff;
    color: #1e40af;
}

.settings-main .settings-card {
    border-radius: 10px;
    border: 1px solid #dbe3ee;
    margin-bottom: 0.95rem;
}

.settings-main .settings-card .card-header {
    font-weight: 700;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.settings-card__description {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 0 0.7rem;
}

.settings-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

@media (max-width: 991.98px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }

    .settings-sidebar {
        position: relative;
        top: 0;
    }
}

.settings-nav-shell {
    background: #fff;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    padding: 0.42rem 0.48rem;
    display: flex;
    flex-direction: column;
    gap: 0.34rem;
}

.settings-nav-fold {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.settings-nav-fold__summary {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    padding: 0.32rem 0.42rem;
}

.settings-nav-group__count {
    border: 1px solid #dbe3ee;
    background: #fff;
    color: #475569;
    border-radius: 999px;
    font-size: 0.68rem;
    line-height: 1;
    padding: 0.16rem 0.36rem;
}

.settings-nav-toggle {
    margin-left: auto;
    border: 1px solid #dbe3ee;
    background: #fff;
    color: #64748b;
    border-radius: 999px;
    width: 20px;
    height: 20px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.settings-nav-toggle:hover,
.settings-nav-toggle:focus {
    background: #eef2ff;
    color: #1e3a8a;
    border-color: #bfccff;
}

.settings-nav-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.26rem;
    padding: 0.08rem 0.36rem 0.34rem;
}

.settings-nav-group__title {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    margin-right: auto;
}

.settings-nav-group__caret {
    font-size: 0.72rem;
    line-height: 1;
    color: #475569;
}

.settings-nav-pill {
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.77rem;
    padding: 0.2rem 0.52rem;
    line-height: 1.25;
}

.settings-nav-pill--collapsible {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.settings-nav-pill__caret {
    font-size: 0.72rem;
    line-height: 1;
}

.settings-nav-cluster {
    display: inline-flex;
    align-items: center;
    gap: 0.14rem;
    white-space: nowrap;
}

.settings-nav-cluster.is-expanded {
    background: linear-gradient(90deg, #e5ecff 0%, #eff4ff 100%);
    border: 1px solid #9eb2ff;
    border-radius: 999px;
    padding: 0.14rem 0.2rem 0.14rem 0.12rem;
    box-shadow: 0 0 0 2px rgba(78, 102, 255, 0.14);
}

.settings-nav-subgroup {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.18rem;
}

.settings-nav-cluster.is-expanded .settings-nav-subgroup::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 3px;
    border-radius: 999px;
    background: #5a74ff;
    margin: 0 0.06rem 0 0.01rem;
    box-shadow: 0 0 0 2px rgba(90, 116, 255, 0.18);
}

.settings-nav-cluster.is-expanded .settings-nav-pill--collapsible {
    background: #2f53ee;
    border-color: #2f53ee;
    color: #fff;
}

.settings-nav-cluster.is-expanded .settings-nav-pill--collapsible .settings-nav-pill__caret {
    color: #dbe6ff;
}

.settings-nav-cluster.is-expanded .settings-nav-pill--child {
    border-color: #95a8ff;
    background: #f9fbff;
}

.settings-nav-pill--child {
    font-size: 0.73rem;
    padding: 0.18rem 0.46rem;
}

.settings-nav-pill--primary {
    background: #2563eb;
    border: 1px solid #2563eb;
    color: #fff;
}

.settings-nav-pill--primary:hover,
.settings-nav-pill--primary:focus {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

.settings-nav-pill--outline {
    border: 1px solid #3343dd;
    color: #2438d2;
    background: #fff;
}

.settings-nav-pill--outline:hover,
.settings-nav-pill--outline:focus,
.settings-nav-pill--outline.is-active {
    background: #e9eeff;
    color: #1e3a8a;
    border-color: #1e3a8a;
}

.settings-nav-pill--soft {
    border: 1px solid #d1d5db;
    color: #374151;
    background: #f3f4f6;
}

.settings-nav-pill--soft:hover,
.settings-nav-pill--soft:focus,
.settings-nav-pill--soft.is-active {
    background: #e5e7eb;
    color: #1f2937;
    border-color: #9ca3af;
}

@media (max-width: 991.98px) {
    .settings-nav-shell {
        padding: 0.34rem;
    }

    .settings-nav-group {
        padding: 0.06rem 0.26rem 0.28rem;
    }

    .settings-nav-subgroup {
        gap: 0.14rem;
    }
}

.admin-html-preview-trigger {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

.admin-html-preview-modal .modal-dialog {
    max-width: 1100px;
}

.admin-html-preview-frame {
    width: 100%;
    min-height: 68vh;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #fff;
}
