:root {
    --bo-navy: #07182c;
    --bo-navy-2: #020b18;
    --bo-red: #e30613;
    --bo-text: #07162b;
    --bo-muted: #344054;
    --bo-line: #e5eaf0;
    --bo-soft: #f5f7fa;
    --bo-white: #ffffff;
    --bo-green: #0f8b5f;
    --bo-amber: #a15c00;
}

:root[data-theme="dark"] {
    --bo-text: #e7eef8;
    --bo-muted: #f8fafc;
    --bo-line: #273449;
    --bo-soft: #0b1220;
    --bo-white: #111827;
    --bo-green: #34d399;
    --bo-amber: #fbbf24;
}

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--bo-text);
    background: var(--bo-soft);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

:root[data-theme="dark"] body {
    color-scheme: dark;
}

a {
    color: inherit;
    text-decoration: none;
}

.bo-link-red {
    color: var(--bo-red);
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

.bo-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.bo-sidebar {
    position: relative;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: auto;
    overflow-y: auto;
    padding: 28px 18px;
    background: var(--bo-navy-2);
    color: var(--bo-white);
}

.bo-sidebar-overlay {
    display: none;
}

.bo-mobile-menu-button {
    position: relative;
    display: none;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-white);
    color: var(--bo-text);
    cursor: pointer;
}

.bo-mobile-menu-button span {
    position: absolute;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.bo-mobile-menu-button span:nth-child(1) {
    transform: translateY(-7px);
}

.bo-mobile-menu-button span:nth-child(3) {
    transform: translateY(7px);
}

.bo-mobile-menu-button.is-active span:nth-child(1) {
    transform: rotate(45deg);
}

.bo-mobile-menu-button.is-active span:nth-child(2) {
    opacity: 0;
}

.bo-mobile-menu-button.is-active span:nth-child(3) {
    transform: rotate(-45deg);
}

.bo-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0 10px 28px;
}

.bo-logo img {
    display: block;
    width: 176px;
    height: auto;
    padding: 4px 6px;
    border-radius: 4px;
    background: #ffffff;
}

.bo-logo small {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bo-nav {
    display: grid;
    align-content: start;
    flex: 1;
    gap: 4px;
}

.bo-nav-icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.bo-nav-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.bo-nav-label > span,
.bo-nav a > span {
    min-width: 0;
}

.bo-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 750;
}

.bo-nav a:hover,
.bo-nav .is-active {
    background: rgba(227, 6, 19, 0.16);
    color: var(--bo-white);
}

.bo-nav-group {
    display: grid;
    gap: 4px;
}

.bo-nav-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.bo-nav-group summary::-webkit-details-marker {
    display: none;
}

.bo-nav-group summary:hover,
.bo-nav-group summary.is-active {
    background: rgba(227, 6, 19, 0.16);
    color: #ffffff;
}

.bo-nav-group summary:focus-visible {
    outline: 2px solid var(--bo-red);
    outline-offset: 2px;
}

.bo-nav-group-chevron {
    width: 9px;
    height: 9px;
    margin: -4px 4px 0 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 160ms ease, margin 160ms ease;
}

.bo-nav-group[open] .bo-nav-group-chevron {
    margin-top: 4px;
    transform: rotate(225deg);
}

.bo-nav-submenu {
    display: grid;
    gap: 2px;
    margin: 2px 0 4px 12px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.bo-nav-submenu a {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 13px;
}

.bo-nav-submenu .bo-nav-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
    opacity: 0.88;
}

.bo-main {
    min-width: 0;
    max-width: 100%;
    transition: opacity 160ms ease, transform 160ms ease;
}

.bo-content,
.bo-topbar,
.bo-grid > *,
.bo-panel,
.bo-stat,
.bo-admin-dashboard > *,
.bo-dashboard-section,
.bo-dashboard-section > *,
.bo-report-hero,
.bo-report-export-layout,
.bo-report-export-form,
.bo-report-export-list,
.bo-customer-dashboard > *,
.bo-customer-overview > *,
.bo-customer-dashboard-tables > * {
    min-width: 0;
    max-width: 100%;
}

.bo-page-leaving .bo-main {
    opacity: 0.7;
    pointer-events: none;
    transform: translateY(3px);
}

.bo-topbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(320px, 460px) minmax(220px, 1fr);
    align-items: center;
    gap: 24px;
    min-height: 92px;
    padding: 22px 34px;
    background: var(--bo-white);
    border-bottom: 1px solid var(--bo-line);
}

.bo-topbar-title {
    min-width: 0;
}

.bo-topbar.bo-topbar-no-search {
    grid-template-columns: minmax(220px, 1fr) auto;
}

.bo-kicker {
    color: var(--bo-red);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.bo-topbar h1 {
    margin: 3px 0 0;
    font-size: 28px;
    line-height: 1.1;
}

.bo-topbar-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    gap: 14px;
    min-width: 0;
}

.bo-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.bo-global-search {
    position: relative;
    justify-self: center;
    width: 100%;
    max-width: 460px;
}

.bo-global-search input {
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-soft);
    color: var(--bo-text);
    font-weight: 750;
}

.bo-global-search input:focus {
    border-color: rgba(227, 6, 19, 0.32);
    background: var(--bo-white);
    outline: none;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.08);
}

.bo-search-results,
.bo-notification-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 40;
    width: min(420px, calc(100vw - 32px));
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-white);
    box-shadow: 0 24px 70px rgba(7, 22, 43, 0.18);
}

.bo-search-result,
.bo-notification-item {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--bo-line);
}

.bo-search-result:last-child,
.bo-notification-item:last-child {
    border-bottom: 0;
}

.bo-search-result:hover,
.bo-notification-item:hover {
    background: #f9fafb;
}

.bo-search-result strong,
.bo-notification-item strong {
    font-size: 13px;
}

.bo-search-result small,
.bo-notification-item small,
.bo-notification-head small {
    color: var(--bo-muted);
    font-size: 12px;
}

.bo-search-type,
.bo-notification-badge {
    width: fit-content;
    padding: 3px 7px;
    border-radius: 999px;
    background: #fff1f2;
    color: var(--bo-red);
    font-size: 11px;
    font-weight: 900;
}

.bo-search-empty,
.bo-notification-empty {
    padding: 14px;
    color: var(--bo-muted);
    font-size: 13px;
    font-weight: 750;
}

.bo-notifications {
    position: relative;
}

.bo-bell-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-white);
    color: var(--bo-text);
    cursor: pointer;
}

.bo-bell-button:hover,
.bo-bell-button[aria-expanded="true"] {
    border-color: rgba(227, 6, 19, 0.28);
    background: #fff7f7;
    color: var(--bo-red);
}

.bo-bell-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bo-notification-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border: 2px solid var(--bo-white);
    border-radius: 999px;
    background: var(--bo-red);
    color: var(--bo-white);
    font-size: 11px;
    font-weight: 950;
    line-height: 18px;
    text-align: center;
}

.bo-notification-panel {
    width: min(380px, calc(100vw - 32px));
}

.bo-notification-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 14px;
    border-bottom: 1px solid var(--bo-line);
}

.bo-notification-list {
    max-height: 420px;
    overflow-y: auto;
}

.bo-notification-all {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-top: 1px solid var(--bo-line);
    color: var(--bo-red);
    font-size: 13px;
    font-weight: 900;
}

.bo-notification-all:hover {
    background: #fff7f7;
}

.bo-user {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--bo-muted);
    font-size: 13px;
}

.bo-user strong {
    color: var(--bo-text);
}

.bo-user-menu {
    position: relative;
}

.bo-user-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-white);
    color: var(--bo-text);
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
}

.bo-user-toggle svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bo-user-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 45;
    width: min(280px, calc(100vw - 32px));
    padding: 10px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-white);
    box-shadow: 0 24px 70px rgba(7, 22, 43, 0.18);
}

.bo-user-panel-head {
    padding: 10px 10px 12px;
    border-bottom: 1px solid var(--bo-line);
}

.bo-user-panel-head strong,
.bo-user-panel-head small,
.bo-theme-control span {
    display: block;
}

.bo-user-panel-head small,
.bo-theme-control span {
    margin-top: 4px;
    color: var(--bo-muted);
    font-size: 12px;
    font-weight: 800;
}

.bo-user-panel-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 40px;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--bo-text);
    cursor: pointer;
    font-size: 13px;
    font-weight: 850;
    text-align: left;
}

.bo-user-panel-link:hover,
.bo-user-toggle:hover {
    background: var(--bo-soft);
}

.bo-user-panel-submit {
    color: var(--bo-red);
}

.bo-theme-control {
    display: grid;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--bo-line);
    border-bottom: 1px solid var(--bo-line);
}

.bo-theme-control div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.bo-theme-control button {
    min-height: 34px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-soft);
    color: var(--bo-text);
    cursor: pointer;
    font-size: 12px;
    font-weight: 850;
}

.bo-theme-control button.is-active {
    border-color: var(--bo-red);
    background: var(--bo-red);
    color: #ffffff;
}

.bo-content {
    animation: bo-page-enter 170ms ease-out both;
    padding: 28px 34px 48px;
}

@keyframes bo-page-enter {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bo-grid {
    display: grid;
    gap: 18px;
    margin-bottom: 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-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bo-grid-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bo-panel,
.bo-stat {
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-white);
    box-shadow: 0 18px 50px rgba(7, 22, 43, 0.06);
}

.bo-panel {
    position: relative;
    padding: 20px;
}

.bo-panel-with-help {
    padding-top: 20px;
}

.bo-panel-help-row {
    display: flex;
    justify-content: flex-start;
    min-height: 38px;
    margin: 0 0 14px;
}

.bo-panel-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 14px;
}

.bo-panel-topbar .bo-panel-help-row,
.bo-panel-topbar .bo-panel-actions {
    margin: 0;
}

.bo-panel-topbar .bo-panel-actions {
    margin-left: auto;
}

.bo-help-button {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(227, 6, 19, 0.22);
    border-radius: 999px;
    background: #fff7f7;
    color: var(--bo-red);
    cursor: pointer;
    font-size: 18px;
    font-weight: 950;
    line-height: 1;
}

.bo-help-button:hover {
    border-color: var(--bo-red);
    background: var(--bo-red);
    color: var(--bo-white);
}

.bo-help-steps {
    margin: 14px 0 0;
    padding-left: 20px;
    color: var(--bo-text);
}

.bo-help-steps li {
    margin: 7px 0;
}

.bo-help-head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.bo-problem-report-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.7fr);
    gap: 22px;
    align-items: start;
}

.bo-problem-report-panel {
    min-width: 0;
}

.bo-problem-report-form textarea {
    min-height: 190px;
}

.bo-problem-upload {
    display: grid;
    justify-items: center;
    gap: 9px;
    min-height: 180px;
    padding: 28px;
    border: 2px dashed var(--bo-line);
    border-radius: 8px;
    background: var(--bo-soft);
    color: var(--bo-text);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.bo-problem-upload:hover,
.bo-problem-upload.is-dragover {
    border-color: var(--bo-red);
    background: color-mix(in srgb, var(--bo-red) 6%, var(--bo-soft));
}

.bo-problem-upload.is-dragover {
    transform: translateY(-2px);
}

.bo-problem-upload strong {
    max-width: 520px;
    font-size: 16px;
}

.bo-problem-upload > span:not(.bo-button) {
    max-width: 560px;
    color: var(--bo-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.55;
}

.bo-problem-upload .bo-button {
    margin-top: 5px;
    pointer-events: none;
}

.bo-problem-preview-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.bo-problem-preview-list[hidden] {
    display: none;
}

.bo-problem-preview-list article {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) auto;
    grid-template-areas: "preview details action";
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-white);
}

.bo-problem-preview-list img {
    grid-area: preview;
    display: block;
    width: 160px;
    height: 100px;
    border: 1px solid var(--bo-line);
    border-radius: 6px;
    background: #ffffff;
    object-fit: contain;
    object-position: center;
}

.bo-problem-preview-list article > div {
    grid-area: details;
    display: grid;
    gap: 4px;
    min-width: 0;
}

.bo-problem-preview-list strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bo-problem-preview-list article > div span {
    color: var(--bo-muted);
    font-size: 12px;
}

.bo-problem-preview-list article > .bo-button {
    grid-area: action;
}

.bo-problem-report-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.bo-problem-report-aside {
    position: sticky;
    top: 102px;
}

.bo-problem-report-aside h2 {
    margin: 7px 0 16px;
    font-size: 20px;
}

.bo-problem-report-aside ol {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 22px;
    color: var(--bo-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
}

.bo-problem-report-aside .bo-note {
    margin-top: 22px;
}

.is-loading-table {
    opacity: 0.6;
    pointer-events: none;
}

.bo-panel-wide,
.bo-panel-span-2 {
    grid-column: span 2;
}

.bo-panel-span-3 {
    grid-column: span 3;
}

.bo-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.bo-panel-head h2 {
    margin: 0;
    font-size: 18px;
}

.bo-appointment-head {
    align-items: flex-start;
}

.bo-appointment-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 9px;
}

.bo-appointment-actions form {
    margin: 0;
}

.bo-appointment-actions .bo-button {
    min-height: 38px;
}

.bo-appointment-icon-action {
    width: 38px;
    height: 38px;
}

.bo-appointment-action-note {
    margin: 14px 0 0;
}

.bo-panel-head a {
    color: var(--bo-red);
    font-size: 13px;
    font-weight: 850;
}

.bo-stat {
    padding: 18px;
}

.bo-stat span,
.bo-stat small {
    display: block;
    color: var(--bo-muted);
    font-size: 13px;
    font-weight: 750;
}

.bo-stat strong {
    display: block;
    margin: 8px 0 5px;
    font-size: 34px;
}

.bo-admin-dashboard {
    display: grid;
    gap: 22px;
}

.bo-supervisor-dashboard,
.bo-technician-dashboard {
    display: grid;
    gap: 30px;
}

.bo-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 22px;
    align-items: center;
    padding: 24px;
    border: 1px solid rgba(227, 6, 19, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(227, 6, 19, 0.12), rgba(7, 24, 44, 0.04)),
        var(--bo-white);
    box-shadow: 0 18px 50px rgba(7, 22, 43, 0.06);
}

.bo-technician-hero {
    background:
        linear-gradient(135deg, rgba(227, 6, 19, 0.14), rgba(15, 139, 95, 0.08)),
        var(--bo-white);
}

.bo-supervisor-hero {
    background:
        linear-gradient(135deg, rgba(227, 6, 19, 0.14), rgba(37, 99, 235, 0.08)),
        var(--bo-white);
}

.bo-dashboard-hero span,
.bo-dashboard-section-title span {
    display: block;
    color: var(--bo-red);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.bo-dashboard-hero h2,
.bo-dashboard-section-title h2 {
    margin: 6px 0 0;
    font-size: 26px;
    line-height: 1.15;
}

.bo-dashboard-hero p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--bo-muted);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.55;
}

.bo-dashboard-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.bo-technician-hero .bo-dashboard-hero-actions {
    gap: 14px;
    justify-self: end;
    width: min(100%, 760px);
}

.bo-dashboard-hero-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(227, 6, 19, 0.28);
    border-radius: 8px;
    background: var(--bo-white);
    color: var(--bo-text);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.bo-dashboard-hero-actions a:hover {
    border-color: var(--bo-red);
    color: var(--bo-red);
}

.bo-dashboard-live-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(227, 6, 19, 0.14);
    border-radius: 8px;
    background: var(--bo-soft);
    color: var(--bo-text);
    font-size: 12px;
    font-weight: 850;
}

.bo-dashboard-live-row small {
    color: var(--bo-muted);
    font-weight: 800;
}

.bo-dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.bo-technician-kpis {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 18px;
}

.bo-supervisor-kpis {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 18px;
}

.bo-dashboard-kpi {
    min-height: 118px;
    padding: 16px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-white);
    box-shadow: 0 16px 42px rgba(7, 22, 43, 0.05);
}

.bo-technician-kpis .bo-dashboard-kpi {
    min-height: 132px;
    padding: 20px;
}

.bo-technician-main-grid,
.bo-technician-list-grid {
    gap: 24px;
    margin-bottom: 0;
}

.bo-technician-focus-panel,
.bo-technician-summary-panel,
.bo-technician-list-grid .bo-panel {
    padding: 22px;
}

.bo-technician-summary-panel {
    display: grid;
    align-content: start;
    gap: 18px;
}

.bo-admin-dashboard .bo-panel,
.bo-supervisor-dashboard .bo-panel,
.bo-technician-dashboard .bo-panel,
.bo-dashboard-hero,
.bo-dashboard-kpi,
.bo-dashboard-hero-actions a,
.bo-dashboard-mini-grid span,
.bo-dashboard-metrics span,
.bo-dashboard-bar-row,
.bo-column-chart div,
.bo-dashboard-service-chart div,
.bo-attention-item,
.bo-technician-next,
.bo-technician-capacity-row > div {
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease,
        color 180ms ease;
}

.bo-admin-dashboard .bo-panel:hover,
.bo-supervisor-dashboard .bo-panel:hover,
.bo-technician-dashboard .bo-panel:hover,
.bo-dashboard-hero:hover,
.bo-dashboard-kpi:hover {
    transform: translateY(-2px);
    border-color: rgba(227, 6, 19, 0.28);
    box-shadow: 0 22px 58px rgba(7, 22, 43, 0.11);
}

.bo-dashboard-hero-actions a:hover,
.bo-attention-item:hover,
.bo-dashboard-mini-grid span:hover,
.bo-dashboard-metrics span:hover,
.bo-technician-capacity-row > div:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(7, 22, 43, 0.08);
}

.bo-dashboard-kpi span,
.bo-dashboard-kpi small {
    display: block;
    color: var(--bo-muted);
    font-size: 12px;
    font-weight: 850;
}

.bo-dashboard-kpi strong {
    display: block;
    margin: 8px 0 5px;
    color: var(--bo-text);
    font-size: 28px;
    line-height: 1.05;
}

.bo-dashboard-kpi-red,
.bo-dashboard-kpi-danger {
    border-color: rgba(227, 6, 19, 0.24);
}

.bo-dashboard-kpi-red strong,
.bo-dashboard-kpi-danger strong {
    color: var(--bo-red);
}

.bo-dashboard-kpi-green {
    border-color: rgba(15, 139, 95, 0.24);
}

.bo-dashboard-kpi-green strong {
    color: var(--bo-green);
}

.bo-dashboard-kpi-blue {
    border-color: rgba(37, 99, 235, 0.24);
}

.bo-dashboard-kpi-blue strong {
    color: #2563eb;
}

.bo-dashboard-kpi-warning {
    border-color: rgba(161, 92, 0, 0.26);
}

.bo-dashboard-kpi-warning strong {
    color: var(--bo-amber);
}

.bo-dashboard-section {
    display: grid;
    gap: 16px;
}

.bo-dashboard-section-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bo-dashboard-section-title h2 {
    font-size: 22px;
}

.bo-dashboard-focus-card {
    display: grid;
    gap: 14px;
}

.bo-donut {
    display: grid;
    place-items: center;
    align-content: center;
    justify-self: center;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background:
        radial-gradient(circle at center, var(--bo-white) 0 58%, transparent 59%),
        conic-gradient(var(--bo-red) var(--value), rgba(227, 6, 19, 0.12) 0);
}

.bo-donut strong {
    font-size: 34px;
    line-height: 1;
}

.bo-donut span {
    margin-top: 4px;
    color: var(--bo-muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.bo-dashboard-mini-grid,
.bo-dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.bo-dashboard-mini-grid span,
.bo-dashboard-metrics span {
    display: grid;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-soft);
    color: var(--bo-muted);
    font-size: 12px;
    font-weight: 800;
}

.bo-dashboard-mini-grid strong,
.bo-dashboard-metrics strong {
    color: var(--bo-text);
    font-size: 20px;
}

.bo-dashboard-bars {
    display: grid;
    gap: 13px;
}

.bo-dashboard-bar-row {
    display: grid;
    grid-template-columns: minmax(170px, 0.8fr) minmax(140px, 1fr);
    gap: 14px;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
}

.bo-dashboard-bar-row:hover {
    background: var(--bo-soft);
}

.bo-dashboard-bar-row strong,
.bo-dashboard-bar-row small {
    display: block;
}

.bo-dashboard-bar-row small {
    margin-top: 3px;
    color: var(--bo-muted);
    font-size: 12px;
    font-weight: 750;
}

.bo-dashboard-bar {
    overflow: hidden;
    height: 10px;
    border-radius: 999px;
    background: rgba(227, 6, 19, 0.1);
}

.bo-technician-capacity-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.bo-technician-capacity-row > div {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-soft);
}

.bo-technician-capacity-row span,
.bo-technician-capacity-row small {
    color: var(--bo-muted);
    font-size: 12px;
    font-weight: 850;
}

.bo-technician-capacity-row strong {
    color: var(--bo-text);
    font-size: 30px;
    line-height: 1;
}

.bo-technician-capacity-row i {
    overflow: hidden;
    height: 10px;
    border-radius: 999px;
    background: rgba(227, 6, 19, 0.12);
}

.bo-technician-capacity-row b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--bo-red), #f59e0b);
}

.bo-technician-next {
    display: grid;
    gap: 5px;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid rgba(227, 6, 19, 0.22);
    border-radius: 8px;
    background: #fff7f7;
    color: var(--bo-text);
}

.bo-technician-next:hover {
    border-color: var(--bo-red);
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(7, 22, 43, 0.08);
}

.bo-technician-next span,
.bo-technician-next small {
    color: var(--bo-muted);
    font-size: 12px;
    font-weight: 850;
}

