@import url("css/status-badges.css");

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Universal Table Header Typography Standard across all Masters, PMR Lists, and Management Pages */
.masters-table th,
.locations-table th,
.ip-table th,
.role-table th,
.user-table th,
.pmr-table th,
.hpmr-table th,
.hmu-table th,
.hpu-table th,
.hpd-table th,
.hajipur-prod-table th,
.lab-pmr-table th,
.prod-table th,
.rpt-table th,
.polymer-table th,
.twist-table th,
.cross-section-table th,
.denier-table th,
.filament-table th,
.lustre-table th,
.x-section-table th,
.yarn-structure-table th,
.ph-master-table th {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-style: normal !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #555555 !important;
}

th .sortable-header {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-style: normal !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

a,
.btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color, #1b6ec2);
    border-color: var(--primary-color, #1861ac);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(108, 117, 125, 0.25);
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: none;
}

.invalid {
    outline: none;
}

input.invalid,
input.is-invalid,
select.invalid,
select.is-invalid,
textarea.invalid,
textarea.is-invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.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;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.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;
}

/* ─────────────────────────────────────────────────────────────────
   Number / decimal input alignment (app-wide)
   Entered numeric values render right-aligned, while the placeholder
   stays left-aligned so the hint reads naturally before input begins.
   Covers native <input type="number"> and decimal-entry text inputs
   (inputmode="decimal"), including the shared DecimalInput component.
   ───────────────────────────────────────────────────────────────── */
input[type="number"],
input[inputmode="decimal"] {
    text-align: right;
}

input[type="number"]::placeholder,
input[inputmode="decimal"]::placeholder {
    text-align: left;
}

/* Exception: the IP-address field shares inputmode="decimal" (to surface
   the mobile numeric keypad) but holds a dotted address, not a numeric
   quantity — keep its pre-existing left alignment. */
input.ip-address-input,
input.ip-address-input::placeholder {
    text-align: left;
}

/* IPAddress*/
.custom-modal {
    background: rgba(0,0,0,.45);
}

.modal-content {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 20px;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-body {
    padding: 20px;
}

.form-control,
.form-select {
    height: 42px;
    border-radius: 6px;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #9CA3AF;
        box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.2);
        outline: none;
    }

.btn {
    min-width: 90px;
    border-radius: 6px;
    font-weight: 500;
}

/* Manage IP Address */

.ip-address-page {
    padding: 20px;
    background: #f5f6f8;
    min-height: 100vh;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

    .page-header h4 {
        margin: 0;
        font-weight: 600;
        color: #212529;
    }

    .page-header p {
        color: #6c757d;
        font-size: 13px;
        margin-top: 4px;
    }

    .page-header > div:first-child {
        flex: 1;
    }

    .page-header > div:last-child,
    .page-header .header-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

.search-section {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.search-box {
    width: 250px;
    margin-left: auto;
}

.table-container {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
}

.custom-table {
    margin-bottom: 0;
}

    .custom-table thead th {
        font-size: 13px;
        color: #6c757d;
        font-weight: 600;
        border-bottom: 1px solid #e9ecef;
    }

    .custom-table tbody td {
        vertical-align: middle;
        font-size: 14px;
    }

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

    .status-badge.active {
        background: #d1fae5;
        color: #059669;
    }

    .status-badge.inactive {
        background: #e5e7eb;
        color: #6b7280;
    }

.action-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.edit-icon {
    color: #0d6efd;
    cursor: pointer;
}

.delete-icon {
    color: #dc3545;
    cursor: pointer;
}

    .edit-icon:hover,
    .delete-icon:hover {
        transform: scale(1.1);
    }

.action-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.action-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
    font-size: 15px;
}

.edit-btn {
    background: #e8f1ff;
    color: #0d6efd;
}

    .edit-btn:hover {
        background: #0d6efd;
        color: #fff;
    }

.delete-btn {
    background: #fdeaea;
    color: #dc3545;
}

    .delete-btn:hover {
        background: #dc3545;
        color: #fff;
    }

.status-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
}

    .status-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.status-slider {
    position: absolute;
    inset: 0;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 30px;
    transition: .3s ease;
    cursor: default;
}

    .status-slider::before {
        content: "";
        position: absolute;
        width: 16px;
        height: 16px;
        left: 2px;
        top: 2px;
        background: #bfc5cc;
        border-radius: 50%;
        transition: .3s ease;
        box-shadow: 0 1px 3px rgba(0,0,0,.2);
    }

/* Active */

.status-switch input:checked + .status-slider::before {
    background: #fff;
    transform: translateX(20px);
}

/* ── Search Bar ──────────────────────────────────────────────────────
   Modern search input with icon, clear button, and smooth animations
──────────────────────────────────────────────────────────────────── */

.search-bar-wrapper {
    width: 100%;
    max-width: 320px;
    min-width: 280px;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    pointer-events: none;
    z-index: 1;
}

    .search-icon svg {
        width: 18px;
        height: 18px;
    }

.search-input {
    width: 100%;
    height: 40px;
    padding: 8px 42px 8px 42px;
    font-size: 14px;
    color: #1e293b;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

    .search-input::placeholder {
        color: #94a3b8;
        font-weight: 400;
    }

    .search-input:hover {
        background: #ffffff;
        border-color: #cbd5e0;
    }

    .search-input:focus {
        background: #ffffff;
        border-color: #475569;
    }

    .search-input:focus ~ .search-icon {
        color: #475569;
    }

.search-clear-btn {
    position: absolute;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: #F1F5F9;
    border: none;
    border-radius: 50%;
    color: #64748B;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
    z-index: 1;
}

    .search-clear-btn svg {
        width: 13px;
        height: 13px;
        display: block;
    }

    .search-clear-btn:hover {
        color: var(--primary-color, #ff0000) !important;
        background: var(--primary-bg, rgba(255, 0, 0, 0.1)) !important;
        transform: scale(1.08) !important;
        box-shadow: none !important;
    }

    .search-clear-btn:active {
        color: var(--primary-color, #ff0000) !important;
        background: var(--primary-bg, rgba(255, 0, 0, 0.16)) !important;
        transform: scale(0.95) !important;
        box-shadow: none !important;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-bar-wrapper {
        max-width: 100%;
        min-width: 200px;
    }

    .search-input {
        font-size: 13px;
        height: 38px;
    }
}


/* ── Page Loader ─────────────────────────────────────────────────── */
.wstym-main-loader {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    opacity: 0;
    animation: dpLoaderFadeIn 0.18s ease-out 120ms forwards;
}

/* Keep sidebar and top header uncovered when inside the authenticated shell */
body:has(.sidebar) .wstym-main-loader {
    top: 60px;
    left: 260px;
    right: 0;
    bottom: 0;
    z-index: 998;
}

body.sidebar-collapsed:has(.sidebar) .wstym-main-loader {
    left: 70px;
}

@keyframes dpLoaderFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.loader-inner {
    display: block;
    width: 44px;
    height: 44px;
    border: 4px solid #f0f0f0;
    border-top-color: var(--primary-color, #0405AB);
    border-radius: 50%;
    animation: loader-spin 0.75s linear infinite;
}

@keyframes loader-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Set Up Password */

.setup-password-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    padding: 20px;
}

.setup-password-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    padding: 60px 50px;
}

.logo-section {
    text-align: center;
    margin-bottom: 50px;
}

.brand-title {
    font-size: 42px;
    font-weight: 800;
    color: #2d3748;
    margin: 0;
    letter-spacing: 2px;
}

.brand-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin: 5px 0 0 0;
    letter-spacing: 4px;
}

.setup-password-form {
    margin-top: 40px;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

    .form-group label {
        display: block;
        font-size: 16px;
        font-weight: 600;
        color: #2d3748;
        margin-bottom: 8px;
    }

.required {
    color: #ff0000;
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 15px 18px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

    .form-control::placeholder {
        color: #cbd5e0;
    }

    .form-control:focus {
        border-color: #9CA3AF;
        box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.2);
    }

.password-input-wrapper {
    position: relative;
}

    .password-input-wrapper .form-control {
        padding-right: 50px;
    }

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #cbd5e0;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: color 0.3s ease;
}

    .password-toggle:hover {
        color: #718096;
    }

/* Eye icon positioned inside the input on the right */
.toggle-password.icon-right {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
}

    .toggle-password.icon-right .eye-icon {
        width: 20px;
        height: 20px;
        opacity: 0.5;
        transition: opacity 0.2s ease;
        display: block;
    }

    .toggle-password.icon-right:hover .eye-icon {
        opacity: 0.8;
    }

.btn-setup {
    width: 100%;
    padding: 18px;
    background: #ff0000;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-transform: capitalize;
}

    .btn-setup:hover:not(:disabled) {
        background: #cc0000;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
    }

    .btn-setup:active:not(:disabled) {
        transform: translateY(0);
    }

    .btn-setup:disabled {
        background: #e57373;
        cursor: not-allowed;
    }

.back-to-signin {
    text-align: center;
    margin-top: 25px;
}

    .back-to-signin a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #718096;
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        transition: color 0.3s ease;
    }

        .back-to-signin a:hover {
            color: #2d3748;
        }

    .back-to-signin i {
        font-size: 14px;
    }

.validation-message {
    color: #ff0000;
    font-size: 14px;
    margin-top: 5px;
    display: block;
    animation: fadeIn 0.3s ease-in;
}

.alert-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 25px;
}

    .alert-message.error {
        background: #fff5f5;
        color: #c53030;
        border: 1px solid #feb2b2;
    }

    .alert-message.error.hajipur-theme,
    .alert-message.hajipur-theme {
        background: #eff6ff;
        color: #1e40af;
        border: 1px solid #bfdbfe;
    }

    .alert-message.success {
        background: #f0fff4;
        color: #276749;
        border: 1px solid #9ae6b4;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-control.error {
    border-color: #ff0000 !important;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

@media (max-width: 768px) {
    .setup-password-card {
        padding: 40px 30px;
    }

    .brand-title {
        font-size: 36px;
    }

    .brand-subtitle {
        font-size: 20px;
    }

    .form-title {
        font-size: 24px;
    }
}

.cursor-pointer {
    cursor: pointer;
}

/* ── Email Tag Input ─────────────────────────────────────────────────────────
   A chip-style multi-email field: chips render inside the input box border.
   Primary chip uses the app's red accent; secondary chips are neutral grey.
──────────────────────────────────────────────────────────────────────────── */

.email-tag-input {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #fff;
    cursor: text;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .email-tag-input:focus-within {
        border-color: #9CA3AF;
        box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.15);
    }

    .email-tag-input.is-invalid {
        border-color: #dc3545;
    }

        /* Invalid + focused = metallic / dark gray, matching the dialog inputs */
        .email-tag-input.is-invalid:focus-within {
            border-color: #9CA3AF;
            box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.15);
        }

/* Individual chip */
.email-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    background: #f1f3f5;
    color: #495057;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.4;
}

/* Primary chip — red outline matching the image */
.email-tag--primary {
    border-color: #dc3545;
    background: #fff5f5;
    color: #dc3545;
}

/* Remove (×) button inside the chip */
.email-tag__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    color: inherit;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.15s, background 0.15s;
}

    .email-tag__remove:hover {
        opacity: 1;
        background: rgba(0, 0, 0, 0.08);
    }

