/* resources/views/superuser/picker-companies.blade.php */
.superuser-client-group + .superuser-client-group {
    margin-top: 1.25rem;
}

.superuser-account-link.list-group-item-action {
    background-color: #eef1f4;
}

.superuser-account-link.list-group-item-action:hover,
.superuser-account-link.list-group-item-action:focus {
    background-color: #eef1f4;
    color: inherit;
}

.superuser-account-link:hover .superuser-account-name,
.superuser-account-link:focus .superuser-account-name {
    color: #0d6efd;
}

.superuser-account-sep {
    display: inline-block;
    margin: 0 0.35rem;
    color: #6c757d;
}

.superuser-stay-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.superuser-stay-text {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #23284F;
    font-weight: 600;
    white-space: nowrap;
}

.superuser-current-label {
    background: #198754;
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    white-space: nowrap;
}

.superuser-section-label {
    display: flex;
    align-items: center;
    margin: 0.75rem 0;
    padding: 0.75rem 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: #292524;
}

.superuser-section-label::after {
    content: "";
    flex: 1;
    border-top: 1px solid #e7e5e4;
    margin-left: 1.5rem;
}


/* resources/views/superuser/admin/index.blade.php */
.superuser-admin .dataTables_wrapper {
    font-family: inherit;
    overflow: visible;
    position: relative;
}

#superusers-table {
    width: 100% !important;
    border-collapse: collapse;
    table-layout: fixed;
}

#superusers-table th {
    background-color: #23284F;
    color: white;
    border: none;
    padding: 12px 8px;
    font-weight: 600;
    text-align: left;
    vertical-align: middle;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 80px;
}

#superusers-table td {
    border: none;
    padding: 12px 8px;
    vertical-align: middle;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 80px;
}

#superusers-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

#superusers-table tbody tr:hover {
    background-color: #e9ecef;
}

.superuser-admin .badge {
    font-size: 0.75em;
    padding: 0.35em 0.65em;
}

.superuser-type-badge {
    background: #f0b429;
    color: #23284F;
    font-weight: 700;
}

.superuser-actions-menu {
    min-width: 200px;
    z-index: 1080;
    text-align: left;
}

.superuser-actions-menu .dropdown-item {
    padding: 8px 16px;
}

.superuser-actions-menu .dropdown-item i {
    margin-right: 8px;
    width: 16px;
}

#designate-superuser-modal .modal-dialog {
    max-width: 640px;
}
#designate-superuser-modal .modal-header {
    background-color: #23284F;
    color: #fff;
    border-bottom: none;
    padding: 0.85rem 1.25rem;
}
#designate-superuser-modal .modal-title {
    margin: 0;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
}
#designate-superuser-modal .btn-close {
    filter: invert(1);
    opacity: 0.85;
    margin: 0;
}
#designate-superuser-modal .modal-footer {
    margin-bottom: 0;
}
#designate-superuser-modal .modal-body {
    overflow: visible;
}
#designate-superuser-modal .form-label {
    font-weight: 600;
    color: #23284F;
    margin-bottom: 0.3rem;
}
#designate-superuser-modal .su-search-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
#designate-superuser-modal .su-search-field {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}
#designate-superuser-modal .su-search-row .btn {
    flex: 0 0 auto;
    white-space: nowrap;
    height: calc(1.5em + 0.75rem + 2px);
}
#designate-superuser-modal .search-results {
    display: none;
    position: static;
    z-index: 30;
    margin: 0.5rem 0 0;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    overflow-y: auto;
    max-height: 220px;
    background: #fff;
    box-shadow: none;
}
#designate-superuser-modal .search-results.is-open {
    display: block;
}
#designate-superuser-modal .search-results button,
#designate-superuser-modal .search-results .search-results-empty {
    display: block;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #f1f3f5;
    padding: 0.65rem 0.85rem;
}
#designate-superuser-modal .search-results button:last-child,
#designate-superuser-modal .search-results .search-results-empty:last-child {
    border-bottom: 0;
}
#designate-superuser-modal .search-results button:hover,
#designate-superuser-modal .search-results button:focus {
    background: #e9ecef;
}
#designate-superuser-modal .selected-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #23284F;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
#designate-superuser-modal .selected-item {
    display: none;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.85rem 1rem;
    margin-top: 1rem;
}
#designate-superuser-modal .selected-item.is-visible {
    display: block;
}
#designate-superuser-modal .superuser-meta {
    color: #6c757d;
    font-size: 0.85rem;
}

