.doer-backend {
    background: #f5f7fb;
    color: #1f2937;
}

.doer-backend .header-container.container-xxl,
.doer-backend .main-container {
    max-width: 100%;
}

.doer-brand-logo {
    object-fit: contain;
}

.doer-sidebar-menu {
    padding-bottom: 6rem;
}

.doer-sidebar-menu > h2 {
    color: #8b93a7;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1;
    margin: 1.35rem 1.2rem .65rem;
    text-transform: uppercase;
}

.doer-sidebar-menu > hr {
    border-top: 1px solid rgba(136, 142, 168, 0.18);
    margin: 1rem 1.2rem .4rem;
}

.doer-sidebar-menu .menu > a.dropdown-toggle div:first-child,
.doer-sidebar-menu .menu > .dropdown-toggle div:first-child {
    align-items: center;
    display: inline-flex;
    gap: .9rem;
}

.doer-nav-icon {
    font-size: 1rem;
    min-width: 1rem;
    text-align: center;
}

.doer-layout-spacing {
    padding: 26px 20px 40px;
}

.doer-page-intro {
    align-items: flex-start;
    background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
    border: 1px solid rgba(47, 87, 211, 0.1);
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(31, 41, 55, 0.08);
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin: 0 0 1.5rem;
    padding: 1.4rem 1.5rem;
}

.doer-page-kicker {
    color: #2f57d3;
    display: inline-block;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .16em;
    margin-bottom: .55rem;
    text-transform: uppercase;
}

.doer-page-title {
    color: #1e293b;
    font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.02;
    margin: 0 0 .55rem;
}

.doer-page-copy {
    color: #64748b;
    font-size: .96rem;
    line-height: 1.7;
    margin: 0;
    max-width: 52rem;
}

.doer-page-chip {
    background: #111827;
    border-radius: 18px;
    color: #fff;
    flex: 0 0 auto;
    min-width: 180px;
    padding: 1rem 1.1rem;
}

.doer-page-chip span {
    color: rgba(255,255,255,.7);
    display: block;
    font-size: .78rem;
    margin-bottom: .35rem;
    text-transform: uppercase;
}

.doer-page-chip strong {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
}

.doer-header-copy {
    display: flex;
    flex-direction: column;
    gap: .05rem;
    margin-left: .8rem;
}

.doer-header-copy strong {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 800;
}

.doer-header-eyebrow {
    color: #7c8798;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.doer-status-pill {
    align-items: center;
    background: #eef4ff;
    border: 1px solid rgba(47, 87, 211, 0.1);
    border-radius: 999px;
    color: #2748ba;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 700;
    gap: .45rem;
    margin-right: .5rem;
    padding: .55rem .85rem;
}

.doer-topbar-mini {
    color: #4b5563;
    font-size: .82rem;
    font-weight: 700;
}

.doer-backend .dropdown-menu {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    padding: .65rem;
}

.doer-backend .dropdown-menu .dropdown-item {
    border-radius: 12px;
    margin-bottom: .15rem;
    padding: .7rem .85rem;
}

.doer-backend .dropdown-menu .dropdown-item a,
.doer-backend .dropdown-menu .dropdown-item span {
    color: #334155;
    font-weight: 600;
}

.doer-backend .doer-menu-action {
    width: 100%;
    border: 0;
    background: transparent;
    color: #334155;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    text-align: left;
}

.doer-backend .doer-menu-action:focus-visible {
    outline: 3px solid #0e74bb;
    outline-offset: 3px;
}

.doer-backend .profile-info {
    border-bottom: 1px solid rgba(136, 142, 168, 0.18);
    margin: 0 1rem;
    padding: 1rem 0 1.1rem;
}

.doer-backend .profile-info .profile-img img {
    border-radius: 16px;
    height: 48px;
    object-fit: cover;
    width: 48px;
}

.doer-backend .profile-info .profile-content h6 {
    color: #1f2937;
    font-size: .98rem;
    font-weight: 800;
    margin-bottom: .15rem;
}

.doer-backend .profile-info .profile-content p {
    color: #6b7280;
    font-size: .82rem;
}

.doer-backend .footer-wrapper {
    margin-top: 1.5rem;
    padding: 0 4px 20px;
}

.doer-backend .footer-wrapper p {
    color: #7c8798;
}

