/* Import Inter font for wizard pages */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

html {
    /* Prevent layout shift when scrollbar appears/disappears */
    scrollbar-gutter: stable;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Override Bootstrap: label small / .small use 1.0em instead of 0.875em */
.small, small {
    font-size: 1.0em;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}
.sidebar-header {
    padding: 20px 16px;
    margin-bottom: 8px;
}

.hotel-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
/*    background-color: rgba(255, 255, 255, 0.05);*/
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .hotel-selector:hover {
        background-color: rgba(255, 255, 255, 0.08);
    }

.hotel-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #fff;
}
.brochner-hotels-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
    font-style: normal;
}
.hotel-name {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    color: #ffffff;
    flex: 1;
}
    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* ===========================================
   ARO LOADING SCREEN
   =========================================== */
.aro-loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #fff5eb 100%);
    z-index: 9999;
}

/* Blocking variant (AroLoader Overlay="true"): the page stays visible behind, so the wait reads
   as this page being busy rather than the application reloading. Sits above MudBlazor's dialog
   and snackbar layers. */
.aro-loading-container-overlay {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(2px);
    z-index: 10000;
}

/* Inline variant (AroLoader default): sits in the layout in place of the content still loading,
   so it must drop the fixed positioning the boot splash relies on. */
.aro-loading-container-inline {
    position: static;
    width: auto;
    height: auto;
    min-height: 240px;
    background: none;
    z-index: auto;
}

.aro-loading-container-inline .aro-loading-logo {
    width: 120px;
}

.aro-loading-container-inline .aro-loading-logo-wrapper {
    margin-bottom: 24px;
}

.aro-loading-logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.aro-loading-logo {
    width: 200px;
    height: auto;
    animation: logoPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 24px rgba(246, 145, 38, 0.25));
}

.aro-loading-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #434343;
    margin-bottom: 24px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.aro-loading-dots::after {
    content: '';
    animation: loadingDots 1.5s steps(4, end) infinite;
}

.aro-loading-bar-container {
    width: 220px;
    height: 4px;
    background: rgba(246, 145, 38, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.aro-loading-bar {
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, #F69126, #FF931E, #F69126);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: loadingBar 1.5s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.85;
    }
}

@keyframes ringRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes loadingDots {
    0% {
        content: '';
    }
    25% {
        content: '.';
    }
    50% {
        content: '..';
    }
    75% {
        content: '...';
    }
    100% {
        content: '';
    }
}

@keyframes loadingBar {
    0% {
        transform: translateX(-100%);
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        transform: translateX(300%);
        background-position: 0% 50%;
    }
}

/* Legacy loading progress (hidden) */
.loading-progress {
    display: none;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }
.top-right-icons {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .top-right-icons:hover {
        background-color: rgba(0, 0, 0, 0.1);
    }
.top-right-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding: 10px;
}
.property-name {
    font-weight: 500;
    font-size: 14px;
    color: #000000;
    white-space: �nowrap;
}
.profile-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.top-right-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: white;
    border-radius: 999px;
    padding:  12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    cursor: �pointer;
}
/* Legacy loading progress text (hidden) */
.loading-progress-text {
    display: none;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Country dropdown selected item highlight */
.mud-list-item.country-selected-item {
    background-color: rgba(246, 145, 38, 0.15) !important;
    color: #F69126 !important;
    font-weight: 500;
}

/* ===========================================
   ARO DATA TABLE - GLOBAL STYLES
   =========================================== */

/* Table Container */
.aro-table-container {
    width: 100%;
}

/* Filter Section */
.table-filter-section {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 24px;
}

.filter-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-group {
    flex: 1;
    min-width: 300px;
}

.status-group {
    width: 250px;
}

.filter-label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1C1B1F;
}

/* Search Input */
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    pointer-events: none;
    opacity: 0.6;
}

/* MudBlazor Search Icon */
.search-icon-mud {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #757575 !important;
    font-size: 22px !important;
    z-index: 1;
}

.search-icon-mud svg {
    width: 22px !important;
    height: 22px !important;
}

.filter-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #1C1B1F;
    background: #F6F6F6;
    border: 1px solid #C3C3C3;
    border-radius: 0;
    box-sizing: border-box;
    outline: none;
}

.filter-input:focus {
    border-color: #F69126;
}

.filter-input::placeholder {
    color: #9E9E9E;
}

/* Select/Dropdown */
.select-wrapper {
    position: relative;
}

.filter-select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #1C1B1F;
    background: #F6F6F6;
    border: 1px solid #C3C3C3;
    border-radius: 0;
    box-sizing: border-box;
    outline: none;
    appearance: none;
    cursor: pointer;
}

.filter-select:focus {
    border-color: #F69126;
}

.select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    pointer-events: none;
}

