:root {
    --blue: #1954d4;
    --blue-deep: #1747b7;
    --blue-soft: #2f6cf0;
    --hero-text: #ffffff;
    --hero-accent: #ffb1ac;
    --page-bg: #f7f8fb;
    --card-bg: #ffffff;
    --text: #10131a;
    --muted: #667085;
    --line: #d8dde6;
    --shadow: 0 18px 50px rgba(17, 24, 39, 0.10);
    --red: #ff4a4a;
    --red-dark: #ea3b3b;
    --red-soft: #fff1f1;
    --navy: #1f2740;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    color: var(--text);
    background: #fff;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

.procure-signup {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(460px, 0.92fr);
    background: #fff;
}

.signup-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
    color: var(--hero-text);
    min-height: 100vh;
    padding: 84px 0 0;
}

.signup-hero::before,
.signup-hero::after {
    content: '';
    position: absolute;
    inset: auto;
    pointer-events: none;
}

.signup-hero::before {
    left: 0;
    right: 0;
    bottom: 0;
    height: 250px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.03) 100%),
        linear-gradient(135deg, transparent 66%, rgba(255,255,255,0.07) 66% 68%, transparent 68% 100%),
        linear-gradient(45deg, transparent 72%, rgba(255,255,255,0.09) 72% 74%, transparent 74% 100%);
    opacity: 0.8;
}

.signup-hero::after {
    left: 58%;
    bottom: 44px;
    width: 360px;
    height: 180px;
    border: 2px solid rgba(255,255,255,0.1);
    border-bottom: 0;
    clip-path: polygon(0 100%, 14% 38%, 28% 48%, 45% 18%, 62% 60%, 78% 38%, 100% 100%);
    opacity: 0.75;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(100%, 780px);
    margin-left: 92px;
    padding-right: 30px;
}

.hero-copy {
    max-width: 620px;
    margin-top: 78px;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(50px, 5.2vw, 82px);
    line-height: 0.98;
    letter-spacing: -2.2px;
    font-weight: 800;
}

.hero-copy h1 span {
    color: var(--hero-accent);
}

.hero-copy p {
    max-width: 640px;
    margin: 24px 0 0;
    font-size: 19px;
    line-height: 1.6;
    color: rgba(255,255,255,0.96);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 58px;
}

.play-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 10px rgba(255,255,255,0.05) inset;
}

.play-badge i {
    font-size: 20px;
    margin-left: 4px;
}

.hero-action-link {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
}

.hero-divider {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.65);
}

.hero-stage {
    margin-top: 72px;
    width: min(100%, 640px);
    min-height: 390px;
    position: relative;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(18px) scale(0.99);
    transition: opacity 420ms ease, transform 420ms ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.hero-card {
    width: min(560px, 100%);
    color: #fff;
    text-align: center;
}

.quote-card {
    padding: 40px 22px 28px;
}

.quote-card blockquote {
    margin: 0;
    font-size: clamp(28px, 2.5vw, 48px);
    line-height: 1.22;
    font-weight: 500;
    letter-spacing: -0.4px;
}

.quote-divider {
    height: 1px;
    width: 100%;
    margin: 34px auto 16px;
    background: rgba(255,255,255,0.25);
}

.quote-author {
    letter-spacing: 5px;
    color: #ff937e;
    font-size: 14px;
    font-weight: 700;
}

.quote-role {
    margin-top: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.88);
    font-weight: 600;
}

.feature-card {
    text-align: left;
    padding: 18px 12px 18px 8px;
}

.feature-title {
    max-width: 430px;
    margin: 0 0 26px 0;
    font-size: clamp(30px, 3vw, 48px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1px;
}

.feature-list {
    display: grid;
    gap: 22px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 380px;
    color: rgba(255,255,255,0.95);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 500;
}

.feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.95);
    color: var(--red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.hero-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 34px;
}

.hero-dot {
    width: 28px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,0.34);
}

.hero-dot.active {
    width: 40px;
    background: #ff7b73;
}

.trusted-strip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 118px;
    background: rgba(255,255,255,0.1);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 92px 22px;
    display: flex;
    align-items: end;
}

.trusted-strip span {
    display: block;
    width: 100%;
    text-align: center;
    letter-spacing: 4px;
    font-size: 13px;
    color: rgba(255,255,255,0.92);
    font-weight: 800;
}

.signup-panel {
    background: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 20px;
}

.signup-card {
    width: min(100%, 530px);
    padding: 18px 12px 18px 14px;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border: 3px solid var(--red);
    border-radius: 8px;
    position: relative;
    flex: 0 0 auto;
}

.brand-mark::before {
    content: '';
    position: absolute;
    inset: 5px 8px;
    border: 3px solid var(--red);
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
    border-bottom-left-radius: 11px;
    border-bottom-right-radius: 11px;
    transform: skewY(0deg);
}

.brand-copy .brand-name {
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    color: #30343d;
}

.brand-copy .brand-sub {
    font-size: 26px;
    line-height: 1;
    font-weight: 800;
    color: #0b0f17;
    margin-top: 1px;
}

.signup-card h2,
.org-card h2 {
    margin: 0 0 24px;
    font-size: clamp(34px, 3vw, 46px);
    line-height: 1.06;
    letter-spacing: -1.1px;
    font-weight: 700;
    color: #0f1721;
}

.signup-form {
    display: grid;
    gap: 12px;
}

.field {
    display: grid;
    gap: 5px;
}

.field-label {
    font-size: 13px;
    font-weight: 600;
    color: #333941;
}

.field-box,
.phone-box,
.select-box {
    min-height: 54px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.field-box:focus-within,
.phone-box:focus-within,
.select-box:focus-within {
    border-color: #7ea2ff;
    box-shadow: 0 0 0 3px rgba(47, 108, 240, 0.12);
}

.field-icon {
    width: 16px;
    color: #7a808d;
    flex: 0 0 auto;
    text-align: center;
}

.field-box input,
.field-box select,
.phone-box input,
.phone-code,
.select-box select,
.org-input,
.org-select {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #1d2330;
    font-size: 15px;
    min-width: 0;
}

.field-box input::placeholder,
.phone-box input::placeholder,
.select-box select,
.phone-code,
.org-input::placeholder,
.org-select {
    color: #6b7280;
}

.field-box select,
.select-box select,
.phone-code,
.org-select {
    appearance: none;
    padding-right: 18px;
    background-image: linear-gradient(45deg, transparent 50%, #98a1b1 50%), linear-gradient(135deg, #98a1b1 50%, transparent 50%);
    background-position: calc(100% - 12px) 22px, calc(100% - 6px) 22px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.field-box input,
.phone-box input,
.org-input {
    height: 52px;
}

.phone-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
}

.phone-row .phone-code-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-right: 1px solid var(--line);
    min-height: 54px;
}

.phone-code-wrap i {
    color: #7a808d;
    font-size: 14px;
}

.phone-code {
    padding-right: 6px;
}

.phone-row input {
    border: 0;
    outline: 0;
    padding: 0 14px;
    min-width: 0;
}

.phone-row:focus-within {
    border-color: #7ea2ff;
    box-shadow: 0 0 0 3px rgba(47, 108, 240, 0.12);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.field-error,
.notice.error,
.server-error,
.validation-error {
    color: var(--red);
    font-size: 13px;
    line-height: 1.35;
    margin: 0;
}

.notice.error {
    margin-bottom: 12px;
    background: var(--red-soft);
    border: 1px solid #f4c8c8;
    padding: 10px 12px;
    border-radius: 10px;
}

.field.is-invalid .field-box,
.field.is-invalid .phone-row,
.field.is-invalid .select-box {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(255, 74, 74, 0.08);
}

.signup-note {
    margin: 4px 0 0;
    font-size: 12px;
    color: #667085;
}

.signup-note strong {
    color: #1b2433;
}

.terms-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #384050;
    margin-top: 2px;
}

.terms-row input {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.terms-row a,
.small-link {
    color: #0d5bd7;
    text-decoration: underline;
}

.primary-btn {
    height: 58px;
    border: 0;
    border-radius: 12px;
    background: var(--red);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(255, 74, 74, 0.23);
    transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.primary-btn:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}

.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0 14px;
    color: #101622;
    font-size: 14px;
    font-weight: 600;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #d9dde5;
}

.social-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-btn {
    width: 62px;
    height: 50px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3d4657;
    font-size: 19px;
    box-shadow: 0 4px 12px rgba(17,24,39,0.04);
}

.social-btn.google {
    color: #ea4335;
}

.social-btn.facebook {
    color: #1877f2;
}

.social-btn.linkedin {
    color: #0a66c2;
}

.social-btn.x {
    color: #111111;
}

.social-btn.azure {
    color: #5a67d8;
}

.signup-footer {
    margin-top: 18px;
    font-size: 15px;
    color: #374151;
}

.signup-footer a {
    color: #0d5bd7;
    font-weight: 700;
}

.callback-pill {
    position: fixed;
    right: 18px;
    bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    z-index: 25;
}

.callback-bubble {
    padding: 13px 16px;
    background: #fff;
    border-radius: 10px 10px 0 10px;
    box-shadow: var(--shadow);
    color: #2d3645;
    font-size: 15px;
    font-weight: 700;
}

.callback-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #5468ff;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 28px rgba(84, 104, 255, 0.32);
    font-size: 22px;
}

/* OTP overlay */
body.otp-open {
    overflow: hidden;
}

.otp-page-wrap {
    position: fixed;
    inset: 0;
}

.otp-bg-frame {
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.otp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(58, 67, 88, 0.58);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 9999;
}

.otp-modal {
    width: min(100%, 500px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
    padding: 36px 38px 30px;
    text-align: center;
    position: relative;
}

.otp-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ececec;
    color: #8e8e8e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    text-decoration: none;
}

.otp-icon-wrap {
    width: 74px;
    height: 74px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #e8edf8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.otp-icon {
    color: #ff6f3f;
    font-size: 38px;
}

.otp-modal h3 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.otp-modal p {
    margin: 0;
    color: #4f5969;
    font-size: 15px;
}

.otp-phone {
    margin-top: 14px !important;
    font-size: 17px;
    color: #1b2432 !important;
    font-weight: 600;
}

.otp-phone a {
    color: #1f6be2;
    text-decoration: none;
    font-weight: 700;
}

.otp-input {
    margin-top: 16px;
    width: min(100%, 330px);
    height: 48px;
    border: 1px solid #d8dbe2;
    border-radius: 4px;
    padding: 0 14px;
    font-size: 16px;
    outline: none;
}

.otp-input:focus {
    border-color: #1f6be2;
    box-shadow: 0 0 0 3px rgba(31, 107, 226, 0.10);
}

.otp-resend {
    margin-top: 12px !important;
    font-size: 14px;
    color: #8e97a6 !important;
}

.otp-resend a {
    color: #7fb1ff;
    text-decoration: none;
    font-weight: 700;
}

.otp-info {
    margin-top: 8px !important;
    color: #1e7d35 !important;
    font-size: 14px !important;
}

.otp-verify-btn {
    margin-top: 20px;
    width: 118px;
    height: 46px;
    border: 0;
    border-radius: 8px;
    background: #2f7ee6;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
}

/* Organization setup */
.org-page {
    min-height: 100vh;
    background:
        linear-gradient(180deg, #f8f8fb 0%, #f5f6fb 100%);
}

.org-topbar {
    height: 58px;
    background: #22283f;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 0 rgba(255,255,255,0.04) inset;
}

.org-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.org-brand-icon {
    width: 22px;
    height: 22px;
    border: 2px solid #fff;
    border-radius: 6px;
    position: relative;
}

.org-brand-icon::before {
    content: '';
    position: absolute;
    inset: 3px 5px;
    border: 2px solid #fff;
    border-radius: 5px;
}

.org-shell {
    min-height: calc(100vh - 58px);
    background:
        radial-gradient(circle at 0 0, rgba(0,0,0,0.02) 0 1px, transparent 1px) 0 0 / 40px 40px,
        linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.92));
    display: flex;
    align-items: start;
    justify-content: center;
    padding: 28px 16px 40px;
}

.org-card {
    width: min(100%, 540px);
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 22px 24px 24px;
    border: 1px solid #eef1f6;
}

.org-greeting {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #252b38;
}

.org-card h2 {
    text-align: center;
    margin-bottom: 20px;
}

.org-form {
    display: grid;
    gap: 12px;
}

.org-form label {
    display: block;
    font-size: 14px;
    color: #5a6272;
    margin-bottom: 6px;
    font-weight: 600;
}

.org-input,
.org-select {
    height: 44px;
    border: 1px solid #d8dde6;
    border-radius: 8px;
    padding: 0 14px;
    background: #fff;
}

.org-select {
    padding-right: 30px;
}

.org-field.is-invalid .org-input,
.org-field.is-invalid .org-select {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(255, 74, 74, 0.08);
}

.org-field .field-error {
    margin-top: 4px;
}

.org-row {
    display: grid;
    gap: 12px;
}

.org-row.two {
    grid-template-columns: 1fr 1fr;
}

.org-add-address {
    color: #2f73ef;
    text-decoration: none;
    font-weight: 700;
    margin-top: -2px;
}

.org-settings {
    border-left: 1px solid #eceff4;
    padding-left: 14px;
    display: grid;
    gap: 9px;
    color: #5f6674;
    font-size: 14px;
}

.org-settings strong {
    color: #233044;
    font-weight: 700;
}

.org-settings span {
    color: #687286;
}

.org-grid {
    display: grid;
    gap: 10px;
}

.org-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #384050;
    line-height: 1.5;
    margin-top: 2px;
}

.org-check input {
    margin-top: 3px;
    width: 16px;
    height: 16px;
}

.org-field.is-invalid .org-check {
    color: var(--red);
}

.save-btn {
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: #2f79ea;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(47, 121, 234, 0.22);
}

@media (max-width: 1180px) {
    .procure-signup {
        grid-template-columns: 1fr;
    }

    .signup-hero {
        min-height: auto;
        padding: 64px 0 120px;
    }

    .hero-inner {
        width: min(100%, 820px);
        margin: 0 auto;
        padding: 0 24px;
    }

    .signup-panel {
        min-height: auto;
        padding: 32px 18px 40px;
    }

    .signup-card {
        width: min(100%, 620px);
        padding: 0;
    }
}