.doer-backend .metric-card,
.doer-backend .portal-card,
.doer-backend .portal-table-card,
.doer-backend .portal-map-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.doer-backend .metric-icon {
    background: linear-gradient(135deg, #2f57d3 0%, #5c7cff 100%);
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(47, 87, 211, 0.22);
    height: 54px;
    width: 54px;
}

.doer-backend .portal-stats-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.doer-backend .portal-section-title {
    color: #111827;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.doer-backend .portal-table-card table {
    width: 100%;
}

.doer-backend .portal-table-card thead th {
    background: #f8fafc;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    color: #64748b;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.doer-backend .portal-table-card tbody td {
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    color: #334155;
    vertical-align: middle;
}

.doer-backend .sidebar-wrapper .menu-categories .menu.active > .dropdown-toggle,
.doer-backend .sidebar-wrapper .menu-categories .menu > .dropdown-toggle:hover {
    background: linear-gradient(90deg, rgba(47, 87, 211, 0.10), rgba(47, 87, 211, 0.04));
    border-radius: 14px;
    color: #1d4ed8;
}

.doer-backend .sidebar-wrapper .menu-categories .submenu {
    padding-left: .35rem;
}

.doer-backend .sidebar-wrapper .menu-categories .submenu li a {
    border-radius: 12px;
    color: #6b7280;
    padding: .62rem 1rem .62rem 2.8rem;
}

.doer-backend .sidebar-wrapper .menu-categories .submenu li a:hover {
    background: rgba(47, 87, 211, 0.06);
    color: #1d4ed8;
}

.doer-backend .header.navbar {
    backdrop-filter: blur(10px);
}

.doer-backend .doer-auth-shell {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
}

.doer-backend .doer-auth-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
    max-width: 1120px;
    overflow: hidden;
    width: 100%;
}

.doer-backend .doer-auth-sidebar {
    background: linear-gradient(160deg, #111827 0%, #1d4ed8 100%);
    color: #fff;
    min-height: 100%;
    padding: 2rem;
}

.doer-backend .doer-auth-main {
    padding: 2rem;
}

.doer-backend .doer-mobile-toggle {
    display: none;
}

@media (max-width: 991.98px) {
    .doer-page-intro {
        flex-direction: column;
    }

    .doer-page-chip {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .doer-layout-spacing {
        padding: 18px 10px 26px;
    }

    .doer-header-search .doer-header-copy,
    .doer-status-pill {
        display: none;
    }
}

/* Customer portal request and review flow */
.portal-backend {
    background: #f6f7f9;
}

.portal-backend .doer-wordmark {
    color: #111827 !important;
    font-size: 1.55rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.045em;
    line-height: 1;
}

.portal-backend #sidebar .theme-brand .nav-logo {
    align-items: center;
}

.portal-backend #sidebar .theme-brand div.theme-text {
    margin-left: 0;
}

.portal-backend .header.navbar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.portal-backend .doer-header-copy {
    margin-left: 0.65rem;
}

.portal-backend .doer-header-copy strong {
    font-size: 0.95rem;
}

