/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-av6m5q851x] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-av6m5q851x] {
    flex: 1;
}

.sidebar[b-av6m5q851x] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-av6m5q851x] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-av6m5q851x]  a, .top-row[b-av6m5q851x]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-av6m5q851x]  a:hover, .top-row[b-av6m5q851x]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-av6m5q851x]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-av6m5q851x] {
        justify-content: space-between;
    }

    .top-row[b-av6m5q851x]  a, .top-row[b-av6m5q851x]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-av6m5q851x] {
        flex-direction: row;
    }

    .sidebar[b-av6m5q851x] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-av6m5q851x] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-av6m5q851x]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-av6m5q851x], article[b-av6m5q851x] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-av6m5q851x] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-av6m5q851x] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-e5mr3z8enp] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-e5mr3z8enp] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-e5mr3z8enp] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-e5mr3z8enp] {
    font-size: 1.1rem;
}

.bi[b-e5mr3z8enp] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-e5mr3z8enp] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-e5mr3z8enp] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-e5mr3z8enp] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-e5mr3z8enp] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-e5mr3z8enp] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-e5mr3z8enp] {
        padding-bottom: 1rem;
    }

    .nav-item[b-e5mr3z8enp]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-e5mr3z8enp]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-e5mr3z8enp]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-group[b-e5mr3z8enp] {
    color: #d7d7d7;
}

.nav-group summary[b-e5mr3z8enp] {
    cursor: pointer;
    min-height: 2.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    list-style-position: inside;
}

.nav-group summary:hover[b-e5mr3z8enp] {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-group-links[b-e5mr3z8enp] {
    padding-left: 0.75rem;
}

.nav-item[b-e5mr3z8enp]  .nav-link.nav-link-child {
    min-height: 2.35rem;
    height: auto;
    padding-left: 1rem;
    line-height: 1.25rem;
}

.nav-scrollable[b-e5mr3z8enp] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-e5mr3z8enp] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-e5mr3z8enp] {
        display: none;
    }

    .nav-scrollable[b-e5mr3z8enp] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Components/Pages/Home.razor.rz.scp.css */
/* Container and Layout */
.dashboard-container[b-a3dwuabyrb] {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: #f8fafc;
    min-height: 100vh;
}

.dashboard-loading[b-a3dwuabyrb] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 1rem;
    color: #64748b;
}

.spinner[b-a3dwuabyrb] {
    width: 45px;
    height: 45px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #14b8a6; /* Teal accent */
    border-radius: 50%;
    animation: spin-b-a3dwuabyrb 1s linear infinite;
}

@keyframes spin-b-a3dwuabyrb {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dashboard-error[b-a3dwuabyrb] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 1rem;
    text-align: center;
}

.dashboard-error i[b-a3dwuabyrb] {
    font-size: 3rem;
    color: #ef4444;
}

/* Header */
.dashboard-header[b-a3dwuabyrb] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    border: 1px solid #f1f5f9;
}

.welcome-section h1[b-a3dwuabyrb] {
    font-size: 1.6rem;
    color: #0f172a;
    font-weight: 700;
    margin: 0;
}

.welcome-section .subtitle[b-a3dwuabyrb] {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0.25rem 0 0;
}

.meta-section[b-a3dwuabyrb] {
    display: flex;
    gap: 1.5rem;
    font-size: 0.88rem;
    color: #475569;
}

.meta-item[b-a3dwuabyrb] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item i[b-a3dwuabyrb] {
    color: #14b8a6;
}