@media (max-width: 760px) {
    .hero-copy h1 {
        font-size: clamp(42px, 11vw, 64px);
    }

    .hero-copy p {
        font-size: 17px;
    }

    .hero-actions {
        gap: 16px;
        flex-wrap: wrap;
    }

    .hero-stage {
        min-height: 420px;
    }

    .quote-card blockquote {
        font-size: 26px;
    }

    .feature-title {
        font-size: 28px;
    }

    .feature-item {
        font-size: 16px;
    }

    .two-col,
    .org-row.two {
        grid-template-columns: 1fr;
    }

    .signup-card,
    .org-card {
        padding-inline: 14px;
    }

    .org-shell {
        padding: 18px 12px 28px;
    }

    .otp-modal {
        padding: 28px 18px 24px;
    }

    .otp-phone {
        font-size: 16px;
    }

    .callback-pill {
        right: 10px;
        bottom: 12px;
    }
}

.notice.success {
    margin-bottom: 12px;
    background: #eef9f2;
    border: 1px solid #bee7c8;
    padding: 10px 12px;
    border-radius: 10px;
    color: #1f7a3f;
}

.page-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    padding: 18px;
}

.page-modal.is-visible {
    display: flex;
}

.page-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 15, 28, 0.48);
}

.page-modal-card {
    position: relative;
    width: min(100%, 460px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
    padding: 24px 24px 22px;
    z-index: 1;
    text-align: center;
}

.page-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: #eceff5;
    color: #667085;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.page-modal-icon {
    width: 64px;
    height: 64px;
    margin: 4px auto 14px;
    border-radius: 50%;
    background: #fff1f1;
    color: #ff4a4a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.page-modal-card h3 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.2;
}

.page-modal-list {
    margin: 0;
    padding-left: 18px;
    text-align: left;
    color: #d92d20;
    display: grid;
    gap: 8px;
}

.page-modal-list li {
    font-size: 14px;
    line-height: 1.45;
}

/* Dashboard clone */
body.dashboard-page {
    background: #f6f8fc;
    color: #243043;
    overflow-x: hidden;
}

.dashboard-shell {
    min-height: 100vh;
    display: flex;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96)),
        radial-gradient(circle at top left, rgba(84, 133, 255, 0.08), transparent 38%),
        #f6f8fc;
}

.dashboard-sidebar {
    width: 202px;
    min-height: 100vh;
    background: linear-gradient(180deg, #f3f5fb 0%, #f6f7fc 100%);
    border-right: 1px solid #e2e7f1;
    padding: 14px 12px 16px;
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    flex-shrink: 0;
    z-index: 30;
}

.sidebar-brand {
    height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f7f9ff;
    background: #22283f;
    border-radius: 0 0 0 0;
    margin: -14px -12px 10px;
    padding: 0 14px;
}

.brand-mark {
    width: 28px;
    height: 28px;
    border: 2px solid #fff;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.brand-ring {
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-radius: 4px;
    display: block;
}

.brand-text {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.sidebar-nav {
    display: grid;
    gap: 4px;
    padding-top: 2px;
}

.sidebar-link-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-link-group .sidebar-link {
    flex: 1 1 auto;
    min-width: 0;
}

.sidebar-link {
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    color: #5c6678;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 120ms ease, color 120ms ease, transform 120ms ease;
}

.sidebar-link i {
    width: 18px;
    text-align: center;
    font-size: 15px;
}

.sidebar-link:hover {
    background: rgba(59, 117, 255, 0.07);
    color: #2648a7;
}

.sidebar-link.is-active {
    background: linear-gradient(90deg, #4f8ef7 0%, #4f8ef7 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(79, 142, 247, 0.18);
}

.sidebar-inline-action {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 6px;
    background: rgba(79, 142, 247, 0.14);
    color: #4f8ef7;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    cursor: pointer;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    transition: background 120ms ease, color 120ms ease, transform 120ms ease;
}

.sidebar-inline-action:hover {
    background: rgba(79, 142, 247, 0.22);
    color: #2f6cf0;
    transform: translateY(-1px);
}

.sidebar-link-group .sidebar-link.is-active + .sidebar-inline-action {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.sidebar-admin-switch {
    margin-top: auto;
    border: 0;
    border-radius: 8px;
    background: #e9ecfb;
    color: #405060;
    min-height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.sidebar-collapse {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 36px;
    height: 36px;
    border: 0;
    border-top-left-radius: 10px;
    background: #eef1f8;
    color: #647083;
    cursor: pointer;
}

.dashboard-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    margin-left: 202px;
    width: calc(100% - 202px);
}

.dashboard-topbar {
    height: 58px;
    background: #232944;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 18px 0 14px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.dashboard-search {
    width: min(100%, 360px);
    height: 34px;
    border-radius: 8px;
    background: #353a56;
    border: 1px solid rgba(255, 255, 255, 0.10);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    color: rgba(255, 255, 255, 0.78);
}

.dashboard-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    min-width: 0;
}

.dashboard-search input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.trial-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    white-space: nowrap;
}

.trial-pill a {
    color: #58a1ff;
    text-decoration: none;
    font-weight: 700;
}

.view-pill {
    height: 34px;
    border: 0;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 6px;
    cursor: pointer;
    line-height: 1;
}

.view-stack {
    display: grid;
    gap: 2px;
    text-align: left;
}

.view-pill .view-mini {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
}

.view-pill strong {
    font-size: 14px;
    font-weight: 700;
}

.view-pill i {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
}

.topbar-square,
.topbar-icon,
.avatar-button {
    border: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.topbar-square.primary {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    background: #4f8ef7;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 18px rgba(79, 142, 247, 0.24);
}

.topbar-square.primary:hover,
.topbar-square.primary:focus-visible {
    background: #5c98ff;
}

.topbar-quick-add {
    position: relative;
    display: inline-flex;
}

.quick-add-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 210px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(17, 24, 39, 0.2);
    border: 1px solid #e7ebf3;
    padding: 10px 0 8px;
    display: none;
    z-index: 40;
}

.topbar-quick-add.is-open .quick-add-menu {
    display: grid;
}

.quick-add-menu-header {
    padding: 0 14px 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #6b7484;
}

.quick-add-menu-item {
    appearance: none;
    border: 0;
    background: transparent;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.quick-add-menu-item:hover {
    background: #f4f7ff;
    color: #2d5bd1;
}

.quick-add-menu-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eef4ff;
    color: #4f8ef7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.topbar-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.topbar-icon:hover,
.topbar-icon:focus-visible,
.topbar-icon-link:hover,
.topbar-icon-link:focus-visible,
.view-pill:hover,
.view-pill:focus-visible,
.avatar-button:hover,
.avatar-button:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
}

.topbar-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.topbar-icon-link:hover,
.topbar-icon-link:focus-visible {
    color: #fff;
}

.topbar-icon--launcher {
    font-size: 12px;
}

.topbar-launcher {
    width: 14px;
    height: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.topbar-launcher span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.9;
}

.topbar-launcher span:nth-child(1),
.topbar-launcher span:nth-child(3),
.topbar-launcher span:nth-child(7),
.topbar-launcher span:nth-child(9) {
    opacity: 0.75;
}

.avatar-button {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.topbar-popover {
    position: relative;
}

.topbar-popover-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 20px 42px rgba(17, 24, 39, 0.16);
    display: none;
    z-index: 80;
}

.topbar-popover.is-open .topbar-popover-menu {
    display: grid;
}

.topbar-popover-heading {
    padding: 14px 16px 10px;
    color: #2b3444;
    font-size: 15px;
    font-weight: 800;
}

.topbar-empty-state,
.topbar-empty-copy {
    padding: 0 16px 14px;
    color: #69758d;
    font-size: 14px;
}

.topbar-empty-illustration {
    width: 84px;
    height: 84px;
    margin: 2px auto 10px;
    border-radius: 50%;
    background: #f4f7fb;
    color: #9aa7bf;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}

.topbar-profile-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #edf1f7;
}

.topbar-profile-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.topbar-profile-head strong {
    display: block;
    color: #243043;
    font-size: 15px;
    font-weight: 800;
}

.topbar-profile-head span {
    display: block;
    color: #748099;
    font-size: 13px;
    margin-top: 2px;
}

.topbar-popover-menu--profile {
    min-width: 250px;
    padding-bottom: 8px;
}

.topbar-popover-menu--users {
    min-width: 170px;
    padding-bottom: 10px;
}

.topbar-popover-menu--profile a {
    display: block;
    padding: 11px 16px;
    color: #344054;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.topbar-popover-menu--profile a:hover,
.topbar-app-item:hover {
    background: #f4f7ff;
}

.topbar-popover-menu--notifications {
    min-width: 280px;
    padding-bottom: 12px;
}

.topbar-popover-menu--notifications .topbar-empty-state {
    padding-bottom: 0;
}

.topbar-popover-menu--apps {
    min-width: 330px;
    padding-bottom: 14px;
}

.topbar-drawer {
    position: fixed;
    top: 58px;
    right: 0;
    width: min(100vw, 390px);
    height: calc(100vh - 58px);
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
    opacity: 0;
    transition: opacity 180ms ease;
    z-index: 60;
}

body.has-topbar-drawer-open {
    overflow: hidden;
}

.topbar-drawer.is-open {
    pointer-events: auto;
    opacity: 1;
}

.topbar-drawer-backdrop {
    position: fixed;
    top: 58px;
    left: 0;
    right: min(390px, 32vw);
    bottom: 0;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(17, 24, 39, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 59;
}

.topbar-drawer.is-open .topbar-drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.topbar-drawer-panel {
    width: 100%;
    background: #fff;
    border-left: 1px solid #e6ebf4;
    box-shadow: -18px 0 40px rgba(17, 24, 39, 0.10);
    position: relative;
    overflow-y: auto;
    padding: 18px 18px 24px;
    transform: translateX(100%);
    transition: transform 180ms ease;
}

.topbar-drawer.is-open .topbar-drawer-panel {
    transform: translateX(0);
}

.topbar-drawer-panel--apps {
    width: min(100%, 430px);
}

.topbar-drawer-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #edf1f7;
    color: #7a859b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.topbar-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 0 14px;
}

.topbar-drawer-header--apps {
    padding-right: 48px;
}

.topbar-drawer-header h2,
.topbar-drawer-section h3 {
    margin: 0;
    color: #253247;
    font-size: 18px;
    font-weight: 800;
}

.topbar-drawer-filter {
    min-height: 34px;
    border: 0;
    border-radius: 8px;
    padding: 0 10px;
    background: #f4f7fb;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.topbar-drawer-search-toggle {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: #f4f7fb;
    color: #65758f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.topbar-drawer-search-toggle:hover,
.topbar-drawer-search-toggle:focus-visible {
    background: #ebeff8;
    color: #2d3a50;
    outline: none;
}

.topbar-drawer-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    margin-bottom: 12px;
    padding: 0 12px;
    border: 1px solid #e1e7f0;
    border-radius: 10px;
    background: #f7f9fd;
    color: #8a97ae;
}

.topbar-drawer-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #233044;
    font-size: 14px;
}

.topbar-drawer-search input::placeholder {
    color: #93a0b6;
}

.topbar-drawer-empty {
    min-height: 250px;
    padding: 24px 8px 8px;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 14px;
}

.topbar-drawer-empty-icon {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: #f4f7fb;
    color: #a5b0c4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
}

.topbar-drawer-empty p {
    margin: 0;
    color: #6b7487;
    font-size: 16px;
    line-height: 1.45;
}

.topbar-drawer-note-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0 16px;
    border-bottom: 1px solid #edf1f7;
}

.topbar-drawer-note-row:last-of-type {
    border-bottom: 0;
}

.topbar-drawer-note-row strong {
    display: block;
    color: #253247;
    font-size: 14px;
    font-weight: 800;
}

.topbar-drawer-note-row span {
    display: block;
    color: #72809c;
    font-size: 13px;
    margin-top: 2px;
}

.topbar-drawer-note-row a {
    color: #3478f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.topbar-drawer-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0 16px;
}

.topbar-drawer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.topbar-drawer-card strong {
    display: block;
    color: #243043;
    font-size: 15px;
    font-weight: 800;
}

.topbar-drawer-card span {
    display: block;
    color: #748099;
    font-size: 13px;
    margin-top: 2px;
}

.topbar-drawer-account-links {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.topbar-drawer-account-links a {
    color: #2f9f52;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.topbar-drawer-account-links a:last-child {
    color: #e74b4b;
}

.topbar-drawer-section {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid #edf1f7;
}

.topbar-drawer-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.topbar-drawer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ffefe9;
    color: #ff6d4d;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.topbar-drawer-links {
    display: grid;
    gap: 2px;
    margin-top: 10px;
}

.topbar-drawer-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    padding: 10px 8px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.topbar-drawer-links a:hover,
.topbar-drawer-links a:focus-visible {
    background: #f4f7ff;
    outline: none;
}

.topbar-drawer-links i {
    width: 18px;
    text-align: center;
    color: #7182a4;
    flex-shrink: 0;
}

.topbar-drawer-section-label {
    margin-bottom: 10px;
    color: #7d8aa2;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.topbar-drawer-divider {
    margin: 16px 0;
    border-top: 1px solid #e8edf5;
}

.topbar-drawer-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2f3d55;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 10px;
}

.topbar-drawer-section-title i {
    color: #ffbf3c;
}

.topbar-drawer-callout {
    color: #596579;
    font-size: 14px;
    line-height: 1.45;
}

.topbar-drawer-callout strong {
    display: block;
    margin-top: 4px;
    color: #35507a;
    font-size: 18px;
    font-weight: 800;
}

.topbar-drawer-qr {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    align-items: start;
}