/* The invisible text input that sits after the chips */
.email-tag__input {
    flex: 1;
    min-width: 180px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.875rem;
    color: #212529;
    padding: 2px 0;
}

    .email-tag__input::placeholder {
        color: #adb5bd;
    }

    /* When max 5 emails are reached, wrap the disabled limit message onto its own full-width row so it is never clipped */
    .email-tag__input:disabled {
        flex: 1 0 100%;
        width: 100%;
        min-width: 0;
        margin-top: 2px;
        font-size: 0.8125rem;
    }

/* ── City Searchable Dropdown */
.city-searchable-wrapper {
    position: relative;
}

.city-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    max-height: 200px;
    overflow-y: auto !important;
    overflow-x: hidden;
    overscroll-behavior: contain;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.city-dropdown-list,
.state-dropdown-list {
    scrollbar-width: thin;
    scrollbar-color: #888888 #f1f3f5;
}

.city-dropdown-list::-webkit-scrollbar,
.state-dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.city-dropdown-list::-webkit-scrollbar-track,
.state-dropdown-list::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 4px;
}

.city-dropdown-list::-webkit-scrollbar-thumb,
.state-dropdown-list::-webkit-scrollbar-thumb {
    background: #888888;
    border-radius: 4px;
}

.city-dropdown-list::-webkit-scrollbar-thumb:hover,
.state-dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #666666;
}

.city-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f1f3f5;
}

    .city-dropdown-item:last-child {
        border-bottom: none;
    }

    .city-dropdown-item:hover,
    .city-dropdown-item.active {
        background-color: #f8f9fa;
    }

    .city-dropdown-item .city-name {
        font-weight: 500;
        color: #212529;
        font-size: 0.9rem;
    }

/*STATE SEARCHABLE DROPDOWN */

.state-searchable-wrapper {
    position: relative;
}

.state-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    max-height: 200px;
    overflow-y: auto !important;
    overflow-x: hidden;
    overscroll-behavior: contain;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.state-dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f1f3f5;
}

    .state-dropdown-item:last-child {
        border-bottom: none;
    }

    .state-dropdown-item:hover,
    .state-dropdown-item.active {
        background-color: #f8f9fa;
    }

.state-dropdown-item .state-name {
    font-weight: 500;
    color: #212529;
    font-size: 0.9rem;
}

/* Select Location */

.location-selection-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    padding: 20px;
}

.location-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    padding: 60px 50px;
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.brand-title {
    font-size: 42px;
    font-weight: 800;
    color: #2d3748;
    margin: 0;
    letter-spacing: 2px;
}

.brand-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin: 5px 0 0 0;
    letter-spacing: 4px;
}

.location-form {
    margin-top: 30px;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
    text-align: center;
}

.form-subtitle {
    font-size: 16px;
    color: #718096;
    margin-bottom: 30px;
    text-align: center;
}

.location-dropdown-container {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.required {
    color: #ff0000;
    margin-left: 2px;
}

.form-select {
    width: 100%;
    padding: 15px 18px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: white;
    cursor: pointer;
}

    .form-select:focus {
        border-color: #9CA3AF;
        box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.2);
    }

.btn-continue {
    width: 100%;
    padding: 18px;
    background: #ff0000;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-transform: capitalize;
}

    .btn-continue:hover:not(:disabled) {
        background: #cc0000;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
    }

    .btn-continue:active:not(:disabled) {
        transform: translateY(0);
    }

    .btn-continue:disabled {
        background: #cbd5e0;
        cursor: not-allowed;
        opacity: 0.6;
    }

.locations-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.info-text {
    font-size: 14px;
    color: #718096;
    margin-bottom: 10px;
}

.location-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.location-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .location-card {
        padding: 40px 30px;
    }

    .brand-title {
        font-size: 36px;
    }

    .brand-subtitle {
        font-size: 20px;
    }

    .form-title {
        font-size: 24px;
    }
}
/* =========================================================
   BLAZORED TOAST - CUSTOM UI
   ========================================================= */

/* ---------------------------------------------------------
   TOAST CONTAINER
   --------------------------------------------------------- */

.blazored-toast-container {
    position: fixed !important;
    top: 24px !important;
    right: 24px !important;
    left: auto !important;
    bottom: auto !important;
    width: 360px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    z-index: 999999 !important;
    pointer-events: none !important;
}

/* Position toasts cleanly below the 60px top header when inside the app shell */
body:has(.header-container) .blazored-toast-container {
    top: 72px !important;
}

/* ---------------------------------------------------------
   TOAST
   --------------------------------------------------------- */

.blazored-toast {
    position: relative !important;
    width: 360px !important;
    min-height: 72px !important;
    margin: 0 0 12px 0 !important;
    padding: 14px 14px 14px 14px !important;
    box-sizing: border-box !important;
    display: grid !important;
    /*
       COLUMN 1 = icon
       COLUMN 2 = message
       COLUMN 3 = close
    */
    grid-template-columns: 36px minmax(0, 1fr) !important;
    column-gap: 12px !important;
    align-items: center !important;
    background: #ffffff !important;
    color: #344054 !important;
    border: 1px solid #E2E8F0 !important;
    border-top: 3px solid #16b364 !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 32px -6px rgba(15, 23, 42, 0.14), 0 4px 12px -2px rgba(15, 23, 42, 0.06) !important;
    box-sizing: border-box !important;
    animation: blazored-toast-in 0.25s ease-out !important;
    overflow: hidden !important;
    pointer-events: auto !important;
}


/* ---------------------------------------------------------
   SUCCESS
   --------------------------------------------------------- */

.blazored-toast-success {
    border-top: 3px solid #16b364 !important;
    position: relative;
}


/* ---------------------------------------------------------
   ERROR
   --------------------------------------------------------- */

.blazored-toast-error {
    border-top: 3px solid #dc2626 !important;
    position: relative;
}


/* ---------------------------------------------------------
   WARNING
   --------------------------------------------------------- */

.blazored-toast-warning {
    border-top: 3px solid #eab308 !important;
    position: relative;
}


/* ---------------------------------------------------------
   INFO
   --------------------------------------------------------- */

.blazored-toast-info {
    border-top: 3px solid #2563eb !important;
    position: relative;
}


/* =========================================================
   ICON
   ========================================================= */

.blazored-toast .blazored-toast-icon {
    grid-column: 1 !important;
    grid-row: 1 !important;
    position: static !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    font-size: 17px !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
}


/* ---------------------------------------------------------
   SUCCESS ICON
   --------------------------------------------------------- */

.blazored-toast-success .blazored-toast-icon {
    background: #dcfce7 !important;
    color: #12b76a !important;
}


/* ---------------------------------------------------------
   ERROR ICON
   --------------------------------------------------------- */

.blazored-toast-error .blazored-toast-icon {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}


/* ---------------------------------------------------------
   WARNING ICON
   --------------------------------------------------------- */

.blazored-toast-warning .blazored-toast-icon {
    background: #fef3c7 !important;
    color: #d97706 !important;
}


/* ---------------------------------------------------------
   INFO ICON
   --------------------------------------------------------- */

.blazored-toast-info .blazored-toast-icon {
    background: #dbeafe !important;
    color: #2563eb !important;
}


/* Font Awesome element */

.blazored-toast .blazored-toast-icon i {
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 1 !important;
}


/* =========================================================
   TOAST BODY
   ========================================================= */

.blazored-toast .blazored-toast-body {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 34px 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    box-sizing: border-box !important;
}


/* =========================================================
   HIDE SUCCESS / ERROR / WARNING / INFO HEADING
   ========================================================= */

