/* Lakshya visual layer. Existing scripts, selectors and form behavior are retained. */
:root {
  --crm-canvas: #f5f7f6;
  --crm-surface: #ffffff;
  --crm-ink: #20332f;
  --crm-muted: #72807b;
  --crm-line: #e3e9e5;
  --crm-primary: #28735c;
  --crm-dark: #193d33;
  --crm-soft: #eaf3ed;
  --crm-sidebar: 218px;
  --crm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html:has(body.crm-modern), body.crm-modern {
  min-width: 0 !important;
  background: var(--crm-canvas) !important;
}
body.crm-modern { color: var(--crm-ink); font-family: var(--crm-font); font-size: 14px; line-height: 1.55; }
body.crm-modern h1, body.crm-modern h2, body.crm-modern h3, body.crm-modern h4,
body.crm-modern h5, body.crm-modern h6, body.crm-modern .text-muted,
body.crm-modern input, body.crm-modern select, body.crm-modern textarea,
body.crm-modern button, body.crm-modern .btn { font-family: var(--crm-font) !important; }
body.crm-modern h1, body.crm-modern h2, body.crm-modern h3 { letter-spacing: -.7px; }
body.crm-modern h4, body.crm-modern h5, body.crm-modern h6 { letter-spacing: -.2px; }
body.crm-modern a { transition: color 120ms ease, background-color 120ms ease; }
body.crm-modern a:focus-visible, body.crm-modern button:focus-visible,
body.crm-modern input:focus-visible, body.crm-modern select:focus-visible,
body.crm-modern textarea:focus-visible { outline: 2px solid #42967c !important; outline-offset: 3px; }

/* Brand and navigation: same DOM, presented as a persistent desktop sidebar. */
body.crm-modern #tograypanelmenu {
  left: var(--crm-sidebar); width: calc(100% - var(--crm-sidebar)); height: 74px;
  background: var(--crm-surface); border-bottom: 1px solid var(--crm-line); box-shadow: none;
}
body.crm-modern .logonavitop {
  position: fixed; left: 0; top: 0; width: var(--crm-sidebar); height: 103px;
  background: var(--crm-dark); padding: 25px 20px;
}
body.crm-modern .logonavitop > a { display: flex; gap: 11px; align-items: center; }
body.crm-modern #tograypanelmenu .logonavitop img {
  width: 43px; height: 43px; object-fit: contain; border-radius: 11px; padding: 4px; background: #fff;
}
.crm-brand-name { color: #fff; font-size: 21px; font-weight: 650; line-height: 1.2; letter-spacing: -.4px; }
.crm-brand-name small { display: block; font-size: 10px; font-weight: 400; color: #adc3b9; letter-spacing: .4px; margin-top: 5px; }
body.crm-modern #topnav {
  position: fixed; left: 0; top: 103px; bottom: 0; width: var(--crm-sidebar);
  padding: 4px 14px 94px; background: var(--crm-dark); transition: none;
}
body.crm-modern #topnav .navbar-custom { background: none; padding: 0; border: 0; }
body.crm-modern #topnav .navbar-custom .logo { display: none; }
body.crm-modern #navigation { display: block !important; position: static; width: 100%; height: auto; max-height: none; padding: 0; background: transparent; overflow: visible; }
.crm-nav-caption { padding: 11px 14px 16px; color: #8eafa1; font-size: 10px; letter-spacing: 1.8px; font-weight: 650; text-transform: uppercase; }
body.crm-modern #topnav .navigation-menu { display: flex; flex-direction: column; gap: 5px; float: none; margin: 0; padding: 0; }
body.crm-modern #topnav .navigation-menu > li { width: 100% !important; float: none; text-align: left; position: relative; }
body.crm-modern #topnav .navigation-menu > li > a {
  display: flex; align-items: center; gap: 12px; color: #bdcec5 !important;
  font-size: 13px !important; font-weight: 500; padding: 13px 14px !important;
  margin: 0 !important; border-radius: 8px; line-height: 1.3;
}
body.crm-modern #topnav .navigation-menu > li > a i { display: inline-block !important; width: 19px; font-size: 17px !important; margin: 0; color: #93b6a5 !important; }
body.crm-modern #topnav .navigation-menu > li > a:hover,
body.crm-modern #topnav .navigation-menu > li > a:focus-visible { background: #2b5144; color: #fff !important; }
body.crm-modern[data-section=""] #topnav .navigation-menu > li:first-child > a,
body.crm-modern[data-section="query"] #topnav a[href="display.html?ga=query&statusid=1"],
body.crm-modern[data-section="clients"] #topnav a[href="display.html?ga=clients"],
body.crm-modern[data-section="itineraries"] #topnav a[href="display.html?ga=itineraries"],
body.crm-modern[data-section="suppliers"] #topnav a[href="display.html?ga=suppliers"],
body.crm-modern[data-section="reports"] #topnav a[href="display.html?ga=reports"],
body.crm-modern[data-section="master"] #topnav a[href="display.html?ga=master"] {
  background: #335c4c; color: #fff !important; box-shadow: inset 3px 0 0 #b9d9b7;
}
body.crm-modern #topnav .navigation-menu > li .submenu {
  left: calc(100% + 7px) !important; right: auto !important; top: 0; margin: 0;
  padding: 8px; border: 1px solid var(--crm-line); border-radius: 11px;
  background: #fff; box-shadow: 0 10px 24px #20332f14; transition: opacity 120ms ease;
}
body.crm-modern #topnav .navigation-menu > li:hover > .submenu,
body.crm-modern #topnav .navigation-menu > li:focus-within > .submenu {
  visibility: visible; opacity: 1;
}
body.crm-modern #topnav .navigation-menu .submenu li a { color: #41534b !important; font-size: 12px !important; padding: 9px 12px !important; margin: 0 !important; border-radius: 5px; }
body.crm-modern #topnav .navigation-menu .submenu li a:hover { background: var(--crm-soft); color: var(--crm-primary) !important; }
body.crm-modern .main-menu { height: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
body.crm-modern .main-menu > .row { margin: 0; }
body.crm-modern .main-menu > .row > .col-md-9 { position: static; padding: 0; }
body.crm-modern .main-menu > .row > .col-md-3 {
  position: fixed; left: 20px; bottom: 23px; width: calc(var(--crm-sidebar) - 40px);
  max-width: none; padding: 0;
}
body.crm-modern .main-menu > .row > .col-md-3 .row { margin: 0; }
body.crm-modern .main-menu > .row > .col-md-3 .col-md-12 { padding: 0; }
body.crm-modern #tograypanelmenu .add-btn {
  width: 100% !important; margin: 0 !important; padding: 12px 15px !important;
  border: 1px solid #bad3b6 !important; background: #d4e5c9 !important; color: #274535 !important;
  font-size: 13px !important; font-weight: 650 !important; border-radius: 8px; box-shadow: none;
}
body.crm-modern #tograypanelmenu .add-btn:hover { background: #e3efdc !important; }

