﻿/**
 * Main stylesheet for CRM and vehicle management system UI
 *
 * This CSS file provides styling for:
 *  - General layout and typography (body, fonts, margins)
 *  - Navigation elements including side navigation bar and dropdown menus
 *  - Buttons with custom CRM styles (.btn-crm) and hover effects
 *  - Form controls including inputs with inner-addon icons and custom checkboxes/radios
 *  - Tables including DataTables integration styles, hover effects, scroll syncing, and responsive behavior
 *  - Modals, headers, footers, and branding elements (logo sizing, header backgrounds)
 *  - Utility classes for spacing, borders, alignment, and visibility toggling
 *  - Responsive media queries for different screen sizes (mobile, desktop)
 *  - Tooltip styling with custom arrow boxes and large tooltips
 *  - Clipboard and user interaction cursors and pointer styles
 *  - Scroll synchronization UI elements (top-scroll bars)
 *  - Dropdown submenu positioning and arrow rotation for nested dropdowns
 *  - Invoice page tax and price field overflow handling
 *
 * Usage:
 *  - Load this CSS file globally for all CRM pages
 *  - Customize specific classes as needed for UI/UX consistency
 *
 * Dependencies:
 *  - Assumes usage alongside Bootstrap and jQuery DataTables CSS for base styles
 *
 */

body {
    margin: 0;
    height: 100%;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;

}

.login-color {
    background-color: #00a3d6;

}

.error {
    color: red;
}

.footer_sep {
    width: 100%;
    border-top: 1px solid #484848;
    margin: 15px 0;
}

.icon-bar-dark {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #aaa;
    border-radius: 1px;
}

#myNavbar {
    /* background-color:#f1f1f1*/
}

.no-padding {
    padding-left: 1px !important;
    padding-right: 1px !important;
}


.side-nav {
    height: 100%;
    width: 0px;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #ccc;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.side-nav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 16px;
    color: #333;
    display: block;
    transition: 0.3s;
}

.side-nav a:hover {
    color: #f1f1f1;
}

.side-nav span {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 16px;
    color: #333;
    display: block;
    transition: 0.3s;
    cursor: pointer;
}

.side-nav span:hover {
    color: #f1f1f1;
}

.side-nav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 22px;
    margin-left: 50px;
}

@media screen and (max-height: 450px) {
    .side-nav {
        padding-top: 15px;
    }

    .side-nav a {
        font-size: 18px;
    }
}

.side-bar {
    font-size: 16px;
    cursor: pointer;
    padding-left: 15px;
}

.side-bar2 {
    font-size: 16px;
    cursor: pointer;
    padding-left: 39px;
}

.form-control-checkbox {
    /*  height: 8px;
      width: 8px ;*/
}

.btn-crm {
    background-color: #000 !important;
    color: white;
    box-shadow: 1px 1px 1px #333 !important;
    border-radius: 8px;
    transition: 0.2s all ease;
    -webkit-transition: 0.2s all ease;
    -moz-transition: 0.2s all ease;
}

.btn-crm:hover {
    background-color: #23465f !important;
    color: white;
}

.modal-hdrcrm {
    color: #13365f;
}

.client-header {
    text-decoration: bold;
    color: black;
}

.header-span {
    font-size: 1.2rem;
}

.tip-heading {
    font-size: .9em;
    color: blue;
    cursor: pointer;
}

.clickable {
    cursor: pointer;
}

.clickable:hover {
    color: #007bff;
}

.border-right {
    border-right: 1px solid #ddd;
}

.borders {
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    margin: -1px;
}

.border-left {
    border-left: 1px solid #ddd;
}

.sixty-percent {
    width: 60%;
}

.fifty-percent {
    width: 50%;
}

.footer-link {
    color: #111 !important;
    text-decoration: none;
}

.logout-link {
    text-decoration: none;
}

.logout-link:hover {
    text-decoration: underline !important;
    color: #007bff !important;
}

.toggle-tip {
    border: 1px solid #2f00ff;
    padding-left: 5px;
    padding-right: 5px;
    font-size: .9em;
    color: #888;
}

.large.tooltip-inner {
    max-width: 350px;
    width: 350px;
    text-align: left;
    background-color: #ccc;
    color: #333;

}

.arrow_box {
    position: relative;
    background: #ccc;
    border: 1px solid #ccc;
}

