/* =========================================================
   CARRY AFRICA — BACK OFFICE PREMIUM THEME
   Drop-in stylesheet for Views/BackOffice
   ========================================================= */

:root {
    --bo-navy-950: #061827;
    --bo-navy-900: #082236;
    --bo-navy-800: #0d3048;
    --bo-green-900: #064a37;
    --bo-green-800: #075b43;
    --bo-green-700: #0b6d50;
    --bo-green-100: #ddf7ed;
    --bo-amber-500: #ffbd00;
    --bo-amber-400: #ffc933;
    --bo-blue-600: #2563eb;
    --bo-cyan-500: #06b6d4;
    --bo-red-600: #dc2626;
    --bo-orange-500: #f97316;
    --bo-violet-600: #7c3aed;
    --bo-success: #16a34a;
    --bo-paper: #ffffff;
    --bo-page: #f3f6f9;
    --bo-line: #dfe7ee;
    --bo-ink: #122033;
    --bo-muted: #65758b;
    --bo-radius-xl: 28px;
    --bo-radius-lg: 20px;
    --bo-radius-md: 14px;
    --bo-shadow-xl: 0 24px 60px rgba(6, 24, 39, .16);
    --bo-shadow-lg: 0 16px 38px rgba(6, 24, 39, .11);
    --bo-shadow-md: 0 9px 24px rgba(6, 24, 39, .08);
}

.bo-page,
.carry-ops-page,
.carry-dispatch-board {
    color: var(--bo-ink);
}

.bo-page {
    width: min(1480px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 52px;
}

.bo-page.bo-page-wide {
    width: min(1620px, calc(100% - 24px));
}

.bo-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin-bottom: 22px;
    padding: 28px 30px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--bo-radius-xl);
    color: #fff;
    background:
        radial-gradient(circle at 84% 18%, rgba(255, 189, 0, .22), transparent 26%),
        radial-gradient(circle at 62% 120%, rgba(17, 181, 132, .3), transparent 42%),
        linear-gradient(135deg, var(--bo-navy-950), var(--bo-green-900) 62%, #0d6f4b);
    box-shadow: var(--bo-shadow-xl);
}

.bo-hero::after {
    content: "";
    position: absolute;
    inset: auto -50px -95px auto;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
    box-shadow: 0 0 0 30px rgba(255,255,255,.04), 0 0 0 62px rgba(255,255,255,.025);
}

.bo-hero > * {
    position: relative;
    z-index: 1;
}

.bo-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 6px 11px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    color: #dff8ef;
    background: rgba(255,255,255,.08);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.bo-title {
    margin: 0;
    font-size: clamp(1.65rem, 2.4vw, 2.55rem);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.04;
}

.bo-subtitle {
    max-width: 760px;
    margin: 10px 0 0;
    color: rgba(255,255,255,.76);
    font-size: .95rem;
    line-height: 1.62;
}

.bo-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.bo-action,
.bo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}

.bo-action:hover,
.bo-btn:hover {
    transform: translateY(-1px);
}

.bo-action-primary,
.bo-btn-primary {
    color: var(--bo-navy-950);
    background: var(--bo-amber-500);
    box-shadow: 0 10px 24px rgba(255, 189, 0, .24);
}

.bo-action-primary:hover,
.bo-btn-primary:hover {
    color: var(--bo-navy-950);
    background: var(--bo-amber-400);
}

.bo-action-light,
.bo-btn-light {
    color: #fff;
    border-color: rgba(255,255,255,.25);
    background: rgba(255,255,255,.09);
    backdrop-filter: blur(8px);
}

.bo-action-light:hover,
.bo-btn-light:hover {
    color: #fff;
    background: rgba(255,255,255,.16);
}