.topbar-drawer-qr-code {
    width: 96px;
    height: 96px;
    border: 1px solid #e0e7f2;
    border-radius: 8px;
    background-color: #fff;
    background-image:
        linear-gradient(90deg, #111 8%, transparent 8% 16%, #111 16% 24%, transparent 24% 32%, #111 32% 40%, transparent 40% 48%, #111 48% 56%, transparent 56% 64%, #111 64% 72%, transparent 72% 80%, #111 80% 88%, transparent 88%),
        linear-gradient(#111 8%, transparent 8% 16%, #111 16% 24%, transparent 24% 32%, #111 32% 40%, transparent 40% 48%, #111 48% 56%, transparent 56% 64%, #111 64% 72%, transparent 72% 80%, #111 80% 88%, transparent 88%);
    background-size: 24px 24px;
    background-position: 0 0;
    box-shadow: inset 0 0 0 8px #fff;
}

.topbar-drawer-qr-copy {
    color: #334155;
    font-size: 14px;
    line-height: 1.45;
}

.topbar-drawer-qr-copy strong {
    display: block;
    margin-top: 4px;
    color: #4a5f80;
    font-size: 13px;
    font-weight: 800;
}

.topbar-drawer-qr-apps {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #6a768d;
    font-size: 13px;
    font-weight: 600;
}

.topbar-drawer-qr-apps i {
    font-size: 20px;
}

.topbar-drawer-qr-apps .fa-apple {
    color: #1d1d1f;
}

.topbar-drawer-qr-apps .fa-google-play {
    color: #47a7ff;
}

.topbar-drawer-app-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 10px;
    padding-top: 2px;
}

.topbar-drawer-app-grid--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.topbar-drawer-app-grid .topbar-app-item {
    min-height: 82px;
    background: #fff;
    border: 1px solid #eef2f7;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.topbar-app-item--compact {
    min-height: 72px !important;
}

.topbar-app-item-text {
    display: grid;
    gap: 3px;
    justify-items: center;
}

.topbar-app-item-text strong {
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

.topbar-app-item-text small {
    color: #7b879b;
    font-size: 11px;
    text-align: center;
    line-height: 1.25;
}

.topbar-app-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 0 12px;
}

.topbar-app-item {
    min-height: 82px;
    border-radius: 8px;
    text-decoration: none;
    color: #344054;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 8px;
    padding: 10px 8px;
}

.topbar-app-item i {
    font-size: 24px;
    color: #4f8ef7;
}

.topbar-app-item span {
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 980px) {
    .topbar-drawer {
        width: min(100vw, 100%);
    }

    .topbar-drawer-backdrop {
        right: 0;
    }

    .topbar-drawer-panel--apps {
        width: min(100%, 100vw);
    }

    .topbar-drawer-app-grid,
    .topbar-drawer-app-grid--compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.dashboard-content {
    padding: 10px 20px 18px;
    display: grid;
    gap: 16px;
    min-height: calc(100vh - 58px);
    background:
        radial-gradient(circle at top left, rgba(79, 142, 247, 0.05), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
}

.hero-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 4px 0;
}

.hero-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.hero-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e0e6f1;
    color: #596679;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.05);
}

.hero-copy h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.hero-copy p {
    margin: 2px 0 0;
    color: #7a8393;
    font-size: 14px;
    font-weight: 600;
}

.hero-links {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 2px;
}

.hero-links a {
    color: #4f8ef7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.help-badge {
    width: 34px;
    height: 34px;
    border-radius: 4px;
    border: 1px solid #b6c7ef;
    background: #fff;
    color: #4f8ef7;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
}

.topbar-action-button {
    min-height: 34px;
    border: 0;
    border-radius: 4px;
    background: #4f8ef7;
    color: #fff;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(79, 142, 247, 0.18);
}

.topbar-action-button.secondary {
    background: #fff;
    color: #4b5566;
    border: 1px solid #d8dff0;
    box-shadow: none;
}

.topbar-icon.square {
    width: 34px;
    height: 34px;
    border-radius: 4px;
    border: 1px solid #d8dff0;
    background: #fff;
    color: #586072;
}

.cards-page .dashboard-content {
    gap: 0;
}

.cards-content {
    padding-top: 0;
}

.cards-header-row {
    min-height: 84px;
    padding: 12px 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #edf0f5;
}

.cards-header-row h1 {
    margin: 0;
    color: #2a3242;
    font-size: 28px;
    font-weight: 800;
}

.cards-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cards-dropdown {
    position: relative;
}

.cards-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 164px;
    background: #fff;
    border: 1px solid #e2e7f1;
    border-radius: 4px;
    box-shadow: 0 10px 22px rgba(25, 39, 66, 0.12);
    padding: 4px 0;
    display: none;
    z-index: 10;
}

.cards-dropdown-menu.is-open {
    display: grid;
}

.cards-dropdown-item {
    border: 0;
    background: transparent;
    color: #485264;
    min-height: 34px;
    padding: 0 14px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.cards-dropdown-item:hover {
    background: #f4f7fc;
}

.cards-board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 300px));
    gap: 14px;
    padding-top: 16px;
}

.cards-card-tile {
    overflow: hidden;
    width: 300px;
}

.cards-card-art {
    min-height: 198px;
    background: linear-gradient(145deg, #3769d9 0%, #3f75e6 42%, #3563c9 100%);
    border-radius: 4px 4px 0 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    color: #fff;
}

.cards-card-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.12), transparent 18%),
        radial-gradient(circle at 86% 38%, rgba(255, 255, 255, 0.07), transparent 24%),
        radial-gradient(circle at 78% 50%, rgba(255, 255, 255, 0.08), transparent 28%);
    pointer-events: none;
}

.cards-card-icon {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.92);
    color: #7c8ba7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.cards-card-label {
    position: relative;
    z-index: 1;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.cards-card-body {
    padding: 12px 14px 14px;
    display: grid;
    gap: 16px;
}

.cards-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cards-card-title-row h2 {
    margin: 0;
    color: #2b3342;
    font-size: 18px;
    font-weight: 800;
}

.cards-badge {
    border-radius: 2px;
    background: #111;
    color: #fff;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.7px;
}

.cards-card-meta {
    display: grid;
    gap: 4px;
    color: #6b7484;
    font-size: 14px;
}

.cards-card-meta strong {
    color: #2b3342;
    font-weight: 800;
}

.panel {
    background: #fff;
    border: 1px solid #e3e7f1;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(31, 41, 55, 0.03);
}

.support-banner {
    min-height: 86px;
    display: grid;
    grid-template-columns: 72px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 16px 18px 16px 20px;
}

.support-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ffe3a4;
    color: #1a2235;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.support-copy h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
    color: #1f2937;
}

.support-copy h2 span {
    color: #ff584d;
}

.support-copy p {
    margin: 4px 0 0;
    color: #6c7788;
    font-size: 14px;
}

.support-button {
    height: 34px;
    border: 0;
    border-radius: 4px;
    padding: 0 16px;
    background: #4f8ef7;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.summary-grid {
    display: grid;
    grid-template-columns: minmax(270px, 0.92fr) minmax(420px, 1.55fr);
    gap: 14px;
}

.pending-panel,
.quick-add-panel {
    min-height: 164px;
}

.pending-panel h3,
.quick-add-panel h3,
.panel-header h3,
.info-panel h3 {
    margin: 0;
    padding: 10px 14px 8px;
    border-bottom: 1px solid #edf0f5;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
    color: #313b4f;
}

.pending-list {
    display: grid;
    gap: 0;
    padding: 8px 14px 12px;
}

.pending-item {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #6b7484;
    font-size: 14px;
    border-bottom: 1px dashed #e5e9f1;
}

.pending-item:last-child {
    border-bottom: 0;
}

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

.pending-label i {
    width: 16px;
    color: #8c96a8;
}

.pending-label span {
    white-space: nowrap;
}

.pending-item strong {
    color: #586072;
    font-weight: 800;
}

.pending-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pending-dot.orange {
    border: 2px solid #ffb03a;
    background: #fff;
}

.quick-add-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-add-card {
    min-height: 150px;
    border: 0;
    border-right: 1px solid #edf0f5;
    background: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
    text-align: center;
    color: #556170;
    transition: background 120ms ease, transform 120ms ease;
}

.quick-add-card:last-child {
    border-right: 0;
}

.quick-add-card:hover {
    background: #f8fbff;
}

.quick-add-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f6f8fc;
    border: 1px solid #edf0f5;
    color: #4f8ef7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.upload-card .quick-add-icon {
    color: #28c06f;
}

.quick-add-copy {
    display: grid;
    gap: 4px;
}

.quick-add-copy strong {
    font-size: 14px;
    font-weight: 700;
    color: #556170;
}

.quick-add-copy span {
    font-size: 13px;
    line-height: 1.35;
    color: #7c8595;
}

.reports-panel {
    padding-bottom: 0;
}

.reports-tabs {
    display: flex;
    align-items: stretch;
    gap: 10px;
    padding: 4px 14px 0;
    overflow-x: auto;
}

.report-tab {
    min-width: 132px;
    border: 0;
    background: transparent;
    padding: 10px 0 12px;
    text-align: left;
    cursor: pointer;
    color: #1f2937;
    border-bottom: 3px solid transparent;
}

.report-tab-label {
    display: block;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
    color: #202b3b;
}

.report-tab-value {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    color: #202b3b;
    font-weight: 700;
}

.report-tab.is-active {
    border-bottom-color: #4f8ef7;
}

.report-tab.is-active .report-tab-label,
.report-tab.is-active .report-tab-value {
    color: #4f8ef7;
}

.reports-body {
    min-height: 300px;
    border-top: 1px solid #edf0f5;
    padding: 22px 18px 18px;
}

.report-panel {
    display: none;
    min-height: 240px;
}

.report-panel.is-active {
    display: block;
}

.approvals-page .approvals-surface {
    padding: 20px 22px 28px;
    display: grid;
    gap: 18px;
}

.approvals-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 2px 0;
}

.approvals-kicker {
    margin: 0 0 6px;
    color: #4f8ef7;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.approvals-hero h1 {
    margin: 0;
    color: #1c2434;
    font-size: clamp(30px, 3.6vw, 42px);
    line-height: 1;
    letter-spacing: -1px;
}

.approvals-lead {
    max-width: 720px;
    margin: 12px 0 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.6;
}

.approvals-hero-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.approvals-stat-card {
    min-width: 160px;
    padding: 16px 18px;
    border: 1px solid #e4e8f1;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.04);
    display: grid;
    gap: 4px;
}

.approvals-stat-value {
    color: #1f5fd1;
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
}

.approvals-stat-label {
    color: #667085;
    font-size: 13px;
    font-weight: 700;
}

.approvals-tabs {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 2px;
    border-bottom: 1px solid #e6ebf4;
}

.approvals-tab {
    padding: 0 0 12px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #394150;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.approvals-tab.is-active {
    color: #4f8ef7;
    border-bottom-color: #4f8ef7;
}

.approvals-panel {
    display: none;
}

.approvals-panel.is-active {
    display: grid;
    gap: 18px;
}

.approvals-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.approvals-summary-card {
    min-height: 520px;
    background: #fff;
    border: 1px solid #e6ebf4;
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.approvals-summary-card-head {
    min-height: 82px;
    padding: 18px 20px 12px;
    border-bottom: 1px solid #edf1f7;
    display: flex;
    align-items: center;
}

.approvals-summary-card h2,
.approvals-list-toolbar h2 {
    margin: 0;
    color: #1d2636;
    font-size: 18px;
    font-weight: 800;
}

.approvals-summary-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #f6df99;
    color: #8c6925;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-right: 14px;
    vertical-align: middle;
}

.approvals-summary-card-head div {
    display: flex;
    align-items: center;
    gap: 14px;
}

.approvals-summary-body {
    flex: 1;
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 18px 20px 20px;
}

.approvals-mini-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #edf1f7;
    border-radius: 14px;
    background: #fff;
}

.approvals-mini-row strong {
    display: block;
    color: #20293a;
    font-size: 15px;
    font-weight: 800;
}

.approvals-mini-row span,
.approvals-mini-row small {
    display: block;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.45;
}

.approvals-empty-state,
.approvals-empty-table {
    min-height: 360px;
    display: grid;
    place-items: center;
    color: #6f7aa0;
    font-size: 16px;
    text-align: center;
}

.approvals-empty-table {
    min-height: 220px;
}

.approvals-list-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 2px 0;
}

.approvals-list-toolbar p {
    margin: 4px 0 0;
    color: #667085;
    font-size: 14px;
}

.approvals-sort {
    position: relative;
}

.approvals-sort summary {
    list-style: none;
    cursor: pointer;
    min-width: 132px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #dce3ef;
    border-radius: 10px;
    background: #fff;
    color: #344054;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.04);
}

.approvals-sort summary::-webkit-details-marker {
    display: none;
}

.approvals-sort-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 178px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    padding: 8px 0;
    display: grid;
    gap: 2px;
    z-index: 3;
}

.approvals-sort-menu span,
.approvals-sort-menu button {
    width: 100%;
    min-height: 34px;
    padding: 0 14px;
    border: 0;
    background: transparent;
    color: #495163;
    text-align: left;
    font-size: 13px;
}

.approvals-sort-menu button {
    border-top: 1px solid #edf1f7;
    color: #4f8ef7;
    font-weight: 700;
    cursor: pointer;
}

.approvals-table-wrap {
    background: #fff;
    border: 1px solid #e6ebf4;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.05);
}

.approvals-table {
    width: 100%;
    border-collapse: collapse;
}

.approvals-table thead th {
    padding: 16px 18px;
    border-bottom: 1px solid #edf1f7;
    color: #8d94a8;
    text-align: left;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.approvals-table tbody td {
    padding: 16px 18px;
    border-bottom: 1px solid #f0f3f8;
    color: #2f3748;
    font-size: 14px;
    vertical-align: top;
}

.approvals-table tbody tr:last-child td {
    border-bottom: 0;
}

.approvals-table tbody td strong {
    display: block;
    color: #1d2433;
    font-size: 14px;
    font-weight: 800;
}

.approvals-table tbody td span {
    display: block;
    margin-top: 3px;
    color: #667085;
    font-size: 13px;
}

.approvals-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1f5fd1;
    font-size: 12px;
    font-weight: 800;
}

.approvals-status--pending {
    background: #fff6da;
    color: #9b6b12;
}

.analytics-page .analytics-surface {
    padding: 20px 22px 28px;
    display: grid;
    gap: 18px;
}

.analytics-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding-top: 4px;
}

.analytics-header h1 {
    margin: 0;
    color: #1c2434;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1;
    letter-spacing: -1px;
}

.analytics-header p {
    max-width: 820px;
    margin: 10px 0 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.6;
}

.analytics-search {
    width: min(100%, 260px);
    display: grid;
    gap: 8px;
    color: #667085;
    font-size: 13px;
    font-weight: 700;
}

.analytics-search-box {
    min-height: 48px;
    border: 1px solid #dbe2ef;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04);
}

.analytics-search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #1d2433;
}

.analytics-search-box i {
    color: #96a0b5;
    font-size: 12px;
}

.analytics-summary-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.analytics-summary-pill {
    min-height: 88px;
    padding: 16px 18px;
    border: 1px solid #e6ebf4;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.04);
    display: grid;
    gap: 6px;
    align-content: center;
}

.analytics-summary-pill strong {
    color: #1f5fd1;
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
}

.analytics-summary-pill span {
    color: #667085;
    font-size: 13px;
    font-weight: 700;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.analytics-card {
    background: #fff;
    border: 1px solid #e6ebf4;
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.05);
    padding: 18px 18px 16px;
    min-height: 260px;
}

.analytics-card--wide {
    grid-column: 1 / -1;
}

.analytics-card--activity {
    max-width: 50%;
}

