.admin-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

.main-content::before,
.main-content::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(80, 174, 61, 0.1), transparent);
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
    animation: floatAnimation 10s ease-in-out infinite;
}

.main-content::before {
    width: 500px;
    height: 500px;
    top: -250px;
    right: -150px;
}

.main-content::after {
    width: 700px;
    height: 700px;
    bottom: -350px;
    left: -250px;
    animation-delay: -5s;
}

.admin-wrapper .sidebar {
    width: 260px;
    background: var(--surface-white);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    overflow-x: hidden;
}

.admin-wrapper .sidebar::-webkit-scrollbar {
    width: 8px;
}

.admin-wrapper .sidebar::-webkit-scrollbar-track {
    background: var(--background-body);
}

.admin-wrapper .sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
    opacity: 0.6;
}

.admin-wrapper .sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-green);
    opacity: 0.8;
}

.admin-wrapper .sidebar .nav {
    flex: 1 1 0;
    min-height: 0;
    padding-bottom: 1rem;
}

.admin-wrapper .main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding: 2rem;
    background: #fcfcfc;
    min-height: 100vh;
    color: var(--text-primary);
    position: relative;
}

.admin-wrapper .main-content > * {
    position: relative;
    z-index: 1;
}

.admin-wrapper .sidebar .nav-link {
    color: var(--text-muted);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin: 0.25rem 0.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-left: 3px solid transparent;
}

.admin-wrapper .sidebar .nav-link:hover,
.admin-wrapper .sidebar .nav-link.active,
.btn.active {

    color: var(--primary-green) !important;
    background: rgba(80, 174, 61, 0.1) !important;
    border-left-color: var(--primary-green) !important;
    font-weight: 600 !important;
}



.admin-wrapper .sidebar .user-panel {
    margin-top: auto;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background: var(--background-body);
}