.bo-btn-success { color: #fff; background: var(--bo-success); }
.bo-btn-danger { color: #fff; background: var(--bo-red-600); }
.bo-btn-warning { color: #271d00; background: var(--bo-amber-500); }
.bo-btn-outline { color: var(--bo-ink); border-color: var(--bo-line); background: #fff; }
.bo-btn-outline:hover { color: var(--bo-green-800); border-color: #acd8c9; background: #f6fffb; }
.bo-btn-sm { min-height: 34px; padding: 6px 11px; border-radius: 10px; font-size: .75rem; }

.bo-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.bo-kpi-grid.bo-kpi-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bo-kpi {
    position: relative;
    min-height: 126px;
    padding: 18px 18px 16px;
    overflow: hidden;
    border: 1px solid var(--bo-line);
    border-radius: var(--bo-radius-lg);
    background: rgba(255,255,255,.96);
    box-shadow: var(--bo-shadow-md);
}

.bo-kpi::after {
    content: "";
    position: absolute;
    right: -34px;
    top: -42px;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--bo-kpi-color, var(--bo-blue-600)) 12%, transparent);
}

.bo-kpi-icon {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
    border-radius: 12px;
    color: var(--bo-kpi-color, var(--bo-blue-600));
    background: color-mix(in srgb, var(--bo-kpi-color, var(--bo-blue-600)) 11%, white);
}

.bo-kpi-label {
    color: var(--bo-muted);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.bo-kpi-value {
    margin-top: 4px;
    color: var(--bo-ink);
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 900;
    letter-spacing: -.04em;
}

.bo-kpi-note {
    margin-top: 3px;
    color: var(--bo-muted);
    font-size: .73rem;
}

.bo-kpi-blue { --bo-kpi-color: var(--bo-blue-600); }
.bo-kpi-green { --bo-kpi-color: var(--bo-success); }
.bo-kpi-amber { --bo-kpi-color: #e6a700; }
.bo-kpi-red { --bo-kpi-color: var(--bo-red-600); }
.bo-kpi-violet { --bo-kpi-color: var(--bo-violet-600); }
.bo-kpi-cyan { --bo-kpi-color: var(--bo-cyan-500); }
.bo-kpi-navy { --bo-kpi-color: var(--bo-navy-800); }

.bo-grid {
    display: grid;
    gap: 18px;
}

.bo-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bo-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bo-grid-sidebar { grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); }
.bo-grid-main { grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr); }

.bo-panel {
    border: 1px solid var(--bo-line);
    border-radius: var(--bo-radius-lg);
    background: #fff;
    box-shadow: var(--bo-shadow-md);
}

.bo-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 19px;
    border-bottom: 1px solid var(--bo-line);
}

.bo-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -.02em;
}

.bo-panel-title-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    color: var(--bo-green-800);
    background: var(--bo-green-100);
}

.bo-panel-subtitle {
    margin: 3px 0 0;
    color: var(--bo-muted);
    font-size: .78rem;
}

.bo-panel-body {
    padding: 20px;
}

.bo-panel-body-sm { padding: 15px; }
.bo-panel-flush { overflow: hidden; }

.bo-filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) minmax(180px, .7fr) auto;
    gap: 12px;
    align-items: end;
}

.bo-field label,
.bo-label,
.bo-page .form-label {
    display: block;
    margin-bottom: 6px;
    color: #344054;
    font-size: .76rem;
    font-weight: 800;
}

.bo-page .form-control,
.bo-page .form-select,
.bo-page textarea,
.bo-modal .form-control,
.bo-modal .form-select,
.bo-modal textarea {
    min-height: 43px;
    border: 1px solid #d7e0e8;
    border-radius: 12px;
    color: var(--bo-ink);
    background: #fff;
    box-shadow: none;
}

.bo-page .form-control:focus,
.bo-page .form-select:focus,
.bo-page textarea:focus,
.bo-modal .form-control:focus,
.bo-modal .form-select:focus,
.bo-modal textarea:focus {
    border-color: #65b89b;
    box-shadow: 0 0 0 4px rgba(11, 109, 80, .11);
}

.bo-page textarea,
.bo-modal textarea { min-height: 110px; }

.bo-help {
    margin-top: 6px;
    color: var(--bo-muted);
    font-size: .73rem;
    line-height: 1.5;
}

.bo-validation,
.bo-page .text-danger.field-validation-error {
    display: block;
    margin-top: 6px;
    font-size: .72rem;
    font-weight: 700;
}

.bo-form-section {
    padding: 18px;
    border: 1px solid var(--bo-line);
    border-radius: 17px;
    background: linear-gradient(180deg, #fff, #fbfcfd);
}

.bo-form-section + .bo-form-section { margin-top: 16px; }

.bo-form-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    font-size: .95rem;
    font-weight: 900;
}

