/* =====================================================================
   AquaBest Work Portal  -  KANAKKU SCREENS, WAVE 1  (version 1)
   File: aquabest-kscreens-v1.css
   Screens: Customers, Complaints, Schedule, Equipment.

   Every rule starts with  body.kanakku-skin #pageContent[data-kw]
   so it only touches those four screens, only in Light (Kanakku) mode.
   Dark mode and every other menu look exactly as before.

   Measurements are taken from the purchased theme's own pages
   (customers.html, invoices.html): 18px/700 page title, white cards
   with a 1px #E2E4E6 line, 10px corners and a soft shadow, 40px round
   icon on each number card, #F7F8F9 table head with 13px/600 text,
   14px rows in #5D6772, soft-coloured status pills, outline-white
   buttons, square page buttons with a purple current page.
   ===================================================================== */

body.kanakku-skin #pageContent[data-kw] {
  --kw-ink: #051321; --kw-ink2: #45505C; --kw-muted: #5D6772; --kw-line: #E2E4E6; --kw-panel: #F7F8F9;
  --kw-purple: #7539FF; --kw-purple-soft: #F8F5FF;
  --kw-green: #27AE60; --kw-green-soft: #EAF7F0;
  --kw-red: #EF1E1E;   --kw-red-soft: #FDEEEE;
  --kw-amber: #C9961A; --kw-amber-soft: #FDF7E6;
  --kw-blue: #06AED4;  --kw-blue-soft: #E9F8FC;
  --kw-shadow: 0 4px 3px rgba(126,126,126,.10);
  color: var(--kw-muted);
}

/* ---------------------------------------------------------------- 1. page header
   Title on the left, the screen's main buttons on the right.        */
body.kanakku-skin #pageContent[data-kw] .page-header.kw-head,
body.kanakku-skin #pageContent[data-kw] > .card > .card-header.kw-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px; row-gap: 2px;
  align-items: center;
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  padding: 0 !important; margin: 0 0 24px !important;
}
body.kanakku-skin #pageContent[data-kw] .kw-head > .portal-page-eyebrow { grid-column: 1 / -1; margin: 0 0 6px !important; font-size: 13px; color: var(--kw-muted) !important; }
body.kanakku-skin #pageContent[data-kw] .kw-head > h1,
body.kanakku-skin #pageContent[data-kw] .kw-head > h2,
body.kanakku-skin #pageContent[data-kw] .kw-head > h3 { grid-column: 1; margin: 0 !important; font-size: 18px !important; font-weight: 700 !important; line-height: 1.3; color: var(--kw-ink) !important; }
body.kanakku-skin #pageContent[data-kw] .kw-head > p { grid-column: 1; margin: 2px 0 0 !important; font-size: 13px !important; color: var(--kw-muted) !important; }
body.kanakku-skin #pageContent[data-kw] .kw-head > .kw-actions { grid-column: 2; grid-row: 2 / span 2; }
body.kanakku-skin #pageContent[data-kw] > .card > .card-header.kw-head > .kw-actions { grid-row: 1; }
body.kanakku-skin #pageContent[data-kw] .kw-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }

/* header buttons: Kanakku has two kinds - white outline, and purple */
body.kanakku-skin #pageContent[data-kw] .kw-actions > .btn:not(:disabled),
body.kanakku-skin #pageContent[data-kw] .kw-actions > button:not(:disabled),
body.kanakku-skin #pageContent[data-kw] .kw-more > .kw-more-btn:not(:disabled) {
  display: inline-flex !important; align-items: center; gap: 6px;
  height: 34px; min-height: 34px; padding: 6px 12px !important; margin: 0 !important;
  background: #fff !important; color: #262626 !important;
  border: 1px solid var(--kw-line) !important; border-radius: 4.8px !important;
  font-size: 13px !important; font-weight: 600 !important; line-height: 1 !important;
  box-shadow: none !important; white-space: nowrap; cursor: pointer;
}
body.kanakku-skin #pageContent[data-kw] .kw-actions > .btn:not(:disabled):hover,
body.kanakku-skin #pageContent[data-kw] .kw-more > .kw-more-btn:not(:disabled):hover { background: var(--kw-panel) !important; color: var(--kw-ink) !important; }
body.kanakku-skin #pageContent[data-kw] .kw-actions > .btn.kw-main:not(:disabled) {
  background: var(--kw-purple) !important; color: #fff !important; border-color: var(--kw-purple) !important;
}
body.kanakku-skin #pageContent[data-kw] .kw-actions > .btn.kw-main:not(:disabled):hover { background: #6329E6 !important; color: #fff !important; }

/* the "More" drop-down in the header */
body.kanakku-skin #pageContent[data-kw] .kw-more { position: relative; }
body.kanakku-skin #pageContent[data-kw] .kw-caret,
body.kanakku-skin .kw-rowmenu-list .kw-caret {
  display: inline-block; width: 0; height: 0; margin-left: 2px;
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .7;
}
body.kanakku-skin #pageContent[data-kw] .kw-more-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 4px); z-index: 3000;
  min-width: 230px; padding: 6px;
  background: #fff; border: 1px solid var(--kw-line); border-radius: 6px;
  box-shadow: 0 8px 24px rgba(5,19,33,.12);
}
body.kanakku-skin #pageContent[data-kw] .kw-more.kw-open > .kw-more-menu { display: flex; flex-direction: column; }

