/* Infopult — legacy-style light sidebar + cards */
.infopult-wrapper {
    width: 100%;
}

/* Sidebar — teal gradient, responds to dark mode */
.infopult-sidebar {
    width: 280px;
    min-width: 280px;
    padding: 18px 14px;
    background:
        radial-gradient(circle at top left, rgba(6, 182, 212, .22), transparent 210px),
        linear-gradient(180deg, #134e4a 0%, #0f3e3a 55%, #0a2e2a 100%);
    box-shadow: 14px 0 34px rgba(15, 23, 42, .18);
    border-right: 1px solid rgba(255, 255, 255, .08);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1030;
    transition: background 0.3s ease;
    border-radius: 0 24px 24px 0;
}

.infopult-sidebar-header {
    padding: 16px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    margin-bottom: 12px;
    text-align: center;
}

/* Glass card for patient info section */
.sidebar-glass-card {
    margin: 12px 10px 16px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(16, 185, 129, 0.10));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(45, 212, 191, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    text-align: center;
}

.sidebar-glass-title h5 {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #2dd4bf;
    letter-spacing: .12em;
    line-height: 1.15;
    text-transform: uppercase;
}

.sidebar-glass-patient {
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(16, 185, 129, 0.08));
    border: 1.5px solid rgba(45, 212, 191, 0.30);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.sidebar-glass-patient .patient-meta {
    font-size: 1.03125rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.sidebar-glass-user {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.85;
    margin-bottom: 6px;
}

.sidebar-glass-paket {
    padding: 7px 8px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(45, 55, 55, 0.40), rgba(30, 40, 38, 0.30));
    border: 1.5px solid rgba(94, 234, 212, 0.15);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.665rem;
    font-weight: 400;
    text-align: left;
}

.sidebar-glass-paket .paket-label {
    font-weight: 400;
    color: #6ee7b7;
    font-size: 0.595rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-glass-paket .paket-name,
.sidebar-glass-paket .paket-value {
    color: #5eead4;
    font-weight: 600;
}

.sidebar-glass-paket .paket-none {
    color: #fca5a5;
    font-style: italic;
    font-weight: 400;
}

.sidebar-glass-paket .paket-discount {
    color: #6ee7b7;
    font-weight: 600;
}

.sidebar-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(220, 38, 38, 0.15);
    border: 1.5px solid rgba(220, 38, 38, 0.4);
    color: #fc8484;
    font-weight: 700;
    font-size: 0.855rem;
    text-decoration: none;
    transition: all 0.25s;
}

.sidebar-delete-btn:hover {
    background: rgba(220, 38, 38, 0.25);
    border-color: rgba(220, 38, 38, 0.5);
    color: #fecaca;
}

.infopult-sidebar-header h5 {
    margin: 0;
    font-size: 1.512rem;
    font-weight: 850;
    color: #fff;
    letter-spacing: .12em;
    text-align: center;
    line-height: 1.15;
}

.infopult-sidebar-header p {
    color: rgba(255, 255, 255, .78) !important;
    font-size: 1.1875rem;
}

.infopult-sidebar-header p .patient-meta {
    font-size: 1.03125rem;
}

.infopult-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
}

.infopult-sidebar-menu li {
    margin: 0;
}

.infopult-sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 16px;
    color: rgba(255, 255, 255, .84);
    font-weight: 600;
    letter-spacing: .01em;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    font-size: var(--mcl-font-nav, 0.9375rem);
    line-height: 1.35;
    word-break: keep-all;
    hyphens: none;
    overflow-wrap: normal;
}

.infopult-sidebar-menu a i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    color: #b9f4e8;
    font-size: 0.9rem;
}

.infopult-sidebar-menu a:hover {
    background: rgba(6, 182, 212, 0.15);
    color: #2dd4bf;
    border-color: rgba(6, 182, 212, 0.25);
}

.infopult-sidebar-menu a.active {
    background: rgba(6, 182, 212, 0.20);
    color: #2dd4bf;
    border-left: 3px solid #06b6d4;
}

.infopult-sidebar-menu a:hover i,
.infopult-sidebar-menu a.active i {
    background: rgba(6, 182, 212, 0.22);
    color: #2dd4bf;
}

.infopult-sidebar-menu a.logout-link {
    color: #fecaca !important;
    margin-top: 8px;
}

