: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;
    --ktc-surface: #ffffff;
    --ktc-primary-soft: #eff6ff;
    --ktc-radius: 10px;
    --ktc-shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
    --ktc-shadow-md: 0 12px 28px rgba(15, 23, 42, .09);
}

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: var(--ktc-primary) !important; border-color: var(--ktc-primary) !important; color: #fff !important; box-shadow: 0 1px 2px rgba(37, 99, 235, .12); }
.btn-primary:hover, .tw-dw-btn-primary:hover { background-color: var(--ktc-primary-hover) !important; border-color: var(--ktc-primary-hover) !important; color: #fff !important; }
.btn-primary:focus, .btn-primary:active,
.tw-dw-btn-primary:focus, .tw-dw-btn-primary:active { background-color: var(--ktc-primary-hover) !important; border-color: var(--ktc-primary-hover) !important; color: #fff !important; }
.ktc-dark-action { background: var(--ktc-primary) !important; border: 1px solid var(--ktc-primary) !important; color: #fff !important; }
.ktc-dark-action:hover, .ktc-dark-action:focus, .ktc-dark-action:active { background: var(--ktc-primary-hover) !important; border-color: var(--ktc-primary-hover) !important; color: #fff !important; }

/* Keep button labels and icons readable in every state. Bootstrap, DaisyUI
   and module styles otherwise compete for the foreground colour. */
.btn:not(.btn-link),
.btn:not(.btn-link) > *,
[class*="tw-dw-btn"]:not(.tw-dw-btn-link),
[class*="tw-dw-btn"]:not(.tw-dw-btn-link) > * {
    text-shadow: none !important;
}
.btn-primary, .btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.btn-success, .btn-success:hover, .btn-success:focus, .btn-success:active,
.btn-info, .btn-info:hover, .btn-info:focus, .btn-info:active,
.btn-danger, .btn-danger:hover, .btn-danger:focus, .btn-danger:active,
.btn-warning, .btn-warning:hover, .btn-warning:focus, .btn-warning:active,
.tw-dw-btn-primary, .tw-dw-btn-primary:hover, .tw-dw-btn-primary:focus,
.tw-dw-btn-success, .tw-dw-btn-success:hover, .tw-dw-btn-success:focus,
.tw-dw-btn-info, .tw-dw-btn-info:hover, .tw-dw-btn-info:focus,
.tw-dw-btn-error, .tw-dw-btn-error:hover, .tw-dw-btn-error:focus,
.tw-dw-btn-warning, .tw-dw-btn-warning:hover, .tw-dw-btn-warning:focus {
    color: #fff !important;
}
.btn-primary > *, .btn-success > *, .btn-info > *, .btn-danger > *, .btn-warning > *,
.tw-dw-btn-primary > *, .tw-dw-btn-success > *, .tw-dw-btn-info > *,
.tw-dw-btn-error > *, .tw-dw-btn-warning > * { color: inherit !important; }

/* Action menus use an outlined DaisyUI info button. Keep its label blue on
   the light background, then switch to white only when it is interactive. */
.tw-dw-btn-outline.tw-dw-btn-info,
.tw-dw-btn-outline.tw-dw-btn-info > * {
    border-color: #0284c7 !important;
    background-color: transparent !important;
    color: #0369a1 !important;
}
.tw-dw-btn-outline.tw-dw-btn-info:hover,
.tw-dw-btn-outline.tw-dw-btn-info:focus,
.tw-dw-btn-outline.tw-dw-btn-info:active,
.open > .tw-dw-btn-outline.tw-dw-btn-info.dropdown-toggle {
    border-color: #0369a1 !important;
    background-color: #0284c7 !important;
    color: #fff !important;
}
.tw-dw-btn-outline.tw-dw-btn-info:hover > *,
.tw-dw-btn-outline.tw-dw-btn-info:focus > *,
.tw-dw-btn-outline.tw-dw-btn-info:active > *,
.open > .tw-dw-btn-outline.tw-dw-btn-info.dropdown-toggle > * { color: inherit !important; }
.btn-success:hover, .btn-success:focus, .btn-success:active { background-color: #059669 !important; border-color: #047857 !important; }
.btn-info:hover, .btn-info:focus, .btn-info:active { background-color: #0284c7 !important; border-color: #0369a1 !important; }
.btn-danger:hover, .btn-danger:focus, .btn-danger:active { background-color: #dc2626 !important; border-color: #b91c1c !important; }
.btn-warning { color: #fff !important; }
.btn-warning:hover, .btn-warning:focus, .btn-warning:active { background-color: #d97706 !important; border-color: #b45309 !important; color: #fff !important; }
.btn-default { border-color: #d0d5dd !important; background: #fff !important; color: #344054 !important; }
.btn-default:hover, .btn-default:focus, .btn-default:active,
.btn-default.active, .open > .dropdown-toggle.btn-default {
    border-color: #98a2b3 !important; background: #f2f4f7 !important; color: #101828 !important;
}
.btn-default > *, .btn-default:hover > *, .btn-default:focus > *, .btn-default:active > * { color: inherit !important; }
.btn[disabled], .btn.disabled, [class*="tw-dw-btn"][disabled] { opacity: .58; }

/* Select2 Customization */
.select2-container { max-width: 100%; }
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    min-height: 38px !important; border: 1px solid #d0d5dd !important;
    border-radius: 6px !important; background: #fff !important; box-shadow: none !important;
}
.select2-container--default .select2-selection--single { height: 38px !important; }
.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-inline: 12px 34px !important; color: #344054 !important; line-height: 36px !important;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: #98a2b3 !important; }
.select2-container--default .select2-selection--single .select2-selection__arrow { top: 1px !important; width: 32px !important; height: 36px !important; }
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex !important; min-height: 36px; margin: 0 !important; padding: 3px 7px !important;
    align-items: center; flex-wrap: wrap; gap: 4px; color: #344054 !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin: 0 !important; padding: 3px 8px !important; border: 1px solid #bfdbfe !important;
    border-radius: 4px !important; background: #eff6ff !important; color: #1e3a8a !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove { margin-inline-end: 5px; color: #64748b !important; }
.select2-container--focus .select2-selection--single,
.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--multiple { border-color: var(--ktc-primary) !important; box-shadow: 0 0 0 3px rgba(37, 99, 235, .14) !important; }
.select2-dropdown {
    z-index: 1060 !important; overflow: hidden; border: 1px solid #d0d5dd !important;
    border-radius: 6px !important; background: #fff !important; box-shadow: 0 10px 28px rgba(15, 23, 42, .14) !important;
}
.select2-search--dropdown { padding: 8px !important; background: #fff !important; }
.select2-search--dropdown .select2-search__field {
    width: 100% !important; height: 36px !important; padding: 7px 10px !important;
    border: 1px solid #98a2b3 !important; border-radius: 5px !important;
    outline: none !important; background: #fff !important; color: #101828 !important;
}
.select2-search--dropdown .select2-search__field:focus {
    border-color: var(--ktc-primary) !important; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12) !important;
}
.select2-results { background: #fff !important; }
.select2-results__options { padding: 4px !important; }
.select2-container--default .select2-results__option {
    min-height: 36px; padding: 8px 10px !important; border-radius: 4px;
    background: #fff !important; color: #344054 !important; line-height: 1.35;
}
.select2-container--default .select2-results__option[aria-disabled="true"] { color: #98a2b3 !important; }
.select2-container--default .select2-results__option[aria-selected="true"] { background: #eff6ff !important; color: #1d4ed8 !important; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background-color: var(--ktc-primary) !important; color: white !important; }
.select2-container--default.select2-container--disabled .select2-selection--single,
.select2-container--default.select2-container--disabled .select2-selection--multiple {
    border-color: #e4e7ec !important; background: #f2f4f7 !important;
}
html[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-right: 12px !important; padding-left: 34px !important; text-align: right;
}

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); }

/* Shared application polish: core, Accounting, CRM and Superadmin. */
body:not(.ktc-auth-page) { font-feature-settings: "kern"; -webkit-font-smoothing: antialiased; }
.content-header { padding: 22px 24px 10px !important; }
.content-header h1,
.content-header .tw-text-2xl,
.content-header .tw-text-xl { color: #101828; font-weight: 700 !important; letter-spacing: -.02em; }
.content-header h1 small { margin-inline-start: 7px; color: var(--ktc-muted); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.content { padding: 14px 24px 28px !important; }

.box,
.card,
.tw-dw-card {
    border: 1px solid var(--ktc-border) !important;
    border-radius: var(--ktc-radius) !important;
    background-color: var(--ktc-surface);
    box-shadow: var(--ktc-shadow-sm) !important;
}
.box { border-top: 0 !important; }
.box-header,
.card-header {
    min-height: 53px; padding: 15px 18px !important; border-bottom: 1px solid #eaecf0 !important;
    border-radius: var(--ktc-radius) var(--ktc-radius) 0 0; background: #fff;
}
.box-header .box-title,
.card-header .card-title { color: #101828; font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.box-body, .card-body { padding: 18px !important; }
.box-footer, .card-footer { padding: 14px 18px !important; border-top: 1px solid #eaecf0; background: #f9fafb; }

.form-group { margin-bottom: 17px; }
.control-label, label:not(.btn):not(.select2-selection__choice) { margin-bottom: 6px; color: #344054; font-weight: 600; }
.form-control,
.input-group-addon {
    min-height: 38px; border-color: #d0d5dd !important; color: #101828; background-color: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04) !important;
}
.form-control { border-radius: 6px; transition: border-color .16s ease, box-shadow .16s ease; }
.form-control:hover { border-color: #98a2b3 !important; }
.form-control:focus {
    border-color: var(--ktc-primary) !important; outline: 0;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .13) !important;
}
.input-group .form-control:first-child,
.input-group-addon:first-child { border-radius: 6px 0 0 6px; }
.input-group .form-control:last-child,
.input-group-addon:last-child { border-radius: 0 6px 6px 0; }
.help-block { color: var(--ktc-muted); font-size: 12px; }

.btn, [class*="tw-dw-btn"] { border-radius: 6px !important; font-weight: 600; transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.btn:not([disabled]):active, [class*="tw-dw-btn"]:not([disabled]):active { transform: translateY(1px); }
.btn-sm { border-radius: 5px !important; }

.table-responsive { border: 0 !important; border-radius: 8px; }
.table { margin-bottom: 0; color: #344054; }
.table > thead > tr > th {
    padding: 11px 12px; border-bottom: 1px solid #dfe3e8 !important; color: #475467;
    background: #f8fafc; font-size: 12px; font-weight: 700; letter-spacing: .015em;
}
.table > tbody > tr > td { padding: 11px 12px; border-top-color: #eaecf0; vertical-align: middle; }
.table-hover > tbody > tr { transition: background-color .12s ease; }
.table-hover > tbody > tr:hover { background-color: #f8fbff; }
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select { border: 1px solid #d0d5dd; border-radius: 6px; background: #fff; }
.dataTables_wrapper .dataTables_info { color: var(--ktc-muted); }

.modal-content { overflow: hidden; border: 0; border-radius: 12px; box-shadow: 0 24px 60px rgba(15, 23, 42, .22); }
.modal-header { padding: 17px 20px; border-bottom-color: #eaecf0; }
.modal-title { color: #101828; font-weight: 700; }
.modal-body { padding: 20px; }
.modal-footer { padding: 14px 20px; border-top-color: #eaecf0; background: #f9fafb; }
.pagination > li > a, .pagination > li > span { margin-inline: 2px; border-color: #d0d5dd; border-radius: 5px !important; color: #344054; }
.pagination > .active > a, .pagination > .active > span { border-color: var(--ktc-primary); background: var(--ktc-primary); color: #fff; }
.alert { border: 1px solid transparent; border-radius: 8px; box-shadow: var(--ktc-shadow-sm); }
.label { padding: .32em .6em; border-radius: 999px; font-weight: 650; }

html[dir="rtl"] .input-group .form-control:first-child,
html[dir="rtl"] .input-group-addon:first-child { border-radius: 0 6px 6px 0; }
html[dir="rtl"] .input-group .form-control:last-child,
html[dir="rtl"] .input-group-addon:last-child { border-radius: 6px 0 0 6px; }

@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) {
    .content-header { padding: 16px 14px 7px !important; }
    .content-header h1 { font-size: 20px; }
    .content { padding: 10px 12px 22px !important; }
    .box-header, .card-header { min-height: 48px; padding: 13px 14px !important; }
    .box-body, .card-body { padding: 14px !important; }
    .modal-dialog { margin: 10px; }
    .modal-body { padding: 16px; }
    .table > thead > tr > th, .table > tbody > tr > td { padding: 9px 10px; white-space: nowrap; }
    .btn { min-height: 36px; }
    .select2-container { width: 100% !important; }
    .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; }
}