.bo-technician-next strong {
    font-size: 18px;
}

.bo-dashboard-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--bo-red), #f97316);
    transition: filter 180ms ease, width 180ms ease;
}

.bo-dashboard-bar-row:hover .bo-dashboard-bar i {
    filter: brightness(1.08) saturate(1.12);
}

.bo-column-chart {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: end;
    gap: 10px;
    min-height: 210px;
}

.bo-column-chart-scroll {
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

.bo-column-chart.bo-column-chart-month {
    grid-template-columns: repeat(var(--bo-chart-columns, 7), minmax(38px, 1fr));
}

.bo-column-chart div {
    display: grid;
    align-items: end;
    gap: 6px;
    min-height: 190px;
    padding: 8px 6px;
    border: 1px solid transparent;
    border-radius: 8px;
    text-align: center;
}

.bo-column-chart div:hover {
    border-color: rgba(227, 6, 19, 0.18);
    background: var(--bo-soft);
}

.bo-column-chart span {
    align-self: end;
    width: 100%;
    min-height: 8px;
    border-radius: 8px 8px 2px 2px;
    background: linear-gradient(180deg, var(--bo-red), #7f1d1d);
    transform-origin: bottom;
    transition: filter 180ms ease, transform 180ms ease;
}

.bo-column-chart div:hover span {
    filter: brightness(1.1);
    transform: scaleY(1.03);
}

.bo-column-chart strong {
    font-size: 13px;
}

.bo-column-chart small {
    color: var(--bo-muted);
    font-size: 11px;
    font-weight: 800;
}

.bo-dashboard-service-chart {
    display: grid;
    gap: 12px;
}

.bo-dashboard-service-chart div {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 54px minmax(160px, 1.2fr);
    gap: 14px;
    align-items: center;
    padding: 9px;
    border: 1px solid transparent;
    border-radius: 8px;
}

.bo-dashboard-service-chart div:hover {
    border-color: rgba(227, 6, 19, 0.18);
    background: var(--bo-soft);
}

.bo-dashboard-service-chart span {
    font-weight: 900;
}

.bo-dashboard-service-chart strong {
    text-align: right;
}

.bo-dashboard-service-chart i {
    overflow: hidden;
    height: 10px;
    border-radius: 999px;
    background: rgba(227, 6, 19, 0.1);
}

.bo-dashboard-service-chart b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--bo-red);
    transition: filter 180ms ease, width 180ms ease;
}

.bo-dashboard-service-chart div:hover b {
    filter: brightness(1.08);
}

.bo-dashboard-metric-panel h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.bo-customer-dashboard {
    display: grid;
    gap: 16px;
    margin-bottom: 26px;
}

.bo-customer-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.75fr);
    gap: 14px;
}

.bo-customer-next-card,
.bo-customer-action-card,
.bo-customer-metric-strip span {
    border: 1px solid rgba(7, 22, 43, 0.08);
    border-radius: 8px;
    background: var(--bo-white);
    box-shadow: 0 16px 44px rgba(7, 22, 43, 0.06);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.bo-customer-next-card:hover,
.bo-customer-action-card:hover,
.bo-customer-metric-strip span:hover {
    transform: translateY(-2px);
    border-color: rgba(227, 6, 19, 0.22);
    box-shadow: 0 24px 64px rgba(7, 22, 43, 0.1);
}

.bo-customer-next-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 148px;
    gap: 22px;
    align-items: stretch;
    overflow: hidden;
    padding: 26px;
    background:
        linear-gradient(135deg, rgba(227, 6, 19, 0.08), rgba(227, 6, 19, 0) 42%),
        var(--bo-white);
}

.bo-customer-next-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--bo-red);
}

.bo-customer-next-copy {
    display: grid;
    align-content: center;
    min-width: 0;
}

.bo-customer-eyebrow {
    color: var(--bo-red);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.bo-customer-next-copy h2 {
    margin: 7px 0 8px;
    max-width: 760px;
    color: var(--bo-text);
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.08;
}

.bo-customer-next-copy p {
    max-width: 780px;
    margin: 0;
    color: var(--bo-muted);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.55;
}

.bo-customer-date-tile {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 154px;
    padding: 18px;
    border-radius: 8px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
        linear-gradient(160deg, var(--bo-red), #9f0712);
    color: #ffffff;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.bo-customer-date-tile span {
    font-size: 15px;
    font-weight: 950;
}

.bo-customer-date-tile strong {
    margin: 8px 0 4px;
    font-size: 34px;
    line-height: 1;
}

.bo-customer-date-tile small {
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    font-weight: 900;
}

.bo-customer-action-card {
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 22px;
}

.bo-customer-action-card a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 10px 12px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    color: var(--bo-text);
    font-weight: 900;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.bo-customer-action-card a:hover {
    transform: translateX(2px);
    border-color: rgba(227, 6, 19, 0.32);
    background: #fff7f7;
    color: var(--bo-red);
}

.bo-customer-action-card svg {
    width: 34px;
    height: 34px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(227, 6, 19, 0.09);
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.bo-customer-metric-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.bo-customer-metric-strip span {
    display: grid;
    gap: 4px;
    align-content: start;
    min-height: 86px;
    padding: 16px;
}

.bo-customer-metric-strip strong {
    color: var(--bo-text);
    font-size: 24px;
    line-height: 1;
}

.bo-customer-metric-strip small {
    color: var(--bo-muted);
    font-size: 12px;
    font-weight: 850;
}

.bo-customer-dashboard-tables .bo-panel {
    box-shadow: 0 18px 48px rgba(7, 22, 43, 0.05);
}

.bo-customer-dashboard-tables {
    display: grid;
    gap: 16px;
}

.bo-customer-dashboard-secondary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.bo-customer-dashboard-secondary > .bo-panel {
    width: 100%;
    max-width: none;
}

@media (max-width: 900px) {
    .bo-customer-dashboard-secondary {
        grid-template-columns: minmax(0, 1fr);
    }
}

.bo-customer-reservation {
    margin: 0;
    background: transparent;
}

.bo-customer-reservation .reservation-wizard-section {
    margin-top: 0;
    padding: 0;
}

.bo-customer-reservation .site-container {
    width: 100%;
    max-width: 1320px;
    padding: 0;
}

.bo-customer-reservation .reservation-wizard-card {
    box-shadow: 0 18px 50px rgba(7, 22, 43, 0.06);
}

.bo-customer-reservation .svg-sprite {
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.bo-customer-reservation .vehicle-choice > svg {
    display: block;
    width: 62px;
    min-width: 62px;
    max-width: 62px;
    height: 50px;
    max-height: 50px;
    fill: #083675;
    stroke: #083675;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.1;
}

.bo-customer-reservation .vehicle-choice.is-selected > svg {
    fill: #ffffff;
    stroke: #ffffff;
}

.bo-customer-reservation .choice-check svg {
    display: block;
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.bo-owned-vehicle-picker {
    display: grid;
    gap: 12px;
    margin: 0 0 22px;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
}

.bo-owned-vehicle-picker > span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(239, 0, 21, 0.14);
    border-radius: 999px;
    background: rgba(239, 0, 21, 0.06);
    color: #0f172a;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.bo-owned-vehicle-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}

.bo-owned-vehicle-option {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    min-height: 88px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    color: #111827;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.bo-owned-vehicle-option::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: transparent;
    transition: background 0.18s ease;
}

.bo-owned-vehicle-option:hover {
    transform: translateY(-2px);
    border-color: rgba(239, 0, 21, 0.34);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.11);
}

.bo-owned-vehicle-option.is-disabled {
    cursor: not-allowed;
    opacity: .62;
}

.bo-owned-vehicle-option.is-disabled:hover {
    transform: none;
}

.bo-owned-vehicle-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bo-owned-vehicle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #eef4ff;
    color: #0f4b9b;
    font-size: 23px;
    font-weight: 950;
    line-height: 1;
}

.bo-owned-vehicle-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bo-owned-vehicle-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.bo-owned-vehicle-option strong {
    font-size: 15px;
    font-weight: 950;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.bo-owned-vehicle-option small {
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.bo-owned-vehicle-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid #dbe4ef;
    border-radius: 999px;
    background: #ffffff;
    color: transparent;
    transform: scale(0.88);
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.bo-owned-vehicle-check svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bo-owned-vehicle-option.is-selected {
    border-color: #ef0015;
    background: linear-gradient(135deg, #fff5f5, #ffffff);
    box-shadow: 0 18px 40px rgba(239, 0, 21, 0.13);
}

.bo-owned-vehicle-option.is-selected::before {
    background: #ef0015;
}

.bo-owned-vehicle-option.is-selected .bo-owned-vehicle-icon {
    border-color: rgba(239, 0, 21, 0.25);
    background: #ef0015;
    color: #ffffff;
}

.bo-owned-vehicle-option.is-selected .bo-owned-vehicle-check {
    border-color: #ef0015;
    background: #ef0015;
    color: #ffffff;
    transform: scale(1);
}

.bo-owned-vehicle-picker select {
    width: 100%;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font: inherit;
    padding: 12px 14px;
}

.bo-customer-reservation .time-grid button.is-soft-blocked {
    border-color: #f59e0b;
    background: #fff7d6;
    color: #92400e;
}

.bo-customer-reservation .time-grid button.is-soft-blocked:hover,
.bo-customer-reservation .time-grid button.is-soft-blocked.is-selected {
    border-color: #d97706;
    background: #f59e0b;
    color: #111827;
}

.bo-customer-reservation .time-grid.has-technicians {
    display: grid;
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(auto-fit, minmax(224px, 1fr));
    align-items: start;
    justify-content: stretch;
    gap: 18px;
}

.bo-customer-reservation .time-technician-column {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.bo-customer-reservation .time-technician-slots {
    display: grid;
    grid-template-columns: repeat(3, 68px);
    justify-content: center;
    column-gap: 10px;
    row-gap: 12px;
}

.bo-customer-reservation .time-technician-title {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .bo-customer-reservation .time-grid.has-technicians {
        width: 100%;
        max-width: 760px;
        grid-template-columns: repeat(auto-fit, minmax(224px, 1fr));
    }
}

@media (max-width: 680px) {
    .bo-customer-reservation .time-grid.has-technicians {
        grid-template-columns: 1fr;
    }
}

.bo-attention-list {
    display: grid;
    gap: 10px;
}

.bo-attention-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-soft);
    font-weight: 900;
}

.bo-attention-item strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--bo-white);
    color: var(--bo-text);
}

.bo-attention-danger {
    border-color: rgba(227, 6, 19, 0.28);
    color: var(--bo-red);
}

.bo-attention-warning {
    border-color: rgba(161, 92, 0, 0.32);
    color: var(--bo-amber);
}

.bo-list-row {
    display: grid;
    grid-template-columns: minmax(90px, 0.4fr) minmax(160px, 1fr) minmax(120px, 0.8fr) 40px;
    align-items: center;
    gap: 14px;
    min-height: 54px;
    padding: 12px 0;
    border-top: 1px solid var(--bo-line);
}

.bo-list-row:first-of-type {
    border-top: 0;
}

.bo-list-row span,
.bo-list-row small {
    color: var(--bo-muted);
    font-size: 13px;
}

.bo-list-row strong {
    font-size: 14px;
}

.bo-list-row .bo-list-row-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(227, 6, 19, 0.24);
    border-radius: 8px;
    color: var(--bo-red);
}

.bo-list-row-view svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bo-list-stack {
    min-height: 120px;
}

.bo-list-stack-compact {
    min-height: 0;
}

.bo-list-form {
    grid-template-columns: minmax(90px, 0.4fr) minmax(180px, 1fr) minmax(130px, 0.6fr) minmax(180px, 1fr) auto;
}

.bo-report-summary-grid .bo-panel {
    min-width: 0;
}

.bo-report-summary-grid .bo-list-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.bo-report-summary-grid .bo-list-row span {
    overflow-wrap: anywhere;
}

.bo-report-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 18px;
    align-items: end;
    margin-bottom: 18px;
    padding: 24px;
    border: 1px solid rgba(14, 74, 143, 0.16);
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
    box-shadow: var(--bo-shadow);
}

.bo-report-hero span,
.bo-report-kpi span {
    color: var(--bo-red);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.bo-report-hero h2 {
    margin: 6px 0 8px;
    color: var(--bo-navy);
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.05;
}

.bo-report-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--bo-muted);
    font-weight: 750;
    line-height: 1.55;
}

.bo-report-period-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.bo-report-period-form label {
    display: grid;
    gap: 6px;
    color: var(--bo-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.bo-report-period-form input {
    min-height: 42px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-white);
    color: var(--bo-text);
    padding: 8px 10px;
    font-weight: 850;
}

.bo-report-period-form .bo-button {
    grid-column: 1 / -1;
}

.bo-report-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.bo-report-kpi {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-white);
    box-shadow: var(--bo-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.bo-report-kpi:hover,
.bo-report-chart-panel:hover,
.bo-report-export-group:hover {
    transform: translateY(-2px);
    border-color: rgba(227, 6, 19, 0.26);
    box-shadow: 0 18px 42px rgba(2, 11, 24, 0.12);
}

.bo-report-kpi strong {
    display: block;
    margin: 8px 0 4px;
    color: var(--bo-navy);
    font-size: 30px;
    line-height: 1;
}

.bo-report-kpi small {
    color: var(--bo-muted);
    font-weight: 760;
}

.bo-report-kpi-green {
    border-color: rgba(22, 163, 74, 0.2);
    background: linear-gradient(180deg, #ffffff 0%, #effdf4 100%);
}

.bo-report-kpi-blue {
    border-color: rgba(14, 74, 143, 0.18);
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.bo-report-kpi-warning {
    border-color: rgba(245, 158, 11, 0.24);
    background: linear-gradient(180deg, #ffffff 0%, #fff8e6 100%);
}

.bo-report-kpi-danger {
    border-color: rgba(227, 6, 19, 0.22);
    background: linear-gradient(180deg, #ffffff 0%, #fff1f2 100%);
}

.bo-report-column-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(34px, 1fr));
    align-items: end;
    gap: 8px;
    min-height: 230px;
}

.bo-report-column-chart div {
    display: grid;
    grid-template-rows: 1fr auto auto;
    align-items: end;
    gap: 6px;
    min-height: 210px;
    text-align: center;
}

.bo-report-column-chart span {
    display: block;
    min-height: 8px;
    border-radius: 8px 8px 3px 3px;
    background: linear-gradient(180deg, var(--bo-red), #8f0610);
}

.bo-report-column-chart strong {
    color: var(--bo-navy);
    font-size: 12px;
}

.bo-report-column-chart small {
    color: var(--bo-muted);
    font-size: 11px;
    font-weight: 800;
}

.bo-report-mini-grid {
    margin-top: 18px;
}

.bo-report-meter-row,
.bo-report-attention {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--bo-line);
}

.bo-report-meter-row:first-of-type,
.bo-report-attention:first-of-type {
    border-top: 0;
}

.bo-report-meter-row span,
.bo-report-attention span {
    min-width: 0;
    color: var(--bo-text);
    font-size: 13px;
    font-weight: 850;
}

.bo-report-meter-row strong,
.bo-report-attention strong {
    color: var(--bo-navy);
}

.bo-report-meter-row i {
    grid-column: 1 / -1;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--bo-soft);
}

.bo-report-meter-row b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--bo-red);
}

.bo-report-attention {
    padding-inline: 10px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    margin-bottom: 8px;
    background: var(--bo-soft);
}

.bo-report-attention-warning {
    border-color: rgba(245, 158, 11, 0.24);
    background: #fff8e6;
}

.bo-report-attention-danger {
    border-color: rgba(227, 6, 19, 0.22);
    background: #fff1f2;
}

.bo-report-export-panel {
    margin-top: 8px;
}

.bo-report-export-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
    gap: 18px;
    align-items: start;
}

.bo-report-export-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.bo-report-selected-export {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid rgba(227, 6, 19, 0.22);
    border-radius: 8px;
    background: linear-gradient(135deg, #fff7f7 0%, #ffffff 100%);
    box-shadow: 0 18px 42px rgba(2, 11, 24, 0.07);
}

.bo-report-selected-export span {
    width: fit-content;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(227, 6, 19, 0.1);
    color: var(--bo-red);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.bo-report-selected-export strong {
    color: var(--bo-navy);
    font-size: 22px;
    line-height: 1.15;
}

.bo-report-selected-export p {
    margin: 0;
    color: var(--bo-text);
    font-weight: 760;
    line-height: 1.5;
}

.bo-field-span-2 {
    grid-column: 1 / -1;
}

.bo-checkbox-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    color: var(--bo-text);
    font-weight: 850;
}

.bo-checkbox-line input {
    width: 18px;
    height: 18px;
    accent-color: var(--bo-red);
}

.bo-report-export-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
}

.bo-report-export-actions .bo-muted {
    margin: 0;
}

.bo-report-export-privacy {
    align-self: end;
}

.bo-report-export-privacy .bo-checkbox-line {
    width: fit-content;
}

.bo-report-export-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.bo-report-export-group {
    padding: 14px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-soft);
}

.bo-report-export-group h3 {
    margin: 0 0 10px;
    font-size: 14px;
}

.bo-report-export-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 10px 0;
    border: 0;
    border-top: 1px solid var(--bo-line);
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: color 0.16s ease, transform 0.16s ease;
}

.bo-report-export-card:first-of-type {
    border-top: 0;
}

.bo-report-export-card:hover,
.bo-report-export-card:focus-visible,
.bo-report-export-card.is-selected {
    color: var(--bo-red);
    transform: translateX(2px);
    outline: 0;
}

.bo-report-export-card small {
    justify-self: end;
    padding: 6px 9px;
    border: 1px solid currentColor;
    border-radius: 999px;
    color: inherit;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.bo-report-export-card.is-selected small {
    background: var(--bo-red);
    border-color: var(--bo-red);
    color: #ffffff;
}

.bo-report-export-list strong,
.bo-report-export-list span {
    display: block;
}

.bo-report-export-list strong {
    margin-bottom: 7px;
    font-size: 13px;
}

.bo-report-export-list span {
    color: var(--bo-muted);
    font-size: 12px;
    font-weight: 720;
    line-height: 1.45;
}

.bo-panel,
.bo-stat,
.bo-list-row,
.bo-dashboard-bar-row,
.bo-dashboard-service-chart div,
.bo-report-export-card,
.bo-report-meter-row,
.bo-report-attention,
.bo-form,
.bo-filter,
.bo-inline-form {
    overflow-wrap: anywhere;
}

.bo-log-per-page-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.bo-log-per-page-form input[type="search"] {
    width: min(260px, 100%);
    min-height: 38px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-white);
    color: var(--bo-text);
    padding: 8px 10px;
}

.bo-empty,
.bo-muted {
    color: var(--bo-muted);
    font-size: 14px;
}

.bo-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.bo-changelog-date {
    width: 1%;
    white-space: nowrap;
}

.bo-changelog-type {
    width: 1%;
    white-space: nowrap;
}

.bo-badge.bo-changelog-badge-fix {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
}

.bo-badge.bo-changelog-badge-new {
    background: #ecfdf3;
    border: 1px solid #abefc6;
    color: #067647;
}

.bo-badge.bo-changelog-badge-change {
    background: #eef6ff;
    border: 1px solid #bfdbfe;
    color: #075985;
}

.bo-badge.bo-changelog-badge-security {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.bo-badge.bo-changelog-badge-performance {
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    color: #6d28d9;
}

.bo-badge.bo-changelog-badge-data {
    background: #ecfeff;
    border: 1px solid #a5f3fc;
    color: #0e7490;
}

.bo-badge.bo-changelog-badge-docs {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.bo-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
    overflow-wrap: break-word;
    word-break: normal;
}

.bo-table th {
    color: var(--bo-muted);
    font-size: 12px;
    overflow-wrap: normal;
    text-align: left;
    text-transform: uppercase;
    word-break: normal;
}

.bo-table th *,
.bo-table .bo-sort-link {
    overflow-wrap: normal;
    word-break: normal;
}

.bo-table th,
.bo-table td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--bo-line);
    vertical-align: top;
}

.bo-table tbody tr {
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.bo-table tbody tr:hover {
    background: #fff7f7;
    box-shadow: inset 3px 0 0 var(--bo-red);
}

.bo-table td small {
    display: block;
    margin-top: 3px;
    color: var(--bo-muted);
}

.bo-table a {
    color: var(--bo-red);
    font-weight: 850;
}

.bo-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
}

.bo-sort-link span {
    color: var(--bo-red);
    font-size: 13px;
    line-height: 1;
}

.bo-client-sort {
    cursor: pointer;
    user-select: none;
}

.bo-client-sort::after {
    color: var(--bo-red);
    content: "↕";
    display: inline-block;
    font-size: 13px;
    line-height: 1;
    margin-left: 6px;
}

.bo-client-sort.is-sort-asc::after {
    content: "▲";
}

.bo-client-sort.is-sort-desc::after {
    content: "▼";
}

.bo-table-action-head,
.bo-table-action-cell {
    width: 92px;
    text-align: center;
    white-space: nowrap;
}

.bo-table-action-head-wide,
.bo-table-action-cell-wide {
    width: 230px;
}

.bo-table-action-cell > * + * {
    margin-left: 6px;
}

.bo-table-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(227, 6, 19, 0.2);
    border-radius: 8px;
    background: var(--bo-white);
    color: var(--bo-red);
}

.bo-table-action-form {
    display: inline-flex;
    margin: 0;
}

.bo-inline-action-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
}

.bo-inline-action-form input,
.bo-inline-action-form select {
    min-width: 180px;
    max-width: 260px;
}