/* buttons inside any of our menus look like menu lines */
body.kanakku-skin #pageContent[data-kw] .kw-more-menu > .btn:not(:disabled),
body.kanakku-skin #pageContent[data-kw] .kw-more-menu > button:not(:disabled),
body.kanakku-skin #pageContent[data-kw] .kw-more-menu > a,
body.kanakku-skin .kw-rowmenu-list > .btn:not(:disabled),
body.kanakku-skin .kw-rowmenu-list > button:not(:disabled),
body.kanakku-skin .kw-rowmenu-list > a,
body.kanakku-skin [data-ab-tidy-holder] > .btn:not(:disabled),
body.kanakku-skin [data-ab-tidy-holder] > button:not(:disabled),
body.kanakku-skin [data-ab-tidy-holder] > a {
  display: flex !important; align-items: center; gap: 8px; width: 100% !important;
  justify-content: flex-start !important; text-align: left !important;
  background: transparent !important; color: var(--kw-ink, #051321) !important;
  border: 0 !important; border-radius: 4px !important; box-shadow: none !important;
  padding: 7px 10px !important; margin: 0 !important; min-height: 0 !important; height: auto !important;
  font-size: 14px !important; font-weight: 400 !important; line-height: 1.4 !important; text-decoration: none !important;
  white-space: nowrap; cursor: pointer;
}
body.kanakku-skin #pageContent[data-kw] .kw-more-menu > .btn:not(:disabled):hover,
body.kanakku-skin .kw-rowmenu-list > .btn:not(:disabled):hover,
body.kanakku-skin .kw-rowmenu-list > a:hover,
body.kanakku-skin [data-ab-tidy-holder] > .btn:not(:disabled):hover,
body.kanakku-skin [data-ab-tidy-holder] > button:not(:disabled):hover { background: #F7F8F9 !important; color: #051321 !important; }
body.kanakku-skin #pageContent[data-kw] .kw-more-menu > .btn-danger:not(:disabled),
body.kanakku-skin .kw-rowmenu-list > .btn-danger:not(:disabled),
body.kanakku-skin [data-ab-tidy-holder] > .btn-danger:not(:disabled) { color: #EF1E1E !important; }
body.kanakku-skin #pageContent[data-kw] .kw-more-menu > .btn-danger:not(:disabled):hover,
body.kanakku-skin .kw-rowmenu-list > .btn-danger:not(:disabled):hover,
body.kanakku-skin [data-ab-tidy-holder] > .btn-danger:not(:disabled):hover { background: #FDEEEE !important; color: #EF1E1E !important; }
/* the Schedule screen's own "More" panel, dressed the same way */
body.kanakku-skin [data-ab-tidy-holder][style*="fixed"] {
  background: #fff !important; border: 1px solid #E2E4E6 !important; border-radius: 6px !important;
  box-shadow: 0 8px 24px rgba(5,19,33,.12) !important; padding: 6px !important; gap: 0 !important; min-width: 200px !important;
}
body.kanakku-skin [data-ab-tidy-holder] select { font-size: 13px !important; height: 32px; margin: 4px 0 !important; border: 1px solid #E2E4E6 !important; border-radius: 4.8px !important; }

/* the row "..." menu, opened over the page */
body.kanakku-skin .kw-rowmenu-list {
  position: fixed; z-index: 99999; display: flex; flex-direction: column; min-width: 190px; padding: 6px;
  background: #fff; border: 1px solid #E2E4E6; border-radius: 6px; box-shadow: 0 8px 24px rgba(5,19,33,.12);
}
body.kanakku-skin .kw-rowmenu-list[hidden] { display: none !important; }

/* small icons in front of button words (drawn by the theme's own icon font) */
body.kanakku-skin #pageContent[data-kw] [data-kw-ico]::before,
body.kanakku-skin .kw-rowmenu-list [data-kw-ico]::before,
body.kanakku-skin [data-ab-tidy-holder] [data-kw-ico]::before {
  content: attr(data-kw-ico); font-family: 'iconsax' !important; font-weight: normal; font-style: normal;
  font-size: 14px; line-height: 1; speak: never; -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------- 2. number cards
   Label on top, number under it, round coloured icon on the right,
   the theme's soft swoosh in the corner.                            */
body.kanakku-skin #pageContent[data-kw] .stats-grid {
  display: grid !important; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)) !important;
  gap: 16px !important; margin: 0 0 24px !important;
}
body.kanakku-skin #pageContent[data-kw] .stat-card[data-kw-tone] {
  position: relative; overflow: hidden;
  display: grid !important; grid-template-columns: minmax(0, 1fr) 40px; grid-template-rows: auto auto;
  column-gap: 10px; align-items: center; align-content: center;
  min-height: 92px; padding: 18px 16px 18px 18px !important; margin: 0 !important; text-align: left !important;
  background-color: #fff !important; background-repeat: no-repeat !important; background-position: right bottom !important;
  background-size: 96px auto !important;
  border: 1px solid var(--kw-line) !important; border-radius: 10px !important; box-shadow: var(--kw-shadow) !important;
  outline: 0 !important; transform: none !important;
}
body.kanakku-skin #pageContent[data-kw] .stat-card[data-kw-tone="primary"] { background-image: url('kanakku/img/bg/card-overlay-01.svg') !important; }
body.kanakku-skin #pageContent[data-kw] .stat-card[data-kw-tone="success"] { background-image: url('kanakku/img/bg/card-overlay-02.svg') !important; }
body.kanakku-skin #pageContent[data-kw] .stat-card[data-kw-tone="warning"] { background-image: url('kanakku/img/bg/card-overlay-03.svg') !important; }
body.kanakku-skin #pageContent[data-kw] .stat-card[data-kw-tone="danger"]  { background-image: url('kanakku/img/bg/card-overlay-04.svg') !important; }
body.kanakku-skin #pageContent[data-kw] .stat-card[data-kw-tone="info"]    { background-image: url('kanakku/img/bg/card-overlay-01.svg') !important; }
@media (min-width: 1100px) {
  body.kanakku-skin #pageContent[data-kw] .stats-grid[data-kw-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body.kanakku-skin #pageContent[data-kw] .stats-grid[data-kw-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  body.kanakku-skin #pageContent[data-kw] .stats-grid[data-kw-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  body.kanakku-skin #pageContent[data-kw] .stats-grid[data-kw-cols="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
  body.kanakku-skin #pageContent[data-kw] .stats-grid[data-kw-cols="6"] { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
}
body.kanakku-skin #pageContent[data-kw] .stat-card[data-kw-tone][onclick]:hover { border-color: #D3C4FF !important; }

body.kanakku-skin #pageContent[data-kw] .stat-card[data-kw-tone] > .stat-label,
body.kanakku-skin #pageContent[data-kw] .stat-card[data-kw-tone] > p {
  grid-column: 1; grid-row: 1; margin: 0 0 4px !important;
  font-size: 13.5px !important; font-weight: 400 !important; line-height: 18px; color: var(--kw-ink2) !important;
  white-space: normal; position: relative; z-index: 1;
}
body.kanakku-skin #pageContent[data-kw] .stat-card[data-kw-tone] > .stat-value,
body.kanakku-skin #pageContent[data-kw] .stat-card[data-kw-tone] > h3 {
  grid-column: 1; grid-row: 2; margin: 0 !important;
  font-size: 18px !important; font-weight: 700 !important; line-height: 22px; color: var(--kw-ink) !important; position: relative; z-index: 1;
}
body.kanakku-skin #pageContent[data-kw] .stat-card[data-kw-tone]::after {
  content: attr(data-kw-glyph);
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  font-family: 'iconsax' !important; font-size: 18px; line-height: 1; color: #fff; position: relative; z-index: 1;
}
body.kanakku-skin #pageContent[data-kw] .stat-card[data-kw-tone="primary"]::after { background: var(--kw-purple); }
body.kanakku-skin #pageContent[data-kw] .stat-card[data-kw-tone="success"]::after { background: var(--kw-green); }
body.kanakku-skin #pageContent[data-kw] .stat-card[data-kw-tone="warning"]::after { background: #E2B93B; }
body.kanakku-skin #pageContent[data-kw] .stat-card[data-kw-tone="danger"]::after  { background: var(--kw-red); }
body.kanakku-skin #pageContent[data-kw] .stat-card[data-kw-tone="info"]::after    { background: var(--kw-blue); }

/* the city boxes (All Cities / Dubai / ...) are filters: shown as Kanakku chips */
body.kanakku-skin #pageContent[data-kw] .stats-grid[id$="CityStats"] { display: flex !important; flex-wrap: wrap; gap: 8px !important; margin: -8px 0 24px !important; }
body.kanakku-skin #pageContent[data-kw] .stats-grid[id$="CityStats"] > .stat-card {
  display: inline-flex !important; flex-direction: row-reverse; align-items: center; gap: 8px;
  min-height: 0 !important; padding: 6px 12px !important; border-radius: 20px !important;
  background: #fff !important; border: 1px solid var(--kw-line) !important; box-shadow: none !important; outline: 0 !important;
}
body.kanakku-skin #pageContent[data-kw] .stats-grid[id$="CityStats"] > .stat-card > .stat-value {
  font-size: 12px !important; font-weight: 600 !important; line-height: 18px; min-width: 20px; padding: 0 6px; margin: 0 !important;
  border-radius: 9px; background: var(--kw-panel); color: var(--kw-ink) !important; text-align: center;
}
body.kanakku-skin #pageContent[data-kw] .stats-grid[id$="CityStats"] > .stat-card > .stat-label { font-size: 13px !important; font-weight: 500 !important; color: var(--kw-ink) !important; margin: 0 !important; }
body.kanakku-skin #pageContent[data-kw] .stats-grid[id$="CityStats"] > .stat-card[style*="outline"] { border-color: var(--kw-purple) !important; background: var(--kw-purple-soft) !important; }
body.kanakku-skin #pageContent[data-kw] .stats-grid[id$="CityStats"] > .stat-card[style*="outline"] > .stat-label { color: var(--kw-purple) !important; }
body.kanakku-skin #pageContent[data-kw] .stats-grid[id$="CityStats"] > .stat-card[style*="outline"] > .stat-value { background: var(--kw-purple) !important; color: #fff !important; }

/* ---------------------------------------------------------------- 3. cards and panels */
body.kanakku-skin #pageContent[data-kw] .card {
  background: #fff !important; border: 1px solid var(--kw-line) !important; border-radius: 10px !important;
  box-shadow: var(--kw-shadow) !important; margin-bottom: 24px !important;
}
body.kanakku-skin #pageContent[data-kw] .card > .card-header,
body.kanakku-skin #pageContent[data-kw] details.card > summary {
  padding: 16px 20px !important; background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--kw-line) !important;
}
body.kanakku-skin #pageContent[data-kw] .card > .card-header h3,
body.kanakku-skin #pageContent[data-kw] details.card > summary h3 { font-size: 16px !important; font-weight: 600 !important; margin: 0 !important; color: var(--kw-ink) !important; }
body.kanakku-skin #pageContent[data-kw] details.card:not([open]) > summary { border-bottom: 0 !important; }
body.kanakku-skin #pageContent[data-kw] details.card > summary,
body.kanakku-skin #pageContent[data-kw] details.card > summary.card-header { position: relative; padding-right: 48px !important; }
body.kanakku-skin #pageContent[data-kw] details.card > summary::after {
  content: ''; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--kw-muted); border-bottom: 2px solid var(--kw-muted); transform: rotate(45deg); transition: transform .15s;
}
body.kanakku-skin #pageContent[data-kw] details.card[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
body.kanakku-skin #pageContent[data-kw] .card > .card-body { padding: 20px !important; }
/* the thin progress bars in City Summary / Warranty cards */
body.kanakku-skin #pageContent[data-kw] .card-body div[style*="height:6px"] { background: #F1F2F4 !important; border-radius: 6px !important; }
body.kanakku-skin #pageContent[data-kw] .card-body div[style*="height:6px"] > div { background: var(--kw-purple) !important; border-radius: 6px !important; }
body.kanakku-skin #pageContent[data-kw] .card-body strong { color: var(--kw-ink) !important; font-weight: 500 !important; }

