/* ===========================
   DasherLab Client Portal
   =========================== */

.portal-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 20px 20px 0;
}

.portal-action-card {
    background: white;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    text-decoration: none;
    color: #0b2f6b;
}

.portal-action-card strong {
    display: block;
    margin-bottom: 6px;
}

.portal-action-card span {
    color: #5d6b7a;
    font-size: 0.95rem;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.eskodsk-resource-card {
    display: grid;
    gap: 16px;
}

.eskodsk-resource-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eskodsk-resource-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #0b2f6b, #174da8);
    color: #ffffff;
    font-size: 1.4rem;
    box-shadow: 0 10px 22px rgba(11, 47, 107, 0.2);
    flex-shrink: 0;
}

.eskodsk-resource-card h2 {
    margin: 0;
    color: #0b2f6b;
}

.eskodsk-resource-card p {
    margin: 0;
    color: #4f5c6b;
    line-height: 1.6;
}

.eskodsk-resource-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.98rem;
    padding: 10px 18px;
}

.overview-card {
    background: #f7f9fc;
    border-radius: 16px;
    padding: 18px;
    border: 1px solid #e5ebf2;
}

.overview-card h3 {
    color: #0b2f6b;
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.overview-card h3#analyticsMostUsedRoute {
    font-size: 1.28rem;
    line-height: 1.3;
    word-break: break-word;
}

.overview-card p {
    color: #5d6b7a;
    margin: 0;
}

.request-list {
    display: grid;
    gap: 16px;
}

.request-tabs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.request-tab {
    border: 1px solid #dbe4ee;
    background: #f7faff;
    color: #0b2f6b;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 600;
    cursor: pointer;
}

.request-tab.active {
    background: #0b2f6b;
    color: white;
    border-color: #0b2f6b;
}

.request-folder-button {
    background: #eef7ff;
    color: #0b2f6b;
    border-color: #cfe3ff;
}

.request-folder-button.active {
    background: #0b2f6b;
    color: white;
    border-color: #0b2f6b;
}

.request-type-tabs {
    margin-bottom: 10px;
}

.request-status-tabs {
    margin-top: 0;
}

.date-group {
    border: 1px solid #e6edf5;
    border-radius: 14px;
    background: #f8fbff;
    overflow: hidden;
    margin-bottom: 12px;
}

.date-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    background: transparent;
    color: #0b2f6b;
    font-weight: 700;
    padding: 12px 14px;
    cursor: pointer;
    text-align: left;
}

.date-group-count {
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eaf2ff;
    color: #0b2f6b;
    font-size: 0.8rem;
}

.date-group-body {
    display: none;
    padding: 0 10px 12px;
}

.date-group.expanded > .date-group-body {
    display: block;
}

.day-group {
    border: 1px solid #edf3fa;
    background: #fff;
}

.day-group > .date-group-toggle {
    font-size: 0.95rem;
    padding: 10px 12px;
    background: #f4f8ff;
}

.day-group > .date-group-body {
    padding: 10px;
}

.dashboard-owner-chat-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    border: 1px solid #e7edf5;
}

.owner-avery-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.owner-avery-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0b2f6b;
    flex-shrink: 0;
}

.owner-avery-header strong {
    color: #0b2f6b;
    font-size: 1.05rem;
}

.owner-avery-header p {
    color: #5d6b7a;
    font-size: 0.95rem;
    margin-top: 2px;
}

.owner-avery-messages {
    display: grid;
    gap: 10px;
    max-height: 364px;
    overflow-y: auto;
    padding: 12px;
    border-radius: 16px;
    background: #f7faff;
    border: 1px solid #e7edf5;
    margin-bottom: 14px;
}

.message {
    display: grid;
    gap: 6px;
    line-height: 1.5;
}

.user-message {
    justify-self: end;
    max-width: 80%;
    background: #0b2f6b;
    color: white;
    border-radius: 14px 14px 4px 14px;
    padding: 10px 12px;
}

.user-message strong {
    color: white;
}

.avery-message {
    justify-self: start;
    max-width: 85%;
    background: white;
    color: #2f3f53;
    border: 1px solid #e7edf5;
    border-radius: 14px 14px 14px 4px;
    padding: 10px 12px;
    box-shadow: 0 1px 2px rgba(15, 35, 61, 0.04);
}

.avery-message strong {
    color: #0b2f6b;
}

.message-body {
    margin-top: 4px;
    color: inherit;
}

.message-body p,
.message-body ul,
.message-body ol {
    margin: 0 0 8px;
}

.message-body p:last-child,
.message-body ul:last-child,
.message-body ol:last-child,
.message-body h1:last-child,
.message-body h2:last-child,
.message-body h3:last-child,
.message-body h4:last-child,
.message-body h5:last-child,
.message-body h6:last-child {
    margin-bottom: 0;
}

.message-body ul,
.message-body ol {
    padding-left: 20px;
}

.typing-message {
    background: #f2f7ff;
    border-color: #dbeafc;
    color: #4d6279;
}

.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.typing-label {
    font-style: italic;
    color: #5d6b7a;
}

.typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 12px;
}

.typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7d9bc2;
    animation: owner-avery-bounce 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.12s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.24s;
}