button.bo-table-icon-link {
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.bo-table-icon-link:hover {
    border-color: var(--bo-red);
    background: var(--bo-red);
    color: var(--bo-white);
}

.bo-table-icon-danger {
    border-color: rgba(227, 6, 19, 0.35);
    color: var(--bo-red);
}

.bo-table-icon-success {
    border-color: rgba(6, 118, 71, 0.28);
    color: #067647;
}

.bo-table-icon-success:hover {
    border-color: #067647;
    background: #067647;
    color: var(--bo-white);
}

.bo-table-icon-warning {
    border-color: rgba(217, 119, 6, 0.35);
    color: #b45309;
}

.bo-table-icon-warning:hover {
    border-color: #f59e0b;
    background: #f59e0b;
    color: #111827;
}

.bo-table-icon-contrast {
    border-color: rgba(17, 24, 39, 0.24);
    color: #111827;
}

.bo-table-icon-contrast:hover {
    border-color: #111827;
    background: #111827;
    color: var(--bo-white);
}

.bo-table-icon-link svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bo-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
}

.bo-panel:has(.bo-table-footer) {
    display: flex;
    flex-direction: column;
}

.bo-panel:has(.bo-table-footer) .bo-table-footer {
    margin-top: auto;
    padding-top: 16px;
}

.bo-per-page-form,
.bo-log-per-page-form {
    margin: 0;
}

.bo-per-page-form label,
.bo-log-per-page-form label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bo-muted);
    font-size: 13px;
    font-weight: 820;
}

.bo-per-page-form select,
.bo-log-per-page-form select {
    width: auto;
    min-width: 78px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-white);
    color: var(--bo-text);
    padding: 8px 10px;
}

.bo-pagination {
    margin-top: 14px;
}

.bo-table-footer .bo-pagination {
    margin-top: 0;
}

.bo-pagination nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    max-width: 100%;
    overflow-x: auto;
    padding: 2px;
    scrollbar-width: thin;
}

.bo-pagination .bo-pagination-page,
.bo-pagination .bo-pagination-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-white);
    color: var(--bo-text);
    font-size: 16px;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.bo-pagination a.bo-pagination-page:hover,
.bo-pagination a.bo-pagination-arrow:hover {
    border-color: var(--bo-red);
    background: rgba(227, 6, 19, 0.08);
    color: var(--bo-red);
    transform: translateY(-1px);
}

.bo-pagination a.bo-pagination-page:focus-visible,
.bo-pagination a.bo-pagination-arrow:focus-visible {
    outline: 2px solid var(--bo-red);
    outline-offset: 2px;
}

.bo-pagination .bo-pagination-page.is-current {
    border-color: var(--bo-red);
    background: var(--bo-red);
    color: var(--bo-white);
    box-shadow: 0 6px 14px rgba(227, 6, 19, 0.2);
}

.bo-pagination .bo-pagination-arrow.is-disabled {
    cursor: not-allowed;
    opacity: 0.38;
}

.bo-pagination .bo-pagination-arrow svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bo-pagination .bo-pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bo-muted);
    font-size: 18px;
    font-weight: 800;
}

.bo-pagination .hidden {
    display: none;
}

.bo-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(227, 6, 19, 0.09);
    color: var(--bo-red);
    font-size: 12px;
    font-weight: 850;
}

.bo-badge.bo-badge-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.bo-badge.bo-badge-success {
    background: #ecfdf3;
    border: 1px solid #abefc6;
    color: #067647 !important;
}

.bo-badge.bo-badge-info {
    background: #eef6ff;
    border: 1px solid #bfdbfe;
    color: #075985;
}

.bo-badge.bo-badge-danger {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
}

.bo-filter,
.bo-inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.bo-inline-form {
    padding: 12px 0;
    border-top: 1px solid var(--bo-line);
}

.bo-filter input,
.bo-filter select,
.bo-inline-form input,
.bo-inline-form select,
.bo-list-form input,
.bo-list-form select,
.bo-table input[type="text"],
.bo-table input[type="search"],
.bo-table input[type="date"],
.bo-table select,
.bo-form input,
.bo-form select,
.bo-form textarea {
    width: 100%;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-white);
    color: var(--bo-text);
    padding: 11px 12px;
}

.bo-filter input,
.bo-filter select {
    width: auto;
    min-width: 160px;
}

.bo-filter input[type="date"] {
    min-width: 0;
}

.bo-filter-auto > button[type="submit"] {
    display: none;
}

.bo-filter-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--bo-muted);
    font-size: 13px;
    font-weight: 850;
}

.bo-filter-date input[type="date"] {
    min-width: 0;
}

.bo-filter-primary-action {
    margin-left: auto;
}

.bo-calendar-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.bo-inline-readonly-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bo-muted);
    font-size: 13px;
    font-weight: 800;
}

.bo-inline-danger-link {
    color: var(--bo-red);
    font-weight: 900;
}

.bo-inline-danger-link:hover {
    text-decoration: underline;
}

.bo-filter .bo-inline-readonly-field input {
    min-width: 190px;
    background: #f3f6fa;
    color: var(--bo-text);
}

.bo-refresh-note {
    color: var(--bo-muted);
    font-size: 12px;
    font-weight: 760;
}

.bo-inline-form input,
.bo-inline-form select {
    width: auto;
    min-width: 150px;
}

.bo-form {
    display: grid;
    gap: 13px;
}

.bo-field {
    display: grid;
    gap: 6px;
    color: var(--bo-text);
    font-size: 13px;
    font-weight: 780;
}

.bo-field-label {
    color: var(--bo-text);
    font-size: 13px;
    font-weight: 780;
}

.bo-required-label-text {
    display: inline-flex;
    width: fit-content;
    align-items: baseline;
}

.bo-required-mark {
    display: inline-block;
    margin-left: 4px;
    color: #e30613;
    font-size: 1em;
    font-weight: 950;
    line-height: 1;
}

:root[data-theme="dark"] .bo-required-mark {
    color: #f87171;
}

.bo-field .bo-muted {
    font-weight: 600;
    margin: 0;
}

.bo-field-note {
    color: var(--bo-text);
    font-size: 12px;
    font-weight: 650;
}

.bo-calendar-customer-link-field {
    padding: 12px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-soft);
}

.bo-form-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0;
    color: var(--bo-muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.bo-form-divider::before,
.bo-form-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--bo-line);
}

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

.bo-form label {
    display: grid;
    gap: 6px;
    color: var(--bo-text);
    font-size: 13px;
    font-weight: 780;
}

.bo-form textarea {
    min-height: 105px;
    resize: vertical;
}

.bo-account-gdpr-form {
    margin-top: 2px;
}

.bo-form.bo-account-gdpr-form textarea {
    min-height: 68px;
}

.bo-password-input {
    position: relative;
    display: block;
}

.bo-password-input input {
    padding-right: 52px;
}

.bo-password-manual-fields {
    display: grid;
    gap: 13px;
}

.bo-password-manual-fields.is-disabled {
    opacity: 0.58;
}

.bo-password-reveal {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-soft);
    color: var(--bo-text);
    cursor: pointer;
}

.bo-password-reveal:hover,
.bo-password-reveal.is-revealing {
    border-color: rgba(227, 6, 19, 0.35);
    background: #fff1f2;
    color: var(--bo-red);
}

.bo-password-reveal:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.bo-password-reveal svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bo-password-criteria {
    display: grid;
    gap: 9px;
    padding: 12px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: #f9fafb;
}

.bo-password-criteria strong {
    font-size: 13px;
}

.bo-password-criteria ul {
    display: grid;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.bo-password-criteria li {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    padding: 6px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--bo-muted);
    font-size: 13px;
    font-weight: 750;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.bo-password-criteria li::before {
    content: "";
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    border: 1px solid var(--bo-line);
    border-radius: 999px;
    background: var(--bo-white);
}

.bo-password-criteria li.is-met {
    border-color: rgba(15, 139, 95, 0.28);
    background: rgba(15, 139, 95, 0.1);
    color: var(--bo-green);
}

.bo-password-criteria li.is-met::before {
    content: "✓";
    border-color: var(--bo-green);
    background: var(--bo-green);
    color: var(--bo-white);
    font-size: 11px;
    font-weight: 950;
}

.bo-password-match {
    margin: -4px 0 0;
    padding: 10px 12px;
    border: 1px solid rgba(227, 6, 19, 0.22);
    border-radius: 8px;
    background: #fff1f2;
    color: var(--bo-red);
    font-size: 13px;
    font-weight: 800;
}

.bo-password-match[hidden] {
    display: none;
}

.bo-compact-form input[type="text"],
.bo-compact-form input[type="password"],
.bo-compact-form input[type="email"],
.bo-compact-form input[type="tel"] {
    max-width: 260px;
}

.bo-compact-form .bo-button {
    width: fit-content;
}

.bo-autocomplete {
    position: relative;
    min-width: 0;
}

.bo-filter-autocomplete {
    width: min(360px, 100%);
}

.bo-filter .bo-filter-autocomplete input {
    width: 100%;
    min-width: 260px;
}

.bo-autocomplete-list {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    display: grid;
    gap: 4px;
    max-height: 300px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-white);
    box-shadow: 0 18px 50px rgba(7, 22, 43, 0.14);
}

.bo-autocomplete-list[hidden] {
    display: none;
}

.bo-autocomplete-option {
    display: grid;
    gap: 3px;
    width: 100%;
    padding: 10px 11px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--bo-text);
    cursor: pointer;
    text-align: left;
}

.bo-autocomplete-option:hover,
.bo-autocomplete-option:focus {
    background: var(--bo-soft);
    outline: none;
}

.bo-autocomplete-option strong {
    font-size: 13px;
}

.bo-autocomplete-option small,
.bo-autocomplete-empty {
    color: var(--bo-muted);
    font-size: 12px;
}

.bo-autocomplete-empty {
    padding: 10px 11px;
}

.bo-variable-box {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-soft);
}

.bo-variable-box strong {
    font-size: 13px;
}

.bo-variable-box small {
    color: var(--bo-muted);
    font-size: 12px;
}

.bo-variable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 7px;
}

.bo-token-button {
    display: grid;
    gap: 3px;
    padding: 9px 10px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-white);
    color: var(--bo-text);
    cursor: pointer;
    text-align: left;
}

.bo-token-button:hover,
.bo-token-button:focus {
    border-color: rgba(214, 31, 38, 0.32);
    background: #fff7f7;
    color: #07162b;
    outline: none;
}

.bo-token-button span {
    font-size: 12px;
    font-weight: 850;
}

.bo-token-button code {
    color: var(--bo-muted);
    font-size: 11px;
}

.bo-token-button:hover code,
.bo-token-button:focus code {
    color: #344054;
}

.bo-template-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bo-template-actions .bo-button {
    flex: 1 1 180px;
}

.bo-email-preview {
    display: grid;
    gap: 16px;
}

.bo-email-preview-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.bo-email-preview-toolbar h2 {
    margin: 4px 0 0;
}

.bo-email-preview-window {
    overflow: hidden;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-white);
    box-shadow: 0 16px 36px rgba(7, 24, 44, 0.12);
}

.bo-email-preview-meta {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--bo-line);
    background: var(--bo-soft);
    color: var(--bo-muted);
    font-size: 12px;
    font-weight: 760;
}

.bo-email-preview-card {
    overflow: hidden;
    background: #fff;
}

.bo-email-preview-hero {
    padding: 28px 32px 32px;
    background: #071426;
    color: #fff;
}

.bo-email-preview-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.bo-email-preview-logo {
    display: flex;
    align-items: flex-start;
}

.bo-email-preview-logo img {
    display: block;
    width: 192px;
    max-width: 100%;
    height: auto;
    padding: 4px 6px;
    border-radius: 4px;
    background: #ffffff;
}

.bo-email-preview-contact {
    display: grid;
    gap: 3px;
    color: #d8e2ef;
    font-size: 12px;
    font-weight: 760;
    line-height: 1.55;
    text-align: right;
}

.bo-email-preview-accent {
    display: block;
    width: 72px;
    height: 3px;
    margin-top: 24px;
    border-radius: 999px;
    background: var(--bo-red);
}

.bo-email-preview-window h3 {
    margin: 0;
    padding: 18px 0 0;
    color: #fff;
    font-size: 28px;
    line-height: 1.18;
    font-weight: 950;
}

.bo-email-preview-body {
    min-height: 180px;
    padding: 32px;
    color: #1f2937;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.7;
    white-space: normal;
}

.bo-email-preview-action {
    padding: 0 32px 30px;
}

.bo-email-preview-action a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    background: var(--bo-red);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 18px 34px rgba(239, 0, 21, .22);
}

.bo-email-preview-footer {
    display: grid;
    gap: 5px;
    padding: 24px 32px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.55;
}

.bo-email-preview-footer strong {
    color: #0f172a;
}

.bo-email-preview-footer small {
    margin-top: 10px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.bo-compact-form {
    margin: 0 0 10px;
}

.bo-button,
.bo-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-white);
    color: var(--bo-text);
    cursor: pointer;
    font-size: 13px;
    font-weight: 850;
}

.bo-button-red {
    border-color: var(--bo-red);
    background: var(--bo-red);
    color: var(--bo-white);
}

.bo-button-dark {
    border-color: var(--bo-red);
    background: var(--bo-navy);
    color: var(--bo-white);
}

.bo-button-small {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
}

.bo-button-nowrap {
    min-width: max-content;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
}

.bo-button svg {
    width: 16px;
    height: 16px;
    margin-right: 7px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bo-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.bo-button-wide,
.bo-button-save,
.bo-button-message {
    width: 100%;
}

.bo-button-save {
    min-height: 46px;
    border-color: var(--bo-red);
    background: linear-gradient(180deg, #0b2442, var(--bo-navy));
    color: var(--bo-white);
    box-shadow: 0 12px 24px rgba(7, 24, 44, 0.16);
}

.bo-button-message {
    min-height: 46px;
    border-color: var(--bo-red);
    background: #f8fbff;
    color: #0b3a70;
}

.bo-button-message:hover {
    border-color: #0b3a70;
    background: #eef6ff;
}

.bo-dialog-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(227, 6, 19, 0.28);
    border-radius: 999px;
    background: var(--bo-white);
    color: var(--bo-red);
    cursor: pointer;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.bo-dialog-close:hover {
    background: var(--bo-red);
    color: #ffffff;
}

.bo-quick-actions {
    display: grid;
    align-content: start;
    gap: 14px;
}

.bo-panel-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 14px;
}

.bo-page-actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.bo-check {
    display: inline-flex !important;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
}

.bo-check input {
    width: auto !important;
    accent-color: var(--bo-red);
}

.bo-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin: 0;
}

.bo-detail-grid-one {
    grid-template-columns: 1fr;
}

.bo-detail-grid div {
    min-height: 70px;
    padding: 14px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-soft);
}

.bo-detail-grid div.bo-detail-alert {
    border-color: rgba(227, 6, 19, 0.28);
    background: #fff5f5;
}

.bo-detail-grid dt {
    color: var(--bo-muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.bo-detail-grid dd {
    margin: 8px 0 0;
    font-weight: 800;
}

.bo-detail-alert dd {
    color: var(--bo-red);
    font-size: 18px;
}

.bo-customer-settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.bo-customer-settings-grid h3 {
    margin: 0 0 4px;
    font-size: 15px;
}

.bo-log-table {
    min-width: 720px;
}

.bo-log-table td {
    font-size: 13px;
}

.bo-log-table td strong,
.bo-log-table td small {
    display: block;
}

.bo-log-table td small {
    margin-top: 4px;
}

.bo-message-log-head {
    align-items: flex-start;
    gap: 18px;
}

.bo-message-log-head > div > p {
    margin: 5px 0 0;
    color: var(--bo-muted);
    font-size: 13px;
    line-height: 1.45;
}

.bo-message-log-filter select {
    width: min(190px, 100%);
    min-height: 38px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-white);
    color: var(--bo-text);
    padding: 8px 34px 8px 10px;
}

.bo-message-log-table {
    min-width: 1280px;
}

.bo-message-log-table th:nth-child(1),
.bo-message-log-table td:nth-child(1) {
    width: 150px;
}

.bo-message-log-table th:nth-child(2),
.bo-message-log-table td:nth-child(2) {
    width: 190px;
}

.bo-message-log-table th:nth-child(3),
.bo-message-log-table td:nth-child(3) {
    min-width: 320px;
}

.bo-message-log-recipient a {
    color: var(--bo-text);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.bo-message-log-recipient a:hover {
    color: var(--bo-red);
}

.bo-message-log-body {
    max-height: 180px;
    margin-top: 7px;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: var(--bo-text);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
}

.bo-message-log-error {
    color: var(--bo-red) !important;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.bo-note {
    margin-top: 16px;
    padding: 16px;
    border-radius: 8px;
    background: var(--bo-soft);
}

.bo-note p {
    margin: 8px 0 0;
    color: var(--bo-muted);
}

.bo-contact-admin-grid {
    margin-top: 18px;
}

.bo-contact-metadata dd,
.bo-contact-log-table td {
    overflow-wrap: anywhere;
    word-break: normal;
}

.bo-contact-metadata code {
    color: inherit;
    font: inherit;
    font-weight: 800;
}

.bo-contact-log-table {
    min-width: 1040px;
}

.bo-contact-log-table small {
    display: block;
    max-width: 420px;
    margin-top: 6px;
    line-height: 1.45;
}

.bo-contact-log-error {
    color: var(--bo-red);
}

.bo-contact-delivery-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.bo-contact-delivery-summary article {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-soft);
}

.bo-contact-delivery-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.bo-contact-delivery-summary dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 0;
}

.bo-contact-delivery-summary dl div {
    min-width: 0;
}

.bo-contact-delivery-summary dt {
    color: var(--bo-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.bo-contact-delivery-summary dd {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
    color: var(--bo-text);
    font-size: 13px;
    font-weight: 800;
}

.bo-contact-delivery-summary p {
    margin: 13px 0 0;
    color: var(--bo-text);
    font-size: 13px;
    line-height: 1.5;
}

.bo-contact-delivery-summary p.bo-contact-log-error {
    color: var(--bo-red);
}

.bo-contact-automation-state {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 16px;
    color: var(--bo-text);
    font-size: 13px;
}

@media (max-width: 720px) {
    .bo-contact-delivery-summary,
    .bo-contact-delivery-summary dl {
        grid-template-columns: 1fr;
    }

    .bo-contact-delivery-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

.bo-timeline-item {
    padding: 13px 0;
    border-top: 1px solid var(--bo-line);
}

.bo-timeline-item:first-of-type {
    border-top: 0;
}

.bo-timeline-item strong,
.bo-timeline-item span {
    display: block;
}

.bo-timeline-item span,
.bo-timeline-item p {
    color: var(--bo-muted);
    font-size: 13px;
}

.bo-dialog {
    position: relative;
    width: min(560px, calc(100% - 32px));
    border: 0;
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 24px 80px rgba(7, 22, 43, 0.24);
}

.bo-dialog-wide {
    width: min(1040px, calc(100% - 32px));
}

.bo-reminder-duplicate-head,
.bo-customer-duplicate-head {
    padding-right: 40px;
}

.bo-reminder-duplicate-loading,
.bo-customer-duplicate-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 150px;
    color: var(--bo-text);
}

.bo-reminder-duplicate-loading[hidden],
.bo-customer-duplicate-loading[hidden] {
    display: none;
}

.bo-loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--bo-line);
    border-top-color: var(--bo-red);
    border-radius: 50%;
    animation: bo-spin 0.75s linear infinite;
}

@keyframes bo-spin {
    to { transform: rotate(360deg); }
}

.bo-reminder-duplicate-summary,
.bo-customer-duplicate-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 12px;
}

.bo-customer-duplicate-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bo-reminder-duplicate-summary article,
.bo-customer-duplicate-summary article {
    padding: 13px 14px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-soft);
}

.bo-reminder-duplicate-summary span,
.bo-reminder-duplicate-summary strong,
.bo-customer-duplicate-summary span,
.bo-customer-duplicate-summary strong {
    display: block;
}

.bo-reminder-duplicate-summary span,
.bo-customer-duplicate-summary span {
    margin-bottom: 4px;
    color: var(--bo-muted);
    font-size: 12px;
    font-weight: 750;
}

.bo-reminder-duplicate-summary strong,
.bo-customer-duplicate-summary strong {
    color: var(--bo-text);
    font-size: 24px;
}

.bo-reminder-duplicate-note,
.bo-customer-duplicate-note {
    margin: 0 0 14px;
    padding: 11px 12px;
    border-left: 3px solid #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    color: var(--bo-text);
    font-weight: 700;
}

.bo-reminder-duplicate-note-success,
.bo-customer-duplicate-note-success {
    border-left-color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
}

.bo-reminder-duplicate-table td:first-child strong,
.bo-reminder-duplicate-table td:first-child small {
    display: block;
}

.bo-reminder-duplicate-table td:first-child small {
    margin-top: 3px;
    color: var(--bo-muted);
}

.bo-reminder-duplicate-conflict {
    background: rgba(220, 38, 38, 0.06);
}

.bo-customer-duplicate-strong {
    background: rgba(220, 38, 38, 0.06);
}

.bo-reminder-duplicate-links,
.bo-customer-duplicate-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.bo-reminder-duplicate-link,
.bo-customer-duplicate-link {
    display: inline-flex;
    padding: 6px 8px;
    border: 1px solid var(--bo-line);
    border-radius: 6px;
    color: var(--bo-text);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.bo-reminder-duplicate-link:hover,
.bo-customer-duplicate-link:hover {
    border-color: var(--bo-red);
    color: var(--bo-red);
}

.bo-customer-merge-fieldset {
    min-width: 0;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
}

.bo-customer-merge-fieldset legend {
    padding: 0 7px;
    color: var(--bo-text);
    font-size: 13px;
    font-weight: 850;
}

.bo-customer-merge-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.bo-form .bo-customer-merge-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    padding: 13px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-soft);
    cursor: pointer;
}

