@font-face {
    font-family: "Nexa";
    src: url("../fonts/nexa/nexa-regular.woff2") format("woff2"),
         url("../fonts/nexa/nexa-regular.woff") format("woff");
    font-weight: 300 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Nexa";
    src: url("../fonts/nexa/nexa-bold.woff2") format("woff2"),
         url("../fonts/nexa/nexa-bold.woff") format("woff");
    font-weight: 600 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bs-font-sans-serif: "Nexa", "Public Sans", "Segoe UI", Arial, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-primary: #696cff;
    --bs-primary-rgb: 105, 108, 255;
    --bs-link-color: #696cff;
    --bs-link-hover-color: #5f62e8;
    --sadekar-ui-scale: 1;
}

html {
    font-size: calc(16px * var(--sadekar-ui-scale));
}

body {
    font-family: var(--bs-font-sans-serif);
    font-weight: 400;
}

@media (min-width: 1200px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        max-width: min(95vw, 1520px);
    }

    .layout-navbar.container-xxl,
    .content-footer .container-xxl {
        max-width: min(95vw, 1520px);
    }

    .content-area.container-p-y {
        padding-top: 1.2rem !important;
        padding-bottom: 1.2rem !important;
    }
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 500;
    letter-spacing: -0.01em;
}

strong,
b {
    font-weight: 500;
}

.fw-light,
.fw-lighter {
    font-weight: 300 !important;
}

.fw-normal,
.fw-medium {
    font-weight: 400 !important;
}

.fw-semibold,
.fw-bold,
.fw-bolder {
    font-weight: 500 !important;
}

.layout-navbar {
    z-index: 20;
}

.navbar-nav-right {
    min-width: 0;
}

