* {
    box-sizing: border-box;
}

:root {
    --bg: #090c11;
    --bg2: #0d1118;
    --panel: #131923;
    --panel2: #171e29;
    --border: #252e3b;
    --text: #f4f7fb;
    --muted: #8390a2;
    --primary: #5d72ff;
    --success: #2e9b64;
    --warning: #c98a2e;
    --danger: #c74d58;
    --shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(93,114,255,.06), transparent 30%),
        var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

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

button {
    border: 0;
}

input,
textarea,
select {
    width: 100%;
    color: var(--text);
    background: #0e131b;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
}

input,
select {
    min-height: 42px;
    padding: 0 12px;
}

textarea {
    padding: 12px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
}

.hidden {
    display: none !important;
}

.brand {
    font-weight: 900;
    letter-spacing: 1.5px;
}

.eyebrow {
    color: #697688;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.1px;
}

.dot-sep {
    padding: 0 7px;
    color: #536072;
}

/* LOGIN */

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px;
}

.login-card {
    width: min(430px, 100%);
    padding: 34px;
    background: rgba(19, 25, 35, .96);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.login-card h1 {
    margin: 8px 0 6px;
    font-size: 30px;
}

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

.login-card label {
    display: block;
    margin: 15px 0 7px;
    color: #a0a9b7;
    font-size: 12px;
}

.login-card .btn {
    margin-top: 20px;
}

.login-foot {
    margin-top: 18px;
    padding-top: 15px;
    color: #657184;
    border-top: 1px solid var(--border);
    font-size: 11px;
    text-align: center;
}

.form-error {
    min-height: 20px;
    margin-top: 12px;
    color: #ff727c;
    font-size: 12px;
}

/* APP LAYOUT */

.app {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 245px 1fr;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px 17px 18px;
    background: #0d1118;
    border-right: 1px solid #1f2631;
}

.sidebar-brand {
    padding: 0 11px 24px;
}

.sidebar-brand span {
    display: block;
    margin-top: 4px;
    color: #657184;
    font-size: 11px;
}

.sidebar nav {
    display: grid;
    gap: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 11px 12px;
    color: #8f9aaa;
    background: transparent;
    border-radius: 9px;
    cursor: pointer;
    text-align: left;
}

.nav-item:hover {
    color: #fff;
    background: #151b24;
}

.nav-item.active {
    color: #fff;
    background: #1a2230;
}

.nav-item span {
    width: 18px;
    color: #6f80ff;
    text-align: center;
}

.sidebar-footer {
    margin-top: auto;
}

.account-block {
    display: grid;
    gap: 6px;
    margin-bottom: 11px;
    padding: 12px;
    background: #111720;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.account-block strong {
    font-size: 12px;
}

.role-badge {
    width: max-content;
    padding: 4px 7px;
    color: #9eabbb;
    background: #1f2733;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.content-shell {
    min-width: 0;
}

.topbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 28px;
    background: rgba(13, 17, 24, .86);
    border-bottom: 1px solid #1f2631;
    backdrop-filter: blur(12px);
}