@keyframes owner-avery-bounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    40% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

.owner-avery-input-row {
    display: flex;
    gap: 10px;
}

.owner-avery-input-row input {
    flex: 1;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.95rem;
}

.owner-avery-input-row button {
    background: #0b2f6b;
    color: white;
    border: 0;
    border-radius: 12px;
    padding: 0 16px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.owner-avery-input-row button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.owner-avery-input-row input:disabled {
    background: #f6f9fc;
    color: #53667c;
}

.owner-ada-summary-card {
    display: grid;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #dbeafc;
    border-radius: 14px;
    background: #f7faff;
    box-shadow: 0 2px 8px rgba(11, 47, 107, 0.05);
}

.owner-ada-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.owner-ada-summary-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5d6b7a;
    font-weight: 700;
}

.owner-ada-summary-tracking {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0b2f6b;
}

.owner-ada-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px 14px;
}

.owner-ada-summary-grid > div {
    background: white;
    border: 1px solid #edf3fa;
    border-radius: 10px;
    padding: 10px 12px;
}

.owner-ada-summary-label {
    color: #5d6b7a;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    font-weight: 700;
}

.owner-ada-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.owner-ada-action {
    border: 1px solid #d7e6ff;
    background: #eff6ff;
    color: #0b2f6b;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    cursor: pointer;
}

.owner-ada-action:hover {
    background: #dfeeff;
}

.owner-avery-typing {
    font-style: italic;
    color: #5d6b7a;
}

.owner-avery-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.owner-avery-suggestion {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef5ff;
    border: 1px solid #dbe6f4;
    color: #0b2f6b;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.owner-avery-suggestion:hover {
    background: #dfeeff;
}

.request-card {
    background: #fcfdff;
    border: 1px solid #e6edf5;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

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

.request-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.request-status-label {
    color: #5d6b7a;
    font-size: 0.9rem;
    font-weight: 600;
}

.request-status-select {
    border: 1px solid #dbe4ee;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 0.9rem;
    color: #0b2f6b;
    background: #f7faff;
    min-width: 150px;
}

.request-status-select.completed {
    background: #ebf9ef;
    border-color: #7acb8e;
    color: #1f6f3b;
}

.request-card h3 {
    color: #0b2f6b;
    margin-bottom: 4px;
}

.request-subtitle {
    color: #5d6b7a;
    font-size: 0.95rem;
}

.status-pill {
    background: #e7f3ff;
    color: #155d9b;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.85rem;
    font-weight: bold;
    white-space: nowrap;
}

.status-pill.completed {
    background: #ebf9ef;
    color: #1f6f3b;
}

.status-pill.active {
    background: #fff4db;
    color: #8a5a00;
}

.request-tracking {
    background: #f4f7fb;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
    color: #4f5c6b;
}

.request-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.request-meta div {
    color: #4f5c6b;
    font-size: 0.95rem;
}

.quote-summary {
    background: #f9fbff;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #e6edf5;
}

.request-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.schedule-pickup-button {
    background: #edf5ff;
    color: #0b2f6b;
    border: 1px solid #d6e7ff;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: bold;
}

.dismiss-request-button {
    background: #fff4f2;
    color: #8d2c2c;
    border: 1px solid #f3c7c0;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: bold;
}

.request-link {
    color: #0b2f6b;
    font-weight: bold;
    text-decoration: none;
}

.request-toggle {
    background: #0b2f6b;
    color: white;
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
}

.request-details {
    display: none;
    margin-top: 12px;
}

.request-card.expanded .request-details {
    display: block;
}

.request-details-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.request-details-grid div {
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px;
}

.request-details-grid h4 {
    color: #0b2f6b;
    margin-bottom: 8px;
}

.request-details-grid p {
    margin: 6px 0;
    color: #4f5c6b;
    font-size: 0.95rem;
}

.pickup-calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.pickup-calendar-month {
    color: #0b2f6b;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.calendar-nav {
    border: 1px solid #dfeaf8;
    background: #f6f9ff;
    color: #0b2f6b;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
}

.pickup-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.floating-calendar-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 30;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #0b2f6b, #114bb0);
    color: white;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.02em;
    padding: 16px 22px;
    box-shadow: 0 16px 32px rgba(11, 47, 107, 0.32);
    cursor: pointer;
    min-width: 140px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.floating-calendar-button:hover,
.floating-calendar-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(11, 47, 107, 0.38);
}

.calendar-drawer {
    position: fixed;
    right: 24px;
    bottom: 92px;
    width: min(760px, calc(100vw - 32px));
    height: min(82vh, 880px);
    max-height: 82vh;
    background: white;
    border: 1px solid #e5ebf2;
    border-radius: 22px;
    box-shadow: 0 28px 58px rgba(15, 35, 61, 0.22);
    overflow: hidden;
    z-index: 25;
}

.calendar-drawer.hidden {
    display: none;
}

.calendar-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #edf3fa;
    background: #f7faff;
}

.calendar-drawer-header h3 {
    color: #0b2f6b;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
}

.calendar-drawer-close {
    border: 0;
    background: transparent;
    font-size: 1.4rem;
    color: #0b2f6b;
    cursor: pointer;
    padding: 6px 8px;
}