/* the list itself sits on the page like Kanakku's: no card round it */
body.kanakku-skin #pageContent[data-kw] .card.kw-listcard,
body.kanakku-skin #pageContent[data-kw="complaints"] > .card {
  background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
}
body.kanakku-skin #pageContent[data-kw] .card.kw-listcard > .card-body,
body.kanakku-skin #pageContent[data-kw="complaints"] > .card > .card-body { padding: 0 !important; }

/* ---------------------------------------------------------------- 4. search + list toolbar row */
body.kanakku-skin #pageContent[data-kw] .search-bar.kw-searchrow {
  display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px;
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  padding: 0 !important; margin: 0 0 16px !important;
}
body.kanakku-skin #pageContent[data-kw] .search-bar.kw-searchrow > input[type="text"],
body.kanakku-skin #pageContent[data-kw] .search-bar.kw-searchrow > input[type="search"],
body.kanakku-skin #pageContent[data-kw] .search-bar.kw-searchrow > input:not([type]) {
  flex: 0 1 230px !important; width: 230px; min-width: 160px !important; height: 34px; min-height: 34px !important;
  padding: 6px 10px 6px 32px !important; font-size: 13px !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235D6772' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px center !important;
}
body.kanakku-skin #pageContent[data-kw] .search-bar.kw-searchrow > select {
  flex: 0 1 auto; width: auto !important; min-width: 120px; max-width: 170px !important; height: 34px; min-height: 34px !important;
  padding: 6px 28px 6px 10px !important; font-size: 13px !important; color: #262626 !important; font-weight: 500 !important;
}
/* the B1 toolbar joins the same row, a little more compact */
body.kanakku-skin #pageContent[data-kw] .kw-searchrow .kt-btn:not(:disabled) { min-height: 34px; height: 34px; padding: 6px 10px !important; font-size: 13px !important; gap: 5px; }
body.kanakku-skin #pageContent[data-kw] .kw-searchrow .kt-bar,
body.kanakku-skin #pageContent[data-kw] .kw-searchrow .kt-left,
body.kanakku-skin #pageContent[data-kw] .kw-searchrow .kt-right { gap: 8px; }
body.kanakku-skin #pageContent[data-kw] .kw-searchrow .kt-count { font-size: 13px; order: 2; }
body.kanakku-skin #pageContent[data-kw] .search-bar.kw-searchrow > .kt-bar { flex: 1 1 auto; margin: 0 !important; min-width: 0; }
body.kanakku-skin #pageContent[data-kw] .kt-tags { margin: -6px 0 12px !important; }
body.kanakku-skin #pageContent[data-kw] .kt-selbar { margin: -6px 0 12px !important; }

/* the Schedule tabs: Kanakku underline tabs */
body.kanakku-skin #pageContent[data-kw] .tabs {
  display: flex !important; flex-wrap: wrap; gap: 0 !important;
  padding: 0 !important; margin: 0 0 16px !important; border-bottom: 1px solid var(--kw-line) !important;
}
body.kanakku-skin #pageContent[data-kw] .tabs > .tab-btn:not(:disabled) {
  background: transparent !important; color: var(--kw-muted) !important; border: 0 !important; border-radius: 0 !important;
  border-bottom: 2px solid transparent !important; margin: 0 0 -1px !important; padding: 8px 16px !important;
  font-size: 14px !important; font-weight: 500 !important; box-shadow: none !important;
}
body.kanakku-skin #pageContent[data-kw] .tabs > .tab-btn:not(:disabled):hover { color: var(--kw-ink) !important; background: transparent !important; }
body.kanakku-skin #pageContent[data-kw] .tabs > .tab-btn.active:not(:disabled) { color: var(--kw-ink) !important; border-bottom-color: var(--kw-purple) !important; background: transparent !important; }
body.kanakku-skin #pageContent[data-kw] .tabs > .tab-btn > span {
  display: inline-block; min-width: 20px; margin-left: 6px !important; padding: 0 6px; border-radius: 9px;
  font-size: 12px !important; font-weight: 600 !important; line-height: 18px; text-align: center;
  background: var(--kw-panel); color: var(--kw-muted) !important;
}
body.kanakku-skin #pageContent[data-kw] .tabs > .tab-btn.active > span { background: var(--kw-purple) !important; color: #fff !important; }
body.kanakku-skin #pageContent[data-kw] .tabs > .tab-btn > span[style*="danger"] { background: var(--kw-red-soft); color: var(--kw-red) !important; }

/* Schedule's bulk buttons: a quiet row of small white buttons */
body.kanakku-skin #pageContent[data-kw] #scheduleContent > div:first-child > .btn:not(:disabled) {
  background: #fff !important; color: #262626 !important; border: 1px solid var(--kw-line) !important; box-shadow: none !important;
  font-size: 13px !important; font-weight: 500 !important; padding: 5px 10px !important; min-height: 30px; border-radius: 4.8px !important;
}
body.kanakku-skin #pageContent[data-kw] #scheduleContent > div:first-child > .btn-danger:not(:disabled) { color: var(--kw-red) !important; }
body.kanakku-skin #pageContent[data-kw] #scheduleContent > div:first-child > .btn:not(:disabled):hover { background: var(--kw-panel) !important; }

/* ---------------------------------------------------------------- 5. the table */
body.kanakku-skin #pageContent[data-kw] .table-container {
  background: #fff !important; border: 1px solid var(--kw-line) !important; border-radius: 0 !important;
  box-shadow: none !important; padding: 0 !important; overflow-x: auto;
}
body.kanakku-skin #pageContent[data-kw] .table-container table { border-collapse: collapse; width: 100%; margin: 0 !important; }
body.kanakku-skin #pageContent[data-kw] .table-container th {
  background: var(--kw-panel) !important; color: var(--kw-ink) !important;
  font-size: 13px !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: 0 !important;
  padding: 10px 12px !important; white-space: nowrap; border-bottom: 1px solid var(--kw-line) !important;
}
body.kanakku-skin #pageContent[data-kw] .table-container td {
  color: var(--kw-muted) !important; font-size: 14px !important; line-height: 21px;
  padding: 10px 12px !important; white-space: nowrap; vertical-align: middle; border-bottom: 1px solid var(--kw-line) !important;
}
body.kanakku-skin #pageContent[data-kw] .table-container td[data-kw-av],
body.kanakku-skin #pageContent[data-kw] .table-container td[data-label="Type"],
body.kanakku-skin #pageContent[data-kw] .table-container td[data-label="No."] { white-space: normal; }
body.kanakku-skin #pageContent[data-kw] .table-container td[data-kw-av] { min-width: 160px; max-width: 220px; }
body.kanakku-skin #pageContent[data-kw] .table-container td[data-label="Type"] { min-width: 120px; }
body.kanakku-skin #pageContent[data-kw] .table-container td[data-label="No."] { min-width: 96px; }
body.kanakku-skin #pageContent[data-kw] .table-container td[data-label="No."] > span[style*="#d64545"] { margin: 2px 0 0 !important; }
body.kanakku-skin #pageContent[data-kw] .table-container td[data-label="Location"],
body.kanakku-skin #pageContent[data-kw] .table-container td[data-label="Problem"] { white-space: normal; min-width: 140px; }
body.kanakku-skin #pageContent[data-kw] .table-container tbody tr:hover > td { background: #FAFAFB !important; }
body.kanakku-skin #pageContent[data-kw] .table-container td strong { color: var(--kw-ink) !important; font-weight: 500 !important; }
body.kanakku-skin #pageContent[data-kw] .table-container td input[type="checkbox"],
body.kanakku-skin #pageContent[data-kw] .table-container th input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--kw-purple); min-height: 0 !important; }
body.kanakku-skin #pageContent[data-kw] .table-container .privacy-phone,
body.kanakku-skin #pageContent[data-kw] .table-container .privacy-address { font-weight: 400 !important; color: inherit !important; }
body.kanakku-skin #pageContent[data-kw] .table-container td[data-label="Location"] > .privacy-address { color: var(--kw-ink) !important; }
body.kanakku-skin #pageContent[data-kw] .table-container td > div[style*="font-size"] { font-weight: 400 !important; color: #8A949E !important; }
body.kanakku-skin #pageContent[data-kw] .table-container td > div[style*="--warning"] { color: var(--kw-amber) !important; }
body.kanakku-skin #pageContent[data-kw] .table-container td > div[style*="--success"] { color: var(--kw-green) !important; }
body.kanakku-skin #pageContent[data-kw] .table-container td > div[style*="--danger"] { color: var(--kw-red) !important; }
/* words the portal colours itself (complaint status, HIGH / URGENT, days waiting) */
body.kanakku-skin #pageContent[data-kw] .table-container td span[style*="#d9a53b"] { color: var(--kw-amber) !important; --kw-soft: var(--kw-amber-soft); }
body.kanakku-skin #pageContent[data-kw] .table-container td span[style*="#0b8ed4"] { color: #0789A6 !important; --kw-soft: var(--kw-blue-soft); }
body.kanakku-skin #pageContent[data-kw] .table-container td span[style*="#3ec0e0"] { color: #5D6772 !important; --kw-soft: #F1F2F4; }
body.kanakku-skin #pageContent[data-kw] .table-container td span[style*="#19a974"] { color: var(--kw-green) !important; --kw-soft: var(--kw-green-soft); }
body.kanakku-skin #pageContent[data-kw] .table-container td span[style*="#d64545"] { color: var(--kw-red) !important; --kw-soft: var(--kw-red-soft); }
body.kanakku-skin #pageContent[data-kw] .table-container td span[style*="font-weight:800"] { font-weight: 600 !important; }
/* the line under a name ("Dubai", "Location Not Verified") */
body.kanakku-skin #pageContent[data-kw] .table-container td > div[style*="font-size"] { font-size: 12px !important; line-height: 16px; margin-top: 1px; }