.bo-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.bo-form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bo-form-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--bo-line);
}

.bo-table-wrap {
    overflow: auto;
    border-radius: 0 0 var(--bo-radius-lg) var(--bo-radius-lg);
}

.bo-table,
.bo-page .table {
    width: 100%;
    margin: 0;
    color: var(--bo-ink);
    font-size: .82rem;
}

.bo-table thead th,
.bo-page .table thead th {
    padding: 12px 13px;
    border-bottom: 1px solid var(--bo-line);
    color: #415168;
    background: #f5f8fa;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.bo-table tbody td,
.bo-page .table tbody td {
    padding: 13px;
    border-color: #edf1f4;
    vertical-align: middle;
}

.bo-table tbody tr:hover,
.bo-page .table tbody tr:hover {
    background: #f8fcfa;
}

.bo-table-primary {
    color: var(--bo-ink);
    font-weight: 850;
}

.bo-table-secondary {
    margin-top: 2px;
    color: var(--bo-muted);
    font-size: .72rem;
}

.bo-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .025em;
    white-space: nowrap;
}

.bo-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 14%, transparent);
}

.bo-status-success { color: #087443; background: #e3f8ed; }
.bo-status-warning { color: #9a6500; background: #fff4cf; }
.bo-status-danger { color: #b42318; background: #feeceb; }
.bo-status-primary { color: #1d4ed8; background: #e9f0ff; }
.bo-status-info { color: #0e7490; background: #e1f8fc; }
.bo-status-dark { color: #344054; background: #eef1f4; }
.bo-status-violet { color: #6d28d9; background: #f2ebff; }

.bo-empty {
    padding: 56px 24px;
    text-align: center;
    color: var(--bo-muted);
}

.bo-empty-icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
    border-radius: 18px;
    color: var(--bo-green-800);
    background: var(--bo-green-100);
    font-size: 1.35rem;
}

.bo-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 15px 16px;
    border: 1px solid var(--bo-line);
    border-radius: 15px;
    font-size: .82rem;
    line-height: 1.55;
}

.bo-alert-info { color: #155e75; border-color: #bceaf3; background: #effcff; }
.bo-alert-warning { color: #854d0e; border-color: #f6db8c; background: #fff9e8; }
.bo-alert-success { color: #166534; border-color: #b9e8ca; background: #effcf4; }
.bo-alert-danger { color: #991b1b; border-color: #f4b9b9; background: #fff2f2; }

.bo-money-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 1px;
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid var(--bo-line);
    border-radius: var(--bo-radius-lg);
    background: var(--bo-line);
    box-shadow: var(--bo-shadow-md);
}

.bo-money-item {
    padding: 16px 18px;
    background: #fff;
}

.bo-money-item small {
    display: block;
    margin-bottom: 3px;
    color: var(--bo-muted);
    font-size: .68rem;
    font-weight: 850;
    text-transform: uppercase;
}

.bo-money-item strong {
    font-size: 1.15rem;
    font-weight: 900;
}

.bo-route {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 17px;
    border: 1px solid #e7edf1;
    border-radius: 16px;
    background: #fbfcfd;
}

.bo-route-stop {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.bo-route-dot {
    width: 12px;
    height: 12px;
    margin-top: 4px;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(11,109,80,.14);
    background: var(--bo-green-700);
}

.bo-route-stop.dropoff .bo-route-dot {
    box-shadow: 0 0 0 3px rgba(249,115,22,.15);
    background: var(--bo-orange-500);
}

.bo-route-stop small {
    display: block;
    color: var(--bo-muted);
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.bo-route-stop strong {
    display: block;
    margin-top: 2px;
    font-size: .85rem;
}

.bo-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.bo-job-card {
    position: relative;
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--bo-line);
    border-radius: var(--bo-radius-lg);
    background: #fff;
    box-shadow: var(--bo-shadow-md);
}

.bo-job-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--bo-card-accent, var(--bo-blue-600));
}

.bo-job-card.completed { --bo-card-accent: var(--bo-success); }
.bo-job-card.proof { --bo-card-accent: var(--bo-violet-600); }
.bo-job-card.live { --bo-card-accent: var(--bo-cyan-500); }
.bo-job-card.assigned { --bo-card-accent: var(--bo-blue-600); }
.bo-job-card.cancelled { --bo-card-accent: var(--bo-red-600); }
.bo-job-card.waiting { --bo-card-accent: var(--bo-amber-500); }

.bo-job-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
    margin-bottom: 14px;
}

.bo-job-code {
    font-size: .93rem;
    font-weight: 950;
    letter-spacing: -.02em;
}

.bo-job-customer {
    margin-top: 3px;
    color: var(--bo-muted);
    font-size: .74rem;
}

.bo-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
    margin-top: 13px;
}

.bo-meta {
    padding: 11px 12px;
    border: 1px solid #e8edf1;
    border-radius: 13px;
    background: #fff;
}

.bo-meta small {
    display: block;
    color: var(--bo-muted);
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.bo-meta strong {
    display: block;
    margin-top: 3px;
    font-size: .79rem;
    word-break: break-word;
}

.bo-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px dashed #dce4ea;
}

.bo-map-shell {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    border: 1px solid var(--bo-line);
    border-radius: var(--bo-radius-xl);
    background: #dce8e2;
    box-shadow: var(--bo-shadow-xl);
}

.bo-map-shell #map {
    width: 100%;
    height: min(72vh, 760px);
    min-height: 620px;
}

.bo-map-overlay {
    position: absolute;
    z-index: 500;
    top: 18px;
    left: 18px;
    display: grid;
    gap: 8px;
    min-width: 235px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 16px;
    background: rgba(255,255,255,.92);
    box-shadow: var(--bo-shadow-lg);
    backdrop-filter: blur(12px);
}

.bo-calendar-shell {
    padding: 16px;
    border: 1px solid var(--bo-line);
    border-radius: var(--bo-radius-xl);
    background: #fff;
    box-shadow: var(--bo-shadow-lg);
}

.bo-page .fc .fc-toolbar-title {
    color: var(--bo-ink);
    font-size: 1.25rem;
    font-weight: 900;
}

.bo-page .fc .fc-button-primary {
    border-color: var(--bo-green-800);
    background: var(--bo-green-800);
}

.bo-page .fc .fc-button-primary:hover,
.bo-page .fc .fc-button-primary:not(:disabled).fc-button-active {
    border-color: var(--bo-navy-900);
    background: var(--bo-navy-900);
}

.bo-page .fc-theme-standard td,
.bo-page .fc-theme-standard th,
.bo-page .fc-theme-standard .fc-scrollgrid {
    border-color: #e7edf1;
}

.bo-chart-card {
    min-height: 350px;
}

.bo-chart-wrap {
    position: relative;
    height: 290px;
}

.bo-profile-media {
    display: grid;
    grid-template-columns: 150px minmax(0,1fr);
    gap: 18px;
    align-items: center;
}

.bo-avatar-xl {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 5px solid #fff;
    border-radius: 24px;
    box-shadow: var(--bo-shadow-lg);
    background: #eef2f5;
}

.bo-toggle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
}

.bo-toggle {
    padding: 12px;
    border: 1px solid var(--bo-line);
    border-radius: 13px;
    background: #fbfcfd;
}

.bo-modal .modal-content,
.modal .bo-modal-content,
.bo-page + .modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(6,24,39,.32);
}

.bo-modal .modal-header,
.modal .bo-modal-content .modal-header,
.bo-page + .modal .modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--bo-line);
    background: linear-gradient(180deg, #fff, #fbfcfd);
}

.bo-modal .modal-body,
.modal .bo-modal-content .modal-body,
.bo-page + .modal .modal-body {
    padding: 20px;
    color: var(--bo-ink);
    background: #fff;
}

.bo-modal .modal-footer,
.modal .bo-modal-content .modal-footer,
.bo-page + .modal .modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--bo-line);
    background: #fbfcfd;
}