.blazored-toast .blazored-toast-heading {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================================
   MESSAGE
   ========================================================= */

.blazored-toast .blazored-toast-message {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #344054 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 20px !important;
    text-align: left !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    box-sizing: border-box !important;
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.blazored-toast .blazored-toast-close {
    grid-column: 3 !important;
    grid-row: 1 !important;
    position: static !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    justify-self: center !important;
    background: transparent !important;
    border: none !important;
    border-radius: 9999px !important;
    outline: none !important;
    color: #94A3B8 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
    transform: none !important;
    box-shadow: none !important;
}


/* ---------------------------------------------------------
   CLOSE ICON
   --------------------------------------------------------- */

.blazored-toast .blazored-toast-close-icon {
    position: static !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #94A3B8 !important;
    line-height: 1 !important;
    transition: color 0.15s ease !important;
}


    /* SVG inside close icon */

    .blazored-toast .blazored-toast-close-icon svg {
        display: block !important;
        width: 18px !important;
        height: 18px !important;
        margin: 0 !important;
        padding: 0 !important;
        fill: currentColor !important;
    }


/* ---------------------------------------------------------
   CLOSE HOVER
   --------------------------------------------------------- */

.blazored-toast .blazored-toast-close:hover {
    background: #F1F5F9 !important;
    color: #0F172A !important;
    transform: none !important;
    box-shadow: none !important;
}

.blazored-toast .blazored-toast-close:hover .blazored-toast-close-icon {
    color: #0F172A !important;
}

.blazored-toast .blazored-toast-close:active {
    transform: none !important;
    box-shadow: none !important;
}


/* ---------------------------------------------------------
   CLOSE FOCUS
   --------------------------------------------------------- */

.blazored-toast .blazored-toast-close:focus {
    outline: none !important;
    background: transparent !important;
}


/* =========================================================
   PROGRESS BAR
   ========================================================= */

.blazored-toast .blazored-toast-progressbar {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 3px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}


    /* Progress */

    .blazored-toast .blazored-toast-progressbar > span {
        position: absolute !important;
        left: 0 !important;
        bottom: 0 !important;
        height: 3px !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        transition: all 0.1s linear !important;
    }

/*    header*/
.blazored-toast-header {
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 26px !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* =========================================================
   ANIMATION
   ========================================================= */
@keyframes blazored-toast-in {

    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.locations-page .locations-search-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    padding: 14px 20px;
    box-sizing: border-box;
    border-bottom: 1px solid #f0f0f0;
}

    .locations-page .locations-search-row > * {
        width: 220px;
    }

.col-description {
    display: inline-block;
    max-width: 320px;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    vertical-align: middle;
}

/* =========================================================
   LOCK BACKGROUND SCROLL WHEN A DIALOG / MODAL IS OPEN
   Applies project-wide. Pure CSS via :has() — no JS needed.
   When any dialog overlay (or a shown Bootstrap modal) is
   present in the DOM, the page behind it can no longer scroll.
   ========================================================= */
html:has(.dialog-overlay),
html:has(.hph-dialog-overlay),
html:has(.modal.show),
html:has(.modal.d-block),
body:has(.dialog-overlay),
body:has(.hph-dialog-overlay),
body:has(.modal.show),
body:has(.modal.d-block) {
    overflow: hidden !important;
}

/* =========================================================
   GLOBAL RADZEN DROPDOWN & CLEAR BUTTON UNIFIED THEME
   Ensures all Radzen dropdowns across the entire application
   share an identical, polished theme with a clean clear button
   that properly appears on value selection and hides on clear.
   ========================================================= */
:root {
    --rz-input-background-color: #ffffff;
    --rz-dropdown-background-color: #ffffff;
}

.rz-dropdown,
.rz-dropdown.rz-state-default,
.rz-dropdown.rz-state-focused,
.rz-dropdown:hover,
.rz-dropdown-panel,
.rz-dropdown-items,
.rz-dropdown-filter-container,
.rz-dropdown-filter,
.dialog-input,
.dialog-dropdown,
.filter-select-radzen,
.arm-radzen-dropdown,
.cpmr-radzen-dropdown,
.scpmr-select-radzen,
.emu-filter-select-radzen {
    background-color: #ffffff !important;
}

.rz-dropdown {
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    outline: none !important;
    position: relative !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

/* Ensure label container vertically centers the label and stretches width */
.rz-dropdown .rz-dropdown-label-container {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
}

.rz-dropdown .rz-dropdown-label {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 12px !important;
    padding-right: 28px !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    line-height: normal !important;
    text-align: left !important;
    margin: 0 !important;
    border: none !important;
}

/* When clear icon is active / value is selected, leave room for clear button */
.rz-dropdown:has(.rz-dropdown-clear-icon):not(:has(.rz-placeholder)) .rz-dropdown-label,
.rz-dropdown:has(.rz-clear-icon):not(:has(.rz-placeholder)) .rz-dropdown-label,
.rz-dropdown .rz-dropdown-label:not(.rz-placeholder) {
    padding-right: 52px !important;
}

.rz-dropdown .rz-dropdown-label.rz-placeholder,
.rz-dropdown:has(.rz-placeholder) .rz-dropdown-label {
    padding-right: 28px !important;
}

/* Chevron Trigger Styling */
.rz-dropdown .rz-dropdown-trigger {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 16px !important;
    height: 16px !important;
    color: #4b5563 !important;
    pointer-events: none !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

.rz-dropdown .rz-dropdown-trigger .rz-dropdown-icon {
    font-size: 11px !important;
    color: #4b5563 !important;
    font-family: 'rzi' !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Global Radzen Dropdown Clear Icon (Geometrically centered SVG cross) */
.rz-dropdown .rz-dropdown-clear-icon,
.rz-dropdown .rz-clear-icon {
    position: absolute !important;
    right: 30px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 0 !important;
    color: transparent !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 10 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 16px !important;
    height: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 12px 12px !important;
    transition: opacity 0.15s ease !important;
}

/* Never show clear icon on placeholder */
.rz-dropdown:has(.rz-placeholder) .rz-dropdown-clear-icon,
.rz-dropdown:has(.rz-placeholder) .rz-clear-icon {
    display: none !important;
}

.rz-dropdown .rz-dropdown-clear-icon::before,
.rz-dropdown .rz-clear-icon::before {
    display: none !important;
    content: "" !important;
}

.rz-dropdown .rz-dropdown-clear-icon:hover,
.rz-dropdown .rz-clear-icon:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E") !important;
    opacity: 1 !important;
}

/* Dropdown Panel Popup Styling */
.rz-dropdown-panel {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1) !important;
    z-index: 10001 !important;
}

.rz-dropdown-filter-container {
    background-color: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 8px 10px !important;
}

.rz-dropdown-filter-container .rz-dropdown-filter {
    background-color: #ffffff !important;
    border: 1px solid #d9e0e7 !important;
    border-radius: 6px !important;
    height: 34px !important;
    padding: 0 10px 0 30px !important;
    font-size: 12.5px !important;
    color: #1f2937 !important;
}

.rz-dropdown-filter-container .rz-dropdown-filter:focus {
    border-color: #9CA3AF !important;
    box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.2) !important;
    outline: none !important;
}

.rz-dropdown-item {
    background-color: #ffffff !important;
    color: #374151 !important;
    font-size: 13px !important;
    padding: 8px 14px !important;
    transition: background-color 0.15s ease;
}

.rz-dropdown-item:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

.rz-dropdown-item.rz-state-highlight {
    background-color: #EEF0FF !important;
    color: #0405AB !important;
    font-weight: 600 !important;
}



/* Remove number input spinner/stepper */
.cpmr-input::-webkit-inner-spin-button,
.cpmr-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cpmr-input {
    -moz-appearance: textfield;
}

/* ==========================================================================
   Universal Form Input Focus Styling (Visible Grey focus across Santej & Hajipur)
   ========================================================================== */
input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="file"]):focus:not(.invalid):not(.is-invalid):not([readonly]),
select:focus:not(.invalid):not(.is-invalid),
textarea:focus:not(.invalid):not(.is-invalid):not([readonly]),
.form-control:focus:not(.invalid):not(.is-invalid),
.form-select:focus:not(.invalid):not(.is-invalid),
.rz-dropdown:focus:not(.invalid):not(.is-invalid):not(.rz-state-disabled),
.rz-dropdown.rz-state-focused:not(.invalid):not(.is-invalid):not(.rz-state-disabled),
.rz-dropdown:focus-within:not(.invalid):not(.is-invalid):not(.rz-state-disabled) {
    border-color: #9CA3AF !important;
    box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.2) !important;
    outline: none !important;
}


/* ==========================================================================
   Disabled / Read-only Input — hide blinking text caret
   The blinking I-beam cursor inside disabled or readonly inputs gives the
   impression the field is editable. Setting caret-color: transparent removes
   it while leaving the arrow cursor and the visible value intact.
   ========================================================================== */
input:disabled,
input[disabled],
input[readonly],
input:read-only,
textarea:disabled,
textarea[disabled],
textarea[readonly],
textarea:read-only {
    cursor: default !important;
    caret-color: transparent !important;
}

/* =========================================================
   Hide Microsoft Edge's built-in password reveal (eye) and clear (x)
   buttons. The app shows its own show/hide eye icon on password
   fields, so Edge's icon appeared as a duplicate next to it.
   Applies to every password input (Login, Set Up / Reset Password).
   ========================================================= */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

/* =========================================================
   GLOBAL BUTTON SYSTEM - ANIMATIONS & TACTILE INTERACTIONS
   Ensures buttons across all pages, masters, dialogs, and PMR
   screens feature smooth micro-animations:
   - Dynamic elevation lift on hover (-2px)
   - Luminous light shimmer sweep on solid primary buttons
   - Tactile active press click feedback
   - Icon micro-animations (rotations, zooms, and nudges)
   ========================================================= */
button,
input[type="button"],
input[type="submit"],
.btn {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Base transitions on all interactive action buttons */
button,
input[type="button"],
input[type="submit"],
.btn {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.2s ease !important;
}

/* Luminous shimmer sweep wave on hover for solid action buttons */
.add-customer-btn,
.user-create-btn,
.role-add-btn,
.ip-add-btn,
.locations-add-btn,
.pmr-btn-create,
.hajipur-create-btn,
.dialog-submit-btn,
.spdv-btn-black,
.spdv-btn-red,
.hpdv-submit-btn,
.auth-btn-primary,
.settings-save-btn,
.dialog-delete-submit-btn,
.cpmr-btn-submit,
.scpmr-btn-submit,
.santej-create-pmr-submit-btn,
.arm-btn-submit,
.lab-btn-submit-action,
.prod-btn-submit-action,
.prod-btn-submit-admin,
.spmrd-btn-submit-admin,
.spmrd-btn-approve,
.idm-btn-import,
.cpsd-btn-submit,
.production-btn-submit,
.hph-confirm-okay-btn,
.hph-dialog-submit-btn,
.hph-dialog-submit-pmr-btn,
.hph-btn-black,
.hph-btn-black-upload,
.hph-btn-blue-marketing,
.cwpl-btn-primary,
.rpt-generate-btn,
.hdo-btn-approved,
.hmd-btn-approved,
.hmd-btn-submit-prod,
.hdud-btn-completed,
.hpud-btn-submit,
.btn-primary,
.su-btn-submit,
.hud-btn-submit,
.emu-btn-submit,
.email-mkt-submit-btn,
.rp-save-btn {
    position: relative;
    overflow: hidden;
}

.add-customer-btn::after,
.user-create-btn::after,
.role-add-btn::after,
.ip-add-btn::after,
.locations-add-btn::after,
.pmr-btn-create::after,
.hajipur-create-btn::after,
.dialog-submit-btn::after,
.spdv-btn-black::after,
.spdv-btn-red::after,
.hpdv-submit-btn::after,
.auth-btn-primary::after,
.settings-save-btn::after,
.dialog-delete-submit-btn::after,
.cpmr-btn-submit::after,
.scpmr-btn-submit::after,
.santej-create-pmr-submit-btn::after,
.arm-btn-submit::after,
.lab-btn-submit-action::after,
.prod-btn-submit-action::after,
.prod-btn-submit-admin::after,
.spmrd-btn-submit-admin::after,
.spmrd-btn-approve::after,
.idm-btn-import::after,
.cpsd-btn-submit::after,
.production-btn-submit::after,
.hph-confirm-okay-btn::after,
.hph-dialog-submit-btn::after,
.hph-dialog-submit-pmr-btn::after,
.hph-btn-black::after,
.hph-btn-black-upload::after,
.hph-btn-blue-marketing::after,
.cwpl-btn-primary::after,
.rpt-generate-btn::after,
.hdo-btn-approved::after,
.hmd-btn-approved::after,
.hmd-btn-submit-prod::after,
.hdud-btn-completed::after,
.hpud-btn-submit::after,
.btn-primary::after,
.su-btn-submit::after,
.hud-btn-submit::after,
.emu-btn-submit::after,
.email-mkt-submit-btn::after,
.rp-save-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.24) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    pointer-events: none;
    transition: none;
}

.add-customer-btn:hover:not(:disabled)::after,
.user-create-btn:hover:not(:disabled)::after,
.role-add-btn:hover:not(:disabled)::after,
.ip-add-btn:hover:not(:disabled)::after,
.locations-add-btn:hover:not(:disabled)::after,
.pmr-btn-create:hover:not(:disabled)::after,
.hajipur-create-btn:hover:not(:disabled)::after,
.dialog-submit-btn:hover:not(:disabled)::after,
.spdv-btn-black:hover:not(:disabled)::after,
.spdv-btn-red:hover:not(:disabled)::after,
.hpdv-submit-btn:hover:not(:disabled)::after,
.auth-btn-primary:hover:not(:disabled)::after,
.settings-save-btn:hover:not(:disabled)::after,
.dialog-delete-submit-btn:hover:not(:disabled)::after,
.cpmr-btn-submit:hover:not(:disabled)::after,
.scpmr-btn-submit:hover:not(:disabled)::after,
.santej-create-pmr-submit-btn:hover:not(:disabled)::after,
.arm-btn-submit:hover:not(:disabled)::after,
.lab-btn-submit-action:hover:not(:disabled)::after,
.prod-btn-submit-action:hover:not(:disabled)::after,
.prod-btn-submit-admin:hover:not(:disabled)::after,
.spmrd-btn-submit-admin:hover:not(:disabled)::after,
.spmrd-btn-approve:hover:not(:disabled)::after,
.idm-btn-import:hover:not(:disabled)::after,
.cpsd-btn-submit:hover:not(:disabled)::after,
.production-btn-submit:hover:not(:disabled)::after,
.hph-confirm-okay-btn:hover:not(:disabled)::after,
.hph-dialog-submit-btn:hover:not(:disabled)::after,
.hph-dialog-submit-pmr-btn:hover:not(:disabled)::after,
.hph-btn-black:hover:not(:disabled)::after,
.hph-btn-black-upload:hover:not(:disabled)::after,
.hph-btn-blue-marketing:hover:not(:disabled)::after,
.cwpl-btn-primary:hover:not(:disabled)::after,
.rpt-generate-btn:hover:not(:disabled)::after,
.hdo-btn-approved:hover:not(:disabled)::after,
.hmd-btn-approved:hover:not(:disabled)::after,
.hmd-btn-submit-prod:hover:not(:disabled)::after,
.hdud-btn-completed:hover:not(:disabled)::after,
.hpud-btn-submit:hover:not(:disabled)::after,
.btn-primary:hover:not(:disabled)::after,
.su-btn-submit:hover:not(:disabled)::after,
.hud-btn-submit:hover:not(:disabled)::after,
.emu-btn-submit:hover:not(:disabled)::after,
.email-mkt-submit-btn:hover:not(:disabled)::after,
.rp-save-btn:hover:not(:disabled)::after {
    left: 160%;
    transition: left 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dynamic elevation lift on hover for all buttons across the project */
button:not(:disabled):not(.action-view-btn):not(.action-delete-btn):not(.action-edit-btn):not(.user-icon-btn):not(.role-icon-btn):not(.ip-icon-btn):not(.loc-icon-btn):not(.hpmr-view-btn):not(.ph-action-icon-btn):not(.scpmr-btn-delete):not(.spdv-btn-delete):not(.spdv-pencil-btn):not(.lab-btn-trash):not(.arm-btn-delete-mat):not(.cpmr-btn-delete-mat):not(.hph-up-file-delete-btn):not(.dialog-close-btn):not(.hpmr-dialog-close-btn):not(.hrrd-close-btn):not(.hdud-close-btn):not(.hud-close-btn):not(.cpmr-dialog-close):not(.emu-dialog-close-btn):not(.hmpd-close-btn):not(.su-dialog-close-btn):not(.hph-dialog-close-btn):not(.hph-confirm-close-btn):not(.hnd-close-btn):not(.hdpfd-close-btn):not(.hdpd-close-btn):not(.hpud-close-btn):not(.fim-close-btn):not(.cdd-close-btn):not(.idm-close-btn):not(.spdd-close-btn):not(.cpsd-close-btn):not(.srd-close-btn):not(.ph-dialog-close-btn):not(.production-confirm-close):not(.notification-close-btn):hover,
input[type="button"]:not(:disabled):hover,
input[type="submit"]:not(:disabled):hover,
.btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.16), 0 2px 6px -1px rgba(0, 0, 0, 0.08);
}

