#components-reconnect-modal {
    display: none !important;
}

:root {
    --warning: #E9C05E !important;
}

html,
body,
#app {
    --body-font: "YekanBakh", "Segoe UI Variable", "Segoe UI", sans-serif;
    color: var(--neutral-foreground-rest);
    font-family: var(--body-font);
    height: 100%;
    margin: 0;
    background-color: var(--neutral-layer-2) !important;
}

a {
    text-decoration: none;
    color: var(--neutral-foreground-rest);
}

.nav-menu {
    overflow-y: auto;
    overflow-y: overlay;
    /* Allows scrollbar to sit on top of content, eliminating reserved space */
    /* Hides the scrollbars by default */
    position: relative;
    /* Ensures proper layout behavior */
}

.fluent-nav-text {
    color: var(--neutral-foreground-rest) !important;
    font-size: var(--type-ramp-base-font-size);
}

.nav-menu:hover::-webkit-scrollbar-thumb {
    background: rgba(136, 136, 136, 0.4);
    /* Semi-transparent thumb */
}

*:hover::-webkit-scrollbar-thumb {
    background: rgba(136, 136, 136, 0.4);
    /* Semi-transparent thumb */
}

/* Global Scrollbar Styling */

html,
body {
    overflow: hidden;
    /* Disable default browser scrollbar */
    height: 100%;
    margin: 0;
    width: 100%;
}

/* 
   Main Content acts as the "page" now. 
   We apply direction: rtl here to ensure the scrollbar is on the LEFT.
*/
.main-content {
    background-color: var(--neutral-layer-1);
    margin: 0;
    /* Remove margin to fill space */
    padding: 1rem;
    padding-bottom: 150px;
    border-radius: 0;
    /* Full width/height, less radius needed at edges */
    height: 100dvh;
    /* Fill the viewport */
    overflow-y: auto;
    overflow-x: hidden;
    /* overlay is non-standard and unsupported on real mobile browsers */
    direction: rtl;
    /* Forces scrollbar to left */
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 8px;
    /* Slightly wider than menu but still thin */
    height: 8px;
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
}

/* Remove global hover rule to prevent accidental scrollbar triggering */
::-webkit-scrollbar-track {
    background: transparent;
}

/* Specific overrides if needed */
/* Specific overrides for NavMenu to make it thin and auto-hiding */
.nav-menu::-webkit-scrollbar {
    width: 6px;
    /* Thin scrollbar for menu */
    height: 6px;
    background-color: transparent;
    /* Track is strictly transparent */
}

.nav-menu::-webkit-scrollbar-thumb {
    background-color: transparent;
    /* Hidden by default */
    border-radius: 4px;
}

/* Show scrollbar thumb ONLY when hovering the menu */
.nav-menu:hover::-webkit-scrollbar-thumb {
    background-color: rgba(136, 136, 136, 0.4);
    /* Visible grey on hover */
}