/* Schedule's action cell was laid out as a flex box; as a normal cell
   the table can size its columns properly (the ID column no longer
   breaks one letter per line). Buttons still stay on one line. */
@media (min-width: 769px) {
  body.kanakku-skin #pageContent[data-kw] .table-container td[data-ab-tidy="1"] { display: table-cell !important; text-align: right; }
  body.kanakku-skin #pageContent[data-kw] .table-container td[data-ab-tidy="1"] > * { vertical-align: middle; }
  body.kanakku-skin #pageContent[data-kw] .table-container td[data-ab-tidy="1"] > * + * { margin-left: 4px !important; }

  /* round initials in front of the customer name */
  body.kanakku-skin #pageContent[data-kw] .table-container td[data-kw-av] { position: relative; padding-left: 52px !important; }
  body.kanakku-skin #pageContent[data-kw] .table-container td[data-kw-av]::before {
    content: attr(data-kw-av); position: absolute; left: 12px; top: 50%; margin-top: -16px;
    width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: .2px;
  }
  body.kanakku-skin #pageContent[data-kw] td[data-kw-avt="0"]::before { background: #F3EEFF; color: #7539FF; }
  body.kanakku-skin #pageContent[data-kw] td[data-kw-avt="1"]::before { background: #EAF7F0; color: #1F8A4C; }
  body.kanakku-skin #pageContent[data-kw] td[data-kw-avt="2"]::before { background: #E9F8FC; color: #0789A6; }
  body.kanakku-skin #pageContent[data-kw] td[data-kw-avt="3"]::before { background: #FDF7E6; color: #A67C0E; }
  body.kanakku-skin #pageContent[data-kw] td[data-kw-avt="4"]::before { background: #FDEEF6; color: #C0207D; }
  body.kanakku-skin #pageContent[data-kw] td[data-kw-avt="5"]::before { background: #FDF1EC; color: #C4460F; }
  body.kanakku-skin #pageContent[data-kw] .table-container td[data-kw-av] { color: var(--kw-ink) !important; font-weight: 500; }
}

/* status pills: Kanakku's soft colours */
body.kanakku-skin #pageContent[data-kw] .table-container .badge,
body.kanakku-skin #pageContent[data-kw] .table-container td[data-label="Status"] > span[style*="color"],
body.kanakku-skin #pageContent[data-kw] .table-container td > span[style*="#d64545"] {
  display: inline-flex !important; align-items: center; gap: 4px;
  padding: 4px 8px !important; border-radius: 4.8px !important; border: 0 !important;
  font-size: 12px !important; font-weight: 500 !important; line-height: 14px !important; letter-spacing: 0 !important; text-transform: none !important;
  white-space: nowrap;
}
body.kanakku-skin #pageContent[data-kw] .table-container td[data-label="Status"] > span[style*="color"],
body.kanakku-skin #pageContent[data-kw] .table-container td > span[style*="#d64545"] { background: var(--kw-soft, #F1F2F4) !important; }
body.kanakku-skin #pageContent[data-kw] .table-container td > span[style*="#d64545"] { margin-left: 6px; font-size: 11px !important; padding: 2px 6px !important; }
body.kanakku-skin #pageContent[data-kw] .table-container .badge[data-kw-b="success"] { background: var(--kw-green-soft) !important; color: var(--kw-green) !important; }
body.kanakku-skin #pageContent[data-kw] .table-container .badge[data-kw-b="danger"]  { background: var(--kw-red-soft) !important; color: var(--kw-red) !important; }
body.kanakku-skin #pageContent[data-kw] .table-container .badge[data-kw-b="warning"] { background: var(--kw-amber-soft) !important; color: var(--kw-amber) !important; }
body.kanakku-skin #pageContent[data-kw] .table-container .badge[data-kw-b="info"]    { background: var(--kw-blue-soft) !important; color: #0789A6 !important; }
body.kanakku-skin #pageContent[data-kw] .table-container .badge[data-kw-b="primary"] { background: #F3EEFF !important; color: var(--kw-purple) !important; }
body.kanakku-skin #pageContent[data-kw] .table-container .badge[data-kw-b="plain"]   { background: var(--kw-panel) !important; color: var(--kw-ink2) !important; }
body.kanakku-skin #pageContent[data-kw] .table-container td[data-label="Status"] .badge[data-kw-b]::after { font-family: 'iconsax' !important; font-size: 11px; line-height: 1; }
body.kanakku-skin #pageContent[data-kw] .table-container td[data-label="Status"] .badge[data-kw-b="success"]::after { content: '\ec32'; }
body.kanakku-skin #pageContent[data-kw] .table-container td[data-label="Status"] .badge[data-kw-b="danger"]::after  { content: '\e9c8'; }
body.kanakku-skin #pageContent[data-kw] .table-container td[data-label="Status"] .badge[data-kw-b="warning"]::after { content: '\eabf'; }
/* the small NORMAL / URGENT tag under a schedule customer */
body.kanakku-skin #pageContent[data-kw] .table-container td span[style*="border-radius:10px"] {
  border: 0 !important; border-radius: 4.8px !important; font-weight: 500 !important; font-size: 11px !important; padding: 1px 6px !important; margin-top: 3px;
}

/* buttons in a row: Kanakku's small white buttons */
body.kanakku-skin #pageContent[data-kw] .table-container td .btn:not(:disabled),
body.kanakku-skin #pageContent[data-kw] .table-container td > button:not(:disabled) {
  display: inline-flex !important; align-items: center; gap: 5px;
  height: 28px; min-height: 28px !important; padding: 4px 8px !important; margin: 0 4px 0 0 !important;
  background: #fff !important; color: #262626 !important; border: 1px solid var(--kw-line) !important; border-radius: 4.8px !important;
  font-size: 12.5px !important; font-weight: 600 !important; line-height: 1 !important; box-shadow: none !important; text-decoration: none !important;
  vertical-align: middle; white-space: nowrap;
}
body.kanakku-skin #pageContent[data-kw] .table-container td .btn:not(:disabled):hover { background: var(--kw-panel) !important; color: var(--kw-ink) !important; }
body.kanakku-skin #pageContent[data-kw] .table-container td .btn-primary:not(:disabled) { color: var(--kw-purple) !important; }
body.kanakku-skin #pageContent[data-kw] .table-container td .btn-success:not(:disabled) { color: #1F8A4C !important; }
body.kanakku-skin #pageContent[data-kw] .table-container td .btn-danger:not(:disabled)  { color: var(--kw-red) !important; }
body.kanakku-skin #pageContent[data-kw] .table-container td .btn-primary:not(:disabled):hover { background: #F3EEFF !important; }
body.kanakku-skin #pageContent[data-kw] .table-container td .btn-success:not(:disabled):hover { background: var(--kw-green-soft) !important; }
body.kanakku-skin #pageContent[data-kw] .table-container td .btn-danger:not(:disabled):hover  { background: var(--kw-red-soft) !important; }
/* Schedule is the widest list: slightly tighter cells, and View shows just its eye */
body.kanakku-skin #pageContent[data-kw="schedule"] .table-container th,
body.kanakku-skin #pageContent[data-kw="schedule"] .table-container td { padding-left: 10px !important; padding-right: 10px !important; }
body.kanakku-skin #pageContent[data-kw] .table-container td .btn[data-kw-icononly]:not(:disabled) { font-size: 0 !important; gap: 0; width: 28px; padding: 0 !important; justify-content: center; }
body.kanakku-skin #pageContent[data-kw] .table-container td .btn[data-kw-icononly]::before { font-size: 14px; }
/* the round "..." button */
body.kanakku-skin #pageContent[data-kw] .table-container td .kw-dots:not(:disabled),
body.kanakku-skin #pageContent[data-kw] .table-container td [data-ab-tidy-more]:not(:disabled) {
  display: inline-flex !important; align-items: center; justify-content: center;
  width: 28px; height: 28px; min-height: 28px !important; padding: 0 !important; margin: 0 !important;
  background: #fff !important; color: var(--kw-muted) !important; border: 1px solid #DFDFDF !important; border-radius: 50% !important;
  font-size: 0 !important; line-height: 1 !important; box-shadow: none !important; cursor: pointer; vertical-align: middle;
}
body.kanakku-skin #pageContent[data-kw] .table-container td .kw-dots::before,
body.kanakku-skin #pageContent[data-kw] .table-container td [data-ab-tidy-more]::before {
  content: ''; width: 3px; height: 3px; border-radius: 50%; background: currentColor;
  box-shadow: -5px 0 0 currentColor, 5px 0 0 currentColor;
}
body.kanakku-skin #pageContent[data-kw] .table-container td .kw-dots:not(:disabled):hover,
body.kanakku-skin #pageContent[data-kw] .table-container td [data-ab-tidy-more]:not(:disabled):hover { background: var(--kw-panel) !important; color: var(--kw-ink) !important; }
body.kanakku-skin #pageContent[data-kw] .kw-rowhold { display: none !important; }