.topbar h2 {
    margin: 3px 0 0;
    font-size: 21px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.content {
    width: min(1450px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 50px;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

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

.section-head h1 {
    margin: 0;
    font-size: 24px;
}

.section-head p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

/* COMPONENTS */

.card {
    background: linear-gradient(180deg, rgba(23,30,41,.98), rgba(19,25,35,.98));
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: 0 12px 35px rgba(0,0,0,.12);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.card h3,
.card-head h3 {
    margin: 0;
    font-size: 15px;
}

.card p,
.card-head p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.btn {
    min-height: 39px;
    padding: 0 14px;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease, filter .15s ease;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.btn:disabled {
    opacity: .42;
    cursor: not-allowed;
    transform: none;
}

.btn.wide {
    width: 100%;
}

.btn.small {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11px;
}

.btn.primary {
    background: var(--primary);
}

.btn.success {
    background: var(--success);
}

.btn.warning {
    background: var(--warning);
}

.btn.danger {
    background: var(--danger);
}

.btn.ghost {
    background: #202938;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.pill.online {
    color: #5ee0a2;
    background: rgba(46, 155, 100, .15);
}

.pill.offline {
    color: #ff777f;
    background: rgba(199,77,88,.15);
}

.pill.warning {
    color: #f3bd6d;
    background: rgba(201,138,46,.15);
}

.pill.neutral {
    color: #9ba7b8;
    background: #1b2430;
}

.inline-status {
    display: inline-block;
    min-height: 18px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
}

.notice {
    margin-bottom: 15px;
    padding: 12px 14px;
    color: #b9c3d0;
    background: #151d28;
    border: 1px solid var(--border);
    border-radius: 10px;
}

/* DASHBOARD */

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px;
}

.hero h1 {
    margin: 8px 0 8px;
    font-size: 28px;
}

.hero p {
    margin: 0;
}

.hero-state-row {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #9aa5b4;
    font-size: 12px;
}

.state-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.state-dot.online {
    background: #49d78f;
    box-shadow: 0 0 14px rgba(73,215,143,.55);
}

.state-dot.offline {
    background: #dc5d67;
    box-shadow: 0 0 14px rgba(220,93,103,.35);
}

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

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin-top: 13px;
}

.stat-card {
    padding: 18px;
}

.stat-card span,
.stat-card small {
    display: block;
    color: var(--muted);
}

.stat-card span {
    margin-bottom: 8px;
    font-size: 11px;
}

.stat-card strong {
    display: block;
    margin-bottom: 5px;
    font-size: 24px;
}

.stat-card small {
    font-size: 10px;
}

.dashboard-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    margin-top: 13px;
}

.dashboard-two > .card {
    padding: 18px;
}

.restart-info {
    display: grid;
    gap: 5px;
}

.restart-info strong {
    font-size: 21px;
}

.restart-info span {
    color: var(--muted);
    font-size: 11px;
}

.maintenance-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.switch input {
    display: none;
}

.switch span {
    position: relative;
    display: block;
    width: 42px;
    height: 23px;
    background: #2a3340;
    border-radius: 999px;
    cursor: pointer;
}

.switch span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 17px;
    height: 17px;
    background: #fff;
    border-radius: 50%;
    transition: .2s ease;
}

.switch input:checked + span {
    background: var(--primary);
}

.switch input:checked + span::after {
    transform: translateX(19px);
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin-top: 13px;
}

.chart-card {
    padding: 18px;
}

.chart-card canvas {
    width: 100%;
    height: 210px;
    display: block;
}

/* TABLES */

.table-card {
    overflow: hidden;
}

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

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

th,
td {
    padding: 13px 14px;
    border-bottom: 1px solid #222b37;
    text-align: left;
    vertical-align: middle;
}

th {
    color: #697688;
    font-size: 10px;
    letter-spacing: .7px;
    text-transform: uppercase;
}

td {
    color: #c5ccd6;
    font-size: 12px;
}

tbody tr:hover {
    background: rgba(255,255,255,.018);
}

tbody tr:last-child td {
    border-bottom: 0;
}

.empty-state {
    padding: 30px;
    color: #6f7b8c;
    text-align: center;
}

.player-name {
    font-weight: 700;
    color: #f2f5f9;
}

.steam {
    color: #8592a3;
    font-family: Consolas, monospace;
    font-size: 11px;
}

.ping-good {
    color: #54d898;
}

.ping-medium {
    color: #e2af5f;
}

.ping-bad {
    color: #ec6e77;
}

/* SERVER TOOLS */

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

.tools-grid > .card {
    padding: 18px;
}

.tools-grid textarea {
    margin-bottom: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.two-inputs {
    display: grid;
    grid-template-columns: .5fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.two-inputs label,
.schedule-create-grid label,
.drawer-section label {
    display: block;
    margin-bottom: 6px;
    color: #8793a3;
    font-size: 11px;
}

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

/* CONSOLE */

.console-card {
    margin-top: 13px;
    overflow: hidden;
}

.console-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}

.console-toolbar h3 {
    margin: 0;
}

.console-toolbar p {
    margin: 4px 0 0;
}

.console-tools {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.compact-input {
    width: 180px;
    min-height: 32px;
    padding: 0 9px;
    font-size: 11px;
}

.live-console {
    height: 480px;
    overflow: auto;
    padding: 13px 15px;
    color: #c1c9d5;
    background: #05070a;
    font-family: Consolas, "Courier New", monospace;
    font-size: 11px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.console-line-entry {
    min-height: 17px;
}

.console-line-entry:hover {
    background: rgba(255,255,255,.02);
}

.console-system-line {
    color: #6c7889;
    font-style: italic;
}

.console-command {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    background: #0a0e14;
    border-top: 1px solid #202834;
}

.console-command span {
    padding-left: 14px;
    color: #7182ff;
    font-family: Consolas, monospace;
}

.console-command input {
    min-height: 46px;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-family: Consolas, monospace;
}

.console-command .btn {
    align-self: stretch;
    border-radius: 0;
}

.console-result {
    min-height: 36px;
    padding: 9px 14px;
    color: #7d8999;
    background: #0d1118;
    border-top: 1px solid #1c2430;
    font-family: Consolas, monospace;
    font-size: 10px;
}

/* SCHEDULE */

.schedule-create-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    margin-bottom: 13px;
}

.schedule-create-grid > .card {
    padding: 18px;
}

.schedule-create-grid input {
    margin-bottom: 10px;
}

.schedule-create-grid p {
    min-height: 36px;
    margin-bottom: 13px;
}

/* BACKUPS / ADMIN */

#backupsView > .card,
#adminView > .card,
#scheduleView > .card {
    margin-bottom: 13px;
}

#adminView > .card {
    padding: 18px;
}

.user-form {
    display: grid;
    grid-template-columns: 1fr 1.3fr .8fr auto;
    gap: 9px;
    margin: 14px 0 4px;
}

.audit-table-wrap {
    max-height: 530px;
    overflow: auto;
}

/* DRAWER */

.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(0,0,0,.52);
    backdrop-filter: blur(3px);
}