/* MudBlazor Dropdown Arrow */
.select-arrow-mud {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #757575 !important;
    font-size: 24px !important;
}

.select-arrow-mud svg {
    width: 24px !important;
    height: 24px !important;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.btn-reset {
    padding: 12px 24px;
    background: #FFFFFF;
    border: 1px solid #4A4A4A;
    border-radius: 6px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #4A4A4A;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reset:hover {
    background: #F5F5F5;
}

/* Table Wrapper */
.table-wrapper {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    overflow: hidden;
}

/* Data Table */
.aro-data-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Table Header */
.aro-data-table thead tr {
    background: #F5F5F7;
    border-bottom: 1px solid #E5E7EB;
}

.aro-data-table th {
    padding: 12px 21px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #64748B;
    text-align: left;
    white-space: nowrap;
    background: #F5F5F7;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}

.aro-data-table th:hover {
    color: #1C1B1F;
}

.aro-data-table th.no-sort {
    cursor: default;
}

.aro-data-table th.no-sort:hover {
    color: #64748B;
}

.aro-data-table th.text-right {
    text-align: right;
}

/* Header Content with Sort Icon */
.header-content {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* SVG Sort Icon */
.sort-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    opacity: 0.5;
    transition: transform 0.2s, opacity 0.2s;
}

.sort-icon.asc {
    opacity: 1;
    transform: rotate(0deg);
}

.sort-icon.desc {
    opacity: 1;
    transform: rotate(180deg);
}

.sortable-header:hover .sort-icon {
    opacity: 0.8;
}

/* Sortable Header */
.sortable-header {
    cursor: pointer;
    user-select: none;
}

.sortable-header:hover {
    color: #1C1B1F;
}

/* Actions Header - Not sortable, aligned right */
.actions-header {
    cursor: default !important;
    text-align: right !important;
    padding-right: 24px !important;
}

.actions-header:hover {
    color: #64748B !important;
}

/* Actions Cell - aligned right */
.aro-data-table td:last-child {
    text-align: right;
    padding-right: 24px;
}

/* Table Body */
.aro-data-table tbody tr {
    border-bottom: 1px solid #E0E0E0;
    transition: background-color 0.2s;
}

.aro-data-table tbody tr:last-child {
    border-bottom: none;
}

.aro-data-table tbody tr:hover {
    background: #FAFAFA;
}

.aro-data-table td {
    padding: 18px 24px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #1C1B1F;
    vertical-align: middle;
}

/* No Data Cell */
.no-data-cell {
    text-align: center;
    padding: 48px 24px !important;
    color: #9E9E9E;
}

/* User Cell with Avatar */
.user-cell {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    aspect-ratio: 1;
    background: #F0F0F0;
    border: 1px solid #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #707070;
    flex-shrink: 0;
}

.user-name {
    font-weight: 500;
    color: #1C1B1F;
    font-size: 14px;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 50px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 500;
    min-width: 80px;
}

.status-badge.active {
    background: #D8EDD9;
    color: #1B4D19;
}

.status-badge.inactive {
    background: #FFD5E1;
    color: #A40D37;
}

.status-badge.pending {
    background: #FFF3E0;
    color: #E65100;
}

/* Action Buttons */
.action-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    padding: 0;
}

.action-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.action-btn img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
}

.action-btn:hover img {
    opacity: 1;
}

/* Settings Icon - Gear Style */
.action-btn .settings-icon {
    width: 24px;
    height: 24px;
    color: #757575;
}

/* Action Dropdown Menu */
.action-menu-wrapper {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.action-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    z-index: 100;
    overflow: hidden;
}

.action-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #1C1B1F;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s;
}

.action-dropdown-item:hover {
    background: #F5F5F5;
}

.action-dropdown-item.danger {
    color: #D32F2F;
}

.action-dropdown-item.danger:hover {
    background: #FFEBEE;
}

.action-dropdown-item .dropdown-icon {
    width: 20px;
    height: 20px;
    color: inherit;
}

/* Action Cell Wrapper */
.action-cell-wrapper {
    position: relative;
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
}

/* Dropdown Items */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #1C1B1F;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background: #F5F5F5;
}

.dropdown-item-danger {
    color: #D32F2F;
}

.dropdown-item-danger:hover {
    background: #FFEBEE;
}

.dropdown-item .mud-icon-root {
    color: inherit;
}

.action-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-menu-item-icon {
    color: inherit;
}

/* Dropdown Overlay */
.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
}

/* Pagination */
.table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-top: 16px;
}

.pagination-info {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #707070;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1C1B1F;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled):not(.active) {
    background: #F5F5F5;
    border-color: #C3C3C3;
}

.pagination-btn.active {
    background: #F69126;
    border-color: #F69126;
    color: #FFFFFF;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-nav {
    font-weight: 600;
}

/* ===========================================
   USER LIST PAGE STYLES
   =========================================== */

