/*
|--------------------------------------------------------------------------
| GMS.CSS
|--------------------------------------------------------------------------
|
| Global custom styling for the Guild Management System.
|
| This file is used for reusable UI improvements that are shared across
| modules. Keep page-specific styling small, clearly labelled and grouped
| by module.
|
| Sections:
|
| 1. Global Utilities
| 2. Layout / Navigation
| 3. Shared Badges / Summary UI
| 4. DataTables
| 5. Documentation
| 6. Role Permissions
| 7. Loot System
| 8. Class / Spec Combos
| 9. Attendance
| 10. Form Controls / Time Inputs
| 11. Progress Bars
| 12. Cron Scheduler Run Details
| 13. Cron Scheduler Tables
| 14. API Posts Tables
| 15. Character Audit
|
*/

/*
|--------------------------------------------------------------------------
| 1. GLOBAL UTILITIES
|--------------------------------------------------------------------------
*/

.text-wrap-anywhere {
    overflow-wrap: anywhere;
    word-break: normal;
}

/*
|--------------------------------------------------------------------------
| Sidebar Navigation
|--------------------------------------------------------------------------
*/

.pcoded-navbar .pcoded-submenu a {
    text-decoration: none !important;
}

/*
|--------------------------------------------------------------------------
| Topbar Page Information
|--------------------------------------------------------------------------
*/

.topbar-page-info {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 64px;
    padding-left: 25px;
    overflow: hidden;
}

.topbar-page-title {
    flex-shrink: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: #111827;
    white-space: nowrap;
}

.topbar-page-divider {
    flex-shrink: 0;
    width: 4px;
    height: 32px;
    border-radius: 999px;
    background: #159B9D;
}

.topbar-page-description {
    overflow: hidden;
    font-size: 14px;
    color: #6B7280;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/*
|--------------------------------------------------------------------------
| Topbar Profile Menu
|--------------------------------------------------------------------------
|
| Compact account dropdown trigger for the fixed topbar.
|
| The visible trigger stays small:
|
|     Avatar / Battle.net prestige marker / separate cog
|
| The richer account detail stays inside the dropdown panel.
|
*/

.pcoded-header .gms-topbar-profile-dropdown {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    margin-right: 18px;
}

.pcoded-header .gms-topbar-profile-trigger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    height: 44px;
    min-height: 44px;
    padding: 4px 6px !important;
    border: 1px solid rgba(25, 188, 191, 0.25);
    border-radius: 999px;
    background: #ffffff;
    color: #1f2937;
    text-decoration: none !important;
    box-shadow: none;
    overflow: visible;
    transition:
        border-color .15s ease,
        background .15s ease,
        color .15s ease;
}

.pcoded-header .gms-topbar-profile-trigger:hover,
.pcoded-header .gms-topbar-profile-trigger:focus,
.pcoded-header .gms-topbar-profile-trigger.show {
    border-color: rgba(25, 188, 191, 0.55);
    background: rgba(25, 188, 191, 0.08);
    color: #159B9D;
    box-shadow: none;
}

.pcoded-header .gms-topbar-profile-trigger::after {
    display: none !important;
}

/*
|--------------------------------------------------------------------------
| Topbar Avatar
|--------------------------------------------------------------------------
*/

.gms-topbar-profile-avatar-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
}

.gms-topbar-profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #19BCBF, #117E80);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
    line-height: 1;
}

/*
|--------------------------------------------------------------------------
| Topbar Cog Trigger
|--------------------------------------------------------------------------
*/

.gms-topbar-profile-cog {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-width: 30px;
    border: 1px solid rgba(25, 188, 191, 0.28);
    border-radius: 50%;
    background: rgba(25, 188, 191, 0.10);
    color: #159B9D;
    line-height: 1;
    transition:
        background .15s ease,
        color .15s ease,
        border-color .15s ease;
}

.gms-topbar-profile-trigger:hover .gms-topbar-profile-cog,
.gms-topbar-profile-trigger.show .gms-topbar-profile-cog {
    border-color: rgba(25, 188, 191, 0.48);
    background: #19BCBF;
    color: #ffffff;
}

.gms-topbar-profile-cog i {
    font-size: 13px;
    line-height: 1;
}

/*
|--------------------------------------------------------------------------
| Topbar Profile Dropdown Panel
|--------------------------------------------------------------------------
*/

.gms-topbar-profile-menu {
    width: 390px;
    max-width: calc(100vw - 24px);
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

.gms-topbar-profile-head {
    padding: 16px;
    background:
        linear-gradient(135deg, rgba(25, 188, 191, 0.14), rgba(17, 126, 128, 0.04));
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.gms-topbar-profile-head-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.gms-topbar-profile-head-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #19BCBF, #117E80);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .03em;
    box-shadow: 0 8px 18px rgba(25, 188, 191, 0.20);
}

.gms-topbar-profile-head-text {
    min-width: 0;
}

.gms-topbar-profile-head-text h6 {
    margin: 0 0 4px;
    overflow: hidden;
    color: #111827;
    font-size: 16px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gms-topbar-profile-head-text p {
    margin: 0;
    overflow: hidden;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gms-topbar-profile-head-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.gms-topbar-profile-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    background: #f8fafc;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.gms-topbar-profile-meta-item {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 10px;
    background: #ffffff;
}

.gms-topbar-profile-meta-item span {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .05em;
    line-height: 1;
    text-transform: uppercase;
}

.gms-topbar-profile-meta-item strong {
    display: block;
    overflow: hidden;
    color: #111827;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gms-topbar-profile-section {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.gms-topbar-profile-section-title {
    display: block;
    padding: 4px 10px 8px;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.gms-topbar-profile-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
}

.gms-topbar-profile-menu .dropdown-item i {
    width: 18px;
    color: #159B9D;
    text-align: center;
}

.gms-topbar-profile-menu .dropdown-item:hover,
.gms-topbar-profile-menu .dropdown-item:focus {
    background: rgba(25, 188, 191, 0.08);
    color: #159B9D;
}

/*
|--------------------------------------------------------------------------
| Topbar Logout
|--------------------------------------------------------------------------
*/

.gms-topbar-profile-footer {
    padding: 12px;
    background: #f8fafc;
}

.gms-topbar-profile-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 38px;
    border: 1px solid rgba(255, 71, 87, 0.22);
    border-radius: 10px;
    background: #ffffff;
    color: #ff4757;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.gms-topbar-profile-logout span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 71, 87, 0.10);
}

.gms-topbar-profile-logout i {
    font-size: 12px;
    line-height: 1;
}

.gms-topbar-profile-logout:hover,
.gms-topbar-profile-logout:focus {
    border-color: rgba(255, 71, 87, 0.38);
    background: rgba(255, 71, 87, 0.08);
    color: #dc2626;
}

.gms-topbar-profile-logout:hover span,
.gms-topbar-profile-logout:focus span {
    background: rgba(255, 71, 87, 0.16);
}

@media (max-width: 575px) {
    .pcoded-header .gms-topbar-profile-dropdown {
        margin-right: 8px;
    }

    .gms-topbar-profile-menu {
        width: calc(100vw - 24px);
    }

    .gms-topbar-profile-meta {
        grid-template-columns: 1fr;
    }
}

/*
|--------------------------------------------------------------------------
| Audit Log Filters
|--------------------------------------------------------------------------
*/

.audit-datepicker {
    height: 38px;
}

.audit-select2+.select2-container .select2-selection--single {
    height: 38px;
}

.audit-select2+.select2-container .select2-selection__rendered {
    line-height: 38px;
}

.audit-select2+.select2-container .select2-selection__arrow {
    height: 38px;
}

/*
|--------------------------------------------------------------------------
| Character Badges
|--------------------------------------------------------------------------
*/

.character-class-badge {
    border: 1px solid rgba(0, 0, 0, .15);
    font-weight: 600;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .25);
}

/*
|--------------------------------------------------------------------------
| Guild Rank Badges
|--------------------------------------------------------------------------
*/

.guild-rank-badge {
    font-weight: 600;
}

/*
|--------------------------------------------------------------------------
| Role Badges
|--------------------------------------------------------------------------
*/

.role-badge {
    border: 1px solid rgba(0, 0, 0, .10);
}

/*
|--------------------------------------------------------------------------
| 4. DATATABLES
|--------------------------------------------------------------------------
*/

.dataTables_filter,
.dataTables_length {
    margin-bottom: 15px;
}

.dataTables_filter input {
    min-width: 300px;
}

.dataTables_length select {
    min-width: 90px;
}

/*
|--------------------------------------------------------------------------
| GMS Table Standard
|--------------------------------------------------------------------------
|
| This is the reusable table style for normal GMS admin tables.
|
| Goals:
|
| - Fit cleanly at 1080p
| - Avoid page-level horizontal scrolling
| - Avoid DataTables stacked child rows for standard admin tables
| - Keep text readable using truncation and tooltips
| - Keep action columns narrow using a single dropdown button
|
*/

.gms-table-wrap,
.gms-table-fit-wrap {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.gms-table-wrap .dataTables_wrapper,
.gms-table-fit-wrap .dataTables_wrapper {
    overflow: visible;
}

.gms-datatable-fit,
.gms-table-compact {
    width: 100% !important;
    max-width: 100%;
    table-layout: fixed;
    font-size: 11.5px;
}

.gms-datatable-fit th,
.gms-datatable-fit td,
.gms-table-compact th,
.gms-table-compact td {
    vertical-align: middle;
    white-space: normal;
    overflow: hidden;
}

.gms-datatable-fit th,
.gms-table-compact th {
    padding: 0.5rem 0.35rem;
    font-size: 10.5px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.gms-datatable-fit td,
.gms-table-compact td {
    padding: 0.45rem 0.35rem;
}

.gms-datatable-fit code,
.gms-table-compact code {
    display: block;
    max-width: 100%;
    font-size: 10px;
    line-height: 1.25;
    white-space: nowrap;
}

.gms-datatable-fit .badge,
.gms-table-compact .badge {
    max-width: 100%;
    line-height: 1.25;
}

.gms-table-title,
.gms-table-code,
.gms-table-short {
    max-width: 100%;
}

.gms-table-title {
    font-weight: 700;
}

.gms-table-code {
    font-size: 10px;
}

.gms-table-short {
    font-size: 11px;
}

/*
|--------------------------------------------------------------------------
| GMS Table Icon Badges
|--------------------------------------------------------------------------
|
| Small icon-only badges used under table titles.
|
| These are stronger than the default badge-light-* colours so they remain
| readable in compact 1080p tables.
|
*/

.gms-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 22px;
    min-width: 24px;
    padding: 0;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1;
}

.gms-icon-badge i {
    font-size: 11px;
    line-height: 1;
}

.gms-icon-badge-info {
    border: 1px solid rgba(25, 188, 191, .45);
    background: rgba(25, 188, 191, .16);
    color: #159B9D;
}

.gms-icon-badge-primary {
    border: 1px solid rgba(24, 170, 255, .45);
    background: rgba(24, 170, 255, .16);
    color: #0878B8;
}

.gms-icon-badge-warning {
    border: 1px solid rgba(255, 193, 7, .55);
    background: rgba(255, 193, 7, .22);
    color: #8A5D00;
}

.gms-icon-badge-danger {
    border: 1px solid rgba(234, 153, 153, .65);
    background: rgba(234, 153, 153, .22);
    color: #B42318;
}

.gms-icon-badge-success {
    border: 1px solid rgba(25, 135, 84, .45);
    background: rgba(25, 135, 84, .14);
    color: #146C43;
}

/*
|--------------------------------------------------------------------------
| GMS Table Icon Actions
|--------------------------------------------------------------------------
|
| Used by older modules that still have visible icon action buttons.
|
| Newer table layouts should prefer the single dropdown pattern below.
|
*/

.gms-table-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3px;
    width: 78px;
    max-width: 100%;
    white-space: normal;
}

.gms-table-actions .btn-icon {
    width: 25px;
    height: 25px;
    min-width: 25px;
    padding: 0;
    border-radius: 6px;
}

.gms-table-actions .btn-icon i {
    font-size: 11px;
}

/*
|--------------------------------------------------------------------------
| GMS Table Dropdown Actions
|--------------------------------------------------------------------------
|
| Preferred action pattern for 1080p-friendly tables.
|
| Parent button:
|
|     Actions ▼
|
| Dropdown items:
|
|     View
|     Edit
|     Run
|     Disable
|
*/


.gms-table-action-dropdown .gms-table-action-single::after {
    margin-left: 6px;
    vertical-align: middle;
}

.gms-table-action-menu {
    min-width: 190px;
    z-index: 1060;
}

.gms-table-action-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.gms-table-action-menu .dropdown-item i {
    width: 16px;
    text-align: center;
}

.gms-table-action-menu .dropdown-divider {
    margin: 0.35rem 0;
}

/*
|--------------------------------------------------------------------------
| GMS Table Dropdown Visibility
|--------------------------------------------------------------------------
|
| Compact tables hide overflow by default so long text does not break the
| 1080p layout.
|
| Action cells are the exception because Bootstrap dropdown menus need to
| escape the table cell.
|
*/

.gms-datatable-fit td.gms-table-action-cell,
.gms-table-compact td.gms-table-action-cell {
    overflow: visible;
}

.gms-datatable-fit td.gms-table-action-cell .dropdown-menu,
.gms-table-compact td.gms-table-action-cell .dropdown-menu {
    z-index: 1080;
}

/*
|--------------------------------------------------------------------------
| Empty DataTable States
|--------------------------------------------------------------------------
*/


.gms-empty-state i {
    display: block;
    color: #19BCBF;
    font-size: 42px;
    line-height: 1;
}

.gms-empty-state h6 {
    margin: 0;
    font-weight: 600;
}

.gms-empty-state p {
    margin: 0;
    color: #6c757d;
}

/*
|--------------------------------------------------------------------------
| DataTables 1080p Adjustments
|--------------------------------------------------------------------------
*/

@media (max-width: 1199.98px) {
    .dataTables_filter input {
        min-width: 220px;
    }

    .gms-datatable-fit,
    .gms-table-compact {
        font-size: 11.5px;
    }

    .gms-datatable-fit th,
    .gms-table-compact th {
        padding: 0.5rem 0.35rem;
        font-size: 10.5px;
    }

    .gms-datatable-fit td,
    .gms-table-compact td {
        padding: 0.45rem 0.35rem;
    }

    .gms-table-actions {
        gap: 2px;
        width: 72px;
    }

    .gms-table-actions .btn-icon {
        width: 23px;
        height: 23px;
        min-width: 23px;
    }

    .gms-table-actions .btn-icon i {
        font-size: 11px;
    }

    .gms-table-action-dropdown .gms-table-action-single {
        min-width: 70px;
        height: 28px;
        min-height: 28px;
        padding: 0 7px !important;
        font-size: 11px;
    }
}

@media (max-width: 991.98px) {
    .dataTables_filter input {
        min-width: 160px;
    }
}

/*
|--------------------------------------------------------------------------
| Documentation Sidebar
|--------------------------------------------------------------------------
*/

.gms-doc-sidebar .list-group-item {
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.gms-doc-sidebar .list-group-item:hover {
    border-left-color: #19BCBF;
}

.gms-doc-sidebar .list-group-item.active {
    background-color: #19BCBF;
    border-color: #19BCBF;
    color: #FFFFFF;
}

.gms-doc-sidebar .list-group-item.active i {
    color: #FFFFFF;
}

/*
|--------------------------------------------------------------------------
| Role Permissions Sticky Action Bar
|--------------------------------------------------------------------------
*/

.role-permissions-action-bar {
    position: sticky;
    top: 70px;
    z-index: 100;
    padding: 15px 18px;
    margin-bottom: 20px;
    border: 1px solid #dbe0e5;
    border-radius: 6px;
    background: #ffffff;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, .08);
}

/*
|--------------------------------------------------------------------------
| Role Permissions Sticky Sidebar
|--------------------------------------------------------------------------
*/

.role-permissions-sidebar {
    position: sticky;
    top: 70px;
    align-self: flex-start;
    z-index: 90;
}

/*
|--------------------------------------------------------------------------
| Role Permission Group Headers
|--------------------------------------------------------------------------
*/

.role-permission-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 1px solid #dbe0e5;
    border-radius: 8px;
    background: #f8fafc;
}

.role-permission-group-toggle {
    color: #111827;
    text-decoration: none;
}

.role-permission-group-toggle:hover {
    color: #19BCBF;
    text-decoration: none;
}

.role-permission-group-toggle-icon {
    width: 16px;
    text-align: center;
}

/*
|--------------------------------------------------------------------------
| Role Permission Tiles
|--------------------------------------------------------------------------
*/

.role-permission-tile {
    position: relative;
    overflow: hidden;
    border: 1px solid #dbe0e5;
    border-left: 4px solid transparent;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease,
        background .2s ease;
}

.role-permission-tile:hover {
    transform: translateY(-1px);
    box-shadow:
        0 6px 18px rgba(15, 23, 42, .08);
}

.role-permission-tile-assigned {
    border-color: rgba(25, 188, 191, .45);
    border-left-color: #19BCBF;
    background: #ffffff;
    box-shadow:
        0 4px 14px rgba(25, 188, 191, .10);
}