.bo-doc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
}

.bo-doc-card {
    overflow: hidden;
    border: 1px solid var(--bo-line);
    border-radius: 16px;
    background: #fff;
}

.bo-doc-preview {
    display: grid;
    place-items: center;
    min-height: 320px;
    background: #f1f4f7;
}

.bo-doc-preview img,
.bo-doc-preview iframe {
    width: 100%;
    height: 320px;
    object-fit: contain;
    border: 0;
}

.bo-doc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 13px;
    border-top: 1px solid var(--bo-line);
}

.bo-comment-list {
    display: grid;
    gap: 10px;
    max-height: 360px;
    overflow: auto;
    margin-bottom: 18px;
}

.bo-comment {
    padding: 13px 14px;
    border: 1px solid var(--bo-line);
    border-radius: 14px;
    background: #fbfcfd;
}

.bo-comment-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 7px;
    color: var(--bo-muted);
    font-size: .7rem;
}

.bo-schedule-calendar .ui-datepicker {
    width: 100% !important;
    padding: 12px;
    border: 0;
    border-radius: 16px;
    box-shadow: none;
}

.bo-schedule-calendar .ui-datepicker-multi {
    width: 100% !important;
}

.bo-schedule-calendar .ui-datepicker-group {
    padding: 6px;
}