/* Distinct hover glows for special action types */
.dialog-delete-submit-btn:hover:not(:disabled),
.spdv-btn-red:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px -1px rgba(220, 38, 38, 0.42) !important;
}

.spdv-btn-black:hover:not(:disabled),
.pmr-btn-email:hover:not(:disabled),
.hmu-email-btn:hover:not(:disabled),
.auth-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px -1px rgba(24, 24, 27, 0.35) !important;
}

.dialog-cancel-btn:hover:not(:disabled),
.spdv-btn-white:hover:not(:disabled),
.import-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
}

/* Tactile active click press feedback on all buttons */
button:not(:disabled):not(.action-view-btn):not(.action-delete-btn):not(.action-edit-btn):not(.user-icon-btn):not(.role-icon-btn):not(.ip-icon-btn):not(.loc-icon-btn):not(.hpmr-view-btn):not(.ph-action-icon-btn):not(.scpmr-btn-delete):not(.spdv-btn-delete):not(.spdv-pencil-btn):not(.lab-btn-trash):not(.arm-btn-delete-mat):not(.cpmr-btn-delete-mat):not(.hph-up-file-delete-btn):not(.dialog-close-btn):not(.hpmr-dialog-close-btn):not(.hrrd-close-btn):not(.hdud-close-btn):not(.hud-close-btn):not(.cpmr-dialog-close):not(.emu-dialog-close-btn):not(.hmpd-close-btn):not(.su-dialog-close-btn):not(.hph-dialog-close-btn):not(.hph-confirm-close-btn):not(.hnd-close-btn):not(.hdpfd-close-btn):not(.hdpd-close-btn):not(.hpud-close-btn):not(.fim-close-btn):not(.cdd-close-btn):not(.idm-close-btn):not(.spdd-close-btn):not(.cpsd-close-btn):not(.srd-close-btn):not(.ph-dialog-close-btn):not(.production-confirm-close):not(.notification-close-btn):active,
input[type="button"]:not(:disabled):active,
input[type="submit"]:not(:disabled):active,
.btn:not(:disabled):active {
    transform: translateY(1px) scale(0.985);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: transform 0.08s ease !important;
}

/* Table Icon Buttons Micro-Animations (32x32 / compact) */
.action-view-btn,
.action-delete-btn,
.action-edit-btn,
.user-icon-btn,
.role-icon-btn,
.ip-icon-btn,
.loc-icon-btn,
.hpmr-view-btn,
.hajipur-prod-view-btn,
.hmu-action-view-btn,
.hpd-action-view-btn,
.hpu-eye-btn,
.ph-action-icon-btn,
.scpmr-btn-delete,
.spdv-btn-delete,
.spdv-pencil-btn,
.lab-btn-trash,
.arm-btn-delete-mat,
.cpmr-btn-delete-mat,
.hph-up-file-delete-btn,
.hpdv-edit-btn,
.hpdv-icon-btn,
.cpmr-icon-btn,
.cpmr-chevron-btn,
.arm-icon-btn,
.spdv-icon-btn {
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.18s ease, transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.action-view-btn svg,
.action-delete-btn svg,
.action-edit-btn svg,
.user-icon-btn svg,
.role-icon-btn svg,
.ip-icon-btn svg,
.loc-icon-btn svg,
.hpmr-view-btn svg,
.hajipur-prod-view-btn svg,
.hmu-action-view-btn svg,
.hpd-action-view-btn svg,
.hpu-eye-btn svg,
.ph-action-icon-btn svg,
.scpmr-btn-delete svg,
.spdv-btn-delete svg,
.spdv-pencil-btn svg,
.lab-btn-trash svg,
.arm-btn-delete-mat svg,
.cpmr-btn-delete-mat svg,
.hph-up-file-delete-btn svg,
.hpdv-edit-btn svg,
.hpdv-icon-btn svg,
.cpmr-icon-btn svg,
.arm-icon-btn svg,
.spdv-icon-btn svg {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.15s ease, opacity 0.15s ease;
}

.action-view-btn:hover:not(:disabled),
.hpmr-view-btn:hover:not(:disabled),
.hajipur-prod-view-btn:hover:not(:disabled),
.hmu-action-view-btn:hover:not(:disabled),
.hpd-action-view-btn:hover:not(:disabled),
.hpu-eye-btn:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.05) !important;
}
.action-view-btn:hover:not(:disabled) svg,
.hpmr-view-btn:hover:not(:disabled) svg,
.hajipur-prod-view-btn:hover:not(:disabled) svg,
.hmu-action-view-btn:hover:not(:disabled) svg,
.hpd-action-view-btn:hover:not(:disabled) svg,
.hpu-eye-btn:hover:not(:disabled) svg {
    transform: scale(1.18);
}

.action-edit-btn:hover:not(:disabled),
.user-icon-btn.edit:hover:not(:disabled),
.role-icon-btn.edit:hover:not(:disabled),
.ip-icon-btn.edit:hover:not(:disabled),
.loc-icon-btn.edit:hover:not(:disabled),
.spdv-pencil-btn:hover:not(:disabled),
.hpdv-edit-btn:hover:not(:disabled),
.ph-action-icon-btn.edit-btn:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.05) !important;
}
.action-edit-btn:hover:not(:disabled) svg,
.user-icon-btn.edit:hover:not(:disabled) svg,
.role-icon-btn.edit:hover:not(:disabled) svg,
.ip-icon-btn.edit:hover:not(:disabled) svg,
.loc-icon-btn.edit:hover:not(:disabled) svg,
.spdv-pencil-btn:hover:not(:disabled) svg,
.hpdv-edit-btn:hover:not(:disabled) svg,
.ph-action-icon-btn.edit-btn:hover:not(:disabled) svg {
    transform: rotate(-14deg) scale(1.15);
}

.action-delete-btn:hover:not(:disabled),
.user-icon-btn.delete:hover:not(:disabled),
.role-icon-btn.delete:hover:not(:disabled),
.ip-icon-btn.delete:hover:not(:disabled),
.loc-icon-btn.delete:hover:not(:disabled),
.scpmr-btn-delete:hover:not(:disabled),
.spdv-btn-delete:hover:not(:disabled),
.lab-btn-trash:hover:not(:disabled),
.arm-btn-delete-mat:hover:not(:disabled),
.cpmr-btn-delete-mat:hover:not(:disabled),
.hph-up-file-delete-btn:hover:not(:disabled),
.ph-action-icon-btn.delete-btn:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.05) !important;
}
.action-delete-btn:hover:not(:disabled) svg,
.user-icon-btn.delete:hover:not(:disabled) svg,
.role-icon-btn.delete:hover:not(:disabled) svg,
.ip-icon-btn.delete:hover:not(:disabled) svg,
.loc-icon-btn.delete:hover:not(:disabled) svg,
.scpmr-btn-delete:hover:not(:disabled) svg,
.spdv-btn-delete:hover:not(:disabled) svg,
.lab-btn-trash:hover:not(:disabled) svg,
.arm-btn-delete-mat:hover:not(:disabled) svg,
.cpmr-btn-delete-mat:hover:not(:disabled) svg,
.hph-up-file-delete-btn:hover:not(:disabled) svg,
.ph-action-icon-btn.delete-btn:hover:not(:disabled) svg {
    transform: scale(1.18);
}

.action-view-btn:active:not(:disabled),
.action-edit-btn:active:not(:disabled),
.action-delete-btn:active:not(:disabled),
.user-icon-btn:active:not(:disabled),
.role-icon-btn:active:not(:disabled),
.ip-icon-btn:active:not(:disabled),
.loc-icon-btn:active:not(:disabled),
.hpmr-view-btn:active:not(:disabled),
.hajipur-prod-view-btn:active:not(:disabled),
.hmu-action-view-btn:active:not(:disabled),
.hpd-action-view-btn:active:not(:disabled),
.hpu-eye-btn:active:not(:disabled),
.ph-action-icon-btn:active:not(:disabled),
.scpmr-btn-delete:active:not(:disabled),
.spdv-btn-delete:active:not(:disabled),
.spdv-pencil-btn:active:not(:disabled),
.lab-btn-trash:active:not(:disabled),
.arm-btn-delete-mat:active:not(:disabled),
.cpmr-btn-delete-mat:active:not(:disabled),
.hph-up-file-delete-btn:active:not(:disabled),
.hpdv-edit-btn:active:not(:disabled),
.hpdv-icon-btn:active:not(:disabled),
.cpmr-icon-btn:active:not(:disabled),
.cpmr-chevron-btn:active:not(:disabled),
.arm-icon-btn:active:not(:disabled),
.spdv-icon-btn:active:not(:disabled) {
    transform: translateY(0) scale(0.95) !important;
    box-shadow: none !important;
}