.arrow_box:after,
.arrow_box:before {
    bottom: 100%;
    left: 50%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.arrow_box:after {
    border-color: rgba(204, 204, 204, 0);
    border-bottom-color: #ccc;
    border-width: 10px;
    margin-left: -10px;
}

.arrow_box:before {
    border-color: rgba(204, 204, 204, 0);
    border-bottom-color: #ccc;
    border-width: 11px;
    margin-left: -11px;
}

.btn-borders {
    border-style: solid;
    border-width: 1px;
    border-color: #999;
}

.form-control:hover {
    box-shadow: 1px 1px 1px #888;
}

.copyright {
    font-size: 0.8em;
}

.data-table-pad-left {
    padding-left: 30px;
}

span.inside-input {
    position: absolute;
    margin-left: 87%;
    padding-top: 9px;
    height: 25px;
    display: flex;
    align-items: center;
}

input.inside-input {
    /*padding-left: 25px;
  height: 20px;*/
}

.radio-span {
    padding-right: 15px;
    padding-left: 5px;
}

left-inner-addon {
    position: relative;
}

.left-inner-addon input {
    padding-left: 22px;
}

.left-inner-addon span {
    position: absolute;
    padding: 7px 12px;
    pointer-events: none;
}

.right-inner-addon {
    position: relative;
}

.right-inner-addon input {
    padding-right: 30px;
}

.right-inner-addon span {
    position: absolute;
    right: 0px;
    padding: 7px 12px;
    pointer-events: none;
}

.dtable {
    cursor: pointer
}

.table tbody tr:hover td,
.table tbody tr:hover th {
    background-color: #d8e5ff;
}

.custom-radio {
    margin-top: 5px;
}

.left-inner-addon {
    position: relative;
}

.left-inner-addon input {
    padding-left: 22px;
}

.left-inner-addon span {
    position: absolute;
    padding: 7px 12px;
    pointer-events: none;
}

.right-inner-addon {
    position: relative;
}

.right-inner-addon input {
    padding-right: 30px;
}

.right-inner-addon span {
    position: absolute;
    right: 0px;
    padding: 7px 12px;
    pointer-events: none;
}

.headings {
    min-height: 40px;
    background-color: #000;
    color: #fff;
    margin: auto;
    padding-top: 6px;
    margin-top: -17px;
}

.headings a {
    color: #ddd;
}

.down-25 {
    margin-top: 25px;
}

.hdr-nav {
    font-size: 24px;
    color: #253d9b;
}

.pointer {
    cursor: pointer;
}

.pointer:hover {
    text-decoration: underline;
    color: #007bff;

}

.top-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    height: 20px;
    margin-bottom: 5px;
}

.top-scroll-inner {
    height: 1px;
}

.dataTables_wrapper .dataTables_scroll {
    overflow-x: auto;
}

.table tbody tr:hover {
    cursor: pointer;
}

@media screen and (min-width: 250px) {
    .hdr-msg {
        color: #000;
        padding-top: 8px;
        padding-bottom: 8px;
        padding-left: 225px;

    }
}

@media screen and (min-width: 751px) {

    .hdr-msg {
        color: 000;
        padding: 25px 0;
        text-align: center;
    }

    .hdr-msg br {
        display: none;
    }
}

.login-wrapper {
    padding-top: 200px;
    padding-bottom: 450px;
    background: url(/images/cars1.jpg) center;
    background-size: cover;
    color: #fff;
    font-size: 18px;
    width: 100%;

}

.login-wrapper input {
    height: 45px;
    border: 2px solid #000;
}

.login-wrapper button {

    border: 1px solid #fff;

    background-color: #000;
    min-width: 120px !important;
    min-height: 55px !important;
    color: white;
    box-shadow: 1px 1px 1px #888;
    font-size: 1.4em;
}

.login-wrapper button:hover {

    border: 1px solid #fff;
    box-shadow: 0px px #253d9b, 0px 0px #253d9b, 0px 0px #253d9b !important;

    background-color: #222;
    color: #eee;

}

.hdr-bkgrd-color {
    background-color: #b2bfd4;
    min-height: 100px;
    width: 100%;
    border-top: 1px solid #484848;
    border-bottom: 1px solid #484848;
    justify-content: center;
    align-items: center;

}

.hdr-bkgrd-color a {
    position: absolute;
    left: 15px;
}

.hdr-bkgrd-color img {
    padding-top: 12px;
}