.role-permission-tile-changed {
    border-top-color: rgba(255, 193, 7, .75);
    border-right-color: rgba(255, 193, 7, .75);
    border-bottom-color: rgba(255, 193, 7, .75);
}

/*
|--------------------------------------------------------------------------
| Role Permission Badges
|--------------------------------------------------------------------------
*/

.role-permission-assigned-badge,
.role-permission-risk-badge,
.role-permission-changed-badge {
    flex-shrink: 0;
    white-space: nowrap;
}

/*
|--------------------------------------------------------------------------
| Role Permission Text Wrapping
|--------------------------------------------------------------------------
*/

.role-permission-tile code {
    font-size: 12px;
    white-space: normal;
    overflow-wrap: anywhere;
}

/*
|--------------------------------------------------------------------------
| Loot Tables
|--------------------------------------------------------------------------
*/

.loot-table {
    width: 100%;
    table-layout: fixed;
}

.loot-table th,
.loot-table td {
    vertical-align: middle;
    white-space: normal;
}

.loot-table tbody tr {
    min-height: 64px;
}

/*
|--------------------------------------------------------------------------
| Loot Table Column Widths
|--------------------------------------------------------------------------
*/

.loot-table th:nth-child(1),
.loot-table td:nth-child(1) {
    width: 18%;
}

.loot-table th:nth-child(2),
.loot-table td:nth-child(2) {
    width: 32%;
}

.loot-table th:nth-child(3),
.loot-table td:nth-child(3) {
    width: 18%;
}

.loot-table th:nth-child(4),
.loot-table td:nth-child(4) {
    width: 12%;
}

.loot-table th:nth-child(5),
.loot-table td:nth-child(5) {
    width: 14%;
}

.loot-table th:nth-child(6),
.loot-table td:nth-child(6) {
    width: 6%;
    text-align: right;
}

/*
|--------------------------------------------------------------------------
| Loot Table Badges
|--------------------------------------------------------------------------
*/

.loot-table .badge {
    max-width: 100%;
    line-height: 1.35;
    white-space: normal;
}

/*
|--------------------------------------------------------------------------
| Loot Table Text Wrapping
|--------------------------------------------------------------------------
*/

.loot-table strong,
.loot-table small,
.loot-table span,
.loot-table div {
    overflow-wrap: anywhere;
    word-break: normal;
}

/*
|--------------------------------------------------------------------------
| Loot Import View Table
|--------------------------------------------------------------------------
*/

.loot-import-view-table {
    width: 100%;
    table-layout: fixed;
}

.loot-import-view-table th,
.loot-import-view-table td {
    vertical-align: middle;
    white-space: normal;
}

.loot-import-view-table th:nth-child(1),
.loot-import-view-table td:nth-child(1) {
    width: 22%;
}

.loot-import-view-table th:nth-child(2),
.loot-import-view-table td:nth-child(2) {
    width: 30%;
}

.loot-import-view-table th:nth-child(3),
.loot-import-view-table td:nth-child(3) {
    width: 16%;
}

.loot-import-view-table th:nth-child(4),
.loot-import-view-table td:nth-child(4) {
    width: 16%;
}

.loot-import-view-table th:nth-child(5),
.loot-import-view-table td:nth-child(5) {
    width: 16%;
}

.loot-import-view-table strong,
.loot-import-view-table small,
.loot-import-view-table span,
.loot-import-view-table div {
    overflow-wrap: anywhere;
    word-break: normal;
}

/*
|--------------------------------------------------------------------------
| Loot Item Display
|--------------------------------------------------------------------------
*/

.loot-item-wrap {
    max-width: 100%;
}

.loot-item-name {
    font-weight: 700;
    text-shadow:
        0 1px 1px rgba(0, 0, 0, .25);
}

.loot-item-id {
    font-size: 11px;
}

/*
|--------------------------------------------------------------------------
| Loot Item Badges
|--------------------------------------------------------------------------
*/

.loot-warband-badge {
    border: 1px solid rgba(0, 204, 255, .45);
    background: rgba(0, 204, 255, .12);
    color: #00ccff;
    font-weight: 700;
}

.loot-bonus-badge {
    border: 1px solid rgba(255, 193, 7, .45);
    background: rgba(255, 193, 7, .15);
    color: #9a6a00;
    font-weight: 700;
}

/*
|--------------------------------------------------------------------------
| Loot Notes
|--------------------------------------------------------------------------
*/

.loot-note {
    display: inline-block;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 4px;
    background: #fff3cd;
    color: #664d03;
    font-size: 12px;
    line-height: 1.35;
    white-space: normal;
}

/*
|--------------------------------------------------------------------------
| Warbound / Warband Items
|--------------------------------------------------------------------------
*/

.loot-item-warband {
    font-weight: 700;
}

/*
|--------------------------------------------------------------------------
| Loot Import Loading Overlay
|--------------------------------------------------------------------------
*/

.loot-import-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .78);
    backdrop-filter: blur(5px);
}

.loot-import-loading-overlay.show {
    display: flex;
}

.loot-import-loading-card {
    width: min(460px, calc(100% - 40px));
    padding: 34px;
    border-radius: 18px;
    background: #ffffff;
    text-align: center;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, .35);
}

.loot-import-loading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: rgba(25, 188, 191, .12);
    color: #19BCBF;
}

.loot-import-loading-message {
    min-height: 24px;
    font-size: 15px;
}

/*
|--------------------------------------------------------------------------
| 8. CLASS / SPEC COMBOS
|--------------------------------------------------------------------------
|
| Used on:
|
| /pages/class_spec_combos.php
|
*/

/*
|--------------------------------------------------------------------------
| Class Role Matrix Table
|--------------------------------------------------------------------------
*/

.class-role-matrix-table th,
.class-role-matrix-table td {
    padding: 0.45rem 0.65rem;
    vertical-align: middle;
}

/*
|--------------------------------------------------------------------------
| Spec Role Mapping Table
|--------------------------------------------------------------------------
*/

.spec-role-mapping-table th,
.spec-role-mapping-table td {
    vertical-align: middle;
}

/*
|--------------------------------------------------------------------------
| Mapping Validation Badges
|--------------------------------------------------------------------------
*/

.mapping-valid-badge,
.mapping-warning-badge {
    font-weight: 600;
}

/*
|--------------------------------------------------------------------------
| Settings Table Meta Buttons
|--------------------------------------------------------------------------
*/

.setting-meta-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    padding: 0;
}

.setting-meta-btn i {
    font-size: 12px;
}

/*
|--------------------------------------------------------------------------
| Select2 Multiple Filter Placeholder Fix
|--------------------------------------------------------------------------
*/

.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
    width: 100% !important;
    min-width: 140px;
}

/*
|--------------------------------------------------------------------------
| Attendance View
|--------------------------------------------------------------------------
*/

.attendance-view-sticky-actions {
    position: fixed;
    top: 76px;
    left: 280px;
    right: 22px;
    z-index: 1020;
    padding: 10px 16px;
    border: 1px solid #dbe0e5;
    border-radius: 6px;
    background: #ffffff;
    box-shadow:
        0 3px 10px rgba(0, 0, 0, .06);
}

.attendance-view-sticky-actions-spacer {
    height: 12px;
}

@media (max-width: 991.98px) {
    .attendance-view-sticky-actions {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        margin-bottom: 12px;
    }

    .attendance-view-sticky-actions-spacer {
        display: none;
    }
}

/*
|--------------------------------------------------------------------------
| Attendance View Row States
|--------------------------------------------------------------------------
*/

.attendance-row-unmatched {
    background:
        rgba(255, 193, 7, .08);
}

.attendance-row-unmatched:hover {
    background:
        rgba(255, 193, 7, .14);
}

.attendance-row-manual {
    background:
        rgba(25, 188, 191, .08);
}

.attendance-row-manual:hover {
    background:
        rgba(25, 188, 191, .14);
}

/*
|--------------------------------------------------------------------------
| Attendance Import Preview
|--------------------------------------------------------------------------
*/

.attendance-import-preview-table-wrap {
    max-height: 520px;
    overflow-y: auto;
}

.attendance-import-preview-table {
    width: 100%;
    table-layout: fixed;
}

.attendance-import-preview-table th,
.attendance-import-preview-table td {
    vertical-align: middle;
    white-space: normal;
}

.attendance-import-preview-table th:nth-child(1),
.attendance-import-preview-table td:nth-child(1) {
    width: 22%;
}

.attendance-import-preview-table th:nth-child(2),
.attendance-import-preview-table td:nth-child(2) {
    width: 24%;
}

.attendance-import-preview-table th:nth-child(3),
.attendance-import-preview-table td:nth-child(3) {
    width: 18%;
}

.attendance-import-preview-table th:nth-child(4),
.attendance-import-preview-table td:nth-child(4) {
    width: 26%;
}

.attendance-import-preview-table th:nth-child(5),
.attendance-import-preview-table td:nth-child(5) {
    width: 10%;
}

.attendance-import-preview-table-head {
    position: sticky;
    top: 0;
    z-index: 2;
}

.attendance-import-preview-table strong,
.attendance-import-preview-table small,
.attendance-import-preview-table span,
.attendance-import-preview-table div {
    overflow-wrap: anywhere;
    word-break: normal;
}

/*
|--------------------------------------------------------------------------
| GMS Time Inputs
|--------------------------------------------------------------------------
|
| Used by Cron Scheduler modal time controls.
|
| Native browser time inputs can be awkward because the popup itself is partly
| controlled by the browser/OS, but this keeps the visible field, focus ring,
| icon and supported accent colour aligned with the GMS primary colour.
|
*/

.gms-time-control,
input[type="time"].gms-time-control {
    border-color: #d9e2ec;
    background-color: #ffffff;
    color: #263238;
    accent-color: #19BCBF;
}

.gms-time-control:focus,
input[type="time"].gms-time-control:focus {
    border-color: #19BCBF;
    box-shadow: 0 0 0 0.2rem rgba(25, 188, 191, 0.18);
    outline: 0;
}

.gms-time-control::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.75;
    filter: hue-rotate(130deg) saturate(1.4);
}

.gms-time-control::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/*
|--------------------------------------------------------------------------
| Flatpickr / Time Picker Primary Overrides
|--------------------------------------------------------------------------
|
| Safe to keep here even if a page is only using native time inputs.
| If Cron Scheduler later moves to Flatpickr time controls, these prevent the
| default blue selected state appearing.
|
*/

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: #19BCBF;
    border-color: #19BCBF;
}

.flatpickr-day.today {
    border-color: #19BCBF;
}

.flatpickr-time input:hover,
.flatpickr-time input:focus {
    background: rgba(25, 188, 191, 0.08);
}

/*
|--------------------------------------------------------------------------
| 11. PROGRESS BARS
|--------------------------------------------------------------------------
*/

.gms-progress-bar-primary {
    background-color: #19BCBF !important;
}

/*
|--------------------------------------------------------------------------
| 12. CRON SCHEDULER RUN DETAILS
|--------------------------------------------------------------------------
*/

.gms-run-summary-card {
    position: relative;
    min-height: 118px;
    border: 0 !important;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(35, 46, 60, 0.08);
}

.gms-run-summary-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: #19BCBF;
}

.gms-run-summary-card .gms-run-summary-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(25, 188, 191, 0.12);
    color: #19BCBF;
}

.gms-run-summary-card .gms-run-summary-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
}

.gms-run-summary-card .gms-run-summary-value {
    font-size: 21px;
    font-weight: 800;
    color: #1f2933;
}

.gms-run-summary-card .gms-run-summary-subtext {
    font-size: 12px;
    color: #6c757d;
}

.gms-processor-run-card {
    border: 1px solid #e5e9f2;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(35, 46, 60, 0.06);
}

.gms-processor-run-metric {
    border-radius: 12px;
    background: #f8fafc;
    padding: 12px;
    text-align: center;
}

.gms-processor-run-metric small {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
}

.gms-processor-run-metric strong {
    display: block;
    margin-top: 2px;
    font-size: 18px;
    color: #1f2933;
}

/*
|--------------------------------------------------------------------------
| 13. CRON SCHEDULER TABLES
|--------------------------------------------------------------------------
|
| Module-specific column widths for:
|
|     /pages/cron_scheduler.php
|
| The generic table behaviour comes from the DataTables section above.
|
*/

.gms-cron-scheduler-table .gms-cron-col-id {
    width: 4%;
}

.gms-cron-scheduler-table .gms-cron-col-job {
    width: 28%;
}

.gms-cron-scheduler-table .gms-cron-col-target {
    width: 19%;
}

.gms-cron-scheduler-table .gms-cron-col-schedule {
    width: 13%;
}

.gms-cron-scheduler-table .gms-cron-col-next-run {
    width: 10%;
}

.gms-cron-scheduler-table .gms-cron-col-last-result {
    width: 12%;
}

.gms-cron-scheduler-table .gms-cron-col-status {
    width: 7%;
}

.gms-cron-scheduler-table .gms-cron-col-actions {
    width: 7%;
}

.gms-cron-scheduler-table td:nth-child(1),
.gms-cron-scheduler-table th:nth-child(1),
.gms-cron-scheduler-table td:nth-child(5),
.gms-cron-scheduler-table th:nth-child(5),
.gms-cron-scheduler-table td:nth-child(6),
.gms-cron-scheduler-table th:nth-child(6),
.gms-cron-scheduler-table td:nth-child(7),
.gms-cron-scheduler-table th:nth-child(7),
.gms-cron-scheduler-table td:nth-child(8),
.gms-cron-scheduler-table th:nth-child(8) {
    text-align: center;
}

.gms-cron-scheduler-table td:nth-child(1) {
    font-size: 11px;
    color: #6B7280;
}

.gms-cron-scheduler-table td:nth-child(5) {
    font-size: 11px;
    white-space: nowrap;
}

.gms-cron-scheduler-table td:nth-child(6) .badge,
.gms-cron-scheduler-table td:nth-child(7) .badge {
    padding: 0.25rem 0.4rem;
    font-size: 10px;
}

.gms-cron-scheduler-table td:nth-child(6) .gms-icon-badge {
    width: 21px;
    height: 20px;
    min-width: 21px;
    font-size: 10px;
}

.gms-cron-scheduler-table td:nth-child(8) {
    overflow: visible;
}

.gms-cron-scheduler-table td:nth-child(8) .dropdown-menu {
    text-align: left;
}

/*
|--------------------------------------------------------------------------
| 14. API POSTS TABLES
|--------------------------------------------------------------------------
|
| Module-specific fixes for:
|
|     /pages/api_posts.php
|
*/

.gms-api-posts-table td.gms-table-action-cell {
    overflow: visible;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.gms-api-posts-table .gms-table-action-dropdown {
    width: 100%;
}

.gms-api-posts-table .gms-table-action-dropdown .gms-table-action-single {
    min-width: 68px;
    max-width: 100%;
}

/*
|--------------------------------------------------------------------------
| Bootstrap Scrollable Modal Form Wrapper Fix
|--------------------------------------------------------------------------
|
| Bootstrap's .modal-dialog-scrollable expects the modal body to be able to
| shrink and scroll.
|
| Some GMS modals place the form directly inside .modal-content:
|
|     .modal-content > form > .modal-body
|
| Without making that form a flex column, the modal body cannot become the
| scrollable area properly.
|
| This is deliberately scoped to scrollable modals only.
|
*/

.modal-dialog-scrollable .modal-content>form {
    display: flex;
    flex-direction: column;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
}

.modal-dialog-scrollable .modal-content>form>.modal-header,
.modal-dialog-scrollable .modal-content>form>.modal-footer {
    flex: 0 0 auto;
}

.modal-dialog-scrollable .modal-content>form>.modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/*
|--------------------------------------------------------------------------
| API Posts 1080p Wizard
|--------------------------------------------------------------------------
|
| This is deliberately scoped to the API Posts Add/Edit modals.
|
| It only becomes visible when JavaScript adds:
|
|     .gms-api-post-wizard-active
|
| to the modal.
|
*/


/*
|--------------------------------------------------------------------------
| API Posts Modal Form Scroll Support
|--------------------------------------------------------------------------
|
| Scoped fix only for API Posts modals.
|
| The API Posts modals put the form directly inside .modal-content.
| This keeps Bootstrap's scrollable modal behaviour working without applying
| broad global modal overrides.
|
*/


/*
|--------------------------------------------------------------------------
| API Posts 1080p Wizard
|--------------------------------------------------------------------------
|
| Scoped only to API Posts Add/Edit modals.
|
| JavaScript adds:
|
|     .gms-api-post-wizard-active
|
| only when the viewport looks like a 1920 x 1080 desktop working area.
|
*/

/*
|--------------------------------------------------------------------------
| API Posts Scrollable Form Support
|--------------------------------------------------------------------------
|
| API Posts modals put the form directly inside .modal-content.
|
| Bootstrap's .modal-dialog-scrollable expects .modal-body to be able to
| shrink and scroll. This makes the form behave like the missing flex wrapper.
|
*/

#addApiPostModal .modal-content>form,
[id^="editApiPostModal"] .modal-content>form {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 3.5rem);
    min-height: 0;
    overflow: hidden;
}

#addApiPostModal .modal-content>form>.modal-header,
#addApiPostModal .modal-content>form>.modal-footer,
[id^="editApiPostModal"] .modal-content>form>.modal-header,
[id^="editApiPostModal"] .modal-content>form>.modal-footer {
    flex: 0 0 auto;
}