/* Firefox support for menu */
.nav-menu {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.nav-menu:hover {
    scrollbar-color: rgba(136, 136, 136, 0.4) transparent;
}

.float-button {

    position: fixed;
    bottom: 20px;
    /* Position from the bottom of the screen */
    left: 50%;
    /* Start at the center horizontally */
    transform: translateX(-50%);
    /* Adjust to center the button */
    /* Follows the deployment's accent (BrandSettings.AccentColor) instead of a
       hardcoded orange, which was picked to match the old navy brand. */
    background-color: var(--accent-fill-rest, #f4a261);
    color: var(--foreground-on-accent-rest, white);
    border: none;
    border-radius: 25px;
    /* Rounded edges */
    padding: 15px 0;
    /* Vertical padding for height */
    width: 200px;
    /* Fixed width */
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
}

.float-button:hover {
    background-color: var(--accent-fill-hover, #e67e22);
}

/* Ensure it appears only on small screens */
@media (min-width: 768px) {
    .float-button {
        display: none;
    }
}

#blazor-error-ui {
    background: var(--neutral-layer-4);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

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

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

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

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

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

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

.tabs-layout {
    width: 100%;
}

.tab-section-layout {
    border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);
    border-radius: calc(var(--control-corner-radius) * 1px);
    padding: 1.5rem 1.5rem;
    min-height: 300px;
}

.table {
    color: var(--neutral-foreground-rest);
}

fluent-data-grid {
    border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
    border-radius: calc(var(--control-corner-radius) * 1px);
}

fluent-data-grid .header,
fluent-data-grid .sticky-header {
    background: var(--neutral-layer-2);
    border-radius: calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px) 0 0;
}

fluent-data-grid-row {
    align-items: center;
}

/* FluentDataGrid v4.11+ uses standard table elements */
table.fluent-datagrid tbody tr td {
    height: 56px !important;
    padding-top: 0;
    padding-bottom: 0;
    vertical-align: middle;
}

table.fluent-datagrid tr[row-type='sticky-header']>th {
    top: -16px !important;
}

/* Force the app font (YekanBakh) on grid cells so numbers match the rest of the UI */
table.fluent-datagrid,
table.fluent-datagrid th,
table.fluent-datagrid td {
    font-family: var(--body-font);
}

.col-title-text {
    text-align: right !important;
    /* Show full column titles (e.g. «ردیف», «شماره درخواست») instead of truncating */
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.plate-container {
    border: solid 1px var(--neutral-foreground-rest);
    border-left: 12px solid var(--accent-fill-rest);
    /*padding: 3px 5px;*/
    border-radius: 4px;
    display: flex;
    flex-direction: row;
    background-color: var(--neutral-layer-1);
    color: var(--neutral-foreground-rest);
    position: relative;
}

.plate-container:before {
    content: url(/static/images/flag.svg);
    position: absolute;
    top: -4px;
    left: -10px;
    width: 8px;
}

.plate-container:after {
    content: 'IR';
    position: absolute;
    font-size: 5px;
    color: var(--foreground-on-accent-active);
    bottom: 2px;
    line-height: 1;
    left: -10px;
}

.plate-pt1,
.plate-pt2,
.plate-pt3,
.plate-ltr {
    padding: 3px 0;
    text-align: center;
}

.plate-pt1 {
    width: 25px;
}

.plate-ltr {
    width: 20px;
}

.plate-pt2 {
    width: 28px;
}

.plate-pt3 {
    border-left: 1px solid var(--neutral-foreground-rest);
    width: 25px;
}

.plate-container-x2 {
    border: solid 1px var(--neutral-foreground-rest);
    border-left: 16px solid var(--accent-fill-rest);
    /*padding: 3px 5px;*/
    border-radius: 4px;
    display: flex;
    flex-direction: row;
    font-size: 20px;
    background-color: var(--neutral-layer-1);
    color: var(--neutral-foreground-rest);
    z-index: 9;
    font-weight: 600;
    position: relative;
}

.plate-container-x2:before {
    content: url(/static/images/flag.svg);
    position: absolute;
    top: 0;
    left: -14px;
    width: 12px;
}

.plate-container-x2:after {
    content: 'IR';
    position: absolute;
    font-size: 7px;
    color: var(--foreground-on-accent-active);
    bottom: 2px;
    line-height: 1;
    left: -14px;
}

.plate-container-x2 .plate-pt1,
.plate-container-x2 .plate-pt2,
.plate-container-x2 .plate-pt3,
.plate-container-x2 .plate-ltr {
    padding: 8px 0;
}

.plate-container-x2 .plate-pt1 {
    width: 40px;
}

.plate-container-x2 .plate-ltr {
    width: 35px;
}

.plate-container-x2 .plate-pt2 {
    width: 45px;
}


.plate-container-x2 .plate-pt3 {
    width: 40px;
}

.fluent-messagebar-message .title {
    padding: 0 0 0 4px !important;
}


@media (max-width: 767px) {
    .body-stack {
        flex-direction: column !important;
    }

    .header .header-gutters {
        padding-right: 32px;
    }

    .main-content {
        margin-right: initial;
    }
}

/* Override header padding for AuthLayout to fix logo centering on mobile login page */
@@media (max-width: 767px) {
    fluent-layout:not(.body-stack fluent-layout) fluent-header {
        padding-left: 32px;
        padding-right: 32px;
    }
}

.new-item {
    border-style: dashed;
    background: none;
}

.my-property-item {
    width: 100%;
}

.my-property-item-link {
    text-decoration: none;
}


.my-property-item-icon {}

.fluent-nav-item .positioning-region {
    height: 40px;
}

.fluent-nav-item .positioning-region .content-region {
    margin-inline-start: calc(var(--design-unit) * 4px);
}

.person-item.selected {
    border: solid 1px #9fd89f;
    background-color: #f1faf1;
}

.person-item-link {
    text-decoration: none;
}

.fluent-persona .name {
    margin-left: 0;
    margin-right: 16px;
    width: 100%;
}


.vehicle-item-link {
    text-decoration: none;
}


.main-wrapper {
    width: 100%;
    overflow-x: auto;
    box-sizing: border-box;
}

.responsive-table {
    display: inline-block;
    min-width: 100%;
    box-sizing: border-box;
}

.responsive-table>fluent-data-grid {
    width: 100%;
    border-collapse: collapse;
}

.siteheader {
    background-color: var(--neutral-layer-4) !important;
    border-bottom: calc(var(--stroke-width) * 3px) solid var(--accent-fill-rest);
    color: var(--neutral-foreground-rest) !important;
    /*margin-bottom: 0 !important;*/
}

.home-page-messages .fluent-messagebar-container-action {
    display: none !important;
}


.scan-qr-code .fluent-messagebar-container-action,
.scan-qr-code .fluent-messagebar-icon {
    display: none !important;
}

.home-page-messages {
    width: 100%;
}

.dashboard-stats {
    width: 100%;
}

.dashboard-stats-item {
    padding: calc(var(--design-unit) * 5px);
    background-color: var(--neutral-fill-layer-rest);
    width: 100%;
    border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-layer-rest);
    border-radius: calc(var(--layer-corner-radius) * 1px);
    box-shadow: var(--elevation-shadow-card-rest);
    border-right: 3px solid var(--accent-fill-rest);
    color: var(--neutral-foreground-rest);
}

.dashboard-stats-item a {
    text-decoration: none;
    color: var(--neutral-foreground-rest);
}

.dashboard-stats-item-title {
    font-size: calc(var(--type-ramp-base-font-size));
}

.dashboard-stats-item-value {
    font-size: calc(var(--type-ramp-base-font-size) + 10px);
    font-weight: 500;
}

.dashboard-stats-item-icon {
    width: 42px;
    height: 42px;
    background-color: var(--accent-fill-rest);
    border-radius: 21px;
    display: flex;
    justify-content: center;
}

::deep>fluent-badge {
    --badge-fill-error: var(--error);
    --badge-fill-success: var(--success);
    --badge-fill-warning: var(--warning);
}

.tabs-bold>fluent-tab {
    padding: 0 15px;
    font-size: 15px;
}

.tabs-bold .activeIndicator {
    width: 40px;
    height: 3px;
}

.tabs-badge .tab-section-layout {
    border: none;
    padding: 0;
    margin-top: 10px;
    ;
}

.tabs-badge>fluent-tab[aria-selected="true"] {
    background-color: var(--accent-fill-active);
    box-shadow: var(--elevation-shadow-card-rest);
    color: var(--foreground-on-accent-rest);
}

.tabs-badge>fluent-tab {
    padding: 0px 10px;
    width: 80px;
    height: 30px;
    margin: 0px 0px 5px 10px;
    border-radius: calc(var(--control-corner-radius) * 1px);
    font-size: 13px;
}

.tab-auto-height {
    min-height: initial;
}

.grid-key {
    color: var(--neutral-foreground-active);
}

@media (min-width: 1280px) {
    .body-stack {
        /*width: 80% !important;*/
    }
}

.ltr {
    direction: ltr !important;
}

.rtl {
    direction: rtl !important;
}

.txt-r {
    text-align: right;
}

.property-number {
    min-width: 50px;
    border-radius: 4px;
    background-color: var(--accent-fill-rest);
    text-align: center;
    padding: 5px;
}

.property-number p {
    letter-spacing: 2px;
}

.property-number-x2 {
    min-width: 90px;
    border-radius: 4px;
    background-color: var(--accent-fill-rest);
    text-align: center;
    padding: 7px 15px;
}

.property-number-x2 h2 {
    letter-spacing: 3px;
}

.fluent-nav-group * .fluent-nav-menu>.fluent-nav-item * .fluent-nav-menu>.fluent-nav-item .content-region {
    padding-inline-start: 36px;
}

.fluent-nav-group * .fluent-nav-menu>.fluent-nav-item .content-region {
    padding-inline-start: 12px;
}

.simple-upload-control {
    background: padding-box linear-gradient(var(--accent-fill-rest), var(--accent-fill-rest)), border-box var(--accent-stroke-control-rest);
    border: calc(var(--stroke-width) * 1px) solid transparent;
    flex-grow: 1;
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0 calc((10 + (var(--design-unit) * 2 * var(--density))) * 1px);
    white-space: nowrap;
    outline: none;
    text-decoration: none;
    border-radius: calc(var(--control-corner-radius) * 1px);
    height: 32px;
    color: var(--foreground-on-accent-rest);
}

.fluent-wizard-content {
    padding-top: 30px;
}

.grayscale {
    filter: grayscale(1);
}

.sticky-header {
    z-index: 99 !important;
}

.ql-editor>* {
    direction: rtl;
    text-align: right;
}

fluent-switch.dark-mode::part(switch) {
    display: none;
}

.break {
    flex-basis: 100%;
    height: 0;
}

/* Quick Access Cards Styling */
.quick-access-card {
    background: var(--neutral-fill-layer-rest);
    border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-layer-rest);
    border-radius: calc(var(--layer-corner-radius) * 1px);
    box-shadow: var(--elevation-shadow-card-rest);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quick-access-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--elevation-shadow-card-hover);
    border-color: var(--accent-fill-rest);
}

.quick-access-card:active {
    transform: translateY(0);
}

.quick-access-icon {
    margin-bottom: 8px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--accent-fill-rest), var(--accent-fill-hover));
}

.quick-access-icon .material-icons {
    font-size: 28px;
    color: var(--foreground-on-accent-rest);
}

