.user-page {
    gap: 8px;

}

.user-toolbar .page-toolbar-left {
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.col-user-main {
    min-width: 320px;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.user-cell-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.35;
}

.user-cell-info strong {
    color: #14532d;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .user-cell-info span {
        color: #303F9F;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.user-contact {
    display: grid;
    gap: 3px;
    color: #475569;
}

.user-contact span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color:#000 !important;
}

    .user-contact i {
        color: #388E3C;
    }

.user-permission-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

    .user-permission-tags span {
        display: inline-flex;
        max-width: 160px;
        padding: 4px 8px;
        border: 0px solid rgba(15, 157, 79, .16);
        border-radius: 8px;
        background: #E0F2F1;
        color: #00796B;
        font-size: 11px;
        font-weight: 400;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.user-dialog-tabs {
    display: inline-flex;
    gap: 6px;
    margin-bottom: 12px;
    padding: 4px;
    border: 1px solid rgba(15, 157, 79, .12);
    border-radius: 999px;
    background: #f8fafc;
    user-select:none;
}

.user-dialog-tabs button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 800;
}

.user-dialog-tabs button.active {
    background: #0f9d4f;
    color: #fff;
    box-shadow: 0 8px 20px rgba(15, 157, 79, .22);
}

.user-permission-panel {
    display: grid;
    gap: 10px;
    grid-template-rows: auto minmax(0, 1fr);
    user-select: none;
}

.user-permission-summary {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    align-items: end;
}

.user-permission-scroll {
    min-height: 0;
    max-height: min(44vh, 400px);
    overflow: auto;
    padding: 2px 4px 2px 0;
}

.user-override-head {
    display: flex;
    gap: 12px;
    display:block !important;
    padding: 9px 10px;
    border: 0px solid rgba(15, 157, 79, .10);
    flex:none !important;
    display:block !important;
    margin-bottom:10px;
}

.user-override-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.user-override-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding-left: 0px;
    position: absolute;
    top: 102px;
    right: 20px;
}

.user-override-counts span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 6px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 400 !important;
    letter-spacing:-0.2px !important;
}

.user-override-counts .allow {
    background: #ecfdf3;
    color: #166534;
}

    .user-override-counts .deny {
        background: #FFEBEE;
        color: #991b1b;
    }



.user-override-title > i {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #dcfce7;
    color: #15803d;
    flex: 0 0 auto;
}

.user-override-title > div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.user-override-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: min(100%, 410px);
    width: 945px;
    flex-wrap: wrap;
}

.user-override-filter {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    flex: 1 1 220px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid rgba(15, 157, 79, .16);
    border-radius: 999px;
    background: #fff;
    color: #0f9d4f;
}

.user-override-filter input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #1e293b;
    font-size: 12px;
    font-weight: 700;
}

.user-override-filter input::placeholder {
    color: #94a3b8;
    font-weight: 600;
}

.user-override-state-filter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 999px;
    background: #f8fafc;
    flex: 0 0 auto;
}

.user-override-state-filter button {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #475569;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.user-override-state-filter button.active {
    background: #e2e8f0;
    color: #0f172a;
}

.user-override-state-filter button.allow.active {
    background: #4CAF50;
    color: #fff;
}

.user-override-state-filter button.deny.active {
    background: #fee2e2;
    color: #991b1b;
}

.user-override-head strong {
    color: #14532d;
    font-weight: 900;
    font-size: 13px;
}

    .user-override-head span {
        color: #757575;
        font-size: 10px;
        letter-spacing:0px !important;
    }

.user-override-head strong,
.user-override-head span {
    word-break: break-word;
}

.user-override-head .permission-mini-btn {
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 999px;
    background: #fff;
    color: #475569;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    flex: 0 0 auto;
}

.user-override-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.user-override-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
}

.user-override-legend .allow {
    background: #ecfdf3;
    color: #166534;
}

.user-override-legend .deny {
    background: #fee2e2;
    color: #991b1b;
}

.user-override-list {
    display: grid;
    gap: 8px;
    padding-right: 4px;
}

.user-override-group {
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .035);
    overflow: hidden;
}

.user-override-group header {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 7px 10px;
    background: rgba(236, 253, 243, .92);
    color: #14532d;
    font-weight: 900;
    font-size: 13px;
}

.user-override-group header i {
    margin-right: 6px;
    color: #0f9d4f;
}