.infopult-sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, .12);
    margin: 10px 4px;
}

.infopult-sidebar-menu a.logout-link i {
    background: rgba(220, 38, 38, .18);
    color: #fecaca;
}

.infopult-sidebar-menu a.text-danger {
    color: #fecaca !important;
    margin-top: 8px;
}

.infopult-sidebar-menu a.text-danger i {
    background: rgba(220, 38, 38, .18);
    color: #fecaca;
}

.infopult-sidebar-menu a.nav-item-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.infopult-sidebar-menu a.nav-item-disabled:hover {
    background: transparent;
    color: rgba(255, 255, 255, .84);
    border-color: transparent;
}

/* Sidebar section labels */
.sidebar-section-label {
    padding: 8px 12px 4px;
    font-size: 1.0206rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, .4);
    list-style: none;
}

/* Sidebar badges */
.infopult-sidebar .badge {
    border-radius: 999px;
    padding: .576rem .84rem;
    white-space: normal;
    line-height: 1.25;
    font-size: 1.02rem;
    font-weight: 700;
    display: inline-block;
    min-width: 100%;
    text-align: center;
}

/* Main content */
.infopult-main {
    padding: 24px;
    min-width: 0;
}

.infopult-content-header {
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(148, 163, 184, .18);
}

/* Cards */
.infopult-card {
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: none;
}

.infopult-card .card-header {
    font-weight: 700;
    border: none;
}

/* Clinic pill (same as dashboard) */
.clinic-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: rgba(20, 184, 166, .12);
    color: #0d9488;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(20, 184, 166, .2);
}

/* Status legend */
.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Status row colors */
.status-zakazan>td {
    background: #ecf8f9;
}

.status-u_toku>td {
    background: #fff3cd;
}

.status-zavrsen>td {
    background: #d4edda;
}

.status-naplaceno>td {
    background: #cce5ff;
}

.status-otkazan>td {
    background: #f8d7da;
}

/* ===== Patient Detail / Dosije — legacy styles ===== */
.patient-detail-page {
    --patient-text: #23415a;
    --patient-heading: #173f4f;
    --patient-muted: #5b7080;
    --patient-accent: #0f766e;
}

.patient-detail-page h2 {
    color: var(--patient-heading);
    font-weight: 700;
}

.patient-detail-page .text-muted {
    color: var(--patient-muted) !important;
}

/* Patient info card — legacy white card with shadow */
.patient-info-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(148, 163, 184, .15);
    padding: 25px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

/* Section title — teal bottom border */
.section-title {
    color: var(--patient-heading);
    border-bottom: 2px solid var(--patient-accent);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.25rem;
}

/* Info grid — 3-column responsive */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Horizontal info grid — compact cards side by side */
.info-grid-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.info-item-h {
    flex: 1 1 200px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.info-item-h .info-label {
    font-weight: 600;
    color: var(--patient-muted);
    margin-bottom: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.info-item-h .info-value {
    margin-bottom: 0;
    color: var(--patient-text);
    font-size: 0.95rem;
    padding: 0;
    border-bottom: none;
}

.info-item-wide {
    flex: 1 1 100%;
}

/* Health info horizontal grid */
.health-info-grid-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.health-info-grid-horizontal .info-item-h {
    flex: 1 1 180px;
}

.health-info-grid-horizontal .health-info-label {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--patient-muted);
    margin-bottom: 4px;
    display: block;
}

.health-info-grid-horizontal .health-info-value {
    font-size: 0.95rem;
    color: var(--patient-text);
}

.health-info-grid-horizontal .info-item-wide {
    flex: 1 1 100%;
}

/* Dossier accordion cards */
.dossier-accordion-card .card-header {
    user-select: none;
    transition: background 0.2s;
}

.dossier-accordion-card .card-header:hover {
    background: rgba(148, 163, 184, 0.08);
}

.accordion-arrow {
    transition: transform 0.3s ease;
    font-size: 0.85rem;
    color: var(--patient-muted);
}

.dossier-accordion-card .card-header.accordion-open .accordion-arrow {
    transform: rotate(180deg);
}

.dossier-year-accordion .year-collapse-header.accordion-open .accordion-arrow {
    transform: rotate(180deg);
}

.dossier-year-accordion .year-collapse-header .accordion-arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: var(--patient-muted);
}