.quick-access-content h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral-foreground-rest);
}

.quick-access-content p {
    margin: 0;
    font-size: 12px;
    color: var(--neutral-foreground-hint);
    opacity: 0.8;
}

/* Individual card color themes */
.qr-code-card .quick-access-icon {
    background: linear-gradient(135deg, #d4b896, #c4a484);
}

.add-guest-card .quick-access-icon {
    background: linear-gradient(135deg, #059669, #10b981);
}

.add-taxi-card .quick-access-icon {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.pay-charges-card .quick-access-icon {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.surveys-card .quick-access-icon {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    position: relative;
}

.announcements-card .quick-access-icon {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    position: relative;
}

/* Announcements panel page — rectangular cards */
.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    direction: rtl;
}

.announcement-card {
    background: var(--neutral-fill-layer-rest);
    border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-layer-rest);
    border-right: 4px solid #f59e0b;
    border-radius: calc(var(--layer-corner-radius) * 1px);
    box-shadow: var(--elevation-shadow-card-rest);
    padding: 16px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.announcement-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--elevation-shadow-card-hover);
    border-color: var(--accent-fill-rest);
    border-right-color: #f59e0b;
}

.announcement-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 6px;
}

.announcement-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--neutral-foreground-rest);
}

.announcement-card-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    font-size: 12px;
    color: var(--neutral-foreground-hint);
}

.announcement-card-date .material-icons {
    font-size: 15px;
}

.announcement-card-subtitle {
    margin: 4px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-foreground-rest);
}

.announcement-card-excerpt {
    margin: 6px 0 10px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--neutral-foreground-rest);
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.announcement-card-more {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-fill-rest);
}

.announcement-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 60px 20px;
    color: var(--neutral-foreground-hint);
}

.announcement-empty .material-icons {
    font-size: 56px;
    opacity: 0.4;
}

.announcement-detail {
    direction: rtl;
    padding: 22px;
}

.announcement-detail-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
}

.announcement-detail-subtitle {
    margin: 10px 0;
    font-weight: 600;
    color: var(--accent-foreground-rest);
}

.announcement-detail-content {
    margin-top: 14px;
    font-size: 14px;
    line-height: 2;
    text-align: justify;
    color: var(--neutral-foreground-rest);
}

.announcement-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.rules-card .quick-access-icon {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    position: relative;
}

/* ---- Resident rules page cards ---- */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    width: 100%;
}

.rule-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 26px 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--neutral-stroke-rest, #e5e7eb);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
    height: 100%;
}

.rule-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
    border-color: #14b8a6;
}

.rule-card.accepted {
    border-color: rgba(22, 163, 74, 0.35);
    background: linear-gradient(180deg, #f0fdf4, #ffffff);
}

.rule-card-icon {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    color: #fff;
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}

.rule-card.accepted .rule-card-icon {
    background: linear-gradient(135deg, #15803d, #22c55e);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
}

.rule-card-icon .material-icons {
    font-size: 30px;
}

.rule-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--neutral-foreground-rest, #1f2937);
}

.rule-card-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .82rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    line-height: 1;
}

.rule-card-status.ok {
    background: #dcfce7;
    color: #15803d;
}

.rule-card-status.pending {
    background: #fef3c7;
    color: #b45309;
}

.rule-card-status .material-icons {
    font-size: 16px;
}

.rule-card-check {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.45);
}

.rule-card-check .material-icons {
    font-size: 17px;
}

.rule-dialog-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    color: #fff;
    flex-shrink: 0;
}

.rule-dialog-icon .material-icons {
    font-size: 20px;
}

.rules-accepted-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #16a34a;
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.survey-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: #dc2626;
    color: white;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .quick-access-card {
        padding: 10px;
    }

    .quick-access-icon {
        width: 40px;
        height: 40px;
        border-radius: 20px;
    }

    .quick-access-icon .material-icons {
        font-size: 24px;
    }

    .quick-access-content h4 {
        font-size: 13px;
    }

    .quick-access-content p {
        font-size: 11px;
    }
}

/* ==========================================================================
   Client Layout Styles - Moved from Client scoped CSS
   ========================================================================== */

/* MainLayout.razor.css styles merged into global rules above */

.menu-icon {
    display: none;
}

#menu-toggle {
    display: none;
}

@media (max-width: 767px) {
    .menutoggle {
        width: 100%;
    }

    .menu-icon {
        z-index: 10;
        display: block;
        visibility: visible;
        position: absolute;
        top: 15px;
        right: 20px;
    }

    .nav-menu {
        display: none;
        width: 100%;
        height: calc(100dvh - 50px);
        overflow-y: auto;
    }
}

/* NavMenu.razor.css styles */
.nav-menu {
    /*background-color: var(--neutral-layer-1);*/
    /*padding: .5rem .5rem;*/
    height: calc(100dvh - 60px);
    width: 18rem;
    overflow-y: auto;
    margin-right: calc(var(--design-unit) * 1px + 1px);
}


@media (max-width: 767px) {
    .nav-menu {
        display: none;
        width: 100%;
        height: calc(100dvh - 60px);
        overflow-y: auto;
    }

    #menu-toggle:checked~nav {
        display: block;
    }

    #menu-toggle~nav {
        display: none;
    }
}

/* FluentWizardPlus Styles - Exact copy from FluentUI */
.fluent-wizard {
    display: grid;
    height: 100%;
    --fluent-wizard-circle-size: 24px;
    --fluent-wizard-spacing: 4px;
}

.fluent-wizard[border-outside] {
    border: 1px solid var(--neutral-stroke-hover);
}

.fluent-wizard>ol {
    display: flex;
    padding-inline-start: 0px;
    margin-block-start: 0px;
    margin-block-end: 0px;
    padding: 10px;
}

.fluent-wizard .fluent-wizard-buttons {
    display: flex;
    justify-content: end;
}

.fluent-wizard .fluent-wizard-buttons[border-inside] {
    border-top: 1px solid var(--neutral-stroke-hover);
}

/* Wizard with steps on Left */
.fluent-wizard[position="left"] {
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr auto;
}

.fluent-wizard[position="left"]>ol {
    flex-direction: column;
    grid-column: 1;
    grid-row: 1 / span 2;
}

.fluent-wizard[position="left"]>ol[border-inside] {
    border-right: 1px solid var(--neutral-stroke-hover);
}

.fluent-wizard[position="left"] .fluent-wizard-content {
    grid-column: 2;
    grid-row: 1;
    margin: 5px 10px 0px 15px;
}

.fluent-wizard[position="left"] .fluent-wizard-buttons {
    grid-column: 2;
    grid-row: 2;
    text-align-last: end;
    padding: 10px;
}

/* Wizard with steps on Top */
.fluent-wizard[position="top"] {
    grid-template-columns: auto;
    grid-template-rows: auto 1fr auto;
}

.fluent-wizard[position="top"]>ol {
    flex-direction: row;
    justify-content: center;
}

.fluent-wizard[position="top"]>ol[border-inside] {
    border-bottom: 1px solid var(--neutral-stroke-hover);
}

.fluent-wizard[position="top"] .fluent-wizard-content {
    margin: 5px 10px 0px 10px;
}