#addApiPostModal .modal-content>form>.modal-body,
[id^="editApiPostModal"] .modal-content>form>.modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/*
|--------------------------------------------------------------------------
| API Posts Wizard Modal Shell
|--------------------------------------------------------------------------
*/

#addApiPostModal.gms-api-post-wizard-active .modal-dialog,
[id^="editApiPostModal"].gms-api-post-wizard-active .modal-dialog {
    max-width: min(1140px, calc(100vw - 64px));
}

#addApiPostModal.gms-api-post-wizard-active .modal-content,
[id^="editApiPostModal"].gms-api-post-wizard-active .modal-content {
    border-radius: 4px;
}

#addApiPostModal.gms-api-post-wizard-active .modal-header,
[id^="editApiPostModal"].gms-api-post-wizard-active .modal-header {
    padding: 1.25rem 1.5rem;
}

#addApiPostModal.gms-api-post-wizard-active .modal-body,
[id^="editApiPostModal"].gms-api-post-wizard-active .modal-body {
    padding: 1rem 1.5rem;
}


/*
|--------------------------------------------------------------------------
| API Posts Wizard Bar
|--------------------------------------------------------------------------
*/

#addApiPostModal .gms-api-post-wizard-bar,
[id^="editApiPostModal"] .gms-api-post-wizard-bar {
    display: none;
}

#addApiPostModal.gms-api-post-wizard-active .gms-api-post-wizard-bar,
[id^="editApiPostModal"].gms-api-post-wizard-active .gms-api-post-wizard-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    background: #f8fafc;
    overflow-x: auto;
}

#addApiPostModal .gms-api-post-wizard-step-button,
[id^="editApiPostModal"] .gms-api-post-wizard-step-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    width: 210px;
    min-width: 210px;
    min-height: 34px;
    padding: 0.35rem 0.85rem;
    border: 1px solid #dbe0e5;
    border-radius: 999px;
    background: #ffffff;
    color: #6B7280;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease,
        box-shadow .15s ease;
}

#addApiPostModal .gms-api-post-wizard-step-button span,
[id^="editApiPostModal"] .gms-api-post-wizard-step-button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 1px solid #dbe0e5;
    border-radius: 50%;
    background: #eef3f7;
    color: #6B7280;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

#addApiPostModal .gms-api-post-wizard-step-button strong,
[id^="editApiPostModal"] .gms-api-post-wizard-step-button strong {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-overflow: ellipsis;
}

#addApiPostModal .gms-api-post-wizard-step-button.active,
[id^="editApiPostModal"] .gms-api-post-wizard-step-button.active {
    border-color: rgba(25, 188, 191, 0.55);
    background: rgba(25, 188, 191, 0.10);
    color: #159B9D;
    box-shadow:
        inset 3px 0 0 #19BCBF;
}

#addApiPostModal .gms-api-post-wizard-step-button.active span,
[id^="editApiPostModal"] .gms-api-post-wizard-step-button.active span {
    border-color: rgba(25, 188, 191, 0.55);
    background: #ffffff;
    color: #159B9D;
}

/*
|--------------------------------------------------------------------------
| API Posts Wizard Layout
|--------------------------------------------------------------------------
*/

#addApiPostModal.gms-api-post-wizard-active .modal-body>.row,
[id^="editApiPostModal"].gms-api-post-wizard-active .modal-body>.row {
    display: flex;
    align-items: stretch;
}

#addApiPostModal.gms-api-post-wizard-active .modal-body>.row>[class*="col-lg-"],
[id^="editApiPostModal"].gms-api-post-wizard-active .modal-body>.row>[class*="col-lg-"] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}

#addApiPostModal.gms-api-post-wizard-active .gms-api-post-wizard-column-empty,
[id^="editApiPostModal"].gms-api-post-wizard-active .gms-api-post-wizard-column-empty {
    display: none;
}

#addApiPostModal.gms-api-post-wizard-active .gms-api-post-wizard-hidden,
[id^="editApiPostModal"].gms-api-post-wizard-active .gms-api-post-wizard-hidden {
    display: none !important;
}

#addApiPostModal.gms-api-post-wizard-active .gms-api-post-wizard-card,
[id^="editApiPostModal"].gms-api-post-wizard-active .gms-api-post-wizard-card {
    margin-bottom: 1rem !important;
}

#addApiPostModal.gms-api-post-wizard-active .gms-api-post-wizard-card:last-child,
[id^="editApiPostModal"].gms-api-post-wizard-active .gms-api-post-wizard-card:last-child {
    margin-bottom: 0 !important;
}

/*
|--------------------------------------------------------------------------
| API Posts Wizard Step 2 Workspace
|--------------------------------------------------------------------------
|
| Request + Variables needs both columns visible.
|
| The request template remains on the left where it already exists in PHP.
| Variables/helper cards remain on the right where they already exist in PHP.
|
*/

#addApiPostModal.gms-api-post-wizard-active[data-api-post-wizard-step="1"] .modal-body>.row,
[id^="editApiPostModal"].gms-api-post-wizard-active[data-api-post-wizard-step="1"] .modal-body>.row {
    display: flex;
    gap: 0;
}

#addApiPostModal.gms-api-post-wizard-active[data-api-post-wizard-step="1"] .modal-body>.row>.col-lg-8,
[id^="editApiPostModal"].gms-api-post-wizard-active[data-api-post-wizard-step="1"] .modal-body>.row>.col-lg-8 {
    width: 68%;
    max-width: 68%;
    flex: 0 0 68%;
}

#addApiPostModal.gms-api-post-wizard-active[data-api-post-wizard-step="1"] .modal-body>.row>.col-lg-4,
[id^="editApiPostModal"].gms-api-post-wizard-active[data-api-post-wizard-step="1"] .modal-body>.row>.col-lg-4 {
    width: 32%;
    max-width: 32%;
    flex: 0 0 32%;
}

/*
|--------------------------------------------------------------------------
| API Posts Wizard Footer
|--------------------------------------------------------------------------
*/

#addApiPostModal .gms-api-post-wizard-previous,
#addApiPostModal .gms-api-post-wizard-next,
[id^="editApiPostModal"] .gms-api-post-wizard-previous,
[id^="editApiPostModal"] .gms-api-post-wizard-next {
    min-width: 110px;
}

#addApiPostModal.gms-api-post-wizard-active .modal-footer,
[id^="editApiPostModal"].gms-api-post-wizard-active .modal-footer {
    gap: 0.5rem;
}

#addApiPostModal.gms-api-post-wizard-active .modal-footer .btn-light,
[id^="editApiPostModal"].gms-api-post-wizard-active .modal-footer .btn-light {
    margin-right: auto;
}

/*
|--------------------------------------------------------------------------
| API Requests Table
|--------------------------------------------------------------------------
|
| Module-specific table widths and action dropdown fixes for:
|
|     /pages/api_requests.php
|
*/

.gms-api-requests-table .gms-api-col-request {
    width: 20%;
}

.gms-api-requests-table .gms-api-col-provider {
    width: 8%;
}

.gms-api-requests-table .gms-api-col-method {
    width: 5%;
}

.gms-api-requests-table .gms-api-col-auth {
    width: 7%;
}

.gms-api-requests-table .gms-api-col-variables {
    width: 9%;
}

.gms-api-requests-table .gms-api-col-storage {
    width: 7%;
}

.gms-api-requests-table .gms-api-col-freshness {
    width: 9%;
}

.gms-api-requests-table .gms-api-col-compare {
    width: 9%;
}

.gms-api-requests-table .gms-api-col-last-result {
    width: 8%;
}

.gms-api-requests-table .gms-api-col-status {
    width: 6%;
}

.gms-api-requests-table .gms-api-col-last-run {
    width: 6%;
}

.gms-api-requests-table .gms-api-col-actions {
    width: 6%;
}

.gms-api-requests-table td.gms-table-action-cell {
    overflow: visible;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.gms-api-requests-table .gms-table-action-dropdown {
    width: 100%;
}

.gms-api-requests-table .gms-table-action-dropdown .gms-table-action-single {
    min-width: 68px;
    max-width: 100%;
}

/*
|--------------------------------------------------------------------------
| API Requests 1080p Wizard
|--------------------------------------------------------------------------
|
| Scoped only to API Requests Add/Edit modals.
|
| JavaScript adds:
|
|     .gms-api-request-wizard-active
|
| only when the viewport looks like a 1920 x 1080 desktop working area.
|
*/

/*
|--------------------------------------------------------------------------
| API Requests Scrollable Form Support
|--------------------------------------------------------------------------
|
| API Requests modals put the form directly inside .modal-content.
|
| This makes the form behave like Bootstrap's expected modal scroll wrapper,
| without applying global modal overrides.
|
*/

#addApiRequestModal .modal-content>form,
[id^="editApiRequestModal"] .modal-content>form {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 3.5rem);
    min-height: 0;
    overflow: hidden;
}

#addApiRequestModal .modal-content>form>.modal-header,
#addApiRequestModal .modal-content>form>.modal-footer,
[id^="editApiRequestModal"] .modal-content>form>.modal-header,
[id^="editApiRequestModal"] .modal-content>form>.modal-footer {
    flex: 0 0 auto;
}

#addApiRequestModal .modal-content>form>.modal-body,
[id^="editApiRequestModal"] .modal-content>form>.modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/*
|--------------------------------------------------------------------------
| API Requests Wizard Modal Shell
|--------------------------------------------------------------------------
*/

#addApiRequestModal.gms-api-request-wizard-active .modal-dialog,
[id^="editApiRequestModal"].gms-api-request-wizard-active .modal-dialog {
    max-width: min(1140px, calc(100vw - 64px));
}

#addApiRequestModal.gms-api-request-wizard-active .modal-content,
[id^="editApiRequestModal"].gms-api-request-wizard-active .modal-content {
    border-radius: 4px;
}

#addApiRequestModal.gms-api-request-wizard-active .modal-header,
[id^="editApiRequestModal"].gms-api-request-wizard-active .modal-header {
    padding: 1.25rem 1.5rem;
}

#addApiRequestModal.gms-api-request-wizard-active .modal-body,
[id^="editApiRequestModal"].gms-api-request-wizard-active .modal-body {
    padding: 1rem 1.5rem;
}

#addApiRequestModal.gms-api-request-wizard-active .modal-footer,
[id^="editApiRequestModal"].gms-api-request-wizard-active .modal-footer {
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: #ffffff;
}

#addApiRequestModal.gms-api-request-wizard-active .modal-footer .btn-light,
[id^="editApiRequestModal"].gms-api-request-wizard-active .modal-footer .btn-light {
    margin-right: auto;
}

/*
|--------------------------------------------------------------------------
| API Requests Wizard Bar
|--------------------------------------------------------------------------
*/

#addApiRequestModal .gms-api-request-wizard-bar,
[id^="editApiRequestModal"] .gms-api-request-wizard-bar {
    display: none;
}

#addApiRequestModal.gms-api-request-wizard-active .gms-api-request-wizard-bar,
[id^="editApiRequestModal"].gms-api-request-wizard-active .gms-api-request-wizard-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    background: #f8fafc;
    overflow-x: auto;
}

#addApiRequestModal .gms-api-request-wizard-step-button,
[id^="editApiRequestModal"] .gms-api-request-wizard-step-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    width: 210px;
    min-width: 210px;
    min-height: 34px;
    padding: 0.35rem 0.85rem;
    border: 1px solid #dbe0e5;
    border-radius: 999px;
    background: #ffffff;
    color: #6B7280;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease,
        box-shadow .15s ease;
}

#addApiRequestModal .gms-api-request-wizard-step-button span,
[id^="editApiRequestModal"] .gms-api-request-wizard-step-button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 1px solid #dbe0e5;
    border-radius: 50%;
    background: #eef3f7;
    color: #6B7280;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

#addApiRequestModal .gms-api-request-wizard-step-button strong,
[id^="editApiRequestModal"] .gms-api-request-wizard-step-button strong {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-overflow: ellipsis;
}

#addApiRequestModal .gms-api-request-wizard-step-button.active,
[id^="editApiRequestModal"] .gms-api-request-wizard-step-button.active {
    border-color: rgba(25, 188, 191, 0.55);
    background: rgba(25, 188, 191, 0.10);
    color: #159B9D;
    box-shadow:
        inset 3px 0 0 #19BCBF;
}

#addApiRequestModal .gms-api-request-wizard-step-button.active span,
[id^="editApiRequestModal"] .gms-api-request-wizard-step-button.active span {
    border-color: rgba(25, 188, 191, 0.55);
    background: #ffffff;
    color: #159B9D;
}

/*
|--------------------------------------------------------------------------
| API Requests Wizard Layout
|--------------------------------------------------------------------------
*/

#addApiRequestModal.gms-api-request-wizard-active .modal-body>.row,
[id^="editApiRequestModal"].gms-api-request-wizard-active .modal-body>.row {
    display: flex;
    align-items: stretch;
}

#addApiRequestModal.gms-api-request-wizard-active .modal-body>.row>[class*="col-lg-"],
[id^="editApiRequestModal"].gms-api-request-wizard-active .modal-body>.row>[class*="col-lg-"] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}

#addApiRequestModal.gms-api-request-wizard-active .gms-api-request-wizard-column-empty,
[id^="editApiRequestModal"].gms-api-request-wizard-active .gms-api-request-wizard-column-empty {
    display: none;
}

#addApiRequestModal.gms-api-request-wizard-active .gms-api-request-wizard-hidden,
[id^="editApiRequestModal"].gms-api-request-wizard-active .gms-api-request-wizard-hidden {
    display: none !important;
}

#addApiRequestModal.gms-api-request-wizard-active .gms-api-request-wizard-card,
[id^="editApiRequestModal"].gms-api-request-wizard-active .gms-api-request-wizard-card {
    margin-bottom: 1rem !important;
}

#addApiRequestModal.gms-api-request-wizard-active .gms-api-request-wizard-card:last-child,
[id^="editApiRequestModal"].gms-api-request-wizard-active .gms-api-request-wizard-card:last-child {
    margin-bottom: 0 !important;
}

/*
|--------------------------------------------------------------------------
| API Requests Wizard Step 2 Workspace
|--------------------------------------------------------------------------
|
| Request + Variables needs both columns visible.
|
*/

#addApiRequestModal.gms-api-request-wizard-active[data-api-request-wizard-step="1"] .modal-body>.row,
[id^="editApiRequestModal"].gms-api-request-wizard-active[data-api-request-wizard-step="1"] .modal-body>.row {
    display: flex;
    gap: 0;
}

#addApiRequestModal.gms-api-request-wizard-active[data-api-request-wizard-step="1"] .modal-body>.row>.col-lg-7,
[id^="editApiRequestModal"].gms-api-request-wizard-active[data-api-request-wizard-step="1"] .modal-body>.row>.col-lg-7 {
    width: 66%;
    max-width: 66%;
    flex: 0 0 66%;
}

#addApiRequestModal.gms-api-request-wizard-active[data-api-request-wizard-step="1"] .modal-body>.row>.col-lg-5,
[id^="editApiRequestModal"].gms-api-request-wizard-active[data-api-request-wizard-step="1"] .modal-body>.row>.col-lg-5 {
    width: 34%;
    max-width: 34%;
    flex: 0 0 34%;
}

/*
|--------------------------------------------------------------------------
| API Requests Wizard Footer
|--------------------------------------------------------------------------
*/

#addApiRequestModal .gms-api-request-wizard-previous,
#addApiRequestModal .gms-api-request-wizard-next,
[id^="editApiRequestModal"] .gms-api-request-wizard-previous,
[id^="editApiRequestModal"] .gms-api-request-wizard-next {
    min-width: 110px;
}

/*
|--------------------------------------------------------------------------
| GMS Table Action Dropdowns
|--------------------------------------------------------------------------
|
| Makes table action dropdowns match the Select2/filter control style.
|
| Used by:
|
| - API Requests
| - API Posts
| - Cron Scheduler
| - Any table using .gms-table-action-dropdown
|
*/

.gms-table-action-dropdown {
    position: relative;
}


.gms-table-action-dropdown .gms-table-action-menu {
    min-width: 190px;
    padding: 0.35rem;
    border: 1px solid rgba(25, 188, 191, 0.22);
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
}

.gms-table-action-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 34px;
    padding: 0.45rem 0.65rem;
    border-radius: 4px;
    color: #4B5563;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    transition:
        background .15s ease,
        color .15s ease;
}

.gms-table-action-dropdown .dropdown-item i {
    width: 16px;
    color: #159B9D;
    text-align: center;
}

.gms-table-action-dropdown .dropdown-item:hover,
.gms-table-action-dropdown .dropdown-item:focus {
    background: rgba(25, 188, 191, 0.08);
    color: #159B9D;
}

.gms-table-action-dropdown .dropdown-item:hover i,
.gms-table-action-dropdown .dropdown-item:focus i {
    color: #159B9D;
}

.gms-table-action-dropdown .dropdown-item.text-warning i,
.gms-table-action-dropdown .dropdown-item.text-success i,
.gms-table-action-dropdown .dropdown-item.text-danger i {
    color: currentColor;
}

.gms-table-action-dropdown .dropdown-divider {
    margin: 0.35rem 0;
    border-top-color: #edf0f3;
}