.player-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
    width: min(430px, 100%);
    height: 100vh;
    overflow-y: auto;
    padding: 24px;
    background: #101620;
    border-left: 1px solid var(--border);
    box-shadow: -30px 0 70px rgba(0,0,0,.28);
}

.drawer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.drawer-head h2 {
    margin: 5px 0 4px;
}

.drawer-head p {
    margin: 0;
    color: #718093;
    font-family: Consolas, monospace;
    font-size: 11px;
}

.icon-button {
    width: 34px;
    height: 34px;
    color: #c6cfda;
    background: #202938;
    border-radius: 8px;
    cursor: pointer;
    font-size: 22px;
}

.drawer-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding: 13px;
    background: #151c27;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.drawer-stat span {
    color: #7d8999;
    font-size: 11px;
}

.drawer-section {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #222b37;
}

.drawer-section textarea,
.drawer-section input {
    margin-bottom: 9px;
}

.drawer-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.drawer-section .wide + .wide {
    margin-top: 8px;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .user-form {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .sidebar {
        position: static;
        height: auto;
        padding: 13px;
        border-right: 0;
        border-bottom: 1px solid #1f2631;
    }

    .sidebar-brand {
        padding: 0 4px 12px;
    }

    .sidebar nav {
        display: flex;
        overflow-x: auto;
    }

    .nav-item {
        width: auto;
        white-space: nowrap;
    }

    .sidebar-footer {
        display: none;
    }

    .topbar {
        padding: 12px 16px;
    }

    .content {
        width: min(100% - 22px, 1450px);
        padding-top: 18px;
    }

    .hero {
        display: block;
    }

    .hero .action-row {
        margin-top: 20px;
    }

    .dashboard-two,
    .schedule-create-grid {
        grid-template-columns: 1fr;
    }

    .console-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 580px) {
    .topbar-right {
        display: none;
    }

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

    .maintenance-box,
    .form-row,
    .two-inputs,
    .user-form {
        grid-template-columns: 1fr;
    }

    .action-row,
    .drawer-buttons {
        grid-template-columns: 1fr;
        display: grid;
    }

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

    .compact-input {
        width: 100%;
    }
}


.metrics-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 13px;
    color: var(--muted);
    font-size: 11px;
}

.metrics-toolbar .compact-input {
    width: 140px;
}

.delay-buttons {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin: -2px 0 12px;
}


/* V4.1 - LOGIN REMEMBER */

.remember-option {
    display: flex !important;
    align-items: center;
    gap: 9px;
    margin: 14px 0 0 !important;
    color: #96a2b2 !important;
    cursor: pointer;
    user-select: none;
}

.remember-option input {
    width: 16px;
    min-height: auto;
    height: 16px;
    margin: 0;
    accent-color: var(--primary);
}