/* .fluent-wizard[position="top"] .fluent-wizard-buttons {
            padding: 10px;
        } */

/* Wizard with steps */
.fluent-wizard>ol>li {
    position: relative;
    display: flex;
}

/* Wizard with steps on Left */
.fluent-wizard[position="left"]>ol>li {
    gap: 10px;
}

.fluent-wizard[position="left"]>ol>li:before {
    flex: 0 0 var(--fluent-wizard-circle-size);
    height: var(--fluent-wizard-circle-size);
}

.fluent-wizard[position="left"]>ol>li:last-child {
    height: auto;
}

.fluent-wizard[position="left"]>ol>li:not(:last-child):after {
    content: "";
    position: absolute;
    left: 0;
    top: calc(var(--fluent-wizard-circle-size) + var(--fluent-wizard-spacing));
    bottom: var(--fluent-wizard-spacing);
    order: -1;
    transform: translateX(calc(var(--fluent-wizard-circle-size) / 2));
    width: 2px;
    background-color: var(--neutral-stroke-hover);
}

[dir="rtl"] .fluent-wizard[position="left"]>ol>li:not(:last-child):after {
    left: revert;
    transform: translateX(calc(var(--fluent-wizard-circle-size) / -2));
}

/* Wizard with steps on Top */
.fluent-wizard[position="top"]>ol>li {
    flex-direction: column;
    flex: 1;
    text-align: center;
}

.fluent-wizard[position="top"]>ol>li:before {
    width: var(--fluent-wizard-circle-size);
    height: var(--fluent-wizard-circle-size);
    margin-left: calc((100% - var(--fluent-wizard-circle-size)) / 2);
}

.fluent-wizard[position="top"]>ol>li:not(:last-child):after {
    content: "";
    position: absolute;
    left: calc(50% + calc(var(--fluent-wizard-circle-size) / 2 + var(--fluent-wizard-spacing)));
    right: unset;
    top: calc(var(--fluent-wizard-circle-size) / 2);
    width: calc(100% - var(--fluent-wizard-circle-size) - calc(var(--fluent-wizard-spacing) * 2));
    height: 2px;
    order: -1;
    background-color: var(--neutral-stroke-hover);
}


[dir="rtl"] .fluent-wizard[position="top"]>ol>li:not(:last-child):after {
    left: unset;
    right: calc(50% + calc(var(--fluent-wizard-circle-size) / 2 + var(--fluent-wizard-spacing)));
}

/* Icon */
.fluent-wizard>ol>li .fluent-wizard-icon {
    min-width: calc(1.2 * var(--fluent-wizard-circle-size));
    min-height: calc(1.2 * var(--fluent-wizard-circle-size));
}

/* Icon Number */
.fluent-wizard>ol>li .fluent-wizard-icon-number {
    margin-top: calc(var(--fluent-wizard-circle-size) * -1 - 5px);
    font-size: small;
    color: var(--accent-fill-rest);
    text-align: center;
    align-content: center;
}

.fluent-wizard[position="top"]>ol>li .fluent-wizard-icon-number {
    height: var(--fluent-wizard-circle-size);
}

.fluent-wizard[position="left"]>ol>li .fluent-wizard-icon-number {
    width: var(--fluent-wizard-circle-size);
    height: var(--fluent-wizard-circle-size);
}

.fluent-wizard>ol>li .fluent-wizard-icon-number[disabled] {
    opacity: var(--disabled-opacity);
}

.fluent-wizard>ol>li .fluent-wizard-icon-number[status='previous']:not([disabled]) {
    color: var(--foreground-on-accent-rest);
}

.fluent-wizard>ol>li .fluent-wizard-icon-number[status='current']:not([disabled]) {
    color: var(--foreground-on-accent-rest);
}

.fluent-wizard>ol>li .fluent-wizard-icon-number[status='next']:not([disabled]) {
    color: var(--accent-fill-rest);
}

/* Title */
.fluent-wizard>ol>li .fluent-wizard-title {
    margin-block-start: 2px;
    margin-block-end: 0px;
    white-space: nowrap;
}

.fluent-wizard>ol>li[status='next'] ::deep .fluent-wizard-title {
    color: var(--neutral-stroke-strong-rest);
}

.fluent-wizard>ol>li[status='current'] ::deep .fluent-wizard-title {
    font-weight: bold;
}

/* Summary */
.fluent-wizard>ol>li ::deep .fluent-wizard-summary {
    margin-block-start: 4px;
    margin-block-end: 0px;
    font-size: smaller;
}

.fluent-wizard>ol>li[status='current'] ::deep .fluent-wizard-summary {
    color: var(--accent-fill-rest);
}

.fluent-wizard>ol>li[status='next'] ::deep .fluent-wizard-summary {
    color: var(--neutral-stroke-strong-rest);
}

/* Body */
.fluent-wizard-body {
    margin: 10px;
}

/* Hidden */
@media (max-width: 599.98px) {
    .fluent-wizard>ol>li>div[hidden-when~="xs"] {
        display: none;
    }
}

@media (min-width: 600px) and (max-width: 959.98px) {
    .fluent-wizard>ol>li>div[hidden-when~="sm"] {
        display: none;
    }
}

@media (min-width: 960px) and (max-width: 1279.98px) {
    .fluent-wizard>ol>li>div[hidden-when~="md"] {
        display: none;
    }
}

@media (min-width: 1280px) and (max-width: 1919.98px) {
    .fluent-wizard>ol>li>div[hidden-when~="lg"] {
        display: none;
    }
}

@media (min-width: 1920px) and (max-width: 2559.98px) {
    .fluent-wizard>ol>li>div[hidden-when~="xl"] {
        display: none;
    }
}

@media (min-width: 2560px) {
    .fluent-wizard>ol>li>div[hidden-when~="xxl"] {
        display: none;
    }
}

/* Mobile-friendly wizard buttons */
.wizard-buttons-mobile {
    gap: 12px;
    flex-wrap: wrap;
    padding: 15px 10px;
}

/* Fixed wizard buttons at bottom on mobile */
@media (max-width: 767px) {
    .wizard-buttons-mobile {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background-color: var(--neutral-layer-1);
        border-top: 1px solid var(--neutral-stroke-divider-rest);
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        margin: 0;
        box-sizing: border-box;
    }

    /* Add padding to wizard content to prevent overlap with fixed buttons */
    .fluent-wizard[position="left"] .fluent-wizard-content {
        padding-bottom: 100px;
    }

    .fluent-wizard[position="top"] .fluent-wizard-content {
        padding-bottom: 100px;
    }
}

.wizard-btn {
    border: none;
    border-radius: 8px;
    padding: 15px 24px;
    font-size: 16px;
    font-weight: 600;
    min-height: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.wizard-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wizard-btn-secondary {
    background-color: #6c757d;
    color: white;
    min-width: 120px;
}

.wizard-btn-secondary:hover:not(:disabled) {
    background-color: #5a6268;
    transform: translateY(-1px);
}

.wizard-btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* .wizard-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
} */