.hdr-bkgrd-color-nav {
    background-color: #b2bfd4;
    min-height: 100px;
    width: 100%;
    border-top: 1px solid #484848;
    border-bottom: 1px solid #484848;

}


.ftr {
    text-align: center;
    background-color: #b2bfd4;
    color: #222;
    min-height: 40px;
    padding: 8px 0;
    border-top: 1px solid #000;
}

.ftr a {
    background-color: #b2bfd4;
    color: #222 !important;
    text-decoration: underline;
}

.my-container-fluid {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.wrapper {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
}

.dt-center {
    margin-left: auto;
    margin-right: auto;
}

.dt-th {
    color: #fff;
    background-color: #000;
}

.page-item.active .page-link {
    background-color: #13365f !important;
    ;
}

.ustyle {
    font-size: 14px;
    color: #595f6a !important;
    padding-right: 11px;
    padding-top: 11px;
}

.hidden {
    display: none !important;
}

.logo {
    height: 90px;
    width: auto;
}

.dataTables_wrapper .dataTables_filter {
    margin-left: 30px;
}

.btn {
    border-radius: 8px;
}

.readonly {
    pointer-events: none;
    /* Disable interaction */
    background-color: #e9ecef;
    /* Lighter background color */
}

.clear-filters-btn {
    margin-right: 20px !important;
}

.envstyle {
    text-decoration: bold !important;
    font-size: 18px !important;
}

/* Custom styles for side-opening dropdowns */
.dropdown-menu .dropdown-submenu {
    position: relative;
}

.dropdown-menu .dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    /* Position the submenu to the right of the parent */
    margin-top: -1px;
    /* Align with the parent item */
}

.dropdown-menu .dropdown-submenu:hover .dropdown-menu {
    display: block;
    /* Show the submenu on hover */
}

/* Default behavior for all dropdowns (downward arrow) */
.nav-link.dropdown-toggle::after {
    transform: rotate(0deg);
    /* Downward arrow */
    vertical-align: middle;
    /* Align properly */
}

/* Specific behavior for submenus (side-pointing arrow) */
.dropdown-item.dropdown-toggle::after {
    transform: rotate(270deg);
    /* Point to the right */
    vertical-align: middle;
    /* Align properly */
}

/* Prevent arrow rotation when submenus are expanded */
.dropdown-item.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(0deg);
    /* Point downward when expanded */
}

/* Add spacing between text and the arrow */
.nav-link.dropdown-toggle::after,
.dropdown-item.dropdown-toggle::after {
    margin-left: 0.3em;
    /* Adjust as needed */
}

@media (max-width:991px) {
    .brdcrmrm-responsive {
        display: none;
    }
}

@media (min-width:992px) {
    .brdcrmrm1-responsive {
        display: none;
    }

    .breadcrumb {
        padding: .55rem 1rem;
    }

    .breadcrumb a {
        color: cyan;
    }
}

.dt-buttons {
    margin-right: .5rem;
    /* adjust spacing as needed */
}

/* Invoice page tax and price field overflow handling */
.tax_price_div p,
.total_price_div p,
.item_tax_price_div p,
.item_total_price_div p {
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: normal;
    font-size: 0.9em;
    line-height: 1.2;
    margin: 0;
    padding: 2px;
}

/* Responsive adjustments for tax and price fields */
@media (max-width: 1200px) {

    .tax_price_div p,
    .total_price_div p,
    .item_tax_price_div p,
    .item_total_price_div p {
        font-size: 0.8em;
    }
}

@media (max-width: 992px) {

    .tax_price_div p,
    .total_price_div p,
    .item_tax_price_div p,
    .item_total_price_div p {
        font-size: 0.75em;
    }
}

/* Ensure proper spacing in vehicle and merchandise rows */
.vehicle-row .tax_price_div,
.vehicle-row .total_price_div,
.merchandise-row .tax_price_div,
.merchandise-row .total_price_div {
    min-width: 0;
    flex: 0 0 auto;
}

/* Prevent text overflow in form groups */
.form-group p[id^="tax_price"],
.form-group p[id^="total_price"],
.form-group p[id^="item_tax_price"],
.form-group p[id^="item_total_price"] {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Show full text on hover for truncated values */
.form-group p[id^="tax_price"]:hover,
.form-group p[id^="total_price"]:hover,
.form-group p[id^="item_tax_price"]:hover,
.form-group p[id^="item_total_price"]:hover {
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    position: relative;
    z-index: 10;
    background-color: #fff;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}