.analytics-insights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.analytics-insight-card {
    min-height: 240px;
}

.analytics-insight-list {
    display: grid;
    gap: 10px;
}

.analytics-insight-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid #edf1f7;
}

.analytics-insight-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.analytics-insight-row strong {
    display: block;
    color: #1e2635;
    font-size: 14px;
    font-weight: 700;
}

.analytics-insight-row small {
    display: block;
    margin-top: 3px;
    color: #6b7280;
    font-size: 12px;
}

.analytics-insight-row span {
    color: #1f5fd1;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.analytics-insight-empty {
    padding: 18px 0 6px;
    color: #6b7280;
    font-size: 14px;
}

.analytics-card-header {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.analytics-card-header > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.analytics-card-header i {
    color: #667085;
    font-size: 18px;
}

.analytics-card-header h2 {
    margin: 0;
    color: #1d2636;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.analytics-card-header p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.55;
}

.analytics-link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 18px;
}

.analytics-link-list {
    display: grid;
    gap: 10px;
}

.analytics-link-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 54px;
    padding: 8px 0;
    text-decoration: none;
}

.analytics-link-item i {
    width: 18px;
    color: #7a86a1;
    font-size: 16px;
    margin-top: 2px;
}

.analytics-link-item strong {
    display: block;
    color: #1e2635;
    font-size: 14px;
    font-weight: 700;
}

.analytics-link-item small {
    display: block;
    margin-top: 2px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.45;
}

.empty-state {
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    color: #748091;
}

.empty-state p {
    margin: 0;
    max-width: 620px;
    font-size: 15px;
    line-height: 1.45;
}

.empty-state.compact {
    min-height: 200px;
}

.empty-action {
    border: 0;
    border-radius: 4px;
    padding: 8px 18px;
    background: #dfeeff;
    color: #4f8ef7;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.recent-trip {
    min-height: 250px;
}

.recent-trip-empty {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px 16px 30px;
    text-align: center;
    color: #627087;
}

.recent-trip-empty p {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
}

.recent-trip-button {
    height: 44px;
    border: 0;
    border-radius: 4px;
    padding: 0 18px;
    background: #4f8ef7;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(79, 142, 247, 0.18);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding-top: 2px;
}

.info-panel {
    min-height: 160px;
}

.info-panel > h3 {
    letter-spacing: 0.2px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px 0;
    color: #5c6676;
}

.contact-item i {
    width: 24px;
    color: #1f2937;
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
}

.contact-item a {
    color: #4f8ef7;
    text-decoration: none;
    font-weight: 700;
}

.mobile-panel {
    overflow: hidden;
}

.mobile-wrap {
    display: grid;
    grid-template-columns: 116px 1fr;
    gap: 12px;
    padding: 14px;
    align-items: center;
}

.mobile-wrap img {
    width: 100%;
    max-width: 116px;
    display: block;
}

.mobile-copy p {
    margin: 0 0 12px;
    color: #5a6476;
    font-size: 14px;
    line-height: 1.45;
}

.store-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1e2431;
    font-size: 22px;
}

.resource-list {
    list-style: none;
    padding: 14px;
    margin: 0;
    display: grid;
    gap: 12px;
    color: #465062;
}

.resource-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.resource-list i {
    width: 18px;
    color: #9f60f7;
    text-align: center;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 44px;
    padding: 24px 180px 8px;
}

.footer-links h4 {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
    color: #5e687a;
    letter-spacing: 0.1px;
}

.footer-links h4::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    margin-top: 8px;
    background: #1d2430;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.footer-links a {
    color: #546071;
    text-decoration: none;
    font-size: 14px;
}

.dashboard-footer {
    text-align: center;
    color: #7b8493;
    font-size: 13px;
    padding: 18px 12px 16px;
}

.dashboard-content .page-modal-card {
    text-align: left;
}

.dashboard-content .page-modal-list {
    color: #48505f;
}

@media (max-width: 1180px) {
    .dashboard-shell {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        min-height: auto;
        position: static;
        inset: auto;
    }

    .dashboard-main {
        margin-left: 0;
        width: 100%;
    }

    .sidebar-admin-switch,
    .sidebar-collapse {
        position: static;
    }

    .sidebar-collapse {
        align-self: flex-end;
        margin-top: 10px;
    }

    .summary-grid,
    .info-grid,
    .footer-links {
        grid-template-columns: 1fr;
        padding-left: 0;
        padding-right: 0;
    }

    .support-banner {
        grid-template-columns: 72px 1fr;
    }

    .support-button {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 760px) {
    .dashboard-topbar {
        height: auto;
        padding: 12px;
        flex-wrap: wrap;
    }

    .dashboard-search {
        width: 100%;
    }

    .topbar-right {
        flex-wrap: wrap;
        gap: 8px;
    }

    .hero-row {
        flex-direction: column;
        gap: 12px;
    }

    .support-banner {
        grid-template-columns: 1fr;
    }

    .quick-add-grid {
        grid-template-columns: 1fr;
    }

    .quick-add-card {
        border-right: 0;
        border-bottom: 1px solid #edf0f5;
    }

    .quick-add-card:last-child {
        border-bottom: 0;
    }

    .recent-trip-body,
    .mobile-wrap {
        grid-template-columns: 1fr;
    }

    .mobile-wrap img {
        max-width: 92px;
    }
}

/* Settings page */
body.settings-page .dashboard-content {
    gap: 14px;
}

.settings-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 4px 0;
}

.settings-head h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #2a3243;
}

.settings-help {
    width: 34px;
    height: 34px;
    border-radius: 4px;
    border: 1px solid #b6c7ef;
    background: #fff;
    color: #4f8ef7;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
}

.settings-tabs {
    display: flex;
    align-items: center;
    gap: 22px;
    border-bottom: 1px solid #e6eaf2;
    padding: 0 4px;
    overflow-x: auto;
}

.settings-tab {
    position: relative;
    border: 0;
    background: transparent;
    padding: 12px 0 13px;
    color: #2d3646;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.settings-tab.is-active {
    color: #4f8ef7;
}

.settings-tab.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: #4f8ef7;
}

.settings-panel {
    display: none;
    gap: 14px;
}

.settings-panel.is-active {
    display: grid;
}

.settings-card {
    background: #fff;
    border: 1px solid #e3e7f1;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(31, 41, 55, 0.03);
    overflow: hidden;
}

.settings-card-wide {
    width: 100%;
}

.settings-card-header {
    padding: 12px 18px;
    background: #f4f5fb;
    color: #2d3646;
    font-size: 15px;
    font-weight: 800;
}

.settings-card-body {
    padding: 18px;
}

.settings-card-body p {
    margin: 0;
    color: #5d6779;
    font-size: 14px;
    line-height: 1.55;
}

.settings-divider-line {
    margin: 18px 0;
    height: 1px;
    background: #edf0f5;
}

.settings-primary-action,
.settings-secondary-action {
    border: 0;
    border-radius: 4px;
    min-height: 34px;
    padding: 0 14px;
    background: #4f8ef7;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(79, 142, 247, 0.16);
}

.settings-anchor-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.settings-secondary-action {
    background: #dfeeff;
    color: #4f8ef7;
    box-shadow: none;
}

.settings-dropdown {
    position: relative;
    display: inline-flex;
}

.settings-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-right: 12px;
}

.settings-dropdown-toggle i {
    font-size: 11px;
}

.settings-dropdown-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 4px);
    min-width: 164px;
    background: #fff;
    border: 1px solid #e2e7f1;
    border-radius: 4px;
    box-shadow: 0 10px 22px rgba(25, 39, 66, 0.12);
    padding: 4px 0;
    display: none;
    z-index: 10;
}

.settings-dropdown-menu.is-open {
    display: grid;
}

.settings-dropdown-item {
    border: 0;
    background: transparent;
    color: #485264;
    min-height: 34px;
    padding: 0 14px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.settings-dropdown-item:hover {
    background: #f4f7fc;
}

.settings-loyalty-actions {
    display: flex;
    align-items: flex-start;
}

.settings-link-action,
.settings-text-link {
    border: 0;
    background: transparent;
    color: #4f8ef7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.button-link {
    display: inline-flex;
    align-items: center;
}

.settings-personal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) 1px minmax(0, 0.88fr);
    gap: 0;
}

.settings-personal-col {
    padding: 12px 18px 14px;
}

.settings-personal-divider {
    background: #edf0f5;
}

.settings-detail-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 38px;
}

.settings-detail-row span {
    color: #6d7584;
    font-size: 14px;
}

.settings-detail-row strong {
    color: #2f3644;
    font-size: 14px;
    font-weight: 700;
}

.settings-bank-table {
    display: grid;
    gap: 12px;
}

.settings-bank-table-head,
.settings-bank-table-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.35fr) minmax(0, 1fr) 44px;
    gap: 14px;
    align-items: center;
}

.settings-bank-table-head {
    color: #6d7584;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.settings-bank-table-row strong {
    color: #2f3644;
    font-size: 14px;
    font-weight: 700;
    word-break: break-word;
}

.settings-bank-meta {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid #edf0f5;
}

.settings-bank-meta span {
    color: #6d7584;
    font-size: 14px;
}

.settings-bank-meta strong {
    color: #2f3644;
    font-size: 14px;
    font-weight: 700;
}

.settings-bank-edit {
    width: 34px;
    height: 34px;
    border: 1px solid #d8dff0;
    border-radius: 6px;
    background: #fff;
    color: #6e7787;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.settings-bank-edit:hover {
    background: #f5f8ff;
    border-color: #aec8fb;
    color: #4f8ef7;
}

.settings-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    color: #384050;
    font-size: 14px;
}

.settings-check-row input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.settings-policies {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #edf0f5;
}

.settings-subtitle {
    display: inline-block;
    margin-bottom: 10px;
    color: #4f5a6e;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.settings-policy-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2f3644;
    font-size: 14px;
}

.settings-policy-chip strong {
    padding: 2px 6px;
    border-radius: 2px;
    background: #2f7ee6;
    color: #fff;
    font-size: 10px;
    letter-spacing: 0.4px;
}

.settings-two-up {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.settings-inline-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.settings-preference-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.75fr);
    gap: 14px;
}

.settings-preference-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 192px;
    gap: 14px;
    align-items: start;
}

.settings-preference-text {
    display: grid;
    gap: 12px;
}

.settings-receipt-help {
    min-height: 70px;
    border-radius: 0;
    background: #f6f7fe;
    padding: 12px 14px;
}

.settings-receipt-help h4 {
    margin: 0 0 10px;
    color: #4f5a6e;
    font-size: 13px;
    font-weight: 700;
}

.settings-provider-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.provider-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.provider-badge.mail {
    color: #8fa3c6;
    background: #fff;
    border: 1px solid #d8dde6;
}

.provider-badge.gmail {
    color: #ea4335;
    background: #fff;
    border: 1px solid #d8dde6;
}

.provider-badge.outlook {
    color: #0078d4;
    background: #fff;
    border: 1px solid #d8dde6;
}

.settings-defaults {
    display: grid;
    gap: 14px;
}

.settings-defaults h2 {
    margin: 12px 0 0;
    color: #2d3646;
    font-size: 18px;
    font-weight: 800;
}

.settings-defaults > p {
    margin: 0;
    color: #6a7384;
    font-size: 14px;
}

.settings-default-card {
    background: #fff;
    border: 1px solid #e3e7f1;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(31, 41, 55, 0.03);
    overflow: hidden;
}

.settings-default-card header {
    min-height: 44px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    color: #2f3644;
    font-size: 14px;
    font-weight: 800;
}

.settings-default-card header .settings-bank-edit {
    margin-left: auto;
}

.settings-default-card header i {
    color: #647083;
    font-size: 14px;
}

.settings-default-card header span {
    letter-spacing: 0.2px;
}

.settings-default-copy {
    padding: 0 14px 14px;
}

.settings-summary-table {
    margin: 4px 0 12px;
}

.settings-summary-table--two .settings-bank-table-head,
.settings-summary-table--two .settings-bank-table-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.settings-summary-table--three .settings-bank-table-head,
.settings-summary-table--three .settings-bank-table-row {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr) 44px;
}

.settings-summary-table--four .settings-bank-table-head,
.settings-summary-table--four .settings-bank-table-row {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.72fr) minmax(0, 1.38fr) 44px;
}

.settings-default-copy p {
    margin: 0 0 10px;
    color: #556170;
    font-size: 14px;
    line-height: 1.45;
}

.settings-subtabs {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 4px 0 0;
}

.settings-pill {
    min-height: 32px;
    border: 1px solid #c7cfdf;
    border-radius: 16px;
    background: #fff;
    color: #2e3646;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.settings-pill i {
    font-size: 11px;
    color: #697286;
}

.settings-pill.is-active {
    border-color: #68749b;
    box-shadow: 0 0 0 1px rgba(104, 116, 155, 0.12) inset;
}

.settings-travel-panels {
    display: grid;
    gap: 14px;
}

.settings-travel-panel {
    display: none;
}

.settings-travel-panel.is-active {
    display: block;
}

.settings-empty-state {
    min-height: 206px;
    padding: 26px 20px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    color: #5b6678;
}

.settings-empty-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff1df;
    color: #ff9d29;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.settings-empty-state p {
    max-width: 530px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.settings-empty-state--compact {
    min-height: 0;
    padding: 18px 0 0;
    align-items: flex-start;
    text-align: left;
}

.settings-empty-state--compact .settings-empty-icon {
    width: 30px;
    height: 30px;
}

.settings-empty-state--compact p {
    max-width: none;
}

.settings-empty-state a {
    color: #4f8ef7;
    text-decoration: none;
    font-weight: 700;
}

.budget-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0 12px;
    color: #2d3646;
    font-size: 14px;
    font-weight: 700;
}

.budget-filter-chip {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #232944;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.budget-select {
    position: relative;
}

.budget-select-trigger {
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    cursor: pointer;
}

.budget-menu {
    position: absolute;
    left: 38px;
    top: 30px;
    width: 156px;
    background: #fff;
    border: 1px solid #e3e7f1;
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.10);
    padding: 4px 0;
    display: none;
    z-index: 6;
}

.budget-menu.is-open {
    display: grid;
}

.budget-menu-item {
    border: 0;
    background: transparent;
    color: #51596b;
    text-align: left;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
}

.budget-menu-item:hover,
.budget-menu-item.is-active {
    background: #f1f5ff;
}

.budget-empty-state {
    min-height: 420px;
    border-top: 1px solid #edf0f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
    color: #5c6678;
}

.budget-empty-graphic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: #f4f6fa;
    color: #b5bccb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
}