.wizard-btn-submit {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.wizard-btn-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

/* Remove active/focus effects on mobile */
.wizard-btn:active,
.wizard-btn:focus {
    outline: none;
    box-shadow: none;
    transform: none;
}

.wizard-btn-primary:active,
.wizard-btn-primary:focus {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.wizard-btn-submit:active,
.wizard-btn-submit:focus {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Mobile responsive button widths */
@media (max-width: 767px) {
    .wizard-buttons-mobile {
        display: flex;
        flex-direction: row;
        gap: 10px;
        padding: 15px;
        padding-bottom: 20px;
        align-items: stretch;
        flex-wrap: nowrap;
        /* Fixed positioning properties already defined above */
    }

    /* Ensure buttons fill the exact space with no gaps */
    .wizard-btn-secondary+.wizard-btn-next,
    .wizard-btn-secondary+.wizard-btn-submit {
        flex: 1;
        max-width: calc(70% - 5px);
        /* Account for gap */
    }

    .wizard-btn-secondary {
        flex: 0 0 calc(30% - 5px);
        /* Account for gap */
        min-width: unset;
    }

    .wizard-btn-next:only-of-type {
        flex: 1;
        max-width: calc(70% - 5px);
    }

    /* Submit button - full width only when alone */
    .wizard-buttons-mobile .wizard-btn-submit:only-child {
        flex: 1;
        max-width: 100%;
    }

    /* Submit button when with previous */
    .wizard-btn-submit:not(:only-child) {
        flex: 1;
        max-width: calc(70% - 5px);
    }
}

/* Custom Wizard Confirm Dialog */
.wizard-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.wizard-confirm-dialog {
    background-color: var(--neutral-layer-1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: confirmDialogShow 0.3s ease-out;
}

@keyframes confirmDialogShow {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.wizard-confirm-header {
    padding: 15px 20px 0 20px;
    display: flex;
    justify-content: flex-end;
}

.wizard-confirm-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--neutral-foreground-hint);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.wizard-confirm-close:hover {
    background-color: var(--neutral-fill-hover);
    color: var(--neutral-foreground-rest);
}

.wizard-confirm-content {
    padding: 0 30px 20px 30px;
    text-align: center;
}

.wizard-confirm-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.wizard-confirm-content h3 {
    margin: 0 0 15px 0;
    color: var(--neutral-foreground-rest);
    font-size: 20px;
    font-weight: 600;
}

.wizard-confirm-content p {
    margin: 0 0 25px 0;
    color: var(--neutral-foreground-hint);
    font-size: 16px;
    line-height: 1.5;
}

.wizard-confirm-actions {
    padding: 0 30px 30px 30px;
    display: flex;
    justify-content: center;
}

.wizard-confirm-actions .wizard-btn {
    min-width: 140px;
}

/* FluentAccordion full width */
fluent-accordion {
    width: 100% !important;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .wizard-confirm-dialog {
        width: 95%;
        margin: 20px;
    }

    .wizard-confirm-content {
        padding: 0 20px 15px 20px;
    }

    .wizard-confirm-actions {
        padding: 0 20px 20px 20px;
    }

    .wizard-confirm-content h3 {
        font-size: 18px;
    }

    .wizard-confirm-content p {
        font-size: 14px;
    }
}

/* --- NavMenu Category Styling (Global) --- */
/* Moved from NavMenu.razor.css to avoid Blazor scope isolation issues */

.nav-category-section {
    margin-bottom: 2px;
    margin-top: 20px;
    /* Better spacing between sections */
}

/* First section shouldn't have top margin */
.nav-category-section:first-child {
    margin-top: 0;
}

.nav-category-header {
    color: #707070;
    font-weight: 500;
    padding: 0 16px 6px 16px;
    font-size: 11px;
    opacity: 1;
    letter-spacing: 0px;
}

/* Fallback/Force for FluentNavGroup and FluentNavLink to be neutral */
.nav-category-section fluent-nav-group svg path,
.nav-category-section fluent-nav-link svg path,
.nav-category-section .fluent-nav-group-icon svg path {
    fill: #707070 !important;
    opacity: 0.9;
}

/* ==========================================================================
   Vehicle Plate Input Component Styles
   ========================================================================== */

/* ==========================================================================
   Vehicle Plate Input - Visual Fixes (Round 3 - Decoupled)
   ========================================================================== */

/* Main Container - Exact Match of .plate-container aesthetics */
.vehicle-plate-input-wrapper .plate-input-box {
    display: inline-flex;
    align-items: center;
    position: relative;
    direction: ltr;

    /* Match .plate-container style exactly */
    height: 32px;
    /* Standard input height */
    width: auto;
    padding-left: 0;
    /* No padding, border handles the strip */

    background-color: var(--neutral-fill-input-rest);
    border: 1px solid var(--neutral-foreground-rest);
    /* Match Read-Only Border Color */
    border-left: 12px solid var(--accent-fill-rest);
    /* The Blue Strip */
    border-radius: 4px;

    box-sizing: border-box;
}

/* Blue Strip Elements - Positioned relative to container (negative left) */
/* Flag */
.vehicle-plate-input-wrapper .plate-input-box::before {
    content: url('/static/images/flag.svg');
    /* Use content url as in original */
    position: absolute;
    top: -4px;
    /* Matches original */
    left: -10px;
    /* Inside the 12px border */
    width: 8px;
    /* Matches original */
    height: auto;
    z-index: 2;
    background: none;
    /* Remove previous background-image */
}

/* 'IR' Text */
.vehicle-plate-input-wrapper .plate-input-box::after {
    content: 'IR';
    /* Matches original 'IR' not 'I.R.' */
    position: absolute;
    left: -11px;
    /* Centered in 12px border */
    bottom: 2px;

    width: 12px;
    font-size: 5px;
    line-height: 1;
    font-weight: normal;
    /* Original didn't specify bold on text, just font 5px */
    font-family: inherit;
    color: var(--foreground-on-accent-active);
    text-align: center;
    z-index: 2;
    pointer-events: none;
}

/* Focus State */
.vehicle-plate-input-wrapper .plate-input-box:focus-within {
    border-color: var(--accent-stroke-control-active);
    box-shadow: 0 0 0 1px var(--accent-stroke-control-active);
}

/* Inputs */
.vehicle-plate-input-wrapper .plate-input-field {
    border: none;
    background: transparent;
    font-family: 'B Yekan', Tahoma, sans-serif;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    padding: 0;
    margin: 0;
    outline: none;
    height: 100%;
    color: var(--neutral-foreground-rest);
}

.vehicle-plate-input-wrapper .plate-input-field:focus {
    background-color: var(--neutral-fill-input-active);
}

/* Dimensions - Matched closer to .plate-pt* classes */
/* Original: pt1=25, pt2=28, ltr=20, pt3=25 */
/* We need slightly more for Input behaviour but stick close */
.vehicle-plate-input-wrapper .plate-pt1 {
    width: 28px;
}

.vehicle-plate-input-wrapper .plate-pt2 {
    width: 34px;
}

.vehicle-plate-input-wrapper .plate-pt3 {
    width: 28px;
    border-left: 1px solid var(--neutral-foreground-rest);
    /* Match Read-Only Divider */
    margin-right: 0;
}

/* Letter Picker Trigger */
.vehicle-plate-input-wrapper .plate-ltr {
    width: 26px;
    /* Closer to 20px but need space for character */
    height: 100%;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    color: var(--neutral-foreground-rest);
}

.vehicle-plate-input-wrapper .plate-ltr:hover {
    background-color: var(--neutral-fill-stealth-hover);
}

/* Custom placeholder class to avoid generic style pollution (like cursor: wait) */
.vehicle-plate-input-wrapper .plate-ltr .plate-placeholder {
    color: var(--neutral-foreground-hint);
    font-size: 11px;
    cursor: pointer;
    /* Explicitly set to pointer */
}

/* Hide Spinners */
.vehicle-plate-input-wrapper .plate-input-field[type=number]::-webkit-inner-spin-button,
.vehicle-plate-input-wrapper .plate-input-field[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.vehicle-plate-input-wrapper .plate-input-field[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Letter Picker Overlay - Global but scoped by usage */
.letter-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    /* Dimming checks logic - usually overlay is dark even in light mode, or use --neutral-layer-card-container with opacity? Keep simple. */
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.letter-picker-dropdown {
    background-color: var(--neutral-layer-floating);
    /* Floating layer for dropdowns */
    border: 1px solid var(--neutral-stroke-layer-rest);
    border-radius: 8px;
    padding: 15px;
    width: 90%;
    max-width: 320px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--elevation-shadow-flyout);
    animation: fadeIn 0.2s ease-out;
    color: var(--neutral-foreground-rest);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.letter-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    direction: rtl;
}

.letter-item {
    background-color: var(--neutral-fill-stealth-rest);
    color: var(--neutral-foreground-rest);
    border: 1px solid var(--neutral-stroke-rest);
    border-radius: 6px;
    padding: 8px 0;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s;
}

@media (hover: hover) {
    .letter-item:hover {
        background-color: var(--neutral-fill-stealth-hover);
        border-color: var(--neutral-stroke-hover);
    }
}

.letter-item.selected {
    background-color: var(--accent-fill-rest);
    border-color: var(--accent-fill-rest);
    color: var(--foreground-on-accent-rest);
}

/* Vehicle Plate Input Mobile Optimization */
@media (max-width: 767px) {

    /* Scale ONLY the input box, not the wrapper, so the popup overlay isn't affected */
    .vehicle-plate-input-wrapper .plate-input-box {
        transform: scale(1.7);
        transform-origin: center top;
        display: inline-flex;
        /* Ensure it behaves correctly for scaling */
    }

    .vehicle-plate-input-wrapper {
        margin-bottom: 50px !important;
        /* Extra space for the scaled element */
        margin-top: 15px;
        display: flex;
        /* Center the scaled input */
        justify-content: center;
        width: 100%;
        transform: none !important;
        /* Reset wrapper transform */
    }

    /* Adjust popup for mobile */
    .letter-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        /* 4 columns as requested */
        gap: 12px;
    }

    .letter-item {
        padding: 12px 0;
        /* Larger touch targets */
        font-size: 18px;
    }

    .letter-picker-dropdown {
        width: 95%;
        /* Use more width on mobile */
        max-width: none;
    }
}

/* Vehicle Plate Color Themes */

/* Default / White Theme */
.vehicle-plate-input-wrapper .plate-input-box {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Yellow Theme (Taxi, Public, Agriculture) */
.plate-theme-yellow .plate-input-box {
    background-color: #FDD835 !important;
    /* Material Yellow 600 */
    color: #000000 !important;
}

.plate-theme-yellow .plate-input-field {
    color: #000000 !important;
}

.plate-theme-yellow .plate-ltr {
    color: #000000 !important;
}

.plate-theme-yellow .plate-pt3 {
    border-left-color: #000000 !important;
}

/* Red Theme (Government) */
.plate-theme-red .plate-input-box {
    background-color: #D32F2F !important;
    /* Material Red 700 */
    color: #FFFFFF !important;
}

.plate-theme-red .plate-input-field {
    color: #FFFFFF !important;
}

.plate-theme-red .plate-ltr {
    color: #FFFFFF !important;
}

.plate-theme-red .plate-pt3 {
    border-left-color: #FFFFFF !important;
}

/* Green Theme (Police, Army) */
.plate-theme-green .plate-input-box {
    background-color: #1B5E20 !important;
    /* Material Green 900 */
    color: #FFFFFF !important;
}

.plate-theme-green .plate-input-field {
    color: #FFFFFF !important;
}

.plate-theme-green .plate-ltr {
    color: #FFFFFF !important;
}

.plate-theme-green .plate-pt3 {
    border-left-color: #FFFFFF !important;
}

/* Blue Theme (Ministry of Defence, Diplomatic) */
.plate-theme-blue .plate-input-box {
    background-color: #0D47A1 !important;
    /* Material Blue 900 */
    color: #FFFFFF !important;
}

.plate-theme-blue .plate-input-field {
    color: #FFFFFF !important;
}

.plate-theme-blue .plate-ltr {
    color: #FFFFFF !important;
}

.plate-theme-blue .plate-pt1,
.plate-theme-blue .plate-pt2 {
    color: #FFFFFF !important;
}

.plate-theme-blue .plate-pt3 {
    border-left-color: #FFFFFF !important;
}

/* 
   VehiclePlateDisplay Component Support 
   These rules apply when the theme class is on the container itself (chained).
*/

/* Yellow Theme */
.plate-container.plate-theme-yellow,
.plate-container-x2.plate-theme-yellow {
    background-color: #FDD835 !important;
    color: #000000 !important;
}

.plate-container.plate-theme-yellow .plate-pt1,
.plate-container.plate-theme-yellow .plate-pt2,
.plate-container.plate-theme-yellow .plate-pt3,
.plate-container.plate-theme-yellow .plate-ltr,
.plate-container-x2.plate-theme-yellow .plate-pt1,
.plate-container-x2.plate-theme-yellow .plate-pt2,
.plate-container-x2.plate-theme-yellow .plate-pt3,
.plate-container-x2.plate-theme-yellow .plate-ltr {
    color: #000000 !important;
}

.plate-container.plate-theme-yellow .plate-pt3,
.plate-container-x2.plate-theme-yellow .plate-pt3 {
    border-left-color: #000000 !important;
}

/* Red Theme */
.plate-container.plate-theme-red,
.plate-container-x2.plate-theme-red {
    background-color: #D32F2F !important;
    color: #FFFFFF !important;
}

.plate-container.plate-theme-red .plate-pt1,
.plate-container.plate-theme-red .plate-pt2,
.plate-container.plate-theme-red .plate-pt3,
.plate-container.plate-theme-red .plate-ltr,
.plate-container-x2.plate-theme-red .plate-pt1,
.plate-container-x2.plate-theme-red .plate-pt2,
.plate-container-x2.plate-theme-red .plate-pt3,
.plate-container-x2.plate-theme-red .plate-ltr {
    color: #FFFFFF !important;
}

.plate-container.plate-theme-red .plate-pt3,
.plate-container-x2.plate-theme-red .plate-pt3 {
    border-left-color: #FFFFFF !important;
}

/* Green Theme */
.plate-container.plate-theme-green,
.plate-container-x2.plate-theme-green {
    background-color: #1B5E20 !important;
    color: #FFFFFF !important;
}

.plate-container.plate-theme-green .plate-pt1,
.plate-container.plate-theme-green .plate-pt2,
.plate-container.plate-theme-green .plate-pt3,
.plate-container.plate-theme-green .plate-ltr,
.plate-container-x2.plate-theme-green .plate-pt1,
.plate-container-x2.plate-theme-green .plate-pt2,
.plate-container-x2.plate-theme-green .plate-pt3,
.plate-container-x2.plate-theme-green .plate-ltr {
    color: #FFFFFF !important;
}

.plate-container.plate-theme-green .plate-pt3,
.plate-container-x2.plate-theme-green .plate-pt3 {
    border-left-color: #FFFFFF !important;
}

/* Blue Theme */
.plate-container.plate-theme-blue,
.plate-container-x2.plate-theme-blue {
    background-color: #0D47A1 !important;
    color: #FFFFFF !important;
}

.plate-container.plate-theme-blue .plate-pt1,
.plate-container.plate-theme-blue .plate-pt2,
.plate-container.plate-theme-blue .plate-pt3,
.plate-container.plate-theme-blue .plate-ltr,
.plate-container-x2.plate-theme-blue .plate-pt1,
.plate-container-x2.plate-theme-blue .plate-pt2,
.plate-container-x2.plate-theme-blue .plate-pt3,
.plate-container-x2.plate-theme-blue .plate-ltr {
    color: #FFFFFF !important;
}

.plate-container.plate-theme-blue .plate-pt3,
.plate-container-x2.plate-theme-blue .plate-pt3 {
    border-left-color: #FFFFFF !important;
}
/* ---------------------------------------------------------------
   Fluent dropdowns — make long option lists scrollable.

   FluentAutocomplete renders the option list as a plain
   <div role="listbox"> inside `.fluent-autocomplete-multiselect`,
   and FluentSelect renders an `<fluent-select>` whose listbox is
   in shadow DOM (the ::part(listbox) selector reaches it).

   Without these rules, lists with many options overflow the
   container and the user can't scroll to the rest.
   --------------------------------------------------------------- */
.fluent-autocomplete-multiselect div[role="listbox"] {
    max-height: 320px;
    overflow-y: auto;
}

fluent-select::part(listbox) {
    max-height: 320px;
    overflow-y: auto;
}

/* ==========================================================================
   Service Catalog (resident-facing) — Achareh-style navigation
   Breadcrumb + horizontal chip switcher + minimal selectable cards.
   ========================================================================== */

/* --- Breadcrumb --- */
.svc-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    /* Theme tokens so the breadcrumb stays legible in dark mode too. */
    color: var(--neutral-foreground-hint);
    margin-bottom: 16px;
}

.svc-breadcrumb a {
    color: var(--accent-foreground-rest);
    text-decoration: none;
    transition: color .15s ease;
}

.svc-breadcrumb a:hover {
    color: var(--accent-foreground-hover);
    text-decoration: underline;
}

.svc-breadcrumb .svc-bc-sep {
    color: var(--neutral-foreground-hint);
    font-size: 12px;
}

.svc-breadcrumb .svc-bc-current {
    color: var(--neutral-foreground-rest);
    font-weight: 600;
}

/* --- Horizontal chip switcher (no-back navigation) --- */
.svc-chipbar {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 2px 12px;
    margin-bottom: 12px;
    scrollbar-width: thin;
}

.svc-chipbar::-webkit-scrollbar {
    height: 6px;
}

.svc-chipbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* Matches the app-wide ".tabs-badge" filter tabs so the catalog/request
   switcher looks identical to the rest of the pages (theme-aware tokens). */
.svc-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    border-radius: calc(var(--control-corner-radius) * 1px);
    border: none;
    background: transparent;
    color: var(--neutral-foreground-rest);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.svc-chip:hover {
    background-color: var(--neutral-fill-stealth-hover);
    color: var(--neutral-foreground-rest);
}

.svc-chip.active {
    background-color: var(--accent-fill-active);
    color: var(--foreground-on-accent-rest);
    box-shadow: var(--elevation-shadow-card-rest);
}

.svc-chip .svc-chip-count {
    font-size: 11px;
    opacity: .75;
}

/* --- Minimal selectable cards (grid tiles) --- */
.svc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 74px;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid #e9eef3;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    cursor: pointer;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* slim accent strip on the start edge (right side in RTL) */
.svc-card::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    width: 4px;
    background: linear-gradient(180deg, #22d3ee, #0891b2);
    opacity: .6;
    transition: width .18s ease, opacity .18s ease;
}

.svc-card:hover {
    transform: translateY(-3px);
    border-color: #a5f3fc;
    box-shadow: 0 10px 24px rgba(8, 145, 178, 0.16);
}

.svc-card:hover::before {
    width: 6px;
    opacity: 1;
}

.svc-card-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.5;
    transition: color .18s ease;
}

.svc-card:hover .svc-card-title {
    color: #0e7490;
}

.svc-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.svc-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 2px 9px;
}

.svc-card-badge.accent {
    color: #0e7490;
    background: #ecfeff;
    border-color: #cffafe;
}

.svc-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: #0891b2;
}

/* --- Section heading for catalog pages --- */
.svc-page-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 4px 0 2px;
}