.superuser-admin .dataTables_wrapper .dataTables_length,
.superuser-admin .dataTables_wrapper .dataTables_filter,
.superuser-admin .dataTables_wrapper .dataTables_info,
.superuser-admin .dataTables_wrapper .dataTables_processing,
.superuser-admin .dataTables_wrapper .dataTables_paginate {
    margin: 15px 0;
}

.superuser-admin .dataTables_wrapper .dataTables_info {
    color: #6c757d;
    font-size: 0.875em;
}

.superuser-admin .dataTables_wrapper.superusers-single-page .dataTables_length,
.superuser-admin .dataTables_wrapper.superusers-single-page .dataTables_info,
.superuser-admin .dataTables_wrapper.superusers-single-page .dataTables_paginate {
    display: none;
}

.superuser-admin .table-responsive {
    overflow: visible;
    position: relative;
}

#superusers-table th:nth-child(1),
#superusers-table td:nth-child(1) {
    width: 6%;
    min-width: 60px;
}

#superusers-table th:nth-child(2),
#superusers-table td:nth-child(2) {
    width: 12%;
    min-width: 110px;
}

#superusers-table th:nth-child(3),
#superusers-table td:nth-child(3) {
    width: 12%;
    min-width: 100px;
}

#superusers-table th:nth-child(4),
#superusers-table td:nth-child(4) {
    width: 12%;
    min-width: 100px;
}

#superusers-table th:nth-child(5),
#superusers-table td:nth-child(5) {
    width: 12%;
    min-width: 100px;
}

#superusers-table th:nth-child(6),
#superusers-table td:nth-child(6) {
    width: 18%;
    min-width: 140px;
}

#superusers-table th:nth-child(7),
#superusers-table td:nth-child(7) {
    width: 8%;
    min-width: 80px;
}

#superusers-table th:nth-child(8),
#superusers-table td:nth-child(8) {
    width: 10%;
    min-width: 90px;
}

#superusers-table th:nth-child(9),
#superusers-table td:nth-child(9) {
    width: 10%;
    min-width: 120px;
    overflow: visible;
    text-align: right;
    white-space: nowrap;
}

.superuser-emphasis {
    color: #23284F;
}

.superuser-name {
    color: #23284F;
    font-size: 1.05rem;
}

.superuser-section-title {
    color: #23284F;
    font-weight: 600;
}

@media (max-width: 1200px) {
    #superusers-table th,
    #superusers-table td {
        padding: 8px 4px;
        font-size: 0.875em;
        min-width: 70px;
    }

    .superuser-admin .btn-group .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 992px) {
    #superusers-table {
        font-size: 0.8em;
    }

    #superusers-table th,
    #superusers-table td {
        padding: 6px 3px;
        min-width: 60px;
    }

    .superuser-admin .badge {
        font-size: 0.7em;
        padding: 0.25em 0.5em;
    }
}

@media (max-width: 768px) {
    .superuser-admin .dataTables_wrapper .dataTables_filter input {
        width: 150px;
    }

    #superusers-table th,
    #superusers-table td {
        padding: 8px 4px;
        font-size: 0.875em;
        min-width: 50px;
    }

    .superuser-actions-menu {
        min-width: 150px;
    }

    .superuser-actions-menu .dropdown-item {
        padding: 6px 12px;
        font-size: 0.8em;
    }
}

