/* =====================================================================================================================
   TecMCH - common stylesheet (Workshop side + Customer side)
   ---------------------------------------------------------------------------------------------------------------------
   Loaded on EVERY page of the main app layout (resources/views/layout/master.blade.php), for both the workshop side
   (web guard) and the customer side (customer_web guard), right after the Metronic theme (style.bundle.css).

   Only what both sides share lives here. Side-only styles go in:
     tecmch-workshop.css     - workshop side pages
     tecmch-customer.css     - customer / Enterprise Customer pages
     tecmch-marketplace.css  - Marketplace (seller panel + shop) - its own layouts, not this file

   Sections
     1. Brand colour (primary #274698)
     2. Global helpers (file inputs, small spinner, table buttons)
     3. Full-page loader          (layout/page-loader)
     4. TecMCH logo loader        (partials/logo-loader)
     5. DataTables loader         (partials/datatable-logo-loader)
     6. Sidebar                   (dashboard/sidebar)
     7. Header                    (dashboard/header)
     8. Dashboard count cards     (Workshop + Customer dashboards, .stat-cards)
     9. Profile Settings page     (dashboard/myprofile/settings, .pfs-page) - both sides
    10. KPI cards                 (.kpi-cards, first on Billing › Workshop billing)
    11. Dark sidebar              (Preferences › Sidebar: Dark - the content stays light)
    12. Services / Job Status cards (Workshop + Enterprise dashboards, .svc-dash .svc-kpi)
    13. Facilities & staff page  (dashboard/facilities-staff, .fs-page) - workshop side and Enterprise
    14. SLAs page                (.sla-page) - workshop side and Enterprise
    15. Planning page            (dashboard/planning, .planning) - all sides

   See README.md in this folder before adding to it.
   ===================================================================================================================== */


/* =====================================================================================================================
   1. Brand colour
   The theme's primary blue (#009ef7) replaced by the TecMCH primary #274698. Everything that reads the theme's
   primary variables follows: buttons, the active sidebar item, text-primary / bg-primary, links, badges.
   Hover / pressed shade: #1e3777. Light tint (btn-light-primary, bg-light-primary): #eaeef7.
   ===================================================================================================================== */
:root,
[data-theme="light"],
[data-theme="dark"] {
    --kt-primary: #274698;
    --kt-primary-active: #1e3777;
    --kt-primary-rgb: 39, 70, 152;
    --kt-primary-inverse: #ffffff;
    --kt-text-primary: #274698;
    --kt-link-color: #274698;
    --kt-link-hover-color: #1e3777;
    --kt-component-active-bg: #274698;
    --kt-component-hover-color: #274698;
    --kt-component-checked-bg: #274698;
    --kt-btn-link-color: #274698;
    --kt-btn-link-hover-color: #1e3777;
    --bs-primary: #274698;
    --bs-primary-rgb: 39, 70, 152;
    --bs-link-color: #274698;
    --bs-link-hover-color: #1e3777;
}

:root,
[data-theme="light"] {
    --kt-primary-light: #eaeef7;
}


/* =====================================================================================================================
   2. Global helpers
   ===================================================================================================================== */

/* File input with the "max size" hint inside it */
.file-input-container {
    position: relative;
}

.fileSizeLimit {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    color: #08af2c;
    font-style: italic;
    font-size: 10px;
}

/* An input with a small image beside it */
.input-with-image {
    display: flex;
    align-items: center;
}

.input-with-image input {
    flex: 1;
    margin-right: 10px;
}

.current_image img {
    max-width: 50px;
    max-height: 40px;
}

/* Small round spinner (page scripts show it with .show() / display:block) */
.loader {
    border: 8px solid #f3f3f3;
    border-radius: 50%;
    border-top: 8px solid #000000;
    width: 40px;
    height: 40px;
    -webkit-animation: spin 1.5s linear infinite;
    animation: spin 1.5s linear infinite;
    display: none;
}

.modal .loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1056; /* just above the modal backdrop */
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Listing tables: the cell text is dark, not the theme's grey (most listings put text-gray-600 on <tbody>). Text with
   its own colour class (badges, links, text-muted, text-danger...) keeps it. */
.table > tbody > tr > td {
    color: var(--kt-gray-900);
}

/* Action buttons inside table cells */
table td .btn {
    border: 1px solid black !important;
}


/* =====================================================================================================================
   3. Full-page loader (layout/page-loader)
   Covers the page until its content is ready, and again as soon as the user leaves a page (link / form submit), so the
   screen is never blank while the next page is on its way. The logo inside it is section 4.
   ===================================================================================================================== */
#tm-page-loader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--kt-body-bg, #ffffff);
    transition: opacity .25s ease, visibility .25s ease;
}

/* page ready */
#tm-page-loader.tm-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Leaving the page: shown at once, on the same solid background as the next page's loader, so the hand-over from this
   page's logo to the next page's is invisible (one logo, not two). */
#tm-page-loader.tm-leaving {
    transition: none;
}

/* The logo, sweep and bar run on the clock (layout/page-loader sets --tm-sync): the next page's loader carries on
   where this one was instead of starting the animation again. */
#tm-page-loader .tm-loader-logo,
#tm-page-loader .tm-loader-logo::after,
#tm-page-loader .tm-loader-bar::before {
    animation-delay: var(--tm-sync, 0s);
}


/* =====================================================================================================================
   4. TecMCH logo loader (partials/logo-loader)
   The animated logo with a light sweep, a sliding bar and a label. Used by the full-page loader and by pages that load
   their data after the page (job lists, reports, planner, SLA ...). .tm-loader-overlay covers its positioned parent.
   ===================================================================================================================== */
.tm-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 48px 20px;
    text-align: center;
}

/* Over a long page the logo sits near the top, where it is in view */
.tm-loader-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    justify-content: flex-start;
    padding: 80px 20px 20px;
    background: rgba(255, 255, 255, .92);
    border-radius: inherit;
    transition: opacity .25s ease;
}

.tm-loader-overlay.tm-loader-done {
    opacity: 0;
    pointer-events: none;
}

.tm-loader-logo {
    position: relative;
    width: 150px;
    overflow: hidden;
    animation: tm-loader-float 1.6s ease-in-out infinite;
}

.tm-loader-logo img {
    display: block;
    width: 100%;
    height: auto;
}

/* A light sweep across the logo */
.tm-loader-logo::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 45%;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .75) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-18deg);
    animation: tm-loader-shine 1.8s ease-in-out infinite;
}

.tm-loader-bar {
    position: relative;
    width: 150px;
    height: 4px;
    overflow: hidden;
    border-radius: 4px;
    background: #e3edf7;
}

.tm-loader-bar::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 40%;
    border-radius: 4px;
    background: linear-gradient(90deg, #0b8ad6, #1f9d55);
    animation: tm-loader-slide 1.2s ease-in-out infinite;
}

.tm-loader-text {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    color: #000000;
}

@keyframes tm-loader-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.04); }
}

@keyframes tm-loader-shine {
    0% { left: -60%; }
    60%, 100% { left: 130%; }
}

@keyframes tm-loader-slide {
    0% { left: -40%; }
    100% { left: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .tm-loader-logo,
    .tm-loader-logo::after,
    .tm-loader-bar::before { animation: none; }
    .tm-loader-bar::before { left: 0; width: 100%; opacity: .5; }
}

[data-bs-theme="dark"] .tm-loader-overlay,
[data-theme="dark"] .tm-loader-overlay { background: rgba(30, 30, 45, .92); }

[data-bs-theme="dark"] .tm-loader-bar,
[data-theme="dark"] .tm-loader-bar { background: #2b2b40; }


/* =====================================================================================================================
   5. DataTables loader (partials/datatable-logo-loader)
   Every DataTable shows a small animated logo while it loads, instead of DataTables' own dots.
   ===================================================================================================================== */
.dataTables_processing.card,
div.dataTables_wrapper div.dataTables_processing {
    background: rgba(255, 255, 255, .9) !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 18px 0 !important;
    width: 220px !important;
    margin-left: -110px !important;
    z-index: 20;
}

[data-bs-theme="dark"] div.dataTables_wrapper div.dataTables_processing { background: rgba(30, 30, 45, .9) !important; }

div.dataTables_processing > div:not(.tm-dt-loader) { display: none; } /* DataTables' own dots */

.tm-dt-loader { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tm-dt-loader img { width: 110px; height: auto; animation: tm-dt-float 1.6s ease-in-out infinite; }
.tm-dt-loader .tm-dt-bar { position: relative; width: 110px; height: 4px; overflow: hidden; border-radius: 4px; background: #e3edf7; }
.tm-dt-loader .tm-dt-bar::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 40%;
    border-radius: 4px;
    background: linear-gradient(90deg, #0b8ad6, #1f9d55);
    animation: tm-dt-slide 1.2s ease-in-out infinite;
}
.tm-dt-loader span { font-size: 12px; font-weight: 600; color: #000000; }

@keyframes tm-dt-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes tm-dt-slide {
    0% { left: -40%; }
    100% { left: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .tm-dt-loader img,
    .tm-dt-loader .tm-dt-bar::before { animation: none; }
}


/* =====================================================================================================================
   6. Sidebar (dashboard/sidebar)
   Same look as the TecHGV dashboard sidebar: white, every menu item a thin-bordered white box - icon, a thin grey
   divider, the title (11px, black), the arrow on the right; a group's items sit indented under it, also white.
   Icons are always the primary colour #274698; the open page / opened group has its title and divider in #274698
   on a light blue-grey box.
   ===================================================================================================================== */
#kt_app_sidebar {
    --sb-bg: #ffffff;
    --sb-box: #ffffff;
    --sb-border: #e9e9e9;
    --sb-divider: #97929a;
    --sb-text: #000000;
    --sb-accent: #274698;
    --sb-active: #eff1f7;
    background-color: var(--sb-bg) !important;
    border-right: 0 !important;
    box-shadow: 6px 0 18px rgba(0, 0, 0, 0.12);
}

[data-kt-app-layout="dark-sidebar"] #kt_app_sidebar {
    --sb-bg: #1e1e2d;
    --sb-box: #262637;
    --sb-border: #34344a;
    --sb-text: #e6e6ee;
    --sb-active: #32324a;
}

/* Logo: centred at the top, shown whole */
#kt_app_sidebar .app-sidebar-logo {
    border-bottom: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    height: auto;
    min-height: 78px;
    padding: 12px 14px 6px !important;
}

#kt_app_sidebar .app-sidebar-logo > a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

/* Small logo, centred */
#kt_app_sidebar .app-sidebar-logo .app-sidebar-logo-default {
    height: 52px !important;
    width: auto;
    max-width: 150px;
    margin: 0 auto;
    object-fit: contain;
}

#kt_app_sidebar .app-sidebar-logo .app-sidebar-logo-minimize {
    height: 26px !important;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Sidebar width on desktop: 250px, as on TecHGV (the theme's is 265px / 300px when sticky). The minimised (75px) and
   hidden sidebar keep the theme's widths; the header and content follow the same variable. */
@media (min-width: 992px) {
    body:not([data-kt-app-sidebar-minimize="on"]):not([data-kt-app-sidebar-collapse="on"]) {
        --kt-app-sidebar-width: 250px;
    }
}

/* Footer buttons (Go to Community / Marketplace) */
#kt_app_sidebar #kt_app_sidebar_footer {
    padding-left: 14px !important;
    padding-right: 14px !important;
}

#kt_app_sidebar #kt_app_sidebar_footer .btn {
    font-size: 11px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* The menu column centred in the sidebar: the same gap on both sides */
#kt_app_sidebar .app-sidebar-wrapper {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100%;
    overflow-x: hidden;
}

#kt_app_sidebar .app-sidebar-wrapper > .menu {
    box-sizing: border-box;
    width: 100%;
}