/* ---------------------------------------------------------------- 6. page buttons under a list */
/* (a) the portal's own:  Prev  Page 1 of 3  Next */
body.kanakku-skin #pageContent[data-kw] [id$="Pagination"] > div {
  display: flex !important; align-items: center; justify-content: flex-end !important; gap: 8px !important; margin: 12px 0 0 !important; padding: 0 !important;
}
/* (b) aquabest-fast-lists:  First  Previous  Showing 1-50 of 90  Next  Last */
body.kanakku-skin #pageContent[data-kw] [id^="abFastPager_"] { display: flex !important; align-items: center; gap: 6px !important; padding: 12px 0 0 !important; }
body.kanakku-skin #pageContent[data-kw] [id^="abFastPager_"] > span { order: -1; margin-right: auto; padding: 0 !important; font-size: 14px !important; color: var(--kw-muted) !important; }
/* (c) aquabest-core:  Prev  Page 1 / 3 (130 rows)  Next */
body.kanakku-skin #pageContent[data-kw] .auto-pagination-controls { gap: 8px !important; margin-top: 12px !important; }
body.kanakku-skin #pageContent[data-kw] [id$="Pagination"] > div > span,
body.kanakku-skin #pageContent[data-kw] .auto-pagination-controls > span { font-size: 14px !important; color: var(--kw-muted) !important; }
body.kanakku-skin #pageContent[data-kw] [id$="Pagination"] .btn:not(.kw-x),
body.kanakku-skin #pageContent[data-kw] [id^="abFastPager_"] .btn,
body.kanakku-skin #pageContent[data-kw] .auto-pagination-controls .btn {
  display: inline-flex !important; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; min-height: 28px !important; padding: 0 8px !important; margin: 0 !important;
  background: #fff !important; color: var(--kw-ink) !important; border: 1px solid var(--kw-line) !important; border-radius: 5px !important;
  font-size: 13px !important; font-weight: 500 !important; line-height: 1 !important; box-shadow: none !important; opacity: 1 !important;
}
body.kanakku-skin #pageContent[data-kw] [id$="Pagination"] .btn:hover:not(:disabled),
body.kanakku-skin #pageContent[data-kw] [id^="abFastPager_"] .btn:hover:not(:disabled),
body.kanakku-skin #pageContent[data-kw] .auto-pagination-controls .btn:hover:not(:disabled) { border-color: var(--kw-purple) !important; color: var(--kw-purple) !important; background: var(--kw-purple-soft) !important; }
body.kanakku-skin #pageContent[data-kw] [id$="Pagination"] .btn[style*="opacity"],
body.kanakku-skin #pageContent[data-kw] [id^="abFastPager_"] .btn:disabled,
body.kanakku-skin #pageContent[data-kw] .auto-pagination-controls .btn:disabled { color: #C6CACE !important; border-color: var(--kw-line) !important; background: #fff !important; cursor: default; }
/* page numbers drawn by the portal (1 2 3 ...), current page purple */
body.kanakku-skin #pageContent[data-kw] [id$="Pagination"] .btn.active,
body.kanakku-skin #pageContent[data-kw] [id$="Pagination"] .btn-primary { color: var(--kw-purple) !important; border-color: var(--kw-purple) !important; background: var(--kw-purple-soft) !important; }

/* ---------------------------------------------------------------- 7. phones */
@media (max-width: 768px) {
  body.kanakku-skin #pageContent[data-kw] .page-header.kw-head,
  body.kanakku-skin #pageContent[data-kw] > .card > .card-header.kw-head { grid-template-columns: 1fr; }
  body.kanakku-skin #pageContent[data-kw] .kw-head > .kw-actions { grid-column: 1; grid-row: auto; justify-content: flex-start; margin-top: 10px; }
  body.kanakku-skin #pageContent[data-kw] .kw-more-menu { right: auto; left: 0; }
  body.kanakku-skin #pageContent[data-kw] .search-bar.kw-searchrow > input { flex: 1 1 100% !important; width: 100%; }
  body.kanakku-skin #pageContent[data-kw] .search-bar.kw-searchrow > select { flex: 1 1 auto; max-width: none !important; }
  body.kanakku-skin #pageContent[data-kw] .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  body.kanakku-skin #pageContent[data-kw] .stat-card[data-kw-tone] { padding: 14px !important; min-height: 80px; grid-template-columns: minmax(0,1fr) 34px; }
  body.kanakku-skin #pageContent[data-kw] .stat-card[data-kw-tone]::after { width: 34px; height: 34px; font-size: 16px; }
  body.kanakku-skin #pageContent[data-kw] .stat-card[data-kw-tone] > .stat-label,
  body.kanakku-skin #pageContent[data-kw] .stat-card[data-kw-tone] > p { font-size: 13px !important; white-space: normal; }
  body.kanakku-skin #pageContent[data-kw] .table-container { border: 0 !important; background: transparent !important; }
  body.kanakku-skin #pageContent[data-kw] .table-container td { white-space: normal; }
  body.kanakku-skin #pageContent[data-kw] .tabs { flex-wrap: nowrap; overflow-x: auto; }
  body.kanakku-skin #pageContent[data-kw] .tabs > .tab-btn { flex: 0 0 auto; }
}

@media print {
  .kw-actions, .kw-more, .kw-dots, .kw-rowmenu-list { display: none !important; }
}

/* =====================================================================
   BUILD 3 (Batch 4): Dashboard and Needs You in the Kanakku look.
   Only placement, spacing and colours - the numbers, cards, buttons and
   selects are the portal's own.
   ===================================================================== */
/* the four shortcut tiles: Kanakku quick-action tiles with the emoji as a tinted disc */
body.kanakku-skin #pageContent[data-kw="dashboard"] .portal-dashboard-actions {
  display: grid !important; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 0 0 20px;
}
body.kanakku-skin #pageContent[data-kw="dashboard"] .portal-dashboard-actions .portal-quick-action:not(:disabled) {
  display: grid !important; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px;
  align-items: center; min-height: 0; padding: 14px 16px !important;
}
body.kanakku-skin #pageContent[data-kw="dashboard"] .portal-quick-action > span:first-child {
  grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: #F1EBFF !important; font-size: 20px; line-height: 1;
}
body.kanakku-skin #pageContent[data-kw="dashboard"] .portal-quick-action:nth-child(2) > span:first-child { background: #F4FBF7 !important; }
body.kanakku-skin #pageContent[data-kw="dashboard"] .portal-quick-action:nth-child(3) > span:first-child { background: #FEF8E7 !important; }
body.kanakku-skin #pageContent[data-kw="dashboard"] .portal-quick-action:nth-child(4) > span:first-child { background: #E6F7FB !important; }
body.kanakku-skin #pageContent[data-kw="dashboard"] .portal-quick-action:hover { border-color: var(--k-purple) !important; }

/* "View Dashboard:" row: a plain label and select, no box */
body.kanakku-skin #pageContent[data-kw="dashboard"] > .search-bar {
  background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 0 16px !important; margin: 0 !important;
}
body.kanakku-skin #pageContent[data-kw="dashboard"] > .search-bar > label { font-size: 13px; font-weight: 500; color: var(--k-muted); }
body.kanakku-skin #pageContent[data-kw="dashboard"] > .search-bar > select { max-width: 280px; }

/* the number cards sit in one row of six; the money card is wider on a wide screen */
body.kanakku-skin #pageContent[data-kw="dashboard"] #dashboardStats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important; }
body.kanakku-skin #pageContent[data-kw="dashboard"] #dashboardStats > .stat-card .stat-value { font-size: 22px; }
body.kanakku-skin #pageContent[data-kw="dashboard"] #dashboardStats > .stat-card > div:last-child:not(.stat-label) { font-size: 12px !important; color: var(--k-muted) !important; margin-top: 4px; }