.dropdown-menu-dark {
    background-color: var(--surface-white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.dropdown-menu-dark .dropdown-item {
    color: var(--text-muted);
    transition: var(--transition);
}

.dropdown-menu-dark .dropdown-item:hover {
    background: rgba(80, 174, 61, 0.1);
    color: var(--primary-green);
}

.admin-logo-container {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.admin-logo {
    max-width: 160px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.admin-logo-placeholder {
    background: var(--background-body);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    max-width: 100px;
    margin: 0 auto;
    border: 2px dashed var(--border-color);
}

.admin-logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
}

.user-role {
    font-size: 0.8em;
    color: var(--text-muted);
}

.admin-wrapper .main-content .card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    background: var(--surface-white);
    transition: var(--transition);
    color: var(--text-primary);
    overflow: hidden;
    position: relative;
}

.admin-wrapper .main-content .card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: var(--primary-green);
}

.admin-wrapper .main-content .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.admin-wrapper .main-content .card:hover::before {
    opacity: 1;
}

.currency-icon-preview {
    max-height: 64px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.edit-user-container {
    max-width: 600px;
}

.add-currency-card {
    border: 2px dashed var(--border-color);
    background: var(--background-body);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.add-currency-card:hover {
    border-color: var(--primary-green);
    background: rgba(80, 174, 61, 0.05);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.add-currency-card .card-body {
    position: relative;
    z-index: 1;
}

.icon-grid,
.modal-body .icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--background-body);
}

.icon-option {
    cursor: pointer;
    position: relative;
    margin: 0;
}

.icon-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.icon-box {
    border: 3px solid transparent;
    border-radius: var(--radius-md);
    padding: 8px;
    background: var(--surface-white);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
}

.icon-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.icon-option input[type="radio"]:checked + .icon-box {
    border-color: var(--primary-green);
    background: rgba(80, 174, 61, 0.1);
    box-shadow: 0 0 0 3px rgba(80, 174, 61, 0.2);
}

.icon-option:hover .icon-box {
    border-color: var(--primary-green);
    transform: scale(1.05);
}

.admin-wrapper .main-content h1,
.admin-wrapper .main-content h2,
.admin-wrapper .main-content h3,
.admin-wrapper .main-content h4,
.admin-wrapper .main-content h5,
.admin-wrapper .main-content h6 {
    color: var(--text-primary);
    font-weight: 600;
}

.admin-wrapper .main-content .text-muted {
    color: var(--text-muted) ;
}

.admin-wrapper .main-content .card-header {
    background: var(--background-body);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
}

.admin-wrapper .main-content .table {
    border-color: var(--border-color);
    color: var(--text-primary);
}

.admin-wrapper .main-content .table thead th {
    border-bottom-color: var(--border-color);
    background: var(--background-body);
    color: var(--text-primary);
    font-weight: 600;
}

.admin-wrapper .main-content .table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.admin-wrapper .main-content .table tbody tr:hover {
    background: rgba(80, 174, 61, 0.05);
}

.admin-wrapper .main-content .table tbody td {
    color: var(--text-primary);
}

.admin-wrapper .main-content .form-label,
.modal-body .form-label {
    color: var(--text-primary);
    font-weight: 500;
}

.admin-wrapper .main-content .form-control,
.admin-wrapper .main-content .form-select,
.modal-body .form-control,
.modal-body .form-select {
    background-color: var(--surface-white);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    font-weight: 600;
}

.admin-wrapper .main-content .form-control:focus,
.admin-wrapper .main-content .form-select:focus,
.modal-body .form-control:focus,
.modal-body .form-select:focus {
    background: var(--surface-white);
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(80, 174, 61, 0.25);
    color: var(--text-primary);
}

.admin-wrapper .main-content .form-control::placeholder,
.modal-body .form-control::placeholder {
    color: var(--text-muted);
}

.admin-wrapper .main-content .form-control:disabled {
    background: var(--background-body);
    color: var(--text-muted);
}

.admin-wrapper .main-content .form-text,
.modal-body .form-text {
    color: var(--text-muted);
}

.modal-body .input-group-text {
    background: var(--background-body);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.modal-body .btn-outline-danger {
    border-color: var(--danger);
    color: var(--danger);
}

.modal-body .btn-outline-danger:hover {
    background: var(--gradient-accent);
    border-color: var(--danger);
    color: var(--white);
}

.modal-body .btn-outline-primary {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.modal-body .btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: var(--primary-green);
    color: var(--white);
}

.modal-body .btn-secondary {
    background: var(--background-body);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.modal-body .btn-secondary:hover {
    background: var(--border-color);
    border-color: var(--text-muted);
}

.admin-wrapper .main-content .badge {
    color: var(--white);
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
}

.admin-wrapper .main-content .badge.bg-success {
    background: var(--gradient-secondary) ;
}

.admin-wrapper .main-content .badge.bg-danger {
    background: var(--gradient-accent) ;
}

.admin-wrapper .main-content .badge.bg-secondary {
    background: linear-gradient(135deg, var(--text-muted) 0%, #5a6268 100%) ;
}

.admin-wrapper .main-content .badge.bg-info {
    background: var(--gradient-info) ;
}

.admin-wrapper .main-content .badge.bg-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #d35400 100%) ;
}

.admin-wrapper .main-content .badge.bg-primary {
    background: var(--gradient-primary) ;
}

.admin-wrapper .main-content .btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
}

.admin-wrapper .main-content .btn-primary:hover {
    background: var(--secondary-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.admin-wrapper .main-content .btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-muted);
}

.admin-wrapper .main-content .btn-outline-secondary:hover {
    background: var(--background-body);
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.admin-wrapper .main-content .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.modal-content {
    z-index: 9999;
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    background: var(--background-body);
}

.modal-title {
    color: var(--text-primary);
    font-weight: 600;
}

.modal-body {
    color: var(--text-primary);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    background: var(--background-body);
}

.modal-footer .btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.modal-footer .btn-primary:hover {
    background: var(--secondary-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.modal-footer .btn-secondary {
    background: var(--background-body);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.modal-footer .btn-secondary:hover {
    background: var(--border-color);
    border-color: var(--text-muted);
}

.btn-close {
    filter: none;
    opacity: 0.5;
}

.btn-close:hover {
    opacity: 1;
}

.admin-wrapper .main-content .alert {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-md);
}

.admin-wrapper .main-content .alert-success {
    background: rgba(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.3);
    color: #155724;
}

.admin-wrapper .main-content .alert-danger {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.3);
    color: #721c24;
}

.admin-wrapper .main-content .alert-info {
    background: rgba(52, 152, 219, 0.1);
    border-color: rgba(52, 152, 219, 0.3);
    color: #0c5460;
}

.admin-wrapper .main-content .alert-warning {
    background: rgba(243, 156, 18, 0.1);
    border-color: rgba(243, 156, 18, 0.3);
    color: #856404;
}

.admin-wrapper .main-content .btn-close {
    filter: none;
}

.icon-grid::-webkit-scrollbar,
.modal-body .icon-grid::-webkit-scrollbar {
    width: 8px;
}

.icon-grid::-webkit-scrollbar-track,
.modal-body .icon-grid::-webkit-scrollbar-track {
    background: var(--background-body);
    border-radius: 4px;
}

.icon-grid::-webkit-scrollbar-thumb,
.modal-body .icon-grid::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
    opacity: 0.6;
}

.icon-grid::-webkit-scrollbar-thumb:hover,
.modal-body .icon-grid::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-green);
    opacity: 0.8;
}

.admin-wrapper .main-content .btn-group .btn {
    border-right: 1px solid var(--border-color);
}

.admin-wrapper .main-content .btn-group .btn:last-child {
    border-right: none;
}

.admin-wrapper .main-content .btn i {
    margin-right: 0.25rem;
}

.admin-wrapper .main-content > .row,
.admin-wrapper .main-content > .card {
    animation: fadeIn 0.5s ease-out;
}

.admin-wrapper .main-content h2 {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.admin-wrapper .main-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.admin-wrapper .main-content .card-header h6,
.admin-wrapper .main-content .card-header strong {
    color: var(--text-primary);
}

.admin-wrapper .main-content .small,
.admin-wrapper .main-content small {
    color: var(--text-muted);
}

.license-info-block-collapsible {
    margin: 0.5rem;
    background: var(--background-body);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.license-info-block-collapsible:hover {
    background: var(--surface-white);
    border-color: var(--primary-green);
    box-shadow: var(--shadow-sm);
}

.license-header-collapsible {
    background: rgba(80, 174, 61, 0.1);
    padding: 0.65rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.license-header-collapsible:hover {
    background: rgba(80, 174, 61, 0.15);
}

.license-header-collapsible i.fas.fa-shield-alt {
    color: var(--primary-green);
}

.license-header-collapsible .toggle-icon {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.license-body-collapsible {
    padding: 0.85rem;
    display: none;
}

.license-body-collapsible .license-company {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
    text-align: center;
    padding: 0.4rem;
    background: rgba(80, 174, 61, 0.1);
    border-radius: var(--radius-sm);
}

.license-body-collapsible .license-stats {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.license-body-collapsible .stat-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.4rem;
    background: var(--background-body);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.license-body-collapsible .stat-item:hover {
    background: rgba(80, 174, 61, 0.05);
}

.license-body-collapsible .stat-item i {
    color: var(--primary-green);
    font-size: 1.1rem;
    margin-top: 0.15rem;
}

.license-body-collapsible .stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
}

.license-body-collapsible .stat-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.license-body-collapsible .stat-days {
    display: block;
    font-size: 0.7rem;
    margin-top: 0.2rem;
}

.license-body-collapsible .btn {
    font-size: 0.8rem;
    padding: 0.4rem;
}

.modal {
    --bs-modal-zindex: 1060;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    z-index: 1050;
}

.selection-card {
    position: relative;
    display: block;
}

.selection-card .card {
    transition: all 0.2s ease;
}

.selection-card input:checked + .card {
    background-color: rgba(80, 174, 61, 0.1) ;
    border-color: var(--primary-green) ;
    box-shadow: 0 0 15px rgba(80, 174, 61, 0.2);
}

.selection-card:hover .card {
    border-color: var(--primary-green) ;
    transform: translateY(-2px);
}

.icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.currency-grid-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: var(--background-body);
    border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 3px;
    opacity: 0.6;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-green);
    opacity: 0.8;
}

.currency-check-item {
    cursor: pointer;
    user-select: none;
}

.currency-check-item input:checked + div {
    background-color: var(--primary-green) ;
    border-color: var(--primary-green) ;
}

.currency-check-item input:checked + div .text-muted {
    color: rgba(255, 255, 255, 0.9) ;
}


.check-indicator {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: all 0.2s;
}

.currency-check-item input:checked + div .check-indicator {
    opacity: 1;
    
}

.currency-check-item:hover div {
    border-color: var(--primary-green) ;
}

.hover-border-primary:hover {
    border-color: var(--primary-green) ;
}

.modal-body .table {
    color: var(--text-primary);
}

.modal-body .table td,
.modal-body .table th {
    border-color: var(--border-color);
}

.scale-125 {
    transform: scale(1.25);
    margin-top: 0.2rem;
}

.scale-150 {
    transform: scale(1.5);
}

.cursor-pointer {
    cursor: pointer;
}

.fw-500 {
    font-weight: 500;
}

.sticky-top {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.bg-dark.form-control:focus,
.bg-dark.form-select:focus {
    background-color: var(--surface-white) ;
    border-color: var(--primary-green) ;
    box-shadow: 0 0 0 0.2rem rgba(80, 174, 61, 0.25);
}

#marqueeBranchesTableBody .form-control,
#marqueeBranchesTableBody .form-select {
    background-color: var(--surface-white);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.85rem;
}

#marqueeBranchesTableBody .form-control:focus,
#marqueeBranchesTableBody .form-select:focus {
    background-color: var(--surface-white);
    border-color: var(--primary-green);
}

#marqueeBranchesTableBody .text-muted {
    font-size: 0.8rem;
    opacity: 0.7;
}

#targetGroupSelect,
#targetGroupSelect option {
    color: var(--text-primary);
}

.admin-quick-panel {
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.quick-panel-inner {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    gap: 1rem;
}

.quick-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.quick-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: var(--background-body);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    white-space: nowrap;
    cursor: pointer;
}

.quick-stat-item:hover {
    background: rgba(80, 174, 61, 0.05);
    border-color: var(--primary-green);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quick-stat-item i {
    color: var(--primary-green);
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
}

.quick-stat-item.has-scheduled i {
    color: var(--warning);
}

.stat-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.stat-info .stat-number {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.stat-info .stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0;
}

.quick-panel-divider {
    width: 1px;
    height: 36px;
    background: var(--border-color);
    flex-shrink: 0;
}

.quick-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: rgba(80, 174, 61, 0.1);
    border: 1px solid rgba(80, 174, 61, 0.25);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.quick-action-btn:hover {
    background: rgba(80, 174, 61, 0.15);
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: translateY(-1px);
}

.quick-action-btn i {
    font-size: 0.8rem;
    color: var(--primary-green);
}

.quick-action-btn:hover i {
    color: var(--primary-green);
}

@media (max-width: 1200px) {
    .quick-panel-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .quick-panel-divider {
        width: 100%;
        height: 1px;
    }

    .quick-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .quick-actions {
        justify-content: center;
    }
}

.sidebar-toggle-btn-inside {
    position: absolute;
    top: 1rem;
    right: 0.75rem;
    z-index: 10;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--background-body);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: var(--transition);
    cursor: pointer;
}

.sidebar-toggle-btn-inside:hover {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

.sidebar-toggle-btn-inside i {
    font-size: 0.875rem;
}

.sidebar-toggle-btn-floating {
    position: fixed;
    z-index: 1001;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.sidebar-toggle-btn-floating:hover {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.sidebar-toggle-btn-floating i {
    font-size: 1rem;
}

.admin-wrapper .sidebar.sidebar-hidden {
    transform: translateX(-100%);
}

.admin-wrapper .main-content.sidebar-collapsed {
    margin-left: 0;
    width: 100%;
}

.admin-wrapper .sidebar {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-wrapper .main-content {
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


.branches-tree-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 200px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.branches-tree-card .card-header {
    background: linear-gradient(135deg, var(--background-body) 0%, #f8faf9 100%);
    border-bottom: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
}

.branches-tree-card .card-body {
    overflow-y: auto;
    flex: 1;
}

.branches-tree {
    padding: 0;
}

.tree-group {
    border-bottom: 1px solid var(--border-color);
}

.tree-group:last-child {
    border-bottom: none;
}

.tree-group-header {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    background: var(--surface-white);
    user-select: none;
}

.tree-group-header:hover {
    background: rgba(80, 174, 61, 0.05);
}

.tree-group-header.active {
    background: rgba(80, 174, 61, 0.1);
}

.tree-group-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.tree-toggle-icon {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    min-width: 12px;
}

.tree-toggle-icon.expanded {
    transform: rotate(90deg);
}

.tree-group-branches {
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid var(--border-color);
}

.tree-branch-item {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tree-branch-item:last-child {
    border-bottom: none;
}

.tree-branch-item:hover {
    background: rgba(80, 174, 61, 0.08);
}

.tree-branch-label {
    cursor: pointer;
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    user-select: none;
}

.tree-branch-label i {
    font-size: 0.75rem;
}

.tree-branch-item .form-check-input {
    cursor: pointer;
    margin: 0;
}

.tree-branch-item .badge-sm {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.tree-group-header .badge-sm {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.branches-tree-card .card-body::-webkit-scrollbar {
    width: 6px;
}

.branches-tree-card .card-body::-webkit-scrollbar-track {
    background: var(--background-body);
}

.branches-tree-card .card-body::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 3px;
}

.branches-tree-card .card-body::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-green);
}

@media (max-width: 768px) {
    .branches-tree-card {
        position: relative;
        max-height: 400px;
        margin-bottom: 1rem;
    }
}

.admin-wrapper .main-content .form-control:disabled,
.admin-wrapper .main-content .form-control[readonly] {
    background-color: var(--background-body); 
    color: var(--text-muted);
    border-color: var(--border-color);
    cursor: not-allowed;
    opacity: 0.8;
}


.text-info {
	color: black !important;; 
}



.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active, .nav-pills .nav-link.active {
    color: var(--bs-nav-tabs-link-active-color);
    background-color: rgb(168 246 138 / 38%) !important;
    border-color: var(--bs-nav-tabs-link-active-border-color);
}