.budget-empty-state p {
    margin: 0;
    font-size: 15px;
}

body.settings-overlay-open {
    overflow: hidden;
}

.settings-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: none;
}

.settings-overlay.is-visible {
    display: block;
}

.settings-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 33, 49, 0.48);
}

.settings-dialog {
    position: absolute;
    display: none;
    background: #fff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.24);
}

.settings-dialog.is-active {
    display: block;
}

.settings-dialog--center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 448px);
    border-radius: 14px;
    overflow: hidden;
}

.settings-dialog--travel-document {
    width: min(96vw, 748px);
    max-height: 90vh;
    overflow: auto;
}

.settings-dialog--drawer {
    top: 0;
    right: 0;
    width: min(100vw, 360px);
    height: 100%;
    border-left: 1px solid #e6eaf2;
    box-shadow: -18px 0 60px rgba(0, 0, 0, 0.16);
}

.settings-dialog-header,
.settings-drawer-header {
    min-height: 58px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #edf0f5;
    background: #fff;
}

.settings-dialog-header h3,
.settings-drawer-header h3 {
    margin: 0;
    color: #2c3344;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.settings-dialog-close {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: #f1f3f8;
    color: #798295;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.settings-dialog-body {
    padding: 16px;
}

.settings-dialog-body--travel-document {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) minmax(0, 1.15fr);
    gap: 18px;
    align-items: start;
}

.settings-dialog-form {
    display: grid;
    gap: 12px;
}

.settings-dialog-form--travel-document {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.travel-document-upload {
    display: grid;
    gap: 10px;
}

.travel-upload-dropzone {
    min-height: 392px;
    border: 1px dashed #d9dfec;
    border-radius: 3px;
    background: #fff;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    color: #72809a;
    cursor: pointer;
}

.travel-upload-dropzone input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.travel-upload-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid #e1e7f0;
    background: #fff;
    color: #7d8aa6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.travel-upload-dropzone strong {
    font-size: 14px;
    font-weight: 700;
    color: #5e6880;
}

.travel-upload-note {
    color: #8590a8;
    font-size: 12px;
    line-height: 1.45;
}

.settings-check-row--document {
    margin-top: -2px;
    align-items: flex-start;
}

.settings-check-row--document span {
    color: #4d5567;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.settings-form-grid {
    display: grid;
    gap: 14px;
}

.settings-form-grid.two-col {
    grid-template-columns: 1fr 1fr;
}

.settings-field {
    display: grid;
    gap: 7px;
}

.settings-field span {
    color: #f05a5a;
    font-size: 14px;
    font-weight: 700;
}

.settings-field input,
.settings-field select {
    width: 100%;
    min-height: 40px;
    border: 1px solid #d6dbe7;
    border-radius: 4px;
    background: #fff;
    padding: 0 12px;
    color: #2c3344;
    font-size: 14px;
}

.settings-dialog-text {
    margin: 0 0 12px;
    color: #5d6779;
    font-size: 15px;
    line-height: 1.45;
}

.settings-field select {
    padding-right: 30px;
}

.settings-avatar-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
}

.settings-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f3f8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #a4acbc;
    border: 1px solid #e2e7f1;
}

.settings-avatar.current img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.settings-avatar.arrow {
    width: 18px;
    height: 18px;
    border: 0;
    background: transparent;
    color: #d0d5e2;
    font-size: 18px;
}

.settings-avatar.target {
    border-style: dashed;
}

.settings-callout {
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 14px;
}

.settings-callout.warning {
    background: #fff0e0;
    color: #6c5a45;
}

.settings-callout.info {
    background: #dff0fd;
    color: #2e678c;
}

.settings-access-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
    color: #4f5a6e;
    font-size: 14px;
}

.settings-access-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-access-list i {
    color: #24b15e;
}

.settings-dialog-text {
    margin: 0;
    color: #5d6779;
    font-size: 14px;
    line-height: 1.55;
}

.settings-dialog-footer {
    padding: 8px 16px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-dialog-primary {
    min-width: 160px;
}

.settings-drawer-footer {
    padding: 0 16px 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.settings-dialog-footer--split {
    justify-content: space-between;
}

.settings-dialog-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-dialog-primary,
.settings-dialog-secondary {
    border: 0;
    min-height: 34px;
    border-radius: 4px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.settings-dialog-primary {
    background: #4f8ef7;
    color: #fff;
}

.settings-dialog-secondary {
    background: #e6e8f0;
    color: #4b5566;
}

.settings-trash-button {
    width: 36px;
    height: 36px;
    border: 1px solid #f2d1d1;
    border-radius: 6px;
    background: #fff;
    color: #ea5f5f;
    cursor: pointer;
}

.settings-drawer-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100% - 59px);
    padding: 24px;
    color: #5b6678;
    font-size: 15px;
    text-align: center;
}

.travel-profile-page .dashboard-content {
    gap: 0;
}

.travel-profile-shell .dashboard-main {
    background: #fff;
}

.travel-profile-content {
    padding: 0 0 16px;
}

.travel-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #e9edf6;
}

.travel-page-head h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
    color: #2a3243;
    font-weight: 800;
}

.travel-page-close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #d9deea;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7484;
    text-decoration: none;
}

.travel-section {
    padding: 18px 20px 0;
}

.travel-section h2 {
    margin: 0 0 18px;
    color: #2b3241;
    font-size: 22px;
    font-weight: 800;
}

.travel-grid {
    display: grid;
    gap: 18px;
}

.travel-address-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    align-items: start;
}

.travel-address-column {
    min-width: 0;
    padding: 0 20px 0 0;
}

.travel-address-column + .travel-address-column {
    padding: 0 0 0 20px;
    border-left: 1px solid #e7ebf4;
}

.travel-inline {
    display: grid;
    grid-template-columns: 120px 1fr 1fr 1fr;
    gap: 8px;
}

.travel-inline--name {
    grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}

.travel-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.travel-two-col.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.travel-address-card .travel-grid {
    gap: 14px;
}

.travel-field {
    display: grid;
    gap: 7px;
}

.travel-label-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.travel-field > span {
    color: #6d7584;
    font-size: 13px;
    font-weight: 700;
}

.travel-field-spacer {
    visibility: hidden;
}

.travel-helper-link {
    color: #4f8ef7;
    font-size: 13px;
    text-decoration: none;
    font-weight: 700;
}

.travel-field input,
.travel-field textarea,
.travel-field select {
    width: 100%;
    border: 1px solid #d7dce8;
    border-radius: 4px;
    background: #fff;
    min-height: 40px;
    padding: 0 12px;
    color: #2c3445;
    font-size: 14px;
}

.travel-field textarea {
    min-height: 68px;
    padding: 10px 12px;
    resize: vertical;
    line-height: 1.45;
}

.travel-phone {
    display: grid;
    grid-template-columns: 56px 1fr;
    border: 1px solid #d7dce8;
    border-radius: 4px;
    overflow: hidden;
}

.travel-phone span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8faff;
    color: #4c5566;
    font-size: 14px;
    border-right: 1px solid #d7dce8;
}

.travel-phone input {
    border: 0;
    min-height: 40px;
}

.travel-airport {
    max-width: 240px;
}

.travel-form-shell {
    display: grid;
    gap: 18px;
    padding: 0 20px 24px;
}

.travel-address-card,
.travel-summary-card {
    background: #fff;
    border: 1px solid #e2e7f2;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(31, 41, 55, 0.03);
    overflow: hidden;
}

.travel-address-card {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.travel-summary-card > header {
    margin-bottom: 16px;
    color: #2a3242;
    font-size: 18px;
    font-weight: 800;
}

.travel-summary-layout {
    display: grid;
    gap: 18px;
    padding: 0 20px 24px;
}

.travel-summary-card {
    padding: 16px 18px 18px;
}

.travel-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 22px;
}

.travel-summary-row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-height: 32px;
}

.travel-summary-row span {
    color: #6d7584;
    font-size: 14px;
}

.travel-summary-row strong {
    color: #2d3445;
    font-size: 14px;
    font-weight: 700;
    word-break: break-word;
}

.travel-summary-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}

.travel-address-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.travel-address-summary h3 {
    margin: 0 0 10px;
    color: #2b3342;
    font-size: 15px;
    font-weight: 800;
}

.travel-address-summary p {
    margin: 0 0 8px;
    color: #4f5968;
    font-size: 14px;
    line-height: 1.5;
}

.travel-note {
    grid-column: 1 / -1;
    background: #eef7ff;
    border-left: 3px solid #74b2ff;
    border-radius: 4px;
    padding: 10px 14px;
    color: #416386;
    font-size: 13px;
    line-height: 1.5;
}

.travel-form-divider {
    grid-column: 1 / -1;
    height: 1px;
    background: #e7ebf4;
}

.travel-form-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 0;
}

.travel-form-actions .settings-anchor-action {
    min-width: 72px;
}

.travel-profile-page .settings-message {
    margin: 0 20px 14px;
}

.settings-message {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}

.settings-success {
    background: #e7f7ec;
    border: 1px solid #b8e4c7;
    color: #176b35;
}

.settings-error {
    background: #fdecec;
    border: 1px solid #f3b5b5;
    color: #b53535;
}

@media (max-width: 1180px) {
    .settings-personal-grid,
    .settings-preference-grid {
        grid-template-columns: 1fr;
    }

    .settings-personal-divider {
        display: none;
    }

    .settings-two-up {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .settings-preference-body {
        grid-template-columns: 1fr;
    }

    .settings-detail-row {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .settings-head {
        align-items: flex-start;
    }

    .budget-empty-state {
        min-height: 320px;
    }

    .budget-empty-graphic {
        width: 144px;
        height: 144px;
        font-size: 46px;
    }

    .settings-dialog--center {
        width: min(94vw, 430px);
    }

    .settings-dialog--drawer {
        width: min(92vw, 360px);
    }

    .settings-form-grid.two-col {
        grid-template-columns: 1fr;
    }

    .settings-dialog-body--travel-document {
        grid-template-columns: 1fr;
    }

    .settings-dialog-form--travel-document {
        grid-template-columns: 1fr;
    }

    .travel-upload-dropzone {
        min-height: 220px;
    }

    .travel-inline,
    .travel-two-col,
    .travel-address-layout {
        grid-template-columns: 1fr;
    }

    .travel-address-column {
        padding-right: 0;
        padding-left: 0;
        border-left: 0;
    }

    .travel-airport {
        max-width: none;
    }

    .cards-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .cards-board {
        grid-template-columns: 1fr;
    }

    .cards-card-tile {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .travel-page-head {
        padding-inline: 14px;
    }

    .travel-section {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* Zoho-like route pages */
.page-surface {
    min-height: calc(100vh - 58px);
}

.page-surface--white {
    background: #fff;
}

.page-surface--dimmed {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 26px 18px 34px;
    background: rgba(241, 244, 250, 0.92);
}

.page-close-button {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #d9deea;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7484;
    background: #fff;
    text-decoration: none;
    flex-shrink: 0;
}

.trip-modal,
.bank-modal {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 20px 70px rgba(20, 31, 54, 0.18);
    overflow: hidden;
}

.trip-modal {
    width: min(100%, 600px);
}

.trip-modal-header,
.bank-modal-header {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    border-bottom: 1px solid #eef1f6;
}

.trip-modal-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #243047;
    font-size: 16px;
    font-weight: 800;
}

.trip-modal-body {
    padding: 14px;
    display: grid;
    gap: 14px;
    background: linear-gradient(180deg, #f9fafe 0, #fff 18%);
}

.trip-card {
    border: 1px solid #e2e7f2;
    border-radius: 12px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 1px 2px rgba(31, 41, 55, 0.03);
}

.trip-field {
    display: grid;
    gap: 7px;
}

.trip-field + .trip-field {
    margin-top: 14px;
}

.trip-field > span {
    color: #f05a5a;
    font-size: 14px;
    font-weight: 700;
}

.trip-field input,
.trip-field textarea {
    width: 100%;
    min-height: 40px;
    border: 1px solid #d7dce8;
    border-radius: 4px;
    background: #fff;
    padding: 0 12px;
    color: #2c3445;
    font-size: 14px;
}

.trip-field textarea {
    min-height: 70px;
    padding: 10px 12px;
    resize: vertical;
}

.trip-type-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.trip-type-option {
    position: relative;
    display: grid;
    gap: 4px;
    min-height: 84px;
    border: 1px solid #d9e1ef;
    border-radius: 4px;
    padding: 14px 14px 12px 36px;
    color: #2b3342;
    cursor: pointer;
}

.trip-type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.trip-type-dot {
    position: absolute;
    top: 16px;
    left: 14px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #b8c3d7;
    background: #fff;
}

.trip-type-option.is-selected {
    border-color: #4f8ef7;
    box-shadow: inset 0 0 0 1px #4f8ef7;
}

.trip-type-option.is-selected .trip-type-dot {
    border-color: #4f8ef7;
    box-shadow: inset 0 0 0 4px #4f8ef7;
}

.trip-type-option strong {
    font-size: 14px;
    font-weight: 800;
}

.trip-type-option small {
    color: #657087;
    font-size: 13px;
    line-height: 1.4;
}

.trip-modal-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px 16px;
}

.trip-primary,
.trip-secondary {
    min-height: 38px;
    border-radius: 4px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.trip-primary {
    border: 0;
    background: #4f8ef7;
    color: #fff;
    box-shadow: 0 10px 18px rgba(79, 142, 247, 0.18);
}

.trip-secondary {
    border: 1px solid #d8dff0;
    background: #fff;
    color: #4b5566;
    box-shadow: none;
}

.trips-surface {
    padding: 28px 24px 34px;
    background: #fff;
}

.trips-hero {
    max-width: 1120px;
    margin: 0 auto 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 1.02fr);
    gap: 26px;
    align-items: start;
    padding: 64px 0 24px;
}

.trips-hero-copy {
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 0 8px 0 0;
}

.trips-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    border: 1px solid #e4eaf6;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #44506a;
    font-size: 22px;
    box-shadow: 0 1px 2px rgba(31, 41, 55, 0.04);
}

.trips-hero-copy h1 {
    margin: 0;
    color: #1f2a44;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.18;
}

.trips-hero-copy p {
    margin: 0;
    max-width: 560px;
    color: #5f6e86;
    font-size: 15px;
    line-height: 1.55;
}

.trips-hero-action {
    width: fit-content;
    min-height: 34px;
    padding-inline: 14px;
    margin-top: 4px;
    font-size: 14px;
}

.trips-shared-block {
    display: grid;
    gap: 10px;
    padding-top: 10px;
    margin-top: 8px;
    border-top: 1px solid #e6ebf5;
}

.trips-shared-block span {
    color: #44506a;
    font-size: 14px;
    font-weight: 600;
}

.trips-shared-block a {
    width: fit-content;
    color: #4f8ef7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.trips-shared-block a i {
    font-size: 11px;
    margin-left: 5px;
}

.trips-hero-preview {
    display: flex;
    justify-content: flex-end;
}

.trips-preview-card {
    width: min(100%, 470px);
    border: 1px solid #dce4f4;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(79, 142, 247, 0.03), 0 12px 28px rgba(17, 24, 39, 0.04);
    overflow: hidden;
}

.trips-preview-card-head {
    padding: 16px 18px 8px;
    display: grid;
    gap: 4px;
}

.trips-preview-card-head strong {
    color: #364055;
    font-size: 16px;
    font-weight: 700;
}

.trips-preview-card-head span {
    color: #99a3b6;
    font-size: 12px;
}

.trips-preview-card-body {
    padding: 0 18px 16px;
    display: grid;
    gap: 12px;
}

.trips-preview-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr)) 1.1fr;
    gap: 8px;
}