.gms-table-action-dropdown .dropdown-item:disabled,
.gms-table-action-dropdown .dropdown-item.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.gms-table-action-dropdown .dropdown-item:disabled:hover,
.gms-table-action-dropdown .dropdown-item.disabled:hover {
    background: transparent;
    color: #4B5563;
}

/*
|--------------------------------------------------------------------------
| GMS Table Action Dropdown Trigger
|--------------------------------------------------------------------------
|
| Primary filled, flat, compact action dropdown trigger.
|
| Keeps:
|
| - primary GMS colour
| - square 4px corners
| - no shadow
| - no pill shape
| - no movement
|
*/

.gms-table-action-dropdown .gms-table-action-single {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 32px;
    padding: 0.35rem 0.75rem;
    border: 1px solid #19BCBF;
    border-radius: 4px;
    background: #19BCBF;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    box-shadow: none;
    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.gms-table-action-dropdown .gms-table-action-single:hover,
.gms-table-action-dropdown .gms-table-action-single:focus,
.gms-table-action-dropdown .gms-table-action-single:active,
.gms-table-action-dropdown .gms-table-action-single.show {
    border-color: #159B9D;
    background: #159B9D;
    color: #ffffff;
    box-shadow: none;
    transform: none;
}

.gms-table-action-dropdown .gms-table-action-single.dropdown-toggle::after {
    margin-left: 0.4rem;
    color: #ffffff;
    opacity: 0.9;
}

.gms-table-action-dropdown .gms-table-action-single:focus {
    outline: none;
}

/*
|--------------------------------------------------------------------------
| 15. CHARACTER AUDIT
|--------------------------------------------------------------------------
|
| Used by:
|
|     /pages/character_audit.php
|
| This section contains all Character Audit table, compact-density and modal
| styling. Keeping it grouped here makes it easy to revert or tune without
| touching global DataTables, Dasho, or Bootstrap styles.
|
*/

/*
|--------------------------------------------------------------------------
| Character Audit Table Widths
|--------------------------------------------------------------------------
|
| These widths only affect the visible columns in the Character Audit table.
| Hidden DataTables filter columns still exist in the table markup, but are
| hidden by JavaScript and do not need layout widths here.
|
*/

.gms-character-audit-table th:nth-child(1),
.gms-character-audit-table td:nth-child(1) {
    width: 25%;
}

.gms-character-audit-table th:nth-child(2),
.gms-character-audit-table td:nth-child(2) {
    width: 10%;
}

.gms-character-audit-table th:nth-child(3),
.gms-character-audit-table td:nth-child(3) {
    width: 9%;
}

.gms-character-audit-table th:nth-child(4),
.gms-character-audit-table td:nth-child(4) {
    width: 11%;
}

.gms-character-audit-table th:nth-child(5),
.gms-character-audit-table td:nth-child(5) {
    width: 10%;
}

.gms-character-audit-table th:nth-child(6),
.gms-character-audit-table td:nth-child(6) {
    width: 10%;
}

.gms-character-audit-table th:nth-child(7),
.gms-character-audit-table td:nth-child(7) {
    width: 10%;
}

.gms-character-audit-table th:nth-child(8),
.gms-character-audit-table td:nth-child(8) {
    width: 15%;
}

/*
|--------------------------------------------------------------------------
| Character Audit Compact Table Mode
|--------------------------------------------------------------------------
|
| Enable by adding this class to the table:
|
|     gms-character-audit-table-compact
|
| Revert instantly by removing that class from:
|
|     /modules/character_audit/views/table.php
|
| This mode is intentionally scoped to Character Audit only. It reduces row
| height by tightening padding, badges, button sizes and hiding the secondary
| character metadata line.
|
*/

.gms-character-audit-table.gms-character-audit-table-compact> :not(caption)>*>* {
    padding: 3px 6px;
    line-height: 1.1;
    vertical-align: middle;
}

.gms-character-audit-table.gms-character-audit-table-compact th {
    padding: 5px 6px;
    font-size: 11px;
    line-height: 1.1;
}

.gms-character-audit-table.gms-character-audit-table-compact td {
    font-size: 11px;
    line-height: 1.1;
}

.gms-character-audit-table.gms-character-audit-table-compact .character-class-badge {
    padding: 2px 6px;
    font-size: 11px;
    line-height: 1.1;
}

.gms-character-audit-table.gms-character-audit-table-compact .badge {
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 10px;
    line-height: 1.1;
}

.gms-character-audit-table.gms-character-audit-table-compact .gms-character-audit-subtext {
    display: none;
}

.gms-character-audit-table.gms-character-audit-table-compact .gms-character-audit-mini-counts {
    margin-top: 0 !important;
}

.gms-character-audit-table.gms-character-audit-table-compact .mt-1 {
    margin-top: 1px !important;
}

.gms-character-audit-table.gms-character-audit-table-compact .btn-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    padding: 0;
    font-size: 10px;
    line-height: 1;
}

.gms-character-audit-table.gms-character-audit-table-compact .d-inline-flex.gap-1 {
    gap: 2px !important;
}

.gms-character-audit-table.gms-character-audit-table-compact i {
    line-height: 1;
}

/*
|--------------------------------------------------------------------------
| Character Audit Modal Shell
|--------------------------------------------------------------------------
*/


.gms-character-audit-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    font-size: 24px;
}

.gms-character-audit-modal-icon-primary {
    background: rgba(25, 188, 191, 0.12);
    color: #19BCBF;
}

.gms-character-audit-modal-icon-warning {
    background: rgba(245, 158, 11, 0.14);
    color: #D97706;
}

/*
|--------------------------------------------------------------------------
| Character Audit Modal Summary Row
|--------------------------------------------------------------------------
*/

.gms-character-audit-modal-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    background: #f8fafc;
}

.gms-character-audit-modal-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(100px, 1fr));
    gap: 8px;
    min-width: 540px;
}

.gms-character-audit-modal-stats-wide {
    grid-template-columns: repeat(5, minmax(92px, 1fr));
    min-width: 650px;
}

.gms-character-audit-modal-stat-mini {
    padding: 8px 10px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
    background: #ffffff;
    text-align: center;
}

.gms-character-audit-modal-stat-mini span {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
}

.gms-character-audit-modal-stat-mini strong {
    display: block;
    color: #111827;
    font-size: 14px;
    line-height: 1.1;
}

.gms-character-audit-modal-stat-danger {
    border-color: rgba(239, 68, 68, 0.25);
}

.gms-character-audit-modal-stat-warning {
    border-color: rgba(245, 158, 11, 0.35);
}

.gms-character-audit-modal-stat-info {
    border-color: rgba(56, 189, 248, 0.35);
}

.gms-character-audit-modal-stat-success {
    border-color: rgba(16, 161, 117, 0.35);
}

/*
|--------------------------------------------------------------------------
| Character Audit Crest Summary
|--------------------------------------------------------------------------
*/

.gms-character-audit-crest-summary {
    border-radius: 12px;
}

/*
|--------------------------------------------------------------------------
| Character Audit Gear Modal Grid
|--------------------------------------------------------------------------
*/

.gms-character-audit-gear-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}


.gms-character-audit-gear-card-body {
    width: 100%;
    min-width: 0;
}


/*
|--------------------------------------------------------------------------
| Character Audit Results Modal Grid
|--------------------------------------------------------------------------
*/

.gms-character-audit-result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.gms-character-audit-result-card {
    min-height: 112px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 12px;
    background: #ffffff;
}

.gms-character-audit-result-card-danger {
    border-left: 4px solid #EF4444;
}

.gms-character-audit-result-card-warning {
    border-left: 4px solid #F59E0B;
}

.gms-character-audit-result-card-info {
    border-left: 4px solid #38BDF8;
}

.gms-character-audit-result-card-success {
    border-left: 4px solid #10A175;
}

.gms-character-audit-result-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.gms-character-audit-result-card-header span:last-child {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.gms-character-audit-result-card-message {
    min-height: 32px;
    color: #111827;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
}

.gms-character-audit-result-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

.gms-character-audit-result-card-footer code {
    font-size: 10px;
}

.gms-character-audit-result-action-form {
    margin: 8px 0 0;
}

/*
|--------------------------------------------------------------------------
| Character Audit Responsive Adjustments
|--------------------------------------------------------------------------
*/

@media (max-width: 1400px) {
    .gms-character-audit-modal-stats-wide {
        min-width: 560px;
    }

    .gms-character-audit-gear-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gms-character-audit-result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-height: 850px) {
    .gms-character-audit-modal-header {
        min-height: 70px;
        padding: 12px 16px;
    }

    .gms-character-audit-modal-body {
        padding: 12px 16px 16px;
    }

    .gms-character-audit-modal-topline {
        margin-bottom: 8px;
        padding: 9px 12px;
    }

    .gms-character-audit-gear-card {
        min-height: 70px;
        padding: 7px;
    }

    .gms-character-audit-gear-card-name {
        font-size: 11px;
    }
}

/*
|--------------------------------------------------------------------------
| Character Audit Modal Redesign
|--------------------------------------------------------------------------
*/


.gms-character-audit-plan-card-body {
    min-width: 0;
}


.gms-character-audit-gear-grid-redesign {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}


.gms-character-audit-gear-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: rgba(15, 23, 42, 0.10);
}

.gms-character-audit-gear-card-upgrade::before {
    background: #f4b400;
}

.gms-character-audit-gear-card-warning::before {
    background: #EA9999;
}

.gms-character-audit-gear-card-voidcore::before {
    background: #6B57D5;
}

.gms-character-audit-gear-card-voidforged::before {
    background: #19BCBF;
}

.gms-character-audit-gear-card-display-only {
    opacity: 0.72;
}

.gms-character-audit-gear-card-display-only::before {
    background: rgba(107, 114, 128, 0.55);
}


.gms-character-audit-modal-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 12px 14px;
    border: 1px dashed rgba(15, 23, 42, 0.16);
    border-radius: 12px;
    color: #6b7280;
    background: rgba(248, 250, 252, 0.72);
    font-size: 12px;
}

.gms-character-audit-modal-legend span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gms-character-audit-modal-legend strong {
    color: #374151;
}

@media (max-width: 1600px) {
    .gms-character-audit-gear-grid-redesign {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1199px) {
    .gms-character-audit-gear-grid-redesign {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {

    .gms-character-audit-character-stats,
    .gms-character-audit-plan-grid,
    .gms-character-audit-gear-grid-redesign {
        grid-template-columns: 1fr;
    }
}

/*
|--------------------------------------------------------------------------
| Character Audit Compact Table Visible Subtext
|--------------------------------------------------------------------------
|
| Compact mode should reduce spacing, not hide useful context.
|
*/

.gms-character-audit-table-compact td {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    vertical-align: middle;
}

.gms-character-audit-table-compact .gms-character-audit-subtext {
    display: block !important;
    margin-top: 2px !important;
    color: #7b7f8a !important;
    font-size: 10px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gms-character-audit-table-compact .gms-character-audit-subtext.mt-1 {
    margin-top: 2px !important;
}

.gms-character-audit-table-compact .character-class-badge {
    line-height: 1.1;
}

/*
|--------------------------------------------------------------------------
| Character Audit Compact Row Info Button
|--------------------------------------------------------------------------
*/

.gms-character-audit-row-info {
    width: 22px;
    height: 22px;
    min-width: 22px;
    padding: 0;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1;
}

.gms-character-audit-table-compact .gms-character-audit-row-info {
    width: 20px;
    height: 20px;
    min-width: 20px;
    font-size: 10px;
}

/*
|--------------------------------------------------------------------------
| Character Audit Gear Modal - Real 1080p Fix
|--------------------------------------------------------------------------
|
| This targets the actual Character Audit modal classes currently used by
| the page.
|
| Main fixes:
|
| - Modal content becomes a proper vertical flex shell
| - Header stays fixed at the top of the modal
| - Modal body becomes the scrollable area
| - Existing overflow:hidden body clipping is removed
| - Character / upgrade panels are compacted
| - Gear grid becomes denser at desktop widths
|
*/


/*
|--------------------------------------------------------------------------
| Character Audit Modal Scrollbar
|--------------------------------------------------------------------------
*/

.gms-character-audit-modal-body::-webkit-scrollbar {
    width: 8px;
}

.gms-character-audit-modal-body::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.05);
    border-radius: 999px;
}

.gms-character-audit-modal-body::-webkit-scrollbar-thumb {
    background: rgba(25, 188, 191, 0.45);
    border-radius: 999px;
}

.gms-character-audit-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(25, 188, 191, 0.75);
}

/*
|--------------------------------------------------------------------------
| Compact Modal Redesign Spacing
|--------------------------------------------------------------------------
*/

.gms-character-audit-modal-redesign {
    gap: 10px;
}

.gms-character-audit-character-panel {
    gap: 14px;
    padding: 12px 16px;
    border-radius: 12px;
}

.gms-character-audit-character-avatar {
    width: 46px;
    height: 46px;
    border-radius: 12px;
}

.gms-character-audit-character-avatar i {
    font-size: 20px;
}

.gms-character-audit-character-main {
    gap: 12px;
}

.gms-character-audit-character-main h4 {
    margin-bottom: 2px;
    font-size: 18px;
}

.gms-character-audit-character-main p {
    margin-bottom: 0;
    font-size: 12px;
}

.gms-character-audit-character-stats {
    grid-template-columns: repeat(3, minmax(92px, 1fr));
    gap: 8px;
    min-width: 330px;
}

.gms-character-audit-character-stats>div {
    padding: 9px 12px;
    border-radius: 10px;
}

.gms-character-audit-character-stats span {
    font-size: 10px;
}

.gms-character-audit-character-stats strong {
    margin-top: 5px;
    font-size: 14px;
}

/*
|--------------------------------------------------------------------------
| Compact Upgrade Plan
|--------------------------------------------------------------------------
*/

.gms-character-audit-plan-panel {
    padding: 12px 16px;
    border-radius: 12px;
}

.gms-character-audit-plan-panel-header {
    align-items: center;
    margin-bottom: 10px;
}

.gms-character-audit-plan-panel-header h4,
.gms-character-audit-plan-panel-header h5 {
    margin-bottom: 3px;
    font-size: 16px;
}

.gms-character-audit-plan-panel-header p {
    margin-bottom: 0;
    font-size: 12px;
}

.gms-character-audit-crest-pills {
    gap: 6px;
}

.gms-character-audit-plan-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.gms-character-audit-plan-card {
    gap: 8px;
    min-height: 50px;
    padding: 8px 10px;
    border-radius: 10px;
}

.gms-character-audit-plan-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
}

.gms-character-audit-plan-card-body span {
    font-size: 9px;
}

.gms-character-audit-plan-card-body strong {
    margin-top: 5px;
    font-size: 14px;
}

/*
|--------------------------------------------------------------------------
| Compact Section Header
|--------------------------------------------------------------------------
*/

.gms-character-audit-modal-section-header {
    align-items: center;
    padding: 0;
}

.gms-character-audit-modal-section-header h4,
.gms-character-audit-modal-section-header h5 {
    margin-bottom: 3px;
    font-size: 16px;
}

.gms-character-audit-modal-section-header p {
    margin-bottom: 0;
    font-size: 12px;
}

/*
|--------------------------------------------------------------------------
| Compact Gear Grid
|--------------------------------------------------------------------------
*/

.gms-character-audit-gear-grid,
.gms-character-audit-gear-grid-redesign {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.gms-character-audit-gear-card {
    gap: 7px;
    min-height: 74px;
    padding: 8px 9px;
    border-radius: 10px;
}

.gms-character-audit-gear-card:hover {
    transform: none;
}

.gms-character-audit-gear-card-icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 14px;
}

.gms-character-audit-gear-card-top {
    gap: 6px;
}

.gms-character-audit-gear-card-top span {
    font-size: 9px;
}

.gms-character-audit-gear-card-top strong {
    font-size: 13px;
}

.gms-character-audit-gear-card-name {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.15;
}

.gms-character-audit-gear-card-meta {
    margin-top: 2px;
    font-size: 9px;
}

.gms-character-audit-gear-card-badges {
    gap: 4px;
    margin-top: 5px;
}

.gms-character-audit-gear-card-badges .badge {
    padding: 2px 5px;
    font-size: 8px;
    line-height: 1.1;
}

/*
|--------------------------------------------------------------------------
| 1080p Height Compression
|--------------------------------------------------------------------------
*/

@media (max-height: 950px) {
    .gms-character-audit-modal-dialog {
        margin: 6px auto;
    }

    .gms-character-audit-modal-content {
        max-height: calc(100vh - 12px);
    }

    .gms-character-audit-modal-header {
        min-height: 58px;
        padding: 10px 16px;
    }

    .gms-character-audit-modal-body {
        padding: 10px 16px 14px;
    }

    .gms-character-audit-modal-redesign {
        gap: 8px;
    }

    .gms-character-audit-character-panel {
        padding: 10px 14px;
    }

    .gms-character-audit-plan-panel {
        padding: 10px 14px;
    }

    .gms-character-audit-plan-card {
        min-height: 46px;
        padding: 7px 9px;
    }

    .gms-character-audit-gear-card {
        min-height: 68px;
        padding: 7px 8px;
    }

    .gms-character-audit-modal-legend {
        display: none;
    }
}

