:root {
    --ktc-primary: #2563eb;
    --ktc-primary-hover: #1d4ed8;
    --ktc-sidebar: #111827;
    --ktc-sidebar-hover: #1c2738;
    --ktc-sidebar-active: #263449;
    --ktc-page: #f4f6f8;
    --ktc-border: #dfe3e8;
    --ktc-text: #172033;
    --ktc-muted: #667085;
}

html, body { background: var(--ktc-page); color: var(--ktc-text); }
.thetop { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; background: var(--ktc-page); }

/* POS Lite sidebar */
.side-bar {
    width: 16.5rem !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: var(--ktc-sidebar) !important;
    border-right: 1px solid #263244 !important;
    box-shadow: none !important;
}
.ktc-sidebar-brand {
    min-height: 72px;
    padding: 10px 16px;
    justify-content: flex-start !important;
    gap: 11px;
    background: var(--ktc-sidebar) !important;
    border-color: #263244 !important;
}
.ktc-sidebar-brand__logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    padding: 4px;
    border-radius: 6px;
    background: #fff;
}
.ktc-sidebar-brand__fallback { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 8px; background: #263449; color: #fff; font-size: 18px; font-weight: 700; }
.ktc-sidebar-brand__business { min-width: 0; color: #fff; line-height: 1.2; }
.ktc-sidebar-brand__business strong { display: block; overflow: hidden; color: #fff; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.ktc-sidebar-brand__business span { display: block; margin-top: 3px; color: #8fa0b8; font-size: 10px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.side-bar > .tw-px-3 { border-color: #263244 !important; background: var(--ktc-sidebar); }
.side-bar > .tw-px-3 > div { border-color: #344054 !important; background: #1c2738 !important; }
.side-bar #sidebar-search { color: #e5e7eb !important; }
.side-bar #sidebar-search::placeholder { color: #7f8da3 !important; }
#side-bar { min-height: 0 !important; overflow-x: hidden !important; overflow-y: auto !important; overscroll-behavior: contain; padding: 12px 11px 20px !important; border: 0 !important; scrollbar-width: thin; scrollbar-color: #344054 transparent; }
#side-bar::-webkit-scrollbar { width: 5px; }
#side-bar::-webkit-scrollbar-thumb { border-radius: 10px; background: #344054; }
#side-bar a.theme-sidebar-hover {
    min-height: 41px;
    padding: 9px 12px !important;
    border-radius: 6px !important;
    color: #b8c2d1 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}
#side-bar a.theme-sidebar-hover:hover { background: var(--ktc-sidebar-hover) !important; color: #fff !important; }
#side-bar a.theme-sidebar-active { background: var(--ktc-sidebar-active) !important; color: #fff !important; box-shadow: inset 3px 0 0 var(--ktc-primary); }
#side-bar a svg, #side-bar a i { color: #8fa0b8 !important; }
#side-bar a:hover svg, #side-bar a:hover i, #side-bar a.theme-sidebar-active svg, #side-bar a.theme-sidebar-active i { color: #fff !important; }
#side-bar a.theme-sidebar-child-hover { color: #b8c2d1 !important; text-decoration: none !important; }
#side-bar a.theme-sidebar-child-hover:hover, #side-bar a.theme-sidebar-child-active { color: #fff !important; }
#sidebar-no-results { border-color: #263244 !important; color: #8fa0b8 !important; }

/* POS Lite white top bar */
.ktc-main-header {
    min-height: 72px !important;
    height: 72px !important;
    background: #fff !important;
    border-color: var(--ktc-border) !important;
    box-shadow: none !important;
}
.ktc-main-header .theme-btn-bg { background: #fff !important; border: 1px solid #d0d5dd !important; color: #344054 !important; box-shadow: none !important; }
.ktc-main-header .theme-btn-bg:hover { background: #f9fafb !important; color: #101828 !important; }
.ktc-main-header .theme-btn-bg svg { color: currentColor !important; }
.ktc-main-header a[href*="/pos/create"] { background: var(--ktc-primary) !important; border-color: var(--ktc-primary) !important; color: #fff !important; }
.ktc-main-header a[href*="/pos/create"]:hover { background: var(--ktc-primary-hover) !important; }

#scrollable-container { background: var(--ktc-page); }
.content-wrapper, .content { background: var(--ktc-page) !important; }
.box, .card, .tw-bg-white { border-color: var(--ktc-border); }
.box { border-radius: 8px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.btn-primary, .tw-dw-btn-primary { background-color: #1e293b !important; border-color: #1e293b !important; color: #fff !important; box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }
.btn-primary:hover, .tw-dw-btn-primary:hover { background-color: #0f172a !important; border-color: #0f172a !important; color: #fff !important; }
.btn-primary:focus, .btn-primary:active,
.tw-dw-btn-primary:focus, .tw-dw-btn-primary:active { background-color: #0f172a !important; border-color: #0f172a !important; color: #fff !important; }
.ktc-dark-action { background: #1e293b !important; border: 1px solid #1e293b !important; color: #fff !important; }
.ktc-dark-action:hover, .ktc-dark-action:focus, .ktc-dark-action:active { background: #0f172a !important; border-color: #0f172a !important; color: #fff !important; }
a { text-decoration: none; }

.ktc-powered-footer { margin: auto 24px 16px; padding-top: 13px; border-top: 1px solid var(--ktc-border); color: var(--ktc-muted); font-size: 12px; }
.ktc-powered-footer strong { color: #344054; font-weight: 650; }

/* Company branding is intentionally limited to public authentication pages. */
.ktc-auth-logo-wrap { width: 190px !important; height: 62px !important; padding: 0 !important; overflow: visible !important; border: 0; background: transparent; box-shadow: none; }
.ktc-auth-logo { display: block; width: 100% !important; height: 100% !important; max-width: 100% !important; object-fit: contain !important; opacity: 1 !important; }
.ktc-auth-header-left, .ktc-auth-header-right { z-index: 30; }
.ktc-auth-powered { position: fixed; right: 22px; bottom: 16px; z-index: 20; color: rgba(255,255,255,.78); font-size: 12px; }
.ktc-auth-powered strong { color: #fff !important; }
html:has(body.ktc-auth-page),
body.ktc-auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    overflow-x: hidden;
    background: #fff !important;
}
.ktc-auth-page {
    color: #172033;
}
.ktc-auth-page .container-fluid,
.ktc-auth-page .eq-height-row,
.ktc-auth-page .right-col {
    min-height: 100vh;
    min-height: 100dvh;
    background: #fff !important;
}
.ktc-auth-page .row {
    margin-left: 0;
    margin-right: 0;
}
.ktc-auth-page .container-fluid {
    padding-left: 0;
    padding-right: 0;
}
.ktc-auth-page:not(.ktc-public-home) .ktc-auth-header-left a,
.ktc-auth-page:not(.ktc-public-home) .ktc-auth-header-right a { color: #344054 !important; }
.ktc-auth-page:not(.ktc-public-home) .ktc-auth-header-right .tw-border-white { border-color: #cbd5e1 !important; background: #f8fafc; }
.ktc-auth-page:not(.ktc-public-home) .tw-dw-dropdown summary { color: #111827 !important; }
.ktc-auth-page:not(.ktc-public-home) .ktc-auth-powered { color: #667085; }
.ktc-auth-page:not(.ktc-public-home) .ktc-auth-powered strong { color: #344054 !important; }
.ktc-auth-page .box, .ktc-auth-page .tw-bg-white { border-color: #dfe3e8 !important; box-shadow: 0 16px 40px rgba(2, 6, 23, .18) !important; }
.ktc-auth-page .form-control { border-color: #d0d5dd; border-radius: 6px; box-shadow: none; }
.ktc-auth-page .form-control:focus { border-color: var(--ktc-primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.ktc-auth-page .btn-primary, .ktc-auth-page button[type="submit"] { border-color: var(--ktc-primary) !important; background: var(--ktc-primary) !important; color: #fff !important; }
.ktc-auth-page .btn-primary:hover, .ktc-auth-page button[type="submit"]:hover { border-color: var(--ktc-primary-hover) !important; background: var(--ktc-primary-hover) !important; }
.ktc-home-hero { display: flex; min-height: 100vh; padding: 118px 24px 48px; align-items: center; justify-content: center; }
.ktc-home-original { width: min(760px, 100%); text-align: center; }
.ktc-home-original h1 { display: inline-block; margin: 0; padding: 12px 24px; border: 1px solid #e2e8f0; border-radius: 12px; color: #0f172a; background: #fff; box-shadow: 0 18px 42px rgba(15,23,42,.10); font-size: clamp(42px, 7vw, 72px); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; }
.ktc-home-original p { width: fit-content; max-width: 100%; margin: 12px auto 0; padding: 9px 16px; border: 1px solid #dbeafe; border-radius: 8px; color: #1d4ed8; background: #eff6ff; box-shadow: 0 10px 24px rgba(37,99,235,.08); font-size: 17px; line-height: 1.5; }
.ktc-public-home .ktc-auth-header-left a,
.ktc-public-home .ktc-auth-header-right a { color: #344054 !important; }
.ktc-public-home .ktc-auth-header-right .tw-border-white { border-color: #cbd5e1 !important; background: #f8fafc; }
.ktc-public-home .tw-dw-dropdown summary { color: #111827 !important; }
.ktc-public-home,
.ktc-public-home > .container-fluid,
.ktc-public-home > .container-fluid > .row,
.ktc-public-home .right-col,
.ktc-public-home .ktc-home-hero { background: #fff !important; }
.ktc-public-home > .container-fluid,
.ktc-public-home > .container-fluid > .row,
.ktc-public-home .right-col { min-height: 100vh; min-height: 100dvh; }
.ktc-public-home { overflow-x: hidden; }
.ktc-home-shell { display: grid; width: min(1160px, 100%); grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr); align-items: center; gap: 72px; }
.ktc-home-copy { max-width: 520px; }
.ktc-home-eyebrow { display: block; margin-bottom: 16px; color: #7dd3fc; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ktc-home-copy h1 { margin: 0; color: #fff; font-size: clamp(44px, 5vw, 66px); font-weight: 750; line-height: 1.06; letter-spacing: -.045em; }
.ktc-home-copy > p { margin: 22px 0 0; color: #cbd5e1; font-size: 17px; line-height: 1.7; }
.ktc-home-actions { display: flex; margin-top: 30px; gap: 12px; }
.ktc-home-actions a { min-width: 135px; padding: 12px 22px; border: 1px solid transparent; border-radius: 8px; font-weight: 650; text-decoration: none !important; transition: .18s ease; }
.ktc-home-primary { color: #fff !important; background: var(--ktc-primary); box-shadow: 0 8px 20px rgba(37,99,235,.25); }
.ktc-home-primary:hover { background: var(--ktc-primary-hover); transform: translateY(-1px); }
.ktc-home-secondary { border-color: rgba(255,255,255,.32) !important; color: #fff !important; background: rgba(255,255,255,.08); }
.ktc-home-secondary:hover { background: rgba(255,255,255,.15); }
.ktc-home-benefits { display: flex; margin-top: 28px; flex-wrap: wrap; gap: 10px 18px; color: #b9c7d8; font-size: 12px; }
.ktc-home-benefits i { margin-right: 5px; color: #38bdf8; }
.ktc-home-preview { padding: 22px; border: 1px solid #dfe3e8; border-radius: 14px; background: #f8fafc; box-shadow: 0 24px 55px rgba(2,6,23,.28); color: #172033; }
.ktc-home-preview-head { display: flex; padding: 2px 2px 18px; align-items: center; justify-content: space-between; }
.ktc-home-preview-head small, .ktc-home-preview-head strong { display: block; }
.ktc-home-preview-head small { margin-bottom: 3px; color: #667085; font-size: 11px; }
.ktc-home-preview-head strong { font-size: 16px; }
.ktc-home-preview-head > span { padding: 5px 9px; border-radius: 20px; color: #027a48; background: #ecfdf3; font-size: 10px; font-weight: 700; }
.ktc-home-preview-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ktc-home-preview-stats article { position: relative; padding: 17px; border: 1px solid #e4e7ec; border-radius: 9px; background: #fff; }
.ktc-home-preview-stats i { position: absolute; top: 16px; right: 16px; color: #2563eb; }
.ktc-home-preview-stats small, .ktc-home-preview-stats strong { display: block; }
.ktc-home-preview-stats small { color: #667085; font-size: 11px; }
.ktc-home-preview-stats strong { margin-top: 7px; color: #101828; font-size: 18px; }
.ktc-home-chart { margin-top: 12px; padding: 17px; border: 1px solid #e4e7ec; border-radius: 9px; background: #fff; }
.ktc-home-chart-title { display: flex; align-items: center; justify-content: space-between; color: #344054; font-size: 12px; font-weight: 650; }
.ktc-home-chart-title small { color: #98a2b3; font-weight: 500; }
.ktc-home-bars { display: flex; height: 105px; margin-top: 18px; align-items: flex-end; gap: 12px; }
.ktc-home-bars i { flex: 1; min-height: 18px; border-radius: 4px 4px 1px 1px; background: #2563eb; opacity: .82; }

/* Dashboard summary remains clean and neutral; icon accents retain their status colors. */
.ktc-dashboard-summary,
.ktc-dashboard-summary .theme-header-bg { background: #fff !important; }
.ktc-dashboard-summary { border-bottom: 1px solid var(--ktc-border); }

@media (max-width: 1023px) {
    .side-bar { width: min(16.5rem, 86vw) !important; }
    .ktc-main-header { min-height: 64px !important; height: auto !important; }
}

@media (max-width: 767px) {
    .ktc-auth-page .right-col { padding-top: 118px !important; padding-right: 14px !important; padding-left: 14px !important; }
    .ktc-auth-header-left { top: 12px !important; left: 14px !important; }
    .ktc-auth-header-right { top: 22px !important; right: 14px !important; gap: 8px !important; }
    .ktc-auth-logo-wrap { width: 128px !important; height: 46px !important; padding: 0 !important; }
    .ktc-auth-header-right .tw-w-24 { width: auto !important; min-width: 70px; height: 36px !important; padding: 0 12px; }
    .ktc-auth-header-right a { font-size: 12px !important; white-space: nowrap; }
    .ktc-auth-powered { position: static; padding: 10px 16px 18px; text-align: center; }
    .ktc-home-hero { min-height: 100svh; padding: 100px 16px 32px; }
    .ktc-home-original h1 { display: block; padding: 11px 14px; font-size: clamp(34px, 12vw, 48px); overflow-wrap: anywhere; }
    .ktc-home-original p { font-size: 14px; }
}

@media (max-width: 390px) {
    .ktc-auth-logo-wrap { width: 108px !important; height: 42px !important; }
    .ktc-auth-header-right { right: 10px !important; }
    .ktc-auth-header-right .tw-w-24 { min-width: 62px; padding: 0 9px; }
}

@media print {
    .ktc-powered-footer { display: none !important; }
}