#kt_app_sidebar .app-sidebar-wrapper > .menu {
    padding-left: 14px !important;
    padding-right: 14px !important;
}

/* ---- Menu items: one thin-bordered box each ---- */
#kt_app_sidebar .menu > .menu-item {
    margin-bottom: 6px;
    padding: 0;
}

#kt_app_sidebar .menu > .menu-item > .menu-link,
#kt_app_sidebar .menu-sub > .menu-item > .menu-link {
    background: var(--sb-box) !important;
    border: 1px solid var(--sb-border);
    border-radius: 5px;
    padding: 5px 10px !important;
    min-height: 32px;
    align-items: center;
    transition: border-color .15s, background-color .15s;
}

#kt_app_sidebar .menu > .menu-item > .menu-link:hover,
#kt_app_sidebar .menu-sub > .menu-item > .menu-link:hover {
    border-color: var(--sb-accent);
}

#kt_app_sidebar .menu .menu-link .menu-title {
    color: var(--sb-text) !important;
    font-size: 11px !important;
    font-weight: 600;
    line-height: 14px;
    padding: 0;
}

/* Icon (15px), then the thin grey divider */
#kt_app_sidebar .menu .menu-link > .menu-icon,
#kt_app_sidebar .menu .menu-link > .menu-bullet {
    position: relative;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    margin: 0 10px 0 0 !important;
    padding-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#kt_app_sidebar .menu .menu-link > .menu-icon::after,
#kt_app_sidebar .menu .menu-link > .menu-bullet::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    height: 18px;
    margin-top: -9px;
    width: 1px;
    background: var(--sb-divider);
    transition: background-color .15s;
}

#kt_app_sidebar .menu .menu-link .menu-icon img,
#kt_app_sidebar .menu .menu-link .menu-bullet img,
#kt_app_sidebar .menu .menu-link .menu-bullet i,
#kt_app_sidebar .menu .menu-link .menu-icon i {
    width: 15px;
    height: 15px;
    font-size: 13px !important;
    object-fit: contain;
    text-align: center;
}

#kt_app_sidebar .menu .menu-link .menu-bullet .bullet {
    margin: 0 5px;
}

/* Arrow on the right, black */
#kt_app_sidebar .menu .menu-link > .menu-arrow {
    margin-left: auto;
    width: 10px;
    height: 10px;
    padding-left: 0;
}

#kt_app_sidebar .menu .menu-link > .menu-arrow::after {
    background-color: var(--sb-text) !important;
}

/* Icons always in the primary colour #274698. The SVG icons are <img>s drawn in black, so a filter recolours them
   (black -> #274698); font icons and bullet dots take the colour directly. */
#kt_app_sidebar .menu-bullet img,
#kt_app_sidebar .menu-icon img {
    filter: invert(45%) sepia(6%) saturate(2243%) hue-rotate(186deg) brightness(86%) contrast(207%);
}

#kt_app_sidebar .menu-bullet i:not(.text-danger),
#kt_app_sidebar .menu-icon i:not(.text-danger) {
    color: var(--sb-accent) !important;
}

#kt_app_sidebar .menu-bullet .bullet {
    background-color: var(--sb-accent) !important;
}

/* ---- The open page / an opened group: light blue-grey box, title, divider and arrow in #274698 ---- */
#kt_app_sidebar .menu .menu-item > .menu-link.active,
#kt_app_sidebar .menu .menu-item.here > .menu-link,
#kt_app_sidebar .menu .menu-item.show > .menu-link {
    background: var(--sb-active) !important;
    border-color: var(--sb-active);
}

#kt_app_sidebar .menu .menu-item > .menu-link.active .menu-title,
#kt_app_sidebar .menu .menu-item.here > .menu-link .menu-title,
#kt_app_sidebar .menu .menu-item.show > .menu-link .menu-title {
    color: var(--sb-accent) !important;
}

#kt_app_sidebar .menu .menu-item > .menu-link.active > .menu-icon::after,
#kt_app_sidebar .menu .menu-item > .menu-link.active > .menu-bullet::after,
#kt_app_sidebar .menu .menu-item.here > .menu-link > .menu-icon::after,
#kt_app_sidebar .menu .menu-item.here > .menu-link > .menu-bullet::after,
#kt_app_sidebar .menu .menu-item.show > .menu-link > .menu-icon::after,
#kt_app_sidebar .menu .menu-item.show > .menu-link > .menu-bullet::after {
    background: var(--sb-accent);
}

#kt_app_sidebar .menu .menu-item.here > .menu-link > .menu-arrow::after,
#kt_app_sidebar .menu .menu-item.show > .menu-link > .menu-arrow::after {
    background-color: var(--sb-accent) !important;
}

/* Inside a group the open page stays white: only its title, divider and border show it */
#kt_app_sidebar .menu-sub .menu-item > .menu-link.active,
#kt_app_sidebar .menu-sub .menu-item.here > .menu-link,
#kt_app_sidebar .menu-sub .menu-item.show > .menu-link {
    background: var(--sb-box) !important;
    border-color: var(--sb-accent);
}

/* ---- Motion, as on TecHGV (0.8s): the divider of the open page / opened group flips over as it turns blue, the
   arrow turns as the group opens and back as it closes, and the colours fade in ---- */
#kt_app_sidebar .menu .menu-link .menu-title {
    transition: color .3s ease;
}

#kt_app_sidebar .menu .menu-item > .menu-link.active > .menu-icon::after,
#kt_app_sidebar .menu .menu-item > .menu-link.active > .menu-bullet::after,
#kt_app_sidebar .menu .menu-item.here > .menu-link > .menu-icon::after,
#kt_app_sidebar .menu .menu-item.here > .menu-link > .menu-bullet::after,
#kt_app_sidebar .menu .menu-item.show > .menu-link > .menu-icon::after,
#kt_app_sidebar .menu .menu-item.show > .menu-link > .menu-bullet::after {
    animation: sb-line-flip .8s ease forwards;
}

#kt_app_sidebar .menu .menu-link > .menu-arrow::after {
    transition: transform .8s ease, background-color .3s ease !important;
}

@keyframes sb-line-flip {
    from { transform: rotate(0deg); }
    to { transform: rotate(180deg); }
}

@media (prefers-reduced-motion: reduce) {
    #kt_app_sidebar .menu .menu-link > .menu-icon::after,
    #kt_app_sidebar .menu .menu-link > .menu-bullet::after {
        animation: none !important;
    }

    #kt_app_sidebar .menu .menu-link > .menu-arrow::after {
        transition: none !important;
    }
}

/* ---- A group's items: white, slightly indented under the group's box ---- */
#kt_app_sidebar .menu-sub {
    background: transparent;
    margin: 5px 0 0 0 !important;
    padding: 0 0 0 8px !important;
}

#kt_app_sidebar .menu-sub > .menu-item {
    margin-bottom: 5px;
    padding: 0;
}

#kt_app_sidebar .menu-sub > .menu-item:last-child {
    margin-bottom: 0;
}

#kt_app_sidebar .menu-sub > .menu-item > .menu-link {
    min-height: 30px;
}

#kt_app_sidebar .menu-sub .menu-link .menu-title {
    font-weight: 500;
}

/* "Environment" heading over the shared items (Notifications ... Edit Profile) */
#kt_app_sidebar .menu > .menu-item.sb-heading {
    padding: 10px 4px 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sb-accent);
}

