﻿/* Tema mov pentru QRAD Laboratory */
:root {
    --primary-color: #7B2CBF;
    --primary-dark: #5A189A;
    --primary-light: #9D4EDD;
    --secondary-color: #C77DFF;
    --accent-color: #E0AAFF;
    --background-color: #F8F9FA;
    --surface-color: #FFFFFF;
    --text-primary: #212529;
    --text-secondary: #6C757D;
    --border-color: #DEE2E6;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --info-color: #3B82F6;
    --success-light: #D1FAE5;
    --warning-light: #FEF3C7;
    --danger-light: #FEE2E2;
    --info-light: #DBEAFE;
    --primary-light-bg: rgba(157, 78, 221, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
}
.logo_image {
    margin-top: 46px;
    background-image: url(../Images/qrad_icon.png);
    background-repeat: no-repeat;
    background-size: contain;
    padding: 42px;
    scale: 2;
    margin-bottom: -56px;
}
/* Empty Layout (pentru Login) */
.empty-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
    padding: 1rem;
}

/* Layout Principal */
.page {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: #fff;
    position: fixed;
    height: 100vh;
    display: flex !important;
    flex-direction: column !important;
    overflow-x: hidden;
    z-index: 1000;
}

.sidebar-header {
    display: flex;
    background-color: #f7f7f7;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
}

.sidebar-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.sidebar-header p {
    font-size: 0.875rem;
    opacity: 0.8;
    margin: 0.25rem 0 0 0;
}
.logout_button_align {
    margin-top: auto !important;
    padding: 0rem;
    width: 100%;
    text-align: center;
    flex-shrink: 0 !important;
}

.powered-by-nextsoftware {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.8);
    display: block !important;
    margin: 0 !important;
}
/*    .powered-by-nextsoftware a {
        display: inline-block;
    }*/
.nav-menu {
    flex: 1 0 auto !important; /* Forțează nav-ul să fie flexibil */
    display: flex !important;
    flex-direction: column !important;
    padding: 1rem 0;
    min-height: calc(100vh - 150px); /* Ajustează cifra asta daca header-ul e mai mare */
}

    .nav-menu ul {
        flex-grow: 1 !important; /* Întinde lista de butoane */
        list-style: none;
        margin: 0;
        padding: 0;
    }
.nav-item {
    margin: 0.25rem 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: var(--accent-color);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border-left-color: var(--accent-color);
    font-weight: 600;
}

.nav-icon {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

/* Submenu styling */
.nav-group {
    position: relative;
}

.nav-group-toggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.nav-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.nav-arrow.expanded {
    transform: rotate(-180deg);
}

.nav-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.nav-sublink {
    padding: 0.625rem 1rem 0.625rem 2.5rem !important;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-sublink .nav-icon {
    font-size: 1rem;
}

.nav-sublink:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.nav-sublink.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-left-color: var(--accent-color);
}

.main-content {
    flex: 1;
    margin-left: 5px;
    display: flex;
    flex-direction: column;
}

.top-bar {
    background-color: var(--surface-color);
    padding: 0.75rem 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.content-area {
    flex: 1;
    padding: 1.5rem;
}

/* Cards */
.card {
    background-color: var(--surface-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0;
}

/* Buttons */
.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    border: none;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(123, 44, 191, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background-color: #059669;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background-color: #DC2626;
}

.btn-info {
    background-color: var(--info-color);
    color: white;
}

.btn-info:hover:not(:disabled) {
    background-color: #2563EB;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: white;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.1);
}

.form-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9375rem;
    background-color: white;
    cursor: pointer;
}

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--surface-color);
}

.table thead {
    background-color: var(--primary-color) !important;
}

.table thead tr {
    background-color: var(--primary-color) !important;
}

.table thead tr th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #FFFFFF !important;
    background-color: var(--primary-color) !important;
}

.table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #FFFFFF !important;
    background-color: var(--primary-color);
}

.table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: rgba(123, 44, 191, 0.05);
}

/* Sortable Table Headers */
.table thead tr th.sortable-header,
.table th.sortable-header,
th.sortable-header {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    color: #FFFFFF !important;
    background-color: var(--primary-color) !important;
}

.table thead tr th.sortable-header:hover,
.table th.sortable-header:hover,
th.sortable-header:hover {
    background-color: var(--primary-dark) !important;
}

/* Sort icons using CSS borders (triangles) */
.sort-icon {
    display: inline-block;
    margin-left: 0.5rem;
    vertical-align: middle;
    width: 12px;
    height: 14px;
    position: relative;
}

.sort-icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 6px solid rgba(255, 255, 255, 0.5);
}

.sort-icon::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 1px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid rgba(255, 255, 255, 0.5);
}

/* Active ascending - highlight up arrow */
.sort-icon.asc::before {
    border-bottom-color: #FFFFFF;
}

.sort-icon.asc::after {
    border-top-color: rgba(255, 255, 255, 0.3);
}