/*
|--------------------------------------------------------------------------
| Width Breakpoints
|--------------------------------------------------------------------------
*/

@media (max-width: 1600px) {

    .gms-character-audit-gear-grid,
    .gms-character-audit-gear-grid-redesign {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .gms-character-audit-plan-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1366px) {

    .gms-character-audit-gear-grid,
    .gms-character-audit-gear-grid-redesign {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1199px) {
    .gms-character-audit-character-panel {
        flex-direction: column;
    }

    .gms-character-audit-character-stats {
        width: 100%;
        min-width: 0;
    }

    .gms-character-audit-plan-panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .gms-character-audit-crest-pills {
        justify-content: flex-start;
        max-width: 100%;
    }

    .gms-character-audit-gear-grid,
    .gms-character-audit-gear-grid-redesign {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {

    .gms-character-audit-character-stats,
    .gms-character-audit-plan-grid,
    .gms-character-audit-gear-grid,
    .gms-character-audit-gear-grid-redesign {
        grid-template-columns: 1fr;
    }
}

/*
|--------------------------------------------------------------------------
| Character Audit Final Polish
|--------------------------------------------------------------------------
|
| This block intentionally sits at the bottom of gms.css so it wins over the
| older Character Audit modal/table rules above.
|
| Improvements included here:
|
| - contained Character Inspector modal
| - sticky inspector rail
| - inspector tabs/panels
| - issue explanation details
| - active filter chips
| - table severity left-border rows
| - single action dropdown support
|
*/

.gms-character-audit-modal-dialog {
    width: min(1240px, calc(100vw - 48px));
    max-width: min(1240px, calc(100vw - 48px));
    margin: 32px auto;
}

.gms-character-audit-modal-content {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 64px);
    overflow: hidden;
    border-radius: 14px;
}

.gms-character-audit-modal-header {
    flex: 0 0 auto;
    min-height: 74px;
    padding: 16px 20px;
}

.gms-character-audit-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
    background: #f8fafc;
    -webkit-overflow-scrolling: touch;
}

/*
|--------------------------------------------------------------------------
| Character Inspector Layout
|--------------------------------------------------------------------------
*/

.gms-character-inspector {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    min-height: 620px;
    background: #ffffff;
}

.gms-character-inspector-rail {
    position: sticky;
    top: 0;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    max-height: calc(100vh - 140px);
    padding: 18px;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    background:
        linear-gradient(180deg, rgba(25, 188, 191, 0.10), rgba(248, 250, 252, 1));
}

.gms-character-inspector-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: #ffffff;
}

.gms-character-inspector-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 18px;
}

/*
|--------------------------------------------------------------------------
| Character Inspector Rail
|--------------------------------------------------------------------------
*/

.gms-character-inspector-character {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gms-character-inspector-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #19BCBF, #117E80);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(25, 188, 191, 0.22);
}

.gms-character-inspector-avatar i {
    font-size: 23px;
}

.gms-character-inspector-character-text {
    min-width: 0;
}

.gms-character-inspector-character-text h4 {
    margin: 0 0 3px;
    overflow: hidden;
    color: #111827;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gms-character-inspector-character-text p {
    margin: 0;
    overflow: hidden;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gms-character-inspector-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.gms-character-inspector-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.gms-character-inspector-metric {
    padding: 10px 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
}

.gms-character-inspector-metric span {
    display: block;
    color: #6b7280;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.gms-character-inspector-metric strong {
    display: block;
    margin-top: 5px;
    color: #111827;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.15;
}

.gms-character-inspector-metric-primary {
    border-color: rgba(25, 188, 191, 0.28);
}

.gms-character-inspector-metric-primary strong {
    color: #159B9D;
}

.gms-character-inspector-metric-success {
    border-color: rgba(16, 161, 117, 0.28);
}

.gms-character-inspector-metric-success strong {
    color: #10A175;
}

.gms-character-inspector-issue-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.gms-character-inspector-issue-pill {
    padding: 8px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    background: #ffffff;
    text-align: center;
}

.gms-character-inspector-issue-pill span {
    display: block;
    color: #6b7280;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.gms-character-inspector-issue-pill strong {
    display: block;
    margin-top: 5px;
    color: #111827;
    font-size: 16px;
    line-height: 1;
}

.gms-character-inspector-issue-danger {
    border-color: rgba(239, 68, 68, 0.25);
}

.gms-character-inspector-issue-warning {
    border-color: rgba(245, 158, 11, 0.35);
}

.gms-character-inspector-issue-info {
    border-color: rgba(56, 189, 248, 0.35);
}

.gms-character-inspector-issue-success {
    border-color: rgba(16, 161, 117, 0.35);
}

.gms-character-inspector-rail-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: auto;
    padding: 10px;
    border: 1px dashed rgba(25, 188, 191, 0.30);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.58);
    color: #6b7280;
    font-size: 11px;
    line-height: 1.35;
}

.gms-character-inspector-rail-note i {
    margin-top: 2px;
    color: #19BCBF;
}

/*
|--------------------------------------------------------------------------
| Character Inspector Tabs
|--------------------------------------------------------------------------
*/

.gms-character-inspector-tabs {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.gms-character-inspector-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 54px;
    padding: 0 18px;
    border: 0;
    border-right: 1px solid rgba(15, 23, 42, 0.06);
    background: #ffffff;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transition:
        color .15s ease,
        background .15s ease;
}

.gms-character-inspector-tab i {
    color: #19BCBF;
}

.gms-character-inspector-tab strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    border-radius: 999px;
    background: #eef3f7;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
}

.gms-character-inspector-tab:hover {
    background: rgba(25, 188, 191, 0.05);
    color: #159B9D;
}

.gms-character-inspector-tab.active {
    background: rgba(25, 188, 191, 0.08);
    color: #111827;
}

.gms-character-inspector-tab.active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #19BCBF;
}

.gms-character-inspector-panel {
    display: none;
}

.gms-character-inspector-panel.active {
    display: block;
}

.gms-character-inspector-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.gms-character-inspector-panel-header h5 {
    font-size: 17px;
    font-weight: 800;
}

/*
|--------------------------------------------------------------------------
| Character Inspector Gear / Issues / Upgrades
|--------------------------------------------------------------------------
*/

.gms-character-inspector .gms-character-audit-gear-grid,
.gms-character-inspector .gms-character-audit-gear-grid-redesign {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.gms-character-inspector .gms-character-audit-gear-card {
    min-height: 92px;
    padding: 10px;
    border-radius: 12px;
}

.gms-character-inspector .gms-character-audit-gear-card:hover {
    transform: none;
}

.gms-character-inspector .gms-character-audit-gear-card-name {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
}

.gms-character-inspector-issue-group {
    margin-bottom: 18px;
}

.gms-character-inspector-issue-group:last-child {
    margin-bottom: 0;
}

.gms-character-inspector-issue-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
}

.gms-character-inspector-issue-group-title i {
    color: #19BCBF;
}

.gms-character-inspector-issue-group-title strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #eef3f7;
    color: #64748b;
    font-size: 10px;
}

.gms-character-inspector .gms-character-audit-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gms-character-audit-result-why {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(15, 23, 42, 0.12);
}

.gms-character-audit-result-why summary {
    cursor: pointer;
    color: #159B9D;
    font-size: 11px;
    font-weight: 800;
}

.gms-character-audit-result-why p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.35;
}

.gms-character-inspector-upgrade-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.gms-character-inspector-upgrade-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gms-character-inspector-upgrade-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) 96px minmax(220px, 0.8fr);
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: #ffffff;
}

.gms-character-inspector-upgrade-slot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.gms-character-inspector-upgrade-slot i {
    width: 18px;
    color: #19BCBF;
    text-align: center;
}

.gms-character-inspector-upgrade-item {
    min-width: 0;
}