.trips-preview-tabs span,
.trips-preview-tabs button {
    height: 42px;
    border: 1px solid #e5eaf5;
    border-radius: 6px;
    background: #f5f7fc;
    color: #9aa4b7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.trips-preview-tabs .is-active {
    background: #eaf2ff;
    color: #4f8ef7;
    box-shadow: inset 0 -3px 0 #4f8ef7;
}

.trips-preview-tabs button {
    width: 100%;
    padding: 0 12px;
    color: #a1a9bc;
    font-size: 14px;
    font-weight: 700;
}

.trips-preview-journey {
    border: 1px solid #e3e9f6;
    border-radius: 10px;
    background: #fff;
    min-height: 100px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

.trips-preview-stop {
    display: grid;
    gap: 3px;
    color: #8b95a7;
}

.trips-preview-stop strong {
    color: #39425a;
    font-size: 16px;
    font-weight: 700;
}

.trips-preview-stop span {
    color: #a5afc0;
    font-size: 12px;
}

.trips-preview-stop small {
    color: #c0c7d3;
    font-size: 11px;
}

.trips-preview-stop--right {
    text-align: right;
    justify-items: end;
}

.trips-preview-play {
    display: grid;
    place-items: center;
}

.trips-preview-play span {
    width: 48px;
    height: 38px;
    border-radius: 8px;
    border: 2px solid #4f8ef7;
    color: #4f8ef7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 1px 2px rgba(79, 142, 247, 0.08);
}

.trips-preview-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px 12px;
    border-top: 1px solid #eef1f7;
    color: #44506a;
    font-size: 13px;
    font-weight: 600;
}

.trips-section {
    max-width: 1120px;
    margin: 0 auto 22px;
    padding: 34px 26px 30px;
    background: #fbfcff;
    border: 1px solid #e8edf8;
    border-radius: 14px;
}

.trips-section-header {
    display: flex;
    justify-content: center;
    padding-bottom: 24px;
    margin-bottom: 18px;
    border-bottom: 1px solid #edf1f7;
}

.trips-section-header h2 {
    margin: 0;
    color: #2b3343;
    font-size: 18px;
    font-weight: 700;
}

.trips-flow {
    display: grid;
    gap: 18px;
    justify-items: center;
}

.trips-flow-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.trips-flow-row--top {
    margin-top: -6px;
}

.trips-flow-card {
    width: 120px;
    min-height: 108px;
    border: 1px solid #edf1f7;
    border-radius: 8px;
    background: #fff;
    display: grid;
    place-items: center;
    gap: 6px;
    padding: 12px 10px;
    color: #667188;
    text-align: center;
    box-shadow: 0 1px 2px rgba(31, 41, 55, 0.03);
}

.trips-flow-card strong {
    color: #687086;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

.trips-flow-icon {
    color: #6d76a6;
    font-size: 18px;
}

.trips-flow-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4f8ef7;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    margin-top: -2px;
}

.trips-flow-avatar--green {
    background: #55bf6a;
}

.trips-flow-card--approval {
    position: relative;
    width: 170px;
    min-height: 108px;
    padding-bottom: 14px;
}

.trips-flow-choice {
    width: calc(100% - 18px);
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
}

.trips-flow-choice--reject {
    background: #ffeaea;
    color: #ff6b6b;
}

.trips-flow-choice--approve {
    background: #ecf9ec;
    color: #50b659;
}

.trips-flow-arrow {
    color: #8791a7;
    font-size: 22px;
    font-weight: 700;
}

.trips-flow-arrow--down {
    width: 100%;
    text-align: center;
    margin-top: -4px;
}

.trips-flow-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #687086;
    font-size: 14px;
    padding-top: 8px;
}

.trips-flow-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.trips-flow-legend i {
    color: #4f8ef7;
}

.trips-flow-legend span:nth-child(2) i {
    color: #55bf6a;
}

.trips-flow-legend span:nth-child(3) i {
    color: #e2a120;
}

.trips-more-panel {
    max-width: 1120px;
    margin: 0 auto 28px;
    padding: 28px 26px;
    background: #fff;
    border: 1px solid #edf1f7;
    border-radius: 14px;
}

.trips-more-list {
    display: grid;
    gap: 18px;
}

.trips-more-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf1f7;
}

.trips-more-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.trips-more-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #e1e7f3;
    color: #69768c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.trips-more-copy strong {
    display: block;
    color: #2c3445;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.trips-more-copy p {
    margin: 0;
    color: #728095;
    font-size: 13px;
    line-height: 1.5;
}

.trips-more-item a {
    color: #4f8ef7;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.trips-more-item a i {
    margin-left: 4px;
    font-size: 11px;
}

.trips-summary-strip {
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 20px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.trips-summary-pill {
    border: 1px solid #edf1f7;
    border-radius: 12px;
    background: #fff;
    padding: 14px 16px;
    display: grid;
    gap: 4px;
}

.trips-summary-pill span {
    color: #738093;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.trips-summary-pill strong {
    color: #233048;
    font-size: 24px;
    font-weight: 800;
}

.trips-page .trips-surface {
    padding: 30px 24px 40px;
    background: linear-gradient(180deg, #fbfcff 0%, #ffffff 100%);
}

.trips-page .trips-hero {
    max-width: 1120px;
    margin: 0 auto 30px;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    gap: 36px;
    align-items: center;
    padding: 72px 0 24px;
}

.trips-page .trips-hero-copy {
    gap: 12px;
    padding-right: 0;
    max-width: 560px;
}

.trips-page .trips-hero-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    border: 1px solid #e2e8f5;
    color: #3f4b67;
}

.trips-page .trips-hero-copy h1 {
    color: #223047;
    font-size: 30px;
    line-height: 1.14;
}

.trips-page .trips-hero-copy p {
    max-width: 590px;
    color: #667487;
    font-size: 15px;
    line-height: 1.6;
}

.trips-page .trips-hero-action {
    min-height: 34px;
    border-radius: 6px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 700;
}

.trips-page .trips-shared-block {
    gap: 8px;
    margin-top: 10px;
    padding-top: 12px;
}

.trips-page .trips-shared-block span {
    color: #44506a;
}

.trips-page .trips-hero-preview {
    justify-content: flex-end;
}

.trips-page .trips-preview-card {
    width: min(100%, 470px);
    border: 1px solid #dce4f4;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(79, 142, 247, 0.03), 0 12px 28px rgba(17, 24, 39, 0.04);
}

.trips-page .trips-preview-card-head {
    padding: 18px 18px 8px;
}

.trips-page .trips-preview-card-head strong {
    color: #39425a;
    font-size: 16px;
}

.trips-page .trips-preview-card-head span {
    color: #9aa4b7;
    font-size: 12px;
}

.trips-page .trips-preview-card-body {
    padding: 0 18px 16px;
}

.trips-page .trips-preview-tabs {
    grid-template-columns: repeat(6, minmax(0, 1fr)) 1.25fr;
}

.trips-page .trips-preview-tabs span,
.trips-page .trips-preview-tabs button {
    height: 44px;
    border-color: #e5eaf5;
    background: #f6f8fc;
}

.trips-page .trips-preview-tabs .is-active {
    background: #eaf2ff;
    color: #4f8ef7;
    box-shadow: inset 0 -3px 0 #4f8ef7;
}

.trips-page .trips-preview-tabs button {
    font-size: 14px;
    color: #a1a9bc;
}

.trips-page .trips-preview-journey {
    min-height: 102px;
    padding: 14px 16px;
    border-color: #e3e9f6;
    border-radius: 10px;
}

.trips-page .trips-preview-stop strong {
    color: #39425a;
    font-size: 16px;
}

.trips-page .trips-preview-stop span {
    color: #a5afc0;
}

.trips-page .trips-preview-stop small {
    color: #c0c7d3;
}

.trips-page .trips-preview-play span {
    width: 48px;
    height: 38px;
    border-radius: 8px;
}

.trips-page .trips-preview-card-footer {
    padding: 10px 16px 12px;
    color: #44506a;
}

.trips-page .trips-preview-pager button {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #edf2fb;
    color: #6f7c8f;
}

.trips-page .trips-section {
    max-width: 1120px;
    margin: 0 auto 22px;
    padding: 34px 26px 30px;
    background: #fbfcff;
    border: 1px solid #e8edf8;
    border-radius: 14px;
}

.trips-page .trips-section-header {
    padding-bottom: 24px;
    margin-bottom: 18px;
}

.trips-page .trips-section-header h2 {
    color: #2b3343;
    font-size: 18px;
}

.trips-page .trips-flow {
    gap: 18px;
}

.trips-page .trips-flow-row {
    gap: 12px;
}

.trips-page .trips-flow-card {
    width: 120px;
    min-height: 108px;
    border-color: #edf1f7;
    border-radius: 8px;
}

.trips-page .trips-flow-card strong {
    font-size: 11px;
    line-height: 1.35;
}

.trips-page .trips-flow-card--approval {
    width: 170px;
}

.trips-page .trips-flow-arrow {
    color: #8791a7;
    font-size: 22px;
}

.trips-page .trips-flow-legend {
    gap: 16px;
    color: #687086;
}

.trips-page .trips-more-panel {
    max-width: 1120px;
    margin: 0 auto 28px;
    padding: 28px 26px;
    background: #fff;
    border: 1px solid #edf1f7;
    border-radius: 14px;
}

.trips-page .trips-more-list {
    gap: 18px;
}

.trips-page .trips-more-item {
    gap: 14px;
    padding-bottom: 18px;
    border-bottom-color: #edf1f7;
}

.trips-page .trips-more-icon {
    border-color: #e1e7f3;
    color: #69768c;
}

.trips-page .trips-more-copy strong {
    color: #2c3445;
    font-size: 16px;
}

.trips-page .trips-more-copy p {
    color: #728095;
    font-size: 13px;
    line-height: 1.5;
}

.trips-page .trips-more-item a {
    color: #4f8ef7;
}

.trips-page .trips-summary-strip {
    display: none;
}

.trips-surface {
    padding: 24px;
    background: linear-gradient(180deg, #f7f9ff 0%, #ffffff 100%);
}

.trips-getting-started {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 22px;
    align-items: stretch;
    padding: 24px;
}

.trips-getting-started-copy {
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 18px 8px 18px 4px;
}

.trips-getting-started-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    border: 1px solid #dde5f4;
    background: #fff;
    color: #3c4c67;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.trips-kicker {
    margin: 0;
    color: #4f8ef7;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.trips-hero-copy h1 {
    margin: 0;
    color: #233048;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.12;
}

.trips-getting-started-copy h1 {
    margin: 0;
    color: #233048;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.12;
}

.trips-getting-started-copy p {
    margin: 0;
    max-width: 600px;
    color: #667487;
    font-size: 15px;
    line-height: 1.55;
}

.trips-getting-started-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 6px;
}

.trips-more-row {
    display: grid;
    gap: 3px;
    padding-top: 10px;
}

.trips-more-row strong {
    color: #243047;
    font-size: 13px;
    font-weight: 800;
}

.trips-more-row span {
    color: #738093;
    font-size: 13px;
    line-height: 1.45;
}

.trips-getting-started-preview {
    border: 1px solid #e4eaf6;
    border-radius: 16px;
    background: #f7f9ff;
    padding: 16px;
    display: grid;
    gap: 14px;
    align-content: start;
}

.trips-preview-top {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(220px, 1fr);
    gap: 12px;
    align-items: stretch;
}

.trips-preview-left,
.trips-preview-right {
    border: 1px solid #e4eaf6;
    border-radius: 14px;
    background: #fff;
    padding: 14px;
    display: grid;
    gap: 12px;
    align-content: start;
}

.trips-receipt-art {
    min-height: 180px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f9fbff 0%, #eef4ff 100%);
    border: 1px solid #e0e7f5;
    display: grid;
    place-items: center;
    gap: 6px;
    color: #5d6b83;
    text-align: center;
}

.trips-receipt-art span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.trips-receipt-art strong {
    color: #233048;
    font-size: 24px;
    font-weight: 800;
}

.trips-receipt-art i {
    font-size: 46px;
    color: #4f8ef7;
}

.trips-preview-caption strong {
    color: #233048;
    font-size: 18px;
    font-weight: 800;
}

.trips-preview-caption p {
    margin: 0;
    color: #667487;
    font-size: 14px;
    line-height: 1.5;
}

.trips-preview-summary-card {
    border-radius: 14px;
    background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
    border: 1px solid #e6edf9;
    padding: 16px;
    display: grid;
    gap: 10px;
}

.trips-preview-summary-card strong {
    color: #233048;
    font-size: 22px;
    font-weight: 800;
}

.trips-preview-summary-card p {
    margin: 0;
    color: #6f7c8f;
    font-size: 13px;
    line-height: 1.45;
}

.trips-preview-mini-list {
    display: grid;
    gap: 10px;
}

.trips-preview-mini-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 12px;
    background: #f8fbff;
    border: 1px solid #e4eaf6;
    padding: 10px 12px;
}

.trips-preview-mini-item span {
    color: #738093;
    font-size: 12px;
    font-weight: 700;
}

.trips-preview-mini-item strong {
    color: #233048;
    font-size: 16px;
    font-weight: 800;
}

.trips-preview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #e4eaf6;
    padding-top: 6px;
    color: #6f7c8f;
    font-size: 13px;
}

.trips-preview-pager {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.trips-preview-pager button {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #edf2fb;
    color: #6f7c8f;
    cursor: pointer;
}

.trips-lower-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    margin-top: 18px;
}

