:root {
    --bg-1: #020817;
    --bg-2: #061225;
    --primary: #00E5FF;
    --secondary: #008CFF;
    --text: #FFFFFF;
    --muted: #8BA9C7;
    --card-bg: rgba(8, 22, 44, 0.65);
    --card-border: rgba(0, 229, 255, 0.22);
    --glow: 0 0 22px rgba(0, 229, 255, 0.35);
    --danger: #ff3b6b;
    --success: #00ffa3;
    --warn: #ffb800;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background:
        radial-gradient(1200px 800px at 8% -10%, #062247 0%, transparent 60%),
        radial-gradient(900px 700px at 110% 0%, #0a1a3d 0%, transparent 55%),
        linear-gradient(180deg, #020817 0%, #040d1e 100%);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Layout ---------- */
.app {
    display: flex;
    min-height: 100vh;
    overflow-x: clip;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(6, 18, 37, 0.9) 0%, rgba(2, 8, 23, 0.9) 100%);
    border-right: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    padding: 20px 14px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    backdrop-filter: blur(12px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px 18px;
}

.brand-center {
    justify-content: center;
    padding-bottom: 24px;
    flex-direction: column;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 14px;
}

.brand-sub {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 1px;
}

.brand-center .brand-text {
    align-items: center;
    text-align: center;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    transition: all .15s ease;
    border: 1px solid transparent;
}

.nav-item:hover {
    color: var(--text);
    background: rgba(0, 229, 255, 0.06);
}

.nav-item.active {
    color: var(--text);
    background: rgba(0, 229, 255, 0.10);
    border-color: var(--card-border);
    box-shadow: inset 0 0 12px rgba(0, 229, 255, 0.15);
}

.nav-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    width: 20px;
    text-align: center;
    color: var(--muted);
    transition: color .15s ease;
}

.nav-item:hover .nav-ico {
    color: var(--primary);
}

.nav-item.active .nav-ico {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

.sidebar-foot {
    padding-top: 14px;
    border-top: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #001a2b;
}

.user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.user-name {
    font-size: 12px;
    font-weight: 600;
}

.user-role {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 1px;
}

.main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 28px;
    border-bottom: 1px solid var(--card-border);
    background: rgba(2, 8, 23, 0.5);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.page-title {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    margin: 0;
}

.topbar-right {
    margin-left: auto;
}

.clock {
    font-family: 'Rajdhani', 'Inter', monospace;
    color: var(--primary);
    font-size: 14px;
    letter-spacing: 2px;
    text-shadow: var(--glow);
}

.menu-btn {
    display: none;
    background: none;
    color: var(--text);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 16px;
    cursor: pointer;
}

.content {
    padding: 24px 28px 60px;
}

/* ---------- Cards ---------- */
.card {
    border-radius: 16px;
    padding: 18px 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25), inset 0 0 30px rgba(0, 229, 255, 0.03);
    backdrop-filter: blur(10px);
}

.glass {}

.card-title {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 2.5px;
    color: var(--muted);
    margin-bottom: 14px;
    text-transform: uppercase;
}

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

.card-head .card-title {
    margin: 0;
}

/* ---------- KPI ---------- */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.kpi {
    padding: 16px 18px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(8, 22, 44, 0.85), rgba(3, 10, 24, 0.85));
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}

.kpi:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

.kpi-label {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--muted);
    font-family: 'Rajdhani', 'Inter', sans-serif;
}

.kpi-value {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
}

.kpi-value.accent {
    color: var(--primary);
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.55);
}

.kpi-value.accent2 {
    color: var(--secondary);
    text-shadow: 0 0 12px rgba(0, 140, 255, 0.55);
}

.kpi-value.warn {
    color: var(--warn);
}

.kpi-inline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kpi-inline strong {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 20px;
    display: block;
    margin-top: 2px;
}

.kpi-inline .accent {
    color: var(--primary);
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.55);
}

/* ---------- Grids ---------- */
.grid {
    display: grid;
    gap: 16px;
}

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

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

.mt {
    margin-top: 18px;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 12px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s ease;
    background: transparent;
    color: var(--text);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(0, 140, 255, 0.18));
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.25), inset 0 0 12px rgba(0, 229, 255, 0.12);
}

.btn-primary:hover {
    background: rgba(0, 229, 255, 0.28);
    color: #001a2b;
    box-shadow: var(--glow);
}

.btn-secondary {
    background: rgba(0, 140, 255, 0.10);
    border-color: var(--secondary);
    color: var(--secondary);
}

.btn-secondary:hover {
    background: rgba(0, 140, 255, 0.22);
    color: #fff;
}

.btn-danger {
    background: rgba(255, 59, 107, 0.10);
    border-color: var(--danger);
    color: var(--danger);
}

.btn-danger:hover {
    background: rgba(255, 59, 107, 0.28);
    color: #fff;
}

.btn-ghost {
    border-color: var(--card-border);
    color: var(--muted);
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--primary);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 11px;
}

