@charset "UTF-8";
/* DataDis MIR-RT look - task 10 (Dan, Nov 14 2026).
   Source: Marie-Michele Leclerc (DataDis UX/UI), "Atrium Platform - UI Adjustments", Oct 20 2026:
   - accents: blue and pink become DataDis Red #C50000
   - dark elements and text: DataDis Black #2D2D2D
   - backgrounds and input fields: DataDis Light Grey #F5F5F5
   - font: system font stack, 14px
   Loaded after custom.css by index.tpl.php only when $dd_new_design is on.
   "html body" in front of a rule beats the <style> block inside sidebar.php (#EF3741 pink). */

:root {
    --dd-red: #C50000;
    --dd-red-hover: #A30000;
    --dd-red-light: #FBE5E5;
    --dd-black: #2D2D2D;
    --dd-grey: #F5F5F5;
    --dd-border: #E2E2E2;
    --dd-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

    --bs-primary: #C50000;
    --bs-primary-rgb: 197, 0, 0;
    --bs-danger: #C50000;
    --bs-danger-rgb: 197, 0, 0;
    --bs-dark: #2D2D2D;
    --bs-body-color: #2D2D2D;
    --bs-font-sans-serif: var(--dd-font);
    --bs-body-font-family: var(--dd-font);
}

/* ---------- font ---------- */
html body,
html body button, html body input, html body select, html body textarea,
html body .btn, html body .form-control, html body .form-select,
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6,
html body .menu-title, html body .card-title, html body table, html body .dataTables_wrapper,
html body .sweet-alert, html body .sweet-alert h2, html body .sweet-alert p {
    font-family: var(--dd-font) !important;
}
html body { font-size: 14px; color: var(--dd-black); }
/* Spots that set their own font (Dan, Nov 14 2026: "Yes, add them"): footer line (Arial inline),
   jQuery UI dropdowns + date pickers (Arial), map address search box + description (Roboto). */
html body #footer p, html body .footer p,
html body .ui-widget, html body .ui-widget input, html body .ui-widget select, html body .ui-widget textarea,
html body .ui-widget button, html body .ui-menu-item, html body .ui-datepicker,
html body #pac-input, html body #description, html body .pac-controls label, html body .pac-container, html body .pac-item {
    font-family: var(--dd-font) !important;
}