/* "Duplicates found" strips: soft red note cards */
body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateScheduleAlert > *,
body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateCustomerAlert > * {
  background: #FDF3F3 !important; border: 1px solid #F5C6C6 !important; border-left: 4px solid #EF1E1E !important;
  border-radius: 10px !important; box-shadow: none !important; padding: 14px 16px !important;
}
body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateScheduleAlert:empty,
body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateCustomerAlert:empty { margin: 0 !important; }

/* the two-column card rows: equal gaps, no odd margins */
body.kanakku-skin #pageContent[data-kw="dashboard"] > div[style*="grid"] { gap: 20px !important; margin-bottom: 20px; }
body.kanakku-skin #pageContent[data-kw="dashboard"] .card { margin-bottom: 0; }
body.kanakku-skin #pageContent[data-kw="dashboard"] > .card { margin-bottom: 20px; }
/* lists inside the dashboard cards */
body.kanakku-skin #pageContent[data-kw="dashboard"] .card-body > div[style*="border-bottom"] { border-color: var(--k-line) !important; }
/* the little metric boxes inside Sales Summary keep their soft colours, with Kanakku corners */
body.kanakku-skin #pageContent[data-kw="dashboard"] .card-body .stats-grid > .stat-card { border-radius: 10px !important; }

/* Needs You: the urgent rows with the coloured left bar */
body.kanakku-skin #pageContent[data-kw="today"] .page-header + .card { margin-top: 4px; }
body.kanakku-skin #pageContent[data-kw="today"] .card-body > div[style*="border-left"] { border-radius: 8px; background: var(--k-panel); margin-bottom: 8px; }
body.kanakku-skin #pageContent[data-kw="today"] .card-body > div[style*="border-left"] > div:first-child { font-size: 26px; font-weight: 700; }
body.kanakku-skin #pageContent[data-kw="today"] .page-header .btn { margin-top: 8px; }

/* phones: the tiles and number cards stack two per row */
@media (max-width: 768px) {
  body.kanakku-skin #pageContent[data-kw="dashboard"] .portal-dashboard-actions { grid-template-columns: 1fr 1fr; gap: 10px; }
  body.kanakku-skin #pageContent[data-kw="dashboard"] #dashboardStats { grid-template-columns: 1fr 1fr !important; }
  body.kanakku-skin #pageContent[data-kw="dashboard"] > div[style*="grid"] { grid-template-columns: 1fr !important; }
}

/* =====================================================================
   DASHBOARD GRID (Kanakku alignment, second pass)
   The purchased dashboard is a 12-column grid: short cards three or four
   across, the financial block full width with its own inner grid, tables
   full width. The portal draws the same cards; these rules place them.
   ===================================================================== */
body.kanakku-skin #pageContent[data-kw="dashboard"] > div[style*="grid"] {
  display: grid !important; grid-template-columns: repeat(12, minmax(0, 1fr)) !important; gap: 24px !important; margin: 0 0 24px !important;
}
body.kanakku-skin #pageContent[data-kw="dashboard"] > div[style*="grid"] > .card { grid-column: span 4; margin: 0 !important; min-width: 0; }
body.kanakku-skin #pageContent[data-kw="dashboard"] > div[style*="grid"] > .card:has(#dashSales) { grid-column: 1 / -1; }
body.kanakku-skin #pageContent[data-kw="dashboard"] > div[style*="grid"] > .card:has(#dashTodayServices) > .card-body > div,
body.kanakku-skin #pageContent[data-kw="dashboard"] > div[style*="grid"] > .card:has(#dashAMC) > .card-body > div { max-height: 260px !important; }

/* the financial block: metrics across, compare | profit, chart | top lists */
body.kanakku-skin #pageContent[data-kw="dashboard"] #dashSales { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; padding: 20px !important; }
body.kanakku-skin #pageContent[data-kw="dashboard"] #dashSales > * { grid-column: 1 / -1; margin: 0 !important; min-width: 0; }
body.kanakku-skin #pageContent[data-kw="dashboard"] #dashSales > div:nth-child(2) { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 20px !important; }
body.kanakku-skin #pageContent[data-kw="dashboard"] #dashSales > div:nth-child(3) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 20px !important; }
body.kanakku-skin #pageContent[data-kw="dashboard"] #dashSales > div:nth-child(4) { grid-column: 1 / span 7; }
body.kanakku-skin #pageContent[data-kw="dashboard"] #dashSales > div:nth-child(5) { grid-column: 8 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 20px !important; }
body.kanakku-skin #pageContent[data-kw="dashboard"] #dashSales > div:nth-child(4) > div { height: 100%; }
/* the boxes inside it: Kanakku panels, one system with the page cards */
body.kanakku-skin #pageContent[data-kw="dashboard"] #dashSales > div > div[style*="border"] {
  background: var(--kw-panel) !important; border: 1px solid var(--kw-line) !important; border-radius: 10px !important; padding: 16px !important; box-shadow: none !important;
}
body.kanakku-skin #pageContent[data-kw="dashboard"] #dashSales > div:nth-child(2) > div { border-radius: 10px !important; padding: 16px !important; text-align: left !important; }
body.kanakku-skin #pageContent[data-kw="dashboard"] #dashSales > div:nth-child(2) > div > div:first-child { font-size: 22px !important; font-weight: 700 !important; }
body.kanakku-skin #pageContent[data-kw="dashboard"] #dashSales > div > div > div[style*="font-weight:800"] { font-size: 15px !important; font-weight: 600 !important; }
body.kanakku-skin #pageContent[data-kw="dashboard"] #dashSales > div:nth-child(1) { display: flex; justify-content: space-between; font-size: 13px; color: var(--kw-muted); }
body.kanakku-skin #pageContent[data-kw="dashboard"] .card:has(#dashSales) > .card-header > div .btn { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 5px; }

/* short, side by side warning strips */
body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateScheduleAlert, body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateCustomerAlert { margin: 0 0 20px !important; }
body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateScheduleAlert > .card, body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateCustomerAlert > .card { padding: 0 !important; }
body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateScheduleAlert .card-body, body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateCustomerAlert .card-body { padding: 12px 16px !important; font-size: 13px; }
body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateScheduleAlert .btn, body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateCustomerAlert .btn { height: 32px; font-size: 13px; padding: 0 12px; }
/* Driver Performance and the other full-width cards */
body.kanakku-skin #pageContent[data-kw="dashboard"] > .card { margin: 0 0 24px !important; }
body.kanakku-skin #pageContent[data-kw="dashboard"] > .card > .card-header .btn { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 5px; }
/* section gaps */
body.kanakku-skin #pageContent[data-kw="dashboard"] .portal-dashboard-actions { margin-bottom: 24px !important; }
body.kanakku-skin #pageContent[data-kw="dashboard"] #dashboardStats { gap: 24px !important; margin-bottom: 24px !important; }
body.kanakku-skin #pageContent[data-kw="dashboard"] #dashboardStats > .stat-card { padding: 18px 20px !important; }

@media (max-width: 1400px) {
  body.kanakku-skin #pageContent[data-kw="dashboard"] > div[style*="grid"] > .card { grid-column: span 6; }
  body.kanakku-skin #pageContent[data-kw="dashboard"] #dashSales > div:nth-child(4), body.kanakku-skin #pageContent[data-kw="dashboard"] #dashSales > div:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 992px) {
  body.kanakku-skin #pageContent[data-kw="dashboard"] #dashSales > div:nth-child(2) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body.kanakku-skin #pageContent[data-kw="dashboard"] #dashSales > div:nth-child(3) { grid-template-columns: 1fr !important; }
}
@media (max-width: 768px) {
  body.kanakku-skin #pageContent[data-kw="dashboard"] > div[style*="grid"] { gap: 12px !important; }
  body.kanakku-skin #pageContent[data-kw="dashboard"] > div[style*="grid"] > .card { grid-column: 1 / -1; }
  body.kanakku-skin #pageContent[data-kw="dashboard"] #dashSales { padding: 14px !important; gap: 12px; }
  body.kanakku-skin #pageContent[data-kw="dashboard"] #dashSales > div:nth-child(5) { grid-template-columns: 1fr !important; }
}