.remember-option span {
    font-size: 12px;
}

/* V4.1 - CONSOLE COLORS */

.console-color-legend {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 15px;
    background: #080b10;
    border-bottom: 1px solid #1c2430;
    font-family: Consolas, monospace;
    font-size: 10px;
}

.console-color-legend span::before {
    content: "●";
    margin-right: 5px;
}

.legend-error,
.console-error-line {
    color: #ff727c;
}

.legend-warning,
.console-warning-line {
    color: #e9b75f;
}

.legend-success,
.console-success-line {
    color: #5dde9c;
}

.legend-disconnect,
.console-disconnect-line {
    color: #ee9960;
}

.legend-darkrp,
.console-darkrp-line {
    color: #c99cff;
}

.legend-control,
.console-control-line {
    color: #65c9ff;
}

.legend-workshop,
.console-workshop-line {
    color: #77a9ff;
}

.console-admin-line {
    color: #62d6d0;
}

.console-system-line {
    color: #6c7889;
    font-style: italic;
}

/* V4.1 - ADDONS */

.addon-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 13px;
}

.addon-stat-card {
    padding: 18px;
}

.addon-stat-card span {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 11px;
}

.addon-stat-card strong {
    font-size: 25px;
}

.addons-card {
    overflow: hidden;
}

.addons-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px;
    border-bottom: 1px solid var(--border);
}

.addons-toolbar h3 {
    margin: 0;
}

.addons-toolbar p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.addons-search {
    width: min(320px, 100%);
}

.addon-name {
    min-width: 190px;
    color: #f0f4f9;
    font-weight: 700;
}

.addon-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.addon-tags span {
    padding: 2px 6px;
    color: #95a2b4;
    background: #202938;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 600;
}

.addon-loaded-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    color: #5dde9c;
    background: rgba(46, 155, 100, .13);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .35px;
    white-space: nowrap;
    text-transform: uppercase;
}

#addonsView code {
    color: #94a4ba;
    background: #161e29;
    border: 1px solid #263141;
    border-radius: 5px;
    padding: 2px 5px;
}

@media (max-width: 700px) {
    .addon-stats {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .addons-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .addons-search {
        width: 100%;
    }
}

/* V4.2 - DARKRP */

.darkrp-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin-top: 13px;
}

.darkrp-economy-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 13px;
}

.economy-card {
    padding: 18px;
}

.economy-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 11px;
}

.economy-card strong {
    display: block;
    font-size: 21px;
    line-height: 1.3;
}

.darkrp-two-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    margin-bottom: 13px;
}

.darkrp-panel-card {
    padding: 18px;
}

.job-distribution {
    display: grid;
    gap: 11px;
}

.job-distribution-row {
    display: grid;
    gap: 6px;
}

.job-distribution-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #bac3cf;
    font-size: 12px;
}

.job-distribution-label strong {
    color: #fff;
}

.job-distribution-bar {
    height: 6px;
    overflow: hidden;
    background: #202936;
    border-radius: 999px;
}

.job-distribution-bar > div {
    height: 100%;
    background: var(--primary);
    border-radius: inherit;
}

.ban-form-grid {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 9px;
    margin-bottom: 9px;
}

#offlineBanReason {
    margin-bottom: 9px;
}

.darkrp-log-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.darkrp-log-table-wrap {
    max-height: 560px;
    overflow: auto;
}

.ban-active {
    color: #5dde9c;
    font-weight: 800;
}

.ban-inactive {
    color: #788496;
}

.darkrp-job-cell {
    color: #d4b2ff;
    font-weight: 600;
}

.darkrp-money-cell {
    color: #68dfa0;
    font-weight: 700;
    white-space: nowrap;
}

.player-group-cell {
    color: #89a7ff;
    font-weight: 600;
}

.drawer-darkrp-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 9px;
}

.drawer-darkrp-stats > div {
    padding: 12px;
    background: #151c27;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.drawer-darkrp-stats span {
    display: block;
    margin-bottom: 6px;
    color: #7d8999;
    font-size: 10px;
}

.drawer-darkrp-stats strong {
    display: block;
    overflow: hidden;
    color: #eef2f7;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drawer-darkrp-admin-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-bottom: 8px;
}