/* Active descending - highlight down arrow */
.sort-icon.desc::before {
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.sort-icon.desc::after {
    border-top-color: #FFFFFF;
}

/* Actions cell in tables */
.actions-cell {
    white-space: nowrap;
}

.actions-cell .btn {
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

/* Button spacing in table cells */
.table td .btn {
    margin-right: 0.35rem;
    margin-bottom: 0.25rem;
}

.table td .btn:last-child {
    margin-right: 0;
}

/* Transaction/Amount Display */
.transaction-amount {
    font-weight: 600;
    font-size: 1.1rem;
}

.amount-income {
    color: var(--success-color);
}

.amount-expense {
    color: var(--danger-color);
}

.amount-transfer {
    color: var(--info-color);
}

.currency-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 0.25rem;
    opacity: 0.9;
}

/* Better contrast for light backgrounds */
td .currency-label {
    color: var(--text-primary);
    opacity: 0.7;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.badge-success {
    background-color: #D1FAE5;
    color: #065F46;
}

.badge-secondary {
    background-color: #E5E7EB;
    color: #374151;
    border: 2px solid #9CA3AF;
}

.badge-warning {
    background-color: #FEF3C7;
    color: #92400E;
}

.badge-danger {
    background-color: #FEE2E2;
    color: #991B1B;
}

.badge-info {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.badge-primary {
    background-color: var(--accent-color);
    color: var(--primary-dark);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(123, 44, 191, 0.2);
}

.stat-card h3 {
    font-size: 2rem;
    margin: 0.5rem 0;
}

.stat-card p {
    opacity: 0.9;
    margin: 0;
}

/* Loading */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: var(--primary-color);
}

/* Alert */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #D1FAE5;
    color: #065F46;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid var(--danger-color);
}

.alert-info {
    background-color: #DBEAFE;
    color: #1E40AF;
    border-left: 4px solid var(--info-color);
}

.alert-warning {
    background-color: #FEF3C7;
    color: #92400E;
    border-left: 4px solid var(--warning-color);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}


.modal-content {
    background-color: var(--surface-color);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/*.modal-content-alocare {
    background-color: var(--surface-color);
    border-radius: 12px;*/
/*    max-width: 1000px;
    width: 100%;*/
    /*max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    margin: 5% 0% 5% 0%;
}*/

.modal-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.modal-header h3 {
    margin: 0;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ========================================
   Contrast Improvements for Purple/Violet Backgrounds
   ======================================== */

/* Period cards on selection */
.period-card.selected {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: white;
}

.period-card.selected > div {
    color: white !important;
}

.period-card.selected .badge {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
}

/* Primary light background - ensure white text */
[style*="background: var(--primary-light)"],
[style*="background:var(--primary-light)"] {
    color: white !important;
}

/* Better contrast for info boxes on purple backgrounds */
.info-on-purple {
    color: white;
}

.info-on-purple strong {
    color: white;
}

.info-on-purple .badge {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: var(--primary-dark) !important;
}

/* Table rows with primary-light background */
tr[style*="background: var(--primary-light)"] td,
tr[style*="background:var(--primary-light)"] td {
    color: white;
}

tr[style*="background: var(--primary-light)"] td strong,
tr[style*="background:var(--primary-light)"] td strong {
    color: white;
}

tr[style*="background: var(--primary-light)"] td small,
tr[style*="background:var(--primary-light)"] td small {
    color: rgba(255, 255, 255, 0.85);
}

/* Selection summary with better contrast */
.selection-summary {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 8px;
}

.selection-summary strong {
    color: white;
}

.selection-summary .badge {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
}

/* Info-light background needs darker text */
[style*="background: var(--info-light)"] {
    color: var(--text-primary);
}

/* Improve badge visibility on colored backgrounds */
.badge-on-purple {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: var(--primary-dark) !important;
}

/* Fix for stat cards - ensure text is always readable */
.stat-card,
.stat-card h3,
.stat-card p,
.stat-card div {
    color: white;
}

/* Fix period card text visibility */
.period-card {
    color: var(--text-primary);
}

.period-card .badge-success {
    background-color: #D1FAE5;
    color: #065F46;
}

.period-card.selected .badge-success {
    background-color: rgba(255, 255, 255, 0.95);
    color: #065F46;
}

/* Rezultat alocare stats cards */
[style*="background: var(--primary-light)"][style*="text-align: center"] {
    color: white;
}

[style*="background: var(--primary-light)"][style*="text-align: center"] div {
    color: white !important;
}

/* Success/Warning/Danger light backgrounds - ensure good contrast */
[style*="background: var(--success-light)"],
[style*="background:var(--success-light)"] {
    color: #065F46;
}

[style*="background: var(--warning-light)"],
[style*="background:var(--warning-light)"] {
    color: #92400E;
}

[style*="background: var(--danger-light)"],
[style*="background:var(--danger-light)"] {
    color: #991B1B;
}

/* Alternative: use a lighter shade for selections that keeps dark text */
.selection-highlight {
    background-color: var(--primary-light-bg);
    color: var(--text-primary);
}

/* Fix inline style backgrounds - make badges more visible */
.badge {
    font-weight: 600;
}

/* For elements inside purple/primary backgrounds */
.on-primary-bg {
    color: white;
}

.on-primary-bg .badge {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
}

/* Fix table header contrast - should be white on purple */
.table thead {
    background-color: var(--primary-color);
    color: white;
}

.table thead th {
    color: white;
}

.table thead th div {
    color: white;
}

.table thead th small,
.table thead th div[style*="color: var(--text-secondary)"] {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }

    .main-content {
        margin-left: 0;
    }

    .content-area {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .table {
        font-size: 0.875rem;
    }

    .table th,
    .table td {
        padding: 0.5rem;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header,
    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        padding: 0.75rem 1rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .form-control,
    .form-select {
        min-height: 44px;
    }

    input[type="checkbox"] {
        min-width: 24px;
        min-height: 24px;
    }
}

/* Fix pentru Input Group - forteaza butonul pe acelasi rand */
.input-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100%;
}

.input-group .form-control {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group .btn {
    flex: 0 0 auto;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    margin-left: -1px;
    white-space: nowrap;
}

/* Fix pentru card header compact pe un rand */
.card-header.bg-success .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
}

.card-header.bg-success .col-auto {
    padding: 0.25rem 0.5rem;
}

.card-header.bg-success h5 {
    margin: 0;
    display: inline-block;
}

.card-header.bg-success .badge {
    margin-left: 0.5rem;
    white-space: nowrap;
}

/* Responsive - pastreaza pe acelasi rand chiar si pe mobile */
@media (max-width: 768px) {
    .input-group {
        display: flex !important;
        flex-wrap: nowrap !important;
    }
    
    .input-group .btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .card-header.bg-success .col-auto {
        padding: 0.15rem 0.35rem;
        font-size: 0.85rem;
    }
}

/* Dropdown Search pentru Clienti */
.dropdown-menu.show {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: 2px;
}

.dropdown-item {
    padding: 0.625rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.15s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--primary-light-bg);
}

.dropdown-item small {
    color: var(--text-secondary);
    display: block;
    margin-top: 0.125rem;
}

/* Highlight pe hover */
.dropdown-item:focus,
.dropdown-item:active {
    background-color: var(--primary-color);
    color: white;
}

.dropdown-item:focus small,
.dropdown-item:active small {
    color: rgba(255, 255, 255, 0.8);
}
@media screen and (max-width: 640px) {
    .logout_button_align {
        position: relative;
        display: flex;
        flex-direction: column;
        align-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        justify-content: space-evenly;
    }
    .powered-by-nextsoftware {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-content: space-around;
        align-items: center;
        margin-left: 39%;
        margin-right: 39%;
    }
}

    @media (max-width:600px) {
        .card {
            width: 375px;
        }
    }

    @media (max-width: 991.98px) {
        .table, .table thead, .table tbody, .table th, .table td, .table tr {
            display: block;
            width: 100%;
        }


            .table thead tr {
                position: absolute;
                top: -9999px;
                left: -9999px;
            }


            .table tbody tr {
                margin-bottom: 1.5rem;
                border: 1px solid var(--border-color);
                border-radius: 8px;
                background: #fff;
                box-shadow: 0 4px 6px rgba(0,0,0,0.05);
                padding: 0.5rem;
            }

            .table td {
                border: none !important;
                border-bottom: 1px solid #f0f0f0 !important;
                position: relative;
                padding-left: 45% !important;
                text-align: right !important;
                min-height: 45px;
                display: flex;
                align-items: center;
                justify-content: flex-end;
                flex-wrap: wrap;
            }


                .table td::before {
                    content: attr(data-label);
                    position: absolute;
                    left: 12px;
                    width: 40%;
                    text-align: left;
                    font-weight: 700;
                    color: var(--primary-color);
                    text-transform: none;
                    font-size: 0.75rem;
                }


                .table td[data-label="Actiuni"] {
                    padding-left: 12px !important;
                    flex-direction: column;
                    gap: 8px;
                    height: auto;
                    background: #fdfdfd;
                    border-bottom: none !important;
                    padding: 1rem !important;
                }

                    .table td[data-label="Actiuni"]::before {
                        position: static;
                        width: 100%;
                        margin-bottom: 10px;
                        text-align: center;
                    }

                .table td.actions-cell {
                    display: flex !important;
                    flex-wrap: wrap;
                    justify-content: center !important;
                    flex-direction: row;
                }

                    .table td.actions-cell .btn {
                        flex: 1 1 45%;
                        margin: 2px !important;
                        font-size: 0.8rem;
                    }
    }

    @media (max-width: 991.98px) {
        .card-header {
            display: flex;
            flex-direction: column;
            gap: 10px;
            text-align: center;
        }

            .card-header .btn {
                width: 100%;
            }
    }

    @media (min-width: 992px) {
        .collapse {
            display: block !important;
        }
    }