.sadekar-topbar-shell {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sadekar-topbar-page {
    flex: 0 1 16rem;
    min-width: 10.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sadekar-topbar-title-group {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sadekar-topbar-tools {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.sadekar-topbar-user {
    flex: 0 0 auto;
}

.content-area {
    min-height: calc(100vh - 12rem);
    transition: opacity 0.18s ease;
}

.content-area.is-loading {
    opacity: 0.58;
    pointer-events: none;
}

.sadekar-sidebar {
    --bs-menu-color: #1f2937;
    --bs-menu-color-rgb: 31, 41, 55;
    --bs-menu-hover-color: #111827;
    --bs-menu-active-color: #111827;
    --bs-menu-active-bg: #edf2f7;
    background: #fff;
    border-inline-end: 1px solid #eef2f7;
    box-shadow: inset -1px 0 0 rgba(15, 23, 42, 0.02);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overflow-x: hidden;
}

.sadekar-sidebar .menu-inner-shadow {
    display: none;
}

.sadekar-sidebar-brand {
    min-height: 5.1rem;
    padding: 1.05rem 0.95rem 0.95rem 1.05rem;
    gap: 0.55rem;
    position: relative;
}

.sadekar-brand-link {
    min-width: 10.5rem;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    padding: 0.2rem 0.2rem 0.2rem 0.1rem;
    border-radius: 0.7rem;
}

.sadekar-brand-lockup {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.sadekar-brand-title {
    color: #101828;
    font-size: 1.24rem;
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 500;
}

.sadekar-brand-subtitle {
    color: #98a2b3;
    font-size: 0.72rem;
    line-height: 1.18;
    letter-spacing: 0.02em;
    font-weight: 400;
}

.sadekar-sidebar-toggle {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #667085;
    background: transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sadekar-sidebar .app-brand .layout-menu-toggle {
    position: static !important;
    inset-inline-start: auto !important;
    width: 2rem !important;
    height: 2rem !important;
    min-width: 2rem !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.65rem !important;
    background: #fff !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

.sadekar-sidebar .app-brand .layout-menu-toggle::before {
    display: none !important;
}

.sadekar-sidebar .app-brand .layout-menu-toggle i {
    color: inherit !important;
    inline-size: auto !important;
    block-size: auto !important;
}

.sadekar-sidebar-toggle:hover {
    background: #f8fafc;
    border-color: #e8edf5;
    color: #344054;
    transform: none;
}

.sadekar-sidebar .menu-divider {
    margin: 0 0.9rem;
    border-color: #eef2f7;
}

.sadekar-sidebar .menu-inner {
    align-items: stretch;
    flex: 1 1 auto;
    block-size: auto !important;
    overflow: hidden !important;
    padding-inline: 0.55rem;
}

.sadekar-sidebar .ps__rail-y,
.sadekar-sidebar .ps__thumb-y {
    display: none !important;
}

.sadekar-menu-header {
    margin: 0.4rem 0.1rem 0.3rem;
    padding-inline: 0.45rem;
}

.sadekar-menu-header-spaced {
    margin-top: 0.8rem;
}

.sadekar-sidebar .menu-header .menu-header-text {
    color: #667085;
    font-size: 0.64rem;
    letter-spacing: 0.14em;
}

.sadekar-sidebar .menu-item {
    margin: 0.08rem 0;
}

.sadekar-sidebar.menu-vertical .menu-inner > .menu-item,
.sadekar-sidebar.menu-vertical .menu-inner > .menu-header {
    inline-size: auto !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-inline: 0.35rem;
}

.sadekar-sidebar.menu-vertical .menu-header::before {
    display: none;
}

.sadekar-sidebar.menu-vertical .menu-inner > .menu-item > .menu-link,
.sadekar-sidebar.menu-vertical .menu-inner > .menu-header {
    margin-inline: 0 !important;
    width: 100%;
    box-sizing: border-box;
}

.sadekar-sidebar.menu-vertical .menu-item.active::before,
.sadekar-sidebar.menu-vertical .menu-item.active:not(.open) > .menu-link:not(.menu-toggle)::before {
    display: none;
}

.sadekar-sidebar.menu-vertical .menu-item .menu-link {
    display: grid;
    grid-template-columns: 1.1rem minmax(0, 1fr);
    align-items: center;
    min-height: 2.5rem;
    padding: 0.4rem 0.55rem;
    gap: 0.65rem;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    color: #1f2937 !important;
    margin-block: 0 !important;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.sadekar-sidebar.menu-vertical .menu-item .menu-link:hover {
    background: #f5f7fa !important;
    border-color: #e2e8f0;
    color: #111827 !important;
}

.sadekar-sidebar.menu-vertical .menu-item .menu-icon {
    width: 1.1rem;
    height: 1.1rem;
    margin-inline-end: 0;
    display: inline-block;
    color: #1f2937 !important;
    font-size: 1rem;
    opacity: 1 !important;
    background: transparent !important;
    transition: color 0.18s ease;
}

.sadekar-sidebar.menu-vertical .menu-item .menu-link i[class*="bx"],
.sadekar-sidebar.menu-vertical .menu-item .menu-link i[class*="fa"] {
    color: #1f2937 !important;
    background: transparent !important;
    opacity: 1 !important;
}

.sadekar-sidebar.menu-vertical .menu-item .menu-link i[class*="fa"] {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

.sadekar-sidebar.menu-vertical .menu-item .menu-link > div:not(.badge) {
    color: inherit !important;
    font-size: 0.86rem;
    font-weight: 400;
}

.sadekar-sidebar.menu-vertical .menu-item.active > .menu-link {
    background: color-mix(in sRGB, var(--bs-paper-bg) 84%, var(--bs-primary)) !important;
    border-color: transparent;
    border-radius: 0.55rem;
    color: var(--bs-primary) !important;
    box-shadow: none;
}

.sadekar-sidebar.menu-vertical .menu-item.active > .menu-link .menu-icon {
    color: var(--bs-primary) !important;
    background: transparent !important;
}

.sadekar-sidebar.menu-vertical .menu-item.active > .menu-link > div:not(.badge) {
    color: var(--bs-primary) !important;
}

.sadekar-sidebar.menu-vertical .menu-item.active > .menu-link::after {
    display: none;
}

.sadekar-sidebar-user {
    margin: auto 0.85rem 0.85rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid #edf1f6;
    border-radius: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #fbfcfe;
    box-shadow: none;
}

.sadekar-sidebar-user .avatar-initial {
    color: #1f2937;
    background: #eef2f7 !important;
    box-shadow: none;
}

.sadekar-sidebar-user-copy {
    min-width: 0;
}

.sadekar-sidebar-user-copy h6 {
    line-height: 1.1;
    font-size: 0.84rem;
    font-weight: 400;
    color: #111827;
}

.sadekar-sidebar-role {
    display: block;
    margin-top: 0.14rem;
    color: #98a2b3;
    font-size: 0.72rem;
    line-height: 1.2;
}

html.layout-menu-collapsed .sadekar-brand-link {
    justify-content: center;
    padding-inline: 0;
}

html.layout-menu-collapsed .sadekar-brand-lockup {
    display: none;
}

html.layout-menu-collapsed .sadekar-sidebar-brand {
    min-height: 0;
    justify-content: center;
    padding: 0.55rem 0 0.35rem;
}

html.layout-menu-collapsed .sadekar-sidebar-toggle {
    display: none !important;
}

html.layout-menu-collapsed .sadekar-brand-link {
    display: none !important;
}

html.layout-menu-collapsed .sadekar-sidebar .menu-inner {
    padding-inline: 0.35rem;
    padding-top: 0.25rem;
}

html.layout-menu-collapsed .sadekar-sidebar .menu-divider {
    display: none;
}

html.layout-menu-collapsed .sadekar-sidebar.menu-vertical .menu-inner > .menu-item,
html.layout-menu-collapsed .sadekar-sidebar.menu-vertical .menu-inner > .menu-header {
    width: 100%;
    max-width: 100%;
    padding-inline: 0;
}

html.layout-menu-collapsed .sadekar-sidebar.menu-vertical .menu-inner > .menu-header {
    display: none !important;
}

html.layout-menu-collapsed .sadekar-sidebar.menu-vertical .menu-inner > .menu-item > .menu-link,
html.layout-menu-collapsed .sadekar-sidebar.menu-vertical .menu-inner > .menu-header {
    margin-inline: auto !important;
    width: auto;
}

html.layout-menu-collapsed .sadekar-sidebar.menu-vertical .menu-item .menu-link {
    width: 2.45rem;
    min-height: 2.45rem;
    margin-inline: auto;
    padding: 0;
    justify-content: center;
    justify-items: center;
    align-content: center;
    grid-template-columns: 1fr;
    border-radius: 0.7rem;
}

html.layout-menu-collapsed .sadekar-sidebar.menu-vertical .menu-item .menu-icon {
    width: 1rem;
    height: 1rem;
    font-size: 0.95rem;
    color: #1f2937 !important;
    background: transparent !important;
    display: inline-block !important;
    opacity: 1 !important;
}

html.layout-menu-collapsed .sadekar-sidebar.menu-vertical .menu-item.active > .menu-link::after {
    display: none;
}

html.layout-menu-collapsed .sadekar-sidebar-user {
    width: 2.55rem;
    height: 2.55rem;
    margin: auto auto 0.7rem;
    padding: 0;
    justify-content: center;
    border-radius: 0.85rem;
}

html.layout-menu-collapsed .sadekar-sidebar-user-copy {
    display: none;
}

html.layout-menu-collapsed .sadekar-sidebar-user .avatar {
    margin: 0;
}

.page-title {
    margin: 0;
    color: var(--bs-heading-color);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-date {
    font-size: 0.8125rem;
    white-space: nowrap;
}

.sadekar-navbar-toggle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    align-items: center;
    justify-content: center;
    color: #697a8d;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sadekar-navbar-toggle:hover {
    background: rgba(var(--bs-primary-rgb), 0.08);
    color: var(--bs-primary);
}

@media (min-width: 1200px) {
    .sadekar-navbar-toggle,
    .sadekar-sidebar-toggle {
        display: none !important;
    }

    .sadekar-sidebar-brand {
        padding-right: 1rem;
    }
}

.scan-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 38rem;
    width: auto;
    max-width: 42rem;
    min-width: 20rem;
}

.scan-inline .input-group {
    flex: 1 1 auto;
}

.topbar-actions {
    display: flex;
    gap: 0.75rem;
    flex: 0 0 auto;
}

.sadekar-alert {
    margin-bottom: 1.5rem;
}

.sadekar-inline-link {
    text-decoration: underline;
    text-underline-offset: 0.18rem;
}

.input-group-text .icon-base,
.input-group-text .bx {
    font-size: 0.9rem;
    color: #475467;
}

.btn .icon-base,
.btn .bx {
    font-size: 0.86rem;
}

.layout-navbar .icon-base,
.layout-navbar .bx {
    color: #475467;
}

.auth-entry-switch .btn .icon-base,
.auth-entry-switch .btn .bx,
.authentication-wrapper .btn .icon-base,
.authentication-wrapper .btn .bx {
    font-size: 0.88rem;
}

.auth-submit {
    min-height: 2.9rem;
    font-size: 1rem;
    font-weight: 500;
}

.auth-entry-switch {
    display: grid;
    gap: 0.7rem;
}

.auth-entry-switch-label {
    display: block;
    text-align: center;
    color: #6b7280;
    font-size: 0.82rem;
    line-height: 1.45;
}

.auth-entry-switch .btn {
    min-height: 2.85rem;
}

.authentication-sadekar {
    max-width: 28rem;
}

.sadekar-whatsapp-icon {
    width: 1rem;
    height: 1rem;
    object-fit: contain;
}

.field-error {
    color: var(--bs-danger);
    font-size: 0.8125rem;
}

.sms-verify-feedback {
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    background: #f8f7ff;
    color: #566074;
}

.sms-verify-feedback.is-success {
    color: #0b7a58;
    background: #eefbf5;
}

.sms-verify-feedback.is-warning {
    color: #9a6400;
    background: #fff7e1;
}

.sms-verify-feedback.is-error {
    color: #b42318;
    background: #fff1f3;
}

.sms-verify-panel.is-skip-mode {
    border-color: #c7d2fe !important;
    background: #f8faff;
}

.sms-verify-panel.is-skip-mode .sms-verify-feedback {
    background: #eef2ff;
    color: #3743a8;
}

.dashboard-hero-card {
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e6ebf2;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.dashboard-page {
    align-items: start;
}

.dashboard-hero-card .card-body {
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}

.dashboard-hero-metric-grid > [class*="col-"] {
    display: flex;
}

.dashboard-metric-tile {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dfe5ef;
    border-radius: 0.8rem;
    padding: 1rem 1.05rem 0.95rem;
    display: grid;
    gap: 0.2rem;
    min-height: 100%;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.dashboard-metric-tile:hover {
    border-color: #cfd7e3;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.dashboard-metric-tile span,
.dashboard-metric-tile small {
    color: #667085;
    font-size: 0.79rem;
    letter-spacing: 0.01em;
}

.dashboard-metric-tile strong {
    color: #111827;
    font-size: 1.26rem;
    line-height: 1.15;
    font-weight: 400;
}

.dashboard-page .dashboard-metric-tile {
    width: 100%;
}

.dashboard-search-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dashboard-search-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.dashboard-inline-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.dashboard-inline-metric {
    display: grid;
    gap: 0.18rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid #e4e9f2;
    border-radius: 0.9rem;
    background: #fbfcfe;
}

.dashboard-inline-metric span {
    color: #667085;
    font-size: 0.77rem;
    line-height: 1.2;
}

.dashboard-inline-metric strong {
    color: #111827;
    font-size: 1rem;
    line-height: 1.15;
    font-weight: 400;
}

.dashboard-search-hint {
    border: 1px dashed #d8deea;
    border-radius: 0.9rem;
    padding: 0.8rem 0.95rem;
    background: #fbfcfe;
    color: #667085;
    font-size: 0.84rem;
    line-height: 1.45;
}

.repair-header-card .card-body {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.repair-header-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px) auto;
    align-items: center;
    gap: 0.9rem 1.25rem;
}

.repair-header-main h4 {
    line-height: 1.15;
    font-size: 1.65rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.repair-header-barcode {
    display: grid;
    align-content: start;
    justify-items: stretch;
    gap: 0.25rem;
    padding-top: 0.1rem;
}

.repair-header-barcode-code {
    color: var(--bs-heading-color);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.2;
}

.repair-header-barcode-svg {
    overflow: hidden;
}

.repair-header-barcode-svg svg {
    width: 100%;
    height: auto;
    display: block;
}

.compact-tile {
    padding: 0.9rem 1rem 0.85rem;
    gap: 0.2rem;
}

.compact-tile strong {
    font-size: 1.02rem;
    font-weight: 400;
}

.dashboard-metric-tile.success {
    background: #f8fcf9;
    border-color: #c7d9ce;
}

.dashboard-metric-tile.warning {
    background: #fffaf2;
    border-color: #e5d2aa;
}

.dashboard-metric-tile.danger {
    background: #fff7f7;
    border-color: #e4c2c2;
}

.dashboard-metric-tile.success strong {
    color: #166534;
}

.dashboard-metric-tile.warning strong {
    color: #9a6700;
}

.dashboard-metric-tile.danger strong {
    color: #b42318;
}

.repairs-page .dashboard-hero-card .card-body {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.repairs-hero-metrics {
    align-items: stretch;
}

.repairs-hero-metrics > [class*="col-"] {
    display: flex;
}

.repairs-page .dashboard-hero-card .dashboard-metric-tile {
    width: 100%;
    min-height: 4.75rem;
    padding: 0.65rem 0.8rem;
    gap: 0.08rem;
    border-radius: 0.9rem;
}

.repairs-page .dashboard-hero-card .dashboard-metric-tile span {
    font-size: 0.76rem;
    line-height: 1.1;
}

.repairs-page .dashboard-hero-card .dashboard-metric-tile strong {
    font-size: 1.05rem;
    line-height: 1.05;
    white-space: nowrap;
}

.master-dashboard-page {
    align-items: start;
}

.master-hero-card .card-body {
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}

.master-hero-scan {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 42rem;
}

.master-hero-scan .input-group {
    flex: 1 1 auto;
}

.master-quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.master-metric-grid > [class*="col-"] {
    display: flex;
}

.master-metric-grid .dashboard-metric-tile {
    width: 100%;
}

.master-queue-card .card-body {
    padding-top: 1rem;
}

.delivery-page {
    align-items: start;
}

.delivery-hero-card .card-body {
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}

.delivery-metric-grid > [class*="col-"] {
    display: flex;
}

.delivery-metric-grid .dashboard-metric-tile {
    width: 100%;
}

.delivery-start-form {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 7rem;
}

.delivery-batch-workspace {
    display: grid;
    gap: 1rem;
}

.delivery-scan-form {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.delivery-scan-input-wrap {
    position: relative;
    flex: 1 1 28rem;
    min-width: 16rem;
}

.delivery-scan-icon {
    position: absolute;
    top: 50%;
    left: 0.9rem;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.05rem;
    pointer-events: none;
}

.delivery-scan-input {
    min-height: 3rem;
    padding-left: 2.6rem;
}

.delivery-batch-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.delivery-batch-actions form {
    margin: 0;
}

.delivery-batch-table strong,
.delivery-ready-table strong {
    font-weight: 400;
}

.master-filter-form .form-control,
.master-filter-form .form-select {
    min-height: 2.75rem;
}

.master-orders-table th {
    color: #667085;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    white-space: nowrap;
}

.master-orders-table td {
    color: #344054;
    font-size: 0.9rem;
    vertical-align: middle;
}

.master-orders-table code {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.38rem;
    border-radius: 0.45rem;
    background: #f5f7fb;
    color: #344054;
    font-size: 0.82rem;
}

.table-row-overdue > td {
    background: rgba(239, 68, 68, 0.035);
}

.table-row-overdue:hover > td {
    background: rgba(239, 68, 68, 0.06);
}

.timeline-list {
    display: grid;
    gap: 1rem;
}

.timeline-item {
    position: relative;
    padding-left: 1rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: rgba(var(--bs-primary-rgb), 0.9);
}

.timeline-title {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--bs-heading-color);
}

.timeline-meta,
.timeline-note {
    color: var(--bs-secondary-color);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.status-distribution {
    display: grid;
    gap: 0.75rem;
}

.dashboard-status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.distribution-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.9rem;
    background: #fff;
}

.distribution-card .dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
}

.distribution-card .label {
    flex: 1 1 auto;
    color: var(--bs-body-color);
}

.distribution-card strong {
    color: var(--bs-heading-color);
}

.distribution-copy {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.distribution-copy small {
    color: #98a2b3;
    font-size: 0.7rem;
    line-height: 1.2;
}

.dashboard-status-grid .distribution-card {
    gap: 0.45rem;
    padding: 0.65rem 0.7rem;
    border-radius: 0.8rem;
    min-height: 3.2rem;
}

.dashboard-status-grid .distribution-card .label {
    font-size: 0.75rem;
    line-height: 1.15;
}

.dashboard-status-grid .distribution-card strong {
    font-size: 0.9rem;
    font-weight: 400;
}

.repair-finance-list,
.repair-inline-list {
    display: grid;
    gap: 0.875rem;
}

.repair-finance-row,
.repair-inline-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.repair-finance-row span,
.repair-inline-list span {
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
}

.repair-finance-row strong,
.repair-inline-list strong {
    color: var(--bs-heading-color);
    font-weight: 400;
}

.repair-finance-row.is-emphasis {
    padding-top: 0.875rem;
    border-top: 1px solid var(--bs-border-color);
}

.repair-delivery-summary p {
    margin-bottom: 0.6rem;
}

.empty-state-inline {
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--bs-secondary-color);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 1.75rem;
    font-weight: 400;
}

.btn {
    font-weight: 400;
}

.card-header h5,
.card-header .h5 {
    font-weight: 400;
}

.repair-detail-page .card {
    border-radius: 1rem;
}

.repair-detail-page .card-header {
    padding-top: 1rem;
    padding-bottom: 0.8rem;
}

.repair-detail-page .card-header h5 {
    font-size: 0.96rem;
    letter-spacing: -0.01em;
}

.repair-detail-page .card-body {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.repair-detail-page .repair-header-actions {
    align-self: start;
    justify-content: flex-end;
}

.repair-detail-page .repair-header-main .text-muted,
.repair-detail-page .timeline-meta,
.repair-detail-page .timeline-note,
.repair-detail-page .repair-inline-list span,
.repair-detail-page .repair-finance-row span {
    font-size: 0.82rem;
}

.master-detail-page .repair-header-main h4 {
    font-size: 1.5rem;
}

.master-detail-summary-grid > [class*="col-"] {
    display: flex;
}

.master-detail-summary-grid .dashboard-metric-tile {
    width: 100%;
}

.master-side-stack {
    display: grid;
    gap: 1.5rem;
}

.master-side-form {
    display: grid;
    gap: 0.9rem;
}

.master-note-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.master-note-card {
    display: grid;
    gap: 0.45rem;
    padding: 0.95rem 1rem;
    border: 1px solid #e7ebf3;
    border-radius: 0.95rem;
    background: #fbfcfe;
}

.master-note-card span {
    color: #667085;
    font-size: 0.78rem;
}

.master-note-card p {
    margin: 0;
    color: #344054;
    font-size: 0.92rem;
    line-height: 1.55;
}

.master-service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.master-service-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid #e1e7f0;
    border-radius: 999px;
    background: #fff;
}

.master-service-chip strong {
    color: #111827;
    font-size: 0.88rem;
    font-weight: 400;
}

.master-service-chip span {
    color: #667085;
    font-size: 0.82rem;
}

.master-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.master-photo-card {
    display: grid;
    gap: 0.65rem;
    color: inherit;
    text-decoration: none;
}

.master-photo-frame {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid #e6ebf2;
    border-radius: 1rem;
    background: #f8fafc;
}

.master-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.master-photo-meta {
    display: grid;
    gap: 0.1rem;
}

.master-photo-meta strong {
    color: #111827;
    font-size: 0.87rem;
    font-weight: 400;
}

.master-photo-meta small {
    color: #667085;
    font-size: 0.78rem;
}

.master-log-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.master-log-column {
    display: grid;
    gap: 0.8rem;
}

.master-log-title {
    color: #667085;
    font-size: 0.79rem;
}

.master-log-list {
    display: grid;
    gap: 0.75rem;
}

.master-log-item {
    display: grid;
    gap: 0.28rem;
    padding: 0.9rem 0.95rem;
    border: 1px solid #e6ebf2;
    border-radius: 0.95rem;
    background: #fbfcfe;
}

.master-log-item strong {
    color: #111827;
    font-size: 0.88rem;
    font-weight: 400;
}

.master-log-item small,
.master-log-item p {
    margin: 0;
    color: #667085;
    font-size: 0.8rem;
    line-height: 1.45;
}

.badge-neutral {
    color: #697a8d;
    background: rgba(133, 146, 163, 0.16);
}

.badge-info {
    color: #03c3ec;
    background: rgba(3, 195, 236, 0.16);
}

.badge-warning {
    color: #ffab00;
    background: rgba(255, 171, 0, 0.16);
}

.badge-danger {
    color: #ff3e1d;
    background: rgba(255, 62, 29, 0.16);
}

.badge-success,
.badge-ready {
    color: #28c76f;
    background: rgba(40, 199, 111, 0.16);
}

code {
    font-size: 0.75rem;
    background: rgba(105, 108, 255, 0.08);
    color: var(--bs-primary);
    border-radius: 0.45rem;
    padding: 0.2rem 0.45rem;
}

.btn-soft {
    color: #566074;
    background: #fff;
    border: 1px solid var(--bs-border-color);
}

.btn-soft:hover {
    color: var(--bs-primary);
    border-color: rgba(var(--bs-primary-rgb), 0.28);
    background: rgba(var(--bs-primary-rgb), 0.06);
}

.btn-gold {
    color: #fff;
    background: var(--bs-primary);
    border: 1px solid var(--bs-primary);
}

.btn-gold:hover {
    color: #fff;
    background: #5f62e8;
    border-color: #5f62e8;
}

.btn-danger-outline {
    color: var(--bs-danger);
    background: #fff;
    border: 1px solid rgba(255, 62, 29, 0.32);
}

.btn-danger-outline:hover {
    color: #fff;
    background: var(--bs-danger);
}

.panel-card,
.surface-panel,
.surface-section {
    background: #fff;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    box-shadow: var(--bs-box-shadow-xs);
}

.panel-card,
.surface-panel {
    padding: 1.3rem;
}

.surface-section {
    padding: 1.3rem;
}

.section-gap {
    margin-top: 1.5rem;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-head h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--bs-heading-color);
    font-weight: 400;
}

.toolbar-grid,
.form-grid,
.cards-two,
.stats-grid {
    display: grid;
    gap: 1rem;
}

.toolbar-grid,
.form-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.toolbar-grid > *,
.form-grid > * {
    grid-column: span 12;
}

.form-grid.two-col > * {
    grid-column: span 6;
}

.form-grid .col-span-2 {
    grid-column: span 12;
}

.form-label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--bs-heading-color);
    font-size: 0.79rem;
    font-weight: 400;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.6rem;
    padding: 0.68rem 0.8rem;
    font: inherit;
    color: var(--bs-body-color);
    background: #fff;
}

.form-textarea {
    resize: vertical;
    min-height: 7rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(var(--bs-primary-rgb), 0.42);
    box-shadow: 0 0 0 0.18rem rgba(var(--bs-primary-rgb), 0.14);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.settings-page {
    display: grid;
    gap: 1rem;
}

.settings-hero {
    border-color: #e8ecf3;
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
}

.settings-hero-copy {
    display: grid;
    gap: 0.45rem;
    max-width: 48rem;
}

.settings-hero-copy .badge {
    justify-self: start;
    width: auto;
}

.settings-hero-copy h2 {
    margin: 0;
    color: #101828;
    font-size: 1.32rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.settings-hero-copy p {
    margin: 0;
    color: #667085;
    font-size: 0.9rem;
    line-height: 1.55;
}

.settings-form {
    display: grid;
    gap: 1rem;
}

.settings-card {
    display: grid;
    gap: 1rem;
    border-color: #e7ebf2;
}

.settings-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.1rem;
}

.settings-card-head h3 {
    margin: 0.12rem 0 0;
    color: #101828;
    font-size: 1rem;
    font-weight: 400;
}

.settings-card-head p {
    margin: 0.28rem 0 0;
    color: #667085;
    font-size: 0.84rem;
    line-height: 1.55;
}

.settings-card-kicker {
    display: inline-flex;
    align-items: center;
    color: #667085;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.settings-grid {
    display: grid;
    gap: 0.95rem;
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.settings-grid > * {
    grid-column: span 12;
}

.settings-grid-2 > * {
    grid-column: span 6;
}

.settings-grid-compact {
    margin-bottom: 0.2rem;
}

.settings-span-full {
    grid-column: span 12;
}

.settings-field {
    min-width: 0;
}

.settings-help {
    display: inline-block;
    margin-top: 0.45rem;
    color: #98a2b3;
    font-size: 0.76rem;
}

.settings-file-picker {
    position: relative;
}

.settings-file-input {
    padding: 0.55rem !important;
    border-style: dashed;
    border-color: #d8dfeb;
    background: #fbfcfe;
}

.settings-file-input::file-selector-button {
    margin-right: 0.8rem;
    border: 0;
    border-radius: 0.55rem;
    padding: 0.55rem 0.9rem;
    background: #eef2ff;
    color: var(--bs-primary);
    font: inherit;
    cursor: pointer;
}

.settings-logo-preview {
    margin-top: 0.8rem;
    max-width: 13rem;
    border: 1px solid #e6ebf2;
    border-radius: 0.85rem;
    background: #fff;
    padding: 0.85rem;
}

.settings-logo-preview img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.settings-color-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.settings-color-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0.95rem;
    border: 1px solid #e6ebf2;
    border-radius: 0.85rem;
    background: #fbfcfe;
}

.settings-color-copy {
    display: grid;
    gap: 0.14rem;
}

.settings-color-copy strong {
    color: #101828;
    font-size: 0.88rem;
    font-weight: 400;
}

.settings-color-copy small {
    color: #98a2b3;
    font-size: 0.75rem;
}

.settings-color-input {
    width: 2.7rem;
    min-width: 2.7rem;
    height: 2.2rem;
    padding: 0;
    border: 1px solid #d9e0eb;
    border-radius: 0.7rem;
    background: #fff;
    cursor: pointer;
}

.settings-toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.settings-toggle-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.settings-toggle-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border: 1px solid #e6ebf2;
    border-radius: 0.9rem;
    background: #fbfcfe;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.settings-toggle-card:hover {
    border-color: #d8e0ec;
    background: #fff;
}

.settings-toggle-card input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 2.5rem;
    min-width: 2.5rem;
    height: 1.5rem;
    margin: 0.05rem 0 0;
    border: 1px solid #d6deea;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.settings-toggle-card input[type="checkbox"]::before {
    content: "";
    position: absolute;
    top: 0.14rem;
    left: 0.16rem;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    background: #c9d3e1;
    transition: transform 0.18s ease, background-color 0.18s ease;
}

.settings-toggle-card input[type="checkbox"]:checked {
    background: #eef2ff;
    border-color: rgba(var(--bs-primary-rgb), 0.28);
}

.settings-toggle-card input[type="checkbox"]:checked::before {
    transform: translateX(0.95rem);
    background: var(--bs-primary);
}

.settings-toggle-copy {
    display: grid;
    gap: 0.14rem;
}

.settings-toggle-copy strong {
    color: #101828;
    font-size: 0.88rem;
    font-weight: 400;
}

.settings-toggle-copy span {
    color: #667085;
    font-size: 0.78rem;
    line-height: 1.5;
}

.settings-actions {
    margin-top: 0;
}

@media (max-width: 991.98px) {
    .settings-color-grid,
    .settings-toggle-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .settings-grid-2 > * {
        grid-column: span 12;
    }
}

@media (max-width: 767.98px) {
    .settings-color-grid,
    .settings-toggle-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .settings-card {
        padding: 1rem;
    }
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid var(--bs-border-color);
    padding: 0.95rem 0.85rem;
    text-align: left;
    vertical-align: top;
}

.data-table thead th {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--bs-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.card h6,
.card .h6 {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.menu-vertical .menu-item .menu-link,
.menu-vertical .menu-item .menu-link div,
.menu-header-text,
.app-brand .app-brand-text,
.dropdown-user h6,
.sadekar-sidebar-user-copy h6 {
    font-weight: 400;
}

.app-brand .app-brand-text {
    font-weight: 500;
}

.menu-vertical .menu-item .menu-link,
.menu-vertical .menu-item .menu-link div,
.menu-header-text,
.menu-vertical .menu-item .menu-icon,
.navbar .dropdown-menu .dropdown-item,
.form-check-label,
.table > :not(caption) > * > * {
    font-weight: 400;
}

.text-heading,
.text-body-emphasis,
.page-title,
.page-title + .page-date,
.section-head h3,
.card-header h5,
.card h6,
.form-label,
.btn,
.badge {
    letter-spacing: 0;
}

.actions-cell {
    white-space: nowrap;
}

.actions-cell form {
    display: inline-flex;
}

.table-wrap {
    overflow-x: auto;
}

.repairs-page .table-danger-subtle > td {
    background: rgba(255, 62, 29, 0.04);
}

.reports-page {
    display: grid;
    gap: 0.95rem;
}

.reports-filter-card {
    max-width: 56rem;
    border-radius: 1rem;
}

.reports-filter-card .card-body {
    padding: 1rem 1.1rem;
}

.reports-filter-head {
    margin-bottom: 0.9rem;
}

.reports-filter-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, auto));
    gap: 0.75rem;
    align-items: end;
}

.reports-filter-field {
    min-width: 10.5rem;
}

.reports-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.report-stat-card {
    background: #fff;
    border: 1px solid #e8eaf3;
    border-radius: 1rem;
    padding: 1rem 1.05rem;
    box-shadow: 0 12px 28px rgba(47, 43, 61, 0.06);
    display: grid;
    gap: 0.35rem;
}

.report-stat-card span {
    color: #6b7280;
    font-size: 0.8rem;
}

.report-stat-card strong {
    color: #1f2937;
    font-size: 1.3rem;
    line-height: 1.15;
    font-weight: 400;
}

.report-stat-card.is-primary {
    background: #f2f5ff;
    border-color: #c8d1ff;
}

.report-stat-card.is-indigo {
    background: #f4f2ff;
    border-color: #cfc7ff;
}

.report-stat-card.is-success {
    background: #eef9f1;
    border-color: #8fd6a6;
}

.report-stat-card.is-warning {
    background: #fff5e5;
    border-color: #f3c37a;
}

.report-stat-card.is-neutral {
    background: #f7f8fb;
    border-color: #d9deeb;
}

.reports-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.report-section-card {
    border-radius: 1rem;
    overflow: hidden;
}

.report-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #eef2f7;
}

.report-section-card .card-header {
    padding-top: 0.9rem;
    padding-bottom: 0.75rem;
    background: #fff;
}

.report-section-card .table th {
    font-size: 0.76rem;
    font-weight: 400;
    color: #8a93a5;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.report-section-card .table td {
    color: #334155;
}

.reports-insight-grid {
    align-items: stretch;
}

.report-insight-card {
    border: 1px solid #e7ecf3;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.report-insight-card .card-body {
    padding: 0.85rem 0.95rem 0.95rem;
    flex: 1 1 auto;
    min-height: 0;
}

.report-section-head h5 {
    font-weight: 400;
    color: #0f172a;
}

.report-section-head p {
    font-size: 0.78rem;
    line-height: 1.35;
}

.report-list-wrap {
    display: grid;
    gap: 0.55rem;
    max-height: 22.5rem;
    overflow: auto;
    padding-right: 0.15rem;
}

.report-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.65rem 0.75rem;
    border: 1px solid #edf1f6;
    border-radius: 0.8rem;
    background: #fbfcfe;
}

.report-list-item-personnel,
.report-list-item-ranked {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.report-list-main {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.report-list-title-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.report-list-title-row strong {
    color: #0f172a;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-list-meta {
    color: #94a3b8;
    font-size: 0.72rem;
}

.report-status-dot {
    width: 0.46rem;
    height: 0.46rem;
    border-radius: 999px;
    background: #4f46e5;
    flex: 0 0 auto;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.09);
}

.report-list-bar {
    height: 0.24rem;
    border-radius: 999px;
    background: #e9eef6;
    overflow: hidden;
}

.report-list-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #475569;
}

.report-list-bar.is-indigo span {
    background: #4f46e5;
}

.report-list-bar.is-gold span {
    background: #b38a3c;
}

.report-list-value {
    min-width: 2rem;
    text-align: right;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 400;
}

.report-avatar,
.report-rank-badge {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: #0f172a;
    background: #eef2ff;
    border: 1px solid #dbe3ff;
    flex: 0 0 auto;
}

.report-rank-badge {
    background: #fff7eb;
    border-color: #eedcb4;
}

.report-overdue-list {
    display: grid;
    gap: 0.55rem;
    max-height: 22.5rem;
    overflow: auto;
    padding-right: 0.15rem;
}

.report-overdue-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.65rem 0.75rem;
    border: 1px solid #f2d6d8;
    border-radius: 0.8rem;
    background: #fff9f9;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.report-overdue-item:hover {
    border-color: #eab3b8;
    background: #fff5f5;
    box-shadow: 0 10px 20px rgba(180, 35, 24, 0.06);
}

.report-overdue-main {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.report-overdue-main strong {
    color: #0f172a;
    font-weight: 400;
}

.report-overdue-main span {
    color: #64748b;
    font-size: 0.76rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-overdue-date {
    color: #b42318;
    font-size: 0.76rem;
    font-weight: 400;
    white-space: nowrap;
}

.input-with-icon,
.input-with-action {
    position: relative;
}

.auth-links,
.auth-support-grid,
.auth-meta-row,
.auth-login-points {
    display: flex;
}

.print-body {
    margin: 0;
    padding: 0;
    background: #fff;
    color: #000;
}

.print-container {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 0;
}

.print-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.thermal-receipt-reference {
    width: 80mm;
    background: #fff;
    border: 1px solid #000;
    padding: 12px 10px 14px;
    color: #000;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    line-height: 1.25;
    box-shadow: none;
    margin: 0 auto;
}

.thermal-receipt-reference.thermal-58 {
    width: 58mm;
    padding: 10px 8px 12px;
}

.thermal-reference-head {
    text-align: center;
    margin-bottom: 10px;
}

.thermal-reference-brand-main,
.thermal-reference-brand-sub,
.thermal-reference-line,
.thermal-reference-signature {
    font-weight: 400;
    color: #000;
}

.thermal-reference-brand-main {
    font-size: 14px;
    letter-spacing: 0.02em;
}

.thermal-reference-brand-sub {
    font-size: 12px;
}

.thermal-reference-line {
    font-size: 12px;
}

.thermal-reference-signature {
    margin-top: 2px;
}

.thermal-reference-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}

.thermal-reference-order-row {
    margin-bottom: 8px;
    font-size: 12px;
}

.thermal-reference-order-row strong {
    font-size: 12px;
    font-weight: 700;
    color: #000;
}

.thermal-reference-barcode-box {
    border: 1px solid #000;
    padding: 4px 8px 6px;
    margin: 0 0 3px;
}

.thermal-reference-barcode-svg {
    display: flex;
    justify-content: center;
    align-items: center;
}

.thermal-reference-barcode-svg svg {
    width: 100%;
    height: auto;
    display: block;
}

.thermal-reference-code {
    text-align: center;
    font-size: 12px;
    margin-bottom: 10px;
}

.thermal-reference-details {
    display: grid;
    gap: 2px;
    margin-bottom: 10px;
}

.thermal-reference-detail-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: baseline;
}

.thermal-reference-detail-row span,
.thermal-reference-detail-row strong {
    font-size: 12px;
    color: #000;
    font-weight: 400;
}

.thermal-reference-detail-row strong {
    text-align: right;
}

.thermal-reference-detail-row-text {
    align-items: start;
}

.thermal-reference-detail-row-text strong {
    max-width: 56%;
    text-align: right;
}

.thermal-reference-section {
    margin-bottom: 10px;
}

.thermal-reference-label {
    margin-bottom: 2px;
    font-size: 12px;
}

.thermal-reference-text {
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-word;
}

.thermal-reference-details-bottom {
    margin-bottom: 8px;
}

.thermal-reference-divider {
    border-top: 1px dashed #000;
    margin: 8px 0 6px;
}

.thermal-reference-note {
    text-align: center;
    font-size: 11px;
    line-height: 1.25;
    color: #000;
}

.thermal-reference-sign-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 10px;
    font-size: 12px;
}

.thermal-reference-sign-line {
    flex: 1;
    border-bottom: 1px solid #000;
    min-width: 120px;
    height: 0;
}

@media print {
    html,
    body {
        margin: 0;
        padding: 0;
        background: #fff;
    }

    .print-body {
        padding: 0;
        background: #fff;
    }

    .print-container {
        display: block;
        width: fit-content;
        margin: 0 auto;
        padding: 0;
    }

    .no-print {
        display: none !important;
    }

    .thermal-receipt-reference {
        margin: 0;
        border-color: #000;
        box-shadow: none;
    }
}

@media (max-width: 1199.98px) {
    .scan-inline {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .master-hero-scan {
        max-width: none;
    }

    .topbar-actions {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .sadekar-topbar-shell {
        gap: 0.75rem;
    }

    .sadekar-topbar-page {
        flex: 1 1 auto;
        min-width: 0;
    }

    .sadekar-topbar-tools {
        flex: 0 0 auto;
    }

    .content-area {
        min-height: auto;
    }

    .cards-two,
    .stats-grid,
    .reports-stat-grid,
    .reports-grid-two {
        grid-template-columns: 1fr;
    }

    .form-grid.two-col > * {
        grid-column: span 12;
    }

    .repair-header-top {
        grid-template-columns: 1fr;
    }

    .reports-filter-form {
        grid-template-columns: 1fr;
    }

    .reports-filter-card {
        max-width: 100%;
    }

    .dashboard-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-inline-metrics {
        grid-template-columns: 1fr;
    }

    .master-metric-grid {
        gap: 0.75rem;
    }

    .master-note-grid,
    .master-log-grid,
    .master-photo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .scan-inline {
        display: none;
    }

    .sadekar-topbar-page {
        min-width: 0;
    }

    .page-title {
        font-size: 1.05rem;
    }

    .authentication-sadekar {
        max-width: 100%;
    }

    .dashboard-metric-tile strong {
        font-size: 1.1rem;
    }

    .master-hero-scan {
        flex-direction: column;
        align-items: stretch;
    }

    .delivery-scan-form {
        flex-direction: column;
        align-items: stretch;
    }

    .delivery-scan-input-wrap {
        min-width: 0;
    }

    .delivery-batch-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .delivery-batch-actions form,
    .delivery-batch-actions .btn {
        width: 100%;
    }

    .master-service-list {
        flex-direction: column;
    }
}