.drawer-darkrp-admin-grid.money-grid {
    grid-template-columns: 1fr auto auto;
}

.drawer-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.drawer-history-head label {
    margin: 0;
}

.player-history-list {
    max-height: 300px;
    overflow-y: auto;
    display: grid;
    gap: 7px;
}

.history-item {
    padding: 10px;
    background: #151c27;
    border: 1px solid #232d3a;
    border-radius: 9px;
}

.history-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.history-item-head strong {
    color: #bdc7d4;
    font-size: 11px;
}

.history-item-head span {
    color: #647184;
    font-size: 9px;
}

.history-item-detail {
    margin-top: 5px;
    color: #8d99aa;
    font-size: 11px;
    line-height: 1.4;
    word-break: break-word;
}

.history-empty {
    padding: 13px;
    color: #6f7b8d;
    background: #121923;
    border: 1px dashed #27313f;
    border-radius: 9px;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 1050px) {
    .darkrp-dashboard-stats,
    .darkrp-economy-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 620px) {
    .darkrp-dashboard-stats,
    .darkrp-economy-grid,
    .drawer-darkrp-stats,
    .ban-form-grid,
    .drawer-darkrp-admin-grid,
    .drawer-darkrp-admin-grid.money-grid {
        grid-template-columns: 1fr;
    }

    .darkrp-log-tools {
        align-items: stretch;
        flex-direction: column;
    }
}


/* V4.2.2 - GESTION ADDONS */

.section-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.addon-stats-four {
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
}

.addon-restart-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 13px;
    padding: 14px 16px;
    color: #e8d2a8;
    background:
        rgba(
            201,
            138,
            46,
            .10
        );
    border: 1px solid
        rgba(
            201,
            138,
            46,
            .30
        );
    border-radius: 12px;
}

.addon-restart-notice strong,
.addon-restart-notice span {
    display: block;
}

.addon-restart-notice strong {
    margin-bottom: 4px;
    color: #f0bb69;
    font-size: 12px;
}

.addon-restart-notice span {
    color: #a89b88;
    font-size: 11px;
    line-height: 1.45;
}

.addons-toolbar-manage {
    gap: 22px;
}

.addons-filters {
    display: flex;
    align-items: center;
    gap: 8px;
}

.addons-filters select {
    width: 125px;
}

.addons-readonly-notice {
    margin: 12px 18px 0;
    padding: 10px 12px;
    color: #9ba7b7;
    background: #111821;
    border: 1px solid #26303d;
    border-radius: 9px;
    font-size: 11px;
}

.addon-name-line {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.addon-protected-badge {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 6px;
    color: #68cbff;
    background:
        rgba(
            74,
            170,
            220,
            .12
        );
    border: 1px solid
        rgba(
            74,
            170,
            220,
            .22
        );
    border-radius: 999px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .35px;
    text-transform: uppercase;
}

.addon-disabled-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    color: #ff8b93;
    background:
        rgba(
            199,
            77,
            88,
            .13
        );
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .35px;
    white-space: nowrap;
    text-transform: uppercase;
}

.addon-disabled-row {
    opacity: .70;
}

.addon-disabled-row:hover {
    opacity: 1;
}

.addon-action-cell {
    min-width: 104px;
    text-align: right;
}

.addon-locked-text {
    color: #637083;
    font-size: 10px;
}

.addon-info-grid {
    display: grid;
    grid-template-columns:
        1fr 1fr;
    gap: 13px;
    margin-top: 13px;
}

.addon-help-card {
    padding: 17px;
}

.addon-help-card h3 {
    margin: 0 0 7px;
}

.addon-help-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.addon-help-card code {
    color: #9db2ff;
    background: #111822;
    border: 1px solid #263140;
    border-radius: 5px;
    padding: 2px 5px;
}

@media (max-width: 900px) {
    .addon-stats-four {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .addon-info-grid {
        grid-template-columns:
            1fr;
    }

    .addons-toolbar-manage {
        align-items: stretch;
        flex-direction: column;
    }

    .addons-filters {
        align-items: stretch;
    }

    .addons-search {
        width: 100%;
    }
}

@media (max-width: 580px) {
    .addon-restart-notice {
        align-items: stretch;
        flex-direction: column;
    }

    .addons-filters {
        flex-direction: column;
    }

    .addons-filters select {
        width: 100%;
    }
}