/* resources/views/superuser/admin/form.blade.php */
.superuser-admin .form-section.card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: visible;
}
.superuser-admin .form-section .card-header {
    background-color: #23284F;
    color: #fff;
    border-bottom: none;
    padding: 0.85rem 1.25rem;
}
.superuser-admin .form-section .card-header h5 {
    margin: 0;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
}
.superuser-admin .form-section .card-header small {
    color: #fff;
    opacity: 0.7;
    font-weight: 400;
}
.superuser-admin .form-section .card-body {
    padding: 1.5rem;
}
.superuser-admin .form-section .form-label {
    font-weight: 600;
    color: #23284F;
    margin-bottom: 0.3rem;
}
.superuser-type-badge {
    background: #f0b429;
    color: #23284F;
    font-weight: 700;
}
.superuser-sub-badge {
    background: #3d7ea6;
    color: #fff;
    font-weight: 700;
}
.superuser-admin .selected-avatar,
.superuser-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #23284F;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.superuser-admin .selected-item {
    display: none;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.85rem 1rem;
    margin-top: 1rem;
}
.superuser-admin .selected-item.is-visible {
    display: block;
}
.superuser-admin .su-search-field {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}
.superuser-admin .search-results {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 30;
    margin: 0;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    overflow-y: auto;
    max-height: 260px;
    background: #fff;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.12);
}
.superuser-admin .search-results.is-open {
    display: block;
}
.superuser-admin .search-results button,
.superuser-admin .search-results .search-results-empty,
.superuser-admin .search-results .search-results-blocked,
.superuser-admin .search-results .search-results-choice {
    display: block;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #f1f3f5;
    padding: 0.65rem 0.85rem;
}
.superuser-admin .search-results button:last-child,
.superuser-admin .search-results .search-results-empty:last-child,
.superuser-admin .search-results .search-results-blocked:last-child,
.superuser-admin .search-results .search-results-choice:last-child {
    border-bottom: 0;
}
.superuser-admin .search-results button:hover,
.superuser-admin .search-results button:focus {
    background: #e9ecef;
}
.superuser-admin .search-results .search-results-blocked {
    color: #842029;
    font-weight: 600;
}
.superuser-admin .search-results .search-results-choice {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0;
    cursor: pointer;
}
.superuser-admin .search-results .search-results-choice.is-kept {
    background: #f5f6fb;
}
.superuser-admin .search-results .search-results-choice input {
    margin-top: 0.2rem;
    flex: 0 0 auto;
}
.superuser-admin .search-results .search-results-choice.is-blocked {
    color: #6c757d;
    cursor: default;
}
.superuser-admin .search-results .search-results-note {
    display: block;
    margin-top: 0.15rem;
    color: #842029;
    font-weight: 600;
    font-size: 0.8rem;
}
.superuser-select-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.45rem;
}
.superuser-select-actions button {
    background: none;
    border: 0;
    padding: 0;
    color: #0d6efd;
    font-weight: 600;
    font-size: 0.85rem;
}
.superuser-select-actions button:hover,
.superuser-select-actions button:focus {
    text-decoration: underline;
}
#attach-subuser-count {
    margin-left: auto;
    color: #6c757d;
    font-size: 0.85rem;
}
#subuser-filters .card,
#superusers-filters .card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}
#subuser-filters .card-header,
#superusers-filters .card-header {
    background-color: #23284F;
    color: #fff;
    border-bottom: none;
}
#subuser-filters .card-header h5,
#superusers-filters .card-header h5 {
    color: #fff;
}
#subuser-filters #active-filters-section,
#superusers-filters #active-filters-section {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
}
#subuser-filters .filter-badge,
#superusers-filters .filter-badge {
    background-color: #0d6efd;
    color: #fff;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
#subuser-filters .filter-badge .remove-filter,
#superusers-filters .filter-badge .remove-filter {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 1.15rem;
    height: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.superuser-inner-table {
    width: 100% !important;
    border-collapse: collapse;
    margin-bottom: 0;
    table-layout: fixed;
}
.superuser-inner-table thead th {
    background-color: #23284F !important;
    color: #fff !important;
    --bs-table-bg: #23284F;
    --bs-table-accent-bg: transparent;
    --bs-table-color: #fff;
    box-shadow: none;
    border: none;
    padding: 12px 8px;
    font-weight: 600;
    text-align: left;
    vertical-align: middle;
}
.superuser-inner-table td {
    border: none;
    padding: 12px 8px;
    vertical-align: middle;
    word-wrap: break-word;
}
.superuser-inner-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}
.superuser-inner-table tbody tr:hover {
    background-color: #e9ecef;
}
.superuser-meta {
    color: #6c757d;
    font-size: 0.85rem;
}
.superuser-meta i {
    color: #23284F;
    opacity: 0.7;
    width: 14px;
}
.superuser-admin .su-identity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #dee2e6;
}
.superuser-admin .modal-body {
    overflow: visible;
}
#assign-subuser-modal .modal-dialog {
    max-width: 640px;
}
#assign-subuser-modal .su-search-field {
    position: relative;
}
#assign-subuser-modal .superuser-search-clear {
    position: relative;
}
#assign-subuser-modal .superuser-search-clear .form-control {
    padding-right: 2.2rem;
}
#assign-subuser-modal .superuser-search-clear .btn {
    position: absolute;
    top: 50%;
    right: 0.35rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6c757d;
    line-height: 1;
}
#assign-subuser-modal .superuser-search-clear .btn[hidden] {
    display: none;
}
#assign-subuser-modal .superuser-search-clear .btn:hover,
#assign-subuser-modal .superuser-search-clear .btn:focus {
    color: #23284F;
    background: transparent;
}
#assign-subuser-modal .search-results {
    position: static;
    margin-top: 0.5rem;
    box-shadow: none;
    max-height: 220px;
}
.superuser-actions-menu {
    min-width: 200px;
}
.superuser-actions-menu .dropdown-item {
    padding: 8px 16px;
}
.superuser-actions-menu .dropdown-item i {
    margin-right: 8px;
    width: 16px;
}
.superuser-actions-menu {
    z-index: 1080;
    text-align: left;
}
#assigned-subusers-table th:last-child,
#assigned-subusers-table td:last-child {
    width: 14%;
    text-align: right;
    white-space: nowrap;
    overflow: visible;
}
#assign-subuser-modal .modal-footer,
#undesignate-superuser-modal .modal-footer,
#remove-subuser-modal .modal-footer {
    margin-bottom: 0;
}
#undesignate-superuser-modal .modal-dialog {
    max-width: 520px;
}