[data-kt-app-layout="dark-sidebar"] #kt_app_sidebar .menu > .menu-item.sb-heading {
    color: var(--sb-text);
}

[data-kt-app-sidebar-minimize="on"] #kt_app_sidebar:not(:hover) .menu > .menu-item.sb-heading {
    display: none;
}

/* Collapsed sidebar: only the icon is visible, so the divider is not needed */
[data-kt-app-sidebar-minimize="on"] #kt_app_sidebar:not(:hover) .menu .menu-link > .menu-icon::after,
[data-kt-app-sidebar-minimize="on"] #kt_app_sidebar:not(:hover) .menu .menu-link > .menu-bullet::after {
    display: none;
}

[data-kt-app-sidebar-minimize="on"] #kt_app_sidebar:not(:hover) .menu .menu-link > .menu-icon,
[data-kt-app-sidebar-minimize="on"] #kt_app_sidebar:not(:hover) .menu .menu-link > .menu-bullet {
    margin-right: 0 !important;
    padding-right: 0;
}


/* =====================================================================================================================
   7. Header (dashboard/header)
   ===================================================================================================================== */

/* Round red notification dot */
.circle-span {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: red;
    color: red;
    text-align: center;
    line-height: 50px;
}

/* Name + role beside the avatar: a long name / role is cut with "..." so the avatar stays in view
   (the full name is in the tooltip) */
.header-user-info {
    min-width: 0;
    max-width: 170px;
}

