/* Business User Dashboard - UBold Theme Optimized */

.business-dashboard-ubold {
    background: #f8f9fa;
    padding: 1.5rem 0;
}

/* Dashboard header - title left, Book A Ride right */
.dashboard-header-box {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}
.dashboard-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #313a46;
}
.dashboard-subtitle {
    font-size: 0.875rem;
    color: #6c757d;
}
.btn-book-ride {
    padding: 0.55rem 1.35rem;
    font-weight: 600;
    border-radius: 8px;
    background: linear-gradient(135deg, #1a73e8 0%, #1565c0 100%) !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-book-ride:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
}

/* KPI Cards - premium design: icon top-right, soft shadows */
.business-dashboard-ubold .kpi-card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem;
    padding-top: 2.75rem;
    margin-bottom: 1rem;
    min-height: 150px;
    height: 100%;
    box-shadow: 0 2px 8px rgba(56, 65, 74, 0.06), 0 8px 24px rgba(56, 65, 74, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.business-dashboard-ubold .kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(56, 65, 74, 0.08), 0 12px 32px rgba(56, 65, 74, 0.06);
}
.business-dashboard-ubold .dashboard-kpi-row > [class*="col-"] {
    display: flex;
}
.business-dashboard-ubold .dashboard-kpi-row > [class*="col-"] > .kpi-card {
    flex: 1;
    width: 100%;
}
.business-dashboard-ubold .kpi-card-icon {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.business-dashboard-ubold .kpi-card-title {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #98a6ad;
    margin-bottom: 0.5rem;
}
.business-dashboard-ubold .kpi-card-value {
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #313a46;
    margin-bottom: 0.35rem;
    line-height: 1.2;
}
.business-dashboard-ubold .kpi-card-extra {
    font-size: 0.8125rem;
    color: #98a6ad;
    margin-bottom: 0;
    line-height: 1.4;
}
.business-dashboard-ubold .kpi-card-value-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.business-dashboard-ubold .kpi-card-value-row .kpi-card-value {
    margin-bottom: 0;
}
.business-dashboard-ubold .kpi-card-value-row .btn {
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
    box-shadow: 0 1px 4px rgba(26, 115, 232, 0.25);
}
.business-dashboard-ubold .kpi-extra-success { color: #1abc9c !important; font-weight: 500; }
.business-dashboard-ubold .kpi-extra-danger { color: #f1556c !important; font-weight: 500; }

/* Wallet card - royal blue gradient */
.business-dashboard-ubold .kpi-card-wallet {
    background: linear-gradient(145deg, #1a73e8 0%, #1565c0 50%, #0d47a1 100%) !important;
    border: none;
    color: #fff;
    box-shadow: 0 4px 16px rgba(26, 115, 232, 0.35), 0 8px 32px rgba(26, 115, 232, 0.2);
}
.business-dashboard-ubold .kpi-card-wallet:hover {
    box-shadow: 0 6px 24px rgba(26, 115, 232, 0.4), 0 12px 40px rgba(26, 115, 232, 0.25);
}
.business-dashboard-ubold .kpi-card-wallet .kpi-card-title,
.business-dashboard-ubold .kpi-card-wallet .kpi-card-value {
    color: #fff !important;
}
.business-dashboard-ubold .kpi-card-wallet .kpi-card-title { opacity: 0.9; }
/* Wallet pill - light blue pill-shaped badge per Figma */
.business-dashboard-ubold .kpi-wallet-pill {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(147, 197, 253, 0.5);
    color: #fff !important;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
}
.business-dashboard-ubold .kpi-icon-wallet {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

/* Non-wallet KPI cards - plain white per Figma (no colored borders/tints) */
/* Icons: car & eye = light gray square + light blue icon; cancel = red circular outline */
.business-dashboard-ubold .kpi-icon-car,
.business-dashboard-ubold .kpi-icon-eye {
    background: #e9ecef;
    color: #1a73e8;
}
.business-dashboard-ubold .kpi-icon-cancel {
    background: transparent;
    border: 2px solid #f1556c;
    border-radius: 50%;
    color: #f1556c;
}

/* Single profile card */
.dashboard-profile-card-single {
    background: linear-gradient(135deg, #e8f0fe 0%, #e3eefd 100%);
    border: 1px solid rgba(26, 115, 232, 0.3);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.08);
}

.dashboard-profile-card-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-user-content,
.profile-business-content {
    flex: 1;
}

/* User profile - left */
.profile-avatar-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.profile-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
}

.profile-edit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #1a73e8;
    color: #fff !important;
    border-radius: 6px;
    font-size: 0.75rem;
}

.profile-edit-icon:hover {
    background: #1557b0;
    color: #fff !important;
}

.profile-desc {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

/* Business profile - right */
.profile-business-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.profile-business-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.profile-business-logo .logo-fallback {
    font-size: 0.55rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #fff;
}

.profile-business-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.profile-business-email {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

/* Chart & ride history cards */
.business-dashboard-ubold .card-box {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(56, 65, 74, 0.06), 0 8px 24px rgba(56, 65, 74, 0.04);
}
.business-dashboard-ubold .header-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #313a46;
}

/* Ride history toolbar */
.business-dashboard-ubold .ride-history-toolbar .ride-filter-btn.active {
    background: #313a46;
    color: #fff;
    border-color: #313a46;
}

.business-dashboard-ubold .ride-history-toolbar {
    gap: 0.75rem;
}

.ride-history-search {
    position: relative;
    flex: 0 0 200px;
}

.ride-history-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a6ad;
    font-size: 0.875rem;
}

.ride-history-search input {
    padding-left: 36px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    height: 38px;
}

.ride-history-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.business-dashboard-ubold .ride-filter-btn {
    padding: 0.35rem 0.9rem;
    border-radius: 0.2rem;
    background: #e9ecef;
    color: #6c757d;
    font-size: 0.8125rem;
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: all 0.2s;
}
.business-dashboard-ubold .ride-filter-btn:hover {
    background: #dee2e6;
    color: #495057;
}

/* UBold table-centered */
.business-dashboard-ubold .table.table-centered thead.thead-light th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-top: none;
    padding: 0.75rem;
}
.business-dashboard-ubold .table.table-centered td {
    vertical-align: middle;
    padding: 0.75rem;
}
.business-dashboard-ubold .table.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}
.business-dashboard-ubold .action-icon {
    color: #98a6ad;
    padding: 0.25rem;
}
.business-dashboard-ubold .action-icon:hover {
    color: #313a46;
}

/* Ride History table loader overlay */
.ride-history-table-wrapper {
    min-height: 200px;
}
.ride-history-table-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
}
.ride-history-table-loader .ride-history-loader-spinner {
    margin-bottom: 0.5rem;
    color: #1a73e8;
}
.ride-history-table-loader span {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Ride History DataTable */
.business-dashboard-ubold .dataTables_wrapper .dataTables_info,
.business-dashboard-ubold .dataTables_wrapper .dataTables_paginate {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}
.business-dashboard-ubold .dataTables_wrapper .dataTables_processing {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}
/* Responsive: child row styling */
.business-dashboard-ubold .dtr-details {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
}
.business-dashboard-ubold .dtr-details li {
    padding: 0.25rem 0;
}