.gms-character-inspector-upgrade-item strong {
    display: block;
    overflow: hidden;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gms-character-inspector-upgrade-item small {
    display: block;
    color: #64748b;
    font-size: 11px;
}

.gms-character-inspector-upgrade-badges {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
}

.gms-character-inspector-run-table {
    font-size: 12px;
}

.gms-character-inspector-run-table th {
    color: #64748b;
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/*
|--------------------------------------------------------------------------
| Character Audit Table Improvements
|--------------------------------------------------------------------------
*/

.gms-character-audit-table-wrap {
    overflow-x: visible;
}

.gms-character-audit-table.gms-character-audit-table-1080 {
    width: 100% !important;
    max-width: 100%;
    table-layout: fixed;
    font-size: 11px;
}

.gms-character-audit-table.gms-character-audit-table-1080 th,
.gms-character-audit-table.gms-character-audit-table-1080 td {
    overflow: hidden;
    vertical-align: middle;
}

.gms-character-audit-table.gms-character-audit-table-1080 th:nth-child(1),
.gms-character-audit-table.gms-character-audit-table-1080 td:nth-child(1) {
    width: 20%;
}

.gms-character-audit-table.gms-character-audit-table-1080 th:nth-child(2),
.gms-character-audit-table.gms-character-audit-table-1080 td:nth-child(2) {
    width: 8%;
}

.gms-character-audit-table.gms-character-audit-table-1080 th:nth-child(3),
.gms-character-audit-table.gms-character-audit-table-1080 td:nth-child(3) {
    width: 7%;
}

.gms-character-audit-table.gms-character-audit-table-1080 th:nth-child(4),
.gms-character-audit-table.gms-character-audit-table-1080 td:nth-child(4),
.gms-character-audit-table.gms-character-audit-table-1080 th:nth-child(5),
.gms-character-audit-table.gms-character-audit-table-1080 td:nth-child(5),
.gms-character-audit-table.gms-character-audit-table-1080 th:nth-child(7),
.gms-character-audit-table.gms-character-audit-table-1080 td:nth-child(7) {
    width: 9%;
}

.gms-character-audit-table.gms-character-audit-table-1080 th:nth-child(6),
.gms-character-audit-table.gms-character-audit-table-1080 td:nth-child(6) {
    width: 10%;
}

.gms-character-audit-table.gms-character-audit-table-1080 th:nth-child(8),
.gms-character-audit-table.gms-character-audit-table-1080 td:nth-child(8) {
    width: 12%;
}

.gms-character-audit-table.gms-character-audit-table-1080 th:nth-child(9),
.gms-character-audit-table.gms-character-audit-table-1080 td:nth-child(9) {
    width: 16%;
}

.gms-character-audit-table.gms-character-audit-table-1080 th {
    padding: 6px 4px;
    font-size: 10px;
    line-height: 1.1;
    white-space: nowrap;
}

.gms-character-audit-table.gms-character-audit-table-1080 td {
    padding: 5px 4px;
    font-size: 10.5px;
    line-height: 1.12;
}

.gms-character-audit-table.gms-character-audit-table-1080 .badge {
    max-width: 100%;
    padding: 3px 5px;
    overflow: hidden;
    font-size: 9.5px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gms-character-audit-table.gms-character-audit-table-1080 .character-class-badge,
.gms-character-audit-table.gms-character-audit-table-1080 .gms-character-audit-name-badge {
    display: inline-block;
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gms-character-audit-table.gms-character-audit-table-1080 .gms-character-audit-action-cell {
    overflow: visible;
}

.gms-character-audit-row td:first-child {
    border-left-width: 4px;
    border-left-style: solid;
}

.gms-character-audit-row-danger td:first-child {
    border-left-color: #EF4444;
}

.gms-character-audit-row-warning td:first-child {
    border-left-color: #F59E0B;
}

.gms-character-audit-row-info td:first-child {
    border-left-color: #38BDF8;
}

.gms-character-audit-row-clean td:first-child {
    border-left-color: #10A175;
}

.gms-character-audit-action-dropdown .gms-table-action-single {
    min-width: 74px;
    height: 28px;
    min-height: 28px;
    padding: 0 8px !important;
    font-size: 11px;
}

.gms-character-audit-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(15, 23, 42, 0.12);
}

.gms-character-audit-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border: 1px solid rgba(25, 188, 191, 0.28);
    border-radius: 999px;
    background: rgba(25, 188, 191, 0.08);
    color: #159B9D;
    font-size: 11px;
    font-weight: 600;
}

.gms-character-audit-filter-chip strong {
    color: #111827;
}

@media (max-width: 1400px) {
    .gms-character-audit-modal-dialog {
        width: calc(100vw - 36px);
        max-width: calc(100vw - 36px);
        margin: 18px auto;
    }

    .gms-character-audit-modal-content {
        max-height: calc(100vh - 36px);
    }
}

@media (max-width: 1199px) {
    .gms-character-inspector {
        grid-template-columns: 1fr;
    }

    .gms-character-inspector-rail {
        position: static;
        max-height: none;
        border-right: 0;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    }

    .gms-character-inspector-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gms-character-inspector .gms-character-audit-gear-grid,
    .gms-character-inspector .gms-character-audit-gear-grid-redesign {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gms-character-inspector-upgrade-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gms-character-inspector-upgrade-row {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .gms-character-inspector-upgrade-badges {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .gms-character-audit-modal-dialog {
        width: calc(100vw - 14px);
        max-width: calc(100vw - 14px);
        margin: 7px auto;
    }

    .gms-character-audit-modal-content {
        max-height: calc(100vh - 14px);
    }

    .gms-character-audit-modal-header {
        min-height: auto;
        padding: 12px;
    }

    .gms-character-inspector-metrics,
    .gms-character-inspector-upgrade-summary,
    .gms-character-inspector .gms-character-audit-gear-grid,
    .gms-character-inspector .gms-character-audit-gear-grid-redesign,
    .gms-character-inspector .gms-character-audit-result-grid {
        grid-template-columns: 1fr;
    }

    .gms-character-inspector-tabs {
        overflow-x: auto;
    }

    .gms-character-inspector-tab {
        min-width: 132px;
    }
}

/* ==========================================================================
   GMS Raid Planner
   ========================================================================== */

.gms-raid-planner-intro-card {
    position: relative;
}

.gms-raid-card {
    background: #ffffff;
    border: 1px solid #edf1f7;
    border-radius: 18px;
    margin-bottom: 18px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
    overflow: hidden;
}

.gms-raid-card-header {
    padding: 16px 18px;
    border-bottom: 1px solid #edf1f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.gms-raid-card-title {
    margin: 0;
    color: #1f2937;
    font-size: 16px;
    font-weight: 800;
}

.gms-raid-card-title i {
    color: #19BCBF;
    margin-right: 8px;
}

.gms-raid-card-subtitle {
    color: #64748b;
    font-size: 12px;
    margin-top: 3px;
}

.gms-raid-card-body {
    padding: 18px;
}

.gms-raid-event-form .select2-container {
    width: 100% !important;
}

.gms-raid-event-form .form-control,
.gms-raid-event-form .form-select {
    min-height: 42px;
}

.gms-raid-countdown {
    background: linear-gradient(135deg, #19BCBF, #119da0);
    border-radius: 16px;
    padding: 18px;
    color: #ffffff;
    min-height: 178px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 14px 28px rgba(25, 188, 191, 0.18);
}

.gms-raid-countdown-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    opacity: 0.86;
}

.gms-raid-countdown-title {
    font-size: 18px;
    font-weight: 800;
    margin-top: 7px;
}

.gms-raid-countdown-time {
    font-size: 30px;
    font-weight: 900;
    line-height: 1.1;
    margin-top: 14px;
}

.gms-raid-countdown-date {
    font-size: 12px;
    opacity: 0.88;
    margin-top: 8px;
}

.gms-signed-role-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.gms-signed-role-pill {
    background: #f8fafc;
    border: 1px solid #edf1f7;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
}

.gms-signed-role-pill strong {
    display: block;
    color: #1f2937;
    font-size: 18px;
    line-height: 1;
}

.gms-signed-role-pill span {
    display: block;
    color: #64748b;
    font-size: 11px;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.gms-signup-timeline {
    max-height: 622px;
    overflow: auto;
    padding-right: 4px;
}

.gms-signup-item {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    position: relative;
    padding-bottom: 14px;
}

.gms-signup-item:before {
    content: "";
    position: absolute;
    left: 26px;
    top: 28px;
    bottom: -2px;
    width: 2px;
    background: #edf1f7;
}

.gms-signup-item:last-child:before {
    display: none;
}

.gms-signup-time {
    width: 54px;
    height: 28px;
    border-radius: 9px;
    background: #f8fafc;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid #edf1f7;
    position: relative;
    z-index: 2;
}


.gms-signup-name {
    color: #1f2937;
    font-weight: 800;
    line-height: 1.2;
}

.gms-signup-meta {
    color: #64748b;
    font-size: 12px;
    margin-top: 4px;
}

.gms-signup-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.gms-role-badge,
.gms-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gms-role-tank {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.gms-role-healer {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.gms-role-melee {
    background: rgba(239, 68, 68, 0.11);
    color: #dc2626;
}

.gms-role-ranged {
    background: rgba(124, 58, 237, 0.12);
    color: #7c3aed;
}

.gms-role-unknown {
    background: rgba(100, 116, 139, 0.12);
    color: #64748b;
}

.gms-status-primary {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.gms-status-tentative {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.gms-status-unavailable {
    background: rgba(239, 68, 68, 0.11);
    color: #dc2626;
}

.gms-status-unknown,
.gms-status-other {
    background: rgba(100, 116, 139, 0.12);
    color: #64748b;
}

.gms-boss-tabs {
    gap: 8px;
    border-bottom: 1px solid #edf1f7;
    padding: 12px 12px 0;
    margin: 0;
}

.gms-boss-tabs .nav-link {
    border-radius: 12px 12px 0 0;
    color: #64748b;
    font-weight: 800;
    font-size: 12px;
    padding: 10px 12px;
    border: 1px solid transparent;
}

.gms-boss-tabs .nav-link.active {
    background: #ffffff;
    color: #19BCBF;
    border-color: #edf1f7;
    border-bottom-color: #ffffff;
}

.gms-boss-tab-content {
    padding: 16px;
}

.gms-live-role-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.gms-live-role-card {
    border: 1px solid #edf1f7;
    border-radius: 14px;
    background: #f8fafc;
    padding: 12px;
    min-height: 74px;
}

.gms-live-role-card-label {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.gms-live-role-card-value {
    color: #1f2937;
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
    margin-top: 8px;
}

.gms-live-role-card-value small {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
}

.gms-live-role-card.is-good {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.24);
}

.gms-live-role-card.is-warning {
    background: rgba(245, 158, 11, 0.09);
    border-color: rgba(245, 158, 11, 0.25);
}

.gms-live-role-card.is-danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.22);
}

.raid-planner-board {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 14px;
}

.raid-planner-pool,
.raid-planner-team-area,
.raid-planner-bench {
    border: 1px solid #edf1f7;
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
}

.raid-planner-section-header {
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #edf1f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.raid-planner-section-title {
    margin: 0;
    font-size: 13px;
    color: #1f2937;
    font-weight: 900;
}

.raid-planner-section-title i {
    color: #19BCBF;
    margin-right: 7px;
}

.raid-planner-section-count {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.raid-planner-dropzone {
    min-height: 86px;
    padding: 10px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.raid-planner-dropzone.is-drag-over {
    background: rgba(25, 188, 191, 0.06);
    outline: 2px dashed rgba(25, 188, 191, 0.35);
    outline-offset: -6px;
}

.raid-planner-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.raid-planner-group {
    border: 1px solid #edf1f7;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    min-width: 0;
}

.raid-planner-group .raid-planner-dropzone {
    min-height: 306px;
}

.raid-planner-bench {
    margin-top: 12px;
}

.raid-planner-bench .raid-planner-dropzone {
    min-height: 104px;
}


.raid-planner-player-card:active {
    cursor: grabbing;
}

.raid-planner-player-card.is-dragging {
    opacity: 0.45;
}

.raid-planner-player-card[data-role="tank"] {
    border-left-color: #2563eb;
}

.raid-planner-player-card[data-role="healer"] {
    border-left-color: #059669;
}

.raid-planner-player-card[data-role="melee"] {
    border-left-color: #dc2626;
}

.raid-planner-player-card[data-role="ranged"] {
    border-left-color: #7c3aed;
}


.raid-planner-small-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 7px;
    background: #f8fafc;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.raid-planner-empty {
    border: 1px dashed #dbe4ef;
    border-radius: 14px;
    padding: 22px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    background: #f8fafc;
}

.raid-planner-alert {
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid rgba(245, 158, 11, 0.24);
    background: rgba(245, 158, 11, 0.08);
    color: #92400e;
    font-weight: 700;
}

@media (max-width: 1600px) {
    .gms-live-role-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .raid-planner-board {
        grid-template-columns: 250px 1fr;
    }

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

@media (max-width: 1199px) {
    .raid-planner-board {
        grid-template-columns: 1fr;
    }

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

    .gms-raid-planner-intro-card .gms-page-intro-icon {
        display: none;
    }
}

@media (max-width: 767px) {

    .gms-live-role-grid,
    .gms-signed-role-row,
    .raid-planner-groups {
        grid-template-columns: 1fr;
    }
}

/*
|--------------------------------------------------------------------------
| Raid Planner Class Colours / Timeline Days
|--------------------------------------------------------------------------
*/


.raid-planner-player-card[data-role="tank"],
.raid-planner-player-card[data-role="healer"],
.raid-planner-player-card[data-role="melee"],
.raid-planner-player-card[data-role="ranged"],
.raid-planner-player-card[data-role="unknown"] {
    border-left-color: var(--raid-planner-class-colour, #94a3b8) !important;
}

.gms-signup-day {
    margin-bottom: 18px;
}

.gms-signup-day:last-child {
    margin-bottom: 0;
}

.gms-signup-day-label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 10px 0;
    padding: 8px 10px;
    border: 1px solid #edf1f7;
    border-radius: 10px;
    background: #f8fafc;
    color: #1f2937;
    font-size: 12px;
    font-weight: 800;
}

.gms-signup-day-label i {
    color: #19BCBF;
}

.gms-signup-content {
    border-left: 5px solid var(--raid-planner-class-colour, #94a3b8);
}

.raid-planner-group.is-full .raid-planner-section-header {
    background: rgba(25, 188, 191, 0.08);
}

.raid-planner-group.is-full .raid-planner-section-count {
    color: #159B9D;
}

.raid-planner-dropzone.is-drop-denied {
    background: rgba(239, 68, 68, 0.08);
    outline-color: rgba(239, 68, 68, 0.45);
}

/*
|--------------------------------------------------------------------------
| Raid Planner Player Card Polish
|--------------------------------------------------------------------------
*/

.raid-planner-player-card {
    position: relative;
    overflow: hidden;
    border-left: 0 !important;
    border: 1px solid #edf1f7;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(17, 24, 39, 0.04);
}

.raid-planner-player-card:hover {
    border-color: rgba(25, 188, 191, 0.35);
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
}

.raid-planner-player-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.raid-planner-player-accent {
    width: 5px;
    min-width: 5px;
    align-self: stretch;
    border-radius: 99px;
    background: var(--raid-planner-class-colour, #94a3b8);
    box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.08);
}

.raid-planner-player-main {
    min-width: 0;
    flex: 1;
}

.raid-planner-player-name {
    font-size: 13px;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.raid-planner-player-meta {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.raid-planner-player-footer {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.gms-status-badge.gms-status-primary {
    background: rgba(25, 188, 191, 0.1);
    color: #159b9d;
    border-color: rgba(25, 188, 191, 0.2);
}

.gms-status-badge.gms-status-primary::first-letter {
    text-transform: uppercase;
}

/*
|--------------------------------------------------------------------------
| Loot Module
|--------------------------------------------------------------------------
*/

.gms-loot-filter-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(105px, 1fr));
    gap: 0.75rem;
    align-items: stretch;
}

.gms-loot-filter-row>div {
    min-width: 0;
    width: 100%;
    max-width: none;
    height: 42px;
}

.gms-loot-filter-row .select2-container {
    width: 100% !important;
    display: block;
    height: 42px !important;
}

.gms-loot-filter-row .select2-container--default .select2-selection--single,
.gms-loot-filter-row .select2-container--default .select2-selection--multiple {
    height: 42px !important;
    min-height: 42px !important;
    border-color: #d9e2ec;
    display: flex !important;
    align-items: center !important;
    padding: 0;
    margin: 0;
}

.gms-loot-filter-row .select2-container--default .select2-selection--single .select2-selection__rendered {
    display: block;
    width: 100%;
    height: 40px;
    line-height: 40px !important;
    padding-left: 10px;
    padding-right: 28px;
    color: #5f7380;
}

.gms-loot-filter-row .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    top: 0;
    right: 6px;
}

.gms-loot-filter-row .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 4px;
    width: 100%;
    height: 40px;
    min-height: 40px;
    line-height: 40px;
    padding: 0 8px !important;
    margin: 0 !important;
    overflow: hidden;
}

.gms-loot-filter-row .select2-container--default .select2-selection--multiple .select2-selection__choice {
    display: inline-flex;
    align-items: center;
    height: 24px;
    line-height: 22px;
    margin: 0;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gms-loot-filter-row .select2-container--default .select2-selection--multiple .select2-search--inline {
    display: inline-flex;
    align-items: center;
    height: 28px;
}

.gms-loot-filter-row .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
    height: 28px;
    line-height: 28px;
    margin: 0;
    min-width: 80px;
}


@media (max-width: 1450px) {
    .gms-loot-filter-row {
        grid-template-columns: repeat(6, minmax(92px, 1fr));
        gap: 0.55rem;
    }
}

@media (max-width: 1199px) {
    .gms-loot-filter-row {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
    }
}

@media (max-width: 767px) {
    .gms-loot-filter-row {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }
}

@media (max-width: 575px) {
    .gms-loot-filter-row {
        grid-template-columns: 1fr;
    }
}

/*
|--------------------------------------------------------------------------
| Loot Module
|--------------------------------------------------------------------------
*/

.gms-loot-skull-icon {
    color: #EA5455;
    font-size: 20px;
    line-height: 1;
    width: 22px;
    text-align: center;
}

.gms-loot-item-name {
    font-weight: 700;
}

.gms-loot-boss-card {
    border: 1px solid #e9eef3;
    box-shadow: none;
}

.gms-loot-boss-card .card-body {
    padding: 1rem;
}

/*
|--------------------------------------------------------------------------
| Battle.net Prestige Badges
|--------------------------------------------------------------------------
|
| Reusable Blizzard-blue authority marker.
|
| Intended meaning:
|
| - Administrator
| - System authority
| - High-trust/audit actor
|
| Keep this as a prestige marker rather than general decoration.
|
*/

.gms-bnet-prestige-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00AEFF, #0074E0);
    color: #ffffff;
    font-size: 10px;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(0, 174, 255, 0.26);
}

.gms-bnet-prestige-badge i {
    font-size: 10px;
    line-height: 1;
}

.gms-bnet-prestige-badge-topbar {
    position: absolute;
    right: -4px;
    top: -4px;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 2px solid #ffffff;
    box-shadow: 0 3px 8px rgba(0, 174, 255, 0.32);
}

.gms-bnet-prestige-badge-topbar i {
    font-size: 8px;
}

.gms-bnet-prestige-badge-head {
    width: 22px;
    height: 22px;
    min-width: 22px;
    box-shadow: 0 4px 10px rgba(0, 174, 255, 0.28);
}

.gms-bnet-prestige-badge-head i {
    font-size: 11px;
}

.gms-bnet-prestige-badge-inline {
    width: 18px;
    height: 18px;
    min-width: 18px;
    font-size: 9px;
    vertical-align: middle;
}

.gms-bnet-prestige-badge-inline i {
    font-size: 9px;
}

.gms-bnet-prestige-badge-mini {
    position: absolute;
    right: -3px;
    top: -4px;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 2px solid #ffffff;
}

.gms-bnet-prestige-badge-mini i {
    font-size: 8px;
}

/*
|--------------------------------------------------------------------------
| User Identity / Prestige Helpers
|--------------------------------------------------------------------------
|
| Used by Users and Audit Logs when showing account/actor identity.
|
*/

.gms-user-avatar-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
}

.gms-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #19BCBF, #117E80);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
    line-height: 1;
}

.gms-user-identity {
    min-width: 0;
}

/*
|--------------------------------------------------------------------------
| Legacy Topbar Prestige Compatibility
|--------------------------------------------------------------------------
|
| Older topbar markup used topbar-specific prestige classes. Keep them mapped
| to Blizzard Blue so either version still renders consistently.
|
*/

.gms-topbar-profile-prestige,
.gms-topbar-profile-head-prestige {
    background: linear-gradient(135deg, #00AEFF, #0074E0);
    color: #ffffff;
}

/*
|--------------------------------------------------------------------------
| Topbar Battle.net Prestige Fix
|--------------------------------------------------------------------------
|
| Fixes old and new prestige class names so the Battle.net icon always sits
| as a small badge on the avatar instead of becoming an inline block between
| the avatar and cog.
|
*/

.pcoded-header .gms-topbar-profile-avatar-wrap {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
}

.pcoded-header .gms-topbar-profile-prestige,
.pcoded-header .gms-bnet-prestige-badge-topbar {
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    padding: 0 !important;
    border: 2px solid #ffffff !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #00AEFF, #0074E0) !important;
    color: #ffffff !important;
    line-height: 1 !important;
    box-shadow: 0 3px 8px rgba(0, 174, 255, 0.32) !important;
    transform: none !important;
}

.pcoded-header .gms-topbar-profile-prestige i,
.pcoded-header .gms-bnet-prestige-badge-topbar i {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-size: 8px !important;
    line-height: 1 !important;
}

.gms-topbar-profile-head-prestige,
.gms-bnet-prestige-badge-head {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #00AEFF, #0074E0) !important;
    color: #ffffff !important;
    line-height: 1 !important;
    box-shadow: 0 4px 10px rgba(0, 174, 255, 0.28) !important;
}

.gms-topbar-profile-head-prestige i,
.gms-bnet-prestige-badge-head i {
    color: #ffffff !important;
    font-size: 11px !important;
    line-height: 1 !important;
}

.gms-bnet-prestige-badge-xs {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    font-size: 8px !important;
}

.gms-bnet-prestige-badge-xs i {
    font-size: 8px !important;
}

/*
|--------------------------------------------------------------------------
| GMS Shared UI Helpers
|--------------------------------------------------------------------------
*/

.gms-table-card,
.gms-filter-card {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.gms-table-card-header {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.gms-card-title-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(25, 188, 191, 0.12);
    color: #19BCBF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.gms-table-card-actions .btn {
    white-space: nowrap;
}

.gms-action-dropdown-button {
    border-radius: 8px;
    box-shadow: none;
    font-weight: 600;
}

.gms-action-dropdown-menu {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
    padding: 0.45rem;
}

.gms-action-dropdown-menu .dropdown-item {
    border-radius: 8px;
    font-size: 0.875rem;
    padding: 0.55rem 0.7rem;
}

.gms-action-dropdown-menu .dropdown-item:hover {
    background: rgba(25, 188, 191, 0.10);
    color: #111827;
}

.gms-empty-state {
    border-radius: 14px;
}

.gms-modal-heading-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(25, 188, 191, 0.12);
    color: #19BCBF;
    font-size: 1.2rem;
}

.gms-provider-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    border-radius: 999px;
    padding: 0.35rem 0.55rem;
    font-weight: 600;
}

.gms-provider-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.gms-stat-card {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    color: #ffffff;
    min-height: 118px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.gms-stat-card .card-body {
    padding: 1.15rem 1.2rem;
}

.gms-stat-card-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.gms-stat-card-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.86;
}

.gms-stat-card-value {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 0.35rem;
}

.gms-stat-card-description {
    font-size: 0.84rem;
    opacity: 0.82;
    margin-top: 0.25rem;
}

.gms-stat-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.gms-stat-card-footer {
    padding: 0.65rem 1.2rem;
    background: rgba(0, 0, 0, 0.12);
    font-size: 0.82rem;
}

.gms-compact-stat-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    height: 100%;
}

.gms-compact-stat-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(25, 188, 191, 0.12);
    color: #19BCBF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gms-compact-stat-card-label {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
}

.gms-compact-stat-card-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.15;
}

.gms-compact-stat-card-description {
    font-size: 0.8rem;
    color: #6b7280;
}

.gms-form-label {
    font-weight: 700;
    color: #374151;
}

.gms-form-help {
    display: block;
    margin-top: 0.35rem;
}

.gms-filter-actions .btn {
    min-height: 38px;
}

/*
|--------------------------------------------------------------------------
| GMS Tooltips
|--------------------------------------------------------------------------
*/

.gms-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.85rem;
    cursor: help;
    line-height: 1;
}

.gms-tooltip-icon:hover {
    color: #19BCBF;
}

.gms-tooltip-label {
    line-height: 1.2;
}

.gms-tooltip-label .gms-tooltip-icon {
    margin-top: 1px;
}

/*
|--------------------------------------------------------------------------
| GMS Summary Strips
|--------------------------------------------------------------------------
*/

.gms-summary-divider {
    border-right: 1px solid rgba(255, 255, 255, 0.22);
}

@media (max-width: 767.98px) {
    .gms-summary-divider {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
}

/*
|--------------------------------------------------------------------------
| GMS Filter Strip
|--------------------------------------------------------------------------
*/


.gms-filter-reset-button {
    min-height: 34px;
    border-radius: 4px;
    box-shadow: none;
    font-size: 0.82rem;
}


/*
|--------------------------------------------------------------------------
| GMS Filter Strip
|--------------------------------------------------------------------------
*/

.gms-filter-strip {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    background: #ffffff;
    padding: 18px;
}

.gms-filter-strip-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.gms-filter-strip-title {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
}

.gms-filter-strip-description {
    font-size: 0.82rem;
    color: #64748b;
}

.gms-filter-strip-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.gms-filter-strip-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
}

.gms-filter-strip-fields {
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.12);
}

.gms-filter-strip .form-select,
.gms-filter-strip .form-control,
.gms-filter-strip .select2-container .select2-selection--single {
    min-height: 42px;
}

.gms-filter-chip-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 14px;
}

.gms-filter-chip-row-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
}

.gms-filter-chip-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.gms-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(25, 188, 191, 0.35);
    background: rgba(25, 188, 191, 0.08);
    color: #0f766e;
    border-radius: 999px;
    padding: 5px 7px 5px 10px;
    font-size: 0.78rem;
    line-height: 1;
}

.gms-filter-chip-label {
    font-weight: 700;
}

.gms-filter-chip-value {
    font-weight: 500;
}