.svc-page-subtitle {
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 18px;
}

/* --- Operator call-to-action banner --- */
.svc-operator-call {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 18px;
    border-radius: 14px;
    border: 1px solid #bae6fd;
    background: linear-gradient(135deg, #f0f9ff 0%, #ecfeff 100%);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.svc-operator-call-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.svc-operator-call-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0891b2;
    color: #fff;
    flex: 0 0 auto;
}

.svc-operator-call-icon ::deep svg,
.svc-operator-call-icon svg {
    fill: #fff;
}

.svc-operator-call-label {
    font-size: 13px;
    color: #475569;
    font-weight: 600;
}

.svc-operator-call-number {
    display: inline-block;
    margin-top: 2px;
    font-size: 19px;
    font-weight: 800;
    color: #0e7490;
    letter-spacing: .5px;
    text-decoration: none;
    direction: ltr;
}

.svc-operator-call-number:hover {
    text-decoration: underline;
}

.svc-operator-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    border-radius: 999px;
    background: #0891b2;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    flex: 0 0 auto;
    transition: background .15s ease, transform .15s ease;
}

.svc-operator-call-btn:hover {
    background: #0e7490;
    transform: translateY(-1px);
}

.svc-operator-call-btn svg {
    fill: #fff;
}

@@media (max-width: 600px) {
    .svc-operator-call {
        flex-direction: column;
        align-items: stretch;
    }
    .svc-operator-call-btn {
        justify-content: center;
    }
}