.btn-xs {
    padding: 4px 10px;
    font-size: 10px;
}

/* ---------- Forms ---------- */
.form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-inline-edit {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 10px;
    margin-top: 8px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--muted);
    text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
    background: rgba(2, 8, 23, 0.7);
    border: 1px solid var(--card-border);
    color: var(--text);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    text-transform: none;
    letter-spacing: 0;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
}

.field select {
    appearance: none;
}

.inline-form {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.inline-form input {
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(2, 8, 23, 0.7);
    border: 1px solid var(--card-border);
    color: var(--text);
    font-size: 12px;
}

/* ---------- Tables ---------- */
.table-wrap {
    overflow-x: auto;
}

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

.table th {
    text-align: left;
    padding: 10px 12px;
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--muted);
    text-transform: uppercase;
    border-bottom: 1px solid var(--card-border);
    white-space: nowrap;
}

.table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0, 229, 255, 0.06);
}

.table tbody tr:hover {
    background: rgba(0, 229, 255, 0.04);
}

.table .accent {
    color: var(--primary);
    font-weight: 600;
}

.table .warn {
    color: var(--warn);
}

.row-warn {
    background: rgba(255, 184, 0, 0.05);
}

.row-active {
    background: rgba(0, 229, 255, 0.06);
}

.row-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 6px;
    border: 1px solid var(--card-border);
    background: rgba(0, 229, 255, 0.06);
    color: var(--muted);
}

.badge.ok {
    color: var(--success);
    border-color: rgba(0, 255, 163, 0.35);
    background: rgba(0, 255, 163, 0.08);
}

.badge.off {
    color: var(--danger);
    border-color: rgba(255, 59, 107, 0.35);
    background: rgba(255, 59, 107, 0.08);
}

.empty {
    padding: 24px;
    text-align: center;
    color: var(--muted);
    font-family: 'Rajdhani', 'Inter', sans-serif;
    letter-spacing: 3px;
    font-size: 12px;
    border: 1px dashed var(--card-border);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.15);
}

.notes {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.notes li::marker {
    color: var(--primary);
}

/* ---------- Duty card ---------- */
.duty-card {
    text-align: center;
    padding: 28px 20px;
}

.duty-status {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    letter-spacing: 4px;
    font-size: 16px;
    margin-bottom: 10px;
}

.duty-status.on {
    color: var(--primary);
    text-shadow: 0 0 14px rgba(0, 229, 255, 0.6);
    animation: pulse 2s infinite;
}

.duty-status.off {
    color: var(--muted);
}

.duty-timer {
    font-family: 'Rajdhani', 'Inter', monospace;
    font-size: 44px;
    font-weight: 700;
    letter-spacing: 4px;
    margin: 12px 0;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ---------- Tabs ---------- */
.tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: rgba(2, 8, 23, 0.6);
}

.tab {
    padding: 8px 18px;
    border-radius: 9px;
    color: var(--muted);
    text-decoration: none;
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    transition: all .15s ease;
}

.tab:hover {
    color: var(--text);
}

.tab.active {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.20), rgba(0, 140, 255, 0.20));
    color: var(--primary);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}

/* ---------- Alerts ---------- */
.alert {
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 13px;
}

.alert-danger {
    background: rgba(255, 59, 107, 0.12);
    border: 1px solid rgba(255, 59, 107, 0.4);
    color: #ff9cb5;
}

.alert-success {
    background: rgba(0, 255, 163, 0.10);
    border: 1px solid rgba(0, 255, 163, 0.35);
    color: var(--success);
}

/* ---------- Login ---------- */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-wrap {
    width: 100%;
    max-width: 420px;
}

.login-card {
    padding: 32px 28px;
}

.login-hint {
    margin-top: 16px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

.login-hint code {
    background: rgba(0, 229, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--primary);
}

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

.page-head h2 {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    letter-spacing: 3px;
    margin: 0;
    font-size: 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        z-index: 50;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        transition: transform .25s ease;
        width: 260px;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 0 0 60px rgba(0, 229, 255, 0.25);
    }

    .menu-btn {
        display: inline-block;
    }

    .content {
        padding: 16px;
    }

    .topbar {
        padding: 14px 16px;
    }

    .duty-timer {
        font-size: 34px;
    }

    .kpi-value {
        font-size: 20px;
    }
}

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

    .tabs {
        width: 100%;
    }

    .tab {
        flex: 1;
        text-align: center;
        padding: 8px 10px;
    }
}

/* ---------- ON DUTY pill v topbare ---------- */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.duty-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    text-decoration: none;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
    animation: dutyPulse 2.4s ease-in-out infinite;
    transition: background .15s ease;
}

.duty-pill:hover {
    background: rgba(0, 229, 255, 0.22);
}

.duty-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: dutyDot 1.4s ease-in-out infinite;
}

.duty-pill-text {
    color: var(--primary);
}