.trips-hero-stats {
    display: none;
}

.trips-list-panel,
.trips-side-panel {
    padding-bottom: 18px;
}

.trips-list {
    display: grid;
    gap: 10px;
    padding: 0 18px 18px;
}

.trip-card-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid #e4eaf6;
    border-radius: 14px;
    background: #fff;
    padding: 16px 18px;
}

.trip-card-row-main {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.trip-card-row-main strong {
    color: #243047;
    font-size: 16px;
    font-weight: 800;
}

.trip-card-row-main p {
    margin: 0;
    color: #6c7789;
    font-size: 14px;
}

.trip-card-row-meta {
    display: grid;
    gap: 6px;
    justify-items: end;
    text-align: right;
    flex-shrink: 0;
}

.trip-card-row-meta span {
    color: #738093;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.trip-card-row-meta strong {
    color: #243047;
    font-size: 13px;
    font-weight: 800;
}

.trip-row-badge {
    width: fit-content;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.trip-row-badge.is-planned {
    background: #edf3ff;
    color: #4f8ef7;
}

.trip-row-badge.is-active {
    background: #e8f8ef;
    color: #1f8a4c;
}

.trip-row-badge.is-complete {
    background: #f1f5f9;
    color: #546176;
}

.trip-row-badge.is-muted {
    background: #f3f4f6;
    color: #6b7280;
}

.trips-empty {
    padding: 28px 18px 24px;
    display: grid;
    gap: 10px;
    text-align: center;
    justify-items: center;
}

.trips-empty strong {
    color: #243047;
    font-size: 18px;
    font-weight: 800;
}

.trips-empty p {
    margin: 0;
    color: #6f7c8f;
    font-size: 14px;
    line-height: 1.5;
    max-width: 340px;
}

.trips-tip-list {
    display: grid;
    gap: 12px;
    padding: 0 18px 18px;
}

.trips-tip {
    border: 1px solid #e4eaf6;
    border-radius: 12px;
    background: #fff;
    padding: 14px;
    display: grid;
    gap: 6px;
}

.trips-tip strong {
    color: #243047;
    font-size: 14px;
    font-weight: 800;
}

.trips-tip span {
    color: #6f7c8f;
    font-size: 13px;
    line-height: 1.5;
}

.trips-spotlight {
    display: grid;
    gap: 14px;
    padding: 0 18px 18px;
}

.trips-spotlight-preview {
    border: 1px solid #e4eaf6;
    border-radius: 18px;
    background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
    padding: 14px;
    display: grid;
    gap: 12px;
}

.trips-spotlight-screen {
    border-radius: 14px;
    padding: 16px;
    min-height: 136px;
    display: grid;
    align-content: start;
    gap: 8px;
}

.trips-spotlight-screen--top {
    background:
        radial-gradient(circle at top right, rgba(79, 142, 247, 0.14), transparent 40%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e6edf9;
}

.trips-spotlight-screen--bottom {
    background: linear-gradient(135deg, #edf5ff 0%, #ffffff 100%);
    border: 1px solid #dfe8f9;
}

.trips-spotlight-chip {
    width: fit-content;
    border-radius: 999px;
    background: #eaf2ff;
    color: #4f8ef7;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.trips-spotlight-chip--muted {
    background: #eef2f7;
    color: #667387;
}

.trips-spotlight-screen strong {
    color: #243047;
    font-size: 17px;
    font-weight: 800;
}

.trips-spotlight-screen p {
    margin: 0;
    color: #667487;
    font-size: 13px;
    line-height: 1.5;
}

.trips-spotlight-mini-stats {
    display: grid;
    gap: 3px;
}

.trips-spotlight-mini-stats span {
    color: #728095;
    font-size: 12px;
    font-weight: 700;
}

.trips-spotlight-mini-stats strong {
    color: #233048;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.trip-create-surface {
    padding: 24px 24px 30px;
    background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 100%);
}

.trip-create-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 360px;
    gap: 20px;
    align-items: start;
    max-width: 1240px;
    margin: 0 auto;
}

.trip-create-panel {
    padding: 24px;
}

.trip-create-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.trip-create-kicker {
    margin: 0 0 8px;
    color: #4f8ef7;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.trip-create-header h1 {
    margin: 0;
    color: #233048;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
}

.trip-create-copy {
    margin: 10px 0 0;
    max-width: 720px;
    color: #68758a;
    font-size: 15px;
    line-height: 1.55;
}

.trip-banner {
    margin: 0 0 16px;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 700;
}

.trip-banner--success {
    background: #e8f8ef;
    color: #1f8a4c;
}

.trip-banner--error {
    background: #feecec;
    color: #d14343;
}

.trip-create-form {
    display: grid;
    gap: 18px;
}

.trip-create-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.trip-form-field {
    display: grid;
    gap: 8px;
}

.trip-form-field > span {
    color: #354258;
    font-size: 14px;
    font-weight: 700;
}

.trip-form-field > small {
    color: #7b8798;
    font-size: 13px;
    line-height: 1.45;
}

.trip-form-field input,
.trip-form-field select,
.trip-form-field textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d8e0ef;
    border-radius: 8px;
    background: #fff;
    padding: 0 12px;
    color: #243047;
    font-size: 14px;
}

.trip-form-field textarea {
    min-height: 96px;
    padding: 10px 12px;
    resize: vertical;
}

.trip-form-field--wide {
    grid-column: 1 / -1;
}

.trip-type-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.trip-type-option {
    position: relative;
    display: grid;
    gap: 6px;
    min-height: 92px;
    border: 1px solid #d9e1ef;
    border-radius: 12px;
    padding: 16px 16px 14px 40px;
    color: #2b3342;
    background: #fff;
    cursor: pointer;
}

.trip-type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.trip-type-dot {
    position: absolute;
    top: 18px;
    left: 14px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #b8c3d7;
    background: #fff;
}

.trip-type-option.is-selected {
    border-color: #4f8ef7;
    box-shadow: inset 0 0 0 1px #4f8ef7;
}

.trip-type-option.is-selected .trip-type-dot {
    border-color: #4f8ef7;
    box-shadow: inset 0 0 0 4px #4f8ef7;
}

.trip-type-option strong {
    font-size: 14px;
    font-weight: 800;
}

.trip-type-option small {
    color: #657087;
    font-size: 13px;
    line-height: 1.4;
}

.trip-cover-dropzone {
    border: 1px dashed #b8c9ef;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfcff 0%, #f5f8ff 100%);
    min-height: 170px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 20px;
    cursor: pointer;
}

.trip-cover-dropzone input {
    display: none;
}

.trip-cover-dropzone strong {
    color: #243047;
    font-size: 15px;
}

.trip-cover-dropzone small {
    color: #708096;
    font-size: 13px;
}

.trip-cover-dropzone-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #eaf2ff;
    color: #4f8ef7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: inset 0 0 0 1px rgba(79, 142, 247, 0.14);
}

.trip-create-footer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trip-preview-panel {
    position: sticky;
    top: 84px;
    display: grid;
    gap: 16px;
    padding: 18px;
}

.trip-preview-frame {
    position: relative;
    min-height: 250px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e3e9f6;
    background: linear-gradient(180deg, #f7faff 0%, #fff 100%);
}

.trip-preview-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.trip-preview-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
    color: #758196;
    background:
        radial-gradient(circle at 50% 40%, rgba(79, 142, 247, 0.1), transparent 44%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 255, 0.95) 100%);
}

.trip-preview-placeholder i {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #ebf2ff;
    color: #4f8ef7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.trip-preview-placeholder strong {
    color: #243047;
    font-size: 15px;
}

.trip-preview-placeholder span {
    max-width: 220px;
    font-size: 13px;
    line-height: 1.45;
}

.trip-preview-summary {
    display: grid;
    gap: 14px;
}

.trip-preview-summary-top {
    display: grid;
    gap: 10px;
}

.trip-preview-badge {
    width: fit-content;
    border-radius: 999px;
    background: #eaf2ff;
    color: #4f8ef7;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.trip-preview-summary-top strong {
    color: #233048;
    font-size: 20px;
    font-weight: 800;
}

.trip-preview-summary-top p {
    margin: 0;
    color: #667487;
    font-size: 14px;
    line-height: 1.5;
}

.trip-preview-meta {
    display: grid;
    gap: 10px;
    padding-top: 2px;
}

.trip-preview-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #edf1f7;
}

.trip-preview-row span {
    color: #728095;
    font-size: 13px;
}

.trip-preview-row strong {
    color: #243047;
    font-size: 13px;
    font-weight: 800;
    text-align: right;
}

.is-hidden {
    display: none !important;
}

.report-modal,
.advance-modal {
    width: min(100%, 520px);
}

.advance-modal {
    width: min(100%, 420px);
}

.report-modal-body,
.advance-modal-body {
    gap: 12px;
}

.report-field,
.advance-field {
    display: grid;
    gap: 7px;
}

.report-field + .report-field,
.advance-field + .advance-field {
    margin-top: 14px;
}

.report-field > span,
.advance-field > span {
    color: #68728a;
    font-size: 14px;
    font-weight: 700;
}

.report-field--required > span,
.advance-field--required > span {
    color: #f05a5a;
}

.report-field input,
.report-field select,
.report-field textarea,
.advance-field input,
.advance-field select,
.advance-field textarea {
    width: 100%;
    min-height: 40px;
    border: 1px solid #d7dce8;
    border-radius: 4px;
    background: #fff;
    padding: 0 12px;
    color: #2c3445;
    font-size: 14px;
}

.report-field textarea,
.advance-field textarea {
    min-height: 82px;
    padding: 10px 12px;
    resize: vertical;
}

.report-duration-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.report-field--ghost > span {
    visibility: hidden;
}

.advance-amount-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0;
}

.advance-amount-row select,
.advance-amount-row input {
    border-radius: 4px 0 0 4px;
}

.advance-amount-row input {
    border-left: 0;
    border-radius: 0 4px 4px 0;
}

.report-modal-footer,
.advance-modal-footer {
    padding-top: 0;
}

.expense-page .dashboard-content,
.cards-connect-page .dashboard-content,
.cards-import-page .dashboard-content,
.transactions-page .dashboard-content,
.trip-page .dashboard-content {
    padding: 0;
    gap: 0;
}

.transactions-surface {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 58px);
    background: #fff;
}

.transactions-header {
    min-height: 56px;
    padding: 14px 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #f7f7fd;
}

.expense-tabs--transactions {
    gap: 28px;
}

.page-close-button--inline {
    margin-left: auto;
}

.transactions-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 26px 34px 18px;
}

.transactions-title {
    border: 0;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1f2937;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
}

.transactions-title i {
    font-size: 11px;
    color: #111827;
}

.transactions-filter {
    width: 42px;
    height: 42px;
    border: 1px solid #d6dce8;
    border-radius: 4px;
    background: #fff;
    color: #60708f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
}

.transactions-board {
    padding: 0 34px 24px;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
}

.transactions-table th {
    padding: 12px 12px 14px;
    border-top: 1px solid #eef1f6;
    border-bottom: 1px solid #eef1f6;
    color: #5a6c98;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-align: left;
}

.transactions-select-col {
    width: 42px;
}

.transactions-amount-col {
    text-align: right;
}

.transactions-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.transactions-check input {
    width: 16px;
    height: 16px;
    accent-color: #4f8ef7;
}

.transactions-empty-state {
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6d7fb0;
    font-size: 18px;
    text-align: center;
    padding-bottom: 60px;
}

.advances-page .dashboard-content {
    padding: 0;
    gap: 0;
}

.advances-surface {
    position: relative;
    min-height: calc(100vh - 58px);
    overflow: hidden;
    background: #fff;
}

.advances-header {
    min-height: 60px;
    padding: 14px 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #eceff6;
    background: #f8f9fe;
}

.advances-tabs-wrap {
    min-width: 0;
}

.expense-tabs--advances {
    gap: 20px;
}

.expense-tab--button {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-right: 2px;
}

.advances-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.advances-show-button {
    min-height: 30px;
    border: 1px solid #d2d8e7;
    border-radius: 4px;
    background: #fff;
    color: #4d5b76;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.02);
}

.advances-empty-state {
    width: min(100%, 860px);
    margin: 0 auto;
    min-height: calc(100vh - 118px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 34px 24px 44px;
    color: #5c6886;
}

.advances-empty-art {
    width: 220px;
    height: 130px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advances-empty-scene {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ecf5ff 0, #dcecff 55%, #cfe2ff 100%);
    color: #3c88f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 16px 34px rgba(79, 142, 247, 0.12);
}

.advances-empty-state h1 {
    margin: 0;
    color: #58647f;
    font-size: 22px;
    font-weight: 500;
}

.advances-empty-state p {
    margin: 8px 0 0;
    color: #7382a5;
    font-size: 18px;
    line-height: 1.45;
}

.advances-record-button {
    margin-top: 18px;
}

.advances-learn-link {
    margin-top: 18px;
    color: #6a83b6;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.advances-learn-link:hover {
    color: #4f8ef7;
}

.advance-drawer {
    position: fixed;
    top: 58px;
    right: 0;
    width: min(100%, 390px);
    height: calc(100vh - 58px);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 180ms ease, opacity 180ms ease;
    z-index: 60;
}

.advance-drawer.is-open {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.advance-drawer-backdrop {
    position: fixed;
    top: 58px;
    left: 0;
    right: 390px;
    bottom: 0;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(17, 24, 39, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 50;
}

.advances-surface.drawer-open .advance-drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.advance-drawer-card {
    width: 100%;
    background: #f9fbff;
    border-left: 1px solid #e6ebf4;
    box-shadow: -18px 0 40px rgba(17, 24, 39, 0.08);
    position: relative;
    overflow-y: auto;
    padding: 18px 18px 24px;
}

.advance-drawer-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #edf1f7;
    color: #7a859b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.advance-drawer-art {
    padding-top: 26px;
    display: flex;
    justify-content: center;
}

.advance-drawer-circle {
    width: 122px;
    height: 122px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #eaf3ff 0, #ddecff 58%, #cfe4ff 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2f82f3;
    font-size: 46px;
    box-shadow: 0 20px 34px rgba(60, 136, 245, 0.16);
}

.advance-drawer-card h2 {
    margin: 18px 0 0;
    color: #24405f;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 500;
    text-align: center;
}

.advance-drawer-lead {
    margin: 18px 10px 0;
    color: #ff6348;
    font-size: 17px;
    line-height: 1.6;
    text-align: center;
}

.advance-drawer-cta {
    margin: 18px auto 0;
    min-height: 38px;
    border: 0;
    border-radius: 4px;
    padding: 0 16px;
    background: #1f5b8f;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: block;
    box-shadow: 0 10px 18px rgba(31, 91, 143, 0.22);
}

.advance-drawer-copy {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #dfe6f2;
}

.advance-drawer-copy h3 {
    margin: 0 0 12px;
    color: #2c3f59;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
}

.advance-drawer-copy p {
    margin: 0 0 16px;
    color: #2c3f59;
    font-size: 16px;
    line-height: 1.55;
}

.advance-drawer-note {
    color: #6f7e96 !important;
    font-size: 14px !important;
    font-style: italic;
}

@media (max-width: 980px) {
    .advance-drawer {
        width: min(100%, 100vw);
    }

    .advance-drawer-backdrop {
        right: 0;
    }

    .advances-empty-state {
        min-height: calc(100vh - 118px);
    }
}

.expense-subnav {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px 0;
}

.expense-tabs {
    display: flex;
    align-items: center;
    gap: 20px;
    overflow-x: auto;
}

.expense-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 0 12px;
    border: 0;
    border-bottom: 3px solid transparent;
    color: #2d3646;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.expense-tab.is-active {
    color: #4f8ef7;
    border-bottom-color: #4f8ef7;
}

.expense-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 28px;
    padding: 18px 20px 24px;
}

.expense-receipt-panel {
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #dbe1ee;
}

.expense-upload-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    color: #62708b;
}