.user-list-page {
    padding: 0;
}

.user-list-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.user-list-page .page-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #000000;
    margin: 0;
}

.btn-add-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: #F69126;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-user:hover {
    background: #E58320;
}

.btn-icon {
    font-size: 18px;
    font-weight: 600;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 48px 24px;
}

.empty-state p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    color: #9E9E9E;
    margin: 0;
}

.btn-add-user-empty {
    padding: 12px 24px;
    background: #F69126;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-user-empty:hover {
    background: #E58320;
}

/* Responsive */
@media (max-width: 968px) {
    .filter-row {
        flex-direction: column;
    }

    .search-group,
    .status-group {
        width: 100%;
        min-width: unset;
    }

    .table-wrapper {
        overflow-x: auto;
    }

    .table-pagination {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .user-list-page .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .btn-add-user {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .table-filter-section {
        padding: 16px;
    }

    .aro-data-table th,
    .aro-data-table td {
        padding: 14px 16px;
    }
}

/* ===========================================
   ROLES & PERMISSIONS PAGE STYLES
   =========================================== */

.roles-permissions-page {
    padding: 0;
}

.roles-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.roles-header-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.roles-page-title {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #1C1B1F;
}

.roles-page-subtitle {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    color: #707070;
}

/* Roles list table: keep long name/description inside column with ellipsis (table-layout: fixed on .aro-data-table) */
.roles-name-td {
    overflow: hidden;
    vertical-align: middle;
    max-width: 0;
}

.roles-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: 100%;
}

.roles-shield-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #F69126;
    background: rgba(246, 145, 38, 0.12);
}

.roles-aro-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.roles-aro-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.roles-name-text {
    font-weight: 500;
    color: #1C1B1F;
    min-width: 0;
    flex: 1 1 0%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.roles-col-name {
    width: 22%;
}

.roles-col-description {
    width: 42%;
}

.roles-col-users {
    width: 12%;
}

.roles-col-status {
    width: 14%;
}

.roles-description-cell {
    color: #707070;
    max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.roles-users-cell,
.roles-status-cell {
    padding-left: 28px !important;
}

.roles-user-count-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    color: #F69126;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
}

.roles-user-count-btn:hover {
    text-decoration: underline;
}

/* Assigned users modal: Shared/Roles/RoleAssignedUsersModal.razor.css */

@media (max-width: 968px) {
    .roles-page-header {
        flex-direction: column;
    }
}

/* ===========================================
   CREATE ROLE PAGE STYLES
   =========================================== */

.roles-create-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.roles-create-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.roles-create-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.roles-back-btn {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 1px solid #E0E0E0;
    background: #FFFFFF;
    color: #4A4A4A;
}

.roles-action-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.role-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 8px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    background: #F7F7F7;
    color: #1F2937;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: .15s;
}

.role-close-btn:hover {
    background: #FF931E;
    border-color: #FF931E;
    color: #FFFFFF;
}

.role-close-btn:hover .mud-icon-root,
.role-close-btn:hover .role-close-btn-icon {
    color: #FFFFFF;
}

.role-close-btn:focus-visible {
    outline: 2px solid #F69126;
    outline-offset: 2px;
}

.role-close-btn-icon {
    margin: 0;
}

.role-collapse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    padding-left: 12px;
    padding-right: 12px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    background: #F7F7F7;
    color: #1F2937;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: .15s;
}

.role-collapse-btn:hover {
    background: #FF931E;
    border-color: #FF931E;
    color: #FFFFFF;
}

.role-collapse-btn:focus-visible {
    outline: 2px solid #F69126;
    outline-offset: 2px;
}

/* Role permission search: Shared/Roles/RolePermissionSearchInput.razor.css */

.roles-form-card {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 16px;
}

.roles-section-title {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #1C1B1F;
    margin-bottom: 12px;
}

.roles-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.role-input {
    border-radius: 6px;
    background: #F6F6F6;
}

.role-description-input {
    width: 100%;
    border: 1px solid #C3C3C3;
    border-radius: 6px;
    padding: 12px 14px;
    background: #F6F6F6;
    resize: none;
}