/* --- Request cards (status-colored) --- */
.svc-req-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #e9eef3;
    border-inline-start-width: 5px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.svc-req-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.svc-req-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.5;
}

.svc-req-meta {
    font-size: 12.5px;
    color: #64748b;
    margin-top: 2px;
}

.svc-req-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
}

.svc-req-row-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.svc-req-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 12px;
}

.svc-req-price {
    font-size: 12px;
    font-weight: 600;
    color: #0e7490;
    background: #ecfeff;
    border-radius: 999px;
    padding: 4px 12px;
}

.svc-req-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
}

.svc-req-date {
    font-size: 11.5px;
    color: #94a3b8;
}

.svc-req-invoice-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #7c3aed;
    background: #f5f3ff;
    border: 1px solid #ede9fe;
    border-radius: 999px;
    padding: 4px 10px;
    text-decoration: none;
    transition: all .15s ease;
}

.svc-req-invoice-link:hover {
    background: #ede9fe;
    border-color: #c4b5fd;
    color: #6d28d9;
}

/* small colored dot used in status filter chips */
.svc-chip-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex: 0 0 auto;
}

/* --- Request detail page --- */
.svc-detail-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--neutral-stroke-divider-rest);
    border-inline-start-width: 5px;
    background: var(--neutral-layer-1);
    margin-bottom: 16px;
}