.calendar-drawer-body {
    padding: 16px;
    height: calc(100% - 78px);
    overflow-y: auto;
}

@media (max-width: 600px) {
    .floating-calendar-button {
        right: 12px;
        bottom: 12px;
        padding: 14px 18px;
        min-width: 124px;
        font-size: 0.95rem;
    }

    .calendar-drawer {
        right: 10px;
        bottom: 76px;
        width: min(94vw, 680px);
        height: min(78vh, 760px);
    }
}


.pickup-calendar-day-header {
    text-align: center;
    color: #5d6b7a;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding-bottom: 6px;
}

.pickup-calendar-cell {
    min-height: 120px;
    background: #f7fafd;
    border: 1px solid #e5edf7;
    border-radius: 12px;
    padding: 8px;
    color: #24364d;
}

.pickup-calendar-cell.outside-month {
    opacity: 0.45;
}

.pickup-calendar-cell.today {
    border-color: #7fb0ff;
    box-shadow: inset 0 0 0 1px rgba(94, 143, 255, 0.5);
}

.pickup-calendar-date {
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 8px;
    color: #18396d;
}

.pickup-calendar-item {
    background: #ebf5ff;
    border: 1px solid #cfe5ff;
    border-radius: 8px;
    padding: 6px 7px;
    margin-bottom: 6px;
    font-size: 0.72rem;
    color: #0b2f6b;
    cursor: pointer;
    line-height: 1.35;
}

.pickup-calendar-item strong {
    display: block;
    margin-bottom: 2px;
}

.business-owner-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.business-owner-summary {
    margin-top: 8px;
    color: #5d6b7a;
}

.business-owner-client-panel {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.owner-client-directory-list {
    overflow: auto;
    border: 1px solid #e5edf7;
    border-radius: 14px;
    background: white;
}

.owner-client-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.owner-client-table th,
.owner-client-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #edf2f8;
    text-align: left;
    vertical-align: top;
    color: #233b59;
}

.owner-client-table th {
    background: #f5f9ff;
    color: #0b2f6b;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.owner-client-table tbody tr:hover {
    background: #f9fbff;
}

.owner-client-table .owner-client-name {
    font-weight: 700;
    color: #0b2f6b;
}

.owner-client-table .owner-client-mono {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.8rem;
    color: #35506d;
}

.owner-client-table .owner-client-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #0b2f6b;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.owner-client-table .owner-client-mini-chart {
    display: grid;
    gap: 6px;
    min-width: 180px;
}

.owner-client-table .owner-client-mini-metric {
    display: grid;
    grid-template-columns: 54px 1fr 22px;
    gap: 8px;
    align-items: center;
    font-size: 0.72rem;
    color: #35506d;
}

.owner-client-table .owner-client-mini-bar-track {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: #edf3fb;
    overflow: hidden;
}

.owner-client-table .owner-client-mini-bar {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #0b2f6b, #6ca8ff);
}

.owner-client-detail-content {
    display: grid;
    gap: 14px;
}

.owner-client-detail-header {
    background: #f7fafd;
    border: 1px solid #e5edf7;
    border-radius: 12px;
    padding: 16px;
    display: grid;
    gap: 8px;
}

.owner-client-detail-header h4 {
    margin: 0;
    color: #0b2f6b;
    font-size: 1.2rem;
}

.owner-client-detail-metadata {
    display: grid;
    gap: 6px;
    color: #35506d;
    font-size: 0.92rem;
}

.owner-client-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.owner-client-detail-metric {
    background: #f7fafd;
    border: 1px solid #e5edf7;
    border-radius: 12px;
    padding: 12px;
    display: grid;
    gap: 6px;
}

.owner-client-detail-metric strong {
    color: #0b2f6b;
    font-size: 1.2rem;
}

.owner-client-detail-metric span {
    color: #5d6b7a;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.owner-client-mini-chart {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.owner-client-mini-metric {
    display: grid;
    grid-template-columns: 60px 1fr 26px;
    gap: 8px;
    align-items: center;
    color: #35506d;
    font-size: 0.72rem;
}

.owner-client-mini-bar-track {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: #edf3fb;
    overflow: hidden;
}

.owner-client-mini-bar {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #0b2f6b, #6ca8ff);
}

.owner-client-activity-chart {
    margin-top: 16px;
    background: #f7fafd;
    border: 1px solid #e5edf7;
    border-radius: 14px;
    padding: 14px;
    overflow-x: auto;
}

.owner-client-activity-chart.hidden {
    display: none;
}

.owner-client-activity-scroll {
    min-width: 560px;
    display: grid;
    gap: 10px;
}

.owner-client-activity-row {
    display: grid;
    grid-template-columns: 100px 1fr 70px;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 10px;
    background: white;
    border: 1px solid #e7edf7;
}

.owner-client-activity-date {
    color: #5d6b7a;
    font-size: 0.76rem;
    font-weight: 700;
}

.owner-client-activity-bar-wrap {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: #edf3fb;
    overflow: hidden;
}

.owner-client-activity-bar {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #0b2f6b, #5aa0ff);
}

.owner-client-activity-label {
    text-align: right;
    color: #0b2f6b;
    font-size: 0.76rem;
    font-weight: 700;
}