.gms-filter-chip-remove {
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 118, 110, 0.12);
    color: #0f766e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: 2px;
    font-size: 0.7rem;
    line-height: 1;
    cursor: pointer;
    transition:
        background .15s ease,
        color .15s ease,
        transform .15s ease;
}

.gms-filter-chip-remove:hover,
.gms-filter-chip-remove:focus {
    background: #EA5455;
    color: #ffffff;
}

.gms-filter-chip-remove:active {
    transform: scale(0.92);
}

@media (max-width: 767.98px) {
    .gms-filter-strip-header {
        flex-direction: column;
        align-items: stretch;
    }

    .gms-filter-strip-actions {
        justify-content: flex-start;
    }
}

/*
|--------------------------------------------------------------------------
| GMS Modal Standard
|--------------------------------------------------------------------------
*/

.gms-modal-content {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
}

.gms-modal-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    background:
        radial-gradient(circle at top left, rgba(25, 188, 191, 0.20), transparent 34%),
        linear-gradient(135deg, rgba(25, 188, 191, 0.12), rgba(25, 188, 191, 0.04)),
        #ffffff;
    border-bottom: 1px solid rgba(25, 188, 191, 0.16);
}

.gms-modal-hero-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.gms-modal-hero-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #19BCBF, #119C9F);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 1.15rem;
    box-shadow: 0 12px 24px rgba(25, 188, 191, 0.28);
}

.gms-modal-hero-eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #119C9F;
    margin-bottom: 3px;
}

.gms-modal-hero-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}

.gms-modal-hero-description {
    margin-top: 4px;
    color: #52657d;
    font-size: 0.84rem;
    line-height: 1.45;
}

.gms-modal-close {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(25, 188, 191, 0.18);
    border-radius: 12px;
    background: rgba(25, 188, 191, 0.08);
    color: #119C9F;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex: 0 0 auto;
}

.gms-modal-close:hover {
    background: #19BCBF;
    color: #ffffff;
    border-color: #19BCBF;
}

.gms-modal-body {
    padding: 22px 24px;
    background:
        linear-gradient(180deg, rgba(25, 188, 191, 0.035), rgba(25, 188, 191, 0.015)),
        #ffffff;
}

.gms-modal-section {
    background: #ffffff;
    border: 1px solid rgba(25, 188, 191, 0.14);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.035);
}

.gms-modal-section:last-child {
    margin-bottom: 0;
}

.gms-modal-section-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.gms-modal-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(25, 188, 191, 0.12);
    color: #119C9F;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.gms-modal-section-title {
    margin: 0;
    color: #111827;
    font-size: 0.92rem;
    font-weight: 800;
}

.gms-modal-section-description {
    margin-top: 2px;
    color: #52657d;
    font-size: 0.79rem;
    line-height: 1.4;
}

.gms-modal-field {
    margin-bottom: 0;
}

.gms-modal-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 7px;
}

.gms-modal-label i {
    color: #19BCBF;
}

.gms-modal-control {
    min-height: 44px;
    border-radius: 9px;
    border-color: rgba(15, 23, 42, 0.16);
    background: #ffffff;
    font-size: 0.88rem;
}

.gms-modal-control:focus {
    border-color: rgba(25, 188, 191, 0.70);
    box-shadow: 0 0 0 0.15rem rgba(25, 188, 191, 0.14);
}

.gms-modal-input-group .gms-modal-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.gms-modal-password-toggle {
    min-width: 46px;
    border-color: rgba(25, 188, 191, 0.24);
    border-top-right-radius: 9px;
    border-bottom-right-radius: 9px;
    background: rgba(25, 188, 191, 0.08);
    color: #119C9F;
}

.gms-modal-password-toggle:hover {
    background: #19BCBF;
    border-color: #19BCBF;
    color: #ffffff;
}

.gms-modal-help {
    margin-top: 6px;
    color: #64748b;
    font-size: 0.76rem;
}

.gms-modal-switch-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 78px;
    padding: 14px;
    border: 1px solid rgba(25, 188, 191, 0.16);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(25, 188, 191, 0.055), rgba(25, 188, 191, 0.015)),
        #ffffff;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.gms-modal-switch-tile:hover {
    border-color: rgba(25, 188, 191, 0.42);
    background:
        linear-gradient(135deg, rgba(25, 188, 191, 0.09), rgba(25, 188, 191, 0.025)),
        #ffffff;
}

.gms-modal-switch-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(25, 188, 191, 0.13);
    color: #119C9F;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.gms-modal-switch-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
}

.gms-modal-switch-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #111827;
}

.gms-modal-switch-help {
    margin-top: 2px;
    font-size: 0.75rem;
    color: #52657d;
    line-height: 1.35;
}

.gms-modal-switch-control {
    margin: 0;
    flex: 0 0 auto;
}

.gms-modal-switch-control .form-check-input {
    margin: 0;
    cursor: pointer;
}

.gms-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    background: #ffffff;
    border-top: 1px solid rgba(25, 188, 191, 0.12);
}

@media (max-width: 767.98px) {
    .gms-modal-hero {
        padding: 18px;
    }

    .gms-modal-body {
        padding: 18px;
    }

    .gms-modal-section {
        padding: 16px;
    }

    .gms-modal-footer {
        padding: 14px 18px;
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .gms-modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

/*
|--------------------------------------------------------------------------
| GMS Empty State Alignment Fix
|--------------------------------------------------------------------------
*/

.gms-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 140px;
    text-align: center;
}

.gms-empty-state>i,
.gms-empty-state .gms-empty-state-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.gms-empty-state h6,
.gms-empty-state p {
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/*
|--------------------------------------------------------------------------
| GMS Login Page
|--------------------------------------------------------------------------
|
| Scoped hard override for Dasho auth layout.
|
*/

body.gms-login-page {
    min-height: 100vh;
    background: #0f172a;
}

body.gms-login-page .blur-bg-images {
    opacity: 0.55;
}

body.gms-login-page .auth-wrapper.gms-login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

body.gms-login-page .auth-wrapper.gms-login-wrapper .auth-content {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

body.gms-login-page .gms-login-card {
    width: 100%;
    max-width: 980px;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

body.gms-login-page .gms-login-card .row {
    min-height: 540px;
}

body.gms-login-page .gms-login-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 540px;
    padding: 46px 42px;
    background:
        radial-gradient(circle at top left, rgba(25, 188, 191, 0.14), transparent 34%),
        linear-gradient(180deg, #ffffff, #fbffff);
}

body.gms-login-page .gms-login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

body.gms-login-page .gms-login-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 15px;
    background: linear-gradient(135deg, #19BCBF, #117E80);
    color: #ffffff;
    font-size: 22px;
    box-shadow: 0 14px 28px rgba(25, 188, 191, 0.25);
}

body.gms-login-page .gms-login-kicker {
    margin-bottom: 4px;
    color: #119C9F;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

body.gms-login-page .gms-login-title {
    margin: 0;
    color: #111827;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.15;
}

body.gms-login-page .gms-login-title span {
    color: #19BCBF;
}

body.gms-login-page .gms-login-subtitle {
    max-width: 390px;
    margin: 0 0 28px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}

body.gms-login-page .gms-login-form {
    width: 100%;
    max-width: 390px;
}

body.gms-login-page .gms-login-label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

body.gms-login-page .gms-login-control-wrap {
    position: relative;
    width: 100%;
}

body.gms-login-page .gms-login-control-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #19BCBF;
    transform: translateY(-50%);
    pointer-events: none;
}

body.gms-login-page .gms-login-control {
    width: 100%;
    min-height: 46px;
    padding-left: 42px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    box-shadow: none;
}

body.gms-login-page .gms-login-password-control {
    padding-right: 50px;
}

body.gms-login-page .gms-login-control:focus {
    border-color: rgba(25, 188, 191, 0.70);
    box-shadow: 0 0 0 0.16rem rgba(25, 188, 191, 0.14);
}

body.gms-login-page .gms-login-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(25, 188, 191, 0.22);
    border-radius: 9px;
    background: rgba(25, 188, 191, 0.08);
    color: #119C9F;
    transform: translateY(-50%);
    cursor: pointer;
}

body.gms-login-page .gms-login-password-toggle:hover,
body.gms-login-page .gms-login-password-toggle:focus {
    border-color: #19BCBF;
    background: #19BCBF;
    color: #ffffff;
    outline: none;
}

body.gms-login-page .gms-login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 46px;
    margin-top: 2px;
    border-radius: 10px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(25, 188, 191, 0.22);
}

body.gms-login-page .gms-login-security-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    width: 100%;
    max-width: 390px;
    margin-top: 22px;
    padding: 12px 13px;
    border: 1px dashed rgba(25, 188, 191, 0.28);
    border-radius: 12px;
    background: rgba(25, 188, 191, 0.055);
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

body.gms-login-page .gms-login-security-note i {
    margin-top: 2px;
    color: #19BCBF;
}

body.gms-login-page .gms-login-art {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 540px;
    overflow: hidden;
    background: #0f172a;
}

body.gms-login-page .gms-login-art-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 540px;
    object-fit: cover;
    object-position: center;
    transform: none;
}

body.gms-login-page .gms-login-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 20%, rgba(25, 188, 191, 0.24), transparent 30%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.10), rgba(15, 23, 42, 0.74));
}

body.gms-login-page .gms-login-art-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 34px;
}

body.gms-login-page .gms-login-art-logo {
    width: 118px;
    max-width: 45%;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.35));
}

body.gms-login-page .gms-login-art-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    background: rgba(15, 23, 42, 0.58);
    color: #ffffff;
    backdrop-filter: blur(8px);
}

body.gms-login-page .gms-login-art-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    background: rgba(25, 188, 191, 0.18);
    color: #19BCBF;
}

body.gms-login-page .gms-login-art-card strong {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
    font-weight: 900;
}

body.gms-login-page .gms-login-art-card span {
    display: block;
    color: rgba(255, 255, 255, 0.74);
    font-size: 12px;
    line-height: 1.35;
}

@media (max-width: 767.98px) {

    body.gms-login-page .auth-wrapper.gms-login-wrapper {
        padding: 24px 14px;
    }

    body.gms-login-page .auth-wrapper.gms-login-wrapper .auth-content {
        max-width: 460px;
    }

    body.gms-login-page .gms-login-card .row {
        min-height: auto;
    }

    body.gms-login-page .gms-login-panel {
        min-height: auto;
        padding: 34px 26px;
    }

    body.gms-login-page .gms-login-form,
    body.gms-login-page .gms-login-subtitle,
    body.gms-login-page .gms-login-security-note {
        max-width: none;
    }

}

/*
|--------------------------------------------------------------------------
| GMS Auth Pages
|--------------------------------------------------------------------------
*/

body.gms-auth-page {
    min-height: 100vh;
    background: #0f172a;
}

body.gms-auth-page .blur-bg-images {
    opacity: 0.45;
}

body.gms-auth-page .auth-wrapper.gms-auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

body.gms-auth-page .auth-content {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.gms-auth-card {
    width: 100%;
    max-width: 980px;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.30);
}

.gms-auth-card .row {
    min-height: 540px;
}

.gms-auth-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 540px;
    padding: 46px 42px;
    background:
        radial-gradient(circle at top left, rgba(25, 188, 191, 0.15), transparent 34%),
        linear-gradient(180deg, #ffffff, #fbffff);
}

.gms-auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.gms-auth-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 15px;
    background: linear-gradient(135deg, #19BCBF, #117E80);
    color: #ffffff;
    font-size: 22px;
    box-shadow: 0 14px 28px rgba(25, 188, 191, 0.25);
}

.gms-auth-kicker {
    margin-bottom: 4px;
    color: #119C9F;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.gms-auth-title {
    margin: 0;
    color: #111827;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.15;
}

.gms-auth-title span {
    color: #19BCBF;
}

.gms-auth-subtitle {
    max-width: 390px;
    margin: 0 0 28px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}

.gms-auth-form {
    width: 100%;
    max-width: 390px;
}

.gms-auth-label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.gms-auth-control-wrap {
    position: relative;
    width: 100%;
}

.gms-auth-control-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #19BCBF;
    transform: translateY(-50%);
    pointer-events: none;
}

.gms-auth-control {
    width: 100%;
    min-height: 46px;
    padding-left: 42px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    box-shadow: none;
}

.gms-auth-password-control {
    padding-right: 50px;
}

.gms-auth-control:focus {
    border-color: rgba(25, 188, 191, 0.70);
    box-shadow: 0 0 0 0.16rem rgba(25, 188, 191, 0.14);
}

.gms-auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(25, 188, 191, 0.22);
    border-radius: 9px;
    background: rgba(25, 188, 191, 0.08);
    color: #119C9F;
    transform: translateY(-50%);
    cursor: pointer;
}

.gms-auth-password-toggle:hover,
.gms-auth-password-toggle:focus {
    border-color: #19BCBF;
    background: #19BCBF;
    color: #ffffff;
    outline: none;
}

.gms-auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    border-radius: 10px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(25, 188, 191, 0.22);
}

.gms-auth-submit-full {
    width: 100%;
}

.gms-auth-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    width: 100%;
    max-width: 390px;
    margin-top: 22px;
    padding: 12px 13px;
    border: 1px dashed rgba(25, 188, 191, 0.28);
    border-radius: 12px;
    background: rgba(25, 188, 191, 0.055);
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.gms-auth-note i {
    margin-top: 2px;
    color: #19BCBF;
}

.gms-auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: 390px;
}

.gms-auth-art {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 540px;
    overflow: hidden;
    background: #0f172a;
}

.gms-auth-art-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 540px;
    object-fit: cover;
    object-position: center;
}

.gms-auth-art::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 70% 20%, rgba(25, 188, 191, 0.24), transparent 30%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.78));
}

.gms-auth-art-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 34px;
}

.gms-auth-art-logo {
    width: 118px;
    max-width: 45%;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.35));
}

.gms-auth-art-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    background: rgba(15, 23, 42, 0.58);
    color: #ffffff;
    backdrop-filter: blur(8px);
}

.gms-auth-art-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    background: rgba(25, 188, 191, 0.18);
    color: #19BCBF;
}

.gms-auth-art-card strong {
    display: block;
    margin-bottom: 3px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
}

.gms-auth-art-card span {
    display: block;
    color: rgba(255, 255, 255, 0.74);
    font-size: 12px;
    line-height: 1.35;
}

@media (max-width: 767.98px) {
    body.gms-auth-page .auth-wrapper.gms-auth-wrapper {
        padding: 24px 14px;
    }

    body.gms-auth-page .auth-content {
        max-width: 460px;
    }

    .gms-auth-card .row {
        min-height: auto;
    }

    .gms-auth-panel {
        min-height: auto;
        padding: 34px 26px;
    }

    .gms-auth-form,
    .gms-auth-subtitle,
    .gms-auth-note,
    .gms-auth-actions {
        max-width: none;
    }

    .gms-auth-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .gms-auth-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/*
|--------------------------------------------------------------------------
| GMS Auth Links
|--------------------------------------------------------------------------
*/

.gms-auth-form-link-row {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: 390px;
}

.gms-auth-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #119C9F;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.gms-auth-link i {
    font-size: 12px;
    line-height: 1;
}

.gms-auth-link:hover,
.gms-auth-link:focus {
    color: #0f7f81;
    text-decoration: none;
}

/*
|--------------------------------------------------------------------------
| Character Audit Signup Metrics
|--------------------------------------------------------------------------
|
| Used by the Character Audit Raid-Helper signup behaviour section.
|
*/