.user-override-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 8px;
    align-items: start;
    padding: 8px 10px;
    border-top: 1px solid rgba(148, 163, 184, .14);
}

.user-override-item > div:first-child {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.user-override-item strong {
    color: #1e293b;
    line-height: 1.25;
    word-break: break-word;
    font-size:12px;
    font-weight:800;
}

    .user-override-item small {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: #64748b;
        line-height: 1.35;
        font-size: 11px;
        overflow-wrap: anywhere;
        color: #388E3C;
    }

.user-override-empty {
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 28px 12px;
    border: 1px dashed rgba(148, 163, 184, .28);
    border-radius: 14px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
}

.user-override-empty i {
    color: #0f9d4f;
    font-size: 22px;
}

.user-override-empty strong {
    color: #1e293b;
    font-size: 13px;
}

.user-override-empty span {
    font-size: 12px;
}

.user-override-item code {
    width: fit-content;
    max-width: 100%;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    padding: 2px 7px;
    font-size: 11px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.user-override-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    align-self: start;
    padding: 3px;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 12px;
    background: #f8fafc;
    width:315px;
}

    .user-override-options button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 0;
        background: transparent;
        color: #455A64;
        padding: 6px 8px;
        font-size: 12px;
        font-weight: 400;
        cursor: pointer;
    }

        .user-override-options button.active {
            background: #F5F5F5;
            color: #303F9F;
        }

        .user-override-options button.allow.active {
            background: #4CAF50;
            color: #fff;
            border-radius: 6px;
        }

        .user-override-options button.deny.active {
            background: #fee2e2;
            color: #991b1b;
            border-radius: 6px;
        }

.user-override-options button i {
    flex: 0 0 auto;
}

.multi-select-chips {
    position: relative;
    width: 100%;
}

.multi-select-chips:focus-within {
    z-index: 90;
}

.multi-select-trigger {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d7dfeb;
    border-radius: 10px;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
    color: #1e293b;
    padding: 6px 10px;
    text-align: left;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04);
}

.multi-select-trigger:hover:not(:disabled),
.multi-select-trigger:focus-visible {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .10);
}

.multi-select-leading,
.multi-select-chevron {
    color: #0f9d4f;
    flex: 0 0 auto;
}

.multi-select-text {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    gap: 1px;
}

.multi-select-placeholder {
    color: #94a3b8;
}

.multi-select-count {
    color: #14532d;
    font-weight: 800;
    font-size: 13px;
}

.multi-select-preview {
    color: #7B1FA2;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.multi-select-menu {
    position: absolute;
    z-index: 80;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    max-height: 280px;
    overflow: auto;
    padding: 8px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 14px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .16), 0 10px 24px rgba(15, 23, 42, .06);
}

@media (max-width: 960px) {
    .user-override-item {
        grid-template-columns: 1fr;
    }

    .user-permission-summary {
        grid-template-columns: 1fr;
    }

    .user-override-options {
        width: fit-content;
    }

    .user-override-tools {
        min-width: 0;
    }

    .user-permission-scroll {
        max-height: min(42vh, 370px);
    }
}

@media (max-width: 640px) {
    .user-dialog-tabs {
        width: 100%;
        border-radius: 18px;
        flex-wrap: wrap;
    }

    .user-dialog-tabs button {
        flex: 1 1 0;
        justify-content: center;
    }

    .user-override-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .user-override-tools {
        width: 100%;
        min-width: 0;
        flex-direction: column;
        align-items: stretch;
    }

    .user-override-head .permission-mini-btn {
        width: 100%;
        justify-content: center;
    }

    .user-permission-scroll {
        max-height: min(42vh, 350px);
    }
}



.multi-select-tools {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.multi-select-tools button {
    border: 1px solid rgba(15, 157, 79, .16);
    border-radius: 999px;
    background: #f0fdf4;
    color: #166534;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
}

.multi-select-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
}

.multi-select-option:hover,
.multi-select-option.selected {
    background: #ecfdf3;
}

.multi-select-option input {
    display: none;
}

.multi-select-check {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: transparent;
    background: #fff;
}

.multi-select-option.selected .multi-select-check {
    border-color: #0f9d4f;
    background: #0f9d4f;
    color: #fff;
}

.multi-select-option > span:last-child {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.multi-select-option strong {
    color: #1e293b;
    font-size:13px;
    font-weight:500;
}

.multi-select-option small {
    color: #64748b;
}