.bo-form .bo-customer-merge-option:has(input:checked) {
    border-color: var(--bo-red);
    box-shadow: inset 0 0 0 1px var(--bo-red);
}

.bo-customer-merge-option input {
    width: auto;
    margin-top: 3px;
    accent-color: var(--bo-red);
}

.bo-customer-merge-option-content {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.bo-customer-merge-option-content strong,
.bo-customer-merge-option-content span,
.bo-customer-merge-option-content small {
    overflow-wrap: anywhere;
}

.bo-customer-merge-option-content span,
.bo-customer-merge-option-content small {
    color: var(--bo-muted);
    font-weight: 650;
}

.bo-customer-merge-confirmation {
    align-items: flex-start;
    padding: 12px;
    border: 1px solid rgba(227, 6, 19, 0.35);
    border-radius: 8px;
    background: rgba(227, 6, 19, 0.06);
}

[data-reminder-duplicate-results] + .bo-dialog-actions,
[data-customer-duplicate-results] + .bo-dialog-actions {
    margin-top: 16px;
}

@media (max-width: 720px) {
    .bo-reminder-duplicate-summary,
    .bo-customer-duplicate-summary {
        grid-template-columns: 1fr;
    }

    .bo-customer-merge-options {
        grid-template-columns: 1fr;
    }
}

.bo-dialog::backdrop {
    background: rgba(2, 11, 24, 0.5);
}

.bo-dialog h2 {
    margin: 0 0 10px;
}

.bo-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.bo-dialog-checks {
    display: grid;
    gap: 9px;
    margin: 14px 0 18px;
}

.bo-dialog-checks label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    font-weight: 780;
}

.bo-calendar-slots {
    display: block;
    overflow-x: auto;
}

.bo-calendar-slots-head {
    margin-top: 10px;
}

.bo-calendar-slot-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;
}

.bo-form-error {
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid rgba(229, 0, 16, 0.28);
    border-radius: 8px;
    background: #fff1f2;
    color: #b00020;
    font-size: 13px;
    font-weight: 800;
}

.bo-form-error[hidden] {
    display: none;
}

.bo-calendar-slots.is-refreshing {
    opacity: 0.58;
}

.bo-calendar-slots > span,
.bo-calendar-slots > button {
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-soft);
    color: inherit;
    font-weight: 850;
    text-align: left;
}

.bo-calendar-slots > button {
    cursor: pointer;
}

.bo-calendar-slots .bo-slot-time {
    display: block;
    color: inherit;
    font-size: 13px;
    line-height: 1.25;
}

.bo-calendar-slots .is-merged-slot {
    min-height: 100%;
}

.bo-calendar-slots > span.is-available,
.bo-calendar-slots > button.is-available {
    background: #ecfdf3;
    border-color: #b7ebcf;
    color: #08734c;
}

.bo-calendar-slots > span.is-soft-blocked,
.bo-calendar-slots > button.is-soft-blocked {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

.bo-calendar-slots > span.is-reserved,
.bo-calendar-slots > button.is-reserved,
.bo-calendar-slots > span.is-unavailable {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b42318;
}

.bo-calendar-slots > button.is-reserved:hover {
    border-color: #b42318;
    box-shadow: 0 10px 24px rgba(180, 35, 24, 0.12);
}

.bo-calendar-slots small {
    color: var(--bo-muted);
}

.bo-calendar-slots .bo-slot-block-label {
    font-size: 11px;
    font-weight: 900;
}

.bo-calendar-slots .bo-slot-soft-label {
    font-size: 11px;
    font-weight: 900;
}

.bo-calendar-slots > span.is-available small,
.bo-calendar-slots > button.is-available small {
    color: #08734c;
}

.bo-calendar-slots > span.is-soft-blocked small,
.bo-calendar-slots > button.is-soft-blocked small {
    color: #92400e;
}

.bo-calendar-slots > span.is-reserved small,
.bo-calendar-slots > button.is-reserved small,
.bo-calendar-slots > span.is-unavailable small {
    color: #b42318;
}

.bo-calendar-grid-wrap {
    width: 100%;
    overflow-x: auto;
}

.bo-calendar-grid-wrap.is-technician-single-calendar .bo-calendar-grid-table {
    width: min(100%, 680px);
    min-width: min(100%, 680px);
    max-width: 680px;
    margin-left: 0;
    margin-right: auto;
    grid-template-columns: var(--calendar-time-column) minmax(360px, 1fr);
}

.bo-calendar-grid-wrap.is-technician-single-calendar .bo-calendar-grid-cell {
    min-width: 0;
}

.bo-calendar-grid-table {
    --calendar-time-column: 96px;
    --calendar-row-height: 72px;
    width: 100%;
    min-width: max(760px, var(--calendar-min-width, 760px));
    display: grid;
    grid-template-columns: var(--calendar-time-column) repeat(var(--calendar-columns), minmax(260px, 1fr));
    grid-auto-rows: var(--calendar-row-height);
    gap: 8px 0;
}

.bo-calendar-grid-head {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 8px 10px;
    border-bottom: 1px solid var(--bo-line);
    background: var(--bo-white);
    color: var(--bo-muted);
    font-size: 11px;
    font-weight: 950;
    text-align: left;
    text-transform: uppercase;
}

.bo-calendar-grid-head span,
.bo-calendar-grid-head small {
    display: block;
}

.bo-calendar-grid-head small {
    margin-top: 2px;
    color: var(--bo-muted);
    font-size: 11px;
    font-weight: 750;
    text-transform: none;
}

.bo-calendar-grid-cell {
    min-width: 160px;
    padding: 3px 5px;
    display: flex;
    min-height: 0;
}

.bo-calendar-time-head,
.bo-calendar-time-cell {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 96px;
    min-width: 96px;
    box-sizing: border-box;
    background: var(--bo-white);
}

.bo-calendar-time-head {
    z-index: 4;
}

.bo-calendar-time-cell {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-right: 1px solid var(--bo-line);
    color: var(--bo-muted);
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
}

.bo-calendar-grid-cell > span,
.bo-calendar-grid-cell > button {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 8px 10px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-soft);
    color: inherit;
    font-weight: 850;
    text-align: left;
}

.bo-slot-compact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(92px, auto);
    gap: 8px 12px;
    align-items: start;
    width: 100%;
    height: 100%;
    min-width: 0;
}

.bo-slot-primary,
.bo-slot-secondary {
    display: grid;
    align-content: start;
    gap: 3px;
    min-width: 0;
}

.bo-slot-secondary {
    justify-items: end;
    text-align: right;
}

.bo-slot-customer,
.bo-slot-state,
.bo-slot-block-label,
.bo-slot-soft-label {
    max-width: 100%;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.bo-slot-customer {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bo-calendar-grid-cell.is-available .bo-slot-compact-layout {
    grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
}

.bo-calendar-grid-cell.is-available .bo-slot-primary {
    grid-column: 1;
}

.bo-calendar-grid-cell.is-available .bo-slot-secondary {
    grid-column: 3;
}

.bo-calendar-grid-cell > button {
    cursor: pointer;
}

.bo-calendar-grid-cell > button.is-calendar-draggable {
    cursor: grab;
    touch-action: manipulation;
}

.bo-calendar-grid-cell > button.is-calendar-draggable:active {
    cursor: grabbing;
}

.bo-calendar-slots.is-calendar-dragging .bo-calendar-grid-cell {
    transition: opacity 150ms ease, transform 150ms ease;
}

.bo-calendar-slots.is-calendar-dragging .bo-calendar-grid-cell:not(.is-drop-candidate) {
    opacity: 0.46;
}

.bo-calendar-grid-cell.is-drop-candidate {
    position: relative;
    z-index: 5;
}

.bo-calendar-grid-cell.is-drop-candidate::after {
    content: attr(data-drop-label);
    position: absolute;
    inset: 6px 8px;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 2px dashed var(--bo-red);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--bo-red);
    font-size: 12px;
    font-weight: 950;
    pointer-events: none;
}

.bo-calendar-grid-cell.is-drop-active {
    transform: translateY(-2px);
}

.bo-calendar-grid-cell.is-drop-active::after {
    border-style: solid;
    background: #fff1f2;
    box-shadow: 0 12px 28px rgba(227, 6, 19, 0.2);
}

.bo-calendar-transfer-route {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.bo-calendar-transfer-route > div {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-soft);
}

.bo-calendar-transfer-route > span {
    align-self: center;
    color: var(--bo-red);
    font-size: 24px;
    font-weight: 950;
}

.bo-calendar-transfer-route small,
.bo-calendar-transfer-route strong {
    display: block;
}

.bo-calendar-transfer-route small {
    margin-bottom: 5px;
    color: var(--bo-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.bo-calendar-transfer-route strong {
    color: var(--bo-text);
    overflow-wrap: anywhere;
}

.bo-calendar-transfer-route .bo-muted {
    display: block;
    margin-top: 5px;
    color: var(--bo-muted);
    font-size: 13px;
    font-weight: 750;
}

.bo-calendar-transfer-time {
    margin: 0;
    color: var(--bo-text);
    font-weight: 850;
}

.bo-calendar-transfer-swap {
    padding: 13px 14px;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    background: #fffbeb;
    color: #92400e;
}

.bo-calendar-transfer-swap p {
    margin: 5px 0 0;
}

.bo-calendar-transfer-notifications {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-soft);
    color: var(--bo-text);
}

.bo-calendar-transfer-notifications[hidden] {
    display: none;
}

.bo-calendar-transfer-notifications > strong {
    font-size: 14px;
}

.bo-calendar-transfer-notifications .bo-check {
    align-items: center;
    margin: 0;
}

.bo-calendar-transfer-notifications input:disabled + span {
    opacity: 0.55;
}

.bo-calendar-transfer-notifications small {
    line-height: 1.5;
}

.bo-slot-create-link {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: inherit;
    box-shadow: 0 10px 24px rgba(8, 115, 76, 0.13);
}

.bo-slot-create-link:hover {
    background: #ffffff;
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 8px 18px rgba(8, 115, 76, 0.14);
}

.bo-slot-create-link svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.bo-slot-hold-countdown {
    width: fit-content;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(227, 6, 19, 0.11);
    color: var(--bo-red) !important;
    font-weight: 950;
}

.bo-slot-hold-countdown.is-expired {
    background: rgba(52, 64, 84, 0.12);
    color: var(--bo-text) !important;
}

.bo-calendar-grid-cell.is-available > span,
.bo-calendar-grid-cell.is-available > button {
    background: #ecfdf3;
    border-color: #b7ebcf;
    color: #08734c;
}

.bo-calendar-grid-cell.is-soft-blocked > span,
.bo-calendar-grid-cell.is-soft-blocked > button {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

.bo-calendar-grid-cell.is-reserved > span,
.bo-calendar-grid-cell.is-reserved > button,
.bo-calendar-grid-cell.is-unavailable > span,
.bo-calendar-grid-cell.is-unavailable > button {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b42318;
}

.bo-calendar-grid-cell.is-reserved > button:hover {
    border-color: #b42318;
    box-shadow: 0 10px 24px rgba(180, 35, 24, 0.12);
}

.bo-calendar-grid-cell.is-empty > span {
    border-style: dashed;
    background: #ffffff;
    color: var(--bo-muted);
}

@media (max-width: 640px) {
    .bo-calendar-transfer-route {
        grid-template-columns: 1fr;
    }

    .bo-calendar-transfer-route > span {
        justify-self: center;
        transform: rotate(90deg);
    }
}

.bo-calendar-grid-table small {
    color: currentColor;
    font-size: 11px;
    font-weight: 800;
}

.bo-blocked-table {
    display: grid;
    gap: 0;
    overflow-x: auto;
}

.bo-blocked-head,
.bo-blocked-row {
    display: grid;
    grid-template-columns: minmax(88px, 0.9fr) minmax(88px, 0.9fr) minmax(92px, 0.9fr) minmax(118px, 1fr) minmax(110px, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-width: 760px;
    padding: 10px 0;
    border-bottom: 1px solid var(--bo-line);
}

.bo-blocked-head {
    color: var(--bo-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.bo-blocked-row {
    font-size: 13px;
}

.bo-blocked-row small {
    color: var(--bo-muted);
}

.bo-automation-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

.bo-automation-info > div {
    display: grid;
    gap: 5px;
    min-height: 92px;
    padding: 16px;
    border: 1px solid rgba(227, 6, 19, 0.16);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.06), rgba(0, 75, 150, 0.06));
}

.bo-automation-info strong {
    font-size: 13px;
    text-transform: uppercase;
    color: var(--bo-red);
}

.bo-automation-info span {
    color: var(--bo-muted);
    font-size: 13px;
    line-height: 1.5;
}

.bo-automation-info code {
    color: var(--bo-text);
    font-weight: 900;
}

.bo-automation-table {
    min-width: 1180px;
}

.bo-automation-table td strong,
.bo-automation-table td small {
    display: block;
}

.bo-automation-table td small {
    margin-top: 4px;
    color: var(--bo-muted);
}

.bo-automation-channel {
    display: grid;
    gap: 8px;
    min-width: 210px;
}

.bo-automation-channel .bo-check {
    align-items: center;
    margin: 0;
}

.bo-automation-channel small,
.bo-automation-status,
.bo-automation-schedule {
    display: block;
    color: var(--bo-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.bo-automation-schedule {
    margin-bottom: 8px;
    color: var(--bo-text);
}

.bo-automation-offset {
    gap: 5px;
    margin: 0 0 8px;
}

.bo-automation-offset small {
    margin-top: 0;
}

.bo-automation-table select,
.bo-automation-table input[type="text"],
.bo-automation-table input[type="number"] {
    width: 100%;
    min-width: 160px;
    min-height: 38px;
    padding: 9px 11px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-soft);
    color: var(--bo-text);
    font: inherit;
    font-weight: 750;
}

.bo-automation-table select:focus,
.bo-automation-table input[type="text"]:focus,
.bo-automation-table input[type="number"]:focus {
    border-color: rgba(227, 6, 19, 0.32);
    background: var(--bo-white);
    outline: none;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.08);
}

.bo-scheduled-report-panel {
    margin-bottom: 22px;
}

.bo-scheduled-report-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.bo-scheduled-report-card {
    display: grid;
    align-content: start;
    gap: 16px;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-soft);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.bo-scheduled-report-card:hover {
    transform: translateY(-2px);
    border-color: rgba(227, 6, 19, 0.32);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

.bo-scheduled-report-card-head,
.bo-scheduled-report-card-foot,
.bo-scheduled-report-add,
.bo-scheduled-report-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.bo-scheduled-report-card-head > div {
    min-width: 0;
}

.bo-scheduled-report-card h3 {
    margin: 9px 0 0;
    font-size: 17px;
    line-height: 1.3;
}

.bo-scheduled-report-meta {
    display: grid;
    gap: 10px;
    margin: 0;
}

.bo-scheduled-report-meta div {
    display: grid;
    grid-template-columns: minmax(84px, 0.36fr) minmax(0, 1fr);
    gap: 10px;
}

.bo-scheduled-report-meta dt,
.bo-scheduled-report-meta dd {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
}

.bo-scheduled-report-meta dt {
    color: var(--bo-muted);
    font-weight: 800;
}

.bo-scheduled-report-meta dd {
    color: var(--bo-text);
    font-weight: 750;
    overflow-wrap: anywhere;
}

.bo-scheduled-report-card-foot {
    align-items: flex-end;
    padding-top: 12px;
    border-top: 1px solid var(--bo-line);
    color: var(--bo-muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
}

.bo-scheduled-report-card-foot span:last-child {
    text-align: right;
}

.bo-scheduled-report-empty {
    grid-column: 1 / -1;
    min-height: 130px;
}

.bo-scheduled-report-form {
    margin-top: 18px;
}

.bo-scheduled-report-recipients {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.bo-scheduled-report-recipients .bo-check,
.bo-scheduled-report-switches .bo-check {
    align-items: flex-start;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-soft);
}

.bo-scheduled-report-recipients strong,
.bo-scheduled-report-recipients small,
.bo-scheduled-report-switches strong,
.bo-scheduled-report-switches small,
.bo-scheduled-report-section strong,
.bo-scheduled-report-section small {
    display: block;
}

.bo-scheduled-report-recipients small,
.bo-scheduled-report-switches small,
.bo-scheduled-report-section small {
    margin-top: 3px;
    color: var(--bo-muted);
    font-size: 11px;
    line-height: 1.4;
}

.bo-scheduled-report-sections {
    margin-top: 16px;
}

.bo-scheduled-report-add {
    justify-content: flex-start;
}

.bo-scheduled-report-add select {
    flex: 1;
}

.bo-scheduled-report-section-list {
    display: grid;
    gap: 8px;
}

.bo-scheduled-report-section {
    padding: 12px 14px;
    border: 1px solid var(--bo-line);
    border-left: 3px solid var(--bo-red);
    border-radius: 6px;
    background: var(--bo-soft);
}

.bo-scheduled-report-section > div:first-of-type {
    min-width: 0;
}

.bo-scheduled-report-switches {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
    gap: 10px;
    margin-top: 16px;
}

.bo-scheduled-report-personal {
    border-color: rgba(227, 6, 19, 0.3) !important;
}

.bo-scheduled-report-delete {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--bo-line);
}

.bo-scheduled-report-history {
    margin-top: 22px;
    border-top: 1px solid var(--bo-line);
    padding-top: 18px;
}

.bo-scheduled-report-error {
    display: block;
    max-width: 280px;
    margin-top: 5px;
    color: var(--bo-red);
    font-size: 11px;
    line-height: 1.4;
}

:root[data-theme="dark"] .bo-scheduled-report-card,
:root[data-theme="dark"] .bo-scheduled-report-recipients .bo-check,
:root[data-theme="dark"] .bo-scheduled-report-switches .bo-check,
:root[data-theme="dark"] .bo-scheduled-report-section {
    background: #0f172a;
}

:root[data-theme="dark"] .bo-scheduled-report-card:hover {
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.bo-panel:has(.bo-table-footer) .bo-table-wrap {
    min-height: 420px;
}

.bo-panel:has(.bo-table-footer) .bo-list-stack {
    min-height: 420px;
}

.bo-row-actions {
    display: inline-flex;
    justify-content: flex-end;
    gap: 6px;
}

.bo-row-actions form {
    margin: 0;
}

.bo-toast,
.bo-alert {
    margin: 18px 34px 0;
    padding: 14px 16px;
    border-radius: 8px;
    background: #ecfdf3;
    color: var(--bo-green);
    font-weight: 780;
}

.bo-alert {
    background: #fff4e5;
    color: var(--bo-amber);
}

.bo-alert-danger {
    background: #fff1f2;
    color: var(--bo-red);
}

.bo-alert ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.bo-section-title {
    margin: 18px 0 8px;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--bo-muted);
}

.bo-settings-grid {
    align-items: stretch;
}

.bo-settings-primary-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.bo-settings-primary-column > .bo-panel:last-child {
    flex: 1;
}

.bo-technical-inspection-panel,
.bo-technical-inspection-panel form {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bo-technical-inspection-panel form {
    flex: 1;
}

.bo-technical-inspection-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.bo-technical-inspection-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px 14px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-soft);
    color: var(--bo-text);
}

.bo-technical-inspection-card > strong,
.bo-technical-inspection-card > .bo-required-label-text,
.bo-technical-inspection-card > .bo-required-label-text > strong {
    min-width: 0;
    font-size: 13px;
    line-height: 1.35;
}

.bo-technical-inspection-card > small {
    grid-column: 1 / -1;
    color: var(--bo-text);
    font-size: 12px;
    font-weight: 800;
}

.bo-technical-inspection-input {
    display: inline-grid;
    grid-template-columns: 68px auto;
    align-items: center;
    gap: 8px;
    color: var(--bo-text);
    font-size: 12px;
    font-weight: 850;
}

.bo-technical-inspection-input input {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-white);
    color: var(--bo-text);
    padding: 9px 10px;
}

.bo-technical-inspection-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.bo-technical-inspection-actions form {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
    margin: 0;
}

@media (max-width: 1100px) {
    .bo-technical-inspection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .bo-technical-inspection-grid {
        grid-template-columns: 1fr;
    }
}

.bo-service-settings,
.bo-settings-list {
    display: grid;
    gap: 10px;
}

.bo-settings-confirm-list {
    display: grid;
    gap: 10px;
    margin: 16px 0 4px;
}

.bo-settings-confirm-row {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-soft);
}

.bo-settings-confirm-row strong {
    font-size: 13px;
}

.bo-settings-confirm-row span {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--bo-muted);
    font-size: 13px;
    font-weight: 850;
}

.bo-settings-confirm-row b {
    color: var(--bo-text);
}

.bo-settings-confirm-row i {
    color: var(--bo-red);
    font-style: normal;
    font-weight: 950;
}

.bo-service-setting,
.bo-setting-row {
    display: grid;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-soft);
}

.bo-service-setting {
    grid-template-columns: minmax(0, 1fr) minmax(96px, 110px) auto auto;
}

.bo-service-setting label,
.bo-setting-row label {
    color: var(--bo-text);
    font-size: 12px;
    font-weight: 850;
}

.bo-service-setting input,
.bo-setting-row input,
.bo-setting-row select {
    width: 100%;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-white);
    padding: 9px 10px;
}