/* resources/views/includes/superuser-switcher.blade.php */
.superuser-switcher {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1080;
    font-size: 0.85rem;
    width: 280px;
}
.superuser-switcher-toggle {
    width: 100%;
    border: none;
    border-radius: 10px;
    background: #23284F;
    color: #fff;
    text-align: left;
    padding: 0.75rem 0.9rem;
    box-shadow: 0 8px 24px rgba(35, 40, 79, 0.28);
    cursor: pointer;
}
.superuser-switcher-badge {
    display: inline-block;
    background: #f0b429;
    color: #23284F;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
    margin-bottom: 0.25rem;
}
.superuser-switcher-current {
    display: block;
    font-weight: 600;
}
.superuser-switcher-current small {
    display: block;
    font-weight: 400;
    opacity: 0.8;
}
.superuser-switcher-panel {
    margin-top: 0.4rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    max-height: 360px;
    overflow: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.superuser-switcher-header {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 0.6rem 0.85rem;
    background: #fff;
    border-bottom: 1px solid #eef0f5;
}
.superuser-switcher-filter {
    position: relative;
}
.superuser-switcher-filter .form-control {
    padding-right: 1.8rem;
}
.superuser-switcher-filter .form-control::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}
.superuser-switcher-filter .btn[hidden] {
    display: none;
}
.superuser-switcher-filter .btn {
    position: absolute;
    top: 50%;
    right: 0.2rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6c757d;
    line-height: 1;
}
.superuser-switcher-filter .btn:hover,
.superuser-switcher-filter .btn:focus {
    color: #23284F;
    background: transparent;
}
.superuser-switcher-company {
    padding: 0.5rem 0.85rem 0.15rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
}
.superuser-switcher-item {
    display: block;
    padding: 0.45rem 0.85rem;
    color: #23284F;
    text-decoration: none;
}
.superuser-switcher-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.superuser-switcher-name {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}
.superuser-switcher-role {
    flex: 0 0 auto;
    background: #f0b429;
    color: #23284F;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    line-height: 1.2;
    white-space: nowrap;
}
.superuser-switcher-current-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    background: #198754;
    color: #fff;
    border-radius: 50%;
    padding: 0;
    line-height: 1;
}
.superuser-switcher-current-label .fa-check {
    font-size: 0.65rem;
}
.superuser-switcher-item small {
    display: block;
    color: #6c757d;
}
.superuser-switcher-item:hover,
.superuser-switcher-item.is-active {
    background: #f5f6fb;
}
.superuser-switcher-empty {
    padding: 0.35rem 0.85rem 0.6rem;
    color: #6c757d;
}
.superuser-switcher-change {
    border-top: 1px solid #eef0f5;
    font-weight: 600;
}

/* resources/views/includes/superuser-banner.blade.php */
.superuser-acting-banner {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    line-height: 1.2;
}
.superuser-acting-banner,
.superuser-acting-banner strong {
    color: #055160;
}