.business-create-button {
    margin-top: 0;
}

.business-create-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.business-create-modal.hidden,
.business-create-success.hidden,
#businessCreateFormSection.hidden {
    display: none;
}

.business-create-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 26, 46, 0.5);
}

.business-create-dialog {
    position: relative;
    width: min(560px, 100%);
    background: white;
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(12, 26, 46, 0.18);
    padding: 22px;
}

.business-create-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.business-create-kicker {
    margin: 0;
    color: #5d6b7a;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.business-create-header h3 {
    margin: 4px 0 0;
    color: #0b2f6b;
}

.business-create-close {
    border: none;
    background: transparent;
    font-size: 1.4rem;
    color: #0b2f6b;
    cursor: pointer;
}

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

.business-create-field {
    display: grid;
    gap: 8px;
}

.business-create-field label {
    color: #0b2f6b;
    font-size: 0.92rem;
    font-weight: 700;
}

.business-create-field input {
    width: 100%;
    border: 1px solid #d9e0ea;
    border-radius: 10px;
    padding: 12px 14px;
    font: inherit;
    color: #1a2d40;
    background: white;
}

.business-create-feedback {
    min-height: 1.25rem;
    margin: 4px 0 0;
    color: #b42318;
    font-size: 0.92rem;
}

.business-create-feedback.success {
    color: #107a4d;
}

.business-create-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.business-create-summary {
    background: #f7fafd;
    border: 1px solid #e5edf7;
    border-radius: 12px;
    padding: 16px;
    color: #35506d;
    margin-bottom: 16px;
    display: grid;
    gap: 8px;
}

.business-create-summary h3 {
    color: #0b2f6b;
    margin-bottom: 4px;
}

.business-create-success {
    display: block;
}

.schedule-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.schedule-modal.hidden {
    display: none;
}

.schedule-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 26, 46, 0.5);
}

.schedule-modal-dialog {
    position: relative;
    width: min(520px, 100%);
    background: white;
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(12, 26, 46, 0.18);
    padding: 22px;
}

.schedule-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.schedule-modal-kicker {
    margin: 0;
    color: #5d6b7a;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.schedule-modal-header h3 {
    margin: 4px 0 0;
    color: #0b2f6b;
}

.schedule-modal-close {
    border: none;
    background: transparent;
    font-size: 1.4rem;
    color: #0b2f6b;
    cursor: pointer;
}

.schedule-modal-request-summary {
    background: #f7fafd;
    border: 1px solid #e5edf7;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 18px;
    color: #35506d;
    font-size: 0.92rem;
}

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

.schedule-form-row {
    display: grid;
    gap: 8px;
}

.schedule-form-row label {
    color: #0b2f6b;
    font-size: 0.92rem;
    font-weight: 700;
}

.schedule-form-row input,
.schedule-form-row select {
    width: 100%;
    border: 1px solid #d9e0ea;
    border-radius: 10px;
    padding: 12px 14px;
    font: inherit;
    color: #1a2d40;
    background: white;
}

.schedule-modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.schedule-modal-action-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.schedule-clear-button {
    color: #a44040;
    border-color: #f0c7c7;
    background: #fff6f6;
}

.empty-state {
    background: white;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    color: #5d6b7a;
}

.empty-state h3 {
    color: #0b2f6b;
    margin-bottom: 8px;
}

.form-card select,
.form-card textarea {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #0b2f6b;
    box-shadow: 0 0 0 3px rgba(11, 47, 107, 0.1);
}

.secondary-button {
    background: white;
    color: #0b2f6b;
    border: 1px solid #d6dbe3;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 16px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.secondary-button:hover {
    background: #f7faff;
    border-color: #0b2f6b;
}

.avery-inline-action {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 12px;
    border: 1px solid #d6dbe3;
    border-radius: 999px;
    background: #0b2f6b;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.progress-container {
    background: white;
    border-radius: 16px;
    margin: 20px;
    padding: 20px;
}

.progress-container p {
    color: #0b2f6b;
    font-weight: bold;
    margin-bottom: 10px;
}

