/*!
 * Customize CSS
 * Copyright 2023-2024 The Miftah Authors
 */

/* Background color */
.bg-gradient-buttercup {
    background-color: #F6A60E;
}

.shadow-gradient-buttercup {

}

/*  Text Color*/
.text-buttercup {
    color: #F6A60E;
}

/* Image Dashboard */
#image-dashboard {
    width: 100%;
    height: 40rem;
    background-repeat: no-repeat;
    background-image: url('../img/kaca-film.jpeg');

}


/* Utilities for setting the height of an element */
.w-3-slash-5 {
    width: 60%;
}

/* 160 == 40 * 4 == 640px*/
.h-160 {
    height: 40rem;
}

.h-180 {
    height: 45rem;
}

.h-200 {
    height: 50rem;
}


/**/
.select2-container--default .select2-selection--single {
    border:0;
    background-image: linear-gradient(0deg, #e91e63 2px, rgba(156, 39, 176, 0) 0), linear-gradient(0deg, #d2d2d2 1px, rgba(209, 209, 2
}


.i01 {
    min-height: 100vh;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    align-items: center;
    background-image: url("../img/inspection.jpg");
    background-size: cover;
    padding: 15px;
    font-family: roboto, sans-serif;
}

#sidenav-main.automotive-sidebar,
#sidenav-main.automotive-sidebar.bg-white,
#sidenav-main.automotive-sidebar.bg-transparent,
#sidenav-main.automotive-sidebar.bg-gradient-dark {
    --sidebar-navy: #071333;
    --sidebar-navy-soft: #101f4d;
    --sidebar-pink: #e91e63;
    display: flex !important;
    flex-direction: column;
    width: 18rem;
    max-width: min(18rem, calc(100vw - 2rem)) !important;
    height: calc(100vh - 2rem);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 1.35rem !important;
    background: linear-gradient(180deg, #0a1740 0%, #071333 100%) !important;
    color: #fff !important;
    box-shadow: 0 22px 50px rgba(5, 15, 42, 0.28);
}

.automotive-sidebar:hover {
    max-width: min(18rem, calc(100vw - 2rem)) !important;
}

.automotive-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 15% 4%, rgba(233, 30, 99, 0.13), transparent 24%),
        radial-gradient(circle at 100% 100%, rgba(69, 90, 160, 0.18), transparent 32%);
    pointer-events: none;
}

.automotive-sidebar::after {
    display: none;
}

.automotive-sidebar .sidenav-header,
.automotive-sidebar .sidebar-navigation,
.automotive-sidebar .sidenav-footer {
    position: relative;
    z-index: 1;
}

.automotive-sidebar .sidenav-header {
    flex: 0 0 auto;
    height: auto;
    min-height: 6.25rem;
    padding: 1rem 1rem;
}

.automotive-sidebar .sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    padding: 0;
}

.automotive-sidebar .sidebar-brand-logo {
    display: inline-flex;
    flex: 0 0 3.1rem;
    align-items: center;
    justify-content: center;
    width: 3.1rem;
    height: 3.1rem;
    overflow: hidden;
    border-radius: 0.8rem;
    background: var(--sidebar-pink);
    box-shadow: 0 10px 24px rgba(233, 30, 99, 0.26);
}

.automotive-sidebar .sidebar-brand-logo img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

.automotive-sidebar .sidebar-brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.25;
}