.duty-pill-timer {
    font-family: 'Rajdhani', 'Inter', monospace;
    font-size: 11px;
    letter-spacing: 1px;
    color: #fff;
}

@keyframes dutyPulse {

    0%,
    100% {
        box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
    }

    50% {
        box-shadow: 0 0 24px rgba(0, 229, 255, 0.75);
    }
}

@keyframes dutyDot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

/* Na malých obrazovkách schovaj text, nechaj iba dot + timer */
@media (max-width: 600px) {
    .duty-pill-text {
        display: none;
    }

    .duty-pill {
        padding: 6px 10px;
    }

    .clock {
        display: none;
    }
}

/* Readonly / dopočítané hodnoty — bez neonového zvýraznění */
.field input[readonly] {
    background: rgba(2, 8, 23, 0.35);
    color: var(--muted);
    cursor: default;
    border-color: rgba(0, 229, 255, 0.10);
}

.field input[readonly]:focus {
    border-color: rgba(0, 229, 255, 0.10);
    box-shadow: none;
    outline: none;
}

/* Spropitné — nikdy nezvýrazňovat */
#tipDisplay,
#totalDisplay {
    color: var(--muted) !important;
    text-shadow: none !important;
}

/* ---------- Overflow / grid fixy ---------- */
.grid>* {
    min-width: 0;
}

.field {
    min-width: 0;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.card {
    min-width: 0;
    max-width: 100%;
}

/* Na malých obrazovkách grid-3 už od 700px */
@media (max-width: 700px) {

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Mezistupeň 700–1000px — grid-4 na 2 sloupce, grid-3 na 2 */
@media (min-width: 701px) and (max-width: 1000px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    background-color: rgba(2, 8, 23, 0.55);
    border: 1px solid rgba(0, 229, 255, 0.22);
    border-radius: 10px;
    color: #E6F4FF;
    min-height: 42px;
    transition: border-color .15s, box-shadow .15s;
}

.select2-container--default .select2-selection--single {
    padding: 6px 10px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #E6F4FF;
    line-height: 28px;
    padding-left: 0;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #6F8AA8;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
    right: 8px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #00E5FF transparent transparent transparent;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #00E5FF transparent;
}

.select2-container--default .select2-selection--multiple {
    padding: 4px 8px;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: rgba(0, 229, 255, 0.14);
    border: 1px solid rgba(0, 229, 255, 0.35);
    color: #00E5FF;
    border-radius: 6px;
    padding: 2px 6px;
    margin-top: 3px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #00E5FF;
    margin-right: 5px;
    border: none;
    background: transparent;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #fff;
}

.select2-container--default .select2-selection--multiple .select2-search__field {
    color: #E6F4FF;
    background: transparent;
    border: none;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: #00E5FF;
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
    outline: none;
}

.select2-dropdown {
    background-color: #071528;
    border: 1px solid rgba(0, 229, 255, 0.28);
    border-radius: 10px;
    color: #E6F4FF;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: rgba(2, 8, 23, 0.7);
    border: 1px solid rgba(0, 229, 255, 0.25);
    color: #E6F4FF;
    border-radius: 8px;
    padding: 7px 10px;
    outline: none;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #00E5FF;
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.15);
}

/* Base option text */
.select2-container--default .select2-results__option {
    color: #C9DCEF;
    padding: 8px 12px;
    background-color: transparent;
}

/* Already-chosen option (single & multi select) */
.select2-container--default .select2-results__option[aria-selected=true],
.select2-container--default .select2-results__option--selected {
    background-color: rgba(0, 229, 255, 0.10) !important;
    color: #00E5FF !important;
}

/* Hovered / keyboard-active option */
.select2-container--default .select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: rgba(0, 229, 255, 0.22) !important;
    color: #E6F4FF !important;
}

/* Hovered + already-chosen (the case that was showing white) */
.select2-container--default .select2-results__option--highlighted[aria-selected=true],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selected {
    background-color: rgba(0, 229, 255, 0.30) !important;
    color: #FFFFFF !important;
}

/* Disabled options (out-of-stock items in sales.php) */
.select2-container--default .select2-results__option[aria-disabled=true],
.select2-container--default .select2-results__option--disabled {
    background-color: transparent !important;
    color: #5A6F88 !important;
}

/* The "create new tag" row in the inventory category picker */
.select2-results__option--create {
    background-color: rgba(0, 255, 163, 0.08) !important;
    color: #00FFA3 !important;
    font-weight: 600;
}

.select2-results__option--create.select2-results__option--highlighted {
    background-color: rgba(0, 255, 163, 0.22) !important;
    color: #E6FFF6 !important;
}

/* Results list background — in case some build paints it white */
.select2-results__options,
.select2-results>.select2-results__options {
    background-color: #071528;
    color: #C9DCEF;
}

/* Allow grid/flex children that contain a Select2 to shrink */
.grid>*,
.field,
.form>* {
    min-width: 0;
}

/* Belt & braces: keep the container inside its cell */
.select2-container {
    max-width: 100%;
}