.bo-setting-row {
    grid-template-columns: minmax(180px, 0.8fr) minmax(240px, 1.2fr) auto;
}

.bo-setting-row small {
    display: block;
    margin-top: 3px;
    color: var(--bo-muted);
    font-size: 12px;
}

.bo-role-permissions {
    display: grid;
    gap: 18px;
}

.bo-role-permission-card {
    display: grid;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-soft);
}

.bo-role-permission-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    list-style: none;
}

.bo-role-permission-head::-webkit-details-marker {
    display: none;
}

.bo-role-permission-body {
    display: grid;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--bo-line);
}

.bo-role-toggle {
    flex: 0 0 auto;
    border: 1px solid var(--bo-line);
    border-radius: 999px;
    padding: 7px 11px;
    background: var(--bo-white);
    color: var(--bo-text);
    font-size: 12px;
    font-weight: 900;
}

.bo-role-permission-card[open] .bo-role-toggle {
    color: var(--bo-red);
    font-size: 0;
}

.bo-role-permission-card[open] .bo-role-toggle::before {
    content: "Zbaliť";
    font-size: 12px;
}

.bo-role-permission-head h3 {
    margin: 0;
    font-size: 18px;
}

.bo-role-permission-head p {
    margin: 5px 0 0;
    color: var(--bo-muted);
    font-size: 13px;
    font-weight: 650;
}

.bo-role-settings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 12px;
}

.bo-role-settings-grid label,
.bo-permission-group label {
    color: var(--bo-text);
    font-size: 12px;
    font-weight: 850;
}

.bo-role-settings-grid input,
.bo-role-settings-grid select {
    width: 100%;
}

.bo-role-settings-grid .bo-check {
    align-self: end;
    min-height: 44px;
}

.bo-role-settings-grid label.is-locked,
.bo-check.is-locked {
    cursor: not-allowed;
    opacity: 0.62;
}

.bo-check.is-locked input {
    cursor: not-allowed;
}

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

.bo-permission-group {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-white);
}

.bo-permission-group.is-locked {
    border-style: dashed;
    background: #f3f6fa;
}

.bo-permission-group h4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    font-size: 14px;
}

.bo-permission-group > div {
    display: grid;
    gap: 7px;
}

.bo-locked-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 7px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.bo-locked-note {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
    font-weight: 750;
}

.bo-day-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bo-day-checks .bo-check {
    padding: 8px 10px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-white);
}

.bo-help-search {
    width: min(360px, 100%);
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    padding: 11px 12px;
}

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

.bo-help-card {
    padding: 16px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-soft);
}

.bo-help-card span {
    color: var(--bo-red);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.bo-help-card h3 {
    margin: 6px 0 8px;
}

.bo-help-card p,
.bo-help-card li {
    color: var(--bo-muted);
    font-size: 14px;
}

.bo-help-card ul {
    margin: 10px 0 0;
    padding-left: 18px;
}

.bo-holiday-year {
    border-top: 1px solid var(--bo-line);
    padding: 12px 0;
}

.bo-holiday-year:first-of-type {
    border-top: 0;
}

.bo-holiday-year summary {
    cursor: pointer;
    font-size: 16px;
    font-weight: 900;
}

.bo-holiday-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.bo-login-body {
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: center;
    justify-items: center;
    gap: 18px;
    min-height: 100vh;
    padding: 24px;
    background-color: var(--bo-navy-2);
    background-image:
        linear-gradient(90deg, rgba(2, 11, 24, 0.82) 0%, rgba(2, 11, 24, 0.62) 46%, rgba(2, 11, 24, 0.18) 100%),
        url("../images/backoffice-login.webp");
    background-position: center, center right;
    background-repeat: no-repeat;
    background-size: cover, cover;
}

.bo-login-card {
    width: min(440px, 100%);
    padding: 34px;
    border-radius: 8px;
    background: var(--bo-white);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
}

.bo-login-logo img {
    width: 192px;
    padding: 0;
    background: transparent;
}

.bo-login-logo.bo-login-logo-surface img {
    padding: 6px 8px;
    border-radius: 6px;
    background: #ffffff;
}

.bo-login-card h1 {
    margin: 22px 0 8px;
}

.bo-login-card p {
    margin: 0 0 22px;
    color: var(--bo-muted);
}

.bo-login-card .bo-toast,
.bo-login-card .bo-alert {
    margin: 18px 0;
}

.bo-login-card-wide {
    width: min(640px, 100%);
}

.bo-privacy-gate-body {
    align-items: start;
    padding-top: clamp(18px, 4vw, 44px);
}

.bo-privacy-gate {
    width: min(1080px, 100%);
    padding: clamp(22px, 4vw, 38px);
}

.bo-privacy-gate-heading {
    margin-top: 22px;
}

.bo-privacy-gate-heading > span {
    display: inline-flex;
    padding: 6px 9px;
    border: 1px solid rgba(227, 6, 19, 0.3);
    border-radius: 6px;
    background: #fff5f5;
    color: var(--bo-red);
    font-size: 12px;
    font-weight: 900;
}

.bo-privacy-gate-heading h1 {
    margin-top: 12px;
}

.bo-privacy-quick-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-top: 20px;
    padding: 16px;
    border: 1px solid rgba(227, 6, 19, 0.26);
    border-radius: 8px;
    background: #fff7f7;
}

.bo-privacy-quick-actions strong,
.bo-privacy-quick-actions p {
    color: var(--bo-text);
}

.bo-privacy-quick-actions p {
    margin: 5px 0 0;
    font-size: 13px;
}

.bo-privacy-shortcut {
    white-space: nowrap;
}

.bo-privacy-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 16px 0 10px;
}

.bo-privacy-toc strong,
.bo-privacy-toc a {
    font-size: 12px;
    font-weight: 850;
}

.bo-privacy-toc a {
    padding: 7px 9px;
    border: 1px solid var(--bo-line);
    border-radius: 6px;
    background: var(--bo-soft);
    color: var(--bo-text);
}

.bo-privacy-toc a:hover {
    border-color: rgba(227, 6, 19, 0.4);
    color: var(--bo-red);
}

.bo-privacy-document {
    overflow: auto;
    max-height: min(57vh, 680px);
    padding: clamp(18px, 3vw, 30px);
    scroll-behavior: smooth;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    box-shadow: inset 0 0 0 1px rgba(7, 24, 44, 0.02);
}

.bo-privacy-document:focus-visible {
    outline: 3px solid rgba(227, 6, 19, 0.22);
    outline-offset: 2px;
}

.bo-privacy-text-section {
    position: relative;
    padding: 4px 0 24px 48px;
    border-bottom: 1px solid #e5e7eb;
    scroll-margin-top: 16px;
}

.bo-privacy-text-section + .bo-privacy-text-section {
    padding-top: 24px;
}

.bo-privacy-text-section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.bo-privacy-text-section > span {
    position: absolute;
    top: 2px;
    left: 0;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    background: #e30613;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.bo-privacy-text-section + .bo-privacy-text-section > span {
    top: 22px;
}

.bo-privacy-text-section h2 {
    margin: 0 0 10px;
    color: #07182c;
    font-size: 19px;
}

.bo-privacy-text-section p,
.bo-privacy-text-section li {
    color: #26354a;
    font-size: 14px;
    line-height: 1.65;
}

.bo-privacy-text-section p {
    margin: 8px 0;
}

.bo-privacy-text-section ul {
    margin: 10px 0;
    padding-left: 20px;
}

.bo-privacy-text-section a {
    color: #b60613;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bo-privacy-full-link {
    display: inline-flex;
    padding: 10px 12px;
    border: 1px solid rgba(227, 6, 19, 0.3);
    border-radius: 6px;
    background: #fff5f5;
}

.bo-privacy-gate-actions {
    position: sticky;
    z-index: 5;
    bottom: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: stretch;
    margin-top: 18px;
    padding-top: 14px;
    background: var(--bo-white);
    box-shadow: 0 -12px 24px var(--bo-white);
}

.bo-privacy-gate-actions form,
.bo-privacy-gate-actions .bo-button {
    height: 100%;
}

.bo-privacy-gate-actions .bo-button {
    min-height: 48px;
}

.bo-privacy-gate-actions form:first-child .bo-button {
    width: 100%;
}

:root[data-theme="dark"] .bo-privacy-gate-heading > span {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(127, 29, 29, 0.22);
    color: #fca5a5;
}

:root[data-theme="dark"] .bo-privacy-quick-actions {
    border-color: rgba(248, 113, 113, 0.35);
    background: rgba(127, 29, 29, 0.18);
}

:root[data-theme="dark"] .bo-privacy-quick-actions strong,
:root[data-theme="dark"] .bo-privacy-quick-actions p,
:root[data-theme="dark"] .bo-privacy-toc strong {
    color: #f8fafc;
}

:root[data-theme="dark"] .bo-privacy-toc a {
    border-color: #334155;
    background: #111c31;
    color: #e5e7eb;
}

:root[data-theme="dark"] .bo-privacy-document {
    border-color: #34445c;
    background: #0b1220;
    color: #f8fafc;
}

:root[data-theme="dark"] .bo-privacy-text-section {
    border-color: #273449;
}

:root[data-theme="dark"] .bo-privacy-text-section h2 {
    color: #f8fafc;
}

:root[data-theme="dark"] .bo-privacy-text-section p,
:root[data-theme="dark"] .bo-privacy-text-section li {
    color: #dbe4f0;
}

:root[data-theme="dark"] .bo-privacy-text-section a {
    color: #fca5a5;
}

:root[data-theme="dark"] .bo-privacy-full-link {
    border-color: rgba(248, 113, 113, 0.35);
    background: rgba(127, 29, 29, 0.2);
}

@media (max-width: 720px) {
    .bo-privacy-gate-body {
        padding: 10px;
    }

    .bo-privacy-gate {
        padding: 18px 14px;
    }

    .bo-privacy-quick-actions {
        grid-template-columns: 1fr;
    }

    .bo-privacy-shortcut {
        width: 100%;
        white-space: normal;
    }

    .bo-privacy-document {
        max-height: 54vh;
        padding: 16px;
    }

    .bo-privacy-text-section {
        padding-left: 42px;
    }

    .bo-privacy-gate-actions {
        grid-template-columns: 1fr;
    }

    .bo-privacy-gate-actions .bo-button {
        width: 100%;
    }
}

.bo-login-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.bo-login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 14px;
    color: var(--bo-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.bo-login-divider::before,
.bo-login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--bo-line);
}

.bo-login-secondary-actions {
    display: grid;
    gap: 10px;
}

.bo-login-secondary-actions .bo-button {
    width: 100%;
    min-height: 44px;
}

.bo-login-action {
    display: block;
    padding: 13px 14px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--bo-text);
}

.bo-login-action:hover {
    border-color: rgba(227, 6, 19, 0.35);
    background: #fff7f7;
}

.bo-login-action span,
.bo-login-action small {
    display: block;
}

.bo-login-action span {
    font-weight: 900;
}

.bo-login-action small {
    margin-top: 4px;
    color: var(--bo-muted);
    font-size: 12px;
    line-height: 1.35;
}

.bo-login-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 850;
}

.bo-login-links a {
    color: var(--bo-red);
}

.bo-auth-footer,
.bo-backoffice-footer {
    color: #ffffff;
    font-size: 12px;
    font-weight: 750;
    text-align: center;
}

.bo-auth-footer a,
.bo-backoffice-footer a {
    color: #ffffff;
    font-weight: 900;
}

.bo-backoffice-footer {
    margin: 28px 10px 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.bo-auth-footer a,
.bo-auth-footer a:hover,
.bo-auth-footer a:focus-visible,
.bo-backoffice-footer a,
.bo-backoffice-footer a:hover,
.bo-backoffice-footer a:focus-visible {
    color: #ffffff;
}

:root[data-theme="dark"] .bo-sidebar {
    background: #020817;
    border-right: 1px solid #1f2937;
    color: #ffffff;
}

:root[data-theme="dark"] .bo-mobile-menu-button {
    border-color: #273449;
    background: #111827;
    color: #f8fafc;
}

:root[data-theme="dark"] .bo-auth-footer a,
:root[data-theme="dark"] .bo-nav .is-active,
:root[data-theme="dark"] .bo-nav a:hover,
:root[data-theme="dark"] .bo-nav-group summary:hover,
:root[data-theme="dark"] .bo-nav-group summary.is-active,
:root[data-theme="dark"] .bo-button-red,
:root[data-theme="dark"] .bo-button-dark,
:root[data-theme="dark"] .bo-button-save,
:root[data-theme="dark"] .bo-button-message,
:root[data-theme="dark"] .bo-theme-control button.is-active {
    color: #ffffff;
}

:root[data-theme="dark"] .bo-button:not(.bo-button-red):not(.bo-button-dark):not(.bo-button-save):not(.bo-button-message),
:root[data-theme="dark"] .bo-icon-button,
:root[data-theme="dark"] .bo-table-icon-link,
:root[data-theme="dark"] .bo-theme-control button {
    border-color: rgba(227, 6, 19, 0.58);
}

:root[data-theme="dark"] .bo-table-icon-success {
    border-color: rgba(34, 197, 94, 0.55);
    color: #22c55e;
}

:root[data-theme="dark"] .bo-table-icon-success:hover {
    border-color: #22c55e;
    background: #166534;
    color: #ffffff;
}

:root[data-theme="dark"] .bo-table-icon-warning {
    border-color: rgba(245, 158, 11, 0.65);
    color: #fbbf24;
}

:root[data-theme="dark"] .bo-table-icon-warning:hover {
    border-color: #fbbf24;
    background: #f59e0b;
    color: #111827;
}

:root[data-theme="dark"] .bo-table-icon-contrast {
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
}

:root[data-theme="dark"] .bo-table-icon-contrast:hover {
    border-color: #ffffff;
    background: #ffffff;
    color: #111827;
}

:root[data-theme="dark"] .bo-button-message {
    border-color: rgba(227, 6, 19, 0.78);
    background: #111827;
    color: #ffffff;
}

:root[data-theme="dark"] .bo-button-message:hover {
    border-color: var(--bo-red);
    background: #1f2937;
    color: #ffffff;
}

:root[data-theme="dark"] .bo-topbar,
:root[data-theme="dark"] .bo-panel,
:root[data-theme="dark"] .bo-stat,
:root[data-theme="dark"] .bo-dialog,
:root[data-theme="dark"] .bo-login-card,
:root[data-theme="dark"] .bo-search-results,
:root[data-theme="dark"] .bo-notification-panel,
:root[data-theme="dark"] .bo-user-panel {
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] .bo-global-search input,
:root[data-theme="dark"] .bo-filter input,
:root[data-theme="dark"] .bo-filter select,
:root[data-theme="dark"] .bo-inline-form input,
:root[data-theme="dark"] .bo-inline-form select,
:root[data-theme="dark"] .bo-list-form input,
:root[data-theme="dark"] .bo-list-form select,
:root[data-theme="dark"] .bo-message-log-filter select,
:root[data-theme="dark"] .bo-form input,
:root[data-theme="dark"] .bo-form select,
:root[data-theme="dark"] .bo-form textarea,
:root[data-theme="dark"] .bo-table input[type="text"],
:root[data-theme="dark"] .bo-table input[type="search"],
:root[data-theme="dark"] .bo-table input[type="date"],
:root[data-theme="dark"] .bo-table select,
:root[data-theme="dark"] .bo-automation-table select,
:root[data-theme="dark"] .bo-automation-table input[type="text"],
:root[data-theme="dark"] .bo-automation-table input[type="number"] {
    background: #0f172a;
}

:root[data-theme="dark"] .bo-global-search input:focus,
:root[data-theme="dark"] .bo-form input:focus,
:root[data-theme="dark"] .bo-form select:focus,
:root[data-theme="dark"] .bo-form textarea:focus,
:root[data-theme="dark"] .bo-automation-table select:focus,
:root[data-theme="dark"] .bo-automation-table input[type="text"]:focus,
:root[data-theme="dark"] .bo-automation-table input[type="number"]:focus {
    background: #111c31;
}

:root[data-theme="dark"] .bo-automation-info > div {
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.14), rgba(37, 99, 235, 0.08));
    border-color: rgba(248, 113, 113, 0.28);
}

:root[data-theme="dark"] .bo-search-result:hover,
:root[data-theme="dark"] .bo-notification-item:hover,
:root[data-theme="dark"] .bo-notification-all:hover,
:root[data-theme="dark"] .bo-user-panel-link:hover,
:root[data-theme="dark"] .bo-user-toggle:hover,
:root[data-theme="dark"] .bo-login-action:hover,
:root[data-theme="dark"] .bo-table tbody tr:hover {
    background: #182235;
}

:root[data-theme="dark"] .bo-notification-item,
:root[data-theme="dark"] .bo-notification-item strong {
    color: #f8fafc;
}

:root[data-theme="dark"] .bo-notification-item small,
:root[data-theme="dark"] .bo-notification-head small,
:root[data-theme="dark"] .bo-notification-empty {
    color: #cbd5e1;
}

:root[data-theme="dark"] .bo-table-wrap {
    border: 1px solid #273449;
    border-radius: 8px;
    background: #0f172a;
}

:root[data-theme="dark"] .bo-table {
    color: #e7eef8;
}

:root[data-theme="dark"] .bo-table th {
    background: #111c31;
    color: #dbeafe;
}

:root[data-theme="dark"] .bo-table th,
:root[data-theme="dark"] .bo-table td {
    border-bottom-color: #273449;
}

:root[data-theme="dark"] .bo-table td {
    background: #0f172a;
    color: #e7eef8;
}

:root[data-theme="dark"] .bo-table tbody tr:nth-child(even) td {
    background: #111827;
}

:root[data-theme="dark"] .bo-table tbody tr:hover td {
    background: #182235;
}

:root[data-theme="dark"] .bo-table tbody tr:hover td:first-child {
    box-shadow: inset 3px 0 0 var(--bo-red);
}

:root[data-theme="dark"] .bo-table td small,
:root[data-theme="dark"] .bo-empty,
:root[data-theme="dark"] .bo-muted {
    color: #cbd5e1;
}

:root[data-theme="dark"] .bo-sort-link {
    color: #e7eef8;
}

:root[data-theme="dark"] .bo-sort-link span,
:root[data-theme="dark"] .bo-client-sort::after {
    color: #f87171;
}

:root[data-theme="dark"] .bo-log-per-page-form input[type="search"],
:root[data-theme="dark"] .bo-table-footer select,
:root[data-theme="dark"] .bo-table input[type="text"],
:root[data-theme="dark"] .bo-table input[type="search"],
:root[data-theme="dark"] .bo-table input[type="date"],
:root[data-theme="dark"] .bo-table select {
    border-color: #334155;
    background: #111c31;
    color: #f8fafc;
}

:root[data-theme="dark"] .bo-admin-dashboard .bo-panel:hover,
:root[data-theme="dark"] .bo-supervisor-dashboard .bo-panel:hover,
:root[data-theme="dark"] .bo-technician-dashboard .bo-panel:hover,
:root[data-theme="dark"] .bo-dashboard-hero:hover,
:root[data-theme="dark"] .bo-dashboard-kpi:hover {
    border-color: rgba(248, 113, 113, 0.42);
    box-shadow: 0 26px 72px rgba(0, 0, 0, 0.46);
}

:root[data-theme="dark"] .bo-dashboard-live-row,
:root[data-theme="dark"] .bo-dashboard-bar-row:hover,
:root[data-theme="dark"] .bo-column-chart div:hover,
:root[data-theme="dark"] .bo-dashboard-service-chart div:hover,
:root[data-theme="dark"] .bo-dashboard-mini-grid span:hover,
:root[data-theme="dark"] .bo-dashboard-metrics span:hover {
    background: #182235;
}