/* Search and utility actions retain their original popover handlers. */
body.crm-modern .headersearchbarouter {
  margin: 17px 0 0 28px !important; width: min(54%, 600px); overflow: hidden;
  background: #f6f8f6; border: 1px solid var(--crm-line); border-radius: 8px; float: left;
}
body.crm-modern .headersearchbarouter input { background: transparent; height: 38px; padding-left: 14px; font-size: 12px; color: var(--crm-ink); }
body.crm-modern .headersearchbarouter select { background: transparent; width: 105px; height: 38px; font-size: 12px; color: #677b71; border-right: 1px solid var(--crm-line); }
body.crm-modern .headersearchbarouter .fa-search { font-size: 15px; top: 11px; color: #8d9c93; }
body.crm-modern #tograypanelmenu .rightmenu { position: absolute; right: 77px; top: 16px; display: flex; flex-direction: row-reverse; gap: 5px; }
body.crm-modern #tograypanelmenu .rightmenu a {
  display: flex; align-items: center; justify-content: center; padding: 0;
  width: 38px; height: 38px; margin: 0; color: #75867b; font-size: 17px; border-radius: 7px;
}
body.crm-modern #tograypanelmenu .rightmenu a:hover { color: var(--crm-primary); background: var(--crm-soft); }
body.crm-modern #tograypanelmenu .rightmenu .sticks { color: #75867b !important; }
body.crm-modern #tograypanelmenu .rightmenu .fa, body.crm-modern #topnav .fa, body.crm-modern .crm-date .fa { font-family: FontAwesome !important; font-weight: normal; }
body.crm-modern #tograypanelmenu .navirightlink { position: absolute; top: 18px; right: 25px; padding: 0; }
body.crm-modern #tograypanelmenu .welcomename { width: 36px; height: 36px; line-height: 34px; margin: 0; background: #e8eee2; border: 1px solid #d9e3d2; color: #456a4e; font-size: 13px; }
body.crm-modern .topnotifications { background: #d19152; border: 2px solid #fff; width: 7px; height: 7px; top: 5px; right: 5px; font-size: 0; }
body.crm-modern .headersearchbarouter.searchstart {
  position: fixed; left: 50%; transform: translateX(-50%); top: 14vh;
  width: min(760px, calc(100vw - 40px)); margin: 0 !important; z-index: 999999;
  background: #fff; border-radius: 12px; box-shadow: 0 20px 60px #14271b22;
}
body.crm-modern .headersearchbarouter.searchstart input,
body.crm-modern .headersearchbarouter.searchstart select { height: 52px; }
body.crm-modern .headersearchbarouter.searchstart .fa-search { top: 18px; }
body.crm-modern #searchblk { background: #182c247a; }
body.crm-modern #topsearchresult { max-height: 65vh; overflow-y: auto; }

/* Content rhythm and reusable components. */
.crm-page-intro { margin: 74px 0 0 var(--crm-sidebar); padding: 27px 30px 23px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.crm-eyebrow { color: #809186; font-size: 10px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; }
.crm-eyebrow span { margin: 0 9px; color: #b8c4bc; }
.crm-page-intro h1 { font-size: 29px; font-weight: 650; line-height: 1.25; margin: 11px 0 7px; }
.crm-page-intro p { color: var(--crm-muted); font-size: 12px; margin: 0; }
.crm-date { color: #627569; font-size: 12px; white-space: nowrap; padding: 9px 13px; background: #fff; border: 1px solid var(--crm-line); border-radius: 7px; }
.crm-date i { margin-right: 7px; }
body.crm-modern .wrapper { margin: 0 0 0 var(--crm-sidebar) !important; padding: 0 15px 35px !important; }
body.crm-modern .wrapper > .container-fluid { padding: 0 15px !important; max-width: none; }
body.crm-modern .main-content .page-content { background: transparent; padding: 0; box-shadow: none; }
body.crm-modern .main-content .card { padding: 0; }
body.crm-modern .card { background: #fff; border: 1px solid var(--crm-line) !important; border-radius: 11px; box-shadow: 0 2px 4px #22362a03 !important; margin-bottom: 22px; }
body.crm-modern .card-body { border-radius: inherit; min-width: 0; }
body.crm-modern .card-title { font-size: 16px !important; font-weight: 600; color: var(--crm-ink); }
body.crm-modern .cardtitle, body.crm-modern .query-card > .card-body > .card-title,
body.crm-modern .itiner > .card-body > .card-title { padding: 20px 22px !important; border-bottom: 1px solid var(--crm-line); margin-bottom: 0; background: transparent; }
/* Detail pages need their own inset; their legacy card bodies have no padding. */
body.crm-modern .crm-detail-heading {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 20px 22px; margin: 0; line-height: 1.5; overflow-wrap: anywhere;
}
body.crm-modern .crm-detail-heading > .float-right { float: none !important; margin-left: auto; }
body.crm-modern .crm-detail-heading .btn { margin-bottom: 0 !important; }
body.crm-modern .crm-supplier-summary { padding: 20px 22px !important; }
body.crm-modern .crm-supplier-summary > .row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px 24px;
}
body.crm-modern .crm-supplier-summary > .row > div { min-width: 0; max-width: none; padding: 0; overflow-wrap: anywhere; }
body.crm-modern .crm-supplier-summary h6 { margin: 0 0 8px; }
body.crm-modern .crm-supplier-vehicles-heading { padding: 12px 22px; margin-bottom: 12px !important; }
body.crm-modern .crm-supplier-vehicles-heading > .row { align-items: center; flex-wrap: nowrap; gap: 16px; }
body.crm-modern .crm-supplier-vehicles-heading .col-md-11 { flex: 1; max-width: none; min-width: 0; padding: 0; }
body.crm-modern .crm-supplier-vehicles-heading .col-md-1 { flex: 0 0 auto; width: auto; max-width: none; padding: 0; }
body.crm-modern .crm-supplier-vehicles-heading h6 { margin: 0; }
body.crm-modern .crm-supplier-vehicles-heading .fa-plus-circle {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  float: none !important; margin-top: 0 !important;
}
body.crm-modern .crm-supplier-detail :is(.dataTables_length, .dataTables_filter, .dataTables_info, .dataTables_paginate) { padding-left: 22px; padding-right: 22px; }
body.crm-modern .text-muted { color: var(--crm-muted) !important; font-size: 12px !important; font-weight: 500 !important; text-transform: none; }
body.crm-modern .btn { border-radius: 6px; font-size: 12px; font-weight: 600 !important; padding: 9px 14px; box-shadow: none !important; transition: background-color 120ms ease; }
body.crm-modern .btn-primary, body.crm-modern .btn-secondary { color: #fff; background: var(--crm-primary); border: 1px solid var(--crm-primary); }
body.crm-modern .btn-primary:hover, body.crm-modern .btn-secondary:hover { background: #225f4c; border-color: #225f4c; }
body.crm-modern .btn-light, body.crm-modern .btn-primary-gray { background: #f5f8f5; background-image: none; color: #52695a; border: 1px solid #dce6de; }
body.crm-modern .form-control { min-height: 36px; height: auto; font-size: 12px; border-color: #dde5de; border-radius: 6px; color: #3d5347; box-shadow: none; background-color: #fff; }
body.crm-modern textarea.form-control { min-height: 90px; }
body.crm-modern .form-control:focus { border-color: #8fbaa0; box-shadow: 0 0 0 3px #eaf4ec; }
body.crm-modern .form-control:disabled { background: #f3f6f3; }
body.crm-modern .input-group-text { background: #eff4ef; color: #5c7364; border-color: #dce6de; font-size: 12px; }
body.crm-modern label { font-weight: 500; }
body.crm-modern .table { color: #405347; font-size: 12px; }
body.crm-modern .table thead th { border-top: 0; border-bottom: 1px solid var(--crm-line); background: #f7f9f7; color: #7d8d81; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .65px; padding: 13px 16px; }
body.crm-modern .table td { border-top: 1px solid #edf1ec; padding: 14px 16px; vertical-align: middle; }
body.crm-modern .table tr:hover > td { background: #f8faf7; }
body.crm-modern .table tbody tr.odd, body.crm-modern .table tbody tr.odd > td { background: #f8faf7; }
body.crm-modern .table tbody tr.even, body.crm-modern .table tbody tr.even > td { background: #fff; }
body.crm-modern .dataTables_wrapper { display: flow-root; width: 100%; min-width: 0; clear: both; }
body.crm-modern .dataTables_length, body.crm-modern .dataTables_filter { padding: 12px 18px; font-size: 11px; color: #788b7d; }
body.crm-modern .dataTables_filter { float: right; text-align: right; }
body.crm-modern .dataTables_filter input, body.crm-modern .dataTables_length select { border: 1px solid var(--crm-line); border-radius: 5px; padding: 5px 8px; background: #fff; color: #536d5b; }
body.crm-modern .dataTables_info { float: left; padding: 16px 18px; font-size: 11px; color: #819285; }
body.crm-modern .dataTables_paginate { float: right; padding: 12px 18px; font-size: 11px; }
body.crm-modern .dataTables_paginate .paginate_button { display: inline-block; padding: 5px 8px; color: #64816d; cursor: pointer; }
body.crm-modern .dataTables_paginate .paginate_button.current { background: var(--crm-soft); color: var(--crm-primary); border-radius: 5px; }
body.crm-modern .table td table td { padding: 3px; border: 0; }
body.crm-modern .table td a { color: #32664c; }
body.crm-modern .table-responsive { border: 0; }
body.crm-modern .card-body > form:has(.table), body.crm-modern .card-body .dataTables_wrapper { overflow-x: auto; max-width: 100%; }

/* Keep native table scrolling, with a quiet track and a rounded green thumb. */
body.crm-modern :is(.dataTables_wrapper, .dataTables_scrollBody, .table-responsive, .card-body > form:has(.table))::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
body.crm-modern :is(.dataTables_wrapper, .dataTables_scrollBody, .table-responsive, .card-body > form:has(.table))::-webkit-scrollbar-track {
  background: #eef3f0;
  border-radius: 999px;
  margin: 0 10px;
  box-shadow: none;
}
body.crm-modern :is(.dataTables_wrapper, .dataTables_scrollBody, .table-responsive, .card-body > form:has(.table))::-webkit-scrollbar-thumb {
  background: #6f9280;
  border: 2px solid #eef3f0;
  border-radius: 999px;
  box-shadow: none;
}
body.crm-modern :is(.dataTables_wrapper, .dataTables_scrollBody, .table-responsive, .card-body > form:has(.table))::-webkit-scrollbar-thumb:hover {
  background: #527963;
}
body.crm-modern :is(.dataTables_wrapper, .dataTables_scrollBody, .table-responsive, .card-body > form:has(.table))::-webkit-scrollbar-thumb:active {
  background: var(--crm-primary);
}
body.crm-modern :is(.dataTables_wrapper, .dataTables_scrollBody, .table-responsive, .card-body > form:has(.table))::-webkit-scrollbar-corner {
  background: transparent;
}
@supports not selector(::-webkit-scrollbar) {
  body.crm-modern :is(.dataTables_wrapper, .dataTables_scrollBody, .table-responsive, .card-body > form:has(.table)) {
    scrollbar-width: thin;
    scrollbar-color: #6f9280 #eef3f0;
  }
}

body.crm-modern .newsearchsecform { margin-bottom: 0; }
body.crm-modern .itiner .newsearchsecform { margin: 12px 18px; }
body.crm-modern .itiner > .card-body > .float-right { margin: 12px 18px; }
body.crm-modern .badge { border-radius: 5px; font-size: 10px; font-weight: 600; padding: 5px 8px; }
body.crm-modern .badge-success { background: #e7f3e8; color: #43835a; }
body.crm-modern .badge-danger { background: #f9ece9; color: #a36657; }
body.crm-modern .badge-warning { background: #fbf3e4; color: #967547; }
body.crm-modern .badge-primary, body.crm-modern .badge-info { background: #e9eff7; color: #577caa; }
body.crm-modern .addbynewbadges .listnameicon { border-radius: 7px; background: #edf2e8; color: #6f8956; }
body.crm-modern .pageingouter { background: #fafbf9; border-top: 1px solid var(--crm-line); margin-top: 0 !important; padding: 15px 20px; border-radius: 0 0 11px 11px; }
body.crm-modern .pagingnumbers .current, body.crm-modern .paginate .current { background: var(--crm-soft); color: var(--crm-primary); border-radius: 5px; }
body.crm-modern .topnavigation { background: #fff !important; border-bottom: 1px solid var(--crm-line) !important; }
body.crm-modern .topnavigation .nav-link { color: #7b8b7f !important; font-size: 12px !important; padding: 12px 18px !important; }
body.crm-modern .topnavigation .nav-link.active { background: var(--crm-soft) !important; color: var(--crm-primary) !important; border-bottom-color: var(--crm-primary) !important; }

/* Query filters and status links keep the original form and destinations. */
body.crm-modern .query-card .card-body > div:first-of-type { background: #f7f9f6 !important; padding: 16px !important; border-bottom: 1px solid var(--crm-line); }
body.crm-modern .query-card form[method="get"] > table > tbody > tr { display: flex; flex-wrap: wrap; gap: 8px; }
body.crm-modern .query-card form[method="get"] > table > tbody > tr > td { padding: 0 !important; }
body.crm-modern .query-submit { background: var(--crm-primary); border: 1px solid var(--crm-primary); border-radius: 6px; }
body.crm-modern .query-all { background: #fff; color: #54705d; border: 1px solid #d7e3d8; border-radius: 6px; }
body.crm-modern .query-card .card-body > div:has(> table .statusbox) { padding: 8px 16px; }
body.crm-modern .query-card table:has(.statusbox) > tbody > tr { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; }
body.crm-modern .query-card table:has(.statusbox) td { width: auto; }
body.crm-modern .query-card .statusbox { width: 100%; height: 85px; margin: 0 !important; border: 1px solid var(--crm-line); border-top: 3px solid currentColor; border-radius: 7px; background: #f8faf8 !important; color: #657665; font-size: 9px; line-height: 1.4; font-weight: 600; box-shadow: none; padding: 8px 5px; }
body.crm-modern .query-card .statusbox > div { font-size: 25px !important; line-height: 34px !important; font-weight: 500; }
body.crm-modern .query-card .statusbox.a { color: #7465ab; }
body.crm-modern .query-card .statusbox.b { color: #368c89; }
body.crm-modern .query-card .statusbox.c { color: #4e6178; }
body.crm-modern .query-card .statusbox.d { color: #b06262; }
body.crm-modern .query-card .statusbox.e { color: #ae7945; }
body.crm-modern .query-card .statusbox.f { color: #96668f; }
body.crm-modern .query-card .statusbox.g { color: #448462; }
body.crm-modern .query-card .statusbox.h { color: #778078; }
body.crm-modern .query-card .statusbox.i { color: #b4685f; }
body.crm-modern .query-card .statusbox:hover { background: #edf3ed !important; }
body.crm-modern .querylistbox { margin: 0 16px 16px; background: #fff; border: 1px solid var(--crm-line); border-radius: 8px; box-shadow: none; overflow: hidden; }
body.crm-modern .querylistbox:hover { background: #fff; box-shadow: none; border-color: #b8cfbe; }
body.crm-modern .querylistbox .qtp { padding: 15px; }
body.crm-modern .querylistbox .qbt { padding: 15px; background: #f8faf7; border-top: 1px solid var(--crm-line); }

/* Master and report tiles continue to use the original local icon assets. */
body.crm-modern .master-menus > .row > .col-md-2 { flex: 0 0 25%; max-width: 25%; }
body.crm-modern .master-menus .card-body { padding: 22px 12px !important; min-height: 145px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 13px; }
body.crm-modern .master-menus .card:hover { border-color: #abc9b4 !important; background: #fbfdfa; }
body.crm-modern .master-menus .icon-custom img { width: 43px; height: 43px; object-fit: contain; }
body.crm-modern .master-menus h6 { font-size: 12px; font-weight: 600; color: #526e5a; margin: 0 !important; }
body.crm-modern[data-section="reports"] .page-content > .row > .col-md-12:not(.master-menus) .card-body,
body.crm-modern[data-section="master"] .page-content > .row > .col-md-12:not(.master-menus) .card-body { padding: 15px 20px !important; }

/* Dashboard: semantic status colors remain intact, with quieter surfaces. */
body.crm-modern .dashboardleft { background: transparent; }
body.crm-modern .dashboardleft .dashboardleftinnter { padding: 0; }
body.crm-modern .dashboardleft .card-title { margin: 0 0 15px !important; font-size: 13px !important; }
body.crm-modern .dashboardleft .listbox { position: relative; background: #fff !important; border: 1px solid var(--crm-line); border-radius: 9px; padding: 19px 16px 16px; min-height: 114px; margin-bottom: 25px; box-shadow: none; }
body.crm-modern .dashboardleft .listbox::before, body.crm-modern .dashboardleft .listbox::after { display: none; animation: none; }
body.crm-modern .dashboardleft .listbox > i { display: inline-flex; justify-content: center; align-items: center; width: 29px; height: 29px; background: #f0f4ee; color: #6c875e; font-size: 13px; border-radius: 7px; margin-right: 9px; }
body.crm-modern .dashboardleft .listbox > span { font-size: 27px; font-weight: 600; color: #354c3d; vertical-align: middle; letter-spacing: -.6px; }
body.crm-modern .dashboardleft .listbox > div { margin-top: 12px !important; font-size: 9px !important; letter-spacing: .5px; font-weight: 600 !important; color: #879487; }
body.crm-modern .dashboardleft .col-md-2:nth-child(3) .listbox > i { color: #7c83a4; background: #eff0f8; }
body.crm-modern .dashboardleft .col-md-2:nth-child(4) .listbox > i { color: #af8b52; background: #faf3e6; }
body.crm-modern .dashboardleft .col-md-2:nth-child(5) .listbox > i { color: #4d916a; background: #e9f4ec; }
body.crm-modern .dashboardleft .col-md-2:nth-child(6) .listbox > i { color: #b38980; background: #fbefeb; }
body.crm-modern .tiles2 { background: #fff !important; border: 1px solid var(--crm-line) !important; border-radius: 10px; box-shadow: none !important; padding: 18px 20px !important; margin-bottom: 18px; min-height: 132px; }
body.crm-modern .tiles2:hover { border-color: #a9c5b0 !important; box-shadow: none !important; }
body.crm-modern .tiles2 a { color: #49634f; }
body.crm-modern .tiles2 .row { align-items: center; }
body.crm-modern .tiles2 i { padding: 0 !important; margin: 0 !important; font-size: 24px !important; color: #85a08a; }
body.crm-modern .tiles2 h2 { font-size: 30px; font-weight: 550; margin: 0; color: #3d5b45; }
body.crm-modern .tiles2 .tt-con { padding: 14px 0 0; }
body.crm-modern .tiles2 .tt-con p { font-size: 11px; font-weight: 500; text-transform: none; margin: 0; color: #839180; }
body.crm-modern .taskfollowuplist .tasklist { background: #fff !important; border-color: var(--crm-line); border-radius: 8px; }

/* Existing overlays stay above the navigation and retain script-set display. */
body.crm-modern .rnblk { background: #182c247a; }
body.crm-modern .headerslideright { background: #fff; max-width: 100vw; box-shadow: -10px 0 30px #20332f14; }
body.crm-modern .headerslideright .userinformationbox { background: #f2f6f0; border-top: 3px solid #91b38e; }
body.crm-modern .headerslideright .contnetin { padding: 20px; }
body.crm-modern .headerslideright .contnetin .head17, body.crm-modern .headerslideright .contnetin .cont,
body.crm-modern .headerslideright .contnetin a { color: #526c56; font-size: 12px; border-color: var(--crm-line); }
body.crm-modern .headerslideright .contnetin a:hover { background: var(--crm-soft); }
body.crm-modern .headerslideright .head17 .fa-times { color: #627f69 !important; }
body.crm-modern .modal-content { border-radius: 12px; box-shadow: none !important; }
body.crm-modern .modal-header { background: #f8faf6; border-bottom: 1px solid var(--crm-line); color: #415942; }
body.crm-modern #myModal2 .modal-header { background: #edf4ee !important; color: #365c44 !important; border-top: 0 !important; border-bottom: 1px solid var(--crm-line); }
body.crm-modern .modal-header .close { color: #627b69 !important; opacity: 1; }
body.crm-modern #myModal2 .btn-primary { background: var(--crm-primary) !important; }
body.crm-modern .modal-dialog { max-width: calc(100vw - 28px) !important; }
body.crm-modern .modal-title { font-size: 17px; }
body.crm-modern .modal-footer { background: #fbfcfa; border-top: 1px solid var(--crm-line); }
body.crm-modern .rnblkquery .form-control { min-height: 36px; }
body.crm-modern .rnblkquery { background: #182c247a; }
body.crm-modern .rnblkquery .querywhitebox { max-width: 100vw; }
body.crm-modern .rnblkquery .querywhitebox > .card-title { background: #edf4ee !important; color: #365c44 !important; font-size: 15px !important; text-transform: none !important; border-bottom-color: var(--crm-line) !important; }
body.crm-modern .rnblkquery > .fa-times { z-index: 2; color: #627f69 !important; }
body.crm-modern .rnblkquery .btn-primary { background: var(--crm-primary) !important; font-size: 13px !important; border-radius: 6px; }
body.crm-modern .footerstripboxouter { left: var(--crm-sidebar); width: calc(100% - var(--crm-sidebar)); background: #fff; box-shadow: none; border-top: 1px solid var(--crm-line); }
body.crm-modern .footerstripboxouter .righar a { color: #8b9b8d; padding: 7px 17px; border-color: var(--crm-line); }
body.crm-modern .footerstripboxouter .righar a span { text-transform: none; font-size: 10px; font-weight: 500; }
body.crm-modern .footerpopboxs { box-shadow: 0 8px 30px #1b372222; border: 1px solid var(--crm-line); }
body.crm-modern .headersavealert { width: calc(100% - var(--crm-sidebar)); left: var(--crm-sidebar); top: 74px; font-size: 12px; }

/* Login uses the original form and scripts, with a lightweight illustrated panel. */
body.crm-login { background: #f8faf7 !important; background-image: none !important; color: #314436; font-family: var(--crm-font); }
body.crm-login .login-15 { min-height: 100vh; background: none; }
body.crm-login .login-15 > .container-fluid { padding: 0; }
body.crm-login .login-15 > .container-fluid > .row { min-height: 100vh; margin: 0; }
body.crm-login .login-15 .col-lg-6:first-child { background: #f8faf7; min-height: 100vh; display: flex; align-items: center; }
body.crm-login .login-15 .form-section { width: min(100%, 490px); height: auto; margin: auto; padding: 55px 38px !important; text-align: left; background: none; box-shadow: none; }
.crm-login-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 74px; }
body.crm-login .crm-login-brand .trav { width: 52px; height: 52px; object-fit: contain; margin: 0; }
.crm-login-brand > span { font-size: 23px; font-weight: 650; letter-spacing: -.6px; color: #244637; line-height: 1.15; }
.crm-login-brand small { display: block; font-size: 10px; color: #8a9b8c; letter-spacing: .65px; font-weight: 400; margin-top: 5px; }
body.crm-login .login-15 .form-section h3 { font-family: var(--crm-font); font-size: 35px; font-weight: 600; color: #2d4736; text-align: left; text-transform: none; letter-spacing: -1px; margin-top: 13px; }
.crm-login-subtitle { font-size: 13px !important; color: #869584 !important; margin: 13px 0 33px !important; line-height: 1.6; }
.crm-field-label { display: block; font-size: 12px; font-weight: 500; color: #5a725d; margin-bottom: 9px; }
body.crm-login .login-15 .form-section .form-control { border: 1px solid #dae4d8; background: #fff; color: #375340; border-radius: 7px; box-shadow: none; height: 48px; font-family: var(--crm-font); font-size: 13px; padding: 12px 14px; }
body.crm-login .login-15 .form-section .form-control:focus { border-color: #9abc97; box-shadow: 0 0 0 3px #eaf2e6; }
body.crm-login .login-15 .form-section .form-group { margin-bottom: 22px; }
body.crm-login .custom-control-label { color: #839580; font-size: 12px; }
body.crm-login .login-15 .btn-primary { background: #397557; border: 1px solid #397557 !important; box-shadow: none !important; border-radius: 7px; padding: 13px 18px; height: 48px; line-height: 20px; font-family: var(--crm-font); font-size: 13px; font-weight: 550; }
body.crm-login .login-15 .btn-primary > span { display: block; width: 100%; }
body.crm-login .login-15 .btn-primary:hover { background: #2d6247; }
body.crm-login .login-15 .btn-primary:before, body.crm-login .login-15 .btn-primary:after { display: none; }
body.crm-login .btn-primary .fa-arrow-right { float: right; margin-top: 4px; font-size: 12px; }
body.crm-login .crm-login-brand > span { font-family: var(--crm-font); }
body.crm-login .bg-color-15 { position: relative; display: flex; align-items: center; min-height: 100vh; background: #244b3b !important; overflow: hidden; }
body.crm-login #particles-js { position: relative; width: 100%; height: 100%; min-height: 100vh; display: flex; align-items: center; }
body.crm-login .particles-js-canvas-el { opacity: .035; pointer-events: none; }
body.crm-login .login-15 .info { position: relative; z-index: 1; max-width: 510px !important; padding: 65px 40px; margin: auto; text-align: left; }
.crm-login-kicker { color: #9fba9c; font-size: 10px; letter-spacing: 1.1px; text-transform: uppercase; line-height: 1.6; }
body.crm-login .login-15 .info h3 { color: #f0f4e8; font-family: var(--crm-font); font-weight: 500; font-size: 48px; line-height: 1.16; letter-spacing: -1.7px; text-transform: none; margin: 24px 0 22px; }
.crm-login-story { color: #aac1a6; font-size: 13px; line-height: 1.8; max-width: 370px; margin: 0 0 27px; }
body.crm-login .login-15 .info > div[style] { width: 100% !important; }
body.crm-login .login-15 .info table { color: #cedcc5; font-family: var(--crm-font); font-size: 12px !important; font-weight: 400 !important; }
body.crm-login .login-15 .info td { padding: 7px 0; }
body.crm-login .login-15 .info .fa-check { color: #b5cb9f; font-size: 10px; margin-right: 12px; }
.crm-journey-art { margin-top: 46px; border-top: 1px solid #47705a; padding-top: 27px; }
.crm-journey-art svg { width: 100%; height: auto; display: block; }
.crm-journey-art span { display: block; margin-top: 20px; color: #8dab8d; font-size: 10px; letter-spacing: .25px; }

@media (min-width: 1600px) {
  :root { --crm-sidebar: 235px; }
  .crm-page-intro { padding-left: 38px; padding-right: 38px; }
  body.crm-modern .wrapper { padding-left: 23px !important; padding-right: 23px !important; }
}
@media (max-width: 1199px) {
  :root { --crm-sidebar: 190px; }
  body.crm-modern .logonavitop { padding-left: 15px; }
  .crm-brand-name { font-size: 19px; }
  body.crm-modern #topnav { padding-left: 10px; padding-right: 10px; }
  body.crm-modern .dashboardleft .col-md-2 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  body.crm-modern .dashboardleft .listbox { margin-bottom: 17px; }
  body.crm-modern .dashes .tiles2 { padding: 17px !important; }
  body.crm-modern .query-card table:has(.statusbox) > tbody > tr { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  body.crm-modern .master-menus > .row > .col-md-2 { flex: 0 0 33.333333%; max-width: 33.333333%; }
}
@media (max-width: 992px) {
  /* particles.js requires measurable canvas dimensions even on a hidden panel. */
  body.crm-login .login-15 .bg-color-15 { display: flex !important; position: absolute; left: -1000px; top: 0; width: 600px !important; max-width: none; height: 100vh; visibility: hidden; pointer-events: none; }
}
@media (max-width: 767px) {
  :root { --crm-sidebar: 0px; }
  body.crm-modern #tograypanelmenu { left: 0; width: 100%; height: 168px; }
  body.crm-modern .logonavitop { position: absolute; width: 145px; height: 65px; background: transparent; padding: 15px 13px; }
  body.crm-modern #tograypanelmenu .logonavitop img { width: 34px; height: 34px; border: 1px solid var(--crm-line); padding: 3px; }
  .crm-brand-name { color: #3b5f43; font-size: 16px; }
  .crm-brand-name small { display: none; }
  body.crm-modern .headersearchbarouter { position: absolute; left: 14px; top: 64px; width: calc(100% - 28px); margin: 0 !important; }
  body.crm-modern .headersearchbarouter select { width: 85px; height: 33px; }
  body.crm-modern .headersearchbarouter input { padding: 0 8px; height: 33px; }
  body.crm-modern #tograypanelmenu .rightmenu { right: 60px; top: 14px; gap: 2px; }
  body.crm-modern #tograypanelmenu .rightmenu a { width: 33px; height: 33px; }
  body.crm-modern #tograypanelmenu .navirightlink { right: 14px; top: 14px; }
  body.crm-modern #topnav { position: fixed; left: 0; top: 112px; bottom: auto; width: 100%; padding: 0 10px; background: #fff; border-top: 1px solid #edf1ec; }
  body.crm-modern #topnav .navbar-custom { margin: 0; }
  .crm-nav-caption { display: none; }
  body.crm-modern #topnav .navigation-menu { flex-direction: row; gap: 3px; overflow-x: auto; padding: 7px 0; }
  body.crm-modern #topnav .navigation-menu > li { width: auto !important; flex-shrink: 0; }
  body.crm-modern #topnav .navigation-menu > li > a { padding: 8px 11px !important; font-size: 11px !important; color: #627567 !important; white-space: nowrap; gap: 5px; }
  body.crm-modern #topnav .navigation-menu > li > a i { display: none !important; }
  body.crm-modern #topnav .navigation-menu > li > a:hover { background: #edf4e9; color: #32653e !important; }
  body.crm-modern[data-section] #topnav .navigation-menu > li > a { box-shadow: none; }
  body.crm-modern[data-section=""] #topnav .navigation-menu > li:first-child > a,
  body.crm-modern[data-section="query"] #topnav a[href="display.html?ga=query&statusid=1"],
  body.crm-modern[data-section="clients"] #topnav a[href="display.html?ga=clients"],
  body.crm-modern[data-section="itineraries"] #topnav a[href="display.html?ga=itineraries"],
  body.crm-modern[data-section="suppliers"] #topnav a[href="display.html?ga=suppliers"],
  body.crm-modern[data-section="reports"] #topnav a[href="display.html?ga=reports"],
  body.crm-modern[data-section="master"] #topnav a[href="display.html?ga=master"] { background: #edf4e9; color: #32653e !important; }
  body.crm-modern .main-menu > .row > .col-md-3 { position: fixed; left: auto; right: 13px; bottom: 49px; width: 126px; z-index: 1000; }
  .crm-page-intro { margin-top: 168px; padding: 22px 18px; }
  .crm-page-intro h1 { font-size: 25px; }
  .crm-page-intro p { max-width: 235px; }
  .crm-date { display: none; }
  body.crm-modern .wrapper { padding: 0 3px 90px !important; }
  body.crm-modern .wrapper.dashes > .container-fluid > .row { margin-left: 0; margin-right: 0; }
  body.crm-modern .dashboardleft .col-md-2 { flex: 0 0 50%; max-width: 50%; }
  body.crm-modern .dashes > .container-fluid > .row > .col-md-12 > .row > .col-md-3 { flex: 0 0 50%; max-width: 50%; }
  body.crm-modern .card { border-radius: 8px; }
  body.crm-modern .cardtitle, body.crm-modern .query-card > .card-body > .card-title { padding: 15px !important; }
  body.crm-modern .crm-detail-heading { padding: 16px; }
  body.crm-modern .crm-detail-heading > .float-right { flex-basis: 100%; margin-left: 0; }
  body.crm-modern .crm-supplier-summary { padding: 18px 16px !important; }
  body.crm-modern .crm-supplier-summary > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
  body.crm-modern .crm-supplier-summary > .row > div:nth-child(3),
  body.crm-modern .crm-supplier-summary > .row > div:last-child { grid-column: 1 / -1; }
  body.crm-modern .crm-supplier-vehicles-heading { padding: 10px 16px; }
  body.crm-modern .crm-supplier-detail :is(.dataTables_length, .dataTables_filter, .dataTables_info, .dataTables_paginate) { padding-left: 16px; padding-right: 16px; }
  body.crm-modern .newsearchsecform { position: static !important; display: inline-block; margin: 7px 0; max-width: 100%; }
  body.crm-modern .form-control { max-width: 100%; }
  body.crm-modern .table-responsive { overflow-x: auto; }
  body.crm-modern .card-body .table { min-width: 700px; }
  body.crm-modern #ui-datepicker-div { left: 14px !important; max-width: calc(100vw - 28px); }
  body.crm-modern .master-menus > .row > .col-md-2 { flex: 0 0 50%; max-width: 50%; }
  body.crm-modern .master-menus > .row { margin-left: 0; margin-right: 0; }
  body.crm-modern .query-card table:has(.statusbox) > tbody > tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.crm-modern .query-card .statusbox { height: 78px; }
  body.crm-modern .query-card form[method="get"] > table { width: 100%; }
  body.crm-modern .query-card form[method="get"] > table > tbody > tr > td { max-width: 100%; }
  body.crm-modern .query-card form[method="get"] .form-control { width: 100% !important; }
  body.crm-modern .querylistbox table, body.crm-modern .querylistbox tbody { display: block; }
  body.crm-modern .querylistbox tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 15px; }
  body.crm-modern .querylistbox td { width: auto; padding: 0 !important; overflow-wrap: anywhere; }
  body.crm-modern .querylistbox .qtp td:first-child, body.crm-modern .querylistbox .qtp td:last-child { grid-column: 1 / -1; text-align: left; }
  body.crm-modern .rnblkquery .modal-dialog { max-width: 100vw !important; }
  body.crm-modern .footerpopboxs { max-width: 100vw; }
  body.crm-login .login-15 .form-section { padding: 40px 27px !important; }
  .crm-login-brand { margin-bottom: 48px; }
  body.crm-login .login-15 .form-section h3 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  body.crm-modern *, body.crm-login * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
/* Shared staff-page layout. Legacy templates keep their DOM and event hooks. */
body.crm-modern { --crm-gutter: 22px; }
/* The itinerary template applies transition: all to every div; never animate layout. */
body.crm-modern div { transition-property: color, background-color, opacity; transition-duration: 120ms; }
body.crm-modern .main-content .dataTables_wrapper { overflow-x: auto; max-width: 100%; }
body.crm-modern .wrapper .row > [class*="col-"] { min-width: 0; }
body.crm-modern .main-content .card-body > .card-title {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 20px var(--crm-gutter) !important; margin: 0 !important;
  width: auto; float: none; line-height: 1.5; overflow-wrap: anywhere;
  border-bottom: 1px solid var(--crm-line);
}
body.crm-modern .main-content .card-body > .card-title > .float-right { float: none !important; margin-left: auto; }
body.crm-modern .main-content .card-body > .card-title .btn { margin: 0 !important; }
body.crm-modern .main-content .card-title .newsearchsecform {
  position: static !important; margin: 0; max-width: 100%; min-width: 0;
}
/* Keep the Clients search and action aligned despite legacy floats and pill styles. */
body.crm-modern .main-content .card-title .crm-client-actions {
  display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%;
}
body.crm-modern .main-content .card-body > .card-title .crm-client-actions > .newsearchsecform {
  float: none; flex: 1 1 220px; width: 220px;
}
body.crm-modern .main-content .crm-client-actions .newsearchsec {
  width: 100%; height: 40px; min-height: 40px; margin: 0 !important; border-radius: 6px;
}
body.crm-modern .main-content .crm-client-actions > .btn {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  min-height: 40px; padding: 9px 14px !important; line-height: 20px;
  border-radius: 6px !important; white-space: nowrap;
}
body.crm-modern .main-content .card-body > div:has(> .row > div > form[method="get"]) {
  padding: 16px var(--crm-gutter) !important;
}
body.crm-modern .main-content .card-body > div > .row > div:has(> form[method="get"]) {
  flex: 1 1 100%; max-width: 100%; padding: 0;
}
body.crm-modern .main-content form[method="get"] > table:not(.table),
body.crm-modern .main-content form[method="get"] > table:not(.table) > tbody {
  display: block; width: 100%; max-width: 100%;
}
body.crm-modern .main-content form[method="get"] > table:not(.table) > tbody > tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.crm-modern .main-content form[method="get"] > table:not(.table) > tbody > tr > td { padding: 0 !important; min-width: 0; max-width: 100%; }
body.crm-modern .main-content form[method="get"] .form-control { max-width: 100% !important; }
body.crm-modern .main-content .card-body > form:not(.newsearchsecform):not(:has(.table)) { padding: 20px var(--crm-gutter); }
body.crm-modern .main-content .card-body > .dataTables_wrapper { padding-bottom: 8px; }
body.crm-modern .main-content .card-body > .card-title + .card-title-desc { margin: 0; }
body.crm-modern .main-content .card-body > .card-title + .card-title-desc:empty { display: none; }
body.crm-modern .main-content .card { max-width: 100%; }
body.crm-modern .main-content .mce-tinymce { max-width: 100%; box-sizing: border-box; }
body.crm-modern .main-content .mce-container-body { max-width: 100%; }
body.crm-modern .main-content .mce-toolbar-grp .mce-flow-layout { white-space: normal; }
body.crm-modern .main-content .mce-toolbar-grp .mce-btn-group { margin-bottom: 3px; }
body.crm-modern .main-content .table:not(:has(thead th)) { min-width: 0; }
body.crm-modern[data-section="setting"] .card-body > .table { table-layout: fixed; overflow-wrap: anywhere; }
body.crm-modern[data-section="setting"] .main-content .table,
body.crm-modern[data-section="mailsetting"] .main-content .table { min-width: 0; width: 100% !important; }
body.crm-modern[data-section="setting"] #deff .table td { width: auto; }
body.crm-modern[data-section="setting"] #deff .table img { max-width: 100% !important; }
body.crm-modern[data-section="setting"] .table td { white-space: normal; }
body.crm-modern[data-section="mailsetting"] .card-body { padding: 20px var(--crm-gutter) !important; }
body.crm-modern[data-section="mailsetting"] .card-body > form { padding: 0; }
body.crm-modern[data-section="mailsetting"] .card-body form > .col-md-12 { padding: 0; }
body.crm-modern[data-section="mailsetting"] .table { table-layout: fixed; }
body.crm-modern[data-section="mailsetting"] .table td { white-space: normal; min-width: 0; box-sizing: border-box; }
body.crm-modern .topnavigation .nav-tabs { gap: 4px; }
body.crm-modern .topnavigation .nav-item { position: static !important; }
body.crm-modern .topnavigation .nav-link { margin: 0 !important; }
body.crm-modern .view-qry > .card-body > .row { margin: 0; padding: 20px var(--crm-gutter); }
body.crm-modern .view-qry > .card-body > .row > [class*="col-"] { padding-left: 0 !important; padding-right: 0; }
body.crm-modern .view-qry > .card-body > .row > .col-lg-8 { padding-right: 22px; }
body.crm-modern .view-qry .row .row { margin-left: -8px; margin-right: -8px; padding-left: 0 !important; }
body.crm-modern .view-qry .row .row > [class*="col-"] { padding-left: 8px; padding-right: 8px; }
body.crm-modern .view-qry .form-control { max-width: 100%; }
body.crm-modern #displayprofile { min-width: 0; overflow-wrap: anywhere; }
body.crm-modern #displayprofile .systemcard { padding: var(--crm-gutter); border: 1px solid var(--crm-line); border-radius: 10px; box-shadow: none; }
body.crm-modern #displayprofile #clientsec > table { width: 100%; table-layout: fixed; }
body.crm-modern #displayprofile #clientsec > table td { padding: 8px !important; overflow-wrap: anywhere; }
body.crm-modern #displayprofile #clientsec > table td:first-child { width: 40%; }
body.crm-modern .crm-query-content { padding: 20px var(--crm-gutter); clear: both; }
body.crm-modern .crm-query-content > .row { margin: 0 -10px; }
body.crm-modern .crm-query-content form { min-width: 0; width: 100%; }
body.crm-modern .crm-query-content form table:has(#reminderTime) { width: 100%; table-layout: fixed; }
body.crm-modern .crm-query-content form table:has(#reminderTime) .form-control { width: 100% !important; }
body.crm-modern .crm-inclusion-editor { padding: 20px var(--crm-gutter) !important; }
body.crm-modern .crm-inclusion-editor > div > .col-md-12 { padding: 0; }
body.crm-modern .crm-inclusion-editor form > .form-group > .row { align-items: center; row-gap: 12px; }
body.crm-modern .crm-inclusion-editor form .col-md-6 { flex: 1 1 300px; max-width: none; }
body.crm-modern .crm-inclusion-editor form .col-md-1:last-child { flex: 0 0 auto; max-width: none; }
body.crm-modern .modal .form-control, body.crm-modern .rnblkquery .form-control { max-width: 100%; }
body.crm-modern .modal .groupfields, body.crm-modern .rnblkquery .groupfields { display: block; max-width: 100%; }
body.crm-modern .modal .groupfields > tbody { display: block; }
body.crm-modern .modal .groupfields tr { display: flex; gap: 6px; }
body.crm-modern .modal .groupfields td { display: block; flex: 1; min-width: 0; }
body.crm-modern .modal .groupfields td:first-child { flex: 0 0 68px; }
body.crm-modern .modal .groupfields .form-control { max-width: 100% !important; }
body.crm-modern #myModal2 .form-group > .input-group { width: 69%; min-width: 0; }
body.crm-modern #myModal2 .tokenfield { width: 100% !important; min-width: 0; }
body.crm-modern #myModal2 .tokenfield .token-input { max-width: 100%; }

@media (max-width: 1199px) {
  body.crm-modern .main-content .card-title .newsearchsecform { flex: 1 1 200px; }
  body.crm-modern[data-section="mailsetting"] .page-content > .row > .col-lg-6 { flex: 0 0 100%; max-width: 100%; }
}
@media (max-width: 767px) {
  body.crm-modern { --crm-gutter: 16px; }
  body.crm-modern .main-content .card-body > .card-title { padding: 16px !important; }
  body.crm-modern .main-content .card-body > .card-title > .float-right { margin-left: 0; }
  body.crm-modern .main-content .card-body > .card-title .newsearchsecform { flex-basis: 100%; }
  body.crm-modern .main-content .card-title .crm-client-actions { width: 100%; }
  body.crm-modern .main-content .card-body > .card-title .crm-client-actions > .newsearchsecform { flex-basis: 0; }
  body.crm-modern .main-content form[method="get"] > table:not(.table) > tbody > tr > td { flex: 1 1 140px; }
  body.crm-modern .main-content form[method="get"] > table:not(.table) > tbody > tr > td:has(button) { flex: 0 1 auto; }
  body.crm-modern .main-content form[method="get"] > table:not(.table) > tbody > tr > td:not(:has(input, select, button, a)) { display: none; }
  body.crm-modern .main-content form[method="get"] > table:not(.table) > tbody > tr > td:has(input[name="keyword"]) { flex-basis: 100%; }
  body.crm-modern .main-content form[method="get"] > table:not(.table) .form-control { width: 100% !important; }
  body.crm-modern .main-content .card-body > .card-title .btn { white-space: normal; }
  body.crm-modern .main-content .dataTables_length, body.crm-modern .main-content .dataTables_filter,
  body.crm-modern .main-content .dataTables_info, body.crm-modern .main-content .dataTables_paginate {
    float: none; text-align: left; padding: 10px 16px; max-width: 100%;
  }
  body.crm-modern .main-content .dataTables_filter input { max-width: calc(100% - 65px); }
  body.crm-modern[data-section="setting"] #deff .table tr,
  body.crm-modern[data-section="mailsetting"] .table tr { display: flex; flex-direction: column; }
  body.crm-modern[data-section="setting"] #deff .table td,
  body.crm-modern[data-section="mailsetting"] .table td { display: block; width: 100%; }
  body.crm-modern[data-section="setting"] #deff .table img { max-width: 180px !important; }
  body.crm-modern[data-section="mailsetting"] .table td + td { border-top: 0; padding-top: 0; }
  body.crm-modern[data-section="mailsetting"] form > table:not(.table) { display: block; max-width: 100%; }
  body.crm-modern[data-section="mailsetting"] form > table:not(.table) > tbody,
  body.crm-modern[data-section="mailsetting"] form > table:not(.table) tr { display: block; }
  body.crm-modern[data-section="mailsetting"] form > table:not(.table) td { display: block; width: auto; padding: 8px 0; }
  body.crm-modern[data-section="mailsetting"] .card-body > div > table,
  body.crm-modern[data-section="mailsetting"] .card-body > div > table tbody,
  body.crm-modern[data-section="mailsetting"] .card-body > div > table tr { display: block; width: 100%; }
  body.crm-modern[data-section="mailsetting"] .card-body > div > table td { display: block; padding: 12px !important; }
  body.crm-modern .view-qry > .card-body > .row > .col-lg-8 { padding-right: 0; }
  body.crm-modern .view-qry > .card-body > .row > .col-lg-4 { margin-top: 18px; }
  body.crm-modern .view-qry .breadcrumb { display: flex; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  body.crm-modern .view-qry .breadcrumb li { flex-shrink: 0; }
  body.crm-modern #displayprofile .systemcard > div:first-child { padding-top: 50px; }
  body.crm-modern #displayprofile .systemcard .profileuserbadges { width: 48px; height: 48px; line-height: 40px !important; font-size: 23px; }
  body.crm-modern .listleftmenulink { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 18px; }
  body.crm-modern .listleftmenulink a { padding: 8px 10px; font-size: 12px; }
  body.crm-modern .itr-build h4 > span { display: block; float: none !important; margin-top: 10px !important; line-height: 1.6; }
  body.crm-modern .itr-build .jss11193 { flex-direction: column; }
  body.crm-modern .itr-build .jss11241 { position: relative; min-width: 0; max-width: 100%; overflow-x: auto; padding-bottom: 20px; }
  body.crm-modern .itr-build .ui-sortable { display: flex; float: none; height: auto; min-height: 125px; padding-top: 14px; }
  body.crm-modern .itr-build .ui-sortable > li { flex-shrink: 0; }
  body.crm-modern .itr-build .addeventbtn { display: block !important; }
  body.crm-modern .wrapper .incs { display: block; width: 100%; }
  body.crm-modern .wrapper .incs > tbody, body.crm-modern .wrapper .incs > tbody > tr { display: block; }
  body.crm-modern .wrapper .incs > tbody > tr > td { display: block; width: 100%; padding: 0; overflow-wrap: anywhere; }
  body.crm-modern .wrapper .incs img { max-width: 100%; height: auto; }
  body.crm-modern .wrapper .itiday { width: 100%; }
  body.crm-modern .crm-query-content .nav-tabs { flex-wrap: wrap; }
  body.crm-modern .crm-query-content .btn-toolbar .btn-group { min-width: 0; max-width: 100%; }
  body.crm-modern .crm-query-content .btn-toolbar .btn { white-space: normal; overflow-wrap: anywhere; }
  body.crm-modern .crm-query-content .message-list { padding: 0; }
  body.crm-modern .crm-query-content .message-list li { height: auto; padding: 12px 0; }
  body.crm-modern .crm-query-content .message-list .col-mail { position: relative; left: auto; right: auto; width: 100%; }
  body.crm-modern .crm-query-content .message-list .title { position: static; display: block; padding: 6px 0 6px 28px; white-space: normal; overflow-wrap: anywhere; }
  body.crm-modern .crm-query-content .message-list .date { position: static; width: auto; padding: 4px 0 4px 28px !important; }
  body.crm-modern #topnav .navigation-menu > li .submenu {
    position: fixed; left: 12px !important; right: 12px !important; top: 166px;
    width: auto; max-height: calc(100dvh - 185px); overflow-y: auto; z-index: 1002;
  }
  body.crm-modern #myModal2 .modal-dialog { width: 100% !important; max-width: 100% !important; margin: 0; }
  body.crm-modern #myModal2 .modal-header { padding: 16px 20px; }
  body.crm-modern #myModal2 .form-group > label {
    display: block; float: none; width: 100% !important; padding: 0 !important; margin-bottom: 7px;
    line-height: 1.5; text-align: left;
  }
  body.crm-modern #myModal2 .form-group > .form-control,
  body.crm-modern #myModal2 .form-group > .input-group,
  body.crm-modern #myModal2 .form-group > .groupfields { width: 100% !important; }
  body.crm-modern #myModal2 .form-group > label:has(input[type="radio"]) { margin-left: 0 !important; }
  body.crm-modern #myModal2 table:has(input[name="serviceType"]) { width: 100%; }
  body.crm-modern #myModal2 table:has(input[name="serviceType"]) td { padding: 6px 2px !important; white-space: normal; }
  body.crm-modern #myModal2 table:has(input[name="serviceType"]) label { float: none; display: inline; width: auto; padding: 0; line-height: 1.5; }
  body.crm-modern #myModal2 .modal-footer { padding: 12px 20px; gap: 10px; }
  body.crm-modern #myModal2 .modal-footer .btn { margin: 0 !important; }
  body.crm-modern[data-section="dashboard_details"] .page-content > .row { margin-left: 0; margin-right: 0; }
  body.crm-modern .topnavigation .nav-link { padding: 10px 12px !important; }
}
@media print {
  body.crm-modern #tograypanelmenu, body.crm-modern .crm-page-intro, body.crm-modern .footerstripboxouter { display: none !important; }
  body.crm-modern .wrapper { margin: 0 !important; padding: 0 !important; }
  body.crm-modern { background: #fff !important; }
}