.gms-character-audit-signup-history-table th {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gms-character-audit-signup-history-table td {
    vertical-align: middle;
}

.gms-character-audit-signup-history-table strong {
    color: #263544;
    font-weight: 800;
}

.gms-character-audit-signup-history-table .badge {
    white-space: nowrap;
}

.gms-character-audit-table .fa-stopwatch {
    color: inherit;
}

/*
|--------------------------------------------------------------------------
| GMS Modal Close Button
|--------------------------------------------------------------------------
*/

.gms-modal-close,
.modal .modal-header .btn-close {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 12px;
    opacity: 0.9;
    background-color: rgba(25, 188, 191, 0.08);
    color: #119C9F;
    border: 1px solid rgba(25, 188, 191, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        opacity 0.15s ease,
        transform 0.15s ease;
}

.gms-modal-close:hover,
.gms-modal-close:focus,
.modal .modal-header .btn-close:hover,
.modal .modal-header .btn-close:focus {
    opacity: 1;
    background-color: #EA5455;
    border-color: #EA5455;
    color: #ffffff;
    transform: scale(1.04);
    box-shadow: none;
    outline: none;
}

.gms-modal-close i {
    color: inherit;
    font-size: 16px;
    line-height: 1;
}

/*
|--------------------------------------------------------------------------
| Permissions Description Popover
|--------------------------------------------------------------------------
*/

.gms-permission-description-popover {
    --bs-popover-max-width: 420px;
    --bs-popover-border-color: rgba(25, 188, 191, 0.35);
    --bs-popover-border-radius: 14px;
    --bs-popover-box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    --bs-popover-body-color: #4b5563;
    --bs-popover-body-padding-x: 16px;
    --bs-popover-body-padding-y: 14px;
    border: 1px solid rgba(25, 188, 191, 0.35);
    overflow: hidden;
}

.gms-permission-description-popover .popover-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    border-bottom: 0;
    background: #19BCBF;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.gms-permission-description-popover .popover-header::before {
    content: "\f05a";
    font-family: "Font Awesome 7 Pro";
    font-weight: 300;
    font-size: 14px;
    color: #ffffff;
}

.gms-permission-description-popover .popover-body {
    position: relative;
    background: #ffffff;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.55;
}

.gms-permission-description-popover .popover-body::before {
    content: "Description";
    display: block;
    margin-bottom: 6px;
    color: #19BCBF;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gms-permission-description-popover.bs-popover-auto[data-popper-placement^="left"]>.popover-arrow::after,
.gms-permission-description-popover.bs-popover-start>.popover-arrow::after {
    border-left-color: #ffffff;
}

.gms-permission-description-popover.bs-popover-auto[data-popper-placement^="right"]>.popover-arrow::after,
.gms-permission-description-popover.bs-popover-end>.popover-arrow::after {
    border-right-color: #ffffff;
}

.gms-permission-description-popover.bs-popover-auto[data-popper-placement^="top"]>.popover-arrow::after,
.gms-permission-description-popover.bs-popover-top>.popover-arrow::after {
    border-top-color: #ffffff;
}

.gms-permission-description-popover.bs-popover-auto[data-popper-placement^="bottom"]>.popover-arrow::after,
.gms-permission-description-popover.bs-popover-bottom>.popover-arrow::after {
    border-bottom-color: #19BCBF;
}

/*
|--------------------------------------------------------------------------
| Navigation Preview
|--------------------------------------------------------------------------
*/

.navigation-preview-shell {
    max-width: 420px;
    border: 1px solid #e7edf3;
    border-radius: 14px;
    background: #f7f9fb;
    overflow: hidden;
}

.navigation-preview-sidebar {
    padding: 12px;
    background: #263544;
    max-height: 360px;
    overflow-y: auto;
}

.navigation-preview-caption {
    margin: 14px 8px 7px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.navigation-preview-caption:first-child {
    margin-top: 4px;
}

.navigation-preview-item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 34px;
    margin-bottom: 3px;
    padding: 7px 9px;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    line-height: 1.2;
}

.navigation-preview-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.navigation-preview-parent {
    color: #ffffff;
    font-weight: 700;
}

.navigation-preview-link {
    font-weight: 600;
}

.navigation-preview-child {
    margin-left: 18px;
    color: rgba(255, 255, 255, 0.68);
}

.navigation-preview-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    min-width: 18px;
    color: #19BCBF;
    font-size: 13px;
}

.navigation-preview-branch {
    width: 18px;
    min-width: 18px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
}

.navigation-preview-label {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.navigation-preview-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.42);
    font-size: 11px;
}

.navigation-preview-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 10px;
}

/*
|--------------------------------------------------------------------------
| Navigation Health
|--------------------------------------------------------------------------
*/

.navigation-health-clear {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(183, 225, 205, 0.8);
    border-radius: 14px;
    background: rgba(183, 225, 205, 0.18);
}

.navigation-health-clear-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #B7E1CD;
    color: #155724;
    font-size: 18px;
}

.navigation-health-clear-title {
    color: #155724;
    font-size: 14px;
    font-weight: 800;
}

.navigation-health-clear-text {
    margin-top: 2px;
    color: #4b6555;
    font-size: 12px;
}

.navigation-health-summary-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.navigation-health-summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 70px;
    padding: 14px;
    border: 1px solid #e7edf3;
    border-radius: 14px;
    background: #ffffff;
}

.navigation-health-summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #ffffff;
    font-size: 17px;
}

.navigation-health-summary-value {
    color: #263544;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.navigation-health-summary-label {
    margin-top: 3px;
    color: #7a8795;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.navigation-health-issue-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.navigation-health-issue {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid #e7edf3;
    border-radius: 13px;
    background: #ffffff;
}

.navigation-health-issue-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
}

.navigation-health-issue-danger {
    border-left: 4px solid #EA9999;
}

.navigation-health-issue-danger .navigation-health-issue-icon {
    background: #EA9999;
}

.navigation-health-issue-warning {
    border-left: 4px solid #FFB64D;
}

.navigation-health-issue-warning .navigation-health-issue-icon {
    background: #FFB64D;
}

.navigation-health-issue-info {
    border-left: 4px solid #19BCBF;
}

.navigation-health-issue-info .navigation-health-issue-icon {
    background: #19BCBF;
}

.navigation-health-issue-body {
    min-width: 0;
    flex: 1;
}

.navigation-health-issue-title {
    color: #263544;
    font-size: 13px;
    font-weight: 800;
}

.navigation-health-issue-message {
    margin-top: 5px;
    color: #667085;
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 767.98px) {
    .navigation-health-summary-strip {
        grid-template-columns: 1fr;
    }
}

/*
|--------------------------------------------------------------------------
| Settings Group Overview
|--------------------------------------------------------------------------
*/

.settings-group-overview {
    overflow: hidden;
}

.settings-group-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.settings-group-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 142px;
    padding: 14px;
    border: 1px solid #e7edf3;
    border-radius: 14px;
    background: #ffffff;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.settings-group-card:hover {
    border-color: rgba(25, 188, 191, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.settings-group-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.settings-group-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 13px;
    color: #ffffff;
    font-size: 17px;
}

.settings-group-card-title {
    color: #263544;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.settings-group-card-description {
    display: -webkit-box;
    margin-top: 4px;
    overflow: hidden;
    color: #7a8795;
    font-size: 12px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.settings-group-card-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}

.settings-group-card-count {
    color: #263544;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.settings-group-card-badges {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    flex-wrap: wrap;
}

.settings-group-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    max-width: 100%;
}

.settings-group-mini-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    min-width: 26px;
    height: 26px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
}

.settings-group-mini-label {
    min-width: 0;
    overflow: hidden;
    color: #263544;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1399.98px) {
    .settings-group-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .settings-group-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .settings-group-card-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .settings-group-card-badges {
        justify-content: flex-start;
    }
}

/*
|--------------------------------------------------------------------------
| GMS Colour Utility Classes
|--------------------------------------------------------------------------
| Used by module summary cards, setting group cards and compact icon badges.
|--------------------------------------------------------------------------
*/

.bg-c-midnight {
    background: #263544 !important;
}

.bg-c-blue {
    background: #19BCBF !important;
}

.bg-c-primary {
    background: #19BCBF !important;
}

.bg-c-info {
    background: #19BCBF !important;
}

.bg-c-success {
    background: #10A175 !important;
}

.bg-c-warning {
    background: #FFB64D !important;
}

.bg-c-danger {
    background: #EA9999 !important;
}

.bg-c-purple {
    background: #6B57D5 !important;
}

.bg-c-api {
    background: #19BCBF !important;
}

.bg-c-loot {
    background: #A855F7 !important;
}

.bg-c-attendance {
    background: #10A175 !important;
}

.bg-c-discord {
    background: #5865F2 !important;
}

.bg-c-secondary {
    background: #6C757D !important;
}

/*
|--------------------------------------------------------------------------
| Settings Group Table Alignment
|--------------------------------------------------------------------------
*/

.settings-group-mini {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    text-align: left;
}

.settings-group-mini-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    height: 28px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
}

.settings-group-mini-label {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: #263544;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*
|--------------------------------------------------------------------------
| Settings Group Management
|--------------------------------------------------------------------------
*/

.settings-group-card-disabled {
    opacity: 0.72;
}

.settings-group-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #edf2f7;
}

.settings-group-card-actions .btn-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 12px;
}

.settings-group-card .badge {
    white-space: nowrap;
}

/*
|--------------------------------------------------------------------------
| Documentation Filters
|--------------------------------------------------------------------------
|
| Compact GMS-style filters used inside documentation pages.
|
*/

.gms-doc-filter-row {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) minmax(150px, 0.75fr) minmax(190px, 1fr) minmax(150px, 0.75fr) 86px;
    gap: 10px;
    align-items: end;
}

.gms-doc-filter-field {
    min-width: 0;
}

.gms-doc-filter-field .form-label {
    display: block;
    height: 14px;
    margin: 0 0 6px;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 14px;
    text-transform: uppercase;
}

.gms-doc-filter-field .input-group,
.gms-doc-filter-field .select2-container,
.gms-doc-filter-field select,
.gms-doc-filter-field .form-control {
    width: 100% !important;
}

.gms-doc-filter-field .input-group {
    display: flex;
    align-items: stretch;
}

.gms-doc-filter-field .input-group-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0;
    border: 1px solid #d9e2ec !important;
    border-right: 0 !important;
    border-radius: 4px 0 0 4px !important;
    background: #f8fafc !important;
    color: #7b8494 !important;
    font-size: 13px;
    box-shadow: none !important;
}

.gms-doc-filter-field .form-control {
    height: 34px !important;
    min-height: 34px !important;
    border: 1px solid #d9e2ec !important;
    border-radius: 0 4px 4px 0 !important;
    background: #ffffff !important;
    color: #263544 !important;
    font-size: 12px !important;
    font-weight: 600;
    line-height: 34px !important;
    box-shadow: none !important;
}

.gms-doc-filter-field .form-control::placeholder {
    color: #9aa5b1 !important;
    font-weight: 500;
}

.gms-doc-filter-field .form-control:focus,
.gms-doc-filter-field .input-group:focus-within .input-group-text {
    border-color: #19BCBF !important;
    box-shadow: 0 0 0 0.15rem rgba(25, 188, 191, 0.14) !important;
}

/*
|--------------------------------------------------------------------------
| Documentation Filter Select2
|--------------------------------------------------------------------------
*/

.gms-doc-filter-field .select2-container {
    display: block !important;
    height: 34px !important;
    min-height: 34px !important;
}

.gms-doc-filter-field .select2-container .select2-selection--single {
    display: flex !important;
    align-items: center !important;
    height: 34px !important;
    min-height: 34px !important;
    border: 1px solid #d9e2ec !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.gms-doc-filter-field .select2-container .select2-selection--single .select2-selection__rendered {
    display: block !important;
    width: 100% !important;
    height: 32px !important;
    padding-left: 10px !important;
    padding-right: 34px !important;
    color: #263544 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 32px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gms-doc-filter-field .select2-container .select2-selection--single .select2-selection__placeholder {
    color: #9aa5b1 !important;
    font-weight: 500 !important;
}

.gms-doc-filter-field .select2-container .select2-selection--single .select2-selection__arrow {
    top: 0 !important;
    right: 7px !important;
    width: 20px !important;
    height: 32px !important;
}

.gms-doc-filter-field .select2-container .select2-selection--single .select2-selection__arrow b {
    border-top-color: #7b8494 !important;
}

.gms-doc-filter-field .select2-container--open .select2-selection--single,
.gms-doc-filter-field .select2-container--focus .select2-selection--single {
    border-color: #19BCBF !important;
    box-shadow: 0 0 0 0.15rem rgba(25, 188, 191, 0.14) !important;
}

.gms-doc-filter-field .select2-container .select2-selection__clear {
    position: absolute !important;
    top: 0 !important;
    right: 27px !important;
    height: 32px !important;
    margin: 0 !important;
    color: #9aa5b1 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 32px !important;
}

.gms-doc-filter-field .select2-container .select2-selection__clear:hover {
    color: #EA5455 !important;
}

/*
|--------------------------------------------------------------------------
| Documentation Filter Dropdown
|--------------------------------------------------------------------------
*/

.gms-doc-select2-dropdown,
.select2-dropdown.gms-doc-select2-dropdown {
    overflow: hidden !important;
    border: 1px solid #d9e2ec !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14) !important;
}

.gms-doc-select2-dropdown .select2-search--dropdown {
    padding: 8px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #edf2f7 !important;
}

.gms-doc-select2-dropdown .select2-search--dropdown .select2-search__field {
    height: 32px !important;
    border: 1px solid #d9e2ec !important;
    border-radius: 4px !important;
    color: #263544 !important;
    font-size: 12px !important;
    outline: none !important;
    box-shadow: none !important;
}

.gms-doc-select2-dropdown .select2-search--dropdown .select2-search__field:focus {
    border-color: #19BCBF !important;
    box-shadow: 0 0 0 0.15rem rgba(25, 188, 191, 0.14) !important;
}

.gms-doc-select2-dropdown .select2-results__option {
    min-height: 32px !important;
    padding: 8px 10px !important;
    color: #374151 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
}

.gms-doc-select2-dropdown .select2-results__option[aria-selected="true"] {
    background: rgba(25, 188, 191, 0.10) !important;
    color: #159B9D !important;
}

.gms-doc-select2-dropdown .select2-results__option--highlighted[aria-selected],
.gms-doc-select2-dropdown .select2-results__option--highlighted {
    background: #19BCBF !important;
    color: #ffffff !important;
}

/*
|--------------------------------------------------------------------------
| Documentation Filter Reset Button
|--------------------------------------------------------------------------
*/

.gms-doc-filter-reset-wrap {
    min-width: 0;
}

.gms-doc-filter-reset-spacer {
    display: block;
    height: 14px;
    margin-bottom: 6px;
}

.gms-doc-filter-reset {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 10px !important;
    border: 1px solid rgba(25, 188, 191, 0.22) !important;
    border-radius: 4px !important;
    background: rgba(25, 188, 191, 0.08) !important;
    color: #159B9D !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.gms-doc-filter-reset:hover,
.gms-doc-filter-reset:focus {
    border-color: rgba(25, 188, 191, 0.42) !important;
    background: rgba(25, 188, 191, 0.14) !important;
    color: #117E80 !important;
    box-shadow: none !important;
}

/*
|--------------------------------------------------------------------------
| Documentation Filter Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 1399.98px) {
    .gms-doc-filter-row {
        grid-template-columns: minmax(240px, 1.3fr) minmax(140px, 0.8fr) minmax(170px, 1fr) minmax(130px, 0.8fr) 82px;
    }
}

@media (max-width: 1199.98px) {
    .gms-doc-filter-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gms-doc-filter-reset-wrap {
        grid-column: span 2;
    }
}

@media (max-width: 575.98px) {
    .gms-doc-filter-row {
        grid-template-columns: 1fr;
    }

    .gms-doc-filter-reset-wrap {
        grid-column: auto;
    }
}

/*
|--------------------------------------------------------------------------
| Documentation Filters - Alignment Fix
|--------------------------------------------------------------------------
|
| Fixes the search input group wrapping onto two rows.
| Keep this below the main Documentation Filters block.
|
*/

.gms-doc-filter-field .input-group.input-group-sm {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 34px !important;
    min-height: 34px !important;
}

.gms-doc-filter-field .input-group.input-group-sm>.input-group-text {
    flex: 0 0 42px !important;
    width: 42px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border: 1px solid #d9e2ec !important;
    border-right: 0 !important;
    border-radius: 4px 0 0 4px !important;
    background: #f8fafc !important;
    color: #7b8494 !important;
    line-height: 34px !important;
}

.gms-doc-filter-field .input-group.input-group-sm>.form-control {
    flex: 1 1 auto !important;
    width: 1% !important;
    min-width: 0 !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    border: 1px solid #d9e2ec !important;
    border-left: 0 !important;
    border-radius: 0 4px 4px 0 !important;
    background: #ffffff !important;
    color: #263544 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 32px !important;
    box-shadow: none !important;
}

.gms-doc-filter-field .input-group.input-group-sm>.form-control:focus {
    border-color: #19BCBF !important;
    box-shadow: none !important;
}

.gms-doc-filter-field .input-group.input-group-sm:focus-within>.input-group-text,
.gms-doc-filter-field .input-group.input-group-sm:focus-within>.form-control {
    border-color: #19BCBF !important;
}

.gms-doc-filter-field .input-group.input-group-sm:focus-within {
    box-shadow: 0 0 0 0.15rem rgba(25, 188, 191, 0.14) !important;
    border-radius: 4px !important;
}

/*
|--------------------------------------------------------------------------
| Documentation Filters - Vertical Consistency
|--------------------------------------------------------------------------
*/

.gms-doc-filter-field,
.gms-doc-filter-reset-wrap {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    min-width: 0 !important;
}

.gms-doc-filter-field .form-label,
.gms-doc-filter-reset-spacer {
    height: 14px !important;
    min-height: 14px !important;
    margin: 0 0 6px !important;
    line-height: 14px !important;
}

.gms-doc-filter-field .select2-container,
.gms-doc-filter-reset {
    height: 34px !important;
    min-height: 34px !important;
}

/*
|--------------------------------------------------------------------------
| Documentation Filters - Cleaner 1080p Row
|--------------------------------------------------------------------------
*/

.gms-doc-filter-row {
    display: grid !important;
    grid-template-columns:
        minmax(300px, 1.45fr) minmax(150px, 0.8fr) minmax(210px, 1fr) minmax(150px, 0.8fr) 86px !important;
    gap: 10px !important;
    align-items: end !important;
}

@media (max-width: 1399.98px) {
    .gms-doc-filter-row {
        grid-template-columns:
            minmax(280px, 1.4fr) minmax(140px, 0.8fr) minmax(190px, 1fr) minmax(140px, 0.8fr) 82px !important;
    }
}

@media (max-width: 1199.98px) {
    .gms-doc-filter-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .gms-doc-filter-reset-wrap {
        grid-column: span 2;
    }
}