.header-user-name,
.header-user-info .badge {
    display: block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media (max-width: 1399.98px) {
    .header-user-info { max-width: 130px; }
}

/* Search, View Credits and Create New (dashboard/partials/header-tools) */
.hdr-tools {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
    min-width: 0;
    margin: 0 .25rem;
}
.hdr-search { position: relative; flex: 1 1 auto; min-width: 0; max-width: 640px; margin-right: auto; }
.hdr-search-input {
    width: 100%;
    height: 42px;
    padding: 0 2.6rem;
    border: 1px solid #dbe6f6;
    border-radius: 8px;
    background: #f2f6fd;
    color: #1e3a5f;
    text-overflow: ellipsis;
}
.hdr-search-input::placeholder { color: #4a6794; }
.hdr-search-input:focus { outline: 2px solid #0b76bd; background: #fff; }
.hdr-search-icon,
.hdr-search-key { position: absolute; top: 50%; transform: translateY(-50%); color: #274698; pointer-events: none; }
.hdr-search-icon { left: .9rem; }
.hdr-search-key { right: .7rem; padding: 0 .5rem; border-radius: 5px; background: #dbe6f6; font-size: .85rem; }
.hdr-search-results,
.hdr-menu {
    border: 1px solid #dbe6f6;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(20, 35, 59, .18);
}
.hdr-search-results { position: absolute; z-index: 1060; top: calc(100% + 6px); left: 0; right: 0; max-height: 70vh; overflow-y: auto; min-width: 280px; }
.hdr-search-note { padding: .9rem 1rem; color: #274698; }
.hdr-search-group { padding: .65rem 1rem .25rem; color: #274698; font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.hdr-search-item { display: flex; flex-direction: column; padding: .45rem 1rem; color: #1e3a5f; }
.hdr-search-item span { color: #4a6794; font-size: .85rem; }
.hdr-search-item:hover,
.hdr-search-item:focus { background: #eaf2fd; color: #1e3a5f; }

.hdr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 42px;
    padding: .4rem 1rem;
    border: 0;
    border-radius: 8px;
    font-weight: 700;
    white-space: nowrap;
}
.hdr-btn i { color: inherit; }
.hdr-btn-credits { background: #e3f5e9; color: #17663a; }
.hdr-btn-solid,
.hdr-btn-solid:hover { background: #0b76bd; color: #fff; }
.hdr-btn-light,
.hdr-btn-light:hover { background: #eaf2fd; color: #274698; }
.hdr-btn:hover { filter: brightness(.96); }
.hdr-caret { font-size: .7rem; }

.hdr-menu { padding: .35rem 0; }
.hdr-credits { width: 330px; max-width: 92vw; padding: 0; }
.hdr-credits-head { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid #dbe6f6; color: #1e3a5f; }
.hdr-credits-head span { font-size: .85rem; font-weight: 600; }
.hdr-credit { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.25rem; border-bottom: 1px solid #eaf2fd; color: #1e3a5f; font-weight: 600; }
.hdr-credit i { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.hdr-credit b { min-width: 42px; margin-left: auto; padding: .2rem .5rem; border-radius: 6px; background: #e3f5e9; color: #17663a; text-align: center; }
.hdr-credit b.is-low { background: #fdecee; color: #b3202e; }
.hdr-credits-actions { display: flex; gap: .75rem; padding: 1rem 1.25rem; }
.hdr-credits-actions .hdr-btn { flex: 1; white-space: normal; text-align: center; }
.hdr-create-item { padding: .6rem 1.25rem; color: #1e3a5f; font-weight: 600; }

@media (max-width: 1199.98px) {
    .hdr-btn span { display: none; }
    .hdr-search-key { display: none; }
}
@media (max-width: 767.98px) {
    .hdr-tools { gap: .4rem; }
    .hdr-btn { min-height: 36px; padding: .3rem .65rem; }
    .hdr-search-input { height: 36px; padding-right: .5rem; }
    .hdr-search-results { position: fixed; top: 70px; left: .75rem; right: .75rem; }
}


/* =====================================================================================================================
   8. Dashboard count cards - Workshop dashboard (dashboard/dashboard) and Customer dashboard
      (customer/dashboard/dashboard), inside a .stat-cards row
   Same look as the KPI cards (section 10): white, a coloured left edge, the icon first in a tinted square, then the
   number big in the card colour with its label under it. Each card in the row takes the next colour; warning cards
   (bg-danger) are red. The Enterprise dashboard has the same look (tecmch-customer.css section 1).
   ===================================================================================================================== */
.stat-cards a.card {
    --kpi: #1e3a5f;
    background: #fff !important;
    border: 0;
    border-left: 5px solid var(--kpi);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(20, 35, 59, .08);
    transition: box-shadow .2s, transform .2s;
}

/* Same spacing as the KPI cards: 1rem between cards, no extra margin under each */
.stat-cards {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
    margin-bottom: 1.5rem;
}

.stat-cards a.card {
    margin-bottom: 0 !important;
    height: 100%;
}

.stat-cards a.card:hover {
    box-shadow: 0 6px 18px rgba(20, 35, 59, .14);
    transform: translateY(-2px);
}

/* The next colour for each card in the row (same set as the KPI cards) */
.stat-cards > div:nth-child(7n+1) a.card { --kpi: #1f9d55; }
.stat-cards > div:nth-child(7n+2) a.card { --kpi: #6a3d9a; }
.stat-cards > div:nth-child(7n+3) a.card { --kpi: #c99700; }
.stat-cards > div:nth-child(7n+4) a.card { --kpi: #0877bd; }
.stat-cards > div:nth-child(7n+5) a.card { --kpi: #1e3a5f; }
.stat-cards > div:nth-child(7n+6) a.card { --kpi: #e8833a; }
.stat-cards > div:nth-child(7n+7) a.card { --kpi: #2b8a8a; }
.stat-cards > div a.card.bg-danger { --kpi: #d64545; }

/* Room on the left for the icon square */
.stat-cards a.card .card-body {
    position: relative;
    padding: 12px 20px 12px 82px;
    min-height: 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-cards a.card .card-body > .d-flex {
    display: block !important;
}

/* the count */
.stat-cards a.card .icon-count {
    color: var(--kpi) !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    line-height: 1.1;
    margin: 0 !important;
}

/* the label */
.stat-cards a.card .card-body > .text-white {
    color: #000000 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin: 2px 0 0 !important;
}

/* the icon: first, in a square tinted with the card colour */
.stat-cards a.card .svg-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    margin: 0 !important;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--kpi);
    background: color-mix(in srgb, var(--kpi) 12%, transparent);
}

/* font icons take the card colour (some carry text-white, which vanished on the white card) */
.stat-cards a.card .svg-icon i {
    color: inherit !important;
    font-size: 20px !important;
}

.stat-cards a.card .svg-icon svg,
.stat-cards a.card .svg-icon img {
    width: 24px !important;
    height: 24px !important;
}

/* tints the white icon files to #274698 */
.stat-cards a.card .svg-icon img {
    filter: brightness(0) saturate(100%) invert(19%) sepia(30%) saturate(5596%) hue-rotate(216deg) brightness(91%) contrast(84%);
}

/* The trailer icon file is a small drawing on a large blank page: enlarge it to match the others */
.stat-cards a.card .svg-icon img[src$="trailer.svg"] {
    transform: scale(1.75);
}

/* Warning cards (bg-danger: Restricted Workshops, Reset Password Requests): red icon file */
.stat-cards a.card.bg-danger .svg-icon img {
    filter: brightness(0) saturate(100%) invert(30%) sepia(87%) saturate(3190%) hue-rotate(346deg) brightness(97%) contrast(94%);
}


/* =====================================================================================================================
   9. Profile Settings page (dashboard/myprofile/settings) - workshop side and customer side
   White rounded cards, an underlined tab bar (Details · Password · Signature · Preferences · My qualifications & CPD),
   label / value rows. Everything is scoped to .pfs-page. Colours come from the theme variables, so dark mode works.
   ===================================================================================================================== */
.pfs-page .pfs-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 1px solid var(--kt-border-color, #eff2f5);
}

.pfs-page .pfs-tab {
    height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    font-size: 13.5px;
    font-weight: 700;
    color: #000000;
    box-shadow: inset 0 -3px 0 transparent;
    transition: color .15s, box-shadow .15s;
}

.pfs-page .pfs-tab:hover {
    color: var(--kt-primary);
}

.pfs-page .pfs-tab.active {
    color: var(--kt-primary);
    box-shadow: inset 0 -3px 0 var(--kt-primary);
}

/* Filled tabs (.pfs-tabs-filled): the tabs inside a card, e.g. Billing › Subscription & credits. Rounded tops on a
   primary line; the open tab is solid primary. */
.pfs-page .pfs-tabs.pfs-tabs-filled {
    border-bottom: 2px solid var(--kt-primary);
}

.pfs-page .pfs-tabs-filled .pfs-tab {
    flex: 1 1 0;
    justify-content: center;
    border-radius: 10px 10px 0 0;
    background: var(--kt-primary-light, #eaeef7);
    color: var(--kt-primary);
    box-shadow: none;
}

.pfs-page .pfs-tabs-filled .pfs-tab.active {
    background: var(--kt-primary);
    color: var(--kt-primary-inverse, #fff);
    box-shadow: none;
}

.pfs-page .pfs-card {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    background: var(--kt-card-bg, #fff);
    box-shadow: 0 1px 2px rgba(20, 35, 59, .06);
    overflow: hidden;
}

.pfs-page .pfs-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--kt-border-color, #eef2f7);
}

.pfs-page .pfs-avatar {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--kt-primary);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pfs-page .pfs-avatar.d-none {
    display: none !important;
}

/* A label / value row */
.pfs-page .pfs-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 18px;
    border-top: 1px solid var(--kt-border-color, #f0f3f8);
    font-size: 13px;
}

.pfs-page .pfs-card-head + .pfs-row {
    border-top: 0;
}

.pfs-page .pfs-label {
    color: #000000;
    font-weight: 600;
}

.pfs-page .pfs-value {
    color: var(--kt-gray-900);
    font-weight: 600;
    word-break: break-word;
}

/* Details side panels (Facilities & staff, Customers & suppliers - the narrow col-xl-4 card): a narrower label column,
   so values such as an email stay on one line instead of breaking mid-word */
.pfs-page .col-xl-4 .pfs-row {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 10px;
}

.pfs-page .col-xl-4 .pfs-value {
    word-break: normal;
    overflow-wrap: anywhere;
}

.pfs-page .pfs-input {
    max-width: 380px;
}

/* Details: view mode shows the values and "Edit details"; .is-editing shows the inputs and Cancel / Save */
.pfs-page .pfs-edit-only,
.pfs-page .pfs-edit-only-inline {
    display: none;
}

.pfs-page .is-editing .pfs-edit-only {
    display: flex;
}

.pfs-page .is-editing .pfs-edit-only-inline {
    display: inline;
}

.pfs-page .is-editing .pfs-view-only {
    display: none;
}

.pfs-page .pfs-field {
    max-width: 380px;
}

/* Signature */
.pfs-page .pfs-sig-current {
    display: inline-flex;
    min-width: 240px;
    padding: 12px 20px;
    border-radius: 12px;
    background: var(--kt-gray-100);
}

.pfs-page .pfs-sig-current img {
    max-width: 100%;
    max-height: 110px;
    object-fit: contain;
}

.pfs-page .pfs-sig-editor {
    padding: 16px 18px;
    border-top: 1px solid var(--kt-border-color, #eef2f7);
    background: var(--kt-gray-100);
}

.pfs-page .pfs-sig-pad {
    width: 100%;
    max-width: 520px;
    height: 180px;
    border-radius: 10px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--kt-gray-300);
}

.pfs-page .pfs-sig-pad canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Preferences: pill buttons, the picked one filled */
.pfs-page .pfs-chip {
    height: 32px;
    padding: 0 16px;
    border: 0;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    background: var(--kt-card-bg, #fff);
    color: #000000;
    box-shadow: inset 0 0 0 1px var(--kt-gray-300);
}

.pfs-page .pfs-chip.on {
    background: var(--kt-primary);
    color: #fff;
    box-shadow: none;
}

/* My qualifications & CPD: "Coming Soon" */
.pfs-page .pfs-soon {
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 260px;
    padding: 30px;
    text-align: center;
}

.pfs-page .pfs-soon > i {
    font-size: 40px;
    color: var(--kt-primary);
    margin-bottom: 6px;
}

@media (max-width: 575px) {
    .pfs-page .pfs-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}


/* =====================================================================================================================
   10. KPI cards (.kpi-card) - first used on Billing › Workshop billing (dashboard/workshopinvoices/dashboard)
   White rounded card with a coloured left edge, the number big in that colour and the label under it.
   Colour: kpi-navy / kpi-green / kpi-red / kpi-blue / kpi-amber / kpi-orange / kpi-purple.
   A card with .kpi-link opens something when clicked.
   ===================================================================================================================== */
.kpi-card {
    --kpi: #1e3a5f;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    height: 100%;
    padding: 12px 20px;
    border-radius: 14px;
    border-left: 5px solid var(--kpi);
    background: var(--kt-card-bg, #fff);
    box-shadow: 0 1px 3px rgba(20, 35, 59, .08);
    transition: box-shadow .2s, transform .2s;
}

.kpi-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--kpi);
    word-break: break-word;
}

.kpi-label {
    font-size: 13px;
    font-weight: 600;
    color: #000000;
}

.kpi-link {
    cursor: pointer;
}

.kpi-link:hover,
.kpi-link:focus-visible {
    box-shadow: 0 6px 18px rgba(20, 35, 59, .14);
    transform: translateY(-2px);
    outline: none;
}

.kpi-navy { --kpi: #1e3a5f; }
.kpi-green { --kpi: #1f9d55; }
.kpi-red { --kpi: #d64545; }
.kpi-blue { --kpi: #0877bd; }
.kpi-amber { --kpi: #c99700; }
.kpi-orange { --kpi: #e8833a; }
.kpi-purple { --kpi: #6a3d9a; }


/* =====================================================================================================================
   11. Dark sidebar (Profile Settings › Preferences › Sidebar: Dark)
   Only the sidebar turns dark - the page content always stays light. The choice is the existing "sidebar-color"
   setting (localStorage), which layout/master puts on <body> as data-kt-app-layout="dark-sidebar".
   Section 6 sets the dark box / text colours; this adds the rest.
   ===================================================================================================================== */
[data-kt-app-layout="dark-sidebar"] #kt_app_sidebar {
    --sb-divider: #565674;
    --sb-accent: #8fb3e8;
    box-shadow: none;
}

/* Inside a group the open page keeps the dark box (section 6 makes it white) */
[data-kt-app-layout="dark-sidebar"] #kt_app_sidebar .menu-sub .menu-item > .menu-link.active,
[data-kt-app-layout="dark-sidebar"] #kt_app_sidebar .menu-sub .menu-item.here > .menu-link,
[data-kt-app-layout="dark-sidebar"] #kt_app_sidebar .menu-sub .menu-item.show > .menu-link {
    background: var(--sb-box) !important;
}

/* Icons: the black SVGs drawn light instead of navy */
[data-kt-app-layout="dark-sidebar"] #kt_app_sidebar .menu-bullet img,
[data-kt-app-layout="dark-sidebar"] #kt_app_sidebar .menu-icon img {
    filter: brightness(0) invert(78%) sepia(18%) saturate(700%) hue-rotate(185deg);
}

/* KPI cards (section 10): the £ before a money amount, a little smaller than the number */
.kpi-currency {
    font-size: .8em;
    margin-right: 2px;
}

/* KPI cards (section 10): the card that is filtering the list below is outlined in its colour; a card that is a
   link keeps its text colours */
.kpi-card.is-active {
    box-shadow: 0 0 0 2px var(--kpi), 0 6px 18px rgba(20, 35, 59, .14);
}

a.kpi-card,
a.kpi-card:hover {
    text-decoration: none;
}


/* =====================================================================================================================
   12. Services / Job Status cards (.svc-dash .svc-kpi) - Workshop dashboard (dashboard/dashboard) and Enterprise
       dashboard (enterprise/dashboard/services)
   Same look as the dashboard count cards (section 8): white, a coloured left edge, the icon first in a tinted square,
   the number big in the status colour, the label under it. The colour comes from the status (the icon's svc-<key>
   class). Selectors are one class stronger than the page's own <style> block, which they override.
   ===================================================================================================================== */
.svc-dash .svc-panel.svc-kpi {
    --kpi: #1e3a5f;
    background: #fff;
    border: 0;
    border-left: 5px solid var(--kpi);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(20, 35, 59, .08);
    padding: 12px 20px;
    gap: 16px;
}

.svc-dash .svc-panel.svc-kpi:has(.svc-pending) { --kpi: #e8833a; }
.svc-dash .svc-panel.svc-kpi:has(.svc-assigned) { --kpi: #6a3d9a; }
.svc-dash .svc-panel.svc-kpi:has(.svc-in_progress) { --kpi: #0877bd; }
.svc-dash .svc-panel.svc-kpi:has(.svc-in_review) { --kpi: #2b8a8a; }
.svc-dash .svc-panel.svc-kpi:has(.svc-completed) { --kpi: #1f9d55; }
.svc-dash .svc-panel.svc-kpi:has(.svc-rejected) { --kpi: #d64545; }

/* the icon: a square tinted with the status colour */
.svc-dash .svc-panel.svc-kpi .svc-kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 20px;
    background: color-mix(in srgb, var(--kpi) 12%, transparent) !important;
}

.svc-dash .svc-panel.svc-kpi .svc-kpi-icon i {
    color: var(--kpi);
}

.svc-dash .svc-panel.svc-kpi .svc-kpi-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--kpi);
}

.svc-dash .svc-panel.svc-kpi .svc-kpi-label {
    font-size: 13px;
    font-weight: 600;
    color: #000000;
}


/* =====================================================================================================================
   13. Facilities & staff page (dashboard/facilities-staff) - workshop side and Enterprise
   Uses the Profile Settings tabs and cards (section 9, .pfs-page); this adds the People list's avatar and row states.
   ===================================================================================================================== */
.fs-page .fs-avatar {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--kt-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fs-page tr.fs-row {
    cursor: pointer;
}

.fs-page tr.fs-row:hover > td {
    background: var(--kt-gray-100);
}

/* the person shown in the details panel */
.fs-page tr.fs-row.is-selected > td {
    background: var(--kt-primary-light, #eaeef7);
}

.fs-page tr.fs-row.is-selected > td:first-child {
    box-shadow: inset 3px 0 0 var(--kt-primary);
}

/* Black text instead of the theme's greys, inside a .tm-ink card (the SLA listings) */
.tm-ink thead tr, .tm-ink thead th,
.tm-ink tbody, .tm-ink .text-muted,
.tm-ink [class*="text-gray-"],
.tm-ink .form-control-solid, .tm-ink .form-select-solid { color: #181c32 !important; }
.tm-ink .form-control-solid, .tm-ink .form-select-solid { background-color: #f2f6fd; border-color: #f2f6fd; }
.tm-ink .form-control-solid::placeholder { color: #4a6794; }
.tm-ink .btn.btn-light { background-color: #eaf2fd; color: #274698; }

/* Breadcrumbs start at the section, not at "Dashboard": a first crumb that links to a dashboard (workshop, Enterprise
   or customer) is hidden, with the separator after it. */
.breadcrumb > .breadcrumb-item:first-child:has(> a[href$="dashboard"]),
.breadcrumb > .breadcrumb-item:first-child:has(> a[href$="dashboard"]) + .breadcrumb-item:has(> .bullet) { display: none; }


/* Table header text is black everywhere. Headers that have a dark background keep their white text (.bj-table,
   .ep-table, and cells with an inline color:white). */
th:not(.bj-table th):not(.ep-table th):not([style*="color:white"]):not([style*="color: white"]),
th:not(.bj-table th):not(.ep-table th) :is(.text-muted, [class*="text-gray-"]) {
    color: #000000 !important;
}


/* =====================================================================================================================
   14. SLAs page (.sla-page) - dashboard/enterprise-sla (workshop) and enterprise/sla-documents
    15. Planning page            (dashboard/planning, .planning) - all sides
   ===================================================================================================================== */
.sla-page .sla-st { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.sla-page .sla-st-wait { background: #fdf0dc; color: #a4520f; }
.sla-page .sla-st-ok { background: #e3f5ea; color: #17703d; }
.sla-page .sla-st-no { background: #fbe2e2; color: #b42a2a; }
.sla-page .sla-st-recv { background: #e8f2fb; color: #0a4f80; }
.sla-page .sla-st-sent { background: #ece8fb; color: #5b44b5; }
.sla-page .sla-why { font-size: 11px; color: #b42a2a; }

/* Acknowledge in a row: green, as Reject is red (.cs-act-danger) */
.sla-page .cs-act.sla-act-ok { border-color: #1f9d55; }
.sla-page .cs-act.sla-act-ok i { color: #1f9d55; }
.sla-page .cs-act.sla-act-ok:hover { background: #1f9d55; border-color: #1f9d55; }
.sla-page .cs-act.sla-act-ok:hover i { color: #fff; }


/* =====================================================================================================================
   14. SLAs page (.sla-page) - dashboard/enterprise-sla (workshop) and enterprise/sla-documents
    15. Planning page            (dashboard/planning, .planning) - all sides
   ===================================================================================================================== */
.sla-page .sla-st { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.sla-page .sla-st-wait { background: #fdf0dc; color: #a4520f; }
.sla-page .sla-st-ok { background: #e3f5ea; color: #17703d; }
.sla-page .sla-st-no { background: #fbe2e2; color: #b42a2a; }
.sla-page .sla-st-recv { background: #e8f2fb; color: #0a4f80; }
.sla-page .sla-st-sent { background: #ece8fb; color: #5b44b5; }
.sla-page .sla-why { font-size: 11px; color: #b42a2a; }

/* Acknowledge in a row: green, as Reject is red (.cs-act-danger) */
.sla-page .cs-act.sla-act-ok { border-color: #1f9d55; }
.sla-page .cs-act.sla-act-ok i { color: #1f9d55; }
.sla-page .cs-act.sla-act-ok:hover { background: #1f9d55; border-color: #1f9d55; }
.sla-page .cs-act.sla-act-ok:hover i { color: #fff; }

/* Details page (partials/sla-details) */
.sla-page .sla-head { padding: 14px 20px; border-bottom: 1px solid #dbe8f5; font-size: 14px; font-weight: 700; color: #14233b; }
.sla-page .sla-row { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid #dbe8f5; }
.sla-page .sla-label { flex: 0 0 170px; font-size: 12px; font-weight: 600; color: #3d5a80; }
.sla-page .sla-value { flex: 1; min-width: 0; font-weight: 700; color: #1e3a5f; overflow-wrap: anywhere; white-space: pre-line; }
.sla-page .sla-signature { padding: 10px 12px; border-radius: 6px; background: #f2f8fd; box-shadow: inset 0 0 0 1px #dbe8f5; }
.sla-page .sla-signature img { display: block; max-height: 90px; max-width: 100%; margin-top: 6px; }
.sla-page .sla-service-chip { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 6px; background: #eef6fd; font-weight: 600; color: #1e3a5f; }
.sla-page .sla-service-chip b { color: #0a4f80; white-space: nowrap; }
.sla-page .sla-bar { display: block; height: 8px; border-radius: 4px; background: #eef6fd; }
.sla-page .sla-bar > span { display: block; height: 8px; border-radius: 4px; background: #1f9d55; }
.sla-page .sla-bar-row { display: grid; grid-template-columns: minmax(0, 150px) 1fr 52px 84px; gap: 10px; align-items: center; padding: 6px 0; }
.sla-page .sla-wo { padding: 12px 0; border-bottom: 1px solid #dbe8f5; }
.sla-page .sla-wo-toggle { width: 28px; height: 28px; border: 0; border-radius: 6px; background: var(--kt-primary); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.sla-page .sla-wo-toggle i { color: #fff; transition: transform .2s; }
.sla-page .sla-wo-toggle:not(.collapsed) i { transform: rotate(180deg); }
.sla-page .sla-jobs th { padding: 8px 10px; background: #eef6fd; color: #3d5a80; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.sla-page .sla-jobs td { padding: 8px 10px; border-top: 1px solid #dbe8f5; vertical-align: middle; color: #1e3a5f; overflow-wrap: anywhere; }
.sla-page .sla-jobs td.sla-why { color: #b42a2a; }
.sla-page .sla-tag { display: inline-block; padding: 1px 7px; margin-left: 4px; border-radius: 10px; box-shadow: inset 0 0 0 1px #1f7a45; color: #1f7a45; font-size: 10px; font-weight: 700; }
.sla-page .sla-log { display: grid; grid-template-columns: 140px 10px minmax(0, 1fr) minmax(0, 180px); column-gap: 10px; align-items: center; min-height: 38px; border-bottom: 1px solid #eef6fd; color: #1e3a5f; }
.sla-page .sla-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--kpi); }
@media (max-width: 767px) {
    .sla-page .sla-row { flex-direction: column; gap: 2px; }
    .sla-page .sla-label { flex-basis: auto; }
    .sla-page .sla-bar-row, .sla-page .sla-log { grid-template-columns: 1fr; row-gap: 4px; padding: 8px 0; }
}

/* Fixed table header (docs/tables.md, rule 2) for the tables not built with the shared cs-table partial: wrap the table
   in .tm-fixed-scroll; only the rows scroll. */
.tm-fixed-scroll { max-height: max(260px, calc(100vh - 300px)); overflow: auto; }
.tm-fixed-scroll > table { margin-bottom: 0; }
.tm-fixed-scroll > table > thead > tr > th { position: sticky !important; top: 0; z-index: 2; background-color: #eef2fb; color: #000000 !important; }
.tm-fixed-scroll > table.bj-table > thead > tr > th { background-color: #274698; color: #ffffff !important; }

/* =====================================================================================================================
   15. Planning page (dashboard/planning) - workshop, Enterprise and customer
   ===================================================================================================================== */
.plg-switch { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 6px; background: #eef6fd; }
.plg-switch > a, .plg-switch > button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 5px; background: transparent; color: #1e3a5f; font-size: 13px; font-weight: 700; transition: none; }
.plg-switch > .on, .plg-switch > .on:hover { background: #0b76bd; color: #fff; }
.plg-switch i { min-width: 18px; padding: 0 5px; border-radius: 9px; background: #dbe8f5; color: #0a4f80; font-style: normal; font-size: 11px; line-height: 18px; text-align: center; }
.plg-switch .on i { background: rgba(255, 255, 255, .22); color: #fff; }

.plg-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 12px; }
.plg-tile { display: flex; flex-direction: column; align-items: flex-start; padding: 12px 14px; border: 0; border-left: 4px solid var(--c); border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px #dbe8f5; text-align: left; }
.plg-tile b { color: var(--c); font-size: 28px; font-weight: 800; line-height: 1.1; }
.plg-tile span { color: #1e3a5f; font-size: 12px; font-weight: 700; }
.plg-tile.on { background: #f2f8fd; box-shadow: 0 0 0 2px var(--c); }

.plg-card { border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px #dbe8f5; overflow: hidden; }
.plg-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px 0; }
.plg-bar.plg-nav { margin-top: 12px; padding: 10px 16px; border-top: 1px solid #dbe8f5; background: #f2f8fd; gap: 6px; }
.plg-heading { display: flex; flex: 1 1 260px; flex-direction: column; min-width: 0; }
.plg-heading b { color: #14233b; font-size: 15px; }
.plg-heading span { color: #3d5a80; font-size: 12px; }
.plg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 32px; height: 32px; padding: 0 12px; border: 0; border-radius: 6px; font-size: 13px; font-weight: 700; }
.plg-btn i, .plg-btn:hover { color: inherit; }
.plg-navy, .plg-navy:hover, .plg-navy i { background-color: #0b76bd; color: #fff; }
.plg-blue, .plg-blue:hover { background-color: #0b76bd; color: #fff; }
.plg-soft, .plg-soft:hover { background-color: #e8f2fb; color: #1e3a5f; }
.plg-primary { background-color: #0b76bd; color: #fff; }
.plg-primary:hover, .plg-primary[aria-pressed="true"] { background-color: #095f98; color: #fff; }

.plg-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 16px; border-top: 1px solid #dbe8f5; color: #1e3a5f; font-size: 12px; }
.plg-legend b { color: #3d5a80; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.plg-legend span { display: inline-flex; align-items: center; gap: 7px; }
.plg-legend em { display: inline-block; width: 14px; height: 10px; border-radius: 3px; background: #1e3a5f; }
.plg-legend em.ringed { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ring); }
.plg-legend em.predicted { background: #fff; border: 1.5px dashed #1e3a5f; }
.plg-legend .sep { width: 1px; height: 16px; background: #c9def2; }

/* Grid: the header stays on vertical scroll, the first column on horizontal scroll */
.plg-scroll { max-height: max(420px, calc(100vh - 220px)); overflow: auto; border-top: 1px solid #dbe8f5; }
.plg-head, .plg-row { display: grid; }
.plg-head { position: sticky; top: 0; z-index: 3; background: #f2f8fd; border-bottom: 1px solid #c9def2; }
.plg-first { position: sticky; left: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 3px; min-width: 0; padding: 5px 16px; background: #fff; box-shadow: 1px 0 0 #c9def2; line-height: 1.25; }
.plg-head .plg-first { grid-column: 1; grid-row: 1 / span 2; justify-content: center; align-items: center; text-align: center; background: #f2f8fd; color: #3d5a80; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.plg-first small { color: #3d5a80; font-size: 11px; }
.plg-first b { color: #0a4f80; font-size: 11px; }
.plg-week, .plg-dayh { min-width: 0; border: 0; color: #14233b; }
.plg-week { grid-row: 1; height: 36px; background: #e8f2fb; box-shadow: inset 2px 0 0 #9cc3e6, inset 0 -1px 0 #c9def2; font-size: 14px; font-weight: 700; white-space: nowrap; }
.plg-dayh { display: flex; flex-direction: column; align-items: center; padding: 4px 0; background: #e8f2fb; box-shadow: inset 1px 0 0 #c9def2; line-height: 1.3; }
.plg-dayh small { font-size: 10px; text-transform: uppercase; }
.plg-dayh b { font-size: 13px; color: inherit; }
.plg-dayh.weekend { background: #dbe8f5; }
.plg-dayh.start, .plg-cell.start { box-shadow: inset 2px 0 0 #9cc3e6; }
.plg-week.now, .plg-dayh.now { background: #0b76bd; color: #fff; }
.plg-group { position: sticky; left: 0; display: flex; align-items: center; gap: 8px; width: 100%; height: 38px; padding: 0 16px; border: 0; border-bottom: 1px solid #c9def2; background: #e8f2fb; color: #14233b; font-size: 13px; font-weight: 800; text-align: left; }
.plg-group small { color: #3d5a80; font-size: 12px; font-weight: 600; }
.plg-chev { color: #0877bd; font-size: 11px; }
.plg-group.open .plg-chev { transform: rotate(90deg); }
.plg-row { min-height: 50px; border-bottom: 1px solid #dbe8f5; }
.plg-cell { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; padding: 5px 4px; box-shadow: inset 1px 0 0 #dbe8f5; }
.plg-cell.now { background: #e1f0fb; }
.plg-job { display: block; width: 100%; min-width: 0; padding: 5px 2px; border: 0; border-radius: 5px; background: var(--c); color: #fff; font-size: 10px; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.plg-job.st-today { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #e08a00; }
.plg-job.st-progress { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0877bd; }
.plg-job.st-completed { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1f9d55; }
.plg-job.st-predicted { background: #fff; border: 1.5px dashed var(--c); color: var(--c); }
.plg-job.faded { opacity: .28; }
.plg-more { padding: 0; border: 0; background: transparent; color: #0877bd; font-size: 10px; font-weight: 700; }
.plg-plate { display: inline-block; padding: 1px 7px; border-radius: 4px; background: #ffd94a; color: #14233b; font-size: 12px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.plg-empty { padding: 32px 16px; color: #3d5a80; font-size: 13px; text-align: center; }
.plg-soon { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 60px 16px; color: #1e3a5f; }
.plg-soon i { color: #274698; font-size: 32px; }

/* Pop-ups */
.plg-overlay { position: fixed; inset: 0; z-index: 1060; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(15, 28, 46, .5); }
.plg-dialog { display: flex; flex-direction: column; width: min(520px, 96vw); max-height: 90vh; border-radius: 8px; background: #fff; box-shadow: 0 24px 60px rgba(15, 28, 46, .35); overflow: hidden; }
.plg-dialog.wide { width: min(820px, 96vw); }
.plg-dialog-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: #e8f2fb; }
.plg-dialog-head b { flex: 1; color: #14233b; font-size: 15px; }
.plg-dialog-head em { width: 12px; height: 12px; border-radius: 3px; }
.plg-dialog-body { overflow: auto; color: #1e3a5f; font-size: 13px; }
#plg-svc-body { padding: 14px 20px; }
.plg-info { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 6px 12px; margin-bottom: 14px; }
.plg-info dt { color: #3d5a80; font-weight: 600; }
.plg-info dd { margin: 0; color: #14233b; font-weight: 600; }
.plg-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.plg-sla { border-top: 1px solid #dbe8f5; }
.plg-sla > summary, .plg-wo > summary { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 14px; cursor: pointer; }
.plg-sla > summary::before, .plg-wo > summary::before { content: "\25B6"; color: #0877bd; font-size: 11px; }
.plg-sla[open] > summary::before, .plg-wo[open] > summary::before { transform: rotate(90deg); }
.plg-wo:not([open]) > summary::before { transform: none; }
.plg-sla summary b { color: #0a4f80; }
.plg-sla summary small { color: #3d5a80; }
.plg-wo { margin: 0 14px 8px 34px; border-radius: 6px; box-shadow: 0 0 0 1px #dbe8f5; overflow: hidden; }
.plg-wo > summary { background: #f2f8fd; }
.plg-line { display: grid; grid-template-columns: 120px 100px minmax(0, 1fr) minmax(0, 1fr) 90px; gap: 10px; align-items: center; width: 100%; min-height: 40px; padding: 4px 12px; border: 0; border-top: 1px solid #eef6fd; background: #fff; color: #1e3a5f; font-size: 12px; text-align: left; }
.plg-line em { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; }
.plg-pill { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.plg-pill.st-today { background: #fdf0dc; color: #a4520f; }
.plg-pill.st-progress { background: #e1f0fb; color: #0a4f80; }
.plg-pill.st-completed { background: #e3f5ea; color: #17703d; }
.plg-pill.st-predicted { background: #fff; border: 1.5px dashed #1e3a5f; color: #1e3a5f; }
@media (max-width: 767px) {
    .plg-line { grid-template-columns: 1fr 1fr; }
}

/* Calendar View */
.plg-cal { display: grid; grid-template-columns: 250px minmax(0, 1fr); border-top: 1px solid #dbe8f5; }
.plg-custs { max-height: 760px; padding: 12px; overflow-y: auto; border-right: 1px solid #dbe8f5; background: #f2f8fd; }
.plg-custs-title { margin-bottom: 8px; color: #3d5a80; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.plg-cust { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 34px; margin-top: 4px; padding: 4px 10px; border: 0; border-radius: 6px; background: transparent; color: #1e3a5f; font-size: 13px; font-weight: 700; text-align: left; }
.plg-cust.all { justify-content: space-between; margin-top: 0; }
.plg-cust.all.on { background: #0b76bd; color: #fff; }
.plg-cust.on:not(.all) { background: #e1f0fb; color: #0a4f80; }
.plg-cust small { font-size: 12px; font-weight: 600; white-space: nowrap; }
.plg-cust .plg-chev { font-size: 10px; }
.plg-cust.open .plg-chev, .plg-sla-row.open .plg-chev { display: inline-block; transform: rotate(90deg); }
.plg-cust-assets { padding: 4px 0 6px 22px; }
.plg-cust-assets div { display: flex; align-items: center; gap: 6px; padding: 3px 0; color: #3d5a80; font-size: 12px; }
.plg-cust-assets em { flex: none; width: 8px; height: 8px; border-radius: 2px; }
.plg-cust-assets b { color: #14233b; }
.plg-cal-main { min-width: 0; }
.plg-hint { color: #3d5a80; font-size: 12px; }
.plg-cal-scroll, .plg-sla-scroll { overflow-x: auto; }
#plg-month-grid { min-width: 760px; }
.plg-cal-head, .plg-cal-week { display: grid; grid-template-columns: 52px repeat(7, minmax(0, 1fr)); }
.plg-cal-head { background: #0b76bd; color: #fff; font-size: 11px; font-weight: 700; text-align: center; text-transform: uppercase; letter-spacing: .04em; }
.plg-cal-head span { padding: 9px 0; }
.plg-cal-week { border-bottom: 1px solid #dbe8f5; }
.plg-cal-week .wk { display: grid; place-items: start center; padding-top: 10px; background: #f2f8fd; color: #3d5a80; font-size: 12px; font-weight: 800; }
.plg-cal-week .wk.now { background: #0b76bd; color: #fff; }
.plg-cal-day { display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: 112px; padding: 6px; border-left: 1px solid #dbe8f5; background: #fff; }
.plg-cal-day.weekend { background: #f6faff; }
.plg-cal-day.now { background: #eef6fd; }
.plg-cal-day.out { background: #f2f8fd; }
.plg-cal-day .top { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.plg-cal-day .top b { color: #14233b; font-size: 13px; }
.plg-cal-day.out .top b { color: #7ea6cf; }
.plg-cal-day.now .top b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #0b76bd; color: #fff; }
.plg-cal-day .total { padding: 2px 6px; border: 0; border-radius: 4px; background: #e1f0fb; color: #0a4f80; font-size: 10px; font-weight: 700; white-space: nowrap; }
.plg-chip { display: block; width: 100%; min-width: 0; padding: 3px 6px; border: 0; border-radius: 5px; background: var(--c); color: #fff; font-size: 11px; font-weight: 700; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plg-chip.st-today { outline: 2px solid #e08a00; outline-offset: 1px; }
.plg-chip.st-progress { outline: 2px solid #0877bd; outline-offset: 1px; }
.plg-chip.st-completed { outline: 2px solid #1f9d55; outline-offset: 1px; }
.plg-chip.st-predicted { background: #fff; border: 1.5px dashed var(--c); color: var(--c); }
@media (max-width: 991px) {
    .plg-cal { grid-template-columns: minmax(0, 1fr); }
    .plg-custs { max-height: 220px; border-right: 0; }
}

/* SLA/Batch View */
.plg-search { width: 340px; max-width: 100%; height: 36px; padding: 0 10px; border: 0; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px #c9def2; color: #1e3a5f; font-size: 13px; }
.plg-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid #dbe8f5; }
.plg-chips > b { margin-right: 4px; color: #3d5a80; font-size: 12px; }
.plg-chips button { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border: 0; border-radius: 15px; background: #e8f2fb; color: #1e3a5f; font-size: 13px; font-weight: 600; }
.plg-chips button.on { background: #fff; box-shadow: inset 0 0 0 2px var(--c); }
.plg-chips button em { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.plg-chips button b { color: #14233b; font-size: 14px; }
#plg-sla-table { min-width: 1080px; }
.plg-sla-row { display: grid; grid-template-columns: 130px minmax(0, 1.1fr) minmax(0, 1.1fr) 80px 70px 60px 150px 90px; column-gap: 12px; align-items: center; width: 100%; min-height: 52px; padding: 6px 16px; border: 0; border-bottom: 1px solid #dbe8f5; background: #fff; color: #1e3a5f; font-size: 13px; text-align: left; }
.plg-sla-row.open { background: #eef6fd; }
.plg-sla-row.head { min-height: 40px; background: #eef6fd; border-top: 1px solid #e8f2fb; color: #3d5a80; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.plg-sla-row b { color: #14233b; font-size: 13px; }
.plg-sla-row small { color: #3d5a80; }
.plg-sla-row .cut { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plg-sla-row .plg-chev { color: #3d5a80; font-size: 10px; }
.plg-bar-line { display: block; width: 100%; height: 5px; border-radius: 3px; background: #dbe8f5; overflow: hidden; }
.plg-bar-line span { display: block; height: 100%; background: #1f9d55; }
.plg-bar-line.sla { height: 6px; }
.plg-bar-line.sla span { background: var(--c); }
.plg-over { padding: 2px 9px; border-radius: 4px; background: #fbe2e2; color: #b42a2a; font-size: 12px; font-weight: 800; }
.plg-sla-open { padding: 4px 16px 14px 40px; background: #f6faff; border-bottom: 1px solid #dbe8f5; }
.plg-order { margin-top: 10px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px #dbe8f5; overflow: hidden; }
.plg-order-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 8px 12px; background: #e8f2fb; color: #1e3a5f; font-size: 12px; }
.plg-order-head b { color: #14233b; font-size: 13px; }
.plg-order-head .plg-bar-line { width: 90px; background: #c9def2; }
.plg-sla-job { display: grid; grid-template-columns: 170px minmax(0, 1.1fr) 110px minmax(0, 1.3fr) 150px 110px 130px; column-gap: 12px; align-items: center; width: 100%; min-height: 68px; padding: 8px 12px; border: 0; border-top: 1px solid #eef6fd; background: #fff; color: #1e3a5f; font-size: 12px; text-align: left; }
.plg-sla-job.head { min-height: 30px; padding-top: 0; padding-bottom: 0; color: #3d5a80; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.plg-sla-job.overdue { background: #fff6f6; }
.plg-sla-job > span { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.plg-sla-job > span.ref { align-items: stretch; }
.plg-sla-job b { color: #14233b; font-size: 13px; }
.plg-sla-job b small { color: #3d5a80; font-weight: 500; }
.plg-sla-job .ref em { color: var(--c); font-size: 11px; font-style: normal; font-weight: 700; }
.plg-sla-job .reg { color: #0877bd; }
.plg-sla-job .wo { color: #7c3aed; font-size: 11px; font-weight: 700; }
.plg-sla-job i { font-style: normal; font-size: 11px; font-weight: 700; }
.plg-sla-job .tag { padding: 1px 8px; border-radius: 4px; background: #e1f0fb; color: #0a4f80; font-size: 10px; letter-spacing: .03em; text-transform: uppercase; }
.plg-sla-job .tag.own { background: #e3f5ea; color: #17703d; }
.plg-sla-job .svc { padding: 1px 10px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--c); color: var(--c); }
.plg-pill.st-rejected, .plg-pill.sla-rejected { background: #fbe2e2; color: #b42a2a; }
.plg-pill.sla-pending { background: #fdf0dc; color: #a4520f; }
.plg-pill.sla-progress { background: #e1f0fb; color: #0a4f80; }
.plg-pill.sla-review { background: #ece8fb; color: #5b44b5; }
.plg-pill.sla-completed { background: #e3f5ea; color: #17703d; }
.plg-pill.sla-late { background: #fbe6dc; color: #9a3a10; }
.plg-pill { white-space: nowrap; }

/* =====================================================================================================================
   16. Equipment & calibration (dashboard/facilities-staff/partials/equipment, .eq) - calendar, status filters, cards,
   forms. No grey: borders and fills are tints of the primary blue.
   ===================================================================================================================== */
.eq { --eq-ink: #000000; --eq-line: #d8e0f3; --eq-tint: #eef2fb; color: var(--eq-ink); }
.eq.eq-busy { pointer-events: none; opacity: .65; }
.eq .eq-sub { color: #000000; }
.eq .eq-empty { text-align: center; padding: 24px; color: #000000; }
.eq .form-control, .eq .form-select { background-color: var(--eq-tint); border-color: var(--eq-line); color: var(--eq-ink); }
.eq .form-control:disabled, .eq .form-select:disabled { background-color: #e2e9f8; }
.eq .form-control::placeholder { color: #a1a5b7; opacity: 1; }
.eq .form-check-input { border-color: #8fa3d6; }
.eq .form-switch .form-check-input:not(:checked) { background-color: #c9d5f2; border-color: #c9d5f2; }
/* a centred table (the category list): headings, cells, switch and buttons; the sort arrow's space is balanced */
.eq .cs-table.eq-center thead th, .eq .cs-table.eq-center tbody td { text-align: center !important; }
.eq .cs-table.eq-center thead th.sorting, .eq .cs-table.eq-center thead th.sorting_asc, .eq .cs-table.eq-center thead th.sorting_desc { padding-left: 26px !important; }
.eq .cs-table.eq-center .cs-actions { justify-content: center !important; }
.eq .cs-table.eq-center .form-switch .form-check-input { float: none; margin: 0; }
.eq .cs-table .form-switch .form-check-input { float: none; margin: 0; }
.eq .eq-plus { flex: 0 0 auto; width: 56px; }
.eq .eq-section { border-bottom: 1px solid var(--eq-line); }
.eq .eq-pick { min-width: 0; }
.eq .eq-pick .select2-selection { background-color: var(--eq-tint); border-color: var(--eq-line); min-height: 100%; }
.eq .eq-pick .select2-selection__choice { background-color: #dfe7f8 !important; }
.eq .eq-pick .select2-selection__choice__display { color: var(--kt-primary) !important; }
.eq .eq-pick .select2-search__field::placeholder { color: #4a6794; }
.eq .eq-highlight-box { background: #fff8e1; }
.eq .form-control.is-invalid, .eq .form-select.is-invalid { border-color: #f1416c !important; }
.eq .eq-preview.eq-preview-bad { background: #fde3e6; color: #c62839; }
.eq .eq-missing, .eq .eq-missing:focus { border: 1px solid #f1416c !important; box-shadow: 0 0 0 1px #f1416c; }
.eq .eq-week { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); border-top: 1px solid var(--eq-line); border-left: 1px solid var(--eq-line); }
.eq .eq-wk-day { border-right: 1px solid var(--eq-line); border-bottom: 1px solid var(--eq-line); min-height: 240px; min-width: 0; padding: 6px; }
.eq .eq-wk-day.today { box-shadow: inset 0 0 0 2px var(--kt-primary); }
.eq .eq-wk-head { background: var(--eq-tint); border-radius: 5px; padding: 4px 6px; margin-bottom: 4px; font-size: 12px; }
.eq .eq-week .eq-ev { white-space: normal; overflow: visible; text-overflow: clip; }
.eq .eq-year { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.eq .eq-ymonth { min-width: 0; }
.eq .eq-ytitle { display: block; width: 100%; text-align: center; font-size: 16px; font-weight: 700; color: #000000; padding: 6px 0; }
.eq .eq-cal.eq-cal-year { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.eq .eq-cal.eq-cal-year > div { min-height: 64px; padding: 2px; }
.eq .eq-cal.eq-cal-year > .eq-dow { min-height: 0; padding: 4px 0; }
.eq .eq-cal.eq-cal-year .eq-num { text-align: right; padding-right: 3px; }
.eq .eq-cal.eq-cal-year .eq-ev { font-size: 10px; line-height: 1.25; text-align: center; padding: 2px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
@media (max-width: 1199px) { .eq .eq-year { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .eq .eq-year { grid-template-columns: minmax(0, 1fr); } }
/* the hover card of a calendar event (it is added to <body>) */
.eq-tip { display: none; position: fixed; z-index: 2000; max-width: 300px; background: #ffffff; color: #000000; border: 1px solid #d8e0f3; border-radius: 9px;
    box-shadow: 0 6px 24px rgba(39, 70, 152, .22); padding: 10px 12px; font-size: 12.5px; pointer-events: none; }
.eq-tip-title { font-weight: 700; font-size: 13.5px; margin-bottom: 6px; }
.eq-tip-row { display: flex; justify-content: space-between; gap: 14px; padding: 2px 0; }
.eq-tip-row b { text-align: right; }
.eq-tip-hint { margin-top: 6px; color: #274698; font-weight: 600; }
.eq-tip .eq-badge { display: inline-block; border-radius: 5px; padding: 1px 8px; font-size: 12px; font-weight: 700; }
.eq-tip .s-overdue { background: #fde3e6; color: #c62839; }
.eq-tip .s-month { background: #ffe3b3; color: #a85a00; }
.eq-tip .s-next { background: #fff3b0; color: #7d6400; }
.eq-tip .s-later { background: #d6f5e3; color: #17804f; }
.eq-tip .s-completed { background: #e6f0fd; color: #1d64c8; }
.eq-view-frame { display: block; width: 100%; height: 75vh; border: 0; }
.eq .eq-link { background: none; border: 0; padding: 0; font-weight: 600; color: var(--kt-primary); text-align: left; }
.eq .eq-scroll { overflow-x: auto; }
.eq input[type="file"].form-control::file-selector-button { background: #dfe7f8; color: var(--kt-primary); }
.eq .eq-badge { display: inline-block; border: 2px solid transparent; border-radius: 5px; padding: 2px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.eq .s-overdue { background: #fde3e6; color: #c62839; }
.eq .s-month { background: #ffe3b3; color: #a85a00; }
.eq .s-next { background: #fff3b0; color: #7d6400; }
.eq .s-later { background: #d6f5e3; color: #17804f; }
.eq .s-completed { background: #e6f0fd; color: #1d64c8; }
.eq .s-none { background: var(--eq-tint); color: var(--kt-primary); }
.eq .eq-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.eq .eq-filters .eq-badge { padding: 4px 12px; cursor: pointer; }
.eq .eq-filters .eq-badge:hover, .eq .eq-filters .eq-badge.on { border-color: currentColor; }
.eq .eq-month-row { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 4px 0 10px; }
.eq .eq-month { min-width: 190px; text-align: center; font-size: 18px; font-weight: 700; color: #000000; white-space: nowrap; }
.eq .eq-cal { display: grid; grid-template-columns: repeat(7, minmax(90px, 1fr)); border-top: 1px solid var(--eq-line); border-left: 1px solid var(--eq-line); }
.eq .eq-cal > div { border-right: 1px solid var(--eq-line); border-bottom: 1px solid var(--eq-line); min-height: 86px; min-width: 0; padding: 4px; }
.eq .eq-cal > .eq-dow { min-height: 0; background: var(--eq-tint); color: var(--kt-primary); font-weight: 700; font-size: 12px; text-align: center; padding: 6px; }
.eq .eq-num { font-size: 12px; font-weight: 600; }
.eq .eq-cal > .other .eq-num { color: #9db0dc; }
.eq .eq-cal > .today { box-shadow: inset 0 0 0 2px var(--kt-primary); }
.eq .eq-ev { display: block; width: 100%; text-align: left; border: 0; border-radius: 4px; padding: 2px 5px; margin-top: 3px; font-size: 11.5px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.eq .eq-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.eq .eq-kpi { background: #fff; border: 1px solid var(--eq-line); border-left: 5px solid var(--kt-primary); border-radius: 10px; padding: 12px 18px; }
.eq .eq-kpi b { display: block; font-size: 26px; line-height: 1.2; }
.eq .eq-kpi small { display: block; color: #000000; }
.eq .eq-kpi.amber { border-left-color: #f59e0b; }
.eq .eq-kpi.yellow { border-left-color: #facc15; }
.eq .eq-kpi.red { border-left-color: #c62839; }
.eq .eq-kpi.green { border-left-color: #17804f; }
.eq .eq-sched > div:first-child b { font-weight: 800; font-size: 1.05rem; }
.eq .eq-sched { border: 1px solid var(--eq-line); border-radius: 9px; padding: 12px 14px; margin-bottom: 10px; }
.eq .eq-preview { margin-top: 12px; background: var(--eq-tint); border-radius: 7px; padding: 8px 12px; font-weight: 600; color: var(--kt-primary); }
@media (max-width: 767px) {
}
/* Section 16: all text black (docs/README.md) - the theme's labels, headings, cells and table footer are greyish.
   Status tags, buttons, links and placeholders keep their colours. */
.eq .form-label, .eq label, .eq .form-control, .eq .form-select, .eq h2, .eq h3, .eq h4, .eq h5, .eq b, .eq .text-gray-900, .eq .modal-title,
.eq .eq-kpi span, .eq .cs-table tbody td, .eq .cs-table-wrap .dataTables_info, .eq .cs-table-wrap .dataTables_length select,
.eq .cs-table-wrap .page-item:not(.active):not(.first):not(.previous):not(.next):not(.last) .page-link,
.eq .select2-selection__choice__display, .eq .eq-pick .select2-selection__choice__display { color: #000000 !important; }
.eq .eq-badge b, .eq .btn b { color: inherit !important; }
/* ... and every drop-down: options, group headings, the multi-select list and its prompt */
.eq select, .eq option, .eq optgroup, .eq .select2-results__option, .eq .select2-results__message, .eq .select2-selection__placeholder,
.eq .select2-search__field, .eq .eq-pick .select2-search__field::placeholder { color: #000000 !important; }
.eq .select2-results__option--highlighted, .eq .select2-results__option--selected { background-color: #eef2fb !important; color: #000000 !important; }
/* Placeholders are light grey (asked for): an empty drop-down's "Select ..." and the multi-select prompt too */
.eq select.form-select:has(> option[value=""]:checked), .eq option[value=""], .eq .select2-selection__placeholder,
.eq .eq-pick .select2-search__field::placeholder { color: #a1a5b7 !important; }
/* Section 16's date picker (it is added to <body>): selectable days and headings black, the others pale */
.eq-calendar .flatpickr-day:not(.flatpickr-disabled):not(.notAllowed):not(.selected),
.eq-calendar span.flatpickr-weekday, .eq-calendar .flatpickr-current-month, .eq-calendar .flatpickr-current-month select,
.eq-calendar .flatpickr-current-month input.cur-year { color: #000000 !important; }
.eq-calendar .flatpickr-prev-month svg, .eq-calendar .flatpickr-next-month svg { fill: #000000 !important; }
.eq-calendar .flatpickr-day.flatpickr-disabled, .eq-calendar .flatpickr-day.notAllowed { color: #c4cbdd !important; }

/* =====================================================================================================================
   Dashboard header tabs and Operations count cards (Workshop + Enterprise dashboards)
   ===================================================================================================================== */
/* Header tabs: Operations / Compliance / Earned Recognition */
.dash-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0; list-style: none; background: #e8f2fb; border-radius: 8px; }
.dash-tabs button { border: 0; background: transparent; color: #1e3a5f; font-weight: 700; padding: 9px 18px; border-radius: 6px; }
.dash-tabs button.active { background: #1e3a5f; color: #fff; }

/* Count cards: white, coloured left edge, big number above the label */
.ops-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.ops-card { display: block; background: #fff; border: 1px solid #dbe8f6; border-left: 6px solid var(--accent); border-radius: 10px; padding: 18px 20px; }
.ops-card:hover { box-shadow: 0 4px 14px rgba(30, 58, 95, .12); }
.ops-card-value { display: block; color: var(--accent); font-size: 32px; font-weight: 800; line-height: 1.1; margin-bottom: 8px; }
.ops-card-label { display: block; color: #1e3a5f; font-size: 14px; font-weight: 700; }
@media (max-width: 1199px) { .ops-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .ops-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