.info-label {
    font-weight: 600;
    color: var(--patient-muted);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.info-value {
    margin-bottom: 15px;
    color: var(--patient-text);
    font-size: 1rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(148, 163, 184, .15);
}

/* Patient header */
.patient-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(148, 163, 184, .15);
}

.patient-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--patient-heading);
    margin: 0;
}

.patient-type {
    font-size: 1rem;
    background-color: rgba(20, 184, 166, .12);
    color: var(--patient-accent);
    padding: 5px 12px;
    border-radius: 999px;
    font-weight: 500;
}

/* Action buttons */
.action-buttons {
    margin: 25px 0;
}

.btn-action {
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .12);
}

/* Health info — legacy light container */
.health-info {
    background-color: rgba(248, 249, 250, 0.7);
    backdrop-filter: blur(6px);
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
    border: 1px solid rgba(148, 163, 184, .15);
}

.health-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.health-info-item {
    margin-bottom: 15px;
}

.health-info-item.full-width {
    grid-column: 1 / -1;
}

.health-info-label {
    font-weight: 600;
    color: var(--patient-muted);
    margin-bottom: 5px;
    display: block;
    font-size: 0.9rem;
}

.health-info-value {
    background-color: #fff;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 6px;
    padding: 10px 15px;
    min-height: 44px;
    cursor: text;
    transition: all 0.2s;
    color: var(--patient-text);
}

.health-info-value[contenteditable="true"]:hover {
    background-color: rgba(248, 249, 250, 0.9);
    border-color: var(--patient-accent);
    box-shadow: 0 0 0 0.25rem rgba(15, 118, 110, 0.1);
}

.health-info-value[contenteditable="true"]:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--patient-accent);
    box-shadow: 0 0 0 0.25rem rgba(15, 118, 110, 0.2);
}

.health-info-actions {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(148, 163, 184, .15);
    padding-top: 15px;
}

/* Editable field — moved from inline style */
.editable-field {
    display: inline-block;
    min-width: 60px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.editable-field:focus {
    background: rgba(255, 243, 205, 0.5);
    outline: 1px solid #ffc107;
    border-radius: 4px;
}

.editable-field:empty::before {
    content: '—';
    color: #adb5bd;
}

.cursor-pointer {
    cursor: pointer;
}

/* History items — legacy left border accent */
.history-item {
    padding: 15px;
    border-left: 4px solid var(--patient-accent);
    background-color: rgba(248, 249, 250, 0.6);
    backdrop-filter: blur(4px);
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
    transition: all 0.25s ease;
}

.history-item:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
}

.history-date {
    font-weight: 600;
    color: var(--patient-heading);
    margin-bottom: 5px;
}

.history-doctor {
    color: var(--patient-muted);
    font-size: 0.9rem;
}

.history-diagnosis {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(148, 163, 184, .22);
}

/* Year collapse header — legacy style */
.year-collapse-header {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.year-collapse-header:hover {
    background: rgba(20, 184, 166, .08);
}

/* Cards inside dosije — glassmorphism */
.patient-detail-page .card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(148, 163, 184, .15);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.patient-detail-page .card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.patient-detail-page .card-header {
    font-weight: 700;
    color: var(--patient-heading);
    border-bottom: 1px solid rgba(148, 163, 184, .12);
}

/* Table styling inside dosije */
.patient-detail-page .table> :not(caption)>*>* {
    color: var(--patient-text);
}

.patient-detail-page .table-light {
    background-color: rgba(248, 249, 250, 0.7);
}

/* Print styles */
@media print {

    .infopult-sidebar,
    .action-buttons,
    .no-print {
        display: none !important;
    }

    .patient-detail-page .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }

    .patient-info-card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
        padding: 15px !important;
    }
}

/* Modal styling — legacy gradient header */
.patient-detail-page .modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
}

.patient-detail-page .modal-header.bg-primary,
.patient-detail-page .modal-header:not(.bg-danger) {
    background: linear-gradient(135deg, #0f766e, #14b8a6 60%, #2563eb) !important;
    color: #fff;
    border-bottom: 0;
    padding: 16px 20px;
}

.patient-detail-page .modal-header.bg-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    color: #fff;
    border-bottom: 0;
    padding: 16px 20px;
}