.bo-schedule-calendar .ui-widget-header {
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--bo-green-800);
}

.bo-schedule-calendar .ui-state-default {
    border: 0 !important;
    border-radius: 8px;
    text-align: center !important;
    background: #f3f6f8 !important;
}

.bo-schedule-calendar .ui-state-highlight {
    color: var(--bo-navy-900) !important;
    background: #fff0bd !important;
}

.bo-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bo-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--bo-muted);
    font-size: .74rem;
    font-weight: 700;
}

.bo-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    min-height: 36px;
    border: 1px solid var(--bo-line);
    border-radius: 10px;
    background: #fff;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    color: #fff !important;
    border: 0 !important;
    border-radius: 9px;
    background: var(--bo-green-800) !important;
}

.bo-page .leaflet-popup-content-wrapper {
    border-radius: 14px;
    box-shadow: var(--bo-shadow-lg);
}

@media (max-width: 1199.98px) {
    .bo-kpi-grid,
    .bo-kpi-grid.bo-kpi-5 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .bo-card-grid { grid-template-columns: 1fr; }
    .bo-grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .bo-grid-sidebar,
    .bo-grid-main { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
    .bo-page,
    .bo-page.bo-page-wide { width: min(100% - 18px, 1480px); padding-top: 14px; }
    .bo-hero { grid-template-columns: 1fr; padding: 22px 20px; border-radius: 22px; }
    .bo-hero-actions { justify-content: flex-start; }
    .bo-kpi-grid,
    .bo-kpi-grid.bo-kpi-5,
    .bo-grid-2,
    .bo-grid-3,
    .bo-form-grid,
    .bo-form-grid-3,
    .bo-toggle-grid,
    .bo-money-strip { grid-template-columns: 1fr; }
    .bo-filter-bar { grid-template-columns: 1fr; }
    .bo-meta-grid { grid-template-columns: 1fr 1fr; }
    .bo-form-actions { flex-direction: column-reverse; }
    .bo-form-actions .bo-btn,
    .bo-form-actions .btn { width: 100%; }
    .bo-profile-media { grid-template-columns: 1fr; }
    .bo-avatar-xl { width: 112px; height: 112px; }
    .bo-doc-grid { grid-template-columns: 1fr; }
    .bo-map-shell,
    .bo-map-shell #map { min-height: 520px; }
    .bo-map-overlay { top: 10px; right: 10px; left: 10px; min-width: 0; }
}

@media print {
    .bo-hero-actions,
    .bo-card-actions,
    .bo-form-actions,
    .bo-filter-bar,
    .btn,
    button { display: none !important; }
    .bo-page { width: 100%; padding: 0; }
    .bo-hero { color: #000; border: 1px solid #ccc; background: #fff; box-shadow: none; }
    .bo-subtitle { color: #333; }
    .bo-panel,
    .bo-kpi,
    .bo-job-card { box-shadow: none; }
}

@keyframes boRise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.carry-bo-ready .bo-reveal {
    animation: boRise .38s ease both;
}

.place-items-center { place-items: center; }

.bo-date-blocked a { color: #fff !important; background: #dc2626 !important; }
.bo-date-available a { color: #fff !important; background: #16a34a !important; }