/* build 4: the two warning strips sit side by side on one short row, title and count on one line */
body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateScheduleAlert,
body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateCustomerAlert { display: inline-block; vertical-align: top; width: calc(50% - 12px); margin: 0 0 24px !important; }
body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateScheduleAlert:not(:empty) { margin-right: 24px !important; }
body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateScheduleAlert:empty,
body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateCustomerAlert:empty { display: none; }
body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateScheduleAlert .card-body,
body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateCustomerAlert .card-body { padding: 10px 14px !important; min-height: 52px; }
body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateScheduleAlert .card-body > div:first-child,
body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateCustomerAlert .card-body > div:first-child { flex: 1 1 auto; min-width: 0; line-height: 18px; }
body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateScheduleAlert .card-body,
body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateCustomerAlert .card-body { flex-wrap: nowrap !important; }
body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateScheduleAlert .card-body .btn,
body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateCustomerAlert .card-body .btn { flex: 0 0 auto; white-space: nowrap; }
body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateScheduleAlert .card-body > div:first-child > div,
body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateCustomerAlert .card-body > div:first-child > div { margin-top: 0 !important; font-size: 12px !important; }
@media (max-width: 992px) {
  body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateScheduleAlert,
  body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateCustomerAlert { display: block; width: auto; margin: 0 0 16px !important; }
}
/* build 4: the chart box fills its row; the bars sit at the bottom like a real chart */
body.kanakku-skin #pageContent[data-kw="dashboard"] #dashSales > div:nth-child(4) > div { display: flex; flex-direction: column; }
body.kanakku-skin #pageContent[data-kw="dashboard"] #dashSales > div:nth-child(4) > div > div:last-child { flex: 1 1 auto; align-items: flex-end; }
/* build 4, tablets (992-1100px): tiles and number cards two per row, the money card on its own row,
   the two warning strips one under the other */
@media (min-width: 992px) and (max-width: 1100px) {
  html body.kanakku-skin #pageContent[data-kw="dashboard"] .portal-dashboard-actions { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  html body.kanakku-skin #pageContent[data-kw="dashboard"] #dashboardStats { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 16px !important; }
  html body.kanakku-skin #pageContent[data-kw="dashboard"] #dashboardStats > .stat-card[data-kw-hero="1"] { grid-column: auto; }
  html body.kanakku-skin #pageContent[data-kw="dashboard"] #dashboardStats > .stat-card[data-kw-hero="1"] .stat-value { font-size: 22px; }
  html body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateScheduleAlert,
  html body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateCustomerAlert { display: block; width: auto; margin: 0 0 16px !important; }
  html body.kanakku-skin #pageContent[data-kw="dashboard"] > div[style*="grid"] { gap: 16px !important; margin-bottom: 16px !important; }
}
@media (max-width: 1100px) {
  html body.kanakku-skin #pageContent[data-kw="dashboard"] #dashSales > div:nth-child(2) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  html body.kanakku-skin #pageContent[data-kw="dashboard"] #dashSales > div:nth-child(5) { align-items: start; }
}
/* build 4, phones: the shortcut tiles stack icon over text so the names are not cut ("Add Custo...") */
@media (max-width: 768px) {
  html body.kanakku-skin #pageContent[data-kw="dashboard"] .portal-dashboard-actions .portal-quick-action:not(:disabled) {
    grid-template-columns: 1fr; row-gap: 6px; padding: 12px !important; text-align: left;
  }
  html body.kanakku-skin #pageContent[data-kw="dashboard"] .portal-quick-action > span:first-child { grid-row: 1; width: 36px; height: 36px; font-size: 17px; }
  html body.kanakku-skin #pageContent[data-kw="dashboard"] .portal-quick-action > * { min-width: 0; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
  html body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateScheduleAlert .card-body,
  html body.kanakku-skin #pageContent[data-kw="dashboard"] #duplicateCustomerAlert .card-body { flex-wrap: wrap !important; }
}
@media (max-width: 768px) {
  html body.kanakku-skin #pageContent[data-kw="dashboard"] #dashSales > div:nth-child(2) > div > div:first-child { font-size: 18px !important; white-space: nowrap; }
}

/* =====================================================================
   BUILD 6 - S2 polish (shared pieces)
   ===================================================================== */