.patient-detail-page .modal-title {
    color: #fff;
    font-weight: 700;
}

.patient-detail-page .modal-body {
    background: #f8fafc;
    padding: 20px;
}

.patient-detail-page .modal-body .form-label {
    font-weight: 600;
    color: var(--patient-heading);
}

.patient-detail-page .modal-body .form-control,
.patient-detail-page .modal-body .form-select {
    border-radius: 10px;
    border-color: rgba(148, 163, 184, .3);
}

.patient-detail-page .modal-footer {
    background: #fff;
    border-top: 1px solid rgba(148, 163, 184, .15);
    padding: 14px 20px;
}

/* Responsive — app.css handles sidebar toggle below 992px */
@media (max-width: 991.98px) {
    .infopult-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .infopult-sidebar.show {
        transform: translateX(0);
    }

    .infopult-main {
        padding: 16px;
    }
}

/* New patient form styles */
.required-field::after {
    content: " *";
    color: red;
}

.form-header {
    color: #173f4f;
    border-bottom: 2px solid rgba(15, 118, 110, .35);
    padding-bottom: 10px;
    margin-bottom: 22px;
    font-weight: 850;
    letter-spacing: -.02em;
}

.kzo-read-section {
    padding: 16px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.05), rgba(15, 118, 110, 0.1));
    border-radius: 8px;
    border: 1px solid rgba(15, 118, 110, 0.2);
}

.kzo-status {
    font-size: 0.9rem;
    font-weight: 500;
}

/* === Novi pregled modal === */
.novi-pregled-modal .modal-dialog {
    max-width: 1080px;
}

.novi-pregled-modal .modal-header .modal-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.novi-pregled-modal .modal-body {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

.novi-pregled-modal .form-label {
    margin-bottom: 0.25rem;
}

.novi-pregled-modal .np-section-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(19, 78, 74, 0.12);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.novi-pregled-modal .np-section-card .card-header {
    background: rgba(240, 253, 250, 0.9);
    border-bottom: 1px solid rgba(19, 78, 74, 0.1);
    font-weight: 600;
    color: #134e4a;
}

.novi-pregled-modal .np-section-card .card-body {
    padding: 1rem 1.15rem;
}

.novi-pregled-modal .np-ai-stub textarea {
    background: #f8fafc;
    color: #64748b;
    font-style: italic;
}

.novi-pregled-modal .card.border-info .card-header {
    font-size: 0.95rem;
    font-weight: 600;
}

.novi-pregled-modal .dynamic-table-wrapper table {
    font-size: 0.85rem;
}

.novi-pregled-modal .dynamic-table-wrapper table input,
.novi-pregled-modal .dynamic-table-wrapper table select {
    font-size: 0.8rem;
    padding: 0.15rem 0.3rem;
}

.novi-pregled-modal .np-locked-field {
    pointer-events: none;
    user-select: none;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    min-height: calc(1.5em + 0.75rem + 2px);
    color: #212529;
}

/* MKB-10 — jedan panel (pretraga + tabela) */
.mkb10-unified-card {
    overflow: visible;
}

.mkb10-unified-card .mkb10-search-body {
    overflow: visible;
    position: relative;
    z-index: 30;
}

.mkb10-unified-card .mkb10-filter-row {
    position: relative;
    z-index: 31;
}

.mkb10-unified-card .mkb10-table-section {
    position: relative;
    z-index: 1;
}

/* MKB-10 autocomplete dropdown */
.mkb10-autocomplete-wrapper {
    position: relative;
    z-index: 32;
}

.mkb10-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    z-index: 2000;
    box-shadow: 0 0.75rem 1.5rem rgba(19, 78, 74, 0.18);
    border-radius: 0.375rem;
    background: #fff;
    border: 1px solid rgba(19, 78, 74, 0.15);
    margin-top: 2px;
    display: block;
}

.mkb10-results.d-none {
    display: none !important;
}

.mkb10-results .dropdown-item {
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    white-space: normal;
    word-break: break-word;
}

.mkb10-results .dropdown-item:hover,
.mkb10-results .dropdown-item:focus {
    background-color: #e7f1ff;
}

/* Vitalni parametri box */
#vitalniParametriBox .vitalni-input {
    text-align: center;
}

#vitalniParametriBox .form-label {
    font-size: 0.75rem;
    color: var(--patient-muted);
}