/* Filter Clear Button: Smooth 90-degree rotate animation */
.pmr-filter-clear-btn svg {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.pmr-filter-clear-btn:hover svg {
    transform: rotate(90deg) scale(1.1);
}

/* Dialog Close Button: 90-degree rotate animation across all dialogs */
.dialog-close-btn,
.hpmr-dialog-close-btn,
.hrrd-close-btn,
.hdud-close-btn,
.hud-close-btn,
.cpmr-dialog-close,
.emu-dialog-close-btn,
.hmpd-close-btn,
.su-dialog-close-btn,
.hph-dialog-close-btn,
.hph-confirm-close-btn,
.hnd-close-btn,
.hdpfd-close-btn,
.hdpd-close-btn,
.hpud-close-btn,
.fim-close-btn,
.cdd-close-btn,
.idm-close-btn,
.spdd-close-btn,
.cpsd-close-btn,
.srd-close-btn,
.ph-dialog-close-btn,
.production-confirm-close,
.notification-close-btn,
.dialog-header > button:not(.btn) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform-origin: center center !important;
    transition: color 0.15s ease, background-color 0.15s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.dialog-close-btn:hover,
.hpmr-dialog-close-btn:hover,
.hrrd-close-btn:hover,
.hdud-close-btn:hover,
.hud-close-btn:hover,
.cpmr-dialog-close:hover,
.emu-dialog-close-btn:hover,
.hmpd-close-btn:hover,
.su-dialog-close-btn:hover,
.hph-dialog-close-btn:hover,
.hph-confirm-close-btn:hover,
.hnd-close-btn:hover,
.hdpfd-close-btn:hover,
.hdpd-close-btn:hover,
.hpud-close-btn:hover,
.fim-close-btn:hover,
.cdd-close-btn:hover,
.idm-close-btn:hover,
.spdd-close-btn:hover,
.cpsd-close-btn:hover,
.srd-close-btn:hover,
.ph-dialog-close-btn:hover,
.production-confirm-close:hover,
.notification-close-btn:hover,
.dialog-header > button:not(.btn):hover {
    transform: rotate(90deg) scale(1.15) !important;
}

.dialog-close-btn:active,
.hpmr-dialog-close-btn:active,
.hrrd-close-btn:active,
.hdud-close-btn:active,
.hud-close-btn:active,
.cpmr-dialog-close:active,
.emu-dialog-close-btn:active,
.hmpd-close-btn:active,
.su-dialog-close-btn:active,
.hph-dialog-close-btn:active,
.hph-confirm-close-btn:active,
.hnd-close-btn:active,
.hdpfd-close-btn:active,
.hdpd-close-btn:active,
.hpud-close-btn:active,
.fim-close-btn:active,
.cdd-close-btn:active,
.idm-close-btn:active,
.spdd-close-btn:active,
.cpsd-close-btn:active,
.srd-close-btn:active,
.ph-dialog-close-btn:active,
.production-confirm-close:active,
.notification-close-btn:active,
.dialog-header > button:not(.btn):active {
    transform: rotate(90deg) scale(0.95) !important;
}

/* Universal clean focus ring */
button:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible,
.btn:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.25) !important;
}

/* Universal disabled state */
button:disabled,
button.disabled,
.btn:disabled,
.btn.disabled {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* ==========================================================================
   MODAL DIALOGS & OVERLAYS: GLASSMORPHIC BLUR & FOOTER STANDARDIZATION
   ========================================================================== */

/* Glassmorphic Backdrop Blur for all Dialog Overlays */
.dialog-overlay,
.hph-dialog-overlay,
.production-confirm-overlay,
.cpmr-dialog-overlay,
.hpmr-dialog-overlay,
.hrrd-overlay,
.hnd-overlay,
.ph-dialog-overlay,
.cdd-overlay,
.idm-overlay,
.fim-overlay,
.spdd-overlay,
.cpsd-overlay,
.srd-overlay,
.custom-modal,
.modal-backdrop {
    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
}

/* Modal Action Footers Standardization:
   Secondary / Cancel button is always on the left/first,
   and Primary Action button is on the right/second */
.dialog-footer,
.dialog-delete-footer,
.hph-dialog-footer,
.prod-dialog-footer,
.idm-footer,
.fim-footer,
.hud-footer,
.hdud-footer,
.hdpd-footer,
.hdpfd-footer,
.emu-dialog-footer,
.su-dialog-footer,
.cpmr-dialog-actions,
.cpsd-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px;
}

/* ==========================================================================
   EDIT BUTTON HOVER COLOR THEMES:
   - Hajipur: Blue (#0405AB / #EEF0FF)
   - Santej: Red (#FF0000 / #FFE5E5)
   ========================================================================== */