.portal-backend .profile-info {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.portal-backend .sidebar-wrapper .menu-categories .menu > .dropdown-toggle {
    border-radius: 8px;
    margin-bottom: 4px;
    min-height: 46px;
}

.portal-backend .sidebar-wrapper .menu-categories .menu.active > .dropdown-toggle,
.portal-backend .sidebar-wrapper .menu-categories .menu > .dropdown-toggle:hover {
    background: #eef2ff !important;
    border-radius: 8px;
    color: #2547b8 !important;
}

.portal-backend .sidebar-wrapper .menu-categories .menu.active > .dropdown-toggle span,
.portal-backend .sidebar-wrapper .menu-categories .menu.active > .dropdown-toggle i,
.portal-backend .sidebar-wrapper .menu-categories .menu > .dropdown-toggle:hover span,
.portal-backend .sidebar-wrapper .menu-categories .menu > .dropdown-toggle:hover i {
    color: #2547b8 !important;
}

.portal-backend .doer-layout-spacing {
    padding: 22px 28px 36px;
}

.portal-backend .portal-section {
    max-width: 1180px;
    padding: 0 0 24px;
}

.portal-backend .portal-page-head {
    gap: 8px;
    margin: 20px 0 22px;
}

.portal-backend .portal-page-title {
    color: #111827;
    font-size: clamp(2rem, 3vw, 2.55rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.portal-backend .portal-page-copy {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.55;
    margin: 0;
    max-width: 700px;
}

.portal-backend .portal-flow-banner {
    background: #fff;
    border: 1px solid #e1e5eb;
    border-radius: 10px;
    box-shadow: none;
    color: #111827;
    gap: 0;
    list-style: none;
    margin: 0 0 18px;
    padding: 14px 18px;
}

.portal-backend .portal-flow-step {
    gap: 10px;
    min-height: 42px;
    padding-right: 18px;
    position: relative;
}

.portal-backend .portal-flow-step:not(:last-child)::after {
    background: #e5e7eb;
    content: "";
    height: 1px;
    position: absolute;
    right: 18px;
    width: min(22%, 72px);
}

.portal-backend .portal-flow-step span {
    background: #3157d5;
    border-radius: 50%;
    box-shadow: none;
    color: #fff;
    flex: 0 0 30px;
    font-size: 0.8rem;
    height: 30px;
    width: 30px;
}

.portal-backend .portal-flow-step strong {
    color: #273244;
    font-size: 0.9rem;
    font-weight: 700;
}

.portal-backend .portal-checkout-grid {
    align-items: stretch;
}

.portal-backend .portal-map-card,
.portal-backend .portal-request-panel,
.portal-backend .portal-rating-card,
.portal-backend .portal-new-request-card {
    background: #fff;
    border: 1px solid #e1e5eb;
    border-radius: 12px;
    box-shadow: none;
}

.portal-backend .portal-map-card {
    height: 100%;
    min-height: 520px;
    overflow: hidden;
}

.portal-backend #map {
    height: 100%;
    min-height: 520px;
    width: 100%;
}

.portal-backend .portal-request-panel {
    grid-column: span 2 / span 2;
    min-height: 520px;
    overflow: visible;
    position: relative;
    width: 100%;
}

.portal-backend .portal-request-panel--manual,
.portal-backend .portal-request-panel--active {
    grid-column: auto;
    min-height: 0;
}

.portal-backend .portal-single-flow {
    margin: 0 auto;
    max-width: 760px;
    width: 100%;
}

.portal-backend .portal-request-panel__body {
    height: 100%;
    overflow: visible;
    padding: 0;
    width: 100%;
}

.portal-backend .portal-new-request-card,
.portal-backend .portal-rating-card {
    border: 0;
    padding: 28px;
}

.portal-backend .portal-new-request-head {
    margin-bottom: 24px;
}

.portal-backend .portal-new-request-head h2,
.portal-backend .portal-rating-header h2 {
    color: #111827;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.25;
    margin: 0 0 6px;
}

.portal-backend .portal-new-request-head p,
.portal-backend .portal-rating-header p,
.portal-backend .portal-location-capture p {
    color: #667085;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.portal-backend .portal-field {
    margin-bottom: 20px;
}

.portal-backend .portal-field > label,
.portal-backend .portal-rating-form legend {
    color: #273244;
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.portal-backend .portal-field > label span {
    color: #7b8493;
    font-size: 0.78rem;
    font-weight: 500;
    margin-left: 5px;
}

.portal-backend .portal-field input,
.portal-backend .portal-field select,
.portal-backend .portal-field textarea {
    background: #fff;
    border: 1px solid #cfd5df;
    border-radius: 8px;
    color: #172033;
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.4;
    outline: none;
    padding: 12px 13px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    width: 100%;
}

.portal-backend .portal-field input,
.portal-backend .portal-field select {
    min-height: 46px;
}

.portal-backend .portal-field textarea {
    min-height: 116px;
    resize: vertical;
}

.portal-backend .portal-field input:focus,
.portal-backend .portal-field select:focus,
.portal-backend .portal-field textarea:focus {
    border-color: #3157d5;
    box-shadow: 0 0 0 3px rgba(49, 87, 213, 0.14);
}

.portal-backend .portal-field input::placeholder,
.portal-backend .portal-field textarea::placeholder {
    color: #8a94a4;
    font-weight: 400;
}

.portal-backend .portal-location-capture {
    align-items: center;
    background: #f7f8fa;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    display: grid;
    gap: 14px 18px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: -4px 0 20px;
    padding: 14px;
}

.portal-backend .portal-location-capture strong {
    color: #273244;
    display: block;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.portal-backend .portal-location-button {
    background: #fff;
    border: 1px solid #b9c2cf;
    border-radius: 8px;
    color: #273244;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    min-height: 44px;
    padding: 9px 13px;
    white-space: nowrap;
}

.portal-backend .portal-location-button:hover {
    background: #eef2ff;
    border-color: #3157d5;
    color: #2547b8;
}

.portal-backend .portal-location-button:focus-visible,
.portal-backend .portal-submit-button:focus-visible,
.portal-backend .portal-rating-option:has(input:focus-visible) {
    outline: 3px solid rgba(49, 87, 213, 0.32);
    outline-offset: 2px;
}

.portal-backend .portal-location-button:disabled,
.portal-backend .portal-submit-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.portal-backend .portal-location-error {
    color: #b42318;
    font-size: 0.82rem;
    grid-column: 1 / -1;
    margin: 0;
}

.portal-backend .portal-field-error {
    color: #b42318;
    font-size: 0.82rem;
    line-height: 1.4;
    margin: 7px 0 0;
}

.portal-backend .portal-request-summary {
    align-items: center;
    border-top: 1px solid #e5e7eb;
    display: grid;
    gap: 6px 16px;
    grid-template-columns: 1fr auto;
    margin-top: 4px;
    padding-top: 20px;
}

.portal-backend .portal-request-summary > span {
    color: #667085;
    font-size: 0.86rem;
}

.portal-backend .portal-request-summary > strong {
    color: #172033;
    font-size: 0.95rem;
    font-weight: 800;
}

.portal-backend .portal-submit-button {
    background: #3157d5;
    border: 1px solid #3157d5;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 700;
    grid-column: 1 / -1;
    margin-top: 10px;
    min-height: 46px;
    padding: 11px 18px;
    text-align: center;
    transition: background-color 150ms ease, border-color 150ms ease;
    width: 100%;
}

.portal-backend .portal-submit-button:hover {
    background: #2547b8;
    border-color: #2547b8;
}

.portal-backend .portal-rating-card {
    margin: 0 auto;
    max-width: 720px;
}

.portal-backend .portal-rating-header {
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 22px;
}

.portal-backend .portal-rating-avatar {
    border-radius: 50%;
    height: 64px;
    object-fit: cover;
    width: 64px;
}

.portal-backend .portal-status-icon {
    align-items: center;
    background: #eef2ff;
    border-radius: 50%;
    color: #3157d5;
    display: flex;
    flex: 0 0 56px;
    height: 56px;
    justify-content: center;
    width: 56px;
}

.portal-backend .portal-status-details {
    display: grid;
    gap: 18px;
    margin: 0;
}

.portal-backend .portal-status-details div {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 16px;
}

.portal-backend .portal-status-details div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.portal-backend .portal-status-details dt {
    color: #667085;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.portal-backend .portal-status-details dd {
    color: #273244;
    font-size: 0.95rem;
    margin: 0;
}

.portal-backend .portal-rating-form fieldset {
    border: 0;
    margin: 0 0 22px;
    min-width: 0;
    padding: 0;
}

.portal-backend .portal-rating-options {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.portal-backend .portal-rating-option {
    align-items: center;
    background: #fff;
    border: 1px solid #d6dbe3;
    border-radius: 8px;
    color: #536072;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
    min-height: 78px;
    padding: 8px 5px;
    text-align: center;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.portal-backend .portal-rating-option:hover {
    background: #f7f8fa;
    border-color: #aab3c1;
}

.portal-backend .portal-rating-option:has(input:checked) {
    background: #eef2ff;
    border-color: #3157d5;
    color: #2547b8;
}

.portal-backend .portal-rating-option input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.portal-backend .portal-rating-star {
    color: #98a2b3;
    font-size: 1.35rem;
    line-height: 1;
}

.portal-backend .portal-rating-option:has(input:checked) .portal-rating-star {
    color: #e99b19;
}

.portal-backend .portal-rating-number {
    font-size: 0.8rem;
    font-weight: 800;
}

.portal-backend .portal-rating-word {
    font-size: 0.7rem;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .portal-backend .portal-request-panel {
        grid-column: span 5 / span 5;
        min-height: 0;
    }

    .portal-backend .portal-map-card,
    .portal-backend #map {
        min-height: 360px;
    }
}

@media (max-width: 767.98px) {
    .portal-backend .doer-layout-spacing {
        padding: 14px 12px 28px;
    }

    .portal-backend .portal-page-head {
        margin-top: 12px;
    }

    .portal-backend .portal-page-title {
        font-size: 1.85rem;
    }

    .portal-backend .portal-flow-banner {
        align-items: stretch;
        padding: 10px 14px;
    }

    .portal-backend .portal-flow-step {
        padding: 6px 0;
    }

    .portal-backend .portal-flow-step:not(:last-child)::after {
        bottom: -1px;
        left: 40px;
        right: auto;
        width: calc(100% - 40px);
    }

    .portal-backend .portal-new-request-card,
    .portal-backend .portal-rating-card {
        padding: 20px;
    }

    .portal-backend .portal-location-capture {
        grid-template-columns: 1fr;
    }

    .portal-backend .portal-location-button {
        width: 100%;
    }

    .portal-backend .portal-rating-options {
        gap: 5px;
    }

    .portal-backend .portal-rating-option {
        min-height: 64px;
    }

    .portal-backend .portal-rating-word {
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        height: 1px;
        overflow: hidden;
        position: absolute;
        white-space: nowrap;
        width: 1px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portal-backend .portal-field input,
    .portal-backend .portal-field select,
    .portal-backend .portal-field textarea,
    .portal-backend .portal-rating-option,
    .portal-backend .portal-submit-button {
        transition: none;
    }
}