/* Specifični nalaz card */
#specijalizacijaFormContainer .card {
    border-radius: 0.5rem;
}

#specijalizacijaFormContainer .card-header {
    border-radius: 0.5rem 0.5rem 0 0;
}

/* Sidebar Novi pregled link */
.btn-novi-pregled {
    cursor: pointer;
    transition: background 0.15s;
}

.btn-novi-pregled:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Red cekanja — tabela u okviru kartice, bez horizontalnog scroll-a */
.mcl-queue-table-wrap {
    overflow: visible;
    max-width: 100%;
}

.mcl-queue-table {
    width: 100% !important;
    max-width: 100%;
    table-layout: auto !important;
    margin-bottom: 0;
}

.mcl-queue-table thead th,
.mcl-queue-table tbody td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    padding: 0.45rem 0.55rem;
    font-size: var(--mcl-font-sm, 0.875rem);
}

.mcl-queue-table thead th {
    font-size: var(--mcl-font-xs, 0.8125rem);
    font-weight: 600;
}

.mcl-queue-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    align-items: center;
    justify-content: flex-start;
}

.mcl-queue-actions .btn-sm {
    font-size: 0.78rem;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
    line-height: 1.2;
}

/* Red cekanja — 5 statusa (boja celog reda) */
.mcl-queue-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(19, 78, 74, 0.12);
    font-size: var(--mcl-font-xs, 0.8125rem);
}

.mcl-queue-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.mcl-queue-legend-swatch {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(19, 78, 74, 0.2);
    flex-shrink: 0;
}

.mcl-queue-stat-card {
    border-left: 4px solid transparent;
}

.mcl-queue-stat-zakazano {
    border-left-color: #e5e7eb;
}

.mcl-queue-stat-utoku {
    border-left-color: #facc15;
}

.mcl-queue-stat-zavrseno {
    border-left-color: #22c55e;
}

.mcl-queue-stat-naplaceno {
    border-left-color: #3b82f6;
}

.mcl-queue-stat-otkazano {
    border-left-color: #ef4444;
}

.mcl-queue-table tbody tr.rc-st-zakazano {
    background: #ffffff !important;
}

.mcl-queue-table tbody tr.rc-st-utoku {
    background: #fef9c3 !important;
}

.mcl-queue-table tbody tr.rc-st-zavrseno {
    background: #dcfce7 !important;
}

.mcl-queue-table tbody tr.rc-st-naplaceno {
    background: #dbeafe !important;
}

.mcl-queue-table tbody tr.rc-st-otkazano {
    background: #fee2e2 !important;
}

.mcl-queue-table tbody tr.rc-st-zakazano:hover {
    background: #f9fafb !important;
}

.mcl-queue-table tbody tr.rc-st-utoku:hover {
    background: #fef08a !important;
}

.mcl-queue-table tbody tr.rc-st-zavrseno:hover {
    background: #bbf7d0 !important;
}

.mcl-queue-table tbody tr.rc-st-naplaceno:hover {
    background: #bfdbfe !important;
}

.mcl-queue-table tbody tr.rc-st-otkazano:hover {
    background: #fecaca !important;
}

.red-cekanja-table tbody tr.rc-st-zakazano {
    background: #ffffff !important;
}

.red-cekanja-table tbody tr.rc-st-utoku {
    background: #fef9c3 !important;
}

.red-cekanja-table tbody tr.rc-st-zavrseno {
    background: #dcfce7 !important;
}

.red-cekanja-table tbody tr.rc-st-naplaceno {
    background: #dbeafe !important;
}

.red-cekanja-table tbody tr.rc-st-otkazano {
    background: #fee2e2 !important;
}

.rc-badge-zakazano {
    background: #f3f4f6 !important;
    color: #374151 !important;
    border: 1px solid #d1d5db;
}

.rc-badge-utoku {
    background: #fef08a !important;
    color: #854d0e !important;
}

.rc-badge-zavrseno {
    background: #bbf7d0 !important;
    color: #166534 !important;
}

.rc-badge-naplaceno {
    background: #93c5fd !important;
    color: #1e40af !important;
}

.rc-badge-otkazano {
    background: #fca5a5 !important;
    color: #991b1b !important;
}

.text-teal {
    color: #0d9488 !important;
    font-weight: 600;
}