/* a. phones: the toolbar buttons live in one "More" menu */
body.kanakku-skin #pageContent .kw-barmore { position: relative; display: inline-block; }
body.kanakku-skin #pageContent .kw-barmore .kw-barmore-panel { display: none; position: absolute; left: 0; top: calc(100% + 4px); min-width: 200px; z-index: 30; padding: 6px; flex-direction: column; gap: 4px; }
body.kanakku-skin #pageContent .kw-barmore.kw-open .kw-barmore-panel { display: flex; }
body.kanakku-skin #pageContent .kw-barmore .kw-barmore-panel > .btn, body.kanakku-skin #pageContent .kw-barmore .kw-barmore-panel > button { width: 100%; justify-content: flex-start; margin: 0 !important; }
/* b. iconsax in front of card titles; the emoji the portal wrote stays in the text but hidden */
body.kanakku-skin #pageContent .kw-emoji { display: none !important; }
body.kanakku-skin #pageContent .kw-tico { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; margin-right: 8px; vertical-align: middle; font-size: 15px; background: var(--kw-purple-soft, #F1EBFF); color: var(--kw-purple, #7539FF); }
body.kanakku-skin #pageContent .card-header h3 { display: flex; align-items: center; }
/* c. Notifications: Kanakku notification rows */
body.kanakku-skin #pageContent[data-kw="notifications"] #notificationsBody { padding: 0 !important; }
body.kanakku-skin #pageContent[data-kw="notifications"] #notificationsBody > div { gap: 0 !important; }
body.kanakku-skin #pageContent[data-kw="notifications"] [data-kw-nrow] {
  background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--kw-line) !important; border-radius: 0 !important; margin: 0 !important; padding: 14px 20px !important; gap: 14px !important; align-items: center;
}
body.kanakku-skin #pageContent[data-kw="notifications"] [data-kw-nrow]:hover { background: var(--kw-panel) !important; }
body.kanakku-skin #pageContent[data-kw="notifications"] [data-kw-nicon] { position: relative; width: 42px; height: 42px; border-radius: 50%; flex: 0 0 42px; font-size: 0 !important; display: flex; align-items: center; justify-content: center; }
body.kanakku-skin #pageContent[data-kw="notifications"] [data-kw-nicon] .kw-tico { margin: 0; width: auto; height: auto; background: transparent; font-size: 18px; }
body.kanakku-skin #pageContent[data-kw="notifications"] [data-kw-ntone="danger"] [data-kw-nicon] { background: #FDECEC; color: var(--kw-red); }
body.kanakku-skin #pageContent[data-kw="notifications"] [data-kw-ntone="danger"] [data-kw-nicon] .kw-tico { color: var(--kw-red); }
body.kanakku-skin #pageContent[data-kw="notifications"] [data-kw-ntone="money"] [data-kw-nicon] { background: #FEF3DD; }
body.kanakku-skin #pageContent[data-kw="notifications"] [data-kw-ntone="money"] [data-kw-nicon] .kw-tico { color: #C98A06; }
body.kanakku-skin #pageContent[data-kw="notifications"] [data-kw-ntone="warning"] [data-kw-nicon] { background: #FEF3DD; }
body.kanakku-skin #pageContent[data-kw="notifications"] [data-kw-ntone="warning"] [data-kw-nicon] .kw-tico { color: #C98A06; }
body.kanakku-skin #pageContent[data-kw="notifications"] [data-kw-ntone="info"] [data-kw-nicon] { background: #E6F7FB; }
body.kanakku-skin #pageContent[data-kw="notifications"] [data-kw-ntone="info"] [data-kw-nicon] .kw-tico { color: var(--kw-blue); }
body.kanakku-skin #pageContent[data-kw="notifications"] [data-kw-ntone="primary"] [data-kw-nicon] { background: #F1EBFF; }
body.kanakku-skin #pageContent[data-kw="notifications"] [data-kw-ntone="primary"] [data-kw-nicon] .kw-tico { color: var(--kw-purple); }
body.kanakku-skin #pageContent[data-kw="notifications"] [data-kw-nrow] > div:nth-child(2) > div:first-child { font-size: 14px !important; font-weight: 600 !important; color: var(--kw-ink); margin-bottom: 2px !important; }
body.kanakku-skin #pageContent[data-kw="notifications"] [data-kw-nrow] > div:nth-child(2) > div:last-child { font-size: 13px !important; color: var(--kw-muted) !important; }
body.kanakku-skin #pageContent[data-kw="notifications"] [data-kw-nrow] .btn { height: 32px; padding: 0 12px; font-size: 13px; }
/* d. Customer 360 pop-up as Kanakku customer details: profile title, summary tiles, tabs */
body.kanakku-skin .modal-overlay.active > .modal.kw-c360 { width: min(96vw, 1180px) !important; max-width: 1180px !important; }
body.kanakku-skin .modal.kw-c360 .modal-header h3 { display: flex; align-items: center; gap: 12px; font-size: 18px; }
body.kanakku-skin .modal.kw-c360 .kw-c360-av { width: 40px; height: 40px; border-radius: 50%; background: var(--kw-purple-soft, #F1EBFF); color: var(--kw-purple, #7539FF); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
body.kanakku-skin .modal.kw-c360 .modal-body > div[style*="minmax(160px"] { gap: 12px !important; margin-bottom: 16px; }
body.kanakku-skin .modal.kw-c360 .modal-body > div[style*="minmax(160px"] > div { background: var(--kw-panel, #F7F8F9) !important; border: 1px solid var(--kw-line, #E2E4E6) !important; border-radius: 10px !important; padding: 14px 16px !important; }
body.kanakku-skin .modal.kw-c360 .modal-body > div[style*="minmax(160px"] > div > div:first-child { font-size: 18px !important; font-weight: 700 !important; color: var(--kw-ink, #051321) !important; }
body.kanakku-skin .modal.kw-c360 .modal-body > div[style*="minmax(160px"] > div > div:not(:first-child) { font-size: 12px !important; font-weight: 400 !important; color: var(--kw-muted, #5D6772) !important; }
body.kanakku-skin .modal.kw-c360 .modal-body > div[style*="minmax(160px"] { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important; }
body.kanakku-skin .modal.kw-c360 .modal-body > div[style*="minmax(240px"] { gap: 12px !important; margin-bottom: 16px; }
body.kanakku-skin .modal.kw-c360 .modal-body > div[style*="minmax(240px"] > div { background: #fff !important; border: 1px solid var(--kw-line, #E2E4E6) !important; border-radius: 10px !important; padding: 14px 16px !important; }
body.kanakku-skin .modal.kw-c360 .kw-c360-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--kw-line, #E2E4E6); margin: 4px 0 16px; padding-bottom: 0; }
body.kanakku-skin .modal.kw-c360 .kw-c360-tab { display: inline-flex !important; align-items: center; gap: 6px; height: 38px !important; min-height: 0 !important; padding: 0 12px !important; border: 0 !important; border-bottom: 2px solid transparent !important; background: transparent !important; box-shadow: none !important; color: var(--kw-muted, #5D6772) !important; font-size: 13.5px !important; font-weight: 500 !important; cursor: pointer; margin: 0 0 -1px !important; border-radius: 0 !important; }
body.kanakku-skin .modal.kw-c360 .kw-c360-tab b { font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; border-radius: 9px; background: var(--kw-panel, #F7F8F9); color: var(--kw-ink-2, #45505C); text-align: center; }
body.kanakku-skin .modal.kw-c360 .kw-c360-tab:hover { color: var(--kw-ink, #051321) !important; }
body.kanakku-skin .modal.kw-c360 .kw-c360-tab.active { color: var(--kw-purple, #7539FF) !important; border-bottom-color: var(--kw-purple, #7539FF) !important; }
body.kanakku-skin .modal.kw-c360 .kw-c360-tab.active b { background: var(--kw-purple-soft, #F1EBFF); color: var(--kw-purple, #7539FF); }
body.kanakku-skin .modal.kw-c360 .kw-c360-pane { display: none; }
body.kanakku-skin .modal.kw-c360 .kw-c360-pane.active { display: block; }
body.kanakku-skin .modal.kw-c360 .kw-c360-pane > h4 { display: none; }
body.kanakku-skin .modal.kw-c360 .kw-c360-pane > div[style*="max-height"] { max-height: 360px !important; border: 1px solid var(--kw-line, #E2E4E6) !important; border-radius: 10px !important; }
body.kanakku-skin .modal.kw-c360 .kw-c360-pane table { font-size: 13px !important; }
body.kanakku-skin .modal.kw-c360 .kw-c360-pane > p { padding: 28px 16px; text-align: center; color: var(--kw-muted); border: 1px dashed var(--kw-line, #E2E4E6); border-radius: 10px; }
/* e. AMC Follow-ups: the eight counters in two compact rows, nothing hidden */
body.kanakku-skin #pageContent[data-kw="amc-followups"] #amcStats { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 12px !important; }
body.kanakku-skin #pageContent[data-kw="amc-followups"] #amcStats > .stat-card { padding: 12px 16px !important; min-height: 0 !important; }
body.kanakku-skin #pageContent[data-kw="amc-followups"] #amcStats > .stat-card[data-kw-tone]::after { width: 32px; height: 32px; font-size: 15px; }
body.kanakku-skin #pageContent[data-kw="amc-followups"] #amcStats > .stat-card .stat-value { font-size: 18px !important; }
body.kanakku-skin #pageContent[data-kw="amc-followups"] #amcInsights .stats-grid { gap: 12px !important; }
body.kanakku-skin #pageContent[data-kw="amc-followups"] #amcInsights .stats-grid > .stat-card { padding: 12px 16px !important; }
@media (max-width: 768px) { body.kanakku-skin #pageContent[data-kw="amc-followups"] #amcStats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
/* Dark */
html body.kanakku-skin.kanakku-dark #pageContent .kw-tico { background: rgba(117,57,255,.2); color: #C9B8FF; }
html body.kanakku-skin.kanakku-dark #pageContent[data-kw="notifications"] [data-kw-nicon] { background: rgba(255,255,255,.06) !important; }
html body.kanakku-skin.kanakku-dark .modal.kw-c360 .modal-body > div > div { background: var(--kw-panel) !important; border-color: var(--kw-line) !important; }
html body.kanakku-skin.kanakku-dark .modal.kw-c360 .kw-c360-tab.active b { background: rgba(117,57,255,.2); color: #C9B8FF; }
body.kanakku-skin #pageContent .kw-barmore .kw-more-menu { left: auto; right: 0; }

/* ---------------------------------------------------------------- B5 (build 7). a "search bar" that is really a form
   (Inventory's add-item row, CRM's new-lead row - four or more typing boxes, marked data-kw-form by the script):
   a Kanakku form card - a grid of fields, buttons in their own row - instead of one long toolbar row.   */
body.kanakku-skin #pageContent[data-kw] .search-bar[data-kw-form] {
  display: grid !important; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 12px; align-items: center;
  background: #fff !important; border: 1px solid var(--kw-line) !important; border-radius: 10px !important; box-shadow: var(--kw-shadow) !important;
  padding: 16px !important; margin: 0 0 16px !important;
}
body.kanakku-skin #pageContent[data-kw] .search-bar[data-kw-form][data-kw-form] > input,
body.kanakku-skin #pageContent[data-kw] .search-bar[data-kw-form][data-kw-form] > select,
body.kanakku-skin #pageContent[data-kw] .search-bar[data-kw-form][data-kw-form] > textarea {
  width: 100% !important; max-width: none !important; min-width: 0 !important; flex: none !important; margin: 0 !important;
  height: 34px; min-height: 34px !important; padding: 6px 10px !important; font-size: 13px !important; background-image: none !important;
}
body.kanakku-skin #pageContent[data-kw] .search-bar[data-kw-form][data-kw-form] > textarea { height: auto; min-height: 68px !important; grid-column: 1 / -1; }
body.kanakku-skin #pageContent[data-kw] .search-bar[data-kw-form][data-kw-form] > input[type="number"] { -moz-appearance: textfield; }
body.kanakku-skin #pageContent[data-kw] .search-bar[data-kw-form][data-kw-form] > label { margin: 0; font-size: 13px; font-weight: 500; color: var(--kw-ink2); }
body.kanakku-skin #pageContent[data-kw] .search-bar[data-kw-form][data-kw-form] > .btn,
body.kanakku-skin #pageContent[data-kw] .search-bar[data-kw-form][data-kw-form] > button { justify-self: start; width: auto; height: 34px; min-height: 34px; padding: 0 14px; font-size: 13px; white-space: nowrap; }
body.kanakku-skin #pageContent[data-kw] .search-bar[data-kw-form][data-kw-form] > .kt-bar,
body.kanakku-skin #pageContent[data-kw] .search-bar[data-kw-form][data-kw-form] > .kw-barmore { grid-column: 1 / -1; margin: 4px 0 0 !important; }
html body.kanakku-skin.kanakku-dark #pageContent[data-kw] .search-bar[data-kw-form] { background: var(--k-white, #131A2A) !important; border-color: var(--kw-line) !important; }
@media (max-width: 768px) {
  body.kanakku-skin #pageContent[data-kw] .search-bar[data-kw-form] { grid-template-columns: 1fr 1fr; padding: 12px !important; gap: 8px 10px; }
  body.kanakku-skin #pageContent[data-kw] .search-bar[data-kw-form][data-kw-form] > .btn,
  body.kanakku-skin #pageContent[data-kw] .search-bar[data-kw-form][data-kw-form] > button { width: 100%; justify-self: stretch; }
}
@media (max-width: 480px) {
  body.kanakku-skin #pageContent[data-kw] .search-bar[data-kw-form] { grid-template-columns: 1fr; }
}
/* B5: number cards drawn inside a card (Company Sales' profit block) have less room - at laptop width 6 across is too tight */
@media (min-width: 1100px) and (max-width: 1499.98px) {
  body.kanakku-skin #pageContent[data-kw] .card-body .stats-grid[data-kw-cols="6"] { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  body.kanakku-skin #pageContent[data-kw] .card-body .stats-grid[data-kw-cols="5"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