:root[data-theme="dark"] .bo-report-hero,
:root[data-theme="dark"] .bo-report-kpi,
:root[data-theme="dark"] .bo-report-selected-export,
:root[data-theme="dark"] .bo-report-export-group,
:root[data-theme="dark"] .bo-report-period-form {
    border-color: #273449;
    background: linear-gradient(135deg, #111827 0%, #172033 100%);
}

:root[data-theme="dark"] .bo-report-hero h2,
:root[data-theme="dark"] .bo-report-kpi strong,
:root[data-theme="dark"] .bo-report-selected-export strong,
:root[data-theme="dark"] .bo-report-column-chart strong,
:root[data-theme="dark"] .bo-report-meter-row strong,
:root[data-theme="dark"] .bo-report-attention strong {
    color: #f8fafc;
}

:root[data-theme="dark"] .bo-report-selected-export p {
    color: #f8fafc;
}

:root[data-theme="dark"] .bo-report-period-form input {
    border-color: #334155;
    background: #0b1220;
    color: #f8fafc;
}

:root[data-theme="dark"] .bo-report-kpi-green,
:root[data-theme="dark"] .bo-report-kpi-blue,
:root[data-theme="dark"] .bo-report-kpi-warning,
:root[data-theme="dark"] .bo-report-kpi-danger,
:root[data-theme="dark"] .bo-report-attention,
:root[data-theme="dark"] .bo-report-attention-warning,
:root[data-theme="dark"] .bo-report-attention-danger {
    border-color: #273449;
    background: #111827;
}

:root[data-theme="dark"] .bo-report-meter-row i {
    background: #273449;
}

:root[data-theme="dark"] .bo-customer-next-card,
:root[data-theme="dark"] .bo-customer-action-card,
:root[data-theme="dark"] .bo-customer-metric-strip span {
    border-color: #273449;
    background: #0f172a;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] .bo-customer-next-card {
    background:
        linear-gradient(135deg, rgba(248, 113, 113, 0.1), rgba(15, 23, 42, 0) 46%),
        #0f172a;
}

:root[data-theme="dark"] .bo-customer-next-card:hover,
:root[data-theme="dark"] .bo-customer-action-card:hover,
:root[data-theme="dark"] .bo-customer-metric-strip span:hover {
    border-color: rgba(248, 113, 113, 0.42);
    box-shadow: 0 26px 72px rgba(0, 0, 0, 0.46);
}

:root[data-theme="dark"] .bo-customer-next-copy h2,
:root[data-theme="dark"] .bo-customer-metric-strip strong,
:root[data-theme="dark"] .bo-customer-action-card a {
    color: #f8fafc;
}

:root[data-theme="dark"] .bo-customer-next-copy p,
:root[data-theme="dark"] .bo-customer-metric-strip small {
    color: #cbd5e1;
}

:root[data-theme="dark"] .bo-customer-action-card a {
    border-color: #273449;
    background: #111827;
}

:root[data-theme="dark"] .bo-customer-action-card a:hover {
    border-color: rgba(248, 113, 113, 0.42);
    background: #182235;
    color: #fca5a5;
}

:root[data-theme="dark"] .bo-customer-reservation .reservation-wizard-card,
:root[data-theme="dark"] .bo-customer-reservation .reservation-calendar,
:root[data-theme="dark"] .bo-customer-reservation .reservation-summary-card,
:root[data-theme="dark"] .bo-customer-reservation .reservation-summary-box,
:root[data-theme="dark"] .bo-customer-reservation .vehicle-choice,
:root[data-theme="dark"] .bo-customer-reservation .inspection-choice,
:root[data-theme="dark"] .bo-customer-reservation .personal-form-grid > label:not(.plate-label):not(.reservation-privacy-inline),
:root[data-theme="dark"] .bo-customer-reservation .reservation-privacy-inline,
:root[data-theme="dark"] .bo-owned-vehicle-option,
:root[data-theme="dark"] .bo-owned-vehicle-picker select {
    border-color: #1f2937;
    background: linear-gradient(135deg, #101b2e, #0f172a);
    color: #f8fafc;
}

:root[data-theme="dark"] .bo-owned-vehicle-picker > span {
    border-color: rgba(239, 0, 21, 0.28);
    background: rgba(239, 0, 21, 0.13);
    color: #ffffff;
}

:root[data-theme="dark"] .bo-owned-vehicle-icon {
    border-color: #273449;
    background: #17243a;
    color: #bfdbfe;
}

:root[data-theme="dark"] .bo-owned-vehicle-option small {
    color: #cbd5e1;
}

:root[data-theme="dark"] .bo-owned-vehicle-option:hover {
    border-color: rgba(239, 0, 21, 0.45);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .bo-owned-vehicle-option.is-selected {
    border-color: #ef0015;
    background: linear-gradient(135deg, rgba(239, 0, 21, 0.19), #101b2e);
    box-shadow: 0 14px 32px rgba(239, 0, 21, 0.16);
}

:root[data-theme="dark"] .bo-owned-vehicle-check {
    border-color: #273449;
    background: #111c31;
}

:root[data-theme="dark"] .bo-owned-vehicle-option.is-selected .bo-owned-vehicle-icon,
:root[data-theme="dark"] .bo-owned-vehicle-option.is-selected .bo-owned-vehicle-check {
    border-color: #ef0015;
    background: #ef0015;
    color: #ffffff;
}

:root[data-theme="dark"] .bo-customer-reservation .reservation-summary-card,
:root[data-theme="dark"] .bo-customer-reservation .reservation-summary-box,
:root[data-theme="dark"] .bo-customer-reservation .personal-form-grid {
    border: 1px solid #273449;
    background: #111c31;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

:root[data-theme="dark"] .bo-customer-reservation .summary-title {
    border: 1px solid rgba(96, 165, 250, 0.24);
    background: linear-gradient(135deg, #0f4b9b, #0b3474);
    color: #ffffff;
}

:root[data-theme="dark"] .bo-customer-reservation .reservation-summary-card p,
:root[data-theme="dark"] .bo-customer-reservation .reservation-summary-box p,
:root[data-theme="dark"] .bo-customer-reservation .reservation-summary-box strong,
:root[data-theme="dark"] .bo-customer-reservation .reservation-privacy-note {
    color: #e5e7eb;
}

:root[data-theme="dark"] .bo-customer-reservation .reservation-summary-card p strong,
:root[data-theme="dark"] .bo-customer-reservation .reservation-summary-box p strong {
    color: #f8fafc;
}

:root[data-theme="dark"] .bo-customer-reservation .reservation-summary-card .summary-button {
    border-color: #273449;
    background: #07182c;
    color: #ffffff;
}

:root[data-theme="dark"] .bo-customer-reservation .reservation-summary-card .summary-button:hover {
    border-color: #e30613;
    background: #e30613;
    color: #ffffff;
}

:root[data-theme="dark"] .bo-customer-reservation .reservation-summary-card .summary-button-outline {
    border-color: #334155;
    background: #f8fafc;
    color: #07182c;
}

:root[data-theme="dark"] .bo-customer-reservation .personal-form-grid > label:not(.plate-label):not(.reservation-privacy-inline) {
    border: 0;
    background: transparent;
    color: #f8fafc;
}

:root[data-theme="dark"] .bo-customer-reservation .personal-form-grid > label:not(.plate-label):not(.reservation-privacy-inline) input,
:root[data-theme="dark"] .bo-customer-reservation .plate-inputs input,
:root[data-theme="dark"] .bo-customer-reservation .reservation-identifier-field > input[type="text"] {
    border-color: #334155;
    background: #0b1220;
    color: #f8fafc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

:root[data-theme="dark"] .bo-customer-reservation .personal-form-grid > label:not(.plate-label):not(.reservation-privacy-inline) input:focus,
:root[data-theme="dark"] .bo-customer-reservation .plate-inputs input:focus,
:root[data-theme="dark"] .bo-customer-reservation .reservation-identifier-field > input[type="text"]:focus {
    border-color: rgba(248, 113, 113, 0.78);
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.18);
}

:root[data-theme="dark"] .bo-customer-reservation .plate-inputs {
    border-color: #475569;
    background: #172033;
}

:root[data-theme="dark"] .bo-customer-reservation .plate-eu {
    background: #0f4b9b;
    color: #facc15;
}

:root[data-theme="dark"] .bo-customer-reservation .plate-inputs b {
    background: #e5e7eb;
}

:root[data-theme="dark"] .bo-customer-reservation .reservation-privacy-inline {
    border-color: rgba(248, 113, 113, 0.38);
    background: #0b1220;
    color: #f8fafc;
}

:root[data-theme="dark"] .bo-customer-reservation .reservation-privacy-inline span {
    color: #e5e7eb;
}

:root[data-theme="dark"] .bo-customer-reservation .reservation-privacy-inline a {
    color: #f87171;
}

:root[data-theme="dark"] .bo-customer-reservation .reservation-privacy-inline a:hover {
    color: #fca5a5;
}

:root[data-theme="dark"] .bo-customer-reservation .reservation-checkbox-card {
    background: #111827;
    border-color: #334155;
    color: #ffffff;
}

:root[data-theme="dark"] .bo-customer-reservation .reservation-checkbox-card strong,
:root[data-theme="dark"] .bo-customer-reservation .reservation-checkbox-card small {
    color: #ffffff;
}

:root[data-theme="dark"] .bo-customer-reservation .reservation-checkbox-card:hover {
    border-color: #ef3340;
    background: #172033;
}

:root[data-theme="dark"] .bo-owned-vehicle-picker,
:root[data-theme="dark"] .bo-customer-reservation .reservation-panel-heading h2,
:root[data-theme="dark"] .bo-customer-reservation .reservation-panel-heading p,
:root[data-theme="dark"] .bo-customer-reservation .reservation-steps strong,
:root[data-theme="dark"] .bo-customer-reservation .vehicle-choice strong,
:root[data-theme="dark"] .bo-customer-reservation .inspection-choice strong,
:root[data-theme="dark"] .bo-customer-reservation .inspection-choice small,
:root[data-theme="dark"] .bo-customer-reservation .inspection-choice.is-selected small,
:root[data-theme="dark"] .bo-customer-reservation .summary-title strong,
:root[data-theme="dark"] .bo-customer-reservation .personal-form-grid label,
:root[data-theme="dark"] .bo-customer-reservation .date-kicker,
:root[data-theme="dark"] .bo-customer-reservation .selected-date-title,
:root[data-theme="dark"] .bo-customer-reservation .time-technician-title,
:root[data-theme="dark"] .bo-customer-reservation .calendar-head strong,
:root[data-theme="dark"] .bo-customer-reservation .calendar-weekdays span {
    color: #f8fafc;
}

:root[data-theme="dark"] .bo-customer-reservation .reservation-steps,
:root[data-theme="dark"] .bo-customer-reservation .reservation-date-grid {
    background: #111c31;
}

:root[data-theme="dark"] .bo-customer-reservation .time-grid button {
    border: 1px solid #273449;
    background: #182235;
    color: #f8fafc;
}

:root[data-theme="dark"] .bo-customer-reservation .time-grid button:hover,
:root[data-theme="dark"] .bo-customer-reservation .time-grid button.is-selected {
    border-color: rgba(248, 113, 113, 0.72);
    background: #e30613;
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(227, 6, 19, 0.28);
}

:root[data-theme="dark"] .bo-customer-reservation .time-grid button.is-soft-blocked {
    border-color: rgba(245, 158, 11, 0.7);
    background: #3b2d10;
    color: #fbbf24;
}

:root[data-theme="dark"] .bo-customer-reservation .time-grid button.is-soft-blocked:hover,
:root[data-theme="dark"] .bo-customer-reservation .time-grid button.is-soft-blocked.is-selected {
    border-color: #f59e0b;
    background: #f59e0b;
    color: #111827;
    box-shadow: 0 14px 34px rgba(245, 158, 11, 0.22);
}

:root[data-theme="dark"] .bo-customer-reservation .time-technician-empty {
    border-color: #334155;
    background: #0b1220;
    color: #e5e7eb;
}

:root[data-theme="dark"] .bo-customer-reservation input,
:root[data-theme="dark"] .bo-customer-reservation select {
    background: #111c31;
    color: #f8fafc;
}

:root[data-theme="dark"] .bo-badge {
    background: rgba(227, 6, 19, 0.16);
}

:root[data-theme="dark"] .bo-badge.bo-badge-success {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(52, 211, 153, 0.36);
    color: #6ee7b7 !important;
}

:root[data-theme="dark"] .bo-badge.bo-badge-warning {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fcd34d;
}

:root[data-theme="dark"] .bo-badge.bo-badge-info {
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(96, 165, 250, 0.4);
    color: #93c5fd;
}

:root[data-theme="dark"] .bo-dashboard-kpi-blue strong {
    color: #93c5fd;
}

:root[data-theme="dark"] .bo-technician-next {
    border-color: rgba(248, 113, 113, 0.34);
    background: #111c31;
}

:root[data-theme="dark"] .bo-technician-capacity-row > div {
    background: #111c31;
}

:root[data-theme="dark"] .bo-badge.bo-badge-danger {
    background: rgba(248, 113, 113, 0.14);
    border-color: rgba(248, 113, 113, 0.38);
    color: #fca5a5;
}

:root[data-theme="dark"] .bo-badge.bo-changelog-badge-fix {
    background: rgba(248, 113, 113, 0.14);
    border-color: rgba(248, 113, 113, 0.38);
    color: #fca5a5;
}

:root[data-theme="dark"] .bo-badge.bo-changelog-badge-new {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(52, 211, 153, 0.36);
    color: #6ee7b7;
}

:root[data-theme="dark"] .bo-badge.bo-changelog-badge-change {
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(96, 165, 250, 0.4);
    color: #93c5fd;
}

:root[data-theme="dark"] .bo-badge.bo-changelog-badge-security {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fcd34d;
}

:root[data-theme="dark"] .bo-badge.bo-changelog-badge-performance {
    background: rgba(139, 92, 246, 0.18);
    border-color: rgba(167, 139, 250, 0.42);
    color: #c4b5fd;
}

:root[data-theme="dark"] .bo-badge.bo-changelog-badge-data {
    background: rgba(6, 182, 212, 0.16);
    border-color: rgba(34, 211, 238, 0.38);
    color: #67e8f9;
}

:root[data-theme="dark"] .bo-badge.bo-changelog-badge-docs {
    background: rgba(148, 163, 184, 0.14);
    border-color: rgba(203, 213, 225, 0.3);
    color: #e2e8f0;
}

:root[data-theme="dark"] .bo-form-error {
    background: rgba(248, 113, 113, 0.14);
    border-color: rgba(248, 113, 113, 0.38);
    color: #fca5a5;
}

:root[data-theme="dark"] .bo-password-criteria {
    background: #0f172a;
}

:root[data-theme="dark"] .bo-password-reveal {
    background: #111c31;
}

:root[data-theme="dark"] .bo-password-reveal:hover,
:root[data-theme="dark"] .bo-password-reveal.is-revealing {
    background: rgba(227, 6, 19, 0.16);
}

:root[data-theme="dark"] .bo-password-criteria li.is-met {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(52, 211, 153, 0.36);
    color: #6ee7b7;
}

:root[data-theme="dark"] .bo-password-match {
    background: rgba(248, 113, 113, 0.14);
    border-color: rgba(248, 113, 113, 0.38);
    color: #fca5a5;
}

:root[data-theme="dark"] .bo-detail-grid div.bo-detail-alert {
    border-color: rgba(248, 113, 113, 0.42);
    background: rgba(127, 29, 29, 0.34);
}

:root[data-theme="dark"] .bo-detail-grid div.bo-detail-alert dt {
    color: #fecaca;
}

:root[data-theme="dark"] .bo-detail-alert dd {
    color: #fca5a5;
}

:root[data-theme="dark"] .bo-role-permission-card,
:root[data-theme="dark"] .bo-permission-group {
    background: #0f172a;
}

:root[data-theme="dark"] .bo-permission-group.is-locked {
    background: #111827;
    border-color: #334155;
}

:root[data-theme="dark"] .bo-locked-pill {
    background: #1f2937;
    border-color: #475569;
    color: #cbd5e1;
}

:root[data-theme="dark"] .bo-locked-note {
    color: #cbd5e1;
}

:root[data-theme="dark"] .bo-calendar-slots > span.is-available,
:root[data-theme="dark"] .bo-calendar-slots > button.is-available,
:root[data-theme="dark"] .bo-calendar-grid-cell.is-available > span,
:root[data-theme="dark"] .bo-calendar-grid-cell.is-available > button {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(52, 211, 153, 0.36);
    color: #6ee7b7;
}

:root[data-theme="dark"] .bo-calendar-slots > span.is-soft-blocked,
:root[data-theme="dark"] .bo-calendar-slots > button.is-soft-blocked,
:root[data-theme="dark"] .bo-calendar-grid-cell.is-soft-blocked > span,
:root[data-theme="dark"] .bo-calendar-grid-cell.is-soft-blocked > button {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fcd34d;
}

:root[data-theme="dark"] .bo-calendar-slots > span.is-reserved,
:root[data-theme="dark"] .bo-calendar-slots > button.is-reserved,
:root[data-theme="dark"] .bo-calendar-slots > span.is-unavailable,
:root[data-theme="dark"] .bo-calendar-grid-cell.is-reserved > span,
:root[data-theme="dark"] .bo-calendar-grid-cell.is-reserved > button,
:root[data-theme="dark"] .bo-calendar-grid-cell.is-unavailable > span,
:root[data-theme="dark"] .bo-calendar-grid-cell.is-unavailable > button {
    background: rgba(248, 113, 113, 0.14);
    border-color: rgba(248, 113, 113, 0.38);
    color: #fca5a5;
}

:root[data-theme="dark"] .bo-calendar-grid-cell.is-drop-candidate::after {
    background: rgba(17, 24, 39, 0.95);
    color: #ff7b84;
}

:root[data-theme="dark"] .bo-calendar-grid-cell.is-drop-active::after {
    background: #32151c;
}

:root[data-theme="dark"] .bo-calendar-transfer-swap {
    border-color: #a16207;
    background: #2d2412;
    color: #fde68a;
}

:root[data-theme="dark"] .bo-calendar-transfer-notifications {
    border-color: #334155;
    background: #111827;
    color: #ffffff;
}

:root[data-theme="dark"] .bo-calendar-slots > span.is-available small,
:root[data-theme="dark"] .bo-calendar-slots > button.is-available small,
:root[data-theme="dark"] .bo-calendar-grid-cell.is-available small {
    color: #6ee7b7;
}

:root[data-theme="dark"] .bo-calendar-slots > span.is-soft-blocked small,
:root[data-theme="dark"] .bo-calendar-slots > button.is-soft-blocked small,
:root[data-theme="dark"] .bo-calendar-grid-cell.is-soft-blocked small {
    color: #fcd34d;
}

:root[data-theme="dark"] .bo-calendar-slots > span.is-reserved small,
:root[data-theme="dark"] .bo-calendar-slots > button.is-reserved small,
:root[data-theme="dark"] .bo-calendar-slots > span.is-unavailable small,
:root[data-theme="dark"] .bo-calendar-grid-cell.is-reserved small,
:root[data-theme="dark"] .bo-calendar-grid-cell.is-unavailable small {
    color: #fca5a5;
}

:root[data-theme="dark"] .bo-calendar-grid-cell.is-empty > span,
:root[data-theme="dark"] .bo-login-action {
    background: #0f172a;
}

:root[data-theme="dark"] .bo-pagination .bo-pagination-page:not(.is-current),
:root[data-theme="dark"] .bo-pagination .bo-pagination-arrow {
    border-color: #334155;
    background: #0f172a;
    color: #f8fafc;
}

:root[data-theme="dark"] .bo-pagination .bo-pagination-page.is-current {
    border-color: var(--bo-red);
    background: var(--bo-red);
    color: #ffffff;
}

:root[data-theme="dark"] .bo-pagination a.bo-pagination-page:hover,
:root[data-theme="dark"] .bo-pagination a.bo-pagination-arrow:hover {
    border-color: #f87171;
    background: rgba(227, 6, 19, 0.18);
    color: #ffffff;
}

:root[data-theme="dark"] .bo-slot-create-link {
    background: rgba(2, 6, 23, 0.46);
    color: inherit;
}

:root[data-theme="dark"] .bo-slot-hold-countdown {
    background: rgba(248, 113, 113, 0.16);
    color: #fca5a5 !important;
}

@media (max-width: 1100px) {
    .bo-shell {
        grid-template-columns: 1fr;
    }

    body.bo-sidebar-open {
        overflow: hidden;
    }

    .bo-mobile-menu-button {
        display: inline-flex;
    }

    .bo-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 90;
        width: min(86vw, 330px);
        height: 100dvh;
        min-height: 100dvh;
        overflow-y: auto;
        padding: 24px 16px;
        transform: translateX(-105%);
        transition: transform 0.22s ease, box-shadow 0.22s ease;
        box-shadow: 24px 0 80px rgba(2, 11, 24, 0.32);
        will-change: transform;
    }

    .bo-sidebar.is-open {
        transform: translateX(0);
    }

    .bo-sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 80;
        display: block;
        border: 0;
        background: rgba(2, 11, 24, 0.58);
        cursor: pointer;
    }

    .bo-sidebar-overlay[hidden] {
        display: none;
    }

    .bo-nav {
        grid-template-columns: 1fr;
    }

    .bo-topbar {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 14px;
        min-height: auto;
        padding: 18px 20px;
    }

    .bo-topbar-title {
        min-width: 0;
    }

    .bo-topbar h1 {
        font-size: clamp(22px, 4.5vw, 28px);
    }

    .bo-global-search,
    .bo-topbar-tools {
        grid-column: 1 / -1;
        width: 100%;
    }

    .bo-topbar-tools {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .bo-global-search {
        max-width: none;
    }

    .bo-grid-2,
    .bo-grid-3,
    .bo-grid-4,
    .bo-grid-5 {
        grid-template-columns: 1fr;
    }

    .bo-dashboard-hero,
    .bo-dashboard-kpis,
    .bo-customer-metric-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bo-customer-overview,
    .bo-customer-next-card {
        grid-template-columns: 1fr;
    }

    .bo-panel-wide,
    .bo-panel-span-2,
    .bo-panel-span-3 {
        grid-column: auto;
    }

    .bo-customer-settings-grid {
        grid-template-columns: 1fr;
    }

    .bo-role-settings-grid,
    .bo-permission-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bo-panel:has(.bo-table-footer) .bo-table-wrap {
        min-height: 300px;
    }

    .bo-panel:has(.bo-table-footer) .bo-list-stack {
        min-height: 300px;
    }

    .bo-report-export-layout,
    .bo-report-export-grid,
    .bo-report-export-list {
        grid-template-columns: 1fr;
    }

    .bo-report-hero {
        grid-template-columns: 1fr;
    }

    .bo-report-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bo-report-export-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .bo-problem-report-layout {
        grid-template-columns: 1fr;
    }

    .bo-problem-report-aside {
        position: static;
    }
}

@media (max-width: 720px) {
    .bo-topbar {
        padding: 14px;
        gap: 12px;
    }

    .bo-content {
        padding: 14px 12px 28px;
    }

    .bo-panel,
    .bo-stat {
        border-radius: 8px;
    }

    .bo-panel {
        padding: 14px;
    }

    .bo-panel-head,
    .bo-panel-topbar,
    .bo-panel-actions,
    .bo-page-actions,
    .bo-filter,
    .bo-inline-form,
    .bo-table-footer,
    .bo-dialog-actions,
    .bo-report-export-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .bo-panel-head {
        gap: 10px;
    }

    .bo-help-head-actions,
    .bo-problem-report-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .bo-help-head-actions > *,
    .bo-problem-report-actions > * {
        width: 100%;
    }

    .bo-problem-upload {
        min-height: 160px;
        padding: 22px 14px;
    }

    .bo-problem-preview-list {
        grid-template-columns: 1fr;
    }

    .bo-problem-preview-list article {
        grid-template-columns: 96px minmax(0, 1fr);
        grid-template-areas:
            "preview details"
            "action action";
    }

    .bo-problem-preview-list img {
        width: 96px;
        height: 72px;
    }

    .bo-problem-preview-list article .bo-button {
        width: 100%;
    }

    .bo-filter-date {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .bo-panel-head h2 {
        font-size: 17px;
    }

    .bo-panel-topbar .bo-panel-actions,
    .bo-filter-primary-action,
    .bo-calendar-filter-actions {
        margin-left: 0;
    }

    .bo-calendar-filter-actions {
        width: 100%;
        flex-direction: column;
    }

    .bo-panel-actions .bo-button,
    .bo-page-actions .bo-button,
    .bo-filter .bo-button,
    .bo-inline-form .bo-button,
    .bo-report-export-actions .bo-button {
        width: 100%;
    }

    .bo-toast,
    .bo-alert {
        margin: 16px;
    }

    .bo-topbar-tools,
    .bo-user,
    .bo-user-menu {
        align-items: flex-start;
        flex-direction: column;
    }

    .bo-user-menu,
    .bo-user-toggle,
    .bo-user-panel {
        width: 100%;
    }

    .bo-user-toggle {
        justify-content: space-between;
    }

    .bo-user-panel {
        left: 0;
        right: auto;
    }

    .bo-global-search,
    .bo-notifications,
    .bo-search-results,
    .bo-notification-panel {
        width: 100%;
    }

    .bo-search-results,
    .bo-notification-panel,
    .bo-user-panel {
        width: min(100%, calc(100vw - 24px));
    }

    .bo-notification-panel {
        left: 0;
        right: auto;
    }

    .bo-detail-grid,
    .bo-form-grid,
    .bo-list-row,
    .bo-list-form,
    .bo-dashboard-hero,
    .bo-dashboard-hero-actions,
    .bo-dashboard-kpis,
    .bo-customer-overview,
    .bo-customer-next-card,
    .bo-customer-metric-strip,
    .bo-dashboard-mini-grid,
    .bo-dashboard-metrics,
    .bo-dashboard-bar-row,
    .bo-technician-capacity-row,
    .bo-dashboard-service-chart div,
    .bo-role-settings-grid,
    .bo-permission-groups,
    .bo-service-setting,
    .bo-setting-row {
        grid-template-columns: 1fr;
    }

    .bo-role-permission-head {
        flex-direction: column;
    }

    .bo-help-list {
        grid-template-columns: 1fr;
    }

    .bo-filter input,
    .bo-filter select,
    .bo-filter-date,
    .bo-filter-date input[type="date"],
    .bo-inline-form input,
    .bo-inline-form select,
    .bo-list-form input,
    .bo-list-form select,
    .bo-log-per-page-form input[type="search"],
    .bo-message-log-filter select,
    .bo-per-page-form,
    .bo-log-per-page-form,
    .bo-per-page-form label,
    .bo-log-per-page-form label {
        width: 100%;
    }

    .bo-table-wrap,
    .bo-calendar-grid-wrap,
    .bo-blocked-table {
        margin-inline: -8px;
        padding-inline: 8px;
    }

    .bo-table {
        min-width: 720px;
        font-size: 13px;
    }

    .bo-log-table,
    .bo-automation-table {
        min-width: 1080px;
    }

    .bo-table th,
    .bo-table td {
        padding: 10px 9px;
    }

    .bo-table-action-head,
    .bo-table-action-cell {
        width: 74px;
    }

    .bo-table-action-head-wide,
    .bo-table-action-cell-wide {
        width: 210px;
    }

    .bo-table-icon-link {
        width: 38px;
        height: 38px;
    }

    .bo-table-footer {
        gap: 10px;
    }

    .bo-automation-info {
        grid-template-columns: 1fr;
    }

    .bo-table-footer .bo-pagination {
        width: 100%;
    }

    .bo-pagination nav {
        justify-content: flex-start;
        gap: 6px;
    }

    .bo-pagination .bo-pagination-page,
    .bo-pagination .bo-pagination-arrow {
        width: 40px;
        min-width: 40px;
        height: 40px;
    }

    .bo-pagination .bo-pagination-dots {
        height: 40px;
    }

    .bo-dashboard-hero {
        padding: 18px;
    }

    .bo-dashboard-hero-actions a,
    .bo-dashboard-kpi,
    .bo-dashboard-mini-grid span,
    .bo-dashboard-metrics span {
        min-height: auto;
    }

    .bo-column-chart {
        gap: 6px;
        min-height: 170px;
    }

    .bo-column-chart div {
        min-height: 150px;
        padding: 6px 3px;
    }

    .bo-column-chart strong {
        font-size: 11px;
    }

    .bo-column-chart small {
        font-size: 10px;
    }

    .bo-dashboard-service-chart div {
        gap: 8px;
    }

    .bo-dashboard-service-chart strong {
        text-align: left;
    }

    .bo-report-export-grid,
    .bo-report-period-form,
    .bo-settings-grid,
    .bo-service-setting,
    .bo-setting-row,
    .bo-report-summary-grid .bo-list-row,
    .bo-report-export-privacy .bo-checkbox-line {
        grid-template-columns: 1fr;
    }

    .bo-report-hero {
        padding: 18px;
    }

    .bo-report-kpi-grid {
        grid-template-columns: 1fr;
    }

    .bo-report-export-card {
        grid-template-columns: 1fr;
    }

    .bo-checkbox-line {
        align-items: flex-start;
    }

    .bo-calendar-slot-actions {
        align-items: stretch;
        width: 100%;
    }

    .bo-calendar-grid-table {
        --calendar-time-column: 96px;
        --calendar-row-height: 76px;
        min-width: max(640px, var(--calendar-min-width, 640px));
        grid-template-columns: var(--calendar-time-column) repeat(var(--calendar-columns), minmax(210px, 1fr));
    }

    .bo-calendar-time-head,
    .bo-calendar-time-cell {
        width: 96px;
        min-width: 96px;
    }

    .bo-calendar-grid-cell > span,
    .bo-calendar-grid-cell > button {
        padding: 8px;
    }

    .bo-blocked-head,
    .bo-blocked-row {
        min-width: 700px;
    }

    .bo-dialog,
    .bo-dialog-wide {
        width: calc(100vw - 20px);
        max-height: calc(100dvh - 20px);
        padding: 18px;
        overflow: auto;
    }

    .bo-dialog-close {
        top: 10px;
        right: 10px;
    }

    .bo-customer-reservation .reservation-wizard-card {
        border-radius: 8px;
    }

    .bo-customer-reservation .reservation-steps {
        overflow-x: auto;
        padding-inline: 12px;
        -webkit-overflow-scrolling: touch;
    }

    .bo-customer-reservation .reservation-steps li {
        min-width: 118px;
    }

    .bo-customer-reservation .reservation-details-grid,
    .bo-customer-reservation .personal-form-grid {
        grid-template-columns: 1fr;
    }

    .bo-customer-reservation .plate-label,
    .bo-customer-reservation .reservation-identifier-field,
    .bo-customer-reservation .reservation-privacy-inline {
        grid-column: 1;
    }

    .bo-customer-reservation .plate-inputs {
        grid-template-columns: 44px minmax(62px, 1fr) 20px minmax(104px, 1.35fr);
    }
}

@media (max-width: 420px) {
    .bo-sidebar {
        width: min(92vw, 330px);
    }

    .bo-mobile-menu-button {
        width: 42px;
        height: 42px;
    }

    .bo-topbar h1 {
        font-size: 22px;
    }

    .bo-stat strong,
    .bo-dashboard-kpi strong,
    .bo-customer-metric-strip strong {
        font-size: 26px;
    }

    .bo-pagination .bo-pagination-page,
    .bo-pagination .bo-pagination-arrow {
        width: 38px;
        min-width: 38px;
        height: 38px;
    }

    .bo-pagination .bo-pagination-dots {
        height: 38px;
    }
}

@media (max-width: 900px) {
    .bo-dashboard-hero,
    .bo-report-hero,
    .bo-customer-overview,
    .bo-customer-next-card,
    .bo-report-export-layout {
        grid-template-columns: 1fr;
    }

    .bo-dashboard-kpis,
    .bo-report-kpi-grid,
    .bo-customer-metric-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .bo-shell,
    .bo-main,
    .bo-content,
    .bo-topbar {
        width: 100%;
        max-width: 100vw;
    }

    .bo-content {
        overflow-x: hidden;
    }

    .bo-topbar-tools {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .bo-global-search {
        justify-self: stretch;
    }

    .bo-notifications {
        width: auto;
        max-width: 100%;
    }

    .bo-bell-button {
        flex: 0 0 auto;
    }

    .bo-panel,
    .bo-stat,
    .bo-dashboard-hero,
    .bo-dashboard-kpi,
    .bo-report-kpi,
    .bo-report-export-group,
    .bo-customer-next-card,
    .bo-customer-action-card {
        min-width: 0;
        max-width: 100%;
    }

    .bo-dashboard-kpis,
    .bo-report-kpi-grid,
    .bo-customer-metric-strip,
    .bo-report-mini-grid,
    .bo-report-export-list,
    .bo-dashboard-hero-actions {
        grid-template-columns: 1fr !important;
    }

    .bo-dashboard-live-row,
    .bo-attention-item,
    .bo-email-preview-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .bo-email-preview-hero,
    .bo-email-preview-body,
    .bo-email-preview-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .bo-email-preview-hero-top {
        flex-direction: column;
    }

    .bo-email-preview-contact {
        text-align: left;
    }

    .bo-dashboard-hero h2,
    .bo-dashboard-section-title h2,
    .bo-report-hero h2,
    .bo-customer-next-copy h2 {
        overflow-wrap: anywhere;
    }

    .bo-donut {
        width: min(180px, 68vw);
        height: min(180px, 68vw);
    }

    .bo-column-chart,
    .bo-report-column-chart {
        min-width: 0;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .bo-column-chart {
        grid-template-columns: repeat(7, minmax(42px, 1fr));
    }

    .bo-report-column-chart {
        grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
    }

    .bo-column-chart div,
    .bo-report-column-chart div {
        min-width: 42px;
    }

    .bo-dashboard-service-chart div,
    .bo-dashboard-bar-row,
    .bo-report-meter-row,
    .bo-report-attention,
    .bo-list-row,
    .bo-list-form {
        grid-template-columns: 1fr !important;
    }

    .bo-dashboard-bar,
    .bo-report-meter-row i {
        width: 100%;
    }

    .bo-filter > *,
    .bo-inline-form > *,
    .bo-log-per-page-form > *,
    .bo-per-page-form > *,
    .bo-report-export-actions > *,
    .bo-panel-actions > *,
    .bo-page-actions > *,
    .bo-dialog-actions > *,
    .bo-template-actions > * {
        max-width: 100%;
    }

    .bo-filter .bo-filter-autocomplete,
    .bo-filter .bo-filter-autocomplete input,
    .bo-autocomplete,
    .bo-filter > *,
    .bo-filter input,
    .bo-filter select,
    .bo-filter-date,
    .bo-filter-date input[type="date"],
    .bo-inline-form input,
    .bo-inline-form select,
    .bo-list-form input,
    .bo-list-form select,
    .bo-log-per-page-form input[type="search"],
    .bo-form input,
    .bo-form select,
    .bo-form textarea,
    .bo-field,
    .bo-field input,
    .bo-field select,
    .bo-field textarea,
    .bo-help-search {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .bo-compact-form input[type="text"],
    .bo-compact-form input[type="password"],
    .bo-compact-form input[type="email"],
    .bo-compact-form input[type="tel"] {
        max-width: 100%;
    }

    .bo-compact-form .bo-button,
    .bo-template-actions .bo-button,
    .bo-email-preview-toolbar .bo-button,
    .bo-dialog-actions .bo-button,
    .bo-dialog-actions button,
    .bo-dialog-actions a {
        width: 100%;
    }

    .bo-button,
    .bo-icon-button {
        min-width: 0;
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }

    .bo-dialog-actions .bo-button.bo-button-nowrap,
    .bo-dialog-actions button.bo-button-nowrap,
    .bo-dialog-actions a.bo-button-nowrap {
        width: auto;
        min-width: max-content;
        white-space: nowrap;
        word-break: normal;
        overflow-wrap: normal;
    }

    .bo-table-wrap,
    .bo-calendar-grid-wrap,
    .bo-blocked-table {
        width: 100%;
        max-width: 100%;
        margin-inline: 0;
        padding-inline: 0;
        overflow-x: auto;
    }

    .bo-table {
        min-width: 680px;
    }

    .bo-log-table,
    .bo-automation-table {
        min-width: 760px;
    }

    .bo-table-footer {
        align-items: stretch;
    }

    .bo-pagination nav {
        justify-content: center;
    }

    .bo-per-page-form label,
    .bo-log-per-page-form label {
        justify-content: space-between;
    }

    .bo-dialog,
    .bo-dialog-wide {
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
    }

    .bo-calendar-grid-table {
        --calendar-time-column: 96px;
        --calendar-row-height: 96px;
        min-width: max(580px, var(--calendar-min-width, 580px));
        grid-template-columns: var(--calendar-time-column) repeat(var(--calendar-columns), minmax(190px, 1fr));
    }

    .bo-calendar-time-head,
    .bo-calendar-time-cell {
        width: 96px;
        min-width: 96px;
    }

    .bo-blocked-head,
    .bo-blocked-row {
        min-width: 650px;
    }

    .bo-customer-reservation,
    .bo-customer-reservation .site-container,
    .bo-customer-reservation .reservation-wizard-card,
    .bo-customer-reservation .reservation-form,
    .bo-customer-reservation .reservation-step-panel,
    .bo-customer-reservation .reservation-date-grid,
    .bo-customer-reservation .reservation-details-grid,
    .bo-customer-reservation .reservation-summary-card,
    .bo-customer-reservation .reservation-summary-box,
    .bo-customer-reservation .personal-form-grid,
    .bo-customer-reservation .vehicle-choice,
    .bo-customer-reservation .inspection-choice {
        min-width: 0;
        max-width: 100%;
    }

    .bo-customer-reservation .reservation-step-panel {
        padding-inline: 14px;
    }

    .bo-customer-reservation .reservation-date-grid {
        padding: 12px;
    }

    .bo-customer-reservation .reservation-calendar {
        width: 100%;
    }

    .bo-customer-reservation .time-grid {
        width: 100%;
        max-width: 100%;
    }

    .bo-customer-reservation .vehicle-choice {
        grid-template-columns: 32px 56px minmax(0, 1fr);
        gap: 10px;
    }

    .bo-customer-reservation .vehicle-choice .choice-check,
    .bo-customer-reservation .vehicle-choice-call a {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .bo-customer-reservation .inspection-choice {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 12px;
    }

    .bo-customer-reservation .reservation-controls,
    .bo-customer-reservation .reservation-summary-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .bo-customer-reservation .reservation-controls .button,
    .bo-customer-reservation .reservation-summary-actions a {
        width: 100%;
    }

    .bo-customer-reservation .plate-inputs {
        grid-template-columns: 44px minmax(54px, 1fr) 18px minmax(92px, 1.35fr);
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .bo-topbar {
        padding-inline: 10px;
    }

    .bo-content {
        padding-inline: 10px;
    }

    .bo-panel {
        padding: 12px;
    }

    .bo-table {
        min-width: 620px;
    }

    .bo-log-table,
    .bo-automation-table {
        min-width: 700px;
    }

    .bo-calendar-grid-table {
        min-width: max(520px, var(--calendar-min-width, 520px));
        grid-template-columns: var(--calendar-time-column) repeat(var(--calendar-columns), minmax(170px, 1fr));
    }

    .bo-customer-reservation .reservation-steps li {
        min-width: 104px;
    }

    .bo-customer-reservation .plate-inputs {
        grid-template-columns: 40px minmax(48px, 1fr) 16px minmax(78px, 1.35fr);
    }
}

@media (max-width: 1100px) {
    .bo-scheduled-report-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .bo-scheduled-report-grid,
    .bo-scheduled-report-recipients,
    .bo-scheduled-report-switches {
        grid-template-columns: minmax(0, 1fr);
    }

    .bo-scheduled-report-panel .bo-panel-head,
    .bo-scheduled-report-card-foot,
    .bo-scheduled-report-section {
        align-items: stretch;
        flex-direction: column;
    }

    .bo-scheduled-report-panel .bo-panel-head .bo-button,
    .bo-scheduled-report-section .bo-row-actions {
        align-self: flex-start;
    }

    .bo-scheduled-report-card-foot span:last-child {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bo-main,
    .bo-content,
    .bo-admin-dashboard .bo-panel,
    .bo-supervisor-dashboard .bo-panel,
    .bo-technician-dashboard .bo-panel,
    .bo-dashboard-hero,
    .bo-dashboard-kpi,
    .bo-customer-next-card,
    .bo-customer-action-card,
    .bo-customer-metric-strip span,
    .bo-dashboard-hero-actions a,
    .bo-dashboard-mini-grid span,
    .bo-dashboard-metrics span,
    .bo-dashboard-bar-row,
    .bo-column-chart div,
    .bo-column-chart span,
    .bo-dashboard-service-chart div,
    .bo-dashboard-service-chart b,
    .bo-attention-item,
    .bo-sidebar,
    .bo-nav-group-chevron,
    .bo-mobile-menu-button span,
    .bo-scheduled-report-card {
        animation: none;
        transition: none;
    }

    .bo-page-leaving .bo-main,
    .bo-admin-dashboard .bo-panel:hover,
    .bo-technician-dashboard .bo-panel:hover,
    .bo-dashboard-hero:hover,
    .bo-dashboard-kpi:hover,
    .bo-dashboard-hero-actions a:hover,
    .bo-attention-item:hover,
    .bo-dashboard-mini-grid span:hover,
    .bo-dashboard-metrics span:hover,
    .bo-column-chart div:hover span {
        opacity: 1;
        transform: none;
    }
}
.bo-two-factor-panel {
    align-self: start;
}

.bo-account-marketing-consent {
    display: grid;
    gap: 12px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--bo-line);
}

.bo-account-marketing-consent .bo-panel-head,
.bo-account-marketing-consent p {
    margin: 0;
}

.bo-account-marketing-form {
    gap: 10px;
}

.bo-form label.bo-account-marketing-toggle,
label.bo-account-marketing-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--bo-line);
    border-radius: 8px;
    background: var(--bo-soft);
    color: var(--bo-text);
    font-size: 13px;
    font-weight: 780;
    line-height: 1.45;
}

.bo-account-marketing-toggle input {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--bo-red);
}

.bo-account-marketing-toggle.is-disabled {
    opacity: 0.72;
}

.bo-two-factor-qr {
    display: flex;
    justify-content: center;
    margin: 18px 0;
    padding: 16px;
    background: #fff;
    border: 1px solid #d7dde7;
    border-radius: 6px;
}

.bo-two-factor-qr img {
    display: block;
    width: min(280px, 100%);
    height: auto;
}

.bo-recovery-codes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.bo-recovery-codes code {
    padding: 8px;
    color: #111827;
    background: #fff;
    border-radius: 4px;
    text-align: center;
}

.bo-recovery-codes-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 12px;
}

.bo-recovery-codes-actions .bo-button {
    width: auto;
    flex: 0 0 auto;
}

.bo-recovery-codes-actions span {
    color: inherit;
    font-size: 13px;
    line-height: 1.45;
}

.bo-two-factor-disable {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--bo-border, #d7dde7);
}

@media (max-width: 560px) {
    .bo-recovery-codes {
        grid-template-columns: 1fr;
    }

    .bo-recovery-codes-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Communication center */
.bo-template-library,
.bo-campaign-layout,
.bo-newsletter-workspace {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.bo-template-column,
.bo-communication-hero {
    border: 1px solid var(--bo-border, #d7dde7);
    border-radius: 8px;
    background: var(--bo-white, #ffffff);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}

.bo-template-column {
    min-width: 0;
    overflow: hidden;
}

.bo-template-column-head,
.bo-template-row,
.bo-communication-hero,
.bo-communication-metrics,
.bo-newsletter-send-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.bo-template-column-head {
    padding: 20px;
    border-bottom: 1px solid var(--bo-border, #d7dde7);
}

.bo-template-column-head h2,
.bo-communication-hero h2,
.bo-template-row p {
    margin: 0;
}

.bo-template-list {
    display: grid;
}

.bo-template-row {
    min-height: 128px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--bo-border, #e3e8ef);
    transition: background-color 160ms ease, transform 160ms ease;
}

.bo-template-row:last-child {
    border-bottom: 0;
}

.bo-template-row:hover {
    background: rgba(227, 6, 19, 0.035);
}

.bo-template-row-copy {
    min-width: 0;
}

.bo-template-row-title,
.bo-template-row-actions,
.bo-template-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.bo-template-row-copy > small,
.bo-template-row-copy p,
.bo-table-subline {
    display: block;
    margin-top: 7px;
    color: var(--bo-muted, #475467);
    line-height: 1.5;
}

.bo-template-row-copy p {
    overflow-wrap: anywhere;
}

.bo-template-row-actions {
    flex: 0 0 auto;
}

.bo-template-editor-panel {
    display: grid;
    gap: 13px;
    min-width: 0;
    max-width: none;
}

.bo-template-editor-panel .bo-panel-head {
    margin-bottom: 3px;
}

.bo-template-editor-panel .bo-template-actions {
    justify-content: flex-end;
}

.bo-template-editor-panel .bo-template-actions .bo-button {
    flex: 0 0 auto;
}

.bo-communication-hero {
    padding: 24px;
    margin-bottom: 20px;
    background:
        linear-gradient(105deg, rgba(227, 6, 19, 0.09), transparent 45%),
        var(--bo-white, #ffffff);
}

.bo-communication-hero > div:first-child {
    max-width: 740px;
}

.bo-communication-hero p {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--bo-muted, #475467);
    line-height: 1.55;
}

.bo-communication-metrics {
    flex: 0 0 auto;
}

.bo-communication-metrics > div,
.bo-newsletter-send-summary > div {
    display: grid;
    gap: 3px;
    min-width: 124px;
    padding: 14px;
    border: 1px solid var(--bo-border, #d7dde7);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.72);
}

.bo-communication-metrics strong {
    color: var(--bo-red, #e30613);
    font-size: 22px;
}

.bo-communication-metrics span,
.bo-newsletter-send-summary span {
    color: var(--bo-muted, #475467);
    font-size: 12px;
}

.bo-message-queue-hero .bo-communication-metrics {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 560px;
}

.bo-message-queue-hero .bo-communication-metrics > div {
    flex: 1 1 124px;
}

.bo-message-queue-panel,
.bo-queue-campaigns,
.bo-planned-sms-panel {
    margin-bottom: 20px;
}

.bo-message-queue-head {
    align-items: flex-start;
    gap: 18px;
}

.bo-message-queue-head p,
.bo-queue-campaigns .bo-panel-head p {
    margin: 5px 0 0;
    color: var(--bo-muted, #475467);
}

.bo-message-queue-filter {
    align-items: center;
}

.bo-message-queue-filter input[type="search"] {
    min-width: 280px;
}

.bo-message-queue-table {
    min-width: 1040px;
}

.bo-message-queue-table th:first-child,
.bo-message-queue-table td:first-child {
    width: 170px;
}

.bo-message-queue-table th:nth-child(2),
.bo-message-queue-table td:nth-child(2) {
    width: 220px;
}

.bo-message-queue-table th:nth-child(4),
.bo-message-queue-table td:nth-child(4) {
    width: 190px;
}

.bo-message-queue-table th:last-child,
.bo-message-queue-table td:last-child {
    width: 170px;
}

.bo-message-queue-body {
    display: -webkit-box;
    overflow: hidden;
    max-width: 560px;
    margin-top: 5px;
    line-height: 1.45;
    white-space: pre-line;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.bo-planned-sms-head {
    align-items: flex-start;
    gap: 24px;
}

.bo-planned-sms-head > div:first-child {
    max-width: 760px;
}

.bo-planned-sms-head h2,
.bo-planned-sms-head p {
    margin: 0;
}

.bo-planned-sms-head h2 {
    margin-top: 4px;
}

.bo-planned-sms-head p {
    margin-top: 6px;
    color: var(--bo-muted, #475467);
    line-height: 1.5;
}

.bo-planned-sms-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(112px, 1fr));
    gap: 10px;
    flex: 0 0 auto;
}

.bo-planned-sms-metrics > div {
    display: grid;
    gap: 3px;
    padding: 12px 14px;
    border: 1px solid var(--bo-border, #d7dde7);
    border-radius: 7px;
    background: var(--bo-surface, #f7f9fc);
}

.bo-planned-sms-metrics strong {
    color: var(--bo-red, #e30613);
    font-size: 22px;
}

.bo-planned-sms-metrics span,
.bo-planned-sms-footnote,
.bo-planned-sms-notice span {
    color: var(--bo-muted, #475467);
    font-size: 12px;
}

.bo-planned-sms-metrics .has-warning strong {
    color: #b54708;
}

.bo-planned-sms-notice {
    display: grid;
    gap: 4px;
    margin: 0 20px 16px;
    padding: 12px 14px;
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-left-width: 4px;
    border-radius: 7px;
    background: rgba(245, 158, 11, 0.08);
}

.bo-planned-sms-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(84px, 1fr));
    gap: 8px;
    padding: 0 20px 16px;
}

.bo-planned-sms-days > div {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2px 8px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--bo-border, #d7dde7);
    border-radius: 7px;
    background: var(--bo-surface, #f7f9fc);
}

.bo-planned-sms-days > div.has-messages {
    border-color: rgba(22, 163, 74, 0.4);
    background: rgba(22, 163, 74, 0.07);
}

.bo-planned-sms-days span,
.bo-planned-sms-days small {
    color: var(--bo-muted, #475467);
    font-size: 11px;
}

.bo-planned-sms-days strong {
    grid-row: span 2;
    color: var(--bo-text, #101828);
    font-size: 18px;
}

.bo-planned-sms-filter {
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(170px, 0.75fr)) auto;
    align-items: center;
}

.bo-planned-sms-table {
    min-width: 1260px;
}

.bo-planned-sms-table th:first-child,
.bo-planned-sms-table td:first-child {
    width: 170px;
}

.bo-planned-sms-table th:nth-child(2),
.bo-planned-sms-table td:nth-child(2),
.bo-planned-sms-table th:nth-child(3),
.bo-planned-sms-table td:nth-child(3),
.bo-planned-sms-table th:nth-child(4),
.bo-planned-sms-table td:nth-child(4) {
    width: 210px;
}

.bo-planned-sms-table th:last-child,
.bo-planned-sms-table td:last-child {
    width: 180px;
}

.bo-planned-sms-footnote {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px 0;
    line-height: 1.45;
}

.bo-queue-campaign-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.bo-queue-campaign-list > div {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--bo-border, #d7dde7);
    border-radius: 7px;
}

.bo-queue-campaign-list span {
    color: var(--bo-muted, #475467);
    font-size: 12px;
}

.bo-queue-stop-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
    padding: 20px 22px;
    border: 1px solid rgba(227, 6, 19, 0.48);
    border-left-width: 5px;
    border-radius: 8px;
    background: #fff3f4;
    box-shadow: 0 14px 30px rgba(227, 6, 19, 0.08);
}

.bo-queue-stop-banner h2,
.bo-queue-stop-banner p,
.bo-queue-control-head h2,
.bo-queue-control-head p,
.bo-queue-control-card h3,
.bo-queue-control-card p {
    margin: 0;
}

.bo-queue-stop-banner h2,
.bo-queue-control-head h2 {
    margin-top: 4px;
}

.bo-queue-stop-banner p,
.bo-queue-control-head p {
    margin-top: 6px;
    line-height: 1.5;
}

.bo-queue-control-center {
    margin-bottom: 20px;
}

.bo-queue-control-head {
    align-items: flex-start;
    gap: 24px;
}

.bo-queue-control-head > div {
    max-width: 760px;
}

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

.bo-queue-control-card {
    display: grid;
    gap: 16px;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--bo-border, #d7dde7);
    border-radius: 8px;
    background: var(--bo-surface, #f7f9fc);
}

.bo-queue-control-card.is-paused {
    border-color: rgba(227, 6, 19, 0.48);
    background: rgba(227, 6, 19, 0.055);
}

.bo-queue-control-card > header,
.bo-queue-control-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.bo-queue-control-card > header > div > span,
.bo-queue-pause-detail span,
.bo-queue-active-copy {
    color: var(--bo-muted, #475467);
    font-size: 12px;
}

.bo-queue-control-card h3 {
    margin-top: 3px;
    font-size: 18px;
}

.bo-queue-control-card dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.bo-queue-control-card dl > div {
    padding: 12px;
    border: 1px solid var(--bo-border, #d7dde7);
    border-radius: 7px;
    background: var(--bo-white, #ffffff);
}

.bo-queue-control-card dt {
    color: var(--bo-muted, #475467);
    font-size: 11px;
}

.bo-queue-control-card dd {
    margin: 4px 0 0;
    font-size: 20px;
    font-weight: 900;
}

.bo-queue-pause-detail {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-left: 4px solid var(--bo-red, #e30613);
    background: rgba(227, 6, 19, 0.075);
}

.bo-queue-pause-detail p {
    margin-top: 4px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.bo-queue-active-copy {
    min-height: 42px;
    line-height: 1.5;
}

.bo-queue-control-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.bo-campaign-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.65fr);
    margin-bottom: 20px;
}

.bo-campaign-summary {
    position: sticky;
    top: 92px;
}

.bo-campaign-summary dl {
    display: grid;
    gap: 0;
    margin: 20px 0;
}

.bo-campaign-summary dl div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid var(--bo-border, #d7dde7);
}

.bo-campaign-summary dt {
    color: var(--bo-muted, #475467);
}

.bo-campaign-summary dd {
    margin: 0;
    font-weight: 800;
    text-align: right;
}

.bo-bulk-sms-send-block {
    display: grid;
    gap: 14px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--bo-border, #d7dde7);
}

.bo-bulk-sms-send-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.bo-bulk-sms-send-head h3 {
    margin: 3px 0 0;
    font-size: 18px;
}

.bo-bulk-sms-delivery-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.bo-bulk-sms-delivery-summary div {
    display: grid;
    gap: 4px;
    padding: 11px 12px;
    border: 1px solid var(--bo-border, #d7dde7);
    border-radius: 7px;
}

.bo-bulk-sms-delivery-summary dt {
    color: var(--bo-muted, #475467);
    font-size: 12px;
}

.bo-bulk-sms-delivery-summary dd {
    margin: 0;
    font-weight: 850;
}

.bo-bulk-sms-send-action {
    justify-content: flex-end;
}

.bo-bulk-sms-send-action .bo-button {
    flex: 0 0 auto;
}

.bo-test-sms-phones,
.bo-test-sms-phone-list {
    display: grid;
    gap: 10px;
}

.bo-test-sms-phone-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    gap: 8px;
    align-items: center;
}

.bo-test-sms-phone-field {
    display: block;
    min-width: 0;
}

.bo-test-sms-phone-row .iti {
    width: 100%;
}

.bo-test-sms-phone-remove,
.bo-test-sms-phone-add {
    display: inline-grid;
    place-items: center;
    width: 38px;
    min-height: 38px;
    padding: 0;
    font-size: 20px;
    line-height: 1;
}

.bo-test-sms-phone-remove[hidden],
.bo-test-sms-phone-add[hidden] {
    display: none;
}

.bo-test-sms-phone-add {
    justify-self: start;
}

.bo-audience-picker,
.bo-recipient-picker {
    display: grid;
    gap: 14px;
}

.bo-audience-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.bo-audience-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--bo-border, #d7dde7);
    border-radius: 7px;
    cursor: pointer;
}

.bo-audience-option:has(input:checked) {
    border-color: var(--bo-red, #e30613);
    background: rgba(227, 6, 19, 0.055);
}

.bo-audience-option input {
    margin-top: 3px;
}

.bo-audience-option span,
.bo-audience-option small {
    display: block;
}

.bo-audience-option small {
    margin-top: 4px;
    color: var(--bo-muted, #475467);
    line-height: 1.4;
}

.bo-recipient-picker {
    padding: 16px;
    border: 1px solid var(--bo-border, #d7dde7);
    border-radius: 7px;
}

.bo-recipient-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bo-recipient-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    padding: 9px 10px 9px 12px;
    border: 1px solid var(--bo-border, #d7dde7);
    border-radius: 7px;
    background: var(--bo-surface, #f7f9fc);
}

.bo-recipient-chip span,
.bo-recipient-chip small {
    display: block;
    min-width: 0;
}

.bo-recipient-chip small {
    margin-top: 2px;
    color: var(--bo-muted, #475467);
}

.bo-recipient-chip button {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(227, 6, 19, 0.28);
    border-radius: 50%;
    color: var(--bo-red, #e30613);
    background: transparent;
    cursor: pointer;
}

.bo-consent-notice {
    display: grid;
    gap: 5px;
    padding: 14px 16px;
    border-left: 4px solid var(--bo-red, #e30613);
    border-radius: 4px;
    background: rgba(227, 6, 19, 0.055);
    line-height: 1.5;
}

.bo-campaign-history {
    margin-top: 24px;
}

.bo-campaign-history-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.bo-campaign-history-head h2 {
    margin: 4px 0 0;
}

.bo-campaign-history-head p {
    margin: 6px 0 0;
    color: var(--bo-muted, #475467);
    line-height: 1.5;
}

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

.bo-campaign-history-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--bo-border, #d7dde7);
    border-radius: 8px;
    background: var(--bo-white, #ffffff);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.055);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.bo-campaign-history-card:hover {
    border-color: rgba(227, 6, 19, 0.38);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
    transform: translateY(-1px);
}

.bo-campaign-history-card > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.bo-campaign-history-card > header > div {
    min-width: 0;
}

.bo-campaign-history-card time,
.bo-campaign-history-card small {
    display: block;
    color: var(--bo-muted, #475467);
    font-size: 12px;
    line-height: 1.4;
}

.bo-campaign-history-card h3 {
    margin: 5px 0 3px;
    overflow-wrap: anywhere;
    font-size: 17px;
    line-height: 1.3;
}

.bo-campaign-history-card > header > .bo-badge {
    flex: 0 0 auto;
}

.bo-campaign-history-card dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0 0;
}

.bo-campaign-history-card dl > div {
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--bo-border, #d7dde7);
    border-radius: 7px;
    background: var(--bo-surface, #f7f9fc);
}

.bo-campaign-history-card dt {
    color: var(--bo-muted, #475467);
    font-size: 11px;
    line-height: 1.3;
}

.bo-campaign-history-card dd {
    margin: 5px 0 0;
    font-size: 19px;
    font-weight: 900;
}

.bo-campaign-history-card dd.is-success {
    color: #15803d;
}

.bo-campaign-history-card dd.is-danger {
    color: var(--bo-red, #e30613);
}

.bo-campaign-history-card dd.is-warning {
    color: #b45309;
}

.bo-campaign-history-empty {
    grid-column: 1 / -1;
    padding: 32px 20px;
    border: 1px dashed var(--bo-border, #d7dde7);
    border-radius: 8px;
    background: var(--bo-white, #ffffff);
    text-align: center;
}

.bo-variable-box {
    display: grid;
    gap: 8px;
}

.bo-newsletter-workspace {
    grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.1fr);
    margin-bottom: 20px;
}

.bo-template-workspace {
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.1fr);
    gap: 20px;
    align-items: start;
}

.bo-newsletter-editor,
.bo-newsletter-preview-panel,
.bo-template-preview-panel {
    min-width: 0;
}

.bo-newsletter-preview-panel,
.bo-template-preview-panel {
    position: sticky;
    top: 92px;
}

.bo-template-preview-panel [hidden] {
    display: none !important;
}

.bo-newsletter-preview-shell {
    min-height: 720px;
    padding: 10px;
    border: 1px solid var(--bo-border, #d7dde7);
    border-radius: 7px;
    background: #dbe3ee;
    overflow: hidden;
}

.bo-newsletter-preview-shell iframe {
    display: block;
    width: 100%;
    min-height: 700px;
    border: 0;
    border-radius: 4px;
    background: #ffffff;
}

.bo-template-sms-preview {
    display: grid;
    gap: 14px;
    min-height: 420px;
    padding: 28px;
    border: 1px solid var(--bo-border, #d7dde7);
    border-radius: 7px;
    background: #e8eef6;
}

.bo-template-sms-window {
    align-self: start;
    width: min(100%, 520px);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.bo-template-sms-recipient {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    background: #071426;
    color: #ffffff;
}

.bo-template-sms-recipient span {
    color: #d8e2ef;
    font-size: 12px;
    font-weight: 750;
}

.bo-template-sms-recipient strong {
    font-size: 14px;
}

.bo-template-sms-thread {
    display: grid;
    gap: 8px;
    min-height: 230px;
    padding: 24px 20px;
    background: #f8fafc;
}

.bo-template-sms-thread p {
    align-self: start;
    max-width: 88%;
    margin: 0 0 0 auto;
    padding: 14px 16px;
    border-radius: 8px 8px 2px 8px;
    background: #e5f0ff;
    color: #0f172a;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.bo-template-sms-thread small {
    justify-self: end;
    color: #64748b;
    font-weight: 700;
}

.bo-template-sms-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: min(100%, 520px);
    margin: 0 auto;
    color: #334155;
    font-size: 13px;
}

.bo-newsletter-send-summary {
    align-items: stretch;
    margin: 16px 0;
}

.bo-newsletter-send-summary > div {
    flex: 1 1 0;
    min-width: 0;
}

:root[data-theme="dark"] .bo-template-column,
:root[data-theme="dark"] .bo-communication-hero,
:root[data-theme="dark"] .bo-queue-stop-banner,
:root[data-theme="dark"] .bo-campaign-history-card,
:root[data-theme="dark"] .bo-campaign-history-empty {
    background: var(--bo-panel, #111827);
    box-shadow: none;
}

:root[data-theme="dark"] .bo-communication-hero {
    background:
        linear-gradient(105deg, rgba(227, 6, 19, 0.13), transparent 48%),
        var(--bo-panel, #111827);
}

:root[data-theme="dark"] .bo-communication-metrics > div,
:root[data-theme="dark"] .bo-newsletter-send-summary > div,
:root[data-theme="dark"] .bo-recipient-chip,
:root[data-theme="dark"] .bo-campaign-history-card dl > div {
    background: rgba(2, 8, 23, 0.32);
}

:root[data-theme="dark"] .bo-campaign-history-card:hover {
    border-color: rgba(248, 113, 113, 0.55);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .bo-campaign-history-card dd.is-success {
    color: #4ade80;
}

:root[data-theme="dark"] .bo-campaign-history-card dd.is-warning {
    color: #fbbf24;
}

:root[data-theme="dark"] .bo-template-row:hover,
:root[data-theme="dark"] .bo-audience-option:has(input:checked),
:root[data-theme="dark"] .bo-consent-notice {
    background: rgba(227, 6, 19, 0.11);
}

:root[data-theme="dark"] .bo-queue-stop-banner {
    background: rgba(127, 29, 29, 0.22);
}

:root[data-theme="dark"] .bo-queue-control-card,
:root[data-theme="dark"] .bo-queue-control-card dl > div,
:root[data-theme="dark"] .bo-planned-sms-metrics > div,
:root[data-theme="dark"] .bo-planned-sms-days > div {
    background: rgba(2, 8, 23, 0.3);
}

:root[data-theme="dark"] .bo-planned-sms-days > div.has-messages {
    border-color: rgba(74, 222, 128, 0.42);
    background: rgba(22, 101, 52, 0.22);
}

:root[data-theme="dark"] .bo-planned-sms-days strong {
    color: var(--bo-text, #ffffff);
}

:root[data-theme="dark"] .bo-planned-sms-notice {
    background: rgba(146, 64, 14, 0.24);
}

:root[data-theme="dark"] .bo-queue-control-card.is-paused,
:root[data-theme="dark"] .bo-queue-pause-detail {
    background: rgba(127, 29, 29, 0.2);
}

@media (max-width: 1180px) {
    .bo-communication-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .bo-communication-metrics {
        width: 100%;
    }

    .bo-communication-metrics > div {
        flex: 1 1 0;
    }

    .bo-newsletter-workspace,
    .bo-template-workspace {
        grid-template-columns: minmax(0, 1fr);
    }

    .bo-newsletter-preview-panel,
    .bo-template-preview-panel {
        position: static;
    }

    .bo-planned-sms-head {
        align-items: stretch;
        flex-direction: column;
    }

    .bo-planned-sms-metrics {
        width: 100%;
    }

    .bo-planned-sms-days {
        grid-template-columns: repeat(4, minmax(100px, 1fr));
    }

    .bo-planned-sms-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .bo-template-library,
    .bo-campaign-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .bo-campaign-summary {
        position: static;
    }

    .bo-queue-campaign-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .bo-campaign-history-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .bo-queue-control-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 620px) {
    .bo-template-column-head,
    .bo-template-row,
    .bo-communication-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .bo-template-row-actions {
        justify-content: flex-end;
    }

    .bo-communication-metrics,
    .bo-audience-options,
    .bo-newsletter-send-summary,
    .bo-bulk-sms-delivery-summary {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .bo-newsletter-preview-shell {
        min-height: 600px;
        padding: 5px;
    }

    .bo-newsletter-preview-shell iframe {
        min-height: 590px;
    }

    .bo-template-sms-preview {
        min-height: 360px;
        padding: 12px;
    }

    .bo-template-sms-recipient,
    .bo-template-sms-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .bo-message-queue-filter input[type="search"],
    .bo-message-queue-filter select,
    .bo-planned-sms-filter input,
    .bo-planned-sms-filter select,
    .bo-planned-sms-filter .bo-button {
        width: 100%;
        min-width: 0;
    }

    .bo-planned-sms-metrics,
    .bo-planned-sms-filter {
        grid-template-columns: minmax(0, 1fr);
    }

    .bo-planned-sms-days {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bo-planned-sms-footnote {
        flex-direction: column;
    }

    .bo-campaign-history-head,
    .bo-campaign-history-card > header,
    .bo-queue-stop-banner,
    .bo-queue-control-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .bo-queue-stop-banner .bo-button,
    .bo-queue-control-head .bo-button,
    .bo-queue-control-actions .bo-button {
        width: 100%;
    }

    .bo-campaign-history-card dl,
    .bo-queue-control-card dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