/* Universal fallback based on active location CSS variables */
.action-edit-btn:hover:not(:disabled),
.user-icon-btn.edit:hover:not(:disabled),
.role-icon-btn.edit:hover:not(:disabled),
.ip-icon-btn.edit:hover:not(:disabled),
.loc-icon-btn.edit:hover:not(:disabled) {
    background-color: var(--primary-bg, #FFE5E5);
    border-color: var(--primary-color, #FF0000);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.action-edit-btn:hover:not(:disabled) svg,
.user-icon-btn.edit:hover:not(:disabled) svg,
.role-icon-btn.edit:hover:not(:disabled) svg,
.ip-icon-btn.edit:hover:not(:disabled) svg,
.loc-icon-btn.edit:hover:not(:disabled) svg {
    stroke: var(--primary-color, #FF0000) !important;
}

/* Explicit Hajipur Edit Button Hover (Blue: #0405AB) */
.cross-section-table .action-edit-btn:hover:not(:disabled),
.denier-table .action-edit-btn:hover:not(:disabled),
.filament-table .action-edit-btn:hover:not(:disabled),
.lustre-table .action-edit-btn:hover:not(:disabled),
.polymer-table .action-edit-btn:hover:not(:disabled),
.twist-table .action-edit-btn:hover:not(:disabled),
.x-section-table .action-edit-btn:hover:not(:disabled),
.yarn-structure-table .action-edit-btn:hover:not(:disabled),
.hajipur-pmr-container .action-edit-btn:hover:not(:disabled),
.hpmr-container .action-edit-btn:hover:not(:disabled),
.hpmr-table .action-edit-btn:hover:not(:disabled),
.hph-table .action-edit-btn:hover:not(:disabled),
.ph-action-icon-btn.edit-btn:hover:not(:disabled) {
    background-color: #EEF0FF !important;
    border-color: #0405AB !important;
    box-shadow: 0 2px 6px rgba(4, 5, 171, 0.18) !important;
}

.cross-section-table .action-edit-btn:hover:not(:disabled) svg,
.denier-table .action-edit-btn:hover:not(:disabled) svg,
.filament-table .action-edit-btn:hover:not(:disabled) svg,
.lustre-table .action-edit-btn:hover:not(:disabled) svg,
.polymer-table .action-edit-btn:hover:not(:disabled) svg,
.twist-table .action-edit-btn:hover:not(:disabled) svg,
.x-section-table .action-edit-btn:hover:not(:disabled) svg,
.yarn-structure-table .action-edit-btn:hover:not(:disabled) svg,
.hajipur-pmr-container .action-edit-btn:hover:not(:disabled) svg,
.hpmr-container .action-edit-btn:hover:not(:disabled) svg,
.hpmr-table .action-edit-btn:hover:not(:disabled) svg,
.hph-table .action-edit-btn:hover:not(:disabled) svg,
.ph-action-icon-btn.edit-btn:hover:not(:disabled) svg {
    stroke: #0405AB !important;
}

/* Explicit Santej Edit Button Hover (Red: #FF0000) */
.santej-pmr-container .action-edit-btn:hover:not(:disabled),
.spmr-table .action-edit-btn:hover:not(:disabled),
.user-icon-btn.edit:hover:not(:disabled),
.role-icon-btn.edit:hover:not(:disabled),
.ip-icon-btn.edit:hover:not(:disabled),
.loc-icon-btn.edit:hover:not(:disabled) {
    background-color: #FFE5E5 !important;
    border-color: #FF0000 !important;
    box-shadow: 0 2px 6px rgba(255, 0, 0, 0.18) !important;
}

.santej-pmr-container .action-edit-btn:hover:not(:disabled) svg,
.spmr-table .action-edit-btn:hover:not(:disabled) svg,
.user-icon-btn.edit:hover:not(:disabled) svg,
.role-icon-btn.edit:hover:not(:disabled) svg,
.ip-icon-btn.edit:hover:not(:disabled) svg,
.loc-icon-btn.edit:hover:not(:disabled) svg {
    stroke: #FF0000 !important;
}

/* ==========================================================================
   DATA TABLE POLISH, CARD WRAPPERS & INTERACTIVE ROW HOVER:
   - Table Card Container: border-radius 10px, border 1px solid #E2E8F0, soft shadow
   - Sticky Table Headers: sticky at top with clean separator
   - Santej Row Hover: #F8FAFC with 0.15s transition
   - Hajipur Row Hover: #F5F7FF with 0.15s transition
   ========================================================================== */

/* Universal Table Card Containers */
.masters-table-wrapper,
.pmr-table-wrapper,
.rpt-table-wrapper,
.hpmr-table-wrapper,
.hmu-table-wrapper,
.hpu-table-wrapper,
.hpd-table-wrapper,
.ph-master-table-card,
.user-card,
.role-card,
.ip-card,
.locations-card {
    background-color: #FFFFFF !important;
    border-radius: 10px !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden !important;
}

/* Unified Pagination Footer Divider */
.masters-pagination-row {
    border-top: 1px solid #E2E8F0 !important;
}

/* Universal Sticky Table Headers */
.masters-table th,
.pmr-table th,
.rpt-table th,
.user-table th,
.role-table th,
.ip-table th,
.locations-table th,
.hpmr-table th,
.hmu-table th,
.hpu-table th,
.hpd-table th,
.ph-master-table th,
.cross-section-table th,
.denier-table th,
.filament-table th,
.lustre-table th,
.polymer-table th,
.twist-table th,
.x-section-table th,
.yarn-structure-table th {
    position: sticky !important;
    top: 0 !important;
    z-index: 5 !important;
    background-color: #F8FAFC !important;
    border-bottom: none !important;
    box-shadow: inset 0 -1.5px 0 #E2E8F0 !important;
}

/* Clean Hairline Row Dividers Across All Tables */
.masters-table tbody td,
.pmr-table tbody td,
.rpt-table tbody td,
.user-table tbody td,
.role-table tbody td,
.ip-table tbody td,
.locations-table tbody td,
.hpmr-table tbody td,
.hmu-table tbody td,
.hpu-table tbody td,
.hpd-table tbody td,
.ph-master-table tbody td,
.cross-section-table tbody td,
.denier-table tbody td,
.filament-table tbody td,
.lustre-table tbody td,
.polymer-table tbody td,
.twist-table tbody td,
.x-section-table tbody td,
.yarn-structure-table tbody td {
    border-top: none !important;
    border-bottom: 1px solid #F1F5F9 !important;
}

.masters-table tbody tr:last-child td,
.pmr-table tbody tr:last-child td,
.rpt-table tbody tr:last-child td,
.user-table tbody tr:last-child td,
.role-table tbody tr:last-child td,
.ip-table tbody tr:last-child td,
.locations-table tbody tr:last-child td,
.hpmr-table tbody tr:last-child td,
.hmu-table tbody tr:last-child td,
.hpu-table tbody tr:last-child td,
.hpd-table tbody tr:last-child td,
.ph-master-table tbody tr:last-child td,
.cross-section-table tbody tr:last-child td,
.denier-table tbody tr:last-child td,
.filament-table tbody tr:last-child td,
.lustre-table tbody tr:last-child td,
.polymer-table tbody tr:last-child td,
.twist-table tbody tr:last-child td,
.x-section-table tbody tr:last-child td,
.yarn-structure-table tbody tr:last-child td {
    border-bottom: none !important;
}

/* Base Transition for Table Rows */
.masters-table tbody tr,
.pmr-table tbody tr,
.rpt-table tbody tr,
.user-table tbody tr,
.role-table tbody tr,
.ip-table tbody tr,
.locations-table tbody tr,
.hpmr-table tbody tr,
.hmu-table tbody tr,
.hpu-table tbody tr,
.hpd-table tbody tr,
.ph-master-table tbody tr,
.cross-section-table tbody tr,
.denier-table tbody tr,
.filament-table tbody tr,
.lustre-table tbody tr,
.polymer-table tbody tr,
.twist-table tbody tr,
.x-section-table tbody tr,
.yarn-structure-table tbody tr {
    transition: background-color 0.15s ease, box-shadow 0.15s ease !important;
}

/* Santej / General Table Row Hover Tint (#F8FAFC) + Brand Accent */
.masters-table tbody tr:hover:not(:has(.no-data)):not(:has(td[colspan])),
.pmr-table tbody tr:hover:not(:has(.no-data)):not(:has(td[colspan])),
.rpt-table tbody tr:hover:not(:has(.no-data)):not(:has(td[colspan])),
.user-table tbody tr:hover:not(:has(.no-data)):not(:has(td[colspan])),
.role-table tbody tr:hover:not(:has(.no-data)):not(:has(td[colspan])),
.ip-table tbody tr:hover:not(:has(.no-data)):not(:has(td[colspan])),
.locations-table tbody tr:hover:not(:has(.no-data)):not(:has(td[colspan])),
.santej-pmr-container table tbody tr:hover:not(:has(.no-data)):not(:has(td[colspan])) {
    background-color: #F8FAFC !important;
    box-shadow: inset 3px 0 0 var(--primary-color, #DC2626) !important;
}

/* Hajipur Table Row Hover Tint (#F5F7FF) + Brand Accent */
.hpmr-table tbody tr:hover:not(:has(.no-data)):not(:has(td[colspan])),
.hmu-table tbody tr:hover:not(:has(.no-data)):not(:has(td[colspan])),
.hpu-table tbody tr:hover:not(:has(.no-data)):not(:has(td[colspan])),
.hpd-table tbody tr:hover:not(:has(.no-data)):not(:has(td[colspan])),
.ph-master-table tbody tr:hover:not(:has(.no-data)):not(:has(td[colspan])),
.cross-section-table tbody tr:hover:not(:has(.no-data)):not(:has(td[colspan])),
.denier-table tbody tr:hover:not(:has(.no-data)):not(:has(td[colspan])),
.filament-table tbody tr:hover:not(:has(.no-data)):not(:has(td[colspan])),
.lustre-table tbody tr:hover:not(:has(.no-data)):not(:has(td[colspan])),
.polymer-table tbody tr:hover:not(:has(.no-data)):not(:has(td[colspan])),
.twist-table tbody tr:hover:not(:has(.no-data)):not(:has(td[colspan])),
.x-section-table tbody tr:hover:not(:has(.no-data)):not(:has(td[colspan])),
.yarn-structure-table tbody tr:hover:not(:has(.no-data)):not(:has(td[colspan])),
.hajipur-pmr-container table tbody tr:hover:not(:has(.no-data)):not(:has(td[colspan])) {
    background-color: #F5F7FF !important;
    box-shadow: inset 3px 0 0 var(--primary-color, #0405AB) !important;
}

/* ==========================================================================
   GLOBAL STATUS BADGE CONSISTENCY (ALL USERS, ALL SCREENS, BOTH BRANCHES)
   - Modern 6px squircle tag geometry
   - Uniform width (130px) for standard status badges
   - Crisp semi-bold typography & soft ambient drop
   ========================================================================== */
.status-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0 10px !important;
    border-radius: 6px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-style: normal !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    min-width: 130px !important;
    width: 130px !important;
    height: 26px !important;
    box-sizing: border-box !important;
    line-height: 24px !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    text-decoration: none !important;
    letter-spacing: 0.2px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease !important;
}

.status-badge:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06) !important;
    opacity: 0.95 !important;
}

/* Admin Status Badges (Active / Inactive) */
.user-status-badge,
.role-status-badge,
.ip-status-badge,
.loc-status-badge,
.masters-status-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 3px 10px !important;
    border-radius: 6px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
    height: 24px !important;
    box-sizing: border-box !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.user-status-badge:hover,
.role-status-badge:hover,
.ip-status-badge:hover,
.loc-status-badge:hover,
.masters-status-badge:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06) !important;
}

/* Lab & Dialog Status Badges */
.lab-status-badge,
.email-mkt-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0 10px !important;
    border-radius: 6px !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    min-width: 105px !important;
    width: 105px !important;
    height: 26px !important;
    box-sizing: border-box !important;
    line-height: 24px !important;
    white-space: nowrap !important;
    letter-spacing: 0.2px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.spdv-status-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 3px 10px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    height: 24px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    letter-spacing: 0.2px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

/* ==========================================================================
   UNIVERSAL LUXURY DIALOG SYSTEM (ALL ROLES, ALL BRANCHES, ALL PAGES)
   ========================================================================== */

/* Universal Frosted Glassmorphism for all Dialog Overlays */
.dialog-overlay,
.hph-dialog-overlay,
.production-confirm-overlay,
.cpmr-dialog-overlay,
.hpmr-dialog-overlay,
.hrrd-overlay,
.hnd-overlay,
.ph-dialog-overlay,
.cdd-overlay,
.idm-overlay,
.fim-overlay,
.spdd-overlay,
.cpsd-overlay,
.srd-overlay,
.custom-modal,
.modal-backdrop,
.rz-dialog-mask {
    background-color: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

/* Universal Dialog Card Structure: 14px radius, specular border, multi-layer shadow */
.dialog-card,
.hpmr-dialog-card,
.hph-dialog-card,
.hph-codification-card,
.hph-upload-po-card,
.hph-confirm-card,
.hph-confirm-codification-card,
.hmpd-card,
.hpud-card,
.hdpd-card,
.hdpfd-card,
.emu-dialog-card,
.hud-card,
.hdud-card,
.su-dialog-card,
.hrrd-card,
.hnd-card,
.ph-dialog-card,
.cdd-card,
.idm-card,
.fim-card,
.spdd-card,
.cpsd-card,
.srd-card,
.user-dialog-card,
.production-confirm-card,
.cpmr-dialog-card,
.dialog-delete-card,
.rz-dialog {
    border-radius: 14px !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(226, 232, 240, 0.85) !important;
    position: relative !important;
    overflow: hidden !important;
    background-color: #FFFFFF !important;
    border: none !important;
}

/* Universal Top Horizon Edge Crest Bar (Matches Header Horizon Line Exactly) */
.dialog-card::before,
.hpmr-dialog-card::before,
.hph-dialog-card::before,
.hph-codification-card::before,
.hph-upload-po-card::before,
.hph-confirm-card::before,
.hph-confirm-codification-card::before,
.hmpd-card::before,
.hpud-card::before,
.hdpd-card::before,
.hdpfd-card::before,
.emu-dialog-card::before,
.hud-card::before,
.hdud-card::before,
.su-dialog-card::before,
.hrrd-card::before,
.hnd-card::before,
.ph-dialog-card::before,
.cdd-card::before,
.idm-card::before,
.fim-card::before,
.spdd-card::before,
.cpsd-card::before,
.srd-card::before,
.user-dialog-card::before,
.production-confirm-card::before,
.cpmr-dialog-card::before,
.dialog-delete-card::before,
.hajipur-comment-dialog::before,
.santej-pmr-details-dialog::before,
.add-rate-card::before,
.change-rate-card::before,
.upload-doc-card::before,
.santej-create-pmr-dialog::before,
.email-marketing-dialog::before,
.hajipur-success-dialog::before,
.prod-pmr-details-dialog::before,
.prod-recommended-dialog::before,
.rz-dialog::before,
.dialog-overlay > div:first-child::before,
.hph-dialog-overlay > div:first-child::before,
.hpmr-dialog-overlay > div:first-child::before,
.production-confirm-overlay > div:first-child::before,
.cpmr-dialog-overlay > div:first-child::before,
.hrrd-overlay > div:first-child::before,
.hnd-overlay > div:first-child::before,
.ph-dialog-overlay > div:first-child::before,
.cdd-overlay > div:first-child::before,
.idm-overlay > div:first-child::before,
.fim-overlay > div:first-child::before,
.spdd-overlay > div:first-child::before,
.cpsd-overlay > div:first-child::before,
.srd-overlay > div:first-child::before,
.custom-modal > div:first-child::before {
    content: "" !important;
    display: block !important;
    height: 3px !important;
    width: 100% !important;
    background: var(--dialog-crest-gradient, linear-gradient(90deg, rgba(220, 38, 38, 0.85) 0%, rgba(220, 38, 38, 0.25) 30%, transparent 80%)) !important;
    flex-shrink: 0 !important;
}

/* Explicit Hajipur Branch Horizon Edge Line (Blue - matching Hajipur header) */
.branch-hajipur .dialog-card::before,
.branch-hajipur [class*="dialog-card"]::before,
.branch-hajipur .dialog-overlay > div:first-child::before,
.branch-hajipur [class*="-overlay"] > div:first-child::before,
[data-branch="hajipur"] .dialog-card::before,
[data-branch="hajipur"] [class*="dialog-card"]::before,
[data-branch="hajipur"] .dialog-overlay > div:first-child::before,
[data-branch="hajipur"] [class*="-overlay"] > div:first-child::before,
.hajipur-nav ~ * .dialog-card::before,
.hajipur-nav ~ * [class*="dialog-card"]::before,
.hajipur-nav ~ * .dialog-overlay > div:first-child::before,
.hajipur-nav ~ * [class*="-overlay"] > div:first-child::before,
body:has(.header-container.branch-hajipur) .dialog-card::before,
body:has(.hajipur-nav) .dialog-card::before,
body:has(.header-container.branch-hajipur) [class*="dialog-card"]::before,
body:has(.hajipur-nav) [class*="dialog-card"]::before,
body:has(.header-container.branch-hajipur) .dialog-overlay > div:first-child::before,
body:has(.hajipur-nav) .dialog-overlay > div:first-child::before,
body:has(.header-container.branch-hajipur) .hpmr-dialog-card::before,
body:has(.hajipur-nav) .hpmr-dialog-card::before,
body:has(.header-container.branch-hajipur) .hpmr-dialog-overlay > div:first-child::before,
body:has(.hajipur-nav) .hpmr-dialog-overlay > div:first-child::before,
body:has(.header-container.branch-hajipur) .hph-dialog-overlay > div:first-child::before,
body:has(.hajipur-nav) .hph-dialog-overlay > div:first-child::before,
.hpmr-dialog-card::before,
.hph-codification-card::before,
.hph-upload-po-card::before,
.hph-confirm-codification-card::before,
.hmpd-card::before,
.hpud-card::before,
.hdpd-card::before,
.hdpfd-card::before,
.hud-card::before,
.hdud-card::before,
.ph-dialog-card::before {
    background: linear-gradient(90deg, rgba(4, 5, 171, 0.85) 0%, rgba(4, 5, 171, 0.25) 30%, transparent 80%) !important;
}

/* Explicit Santej Branch Horizon Edge Line (Red - matching Santej header) */
.branch-santej .dialog-card::before,
.branch-santej [class*="dialog-card"]::before,
.branch-santej .dialog-overlay > div:first-child::before,
.branch-santej [class*="-overlay"] > div:first-child::before,
[data-branch="santej"] .dialog-card::before,
[data-branch="santej"] [class*="dialog-card"]::before,
[data-branch="santej"] .dialog-overlay > div:first-child::before,
[data-branch="santej"] [class*="-overlay"] > div:first-child::before,
.santej-nav ~ * .dialog-card::before,
.santej-nav ~ * [class*="dialog-card"]::before,
.santej-nav ~ * .dialog-overlay > div:first-child::before,
.santej-nav ~ * [class*="-overlay"] > div:first-child::before,
body:has(.header-container.branch-santej) .dialog-card::before,
body:has(.santej-nav) .dialog-card::before,
body:not(:has(.header-container.branch-hajipur)):not(:has(.hajipur-nav)) .dialog-card::before,
body:not(:has(.header-container.branch-hajipur)):not(:has(.hajipur-nav)) [class*="dialog-card"]::before,
body:not(:has(.header-container.branch-hajipur)):not(:has(.hajipur-nav)) .dialog-overlay > div:first-child::before,
body:not(:has(.header-container.branch-hajipur)):not(:has(.hajipur-nav)) [class*="-overlay"] > div:first-child::before,
.santej-pmr-details-dialog::before,
.santej-create-pmr-dialog::before,
.spdd-card::before,
.cpsd-card::before,
.srd-card::before {
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.85) 0%, rgba(220, 38, 38, 0.25) 30%, transparent 80%) !important;
}