.automotive-sidebar .sidebar-brand-copy strong {
    overflow: hidden;
    color: #fff !important;
    font-size: 0.94rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.automotive-sidebar .sidebar-brand-copy small {
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.automotive-sidebar .sidebar-navigation {
    position: relative;
    display: block !important;
    flex: 1 1 0;
    width: 100%;
    min-height: 0;
    height: auto !important;
    max-height: none !important;
    padding: 0.6rem 0.75rem 1rem 0.65rem;
    overflow: hidden;
}

.automotive-sidebar .navbar-nav {
    gap: 0.15rem;
}

.automotive-sidebar .sidebar-menu-label {
    padding: 0.35rem 0.85rem 0.45rem;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    list-style: none;
    text-transform: uppercase;
}

.automotive-sidebar .nav-link {
    position: relative;
    display: flex;
    min-height: 2.8rem;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    margin: 0;
    padding: 0.45rem 0.65rem;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.72) !important;
    cursor: pointer;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.automotive-sidebar .nav-link .sidebar-icon {
    display: inline-flex;
    flex: 0 0 2.15rem;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.2rem;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.automotive-sidebar .nav-link .nav-link-text {
    min-width: 0;
    margin: 0 !important;
    overflow: hidden;
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.automotive-sidebar .nav-link:hover {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.07) !important;
    color: #fff !important;
    transform: translateX(2px);
}

.automotive-sidebar .nav-link.active {
    border-color: rgba(233, 30, 99, 0.35);
    background: rgba(2, 8, 26, 0.72) !important;
    color: #fff !important;
    box-shadow: 0 9px 22px rgba(3, 10, 31, 0.2);
}

.automotive-sidebar .nav-link.active::before {
    display: none;
    content: none;
}

.automotive-sidebar .nav-link.active .sidebar-icon {
    background: var(--sidebar-pink);
    color: #fff;
    box-shadow: 0 6px 14px rgba(233, 30, 99, 0.22);
}

/* Match the shared sidebar section rows to the rounded-square Stitch design. */
.automotive-sidebar .sidebar-section-toggle[data-bs-target="#submenu-autentikasi"],
.automotive-sidebar .sidebar-section-toggle[data-bs-target="#submenu-inventory"] {
    min-height: 2.9rem;
    padding: 0.4rem 0.65rem;
    border-radius: 0.8rem;
}

.automotive-sidebar .sidebar-section-toggle[data-bs-target="#submenu-autentikasi"] .sidebar-icon,
.automotive-sidebar .sidebar-section-toggle[data-bs-target="#submenu-inventory"] .sidebar-icon {
    flex-basis: 2rem;
    width: 2rem;
    height: 2rem;
    border-radius: 0.6rem;
}

.automotive-sidebar .sidebar-section-toggle[data-bs-target="#submenu-inventory"].active {
    border-color: var(--sidebar-pink);
    background: rgba(126, 34, 106, 0.28) !important;
}

.automotive-sidebar .multi-level {
    position: relative;
    margin: 0.1rem 0 0.2rem 1rem;
    padding-left: 0.55rem;
}

.automotive-sidebar .multi-level::before {
    content: "";
    position: absolute;
    top: 0.3rem;
    bottom: 0.3rem;
    left: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.11);
}

.automotive-sidebar .multi-level .nav {
    gap: 0.12rem;
}

.automotive-sidebar .multi-level .nav-link {
    min-height: 2.1rem;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.54) !important;
}

.automotive-sidebar .multi-level .nav-link .sidebar-icon {
    flex-basis: 1.6rem;
    width: 1.6rem;
    height: 1.6rem;
    background: transparent;
    font-size: 1rem;
}

.automotive-sidebar .multi-level .nav-link .nav-link-text {
    font-size: 0.73rem;
}

.automotive-sidebar .multi-level .nav-link.active,
.automotive-sidebar .multi-level .nav-link:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    color: #fff !important;
    box-shadow: none;
}

.automotive-sidebar .multi-level .nav-link.active::before {
    display: none;
}

.automotive-sidebar .badge {
    display: inline-flex;
    min-width: 1.65rem;
    height: 1.65rem;
    align-items: center;
    justify-content: center;
    margin-left: auto !important;
    padding: 0.25rem 0.45rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    font-size: 0.68rem;
}

.automotive-sidebar .horizontal.light {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

@media (max-width: 1199.98px) {
    .automotive-sidebar {
        height: calc(100vh - 1rem);
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
        margin-left: 0.5rem !important;
    }
}

@media (min-width: 1200px) {
    .automotive-sidebar.fixed-start + .main-content {
        margin-left: 19.5rem;
    }
}

.modal show  #topDriverServiceModal {
    z-index: 20050 !important;
}

#topDriverServiceModal .modal-dialog {
    max-width: min(1180px, calc(100vw - 2rem));
    margin-right: auto;
    margin-left: auto;
}

#topDriverServiceModal .modal-body {
    overflow-x: auto;
}

.login-location-map {
    position: fixed;
    top: auto;
    right: clamp(1.25rem, 4vw, 4rem);
    bottom: 5.5rem;
    left: auto;
    z-index: 3;
    width: min(28vw, 360px);
    min-width: 300px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0.75rem;
    box-shadow: 0 18px 42px rgba(5, 15, 42, 0.38);
}

.login-location-map iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.language-switcher-form {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 1rem 0 0;
}