.review-box h3 {
    color: #0b2f6b;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .request-meta {
        grid-template-columns: 1fr;
    }

    .portal-actions {
        grid-template-columns: 1fr;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
    background-image:
        linear-gradient(rgba(10, 20, 45, 0.75), rgba(10, 20, 45, 0.75)),
        url('../assets/images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #1a314f;
    color: #1a1a1a;
    line-height: 1.5;
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

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

.app {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 40px 60px;
}

.header {
    text-align: center;
    margin-bottom: 35px;
    color:white;
}

.header p{

    color:#d9d9d9;

}
.logo {
    max-height: 90px;
    width: auto;
    max-width: 440px;
    margin-bottom: 0;
    object-fit: contain;
}

.header h1 {
    color: #0b2e59;
    font-size: 2rem;
    margin-bottom: 5px;
}

.header p {
    color: #666;
    font-size: 1rem;
}

.dashboard {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.card {
    background: white;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    cursor: pointer;
    transition: .25s;
}

.card:hover {
    transform: translateY(-4px);
}

.icon {
    font-size: 2rem;
}

.card h2 {
    margin: 12px 0;
    color: #0b2e59;
}

.card p {
    color: #666;
}

footer {
    margin-top: 40px;
    text-align: center;
    color: #777;
    font-size: .9rem;
}
/* Pickup Wizard */

.pickup-container {
    display:flex;
    flex-direction:column;
    gap:20px;
}


.progress{

    background:white;

    border-radius:20px;

    margin:20px;

    padding:20px;

    text-align:center;

}

.progress-bar {
    width:100%;
    height:12px;
    background:#ddd;
    border-radius:20px;
    overflow:hidden;
}


.progress-fill {
    width:25%;
    height:100%;
    background:#1e7333;
    border-radius:20px;
}


.form-card {
    background:white;
    padding:28px 26px;
    border-radius:18px;
    box-shadow:0 10px 24px rgba(0,0,0,.08);
    border:1px solid rgba(11, 47, 107, 0.08);
    max-width: 760px;
    margin: 0 auto;
}


.form-card h2 {
    color:#0b2e59;
    margin-bottom:20px;
}


.form-card label {

    display:block;
    margin-top:15px;
    margin-bottom:6px;
    font-weight:bold;

}


.form-card input {

    width:100%;
    padding:14px;
    border-radius:10px;
    border:1px solid #ccc;
    font-size:1rem;

}


.primary-button {

    width:100%;
    min-height: 52px;
    margin-top:25px;
    padding:15px;
    border:none;
    border-radius:12px;
    background:linear-gradient(180deg, #123d7a 0%, #0b2e59 100%);
    color:white;
    font-size:1rem;
    font-weight:700;
    cursor:pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 20px rgba(11, 46, 89, 0.14);

}

.primary-button:hover {
    background: #0a2148;
    transform: translateY(-1px);
}


.back-button{

    background:white;

    color:#0b2f6b;

    border:none;

    border-radius:12px;

    padding:12px 20px;

    font-weight:bold;

    cursor:pointer;

    margin-top:20px;

}
.back-button:hover{

    background:#f0f0f0;

}
/* AI Home Screen */

.home {
    display:grid;
    grid-template-columns: 2fr 1fr;
    gap:30px;
    align-items: start;
}


.ai-welcome {

    background:white;
    padding:30px;
    border-radius:20px;
    text-align:left;
    box-shadow:0 10px 24px rgba(0,0,0,.08);
    border:1px solid rgba(11, 47, 107, 0.08);

}

.quick-actions {
    background:white;
    padding:28px;
    border-radius:20px;
    box-shadow:0 10px 24px rgba(0,0,0,.08);
    border:1px solid rgba(11, 47, 107, 0.08);
}


.ai-icon {

    font-size:60px;
}


.ai-welcome h2 {

    color:#0b2e59;
    margin:15px 0;

}


.ai-input {

    display:flex;
    margin-top:25px;
    gap:10px;

}


.ai-input input {

    flex:1;
    padding:14px;
    border-radius:10px;
    border:1px solid #ccc;

}


.ai-input button {

    background:#0b2e59;
    color:white;
    border:none;
    border-radius:10px;
    padding:0 20px;

}


.quick-actions h3 {

    color:#0b2e59;
    margin-bottom:16px;
    font-size:1.35rem;

}


.action-card {

    background:#f8fafc;
    margin-top:0;
    padding:18px 20px;
    border-radius:16px;
    display:flex;
    gap:16px;
    align-items:center;
    box-shadow:0 5px 14px rgba(0,0,0,.06);
    cursor:pointer;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
    border:1px solid #edf2f8;
    text-decoration:none;
    color:inherit;

}

.action-card:hover {
    transform: translateY(-2px);
    background:#ffffff;
    box-shadow:0 8px 18px rgba(11, 47, 107, 0.08);
}

.storefront-link {
    color: #0b2e59;
}

.storefront-link-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.storefront-link strong,
.storefront-link p {
    color: inherit;
}

.action-card:first-letter {

    font-size:30px;

}


/* Bottom Navigation */

.bottom-nav {

    position:fixed;
    bottom:0;
    left:0;
    right:0;

    background:white;

    display:flex;
    justify-content:space-around;

    padding:12px;

    box-shadow:0 -5px 15px rgba(0,0,0,.1);

}


.bottom-nav a {

    text-decoration:none;
    color:#555;
    text-align:center;
    font-size:.8rem;

}


.bottom-nav .active {

    color:#0b2e59;

}/* Avery AI Employee */

.ai-avatar {

    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px auto;

}

.ai-avatar img {

    width: 90px;
    height: 90px;

    object-fit: cover;

    border-radius: 50%;

    border: 3px solid #0b2e59;

    display: block;

}
.ai-welcome h2 {

    color:#0b2e59;
    font-size:2rem;

}


.ai-welcome h3 {

    color:#555;
    font-weight:normal;
    margin-bottom:10px;

}


.powered {

    font-size:.85rem;
    color:#777;

}


.ai-message {

    margin-top:25px;
    line-height:1.5;
    color:#444;

}


.chat-box {

    display:flex;
    gap:10px;
    margin-top:25px;

}


.chat-box input {

    flex:1;
    padding:15px;
    border-radius:12px;
    border:1px solid #ccc;

}


.chat-box button {

    background:#0b2e59;
    color:white;
    border:none;
    border-radius:12px;
    padding:0 20px;
    cursor:pointer;

}
/* Avery Chat */

.chat-container {

    margin-top:25px;

}


.messages {

    background:#f5f7fa;

    padding:15px;

    border-radius:15px;

    height:320px;
    max-height:320px;
    overflow-y:auto;

    display:flex;

    flex-direction:column;

    gap:15px;

}


.message {

    padding:12px 15px;

    border-radius:15px;

    max-width:85%;

    line-height:1.4;

}


.avery-message {

    background:white;

    align-self:flex-start;

}


.user-message {

    background:#0b2e59;

    color:white;

    align-self:flex-end;

}
.avery-message button {

    margin-top:10px;

    background:#0b2e59;

    color:white;

    border:none;

    padding:10px 15px;

    border-radius:10px;

    cursor:pointer;

}
.typing span {

    font-style: italic;
    opacity: .6;

}
.avery-handoff {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.avery-handoff-dots {
    display: inline-flex;
    gap: 4px;
}
.avery-handoff-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0b2f6b;
    display: inline-block;
    animation: avery-work-animation 1s infinite ease-in-out;
}
.avery-handoff-dots span:nth-child(2) {
    animation-delay: 0.15s;
}
.avery-handoff-dots span:nth-child(3) {
    animation-delay: 0.3s;
}
@keyframes avery-work-animation {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.45;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}
.hidden {

    display:none;

}


textarea {

    width:100%;
    min-height:100px;
    padding:12px;
    border-radius:10px;
    border:1px solid #ccc;

}
.progress-fill {

    transition: width .4s ease;

}
.avery-guide-avatar{

    width:80px;
    height:80px;

    min-width:80px;

    border-radius:50%;

    object-fit:cover;

    object-position:center;

    flex-shrink:0;

}
.avery-guide-avatar{

    width:72px;
    height:72px;

    border-radius:50%;

    object-fit:cover;

    border:3px solid #0b2f6b;

}

.job-title{

    color:#666;
    font-size:.9rem;
    margin-bottom:8px;

}
.review-box{
    background:linear-gradient(135deg, #f7faff 0%, #ffffff 100%);
    padding:20px;
    border-radius:16px;
    margin-bottom:20px;
    border:1px solid #e4ebf4;
    box-shadow:0 8px 24px rgba(11,47,107,.06);
}

.review-box p{
    margin:8px 0;
}

.confirmation-shell {
    display:grid;
    gap:12px;
}

.confirmation-badge {
    display:inline-flex;
    align-self:flex-start;
    padding:6px 10px;
    border-radius:999px;
    background:#eaf3ff;
    color:#0b2f6b;
    font-size:.8rem;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.confirmation-copy {
    color:#55657a;
    margin-top:-2px;
}

.confirmation-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
    gap:12px;
    margin-top:4px;
}

.confirmation-address-block {
    padding:12px 14px;
    border-radius:12px;
    background:#ffffff;
    border:1px solid #e6edf5;
}

.confirmation-label {
    font-size:.78rem;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:#6b7a90;
    margin:0 0 4px;
}

.confirmation-value {
    margin:0;
    color:#10253f;
    font-weight:600;
}

.confirmation-link {
    margin-top:4px;
}

.confirmation-link a {
    color:#0b2f6b;
    font-weight:600;
    text-decoration:none;
}

.confirmation-link a:hover {
    text-decoration:underline;
}

.quote-summary-text {
    margin-bottom: 10px;
    color: #0b2f6b;
    font-weight: 600;
}

.quote-breakdown {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 10px 0 14px;
}

.quote-breakdown p {
    margin: 6px 0;
    color: #4f5c6b;
}

.dashboard-container{

padding:20px;

}


.dashboard-card{

background:white;

padding:22px;

margin-bottom:20px;

border-radius:16px;

box-shadow:0 2px 8px rgba(0,0,0,.08);

border: 1px solid #e7edf5;

}


.dashboard-card h2{

color:#0b2f6b;

}
/* Top Navigation */

.top-nav{
    position: relative;
    display:flex;
    justify-content:center;
    align-items:center;
    min-height: 90px;
    padding:15px 20px;
    margin:15px;
    background:#fcfbfb;
    border-radius:20px;
    box-shadow:0 6px 18px rgba(0,0,0,.14);
    border:1px solid #eef2f6;
}
.logo{
    max-height:90px;
    width:auto;
    max-width:440px;
    object-fit:contain;
}
.menu-button{
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size:28px;
    cursor:pointer;
    color:rgb(23, 13, 44);
    transition: transform 0.18s ease, color 0.18s ease, opacity 0.18s ease;
    will-change: transform;
}
.menu-button:hover,
.menu-button:focus-visible{
    transform: translateY(-50%) scale(1.03);
    color:#0b2f6b;
}

.side-menu{
    position:fixed;
    top:0;
    right:-340px;
    width:320px;
    max-width:88vw;
    height:100%;
    background:linear-gradient(180deg,#fdfefe 0%,#fafcff 100%);
    padding:24px 20px 28px;
    transition:.3s ease;
    z-index:1000;
    box-shadow:-14px 0 38px rgba(9,25,54,.16);
    border-left:1px solid #e7edf5;
}
.side-menu.active{
    right:0;
}
.side-menu-panel{
    display:flex;
    flex-direction:column;
    gap:18px;
    height:100%;
}
.side-menu-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    padding-bottom:12px;
    border-bottom:1px solid #e7edf5;
}
.side-menu-brand{
    font-weight:800;
    color:#0b2f6b;
    font-size:1.08rem;
    letter-spacing:.02em;
}
.close-menu{
    border:none;
    background:#eef4ff;
    color:#0b2f6b;
    border-radius:50%;
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    font-size:20px;
    cursor:pointer;
}
.menu-group{
    display:grid;
    gap:8px;
}
.menu-section-title{
    margin:0 0 2px;
    color:#6b7a90;
    font-size:.76rem;
    font-weight:700;
    letter-spacing:.14em;
    text-transform:uppercase;
}
.side-menu a{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin:0;
    text-decoration:none;
    color:#10253f;
    font-size:1rem;
    font-weight:600;
    padding:12px 14px;
    border-radius:12px;
    border:1px solid transparent;
    transition:all .2s ease;
}
.side-menu a:hover,
.side-menu a:focus-visible{
    background:#f3f8ff;
    border-color:#dbe8f8;
    color:#0b2f6b;
    transform:translateX(2px);
}
@media (max-width:900px){
    .app {
        max-width: 100%;
        padding: 16px 16px 88px;
    }
    .home {
        display:flex;
        flex-direction:column;
        gap:30px;
    }
    .ai-welcome,
    .quick-actions {
        padding:24px;
    }
    .bottom-nav {
        display:flex;
    }
    .top-nav {
        min-height: 72px;
        padding: 12px 48px 12px 12px;
        margin: 8px 0 14px;
    }
    .top-nav .logo {
        max-height: 48px;
        max-width: 200px;
        margin-left: 0;
        margin-top: 0;
    }
    .page-header,
    .form-card,
    .dashboard-card,
    .request-card,
    .review-box,
    .avery-card,
    .avery-chat {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (min-width:900px) {
    .bottom-nav {
        display: none;
    }
}

@media (max-width:768px){
    body {
        overflow-x: hidden;
    }

    .app {
        padding-bottom: 96px;
    }

    input,
    textarea,
    select{
        padding:12px;
        font-size:15px;
    }

    .bottom-nav {
        padding: 10px 8px;
    }

    .bottom-nav a {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2px;
    }

    .message {
        max-width: 92%;
    }

    .chat-box,
    .ai-input {
        flex-direction: column;
    }

    .chat-box button,
    .ai-input button {
        width: 100%;
        min-height: 48px;
    }

    .page-header,
    .form-card,
    .dashboard-card,
    .request-card,
    .review-box,
    .avery-card,
    .avery-chat,
    .progress-container {
        margin: 12px 0;
        padding: 16px;
    }
}
.progress p{

    color:white;

    font-weight:bold;

}
/* Avery Chat */

.avery-chat{

    background:white;

    border-radius:20px;

    padding:18px;

    margin:20px;

    box-shadow:0 6px 18px rgba(0,0,0,.12);

}

.avery-header{

    display:flex;

    align-items:center;

    gap:12px;

    margin-bottom:15px;

}

.avery-small-avatar{

    width:60px;

    height:60px;

    border-radius:50%;

    object-fit:cover;

}

.avery-header span{

    font-size:14px;

    color:#777;

}

.avery-bubble{

    background:#f5f5f5;

    padding:16px;

    border-radius:18px;

    line-height:1.5;

}
.page-header{

    background:white;

    border-radius:20px;

    margin:20px;

    padding:26px 28px;

    text-align:center;

    box-shadow:0 4px 12px rgba(0,0,0,.06);

}

.page-logo{

    height:80px;

    width:auto;

    margin-bottom:10px;

}

.avery-card{

    background:white;

    border-radius:20px;

    margin:20px;

    padding:20px;

    box-shadow:0 5px 15px rgba(0,0,0,.1);

}

.avery-header{

    display:flex;

    align-items:center;

    gap:15px;

    margin-bottom:15px;

}

.avery-small-avatar{

    width:60px;

    height:60px;

    border-radius:50%;

    object-fit:cover;

}

.avery-bubble{

    background:#f3f3f3;

    border-radius:18px;

    padding:18px;

}
.progress-container{

    width:100%;

    max-width:600px;

    margin:20px auto;

    text-align:center;

}

.progress-container p{

    color:#0b2f6b;

    font-weight:bold;

    text-align:center;

    margin:0 0 10px 0;

}
.request-card{

    background:white;

    border-radius:20px;

    padding:20px;

    margin-bottom:20px;

    box-shadow:0 5px 15px rgba(0,0,0,.08);

}

.status-pending{

    color:#d97706;

    font-weight:bold;

}

.status-accepted{

    color:#16a34a;

    font-weight:bold;

}

.secondary-button{

    background:#16a34a;

    color:white;

    border:none;

    cursor:default;

    padding:12px 28px;

    min-width:170px;

    border-radius:12px;

    font-weight:600;

    text-align:center;

}

.dispatch-overview{

background:white;

border-radius:20px;

padding:25px;

margin-bottom:25px;

}



.overview-grid{

display:grid;

grid-template-columns:repeat(4, minmax(0, 1fr));

gap:15px;

width:100%;

}


.overview-card{

background:#f5f7fa;

border-radius:15px;

padding:20px;

text-align:center;

box-sizing:border-box;

min-width:0;

}


.overview-card h3{

font-size:32px;

margin:0;

}

@media(max-width:768px){

.overview-grid{

grid-template-columns:1fr 1fr;

}

.overview-card{

padding:12px 10px;

}

.overview-card h3{

font-size:20px;

}

.overview-card p{

font-size:0.78rem;

}

}

.dispatch-overview h2{

margin-bottom:20px;

}

.dispatch-overview{

overflow:hidden;

}

/* AI ACTIVITY FEED */

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}


.activity-item span {
    font-size: 1.5rem;
}


.activity-item p {
    margin: 0;
    flex: 1;
}


.activity-item small {
    opacity: .6;
}

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

.section-header p {
    color: #5f6b7a;
    max-width: 500px;
}

.empty-state {
    padding: 16px 0;
    color: #5f6b7a;
}

.client-context-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 20px;
    margin: 0 0 20px;
    padding: 14px 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.client-context-banner strong {
    display: block;
    color: #0b2f6b;
    font-size: 1rem;
}

.client-context-banner p {
    color: #5f6b7a;
    margin: 2px 0 0;
    font-size: 0.92rem;
}

.client-context-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eef5ff;
    border: 1px solid #dbe6f4;
    color: #0b2f6b;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
}

.client-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.95fr);
    gap: 20px;
    align-items: start;
    margin-bottom: 20px;
}

.client-avery-stage {
    margin: 0;
    min-height: 680px;
}

.client-avery-stage .chat-container {
    min-height: 380px;
}

.client-dashboard-rail {
    display: grid;
    gap: 20px;
}

.client-dashboard-section {
    margin: 0;
    padding: 22px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.client-dashboard-section .overview-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.client-snapshot-section {
    margin-bottom: 0;
}

.client-dashboard-section .activity-item {
    align-items: flex-start;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e6ecf2;
}

.client-dashboard-section .activity-item div {
    flex: 1;
}

.client-dashboard-section .activity-item strong {
    color: #0b2f6b;
    display: block;
    margin-bottom: 4px;
}

.client-dashboard-section .activity-item p {
    margin: 0;
}

.client-dashboard-section .activity-item small {
    display: block;
    margin-top: 4px;
    color: #5f6b7a;
}

.client-dashboard-section .empty-state {
    background: transparent;
    padding: 12px 0 0;
    text-align: left;
}

.client-dashboard-section .section-header {
    margin-bottom: 14px;
}

.client-dashboard-section .section-header h2 {
    margin-bottom: 6px;
}

.client-dashboard-section .section-header p {
    font-size: 0.95rem;
}

.client-dashboard-section .overview-card {
    padding: 18px 16px;
}

.client-dashboard-section .overview-card h3 {
    font-size: 1.9rem;
    margin-bottom: 4px;
}

.quick-actions-client-home {
    margin-top: 0;
}

.client-portal-dashboard {
    display: grid;
    gap: 20px;
}

.client-dashboard-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.client-portal-dashboard .client-dashboard-section {
    margin: 0;
}

@media(max-width:768px){

.client-context-banner {
    flex-direction: column;
    align-items: flex-start;
}

.client-home-hero {
    grid-template-columns: 1fr;
}

.client-avery-stage {
    min-height: auto;
}

.client-dashboard-panels {
    grid-template-columns: 1fr;
}

}

.request-card {
    border: 1px solid #e6ecf2;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

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

.request-card-header h3 {
    color: #0b2e59;
    margin-bottom: 4px;
}

.request-subtitle {
    color: #5f6b7a;
    font-size: 0.95rem;
}

.status-pill {
    background: #e8f2ff;
    color: #0b2e59;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.request-tracking {
    background: #f3f7ff;
    border: 1px solid #dce8f9;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 14px;
    color: #0b2e59;
    font-size: 0.95rem;
}

.request-meta {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 14px;
    color: #4b5563;
}

.request-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.request-toggle,
.request-link,
.primary-link,
.secondary-link {
    text-decoration: none;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.request-toggle {
    border: 1px solid #0b2e59;
    background: white;
    color: #0b2e59;
    cursor: pointer;
}

.request-link,
.primary-link {
    background: #0b2e59;
    color: white;
}

.secondary-link {
    background: #f3f7ff;
    color: #0b2e59;
    border: 1px solid #dce8f9;
}

.request-details {
    display: none;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #e6ecf2;
}

.request-card.expanded .request-details {
    display: block;
}

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

.request-details-grid h4 {
    color: #0b2e59;
    margin-bottom: 8px;
}

.request-details-grid p {
    margin-bottom: 6px;
    color: #4b5563;
}

.portal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
    }

    .request-meta,
    .request-details-grid {
        grid-template-columns: 1fr;
    }

    .request-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}