/* ---------- backgrounds ---------- */
html body, html body #kt_wrapper, html body #kt_content, html body .content, html body .page {
    background-color: var(--dd-grey) !important;
}
html body .card { background-color: #fff; }

/* ---------- dark text ---------- */
html body .text-dark, html body .text-gray-900, html body .text-gray-800,
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6,
html body .card-title, html body .card-label, html body .card-title .card-label {
    color: var(--dd-black) !important;
}

/* ---------- accents: blue and pink -> DataDis Red ---------- */
html body a { color: var(--dd-red); }
html body a:hover { color: var(--dd-red-hover); }
html body .text-primary, html body .text-danger, html body .link-primary,
html body .text-hover-primary:hover, html body .text-active-primary.active,
html body .breadcrumb .breadcrumb-item.text-primary, html body .breadcrumb-item.active {
    color: var(--dd-red) !important;
}
html body .bg-primary, html body .bg-danger, html body .badge-primary, html body .badge-danger,
html body .badge.bg-primary, html body .badge.bg-danger {
    background-color: var(--dd-red) !important;
    color: #fff !important;
}
html body .bg-light-primary, html body .bg-light-danger,
html body .badge-light-primary, html body .badge-light-danger {
    background-color: var(--dd-red-light) !important;
    color: var(--dd-red) !important;
}
html body .btn.btn-primary, html body .btn.btn-danger, html body .btn.btn-whitelabel {
    background-color: var(--dd-red) !important;
    border-color: var(--dd-red) !important;
    color: #fff !important;
}
html body .btn.btn-primary:hover, html body .btn.btn-primary:focus, html body .btn.btn-primary:active,
html body .btn.btn-danger:hover, html body .btn.btn-danger:focus, html body .btn.btn-danger:active,
html body .btn.btn-whitelabel:hover, html body .btn.btn-whitelabel:focus {
    background-color: var(--dd-red-hover) !important;
    border-color: var(--dd-red-hover) !important;
    color: #fff !important;
}
html body .btn.btn-light-primary { background-color: var(--dd-red-light) !important; color: var(--dd-red) !important; }
html body .btn.btn-light-primary:hover { background-color: var(--dd-red) !important; color: #fff !important; }
html body .btn.btn-active-color-primary:hover, html body .btn.btn-active-color-primary.active { color: var(--dd-red) !important; }
html body .svg-icon.svg-icon-primary svg [fill]:not(.permanent):not(g) { fill: var(--dd-red) !important; }

/* Purple ("info", e.g. Resend Email) is neither blue nor pink: DataDis Black keeps it apart from the red buttons. */
html body .btn.btn-info { background-color: var(--dd-black) !important; border-color: var(--dd-black) !important; color: #fff !important; }
html body .btn.btn-info:hover, html body .btn.btn-info:focus { background-color: #000 !important; border-color: #000 !important; }

/* tabs, pagination, checkboxes */
html body .nav-line-tabs .nav-item .nav-link.active, html body .nav-line-tabs .nav-item .nav-link:hover {
    border-bottom-color: var(--dd-red) !important;
    color: var(--dd-red) !important;
}
html body .page-item.active .page-link,
html body .dataTables_wrapper .dataTables_paginate .paginate_button.current,
html body .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--dd-red) !important;
    border-color: var(--dd-red) !important;
    color: #fff !important;
}
html body .page-link { color: var(--dd-black); }
html body .page-link:hover { color: var(--dd-red); }
html body .form-check-input:checked { background-color: var(--dd-red) !important; border-color: var(--dd-red) !important; }
html body .sweet-alert button.confirm { background-color: var(--dd-red) !important; }

/* ---------- input fields: light grey ---------- */
html body .form-control, html body .form-select, html body .form-control.form-control-solid,
html body .form-select.form-select-solid, html body select.form-control, html body textarea.form-control,
html body .select2-container .select2-selection {
    background-color: var(--dd-grey) !important;
    border-color: var(--dd-border) !important;
    color: var(--dd-black) !important;
}
html body .form-control:focus, html body .form-select:focus {
    border-color: var(--dd-red) !important;
    box-shadow: 0 0 0 .2rem rgba(197, 0, 0, .12) !important;
}

/* ---------- left menu ---------- */
html body .aside.aside-dark, html body .aside.aside-dark .aside-logo { background-color: var(--dd-black) !important; }
html body .aside-dark .menu .menu-item .menu-link.active,
html body .aside-dark .menu .menu-item:not(.here) .menu-link:hover:not(.disabled):not(.active):not(.here) {
    background-color: var(--dd-red) !important;
    border-radius: 6px;
}
html body .aside-dark .menu .menu-item .menu-link.active .menu-title,
html body .aside-dark .menu .menu-item .menu-link.active .menu-icon i,
html body .aside-dark .menu .menu-item .menu-link:hover .menu-title,
html body .aside-dark .menu .menu-item .menu-link:hover .menu-icon i {
    color: #fff !important;
}

/* ---------- top bar (like MIR-RT) ---------- */
html body #kt_header.dd-topbar {
    background-color: #fff !important;
    border-bottom: 1px solid var(--dd-border);
    box-shadow: none;
}
.dd-topbar .dd-welcome { font-size: 18px; font-weight: 600; color: var(--dd-black); }
/* Logo in the top bar, "Welcome ..." in the sidebar (Dan, Nov 15 2026) */
/* Dan's file is exactly 280x36 (Nov 15 2026): shown at that size, never stretched (object-fit keeps its shape). */
.dd-topbar .dd-topbar-logo { flex-shrink: 0; }
.dd-topbar .dd-topbar-logo img { width: 167px !important; height: 36px !important; min-width: 167px; min-height: 36px;
    max-width: 167px !important; max-height: 36px !important; object-fit: contain; display: block; }
@media (max-width: 575px) { .dd-topbar .dd-topbar-logo img { width: 111px !important; height: 24px !important;
    min-width: 111px; min-height: 24px; max-width: 111px !important; max-height: 24px !important; } }
html body .dd-side-welcome {
    flex: 1 1 auto; min-width: 0; padding: 8px 8px 8px 4px;
    color: #fff; font-size: 16px; font-weight: 600; line-height: 1.3;
    /* long names wrap onto 2 lines for every login type (Dan, Nov 15 2026); "..." only past 2 lines */
    white-space: normal; overflow: hidden; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
}
html body .aside .aside-logo:has(.dd-side-welcome) { height: auto !important; min-height: 65px; padding-top: 10px; padding-bottom: 10px; }
/* Breakdown forms, dealer list: "Approx. Radius" text red instead of blue (Dan, Nov 15 2026).
   Everything else in that list stays (dots, In/Out of Range labels, click highlight). */
html body .dlr-radius { color: var(--dd-red) !important; }
/* ---------- PHONE FIXES (Dan, Nov 15 2026: "fix it for mobile") ---------- */
@media (max-width: 575.98px) {
    /* 1. top bar: everything fits (Sign Out was cut off): smaller buttons, tighter gaps, logo scaled evenly */
    .dd-topbar .dd-topbar-actions { gap: 6px; }
    .dd-topbar .dd-icon-btn { width: 34px; height: 34px; border-radius: 8px; }
    .dd-topbar .dd-icon-btn svg { width: 18px; height: 18px; }
    .dd-topbar .dd-topbar-logo img { width: 97px !important; height: 21px !important; min-width: 97px; min-height: 21px;
        max-width: 97px !important; max-height: 21px !important; }
    html body #kt_header.dd-topbar .container-fluid { padding-left: 10px; padding-right: 10px; }
    /* 3. ticket page: call-log table no wider than the phone; page never slides sideways */
    html body #kt_content .table td, html body #kt_content .table th { padding-left: .35rem !important; padding-right: .35rem !important; }
    html body .ticket-action-btns { width: 100%; max-width: 100%; box-sizing: border-box; }
    html body .ticket-action-btns > .btn { min-width: 0; }
    /* the boxes around the ticket action buttons may shrink to the card (buttons poked 5px past it; tested Nov 15) */
    html body #kt_content .card-body .flex-grow-1 { min-width: 0; }
    html body #kt_content .card-body .flex-grow-1 .d-flex.flex-column:has(.ticket-action-btns) { min-width: 0; max-width: 100%; flex: 1 1 100%; }
    html body #kt_wrapper, html body #kt_content { overflow-x: hidden; }
}
@media (max-width: 991.98px) {
    /* 4. "Welcome <account>" also at the top of the phone menu */
    html body .aside .aside-logo { display: flex !important; height: auto; min-height: 56px; padding: 14px 20px 6px; }
    /* 5. empty grey band under the top bar: on phones the theme moves the page title into the page and leaves its
       old title bar empty; hide that bar only when nothing is left in it */
    html body #kt_toolbar:not(:has(h1, .btn, a, input, select, button)) { display: none !important; }
}
/* Technician picker: pink warning text, Clear hover and remove (x) hover -> DataDis red (Dan, Nov 15 2026). */
html body .tech-picker-wrap .tech-clear-field:hover, html body .tech-picker-wrap .tp-note.tp-note-warn,
html body .tp-opt-remove:hover { color: var(--dd-red) !important; }
/* Menu shrink button removed (Dan, Nov 15 2026: "buggy... always full size"). */
html body #kt_aside_toggle { display: none !important; }
.dd-topbar .dd-topbar-actions { gap: 10px; }
/* MIR-RT buttons: 40px rounded square, light border, dark 20px outline icon (Dan, Nov 14 2026) */
.dd-topbar .dd-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #D6D6D6;
    background: #fff;
    color: var(--dd-black) !important;
    text-decoration: none;
}
.dd-topbar .dd-icon-btn svg { width: 20px; height: 20px; stroke: var(--dd-black); }
.dd-topbar .dd-icon-btn:hover { background: var(--dd-grey); }
.dd-topbar .dd-clock { font-size: 14px; color: var(--dd-black); margin-right: 14px; white-space: nowrap; }
.dd-topbar .dd-clock sup { font-size: 9px; }
.dd-topbar .dd-clock b { font-weight: 700; margin-left: 12px; }
/* dark tooltip under each button, like MIR-RT's "Log out" */
.dd-topbar [data-dd-tip]:hover::after {
    content: attr(data-dd-tip);
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--dd-black);
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1000;
}

/* Menu labels stay on one line, also when the active item turns bold (Dan, Nov 16 2026):
   bold MECHANICAL BREAKDOWN wrapped to 2 lines on the mechanical pages. */
html body #kt_aside .menu .menu-item .menu-link .menu-title { white-space: nowrap; }