/* Universal Dialog Header: #FAFCFF background, subtle bottom border */
.dialog-header,
.hpmr-dialog-header,
.hph-dialog-header,
.hmpd-header,
.hpud-header,
.hdpd-header,
.hdpfd-header,
.emu-dialog-header,
.hud-header,
.hdud-header,
.su-dialog-header,
.hrrd-header,
.hnd-header,
.ph-dialog-header,
.cdd-header,
.idm-header,
.fim-header,
.spdd-header,
.cpsd-header,
.srd-header,
.user-dialog-header,
.production-confirm-header,
.rz-dialog-titlebar {
    background-color: #FAFCFF !important;
    border-bottom: 1px solid #F1F5F9 !important;
    padding: 16px 24px !important;
}

/* Universal Rectangular Close Button Chip (32x32px rounded rectangle, subtle shadow) */
.dialog-close-btn,
.hpmr-dialog-close-btn,
.hph-dialog-close-btn,
.hph-confirm-close-btn,
.hmpd-close-btn,
.hpud-close-btn,
.hdpd-close-btn,
.hdpfd-close-btn,
.emu-dialog-close-btn,
.hud-close-btn,
.hdud-close-btn,
.su-dialog-close-btn,
.hrrd-close-btn,
.hnd-close-btn,
.ph-dialog-close-btn,
.cdd-close-btn,
.idm-close-btn,
.fim-close-btn,
.spdd-close-btn,
.cpsd-close-btn,
.srd-close-btn,
.cpmr-dialog-close,
.production-confirm-close,
.rz-dialog-titlebar-close {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    background-color: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    font-size: 18px !important;
    color: #64748B !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    outline: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Universal Close Button Hover: dynamically adopts active branch color */
.dialog-close-btn:hover,
.hpmr-dialog-close-btn:hover,
.hph-dialog-close-btn:hover,
.hph-confirm-close-btn:hover,
.hmpd-close-btn:hover,
.hpud-close-btn:hover,
.hdpd-close-btn:hover,
.hdpfd-close-btn:hover,
.emu-dialog-close-btn:hover,
.hud-close-btn:hover,
.hdud-close-btn:hover,
.su-dialog-close-btn:hover,
.hrrd-close-btn:hover,
.hnd-close-btn:hover,
.ph-dialog-close-btn:hover,
.cdd-close-btn:hover,
.idm-close-btn:hover,
.fim-close-btn:hover,
.spdd-close-btn:hover,
.cpsd-close-btn:hover,
.srd-close-btn:hover,
.cpmr-dialog-close:hover,
.production-confirm-close:hover,
.rz-dialog-titlebar-close:hover {
    background-color: var(--primary-bg, #EEF0FF) !important;
    color: var(--primary-color, #0405AB) !important;
    border-color: var(--primary-color, #0405AB) !important;
    transform: rotate(90deg) scale(1.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Explicit Santej Close Button Hover (Red) */
.branch-santej .dialog-close-btn:hover,
.branch-santej [class*="dialog-close"]:hover,
[data-branch="santej"] .dialog-close-btn:hover,
[data-branch="santej"] [class*="dialog-close"]:hover,
.santej-nav ~ * .dialog-close-btn:hover,
body:not(:has(.hajipur-nav)) .dialog-close-btn:hover,
body:not(:has(.hajipur-nav)) .hpmr-dialog-close-btn:hover,
body:not(:has(.hajipur-nav)) .hph-dialog-close-btn:hover,
body:not(:has(.hajipur-nav)) .hph-confirm-close-btn:hover,
body:not(:has(.hajipur-nav)) .hmpd-close-btn:hover,
body:not(:has(.hajipur-nav)) .hpud-close-btn:hover,
body:not(:has(.hajipur-nav)) .hdpd-close-btn:hover,
body:not(:has(.hajipur-nav)) .hdpfd-close-btn:hover,
body:not(:has(.hajipur-nav)) .emu-dialog-close-btn:hover,
body:not(:has(.hajipur-nav)) .hud-close-btn:hover,
body:not(:has(.hajipur-nav)) .hdud-close-btn:hover,
body:not(:has(.hajipur-nav)) .su-dialog-close-btn:hover,
body:not(:has(.hajipur-nav)) .hrrd-close-btn:hover,
body:not(:has(.hajipur-nav)) .hnd-close-btn:hover,
body:not(:has(.hajipur-nav)) .ph-dialog-close-btn:hover,
body:not(:has(.hajipur-nav)) .cdd-close-btn:hover,
body:not(:has(.hajipur-nav)) .idm-close-btn:hover,
body:not(:has(.hajipur-nav)) .fim-close-btn:hover,
body:not(:has(.hajipur-nav)) .spdd-close-btn:hover,
body:not(:has(.hajipur-nav)) .cpsd-close-btn:hover,
body:not(:has(.hajipur-nav)) .srd-close-btn:hover,
body:not(:has(.hajipur-nav)) .cpmr-dialog-close:hover,
body:not(:has(.hajipur-nav)) .production-confirm-close:hover,
body:not(:has(.hajipur-nav)) .rz-dialog-titlebar-close:hover,
.santej-pmr-container .dialog-close-btn:hover {
    background-color: #FFE5E5 !important;
    color: #FF0000 !important;
    border-color: #FF0000 !important;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.22) !important;
}

/* Explicit Hajipur Close Button Hover (Blue) */
.branch-hajipur .dialog-close-btn:hover,
.branch-hajipur [class*="dialog-close"]:hover,
[data-branch="hajipur"] .dialog-close-btn:hover,
[data-branch="hajipur"] [class*="dialog-close"]:hover,
.hajipur-nav ~ * .dialog-close-btn:hover,
body:has(.hajipur-nav) .dialog-close-btn:hover,
body:has(.hajipur-nav) .hpmr-dialog-close-btn:hover,
body:has(.hajipur-nav) .hph-dialog-close-btn:hover,
body:has(.hajipur-nav) .hph-confirm-close-btn:hover,
body:has(.hajipur-nav) .hmpd-close-btn:hover,
body:has(.hajipur-nav) .hpud-close-btn:hover,
body:has(.hajipur-nav) .hdpd-close-btn:hover,
body:has(.hajipur-nav) .hdpfd-close-btn:hover,
body:has(.hajipur-nav) .emu-dialog-close-btn:hover,
body:has(.hajipur-nav) .hud-close-btn:hover,
body:has(.hajipur-nav) .hdud-close-btn:hover,
body:has(.hajipur-nav) .su-dialog-close-btn:hover,
body:has(.hajipur-nav) .hrrd-close-btn:hover,
body:has(.hajipur-nav) .hnd-close-btn:hover,
body:has(.hajipur-nav) .ph-dialog-close-btn:hover,
body:has(.hajipur-nav) .cdd-close-btn:hover,
body:has(.hajipur-nav) .idm-close-btn:hover,
body:has(.hajipur-nav) .fim-close-btn:hover,
body:has(.hajipur-nav) .spdd-close-btn:hover,
body:has(.hajipur-nav) .cpsd-close-btn:hover,
body:has(.hajipur-nav) .srd-close-btn:hover,
body:has(.hajipur-nav) .cpmr-dialog-close:hover,
body:has(.hajipur-nav) .production-confirm-close:hover,
body:has(.hajipur-nav) .rz-dialog-titlebar-close:hover,
.hajipur-pmr-container .dialog-close-btn:hover {
    background-color: #EEF0FF !important;
    color: #0405AB !important;
    border-color: #0405AB !important;
    box-shadow: 0 2px 8px rgba(4, 5, 171, 0.22) !important;
}

/* Universal Dialog Footer: #FAFCFF background, subtle top border */
.dialog-footer,
.dialog-delete-footer,
.hpmr-dialog-footer,
.hph-dialog-footer,
.prod-dialog-footer,
.hmpd-footer,
.hpud-footer,
.hdpd-footer,
.hdpfd-footer,
.emu-dialog-footer,
.hud-footer,
.hdud-footer,
.su-dialog-footer,
.hrrd-footer,
.hnd-footer,
.ph-dialog-footer,
.cdd-footer,
.idm-footer,
.fim-footer,
.spdd-footer,
.cpsd-footer,
.srd-footer,
.user-dialog-footer,
.production-confirm-footer {
    background-color: #FAFCFF !important;
    border-top: 1px solid #F1F5F9 !important;
    padding: 14px 24px !important;
    border-bottom-left-radius: 14px !important;
    border-bottom-right-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
}

/* Universal Primary / Submit CTA Buttons (Adopts Branch Primary Color with Soft Elevation) */
.dialog-submit-btn,
.hph-dialog-submit-btn,
.hph-dialog-submit-pmr-btn,
.dialog-save-btn,
.dialog-btn-submit,
.emu-dialog-submit-btn,
.su-dialog-submit-btn,
.hud-submit-btn,
.hdud-submit-btn,
.hdpfd-submit-btn,
.dialog-delete-confirm-btn {
    background-color: var(--primary-color, #0405AB) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 8px !important;
    height: 38px !important;
    padding: 0 22px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18) !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.dialog-submit-btn:hover:not(:disabled),
.hph-dialog-submit-btn:hover:not(:disabled),
.hph-dialog-submit-pmr-btn:hover:not(:disabled),
.dialog-save-btn:hover:not(:disabled),
.dialog-btn-submit:hover:not(:disabled),
.emu-dialog-submit-btn:hover:not(:disabled),
.su-dialog-submit-btn:hover:not(:disabled),
.hud-submit-btn:hover:not(:disabled),
.hdud-submit-btn:hover:not(:disabled),
.hdpfd-submit-btn:hover:not(:disabled) {
    filter: brightness(1.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    transform: translateY(-0.5px) !important;
}

/* Universal Secondary / Cancel / Close CTA Buttons */
.dialog-cancel-btn,
.hph-dialog-cancel-btn,
.hpmr-dialog-footer-close-btn,
.dialog-delete-cancel-btn,
.emu-dialog-cancel-btn,
.su-dialog-cancel-btn,
.hud-cancel-btn,
.hdud-cancel-btn,
.hdpfd-cancel-btn,
.dialog-btn-cancel {
    background-color: #FFFFFF !important;
    color: #475569 !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 8px !important;
    height: 38px !important;
    padding: 0 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.dialog-cancel-btn:hover:not(:disabled),
.hph-dialog-cancel-btn:hover:not(:disabled),
.hpmr-dialog-footer-close-btn:hover:not(:disabled),
.dialog-delete-cancel-btn:hover:not(:disabled),
.emu-dialog-cancel-btn:hover:not(:disabled),
.su-dialog-cancel-btn:hover:not(:disabled),
.hud-cancel-btn:hover:not(:disabled),
.hdud-cancel-btn:hover:not(:disabled),
.hdpfd-cancel-btn:hover:not(:disabled),
.dialog-btn-cancel:hover:not(:disabled) {
    background-color: #F8FAFC !important;
    border-color: #94A3B8 !important;
    color: #0F172A !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
    transform: translateY(-0.5px) !important;
}

/* ==========================================================================
   Shared Clean Table Empty State (dp-empty-state)
   ========================================================================== */
.dp-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 16px;
    text-align: center;
}

.dp-empty-state-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: #94A3B8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dp-empty-state-icon svg {
    width: 18px;
    height: 18px;
}

.dp-empty-state-text {
    font-size: 13px;
    font-weight: 500;
    color: #64748B;
    line-height: 1.4;
}

/* ==========================================================================
   Subtle PMR Details Screen Entrance Transition (0.18s fade-in + 4px slide)
   ========================================================================== */
@keyframes dpPmrScreenEnter {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dp-route-host > div:not(.masters-container):not(.hpdv-page):not(.spdv-page):not(.prod-detail-page):not(.lab-detail-page),
.masters-container > :not(.masters-tabs-wrapper):not(.masters-filter-row),
.hpmr-container,
.pmr-container,
.lab-pmr-container,
.prod-container,
.hpdv-grid,
.hmd-card-body,
.spdv-grid,
.prod-detail-header-block,
.prod-left-info-card,
.prod-card-top-row,
.prod-table-container,
.lab-detail-header-block,
.lab-left-info-card,
.lab-card-top-row,
.lab-pmr-inputs-row,
.lab-table-container {
    animation: dpPmrScreenEnter 0.18s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    .dp-route-host > div:not(.masters-container):not(.hpdv-page):not(.spdv-page):not(.prod-detail-page):not(.lab-detail-page),
    .masters-container > :not(.masters-tabs-wrapper):not(.masters-filter-row),
    .hpmr-container,
    .pmr-container,
    .lab-pmr-container,
    .prod-container,
    .hpdv-grid,
    .hmd-card-body,
    .spdv-grid,
    .prod-detail-header-block,
    .prod-left-info-card,
    .prod-card-top-row,
    .prod-table-container,
    .lab-detail-header-block,
    .lab-left-info-card,
    .lab-card-top-row,
    .lab-pmr-inputs-row,
    .lab-table-container {
        animation: none;
    }
}

/* ==========================================================================
   Universal Dialog Open & Close Animations (All Dialogs, Both Branches)
   ========================================================================== */
@keyframes dpDialogOverlayIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes dpDialogCardIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(6px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes dpDialogOverlayOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes dpDialogCardOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.96) translateY(6px);
    }
}

.dialog-overlay,
.hph-dialog-overlay,
.production-confirm-overlay,
.cpmr-dialog-overlay,
.hpmr-dialog-overlay,
.hrrd-overlay,
.hnd-overlay,
.ph-dialog-overlay,
.cdd-overlay,
.idm-overlay,
.fim-overlay,
.spdd-overlay,
.cpsd-overlay,
.srd-overlay,
.custom-modal,
.rz-dialog-wrapper,
.rz-dialog-mask {
    animation: dpDialogOverlayIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dialog-overlay > div:first-child,
.hph-dialog-overlay > div:first-child,
.production-confirm-overlay > div:first-child,
.cpmr-dialog-overlay > div:first-child,
.hpmr-dialog-overlay > div:first-child,
.hrrd-overlay > div:first-child,
.hnd-overlay > div:first-child,
.ph-dialog-overlay > div:first-child,
.cdd-overlay > div:first-child,
.idm-overlay > div:first-child,
.fim-overlay > div:first-child,
.spdd-overlay > div:first-child,
.cpsd-overlay > div:first-child,
.srd-overlay > div:first-child,
.custom-modal > div:first-child,
.rz-dialog {
    animation: dpDialogCardIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.dp-dialog-closing {
    pointer-events: none !important;
    animation: dpDialogOverlayOut 0.16s ease-in forwards !important;
}

.dp-dialog-closing > div:first-child,
.dp-dialog-closing .rz-dialog {
    animation: dpDialogCardOut 0.16s ease-in forwards !important;
}

@media (prefers-reduced-motion: reduce) {
    .dialog-overlay,
    .hph-dialog-overlay,
    .production-confirm-overlay,
    .cpmr-dialog-overlay,
    .hpmr-dialog-overlay,
    .hrrd-overlay,
    .hnd-overlay,
    .ph-dialog-overlay,
    .cdd-overlay,
    .idm-overlay,
    .fim-overlay,
    .spdd-overlay,
    .cpsd-overlay,
    .srd-overlay,
    .custom-modal,
    .rz-dialog-wrapper,
    .rz-dialog-mask,
    .dialog-overlay > div:first-child,
    .hph-dialog-overlay > div:first-child,
    .production-confirm-overlay > div:first-child,
    .cpmr-dialog-overlay > div:first-child,
    .hpmr-dialog-overlay > div:first-child,
    .hrrd-overlay > div:first-child,
    .hnd-overlay > div:first-child,
    .ph-dialog-overlay > div:first-child,
    .cdd-overlay > div:first-child,
    .idm-overlay > div:first-child,
    .fim-overlay > div:first-child,
    .spdd-overlay > div:first-child,
    .cpsd-overlay > div:first-child,
    .srd-overlay > div:first-child,
    .custom-modal > div:first-child,
    .rz-dialog {
        animation: none !important;
    }
}

/* ==========================================================================
   Admin Branch Switch Transition Overlay
   ========================================================================== */
@keyframes dpBranchOverlayIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes dpBranchPulseDot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.25);
        opacity: 0.7;
    }
}

/* Pre-paint backdrop & pill rendered directly on <html> from frame 0 (zero blink) */
html.dp-branch-switching::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(248, 250, 252, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

html.dp-branch-switching::after {
    content: attr(data-branch-label);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    border-radius: 9999px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #0F172A;
    white-space: nowrap;
    transition: opacity 0.34s cubic-bezier(0.16, 1, 0.3, 1), transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

html.dp-branch-switching.dp-switching-hajipur::after {
    border-left: 4px solid #0405AB;
}

html.dp-branch-switching.dp-switching-rakanpur::after {
    border-left: 4px solid #DC2626;
}

html.dp-branch-switching.dp-branch-switching-leaving::before {
    opacity: 0;
}

html.dp-branch-switching.dp-branch-switching-leaving::after {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 6px)) scale(0.96);
}

html.dp-branch-switching .wstym-main-loader {
    opacity: 0 !important;
    pointer-events: none !important;
}

.dp-branch-switch-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(248, 250, 252, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: dpBranchOverlayIn 0.16s cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.dp-branch-switch-overlay.is-instant {
    animation: none;
    opacity: 1;
}

.dp-branch-switch-overlay.is-leaving {
    opacity: 0;
}

.dp-branch-switch-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 9999px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
    font-size: 13.5px;
    font-weight: 600;
    color: #0F172A;
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

.dp-branch-switch-overlay.is-leaving .dp-branch-switch-pill {
    transform: scale(0.95) translateY(-6px);
    opacity: 0;
}

.dp-branch-switch-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.dp-branch-switch-overlay.is-hajipur .dp-branch-switch-dot {
    background-color: #0405AB;
    box-shadow: 0 0 0 4px rgba(4, 5, 171, 0.15);
}

.dp-branch-switch-overlay.is-rakanpur .dp-branch-switch-dot {
    background-color: #DC2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15);
}

/* Hide underlying spinner while the branch-switch overlay is active */
body:has(#dpBranchSwitchOverlay) .wstym-main-loader {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ==========================================================================
   Role Permissions page — Radzen dropdown validation border
   Must live in global CSS (not scoped) so it can target Radzen's own
   .rz-dropdown class without being blocked by Blazor's scope attribute.
   Mirrors the pattern used for .scpmr-select-radzen.rz-dropdown.invalid
   in alert-dialogs.css.
   ========================================================================== */
.rp-dropdown.rz-dropdown.invalid,
.rp-dropdown.rz-dropdown.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: none !important;
    outline: none !important;
}

.rp-dropdown.rz-dropdown.invalid.rz-state-focused,
.rp-dropdown.rz-dropdown.invalid:focus-within,
.rp-dropdown.rz-dropdown.is-invalid.rz-state-focused,
.rp-dropdown.rz-dropdown.is-invalid:focus-within {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15) !important;
}

/* ==========================================================================
   Universal Toggle Switch Polish (Santej & Hajipur, All Screens & Dialogs)
   - Cleaner 38x22 proportions with 16px elevated thumb (3px inner padding)
   - Springy cubic-bezier(0.34, 1.56, 0.64, 1) slide + tactile press stretch
   ========================================================================== */
.masters-toggle,
.dialog-toggle,
.ip-toggle,
.loc-toggle,
.role-toggle,
.user-toggle {
    width: 38px !important;
    height: 22px !important;
}

.masters-toggle-slider,
.dialog-toggle-slider,
.ip-toggle-slider,
.loc-toggle-slider,
.role-toggle-slider,
.user-toggle-slider {
    border-radius: 9999px !important;
    transition: background-color 0.2s ease, box-shadow 0.2s ease !important;
}

.masters-toggle-slider::before,
.dialog-toggle-slider::before,
.ip-toggle-slider::before,
.loc-toggle-slider::before,
.role-toggle-slider::before,
.user-toggle-slider::before {
    width: 16px !important;
    height: 16px !important;
    left: 3px !important;
    bottom: 3px !important;
    border-radius: 9999px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25), 0 1px 1px rgba(15, 23, 42, 0.12) !important;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.15s ease !important;
}

.masters-toggle input:checked + .masters-toggle-slider::before,
.dialog-toggle input:checked + .dialog-toggle-slider::before,
.ip-toggle input:checked + .ip-toggle-slider::before,
.loc-toggle input:checked + .loc-toggle-slider::before,
.role-toggle input:checked + .role-toggle-slider::before,
.user-toggle input:checked + .user-toggle-slider::before {
    transform: translateX(16px) !important;
}

/* Tactile iOS/macOS press stretch */
.masters-toggle:not(.disabled):active input:not(:disabled) + .masters-toggle-slider::before,
.dialog-toggle:not(.disabled):active input:not(:disabled) + .dialog-toggle-slider::before,
.ip-toggle:not(.disabled):active input:not(:disabled) + .ip-toggle-slider::before,
.loc-toggle:not(.disabled):active input:not(:disabled) + .loc-toggle-slider::before,
.role-toggle:not(.disabled):active input:not(:disabled) + .role-toggle-slider::before,
.user-toggle:not(.disabled):active input:not(:disabled) + .user-toggle-slider::before {
    width: 19px !important;
}

.masters-toggle:not(.disabled):active input:checked:not(:disabled) + .masters-toggle-slider::before,
.dialog-toggle:not(.disabled):active input:checked:not(:disabled) + .dialog-toggle-slider::before,
.ip-toggle:not(.disabled):active input:checked:not(:disabled) + .ip-toggle-slider::before,
.loc-toggle:not(.disabled):active input:checked:not(:disabled) + .loc-toggle-slider::before,
.role-toggle:not(.disabled):active input:checked:not(:disabled) + .role-toggle-slider::before,
.user-toggle:not(.disabled):active input:checked:not(:disabled) + .user-toggle-slider::before {
    width: 19px !important;
    transform: translateX(13px) !important;
}