.roles-status-toggle {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Role information UI: Shared/Roles/RoleInformationSection.razor.css */

.role-validation-error {
    color: #B42318;
    font-size: 13px;
    margin-top: 6px;
}

.roles-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.role-permissions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.role-permission-card {
    border: 1px solid #E4E4E7;
    border-radius: 8px;
    background: #FFFFFF;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

/* Card border + icon tint by access level (Lovable: emerald / blue / amber / purple / red) */
.role-permission-card.full {
    border-color: rgba(16, 185, 129, 0.55);
}

.role-permission-card.create {
    border-color: #E4E4E7;
}

.role-permission-card.edit {
    border-color: #E4E4E7;
}

.role-permission-card.read {
    border-color: #E4E4E7;
}

.role-permission-card.none {
    border-color: rgba(239, 68, 68, 0.55);
    opacity: 0.92;
}

.role-permission-card.full .role-permission-card-icon {
    background: rgba(16, 185, 129, 0.1);
    color: rgb(52, 211, 153);
}

.role-permission-card.create .role-permission-card-icon {
    background: rgba(59, 130, 246, 0.1);
    color: rgb(96, 165, 250);
}

.role-permission-card.edit .role-permission-card-icon {
    background: rgba(245, 158, 11, 0.1);
    color: rgb(251, 191, 36);
}

.role-permission-card.read .role-permission-card-icon {
    background: rgba(168, 85, 247, 0.1);
    color: rgb(192, 132, 252);
}

.role-permission-card.none .role-permission-card-icon {
    background: #F4F4F5;
    color: #6B7280;
}

/* Module icons use primary orange, except ARO internal modules */
.role-permission-card .role-permission-card-icon:not(.role-permission-card-icon-aro) {
    background: #F691261A;
    color: #F69126;
}

.role-permission-card-header {
    width: 100%;
    border: none;
    background: transparent;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.role-permission-card-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.role-permission-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F4F4F5;
    color: #6B7280;
    flex-shrink: 0;
}

.role-permission-card-info {
    min-width: 0;
    text-align: left;
}

.role-permission-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1C1B1F;
    text-align: left;
}

.role-permission-card-subtitle {
    font-size: 12px;
    color: #707070;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.role-permission-card-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.role-permission-badge {
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid transparent;
}

/* Lovable-aligned: emerald / blue / amber / purple / red (Tailwind *-500/15, *-400, *-500/30) */
.role-permission-badge.full,
.role-permission-option.compact.full {
    color: rgb(52, 211, 153);
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.15);
}

.role-permission-badge.create,
.role-permission-option.compact.create {
    color: rgb(96, 165, 250);
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.15);
}

.role-permission-badge.edit,
.role-permission-option.compact.edit {
    color: rgb(251, 191, 36);
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.15);
}

.role-permission-badge.read,
.role-permission-option.compact.read {
    color: rgb(192, 132, 252);
    border-color: rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.15);
}

.role-permission-badge.none,
.role-permission-option.compact.none {
    color: rgb(248, 113, 113);
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.15);
}

.btn-reset.compact {
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1;
}

.roles-bottom-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid #E4E4E7;
    padding-top: 12px;
}

@media (max-width: 1100px) {
    .role-permissions-grid {
        grid-template-columns: 1fr;
    }

    .role-permission-card-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 968px) {
    .roles-create-header {
        flex-direction: column;
    }

    .roles-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Design tuning for module permission card */
.role-permission-card-header {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.role-permission-card-header:hover {
    background: rgba(148, 163, 184, 0.12);
}

.role-permission-card-header.expanded {
    border-bottom: 1px solid #E4E4E7;
}

.role-permission-card-options-wrap {
    padding: 4px 16px 16px;
    border-top: 1px solid #E4E4E7;
}

.role-permission-card-options {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
}

.role-permission-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    border-radius: 8px;
    border: 2px solid transparent;
    background: rgba(148, 163, 184, 0.15);
    color: #6B7280;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.role-permission-option.compact {
    flex-direction: row;
    padding: 8px 12px;
    border-radius: 6px;
    border-width: 1px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.role-permission-option:not(.compact):hover:not(:disabled) {
    background: rgba(148, 163, 184, 0.28);
}

.role-permission-option.compact:hover {
    filter: brightness(1.05);
}

.role-permission-option-label {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

/* Expanded grid: only the selected level shows semantic color */
.role-permission-option:not(.compact).selected.full {
    color: rgb(52, 211, 153);
    border-color: rgb(52, 211, 153);
    background: rgba(16, 185, 129, 0.15);
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.2);
}

.role-permission-option:not(.compact).selected.create {
    color: rgb(96, 165, 250);
    border-color: rgb(96, 165, 250);
    background: rgba(59, 130, 246, 0.15);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.role-permission-option:not(.compact).selected.edit {
    color: rgb(251, 191, 36);
    border-color: rgb(251, 191, 36);
    background: rgba(245, 158, 11, 0.15);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.2);
}

.role-permission-option:not(.compact).selected.read {
    color: rgb(192, 132, 252);
    border-color: rgb(192, 132, 252);
    background: rgba(168, 85, 247, 0.15);
    box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.2);
}

.role-permission-option:not(.compact).selected.none {
    color: rgb(248, 113, 113);
    border-color: rgb(248, 113, 113);
    background: rgba(239, 68, 68, 0.15);
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.2);
}

.role-permission-option:disabled {
    cursor: default;
}

.role-permission-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    border: 1px solid currentColor;
    font-weight: 500;
}