.expense-upload-dropzone i {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 1px solid #e0e6f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7786a1;
    font-size: 22px;
    background: #fff;
}

.expense-upload-dropzone strong {
    color: #4a5870;
    font-size: 15px;
    font-weight: 700;
}

.expense-upload-dropzone strong span {
    color: #4f8ef7;
}

.expense-form-panel {
    display: grid;
    gap: 14px;
    padding-right: 6px;
}

.expense-field {
    display: grid;
    gap: 6px;
}

.expense-field > span {
    color: #68728a;
    font-size: 14px;
    font-weight: 700;
}

.expense-field--accent > span {
    color: #f05a5a;
}

.expense-field input,
.expense-field select,
.expense-field textarea {
    width: 100%;
    min-height: 40px;
    border: 1px solid #d7dce8;
    border-radius: 4px;
    background: #fff;
    padding: 0 12px;
    color: #2c3445;
    font-size: 14px;
}

.expense-field textarea {
    min-height: 90px;
    padding: 10px 12px;
    resize: vertical;
}

.expense-label-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.expense-label-line a {
    color: #4f8ef7;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.expense-amount-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.expense-amount-input {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    border: 1px solid #d7dce8;
    border-radius: 4px;
    overflow: hidden;
}

.expense-amount-input select,
.expense-amount-input input {
    border: 0;
    border-radius: 0;
}

.expense-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 28px;
    color: #4c5566;
    font-size: 14px;
    white-space: nowrap;
}

.expense-check-row i {
    color: #a5afc0;
    font-size: 12px;
}

.expense-footnote {
    border-top: 1px solid #edf0f5;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    color: #5c6678;
    font-size: 13px;
    line-height: 1.4;
}

.expense-footnote img {
    width: 18px;
    height: 18px;
}

.expense-footnote a,
.import-note a,
.bank-terms-check a {
    color: #4f8ef7;
    text-decoration: none;
    font-weight: 700;
}

.expense-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 6px;
}

.expense-actions--center {
    justify-content: flex-start;
    padding-top: 14px;
    border-top: 1px solid #edf0f5;
}

.expense-actions--left {
    justify-content: flex-start;
}

.expense-primary,
.expense-secondary,
.expense-ghost {
    min-height: 38px;
    border-radius: 4px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.expense-primary {
    border: 0;
    background: #4f8ef7;
    color: #fff;
    box-shadow: 0 10px 18px rgba(79, 142, 247, 0.18);
}

.expense-primary--small {
    min-height: 32px;
    padding: 0 12px;
    font-size: 13px;
}

.expense-secondary,
.expense-ghost {
    border: 1px solid #d8dff0;
    background: #fff;
    color: #4b5566;
    box-shadow: none;
}

.bulk-expense-panel {
    padding: 12px 0 24px;
}

.expense-field--report {
    max-width: 320px;
    padding: 0 18px;
}

.bulk-grid-wrap {
    margin-top: 12px;
    overflow-x: auto;
    border-top: 1px solid #edf0f5;
}

.bulk-grid-head,
.bulk-grid-row {
    display: grid;
    grid-template-columns: 28px 52px 180px 180px 180px 160px 160px 130px 140px 160px;
    align-items: center;
    min-width: 1360px;
}

.bulk-grid-head {
    min-height: 42px;
    color: #f05a5a;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid #edf0f5;
}

.bulk-grid-head > span {
    padding: 0 10px;
}

.bulk-grid-row {
    min-height: 58px;
    border-bottom: 1px solid #edf0f5;
}

.bulk-grid-row > input,
.bulk-grid-row > select,
.bulk-amount-cell input,
.bulk-amount-cell select {
    min-height: 38px;
    border: 1px solid #d7dce8;
    border-radius: 0;
    background: #fff;
    padding: 0 10px;
    color: #2c3445;
    font-size: 14px;
}

.bulk-row-index {
    color: #596276;
    text-align: center;
    font-size: 14px;
}

.bulk-row-add {
    width: 38px;
    height: 38px;
    border: 1px dashed #d6dbe8;
    border-radius: 4px;
    background: #fff;
    color: #51627b;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.bulk-amount-cell {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
}

.bulk-check {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bulk-check input {
    width: 16px;
    height: 16px;
}

.bulk-add-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px 0;
    color: #4f8ef7;
    text-decoration: none;
    font-weight: 700;
}

.cards-from-surface {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cards-empty-state {
    width: min(100%, 420px);
    display: grid;
    gap: 14px;
    text-align: center;
    padding: 24px 20px 32px;
}

.cards-empty-illustration {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    margin: 0 auto;
    background: #f8f9fd;
    border: 1px solid #e2e7f2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f0a52f;
    font-size: 26px;
}

.cards-empty-state h2 {
    margin: 0;
    color: #2d3748;
    font-size: 18px;
    font-weight: 800;
}

.cards-empty-actions {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cards-dropdown--center .cards-dropdown-menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.cards-dropdown-item {
    display: block;
    width: 100%;
    text-decoration: none;
}

.bank-modal {
    width: min(92vw, 920px);
}

.bank-modal--selector {
    width: min(92vw, 560px);
}

.bank-modal-header h2 {
    margin: 0;
    color: #2c3344;
    font-size: 18px;
    font-weight: 800;
}

.bank-modal-copy {
    margin: 14px 18px 12px;
    color: #5d6779;
    font-size: 14px;
    line-height: 1.45;
}

.bank-terms-box {
    margin: 0 18px;
    border: 1px solid #e2e7f2;
    border-radius: 8px;
    background: #f6f7fb;
    padding: 12px;
}

.bank-terms-sheet {
    height: 330px;
    overflow: auto;
    background: #fff;
    border: 1px solid #d3d9e7;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    padding: 18px 24px;
}

.bank-terms-sheet h3 {
    margin: 0 0 16px;
    color: #2a3243;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
}

.bank-terms-sheet h4 {
    margin: 16px 0 8px;
    color: #2f3748;
    font-size: 14px;
    font-weight: 800;
}

.bank-terms-sheet p {
    margin: 0 0 10px;
    color: #334155;
    font-size: 13px;
    line-height: 1.45;
}

.bank-terms-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 14px 18px 0;
    color: #4c5566;
    font-size: 14px;
}

.bank-select {
    display: grid;
    gap: 8px;
    margin: 0 18px;
}

.bank-select span {
    color: #68728a;
    font-size: 14px;
    font-weight: 700;
}

.bank-select select {
    min-height: 40px;
    border: 1px solid #d7dce8;
    border-radius: 4px;
    padding: 0 12px;
    background: #fff;
}

.bank-modal-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 18px 0;
    border-top: 1px solid #edf0f5;
    margin-top: 18px;
}

.import-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 18px 0;
}

.import-header h1 {
    margin: 0;
    color: #2a3243;
    font-size: 20px;
    font-weight: 800;
}

.import-header .page-close-button {
    position: absolute;
    right: 18px;
    top: 12px;
}

.import-stepper {
    display: flex;
    justify-content: center;
    gap: 22px;
    padding: 14px 18px 24px;
    flex-wrap: wrap;
}

.import-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8a94a8;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.import-step strong {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e7edf9;
    color: #5b6a84;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.import-step.is-active,
.import-step.is-complete {
    color: #2d3a52;
}

.import-step.is-active strong {
    background: #4f8ef7;
    color: #fff;
}

.import-step.is-complete strong {
    background: #49b36b;
    color: #fff;
}

.import-form-shell {
    display: flex;
    justify-content: center;
    padding: 0 18px 24px;
}

.import-form {
    width: min(100%, 430px);
    display: grid;
    gap: 14px;
}

.import-field {
    display: grid;
    gap: 6px;
}

.import-field > span {
    color: #f05a5a;
    font-size: 14px;
    font-weight: 700;
}

.import-field input,
.import-field select,
.import-field textarea {
    min-height: 40px;
    border: 1px solid #d7dce8;
    border-radius: 4px;
    padding: 0 12px;
    color: #2c3445;
    font-size: 14px;
    background: #fff;
}

.import-radios {
    display: flex;
    gap: 18px;
    align-items: center;
}

.import-radios label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2d3445;
    font-size: 14px;
}

.import-upload-shell {
    width: min(100%, 500px);
    margin: 0 auto;
    display: grid;
    gap: 14px;
    padding: 0 18px 24px;
}

.import-upload-box {
    border: 1px solid #d9dfec;
    border-radius: 4px;
    background: #fff;
    padding: 18px;
}

.import-upload-target {
    min-height: 300px;
    border: 1px dashed #d6dbe8;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    color: #5f6d84;
}

.import-upload-target i {
    color: #4f8ef7;
    font-size: 34px;
}

.import-upload-target strong {
    color: #3f4a60;
    font-size: 14px;
    font-weight: 800;
}

.import-upload-target a {
    color: #4f8ef7;
    text-decoration: none;
    font-weight: 700;
}

.import-upload-target small {
    color: #8b94a7;
    font-size: 12px;
}

.import-note {
    margin: 0;
    color: #4c5566;
    font-size: 14px;
}

.bank-terms-check--inline {
    margin: 0;
}

.import-field--compact {
    max-width: 210px;
}

@media (max-width: 1180px) {
    .expense-form-layout {
        grid-template-columns: 1fr;
    }

    .expense-receipt-panel {
        min-height: 320px;
    }

    .cards-empty-actions {
        justify-content: flex-start;
    }

    .bulk-grid-wrap {
        border-bottom: 1px solid #edf0f5;
    }

    .trips-page .trips-hero {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-top: 28px;
    }

    .approvals-hero,
    .approvals-list-toolbar {
        flex-direction: column;
    }

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

    .approvals-summary-card {
        min-height: 420px;
    }

    .analytics-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .analytics-summary-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .analytics-insights {
        grid-template-columns: 1fr;
    }

    .analytics-card--activity {
        max-width: 100%;
    }

    .analytics-link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trips-page .trips-hero-preview {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .page-surface--dimmed {
        padding-inline: 12px;
    }

    .trip-modal {
        width: 100%;
    }

    .trip-type-grid {
        grid-template-columns: 1fr;
    }

    .trip-create-surface {
        padding-inline: 12px;
        padding-top: 16px;
    }

    .trip-create-shell {
        grid-template-columns: 1fr;
    }

    .trip-create-panel {
        padding: 18px;
    }

    .trip-preview-panel {
        position: static;
    }

    .trips-surface {
        padding-inline: 12px;
        padding-top: 16px;
    }

    .trips-page .trips-surface {
        padding-inline: 12px;
        padding-top: 16px;
    }

    .trips-page .trips-hero {
        padding: 16px 0 20px;
        gap: 18px;
    }

    .trips-page .trips-hero-copy h1 {
        font-size: 26px;
    }

    .trips-page .trips-hero-copy p {
        font-size: 14px;
    }

    .trips-page .trips-preview-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .trips-page .trips-preview-tabs button {
        grid-column: 1 / -1;
    }

    .trips-page .trips-preview-journey {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .trips-page .trips-preview-stop--right {
        text-align: left;
        justify-items: start;
    }

    .trips-page .trips-preview-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .trips-page .trips-section,
    .trips-page .trips-more-panel {
        padding: 22px 16px;
    }

    .trips-page .trips-flow-row {
        gap: 10px;
    }

    .trips-page .trips-flow-arrow {
        width: 100%;
        text-align: center;
        margin: -2px 0;
    }

    .trips-page .trips-flow-row--top {
        margin-top: 0;
    }

    .trips-page .trips-more-item {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .trips-page .trips-more-item a {
        grid-column: 2;
    }

    .trips-page .trips-flow-card,
    .trips-page .trips-flow-card--approval {
        width: 100%;
        max-width: 240px;
    }

    .trips-page .trips-flow-legend {
        gap: 12px;
    }

    .trips-page .trips-flow-choice {
        width: calc(100% - 12px);
    }

    .trips-getting-started,
    .trips-lower-grid {
        grid-template-columns: 1fr;
    }

    .trips-getting-started-preview {
        padding: 12px;
    }

    .trips-preview-top {
        grid-template-columns: 1fr;
    }

    .trips-preview-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .trip-card-row {
        flex-direction: column;
    }

    .trip-card-row-meta {
        justify-items: start;
        text-align: left;
    }

    .expense-subnav {
        padding-inline: 14px;
        flex-direction: column;
        align-items: flex-start;
    }

    .expense-form-layout {
        padding-inline: 14px;
    }

    .expense-amount-row {
        grid-template-columns: 1fr;
    }

    .expense-check-row {
        padding-top: 0;
    }

    .expense-actions {
        flex-wrap: wrap;
    }

    .approvals-page .approvals-surface {
        padding-inline: 14px;
    }

    .approvals-table {
        min-width: 860px;
    }

    .approvals-table-wrap {
        overflow-x: auto;
    }

    .analytics-page .analytics-surface {
        padding-inline: 14px;
    }

    .analytics-summary-strip,
    .analytics-link-grid {
        grid-template-columns: 1fr;
    }

    .bank-terms-box,
    .bank-modal-copy,
    .bank-modal-footer,
    .bank-select {
        margin-left: 14px;
        margin-right: 14px;
    }

    .bulk-grid-head,
    .bulk-grid-row {
        min-width: 1220px;
    }
}