.svc-detail-hero-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.svc-detail-hero-icon .material-icons {
    font-size: 24px;
}

.svc-detail-hero-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.svc-detail-hero-status {
    font-size: 16px;
    font-weight: 700;
}

.svc-detail-hero-hint {
    font-size: 12.5px;
    color: var(--neutral-foreground-hint);
}

.svc-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 220px));
    justify-content: start;
    gap: 10px 14px;
}

.svc-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.svc-info-label {
    font-size: 12px;
    color: var(--neutral-foreground-hint);
}

.svc-info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral-foreground-rest);
}

.svc-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--neutral-foreground-rest);
    margin: 14px 0 8px;
}

/* Resident request-detail: action guide callout */
.svc-guide {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 14px 16px;
}

.svc-guide-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: #1d4ed8;
    margin-bottom: 8px;
}

.svc-guide-list {
    margin: 0;
    padding-right: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.svc-guide-list li {
    font-size: 13px;
    line-height: 1.9;
    color: #1e3a5f;
}

.svc-guide-list li strong {
    color: #1d4ed8;
}

/* Red (destructive) variant for stealth/outline Fluent buttons */
.svc-danger-btn {
    --neutral-stroke-rest: #dc2626;
    --neutral-stroke-hover: #b91c1c;
    --accent-fill-rest: #dc2626;
}

.svc-danger-btn::part(control) {
    color: #dc2626;
}

.svc-danger-btn:hover::part(control) {
    background: #fef2f2;
    color: #b91c1c;
}

/* Professional transactions grid: long money headers → smaller, single line. */
table.svc-tx-grid th,
.svc-tx-grid table.fluent-datagrid th {
    font-size: 12px;
    white-space: nowrap;
}

table.svc-tx-grid td,
.svc-tx-grid table.fluent-datagrid td {
    white-space: nowrap;
}

.svc-desc-text {
    font-size: 13.5px;
    color: var(--neutral-foreground-rest);
    line-height: 1.7;
    white-space: pre-wrap;
}

.svc-time-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.svc-time-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid var(--neutral-stroke-divider-rest);
    background: var(--neutral-layer-1);
    font-size: 13px;
}

.svc-time-item.approved {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.08);
}

.svc-time-item .material-icons {
    font-size: 18px;
    color: var(--neutral-foreground-hint);
}

/* Date + time-slot field pairs (reschedule / propose dialogs).
   Own label above each control so labels never get squeezed by the control. */
.svc-field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px 14px;
    width: 100%;
    margin-bottom: 10px;
}

.svc-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.svc-field-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--neutral-foreground-rest);
}

.svc-field > fluent-date-picker,
.svc-field > fluent-select {
    width: 100%;
}

/* Resident request-detail page: keep content in a comfortable centered column
   instead of stretching edge-to-edge on wide screens. */
.svc-detail-page {
    max-width: 900px;
    margin-inline: auto;
}

/* Rating block — constrained so the comment box doesn't span the whole card. */
.svc-rate {
    max-width: 520px;
}

.svc-rate-hint {
    font-size: 13px;
    color: var(--neutral-foreground-hint);
    margin: 0 0 10px;
}

.svc-rate-stars {
    margin-bottom: 12px;
}

/* "Awaiting invoice issuance" hint on a completed request card */
.svc-req-invoice-pending {
    font-size: 12px;
    font-weight: 600;
    color: #c2410c;
    background: #fff7ed;
    border-radius: 8px;
    padding: 3px 10px;
    white-space: nowrap;
}

/* Admin: attention-grabbing "requests without invoice" toggle */
.svc-noinvoice-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: #f97316;
    animation: svc-noinvoice-pulse 1.2s ease-in-out infinite;
}

.svc-noinvoice-btn.active {
    background: #c2410c;
    animation: none;
}

.svc-noinvoice-btn .svc-noinvoice-count {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 0 7px;
    font-size: 12px;
}

@keyframes svc-noinvoice-pulse {
    0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.55); transform: scale(1); }
    50% { box-shadow: 0 0 0 8px rgba(249, 115, 22, 0); transform: scale(1.04); }
    100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); transform: scale(1); }
}

@media (max-width: 767px) {
    .svc-card {
        padding: 14px;
        min-height: 84px;
    }

    .svc-card-title {
        font-size: 14px;
    }

    .svc-page-title {
        font-size: 19px;
    }
}

/* Professional-services filter bars: FluentTextField and FluentCombobox render
   their labels from different base components, so their label blocks differ by a
   few px and the input boxes fall out of line. Lay the bar out as a uniform grid
   (equal column widths, bottom-aligned cells) and force every field-label to an
   identical block height so all inputs share one baseline. Pages still using a
   FluentStack keep their inline flex styles; the grid applies to plain divs. */
.svc-filter-bar {
    /* Fixed 200px tracks — every cell matches its 200px control exactly, so
       rows stay column-aligned no matter how they wrap. */
    display: grid;
    grid-template-columns: repeat(auto-fill, 200px);
    gap: 14px 16px;
    align-items: end;
    width: 100%;
    padding: 4px 0;
}

    /* Each cell owns its own label + control so alignment doesn't depend on how
       each Fluent component renders its built-in label (comboboxes, text fields
       and date pickers all differ). Label sits on a fixed baseline; the control
       fills the 200px track width. */
    .svc-filter-cell {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
    }

    /* Wider field (e.g. free-text search) spans two 200px tracks. */
    .svc-filter-cell-wide {
        grid-column: span 2;
    }

    .svc-filter-label {
        font-size: 12px;
        line-height: 16px;
        height: 16px;
        color: var(--neutral-foreground-rest);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Neutralise the Fluent components' own top spacing so the control top
       edges line up across every cell in a row. */
    .svc-filter-cell fluent-text-field,
    .svc-filter-cell fluent-combobox,
    .svc-filter-cell fluent-date-picker {
        width: 100%;
        margin: 0;
    }

        .svc-filter-cell fluent-text-field::part(label),
        .svc-filter-cell fluent-combobox::part(label),
        .svc-filter-cell fluent-date-picker::part(label) {
            display: none;
        }

    .svc-filter-bar .svc-filter-actions {
        display: flex;
        gap: 8px;
        align-items: flex-end;
        /* Buttons span two tracks so «جست‌وجو» and «حذف فیلترها» sit side by side. */
        grid-column: span 2;
    }

@media (max-width: 480px) {
    .svc-filter-bar {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

        .svc-filter-bar .svc-filter-actions {
            grid-column: 1 / -1;
        }
}