.language-switcher-icon {
    color: inherit;
    font-size: 1.45rem;
}

.language-switcher-select {
    min-width: 11.5rem;
    min-height: 2.65rem;
    padding: 0.5rem 2.25rem 0.5rem 0.85rem;
    border: 1px solid rgba(52, 71, 103, 0.25);
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.92);
    color: #344767;
    color: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.service-table-watermark {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.service-table-watermark::before {
    content: "";
    position: absolute;
    right: 1.5rem;
    bottom: 1rem;
    z-index: 4;
    width: min(42%, 620px);
    height: 82%;
    background-image: url("../img/pasukan-sirkus-circle.png");
    background-position: right bottom;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.48;
    mix-blend-mode: multiply;
    filter: saturate(0.85);
    pointer-events: none;
}

.service-table-watermark > .card-body {
    position: relative;
    z-index: 1;
    background: transparent;
}

.service-table-watermark .table-responsive,
.service-table-watermark table,
.service-table-watermark thead,
.service-table-watermark tbody,
.service-table-watermark tr,
.service-table-watermark th,
.service-table-watermark td {
    background-color: transparent !important;
}

.navbar-main .language-switcher-form {
    color: #344767;
}

.fullscreen-auth-navbar .language-switcher-form {
    position: relative;
    z-index: 1;
    color: #ffffff;
}

.fullscreen-auth-navbar .language-switcher-select {
    border-color: rgba(255, 255, 255, 0.45);
    background-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.fullscreen-auth-navbar .language-switcher-select option {
    color: #344767;
}

@media (max-width: 991.98px) {
    .login-location-map {
        top: auto !important;
        right: 1.25rem !important;
        bottom: 5.5rem !important;
        left: auto !important;
        width: min(36vw, 340px);
        min-width: 300px;
    }
}

@media (max-width: 575.98px) {
    .login-location-map {
        display: none;
    }
}

/* Main navigation theme. */
.navbar-main {
    padding: 0.55rem 0.75rem !important;
    border-radius: 0.75rem;
    background-color: #e91e63 !important;
}

.navbar-main .nav-link,
.navbar-main .navbar-nav,
.navbar-main .navbar-nav span,
.navbar-main .navbar-nav i {
    color: #fff !important;
}

.navbar-main .user-identity-trigger {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.navbar-main .user-identity-trigger:hover,
.navbar-main .user-identity-trigger:focus-visible,
.navbar-main .user-identity-menu:focus-within .user-identity-trigger {
    background: #fff;
    color: #e91e63;
}

.navbar-main .language-switcher-select {
    border-color: rgba(255, 255, 255, 0.55);
    background-color: #fff;
    color: #344767;
}

.navbar-main .language-switcher-icon {
    color: #fff;
}

.login-popup-content {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 30px 80px rgba(5, 15, 42, 0.38);
}

.login-popup-content .modal-body {
    position: relative;
    padding: 1.75rem 2rem 2rem;
}

.login-popup-theme-header,
.login-popup-theme-button {
    background: linear-gradient(135deg, #071333 0%, #14245a 45%, #d4147d 100%) !important;
}

.login-popup-theme-header {
    position: relative;
    display: flex;
    gap: 1rem;
    align-items: center;
    min-height: 9rem;
    padding: 2rem 3.5rem 2rem 2rem;
    text-align: left;
    box-shadow: 0 12px 32px rgba(212, 20, 125, 0.28);
}

.login-popup-brand-icon {
    display: inline-flex;
    flex: 0 0 auto;
    width: 3.5rem;
    height: 3.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 1rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
}

.login-popup-eyebrow {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-popup-theme-button {
    border: 0;
    box-shadow: 0 8px 22px rgba(20, 36, 90, 0.28);
}

.login-popup-action {
    display: block !important;
    margin-top: 1.5rem;
}

.login-popup-submit {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    margin: 0 !important;
    border-radius: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 1;
    visibility: visible;
}

.login-popup-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 3;
}

.login-popup-title {
    margin: 0.15rem 0 0;
    color: #fff;
    font-weight: 700;
}

.login-popup-subtitle {
    width: 100%;
    margin: 0.35rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
}

.login-popup-field {
    overflow: visible;
    flex-wrap: nowrap;
    min-height: 3.15rem;
    border: 1px solid #d9dce5;
    border-radius: 0.7rem;
    background: #fff;
}

.login-popup-field:focus-within {
    border-color: #7e165e;
    box-shadow: 0 0 0 0.2rem rgba(126, 22, 94, 0.11);
}

.login-popup-field .input-group-text {
    border: 0;
    background: transparent;
    color: #7b809a;
}

.login-popup-field .form-control {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.login-popup-field .password-toggle-button {
    display: inline-flex;
    flex: 0 0 auto;
    width: 2.4rem;
    height: 2.4rem;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin-right: 0.4rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f4f5f7;
    color: #344767;
}

.login-popup-field .password-eye-icon {
    display: block;
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 575.98px) {
    .login-popup-theme-header {
        min-height: 8rem;
        padding: 1.5rem 3rem 1.5rem 1.25rem;
    }

    .login-popup-brand-icon {
        display: none;
    }

    .login-popup-content .modal-body {
        padding: 1.25rem;
    }
}

.password-toggle-field {
    position: relative;
}

.password-toggle-field .form-control {
    padding-right: 3rem;
}

.password-toggle-button {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border: 1px solid #d2d6da;
    border-radius: 999px;
    background: #fff;
    color: #344767;
    transform: translateY(-50%);
    box-shadow: 0 4px 12px rgba(52, 71, 103, 0.12);
}

.password-toggle-button:hover,
.password-toggle-button:focus {
    color: #344767;
}

.password-eye-icon {
    display: block;
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.driver-vehicle-assigned-badge {
    border: 1px solid #2dce89;
    background: rgba(45, 206, 137, 0.14);
    color: #137a52;
    font-weight: 700;
}

.driver-vehicle-assignment-select {
    border-color: #2dce89;
    box-shadow: 0 0 0 0.1rem rgba(45, 206, 137, 0.08);
}

.driver-vehicle-assignment-list {
    max-height: 15rem;
    overflow-y: auto;
    border: 1px solid #d2d6da;
    border-radius: 0.5rem;
    background: #fff;
}

.driver-vehicle-assignment-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
    padding: 0.65rem 0.8rem;
    border-bottom: 1px solid #edf0f5;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.driver-vehicle-assignment-option:last-child {
    border-bottom: 0;
}

.driver-vehicle-assignment-option:hover {
    background: #f7f9fc;
}

.driver-vehicle-assignment-option.is-assigned {
    border-left: 4px solid #2dce89;
    background: #dff7ec;
    color: #137a52;
}

.driver-vehicle-assignment-option.is-assigned:hover {
    background: #cef1e1;
}

.driver-vehicle-assignment-option:has(input:checked) {
    outline: 2px solid #2dce89;
    outline-offset: -2px;
    background: #cef1e1;
}

.driver-vehicle-assignment-details {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    min-width: 0;
}

.driver-vehicle-owner {
    display: inline-flex;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: #2dce89;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.driver-vehicle-available {
    color: #8392ab;
    font-size: 0.72rem;
}

.driver-vehicle-assignment-select .vehicle-option-assigned,
select .vehicle-option-assigned {
    background: #dff7ec;
    color: #137a52;
    font-weight: 700;
}

/* Shared service-history presentation for structured Jasa values. */
.history-table-responsive {
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: thin;
}

.history-service-table {
    min-width: 1120px;
    margin-bottom: 0;
}

.history-service-table th {
    white-space: nowrap;
}

.history-service-table td {
    vertical-align: top;
}

.history-jasa-cell {
    min-width: 260px;
    max-width: 360px;
    white-space: normal !important;
}

.history-jasa-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.history-jasa-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid #e9ecef;
    border-radius: 0.6rem;
    background: #f8f9fa;
}

.history-jasa-name {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    min-width: 0;
    color: #344767;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.history-jasa-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #e91e63;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.history-jasa-name .material-icons-round {
    flex: 0 0 auto;
    color: #e91e63;
    font-size: 1rem;
    line-height: 1.1rem;
}

.history-jasa-price {
    flex: 0 0 auto;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: #e8f5e9;
    color: #137333;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.history-empty-value {
    color: #8392ab;
    font-size: 0.8rem;
    font-style: italic;
}

@media (max-width: 767.98px) {
    .history-service-table {
        min-width: 980px;
    }

    .history-jasa-cell {
        min-width: 230px;
    }
}

/* Signed-in user identity in the main navigation. */
.user-identity-menu {
    position: relative;
    z-index: 1050;
}

.user-identity-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 14rem;
    padding: 0.45rem 0.65rem;
    border: 0;
    border-radius: 0.55rem;
    background: transparent;
    color: #7b809a;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.user-identity-trigger:hover,
.user-identity-trigger:focus-visible,
.user-identity-menu:focus-within .user-identity-trigger {
    background: #fff;
    color: #344767;
    outline: none;
}

.user-identity-trigger > .material-icons-round:first-child {
    font-size: 1.15rem;
}

.user-identity-username {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-identity-chevron {
    font-size: 1rem;
    transition: transform 0.15s ease;
}

.user-identity-popover {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    width: min(22rem, calc(100vw - 2rem));
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.35rem);
    transition: opacity 0.15s ease, transform 0.15s ease;
    visibility: hidden;
}

.user-identity-popover::before {
    position: absolute;
    top: -0.38rem;
    right: 1.25rem;
    width: 0.75rem;
    height: 0.75rem;
    border-top: 1px solid #e2e8f0;
    border-left: 1px solid #e2e8f0;
    background: #fff;
    content: "";
    transform: rotate(45deg);
}

.user-identity-menu:hover .user-identity-popover,
.user-identity-menu:focus-within .user-identity-popover {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
}

.user-identity-menu:hover .user-identity-chevron,
.user-identity-menu:focus-within .user-identity-chevron {
    transform: rotate(180deg);
}

.user-identity-popover-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #edf0f5;
}

.user-identity-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.2rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #e91e63, #ad1457);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}

.user-identity-popover-header div:last-child {
    min-width: 0;
}

.user-identity-popover-header strong,
.user-identity-popover-header span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-identity-popover-header strong {
    color: #344767;
    font-size: 0.9rem;
}

.user-identity-popover-header span {
    margin-top: 0.15rem;
    color: #1d4ed8;
    font-size: 0.7rem;
    font-weight: 700;
}

.user-identity-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0.85rem 0 0;
}

.user-identity-details div {
    min-width: 0;
}

.user-identity-details dt {
    margin: 0;
    color: #94a3b8;
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.user-identity-details dd {
    margin: 0.12rem 0 0;
    overflow: hidden;
    color: #344767;
    font-size: 0.75rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .user-identity-details {
        grid-template-columns: 1fr;
    }

    .user-identity-popover {
        position: fixed;
        top: 4.5rem;
        right: 1rem;
    }
}
.service-standard-table thead th {
    border-bottom-width: 1px;
    color: #64748b !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.04em;
    text-transform: uppercase !important;
    vertical-align: middle;
    white-space: nowrap;
}

.service-standard-table tbody tr.service-detail-row {
    cursor: help;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.service-standard-table tbody tr.service-detail-row:hover,
.service-standard-table tbody tr.service-detail-row:focus {
    background: #fff1f5 !important;
    box-shadow: inset 4px 0 0 #e91e63;
    outline: none;
}

.service-standard-table tbody td {
    color: #64748b;
    font-size: 0.82rem;
    vertical-align: middle;
}

.service-standard-table .badge {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.65rem;
    line-height: 1.25;
    padding: 0.4rem 0.55rem;
    white-space: normal;
}

.service-standard-table[data-expand-direction="horizontal"]:not(.service-table-expanded) .service-optional-column {
    display: none;
}

.service-standard-table[data-expand-direction="horizontal"].service-table-expanded {
    min-width: max-content;
}

.service-standard-table .service-report-column {
    background: inherit;
    min-width: 10rem;
    position: sticky;
    right: 0;
    z-index: 2;
}

.service-standard-table thead .service-report-column {
    background: #fff;
    z-index: 3;
}

.service-table-toggle {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
}

.service-table-toggle .material-icons-round {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.service-table-toggle button[aria-expanded="true"] .material-icons-round {
    transform: rotate(180deg);
}

.service-detail-popover {
    --bs-popover-max-width: 32rem;
}

.service-detail-popover .popover-header {
    background: linear-gradient(195deg, #ec407a, #d81b60);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.4;
}

.service-detail-popover .popover-body {
    max-height: min(70vh, 34rem);
    overflow-y: auto;
}

.badge.user-role-badge {
    background: linear-gradient(135deg, #d946ef, #c02678) !important;
    color: #fff !important;
}

@media (max-width: 575.98px) {
    .service-detail-popover {
        max-width: calc(100vw - 2rem) !important;
    }
}