/* KPI Scorecards */
.kpi-grid[b-a3dwuabyrb] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.kpi-card[b-a3dwuabyrb] {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.kpi-card:hover[b-a3dwuabyrb] {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.kpi-header[b-a3dwuabyrb] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.kpi-header h2[b-a3dwuabyrb] {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 600;
    margin: 0;
}

.kpi-header i[b-a3dwuabyrb] {
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 8px;
}

/* Color themes for KPIs */
.kpi-card--bookings .kpi-header i[b-a3dwuabyrb] { background: #eff6ff; color: #3b82f6; }
.kpi-card--shipments .kpi-header i[b-a3dwuabyrb] { background: #f0fdf4; color: #22c55e; }
.kpi-card--receivings .kpi-header i[b-a3dwuabyrb] { background: #faf5ff; color: #a855f7; }
.kpi-card--packages .kpi-header i[b-a3dwuabyrb] { background: #fff7ed; color: #f97316; }

.kpi-value[b-a3dwuabyrb] {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.kpi-subtext[b-a3dwuabyrb] {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.kpi-progress[b-a3dwuabyrb] {
    height: 4px;
    background: #f1f5f9;
    border-radius: 2px;
    overflow: hidden;
}

.kpi-progress-bar[b-a3dwuabyrb] {
    height: 100%;
    border-radius: 2px;
}

.kpi-card--bookings .kpi-progress-bar[b-a3dwuabyrb] { background: #3b82f6; }
.kpi-card--shipments .kpi-progress-bar[b-a3dwuabyrb] { background: #22c55e; }
.kpi-card--receivings .kpi-progress-bar[b-a3dwuabyrb] { background: #a855f7; }
.kpi-card--packages .kpi-progress-bar[b-a3dwuabyrb] { background: #f97316; }

/* Middle Section: Pending & Quick Actions */
.middle-section[b-a3dwuabyrb] {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 1024px) {
    .middle-section[b-a3dwuabyrb] {
        grid-template-columns: 1fr;
    }
}

.card-box[b-a3dwuabyrb] {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    border: 1px solid #f1f5f9;
}

.card-box h3[b-a3dwuabyrb] {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-box h3 i[b-a3dwuabyrb] {
    color: #14b8a6;
}

.empty-text[b-a3dwuabyrb] {
    font-size: 0.88rem;
    color: #94a3b8;
    text-align: center;
    padding: 1.5rem 0;
    margin: 0;
}

/* Pending list */
.pending-list[b-a3dwuabyrb] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pending-item[b-a3dwuabyrb] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.88rem 1rem;
    border-radius: 8px;
    border-left: 4px solid #cbd5e1;
    background: #f8fafc;
}

.pending-item.priority-high[b-a3dwuabyrb] { border-left-color: #ef4444; background: #fef2f2; }
.pending-item.priority-medium[b-a3dwuabyrb] { border-left-color: #f97316; background: #fff7ed; }
.pending-item.priority-low[b-a3dwuabyrb] { border-left-color: #64748b; background: #f8fafc; }

.pending-body h4[b-a3dwuabyrb] {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    color: #0f172a;
}

.pending-body p[b-a3dwuabyrb] {
    font-size: 0.82rem;
    margin: 0.2rem 0 0;
    color: #475569;
}

.action-btn[b-a3dwuabyrb] {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: #64748b;
    transition: color 0.2s, transform 0.2s;
}

.action-btn:hover[b-a3dwuabyrb] {
    color: #14b8a6;
    transform: translateX(2px);
}

/* Quick grid */
.quick-grid[b-a3dwuabyrb] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.88rem;
}

.quick-card[b-a3dwuabyrb] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
    gap: 0.5rem;
}

.quick-card:hover[b-a3dwuabyrb] {
    background: #eff6ff;
    border-color: #bfdbfe;
    transform: scale(1.02);
}

.quick-card i[b-a3dwuabyrb] {
    font-size: 1.3rem;
    color: #3b82f6;
}

.quick-card span[b-a3dwuabyrb] {
    font-size: 0.88rem;
    font-weight: 500;
    color: #1e293b;
}

/* Analytics section */
.analytics-section[b-a3dwuabyrb] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.pie-layout[b-a3dwuabyrb] {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.svg-container[b-a3dwuabyrb] {
    width: 120px;
    height: 120px;
}

.circular-chart[b-a3dwuabyrb] {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.circle-segment[b-a3dwuabyrb] {
    fill: none;
    stroke-width: 3.8;
}

.circle-segment.mode-seafcl[b-a3dwuabyrb] { stroke: #3b82f6; }
.circle-segment.mode-sealcl[b-a3dwuabyrb] { stroke: #60a5fa; }
.circle-segment.mode-air[b-a3dwuabyrb] { stroke: #a855f7; }
.circle-segment.mode-land[b-a3dwuabyrb] { stroke: #f97316; }
.circle-segment.mode-generic[b-a3dwuabyrb] { stroke: #94a3b8; }

.chart-legend[b-a3dwuabyrb] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legend-item[b-a3dwuabyrb] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #475569;
}

.legend-dot[b-a3dwuabyrb] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.mode-seafcl[b-a3dwuabyrb] { background: #3b82f6; }
.legend-dot.mode-sealcl[b-a3dwuabyrb] { background: #60a5fa; }
.legend-dot.mode-air[b-a3dwuabyrb] { background: #a855f7; }
.legend-dot.mode-land[b-a3dwuabyrb] { background: #f97316; }

/* Bar Breakdown */
.bar-breakdown-list[b-a3dwuabyrb] {
    display: flex;
    flex-direction: column;
    gap: 0.88rem;
}

.bar-item[b-a3dwuabyrb] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.bar-label[b-a3dwuabyrb] {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #475569;
}

.bar-progress[b-a3dwuabyrb] {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.bar-progress-fill[b-a3dwuabyrb] {
    height: 100%;
    border-radius: 4px;
}

.bar-progress-fill.status-draft[b-a3dwuabyrb] { background: #cbd5e1; }
.bar-progress-fill.status-confirmed[b-a3dwuabyrb] { background: #22c55e; }
.bar-progress-fill.status-active[b-a3dwuabyrb] { background: #3b82f6; }
.bar-progress-fill.status-completed[b-a3dwuabyrb] { background: #14b8a6; }
.bar-progress-fill.status-received[b-a3dwuabyrb] { background: #8b5cf6; }
.bar-progress-fill.status-stored[b-a3dwuabyrb] { background: #a855f7; }
.bar-progress-fill.status-cancelled[b-a3dwuabyrb] { background: #ef4444; }

/* Feeds Section */
.feeds-section[b-a3dwuabyrb] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.feed-header[b-a3dwuabyrb] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.feed-header h3[b-a3dwuabyrb] {
    margin: 0;
}

.feed-table-wrapper[b-a3dwuabyrb] {
    overflow-x: auto;
}

.feed-table[b-a3dwuabyrb] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.feed-table th[b-a3dwuabyrb] {
    padding: 0.6rem 0.5rem;
    color: #64748b;
    font-weight: 600;
    border-bottom: 2px solid #f1f5f9;
}

.feed-table td[b-a3dwuabyrb] {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.clickable-row[b-a3dwuabyrb] {
    cursor: pointer;
    transition: background-color 0.2s;
}

.clickable-row:hover[b-a3dwuabyrb] {
    background-color: #f8fafc;
}

.empty-row[b-a3dwuabyrb] {
    text-align: center;
    color: #94a3b8;
    padding: 1.5rem 0;
}

/* Status Badges */
.status-badge[b-a3dwuabyrb] {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

.status-badge.status-draft[b-a3dwuabyrb] { background: #f1f5f9; color: #475569; }
.status-badge.status-confirmed[b-a3dwuabyrb] { background: #dcfce7; color: #15803d; }
.status-badge.status-active[b-a3dwuabyrb] { background: #dbeafe; color: #1d4ed8; }
.status-badge.status-completed[b-a3dwuabyrb] { background: #ccfbf1; color: #0f766e; }
.status-badge.status-received[b-a3dwuabyrb] { background: #ede9fe; color: #6d28d9; }
.status-badge.status-stored[b-a3dwuabyrb] { background: #f3e8ff; color: #7e22ce; }
.status-badge.status-cancelled[b-a3dwuabyrb] { background: #fee2e2; color: #b91c1c; }

/* RTL support overrides */
[dir="rtl"] .feed-table[b-a3dwuabyrb] {
    text-align: right;
}
[dir="rtl"] .pending-item[b-a3dwuabyrb] {
    border-left: none;
    border-right: 4px solid #cbd5e1;
}
[dir="rtl"] .pending-item.priority-high[b-a3dwuabyrb] { border-right-color: #ef4444; }
[dir="rtl"] .pending-item.priority-medium[b-a3dwuabyrb] { border-right-color: #f97316; }
[dir="rtl"] .pending-item.priority-low[b-a3dwuabyrb] { border-right-color: #64748b; }

[dir="rtl"] .action-btn:hover[b-a3dwuabyrb] {
    transform: translateX(-2px);
}
