/* BD Tiles Fittings 360 - Phase 2 brand layer */
:root {
    --bdtf-primary: #0F766E;
    --bdtf-accent: #F59E0B;
    --bdtf-dark: #16302B;
    --bdtf-soft: #ECFDF5;
}

.bdtf-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    max-width: 100%;
    color: inherit;
    line-height: 1.05;
}

.bdtf-brand-symbol {
    position: relative;
    display: inline-flex;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: linear-gradient(145deg, var(--bdtf-primary), var(--bdtf-dark));
    color: #fff;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -1px;
    box-shadow: 0 8px 22px rgba(15, 118, 110, .24);
}

.bdtf-brand-symbol::after {
    content: '';
    position: absolute;
    right: 7px;
    bottom: 7px;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--bdtf-accent);
}

.bdtf-brand-symbol small {
    position: absolute;
    right: 4px;
    top: 3px;
    font-size: 7px;
    letter-spacing: 0;
}

.bdtf-brand-image {
    display: block;
    max-width: 165px;
    max-height: 58px;
    object-fit: contain;
}

.bdtf-brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.bdtf-brand-copy strong {
    color: var(--bdtf-dark);
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
}

.bdtf-brand-copy small {
    margin-top: 4px;
    color: #64748b;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .35px;
    text-transform: uppercase;
    white-space: nowrap;
}

.side-navbar .brand-big {
    min-height: 78px;
    padding: 12px 14px;
    background: #fff;
    border-bottom: 1px solid #e7eeec;
}

.side-navbar .brand-big > a {
    text-decoration: none;
}

.side-navbar .bdtf-brand-copy strong {
    font-size: 14px;
}

.side-navbar .bdtf-brand-copy small {
    display: none;
}

.side-navbar.shrink .bdtf-brand-copy {
    display: none;
}

.side-navbar.shrink .bdtf-brand-symbol {
    width: 43px;
    height: 43px;
    flex-basis: 43px;
    font-size: 16px;
}

.btn-primary,
.btn-pos,
.page .navbar .menu-btn,
nav.side-navbar ul li.active > a,
nav.side-navbar ul li a:hover,
nav.side-navbar ul li a[aria-expanded="true"] {
    background-color: var(--bdtf-primary) !important;
    border-color: var(--bdtf-primary) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--bdtf-dark) !important;
    border-color: var(--bdtf-dark) !important;
}

a,
.text-primary,
.external {
    color: var(--bdtf-primary);
}

.bdtf-settings-hero {
    padding: 22px;
    margin-bottom: 22px;
    border-radius: 14px;
    background: linear-gradient(120deg, var(--bdtf-dark), var(--bdtf-primary));
    color: #fff;
}

.bdtf-settings-hero .bdtf-brand-copy strong,
.bdtf-settings-hero .bdtf-brand-copy small {
    color: #fff;
}

.bdtf-settings-section {
    padding-top: 18px;
    margin-top: 8px;
    border-top: 1px solid #e5e7eb;
}

.bdtf-settings-section h5 {
    margin-bottom: 16px;
    color: var(--bdtf-dark);
    font-weight: 800;
}

.bdtf-current-logo {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}

.bdtf-current-logo img {
    max-width: 190px;
    max-height: 64px;
}

.bdtf-login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 14% 15%, rgba(245, 158, 11, .15), transparent 30%),
        linear-gradient(135deg, #f8fafc 0%, #ecfdf5 100%);
}

.bdtf-login-card {
    width: 100%;
    max-width: 460px;
    padding: 36px;
    border: 1px solid rgba(15, 118, 110, .12);
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 28px 70px rgba(22, 48, 43, .14);
}

.bdtf-login-card .bdtf-brand {
    justify-content: center;
    margin-bottom: 28px;
}

.bdtf-login-card .bdtf-brand-copy strong {
    font-size: 22px;
}

.bdtf-login-card .btn-primary {
    min-height: 46px;
    border-radius: 9px;
    font-weight: 700;
}

.bdtf-login-footer {
    margin-top: 22px;
    color: #64748b;
    font-size: 12px;
    text-align: center;
}

.main-footer {
    border-top: 1px solid #e7eeec;
}

@media (max-width: 767px) {
    .bdtf-brand-copy small {
        white-space: normal;
    }

    .bdtf-login-card {
        padding: 28px 22px;
    }
}

/* --------------------------------------------------------------------------
   Smart application interface – global visual system
   -------------------------------------------------------------------------- */
:root {
    --bdtf-primary-50: #ecfdf5;
    --bdtf-primary-100: #d1fae5;
    --bdtf-primary-600: #0f766e;
    --bdtf-primary-700: #0f5f59;
    --bdtf-violet: #7c3aed;
    --bdtf-blue: #2563eb;
    --bdtf-orange: #f59e0b;
    --bdtf-red: #ef4444;
    --bdtf-green: #16a34a;
    --bdtf-ink: #0f172a;
    --bdtf-muted: #64748b;
    --bdtf-line: #e2e8f0;
    --bdtf-surface: #ffffff;
    --bdtf-page: #f6f8fb;
    --bdtf-shadow-sm: 0 4px 14px rgba(15, 23, 42, .055);
    --bdtf-shadow: 0 14px 34px rgba(15, 23, 42, .085);
    --bdtf-shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);
    --bdtf-radius-sm: 9px;
    --bdtf-radius: 15px;
    --bdtf-radius-lg: 22px;
}

html { scroll-behavior: smooth; }
body {
    color: var(--bdtf-ink);
    background: var(--bdtf-page);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}
.page { background: var(--bdtf-page); }
.page > .container-fluid,
.page > section { position: relative; }

/* Header */
.page header.container-fluid {
    position: sticky;
    top: 0;
    z-index: 995;
    padding: 0;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(226, 232, 240, .9);
    box-shadow: 0 4px 20px rgba(15, 23, 42, .045);
    backdrop-filter: blur(14px);
}
.page .navbar {
    min-height: 72px;
    padding: 10px 24px;
    background: transparent !important;
}
.page .navbar .menu-btn,
.btn-pos {
    width: 42px;
    height: 42px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, var(--bdtf-primary), var(--bdtf-primary-700)) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(15, 118, 110, .22);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.page .navbar .menu-btn:hover,
.btn-pos:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(15, 118, 110, .3);
    filter: saturate(1.08);
}
.page .navbar .nav-menu > li > a,
.page .navbar .nav-menu > div > a {
    border-radius: 10px;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.page .navbar .nav-menu > li > a:hover,
.page .navbar .nav-menu > div > a:hover {
    color: var(--bdtf-primary) !important;
    background: var(--bdtf-primary-50);
    transform: translateY(-1px);
}

/* Sidebar */
nav.side-navbar {
    z-index: 1000;
    background: #fff;
    border-right: 1px solid var(--bdtf-line);
    box-shadow: 8px 0 26px rgba(15, 23, 42, .045);
}
.side-navbar .brand-big {
    min-height: 84px;
    border-bottom: 1px solid var(--bdtf-line);
}
nav.side-navbar ul { padding: 10px 10px 28px; }
nav.side-navbar ul li { margin: 3px 0; }
nav.side-navbar ul li a {
    position: relative;
    min-height: 43px;
    display: flex;
    align-items: center;
    padding: 10px 13px;
    border-radius: 11px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -.05px;
    background: transparent !important;
    border: 1px solid transparent !important;
    transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}
nav.side-navbar ul li a i {
    min-width: 26px;
    color: #7c3aed;
    font-size: 17px;
    transition: color .2s ease, transform .2s ease;
}
nav.side-navbar ul li a:hover {
    color: var(--bdtf-primary) !important;
    background: linear-gradient(90deg, rgba(15,118,110,.11), rgba(15,118,110,.035)) !important;
    border-color: rgba(15, 118, 110, .10) !important;
    transform: translateX(3px);
    box-shadow: none;
}
nav.side-navbar ul li a:hover i { color: var(--bdtf-primary); transform: scale(1.08); }
nav.side-navbar ul li.active > a,
nav.side-navbar ul li a[aria-expanded="true"] {
    color: #fff !important;
    background: linear-gradient(135deg, var(--bdtf-primary), var(--bdtf-primary-700)) !important;
    border-color: transparent !important;
    box-shadow: 0 9px 20px rgba(15, 118, 110, .22);
}
nav.side-navbar ul li.active > a i,
nav.side-navbar ul li a[aria-expanded="true"] i { color: #fff; }
nav.side-navbar ul ul {
    margin: 5px 0 8px 17px;
    padding: 4px 0 4px 11px;
    border-left: 1px dashed #cbd5e1;
}
nav.side-navbar ul ul li a {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 550;
}
nav.side-navbar.shrink ul li a { justify-content: center; padding: 10px; }
nav.side-navbar.shrink ul li a i { min-width: 0; margin: 0; }

/* Typography and panels */
h1, h2, h3, h4, h5, h6 { color: var(--bdtf-ink); letter-spacing: -.35px; }
.card,
.modal-content,
.wrapper.count-title,
.table-responsive {
    border-color: rgba(226, 232, 240, .9);
}
.card {
    border: 1px solid rgba(226, 232, 240, .92);
    border-radius: var(--bdtf-radius);
    background: var(--bdtf-surface);
    box-shadow: var(--bdtf-shadow-sm);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { border-color: rgba(148, 163, 184, .36); box-shadow: var(--bdtf-shadow); }
.card-header {
    padding: 18px 20px;
    background: #fff;
    border-bottom: 1px solid #eef2f7;
}
.card-body { padding: 20px; }
.card-header h4,
.card-header h5 { margin: 0; font-weight: 750; }

/* Forms */
.form-control,
.custom-select,
.bootstrap-select > .dropdown-toggle,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    min-height: 42px;
    border: 1px solid #dbe3ed !important;
    border-radius: 10px !important;
    background-color: #fff !important;
    color: #334155 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .02);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-control:hover,
.bootstrap-select > .dropdown-toggle:hover { border-color: #b9c6d5 !important; }
.form-control:focus,
.custom-select:focus,
.bootstrap-select.show > .dropdown-toggle,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--bdtf-primary) !important;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .12) !important;
    outline: 0;
}
textarea.form-control { min-height: 100px; }
label { color: #334155; font-weight: 650; }
.input-group-text {
    border-color: #dbe3ed;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--bdtf-muted);
}
.bootstrap-select .dropdown-menu,
.dropdown-menu {
    padding: 7px;
    border: 1px solid rgba(226, 232, 240, .92);
    border-radius: 12px;
    box-shadow: var(--bdtf-shadow-lg);
}
.dropdown-item,
.bootstrap-select .dropdown-menu li a {
    padding: 9px 11px;
    border-radius: 8px;
    color: #475569;
    transition: background .16s ease, color .16s ease;
}
.dropdown-item:hover,
.bootstrap-select .dropdown-menu li a:hover,
.bootstrap-select .dropdown-menu li.selected a {
    color: var(--bdtf-primary);
    background: var(--bdtf-primary-50);
}

/* Buttons */
.btn {
    min-height: 39px;
    padding: 8px 15px;
    border-radius: 9px;
    font-weight: 650;
    box-shadow: none;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: linear-gradient(135deg, var(--bdtf-primary), var(--bdtf-primary-700)) !important;
    box-shadow: 0 8px 18px rgba(15,118,110,.2) !important;
}
.btn-primary:hover { filter: saturate(1.15); box-shadow: 0 11px 24px rgba(15,118,110,.28) !important; }
.btn-success { background: linear-gradient(135deg, #22c55e, #15803d); border-color: transparent; }
.btn-info { background: linear-gradient(135deg, #38bdf8, #2563eb); border-color: transparent; color: #fff; }
.btn-warning { background: linear-gradient(135deg, #fbbf24, #f97316); border-color: transparent; color: #fff; }
.btn-danger { background: linear-gradient(135deg, #fb7185, #dc2626); border-color: transparent; }
.btn-secondary { background: #64748b; border-color: #64748b; }
.btn-light,
.btn-default { background: #fff; border: 1px solid #dbe3ed; color: #475569; }
.btn-light:hover,
.btn-default:hover { color: var(--bdtf-primary); background: var(--bdtf-primary-50); border-color: rgba(15,118,110,.24); }
.btn-outline-primary { color: var(--bdtf-primary); border-color: rgba(15,118,110,.5); }
.btn-outline-primary:hover { background: var(--bdtf-primary); color: #fff; }

/* Tables and DataTables */
.table-responsive {
    border-radius: 12px;
    background: #fff;
}
.table { color: #475569; }
.table thead th {
    padding: 13px 12px;
    border-top: 0;
    border-bottom: 1px solid #dfe7f0;
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .42px;
    text-transform: uppercase;
    white-space: nowrap;
}
.table tbody td {
    padding: 12px;
    border-color: #edf2f7;
}
.table-striped tbody tr:nth-of-type(odd) { background: rgba(248,250,252,.7); }
.table-hover tbody tr,
.table tbody tr { transition: background .16s ease, transform .16s ease; }
.table-hover tbody tr:hover,
.table tbody tr:hover { background: rgba(15,118,110,.045); }
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    min-height: 38px;
    border: 1px solid #dbe3ed;
    border-radius: 9px;
    background: #fff;
}
.dataTables_wrapper .dataTables_paginate .paginate_button,
.page-link {
    margin: 0 2px;
    border: 0 !important;
    border-radius: 8px !important;
    color: #64748b !important;
    background: #f1f5f9 !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.page-item.active .page-link,
.page-link:hover {
    color: #fff !important;
    background: var(--bdtf-primary) !important;
}

/* Status chips */
.badge {
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .2px;
    text-transform: capitalize;
}
.badge-success { color: #166534; background: #dcfce7; }
.badge-danger { color: #991b1b; background: #fee2e2; }
.badge-warning { color: #92400e; background: #fef3c7; }
.badge-info { color: #1e40af; background: #dbeafe; }
.badge-primary { color: #115e59; background: #ccfbf1; }
.badge-secondary { color: #475569; background: #e2e8f0; }
.badge-dark { color: #f8fafc; background: #334155; }

/* Alerts, modals and tabs */
.alert {
    border: 0;
    border-left: 4px solid currentColor;
    border-radius: 11px;
    box-shadow: var(--bdtf-shadow-sm);
}
.modal-content { border: 0; border-radius: 18px; box-shadow: var(--bdtf-shadow-lg); }
.modal-header { padding: 18px 22px; border-color: #edf2f7; }
.modal-footer { padding: 15px 22px; border-color: #edf2f7; background: #f8fafc; }
.nav-tabs { border-bottom-color: #dbe3ed; }
.nav-tabs .nav-link {
    margin-right: 5px;
    border: 0;
    border-radius: 9px 9px 0 0;
    color: #64748b;
    font-weight: 650;
}
.nav-tabs .nav-link:hover { color: var(--bdtf-primary); background: var(--bdtf-primary-50); }
.nav-tabs .nav-link.active { color: var(--bdtf-primary); background: #fff; box-shadow: inset 0 -3px var(--bdtf-primary); }

/* Dashboard */
.bdtf-dashboard-hero {
    position: relative;
    overflow: hidden;
    padding: 30px 34px;
    border-radius: var(--bdtf-radius-lg);
    color: #fff;
    background:
        radial-gradient(circle at 92% 0%, rgba(245,158,11,.34), transparent 28%),
        radial-gradient(circle at 66% 120%, rgba(45,212,191,.28), transparent 36%),
        linear-gradient(125deg, #0f172a 0%, var(--bdtf-dark) 43%, var(--bdtf-primary) 100%);
    box-shadow: 0 20px 44px rgba(15, 48, 45, .20);
}
.bdtf-dashboard-hero::before,
.bdtf-dashboard-hero::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 28px;
    transform: rotate(28deg);
}
.bdtf-dashboard-hero::before { width: 170px; height: 170px; right: 30px; top: -100px; }
.bdtf-dashboard-hero::after { width: 110px; height: 110px; right: 180px; bottom: -75px; }
.bdtf-dashboard-hero > .row { position: relative; z-index: 1; }
.bdtf-dashboard-hero h1 { margin: 8px 0 8px; color: #fff; font-size: 29px; font-weight: 800; }
.bdtf-dashboard-hero p { max-width: 620px; margin: 0; color: rgba(255,255,255,.72); font-size: 14px; }
.bdtf-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #ccfbf1;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .65px;
    text-transform: uppercase;
}
.bdtf-hero-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.bdtf-hero-tags span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 9px;
    background: rgba(255,255,255,.09);
    color: rgba(255,255,255,.82);
    font-size: 11px;
}
.bdtf-quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.bdtf-quick-action {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 14px;
    color: #fff !important;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(8px);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.bdtf-quick-action:hover { transform: translateY(-3px); background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.26); }
.bdtf-quick-action i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(255,255,255,.12);
    font-size: 18px;
}
.bdtf-quick-action span { font-size: 12px; font-weight: 720; }
.bdtf-quick-action-primary { background: var(--bdtf-accent); border-color: transparent; color: #1e293b !important; }
.bdtf-quick-action-primary i { color: #fff; background: rgba(15,23,42,.16); }

.bdtf-dashboard-toolbar {
    padding: 17px 20px;
    border: 1px solid var(--bdtf-line);
    border-radius: var(--bdtf-radius);
    background: #fff;
    box-shadow: var(--bdtf-shadow-sm);
}
.bdtf-dashboard-toolbar h5 { font-weight: 750; }
.bdtf-filter-actions { gap: 8px; }
.bdtf-period-group { padding: 3px; border-radius: 11px; background: #f1f5f9; }
.bdtf-period-group .btn {
    min-height: 34px;
    padding: 6px 12px;
    border: 0;
    border-radius: 8px !important;
    background: transparent;
    color: #64748b;
    font-size: 11px;
}
.bdtf-period-group .btn:hover { color: var(--bdtf-primary); }
.bdtf-period-group .btn.active { color: #fff; background: var(--bdtf-primary); box-shadow: 0 5px 13px rgba(15,118,110,.2); }

.bdtf-stat-card {
    position: relative;
    min-height: 139px;
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
    padding: 21px;
    border: 1px solid rgba(226,232,240,.92);
    border-radius: 17px;
    background: #fff;
    box-shadow: var(--bdtf-shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.bdtf-stat-card::after {
    content: '';
    position: absolute;
    right: -30px;
    bottom: -40px;
    width: 105px;
    height: 105px;
    border-radius: 50%;
    background: currentColor;
    opacity: .055;
}
.bdtf-stat-card:hover { transform: translateY(-5px); box-shadow: var(--bdtf-shadow); border-color: rgba(148,163,184,.4); }
.bdtf-stat-card.is-loading { opacity: .62; pointer-events: none; }
.bdtf-stat-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #fff;
    font-size: 23px;
    box-shadow: 0 10px 20px rgba(15,23,42,.12);
}
.bdtf-stat-copy { min-width: 0; }
.bdtf-stat-copy > span { display: block; color: #64748b; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .38px; }
.bdtf-stat-copy strong { display: block; margin: 5px 0 5px; color: #0f172a; font-size: 23px; font-weight: 820; letter-spacing: -.7px; white-space: nowrap; }
.bdtf-stat-copy strong small { color: #94a3b8; font-size: 10px; font-weight: 750; letter-spacing: .2px; }
.bdtf-stat-copy em { color: #94a3b8; font-size: 10px; font-style: normal; }
.bdtf-stat-card.is-teal { color: var(--bdtf-primary); }
.bdtf-stat-card.is-teal .bdtf-stat-icon { background: linear-gradient(135deg, #2dd4bf, #0f766e); }
.bdtf-stat-card.is-violet { color: #7c3aed; }
.bdtf-stat-card.is-violet .bdtf-stat-icon { background: linear-gradient(135deg, #a78bfa, #6d28d9); }
.bdtf-stat-card.is-blue { color: #2563eb; }
.bdtf-stat-card.is-blue .bdtf-stat-icon { background: linear-gradient(135deg, #60a5fa, #1d4ed8); }
.bdtf-stat-card.is-orange { color: #f59e0b; }
.bdtf-stat-card.is-orange .bdtf-stat-icon { background: linear-gradient(135deg, #fbbf24, #ea580c); }

.bdtf-panel-card { overflow: hidden; }
.bdtf-card-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.bdtf-card-header h4 { margin: 3px 0 0; font-size: 16px; font-weight: 780; }
.bdtf-card-kicker { color: var(--bdtf-primary); font-size: 9px; font-weight: 800; letter-spacing: .75px; text-transform: uppercase; }
.bdtf-chart-badge { padding: 6px 10px; border-radius: 999px; color: #115e59; background: #ccfbf1; font-size: 10px; font-weight: 800; }
.bdtf-card-link { color: var(--bdtf-primary); font-size: 11px; font-weight: 750; }
.bdtf-card-link:hover { color: var(--bdtf-dark); }
.bdtf-empty-chart { position: absolute; left: 0; right: 0; bottom: 20px; color: #94a3b8; font-size: 11px; text-align: center; pointer-events: none; }
.bdtf-empty-state { padding: 30px !important; color: #94a3b8; font-size: 12px; text-align: center; }

.bdtf-health-card {
    min-height: 116px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 17px;
    border: 1px solid var(--bdtf-line);
    border-radius: 14px;
    color: #334155 !important;
    background: #fff;
    box-shadow: var(--bdtf-shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.bdtf-health-card:hover { transform: translateY(-4px); box-shadow: var(--bdtf-shadow); }
.bdtf-health-card i { margin-bottom: 10px; font-size: 20px; }
.bdtf-health-card strong { color: #0f172a; font-size: 22px; font-weight: 820; }
.bdtf-health-card span { color: #64748b; font-size: 10px; font-weight: 680; text-transform: uppercase; }
.bdtf-health-card.is-warning i { color: #f59e0b; }
.bdtf-health-card.is-danger i { color: #ef4444; }
.bdtf-health-card.is-violet i { color: #7c3aed; }
.bdtf-health-card.is-blue i { color: #2563eb; }
.bdtf-health-card.is-teal i { color: #0f766e; }
.bdtf-health-card.is-orange i { color: #ea580c; }
.bdtf-health-card:hover.is-warning { border-color: rgba(245,158,11,.35); }
.bdtf-health-card:hover.is-danger { border-color: rgba(239,68,68,.35); }
.bdtf-health-card:hover.is-violet { border-color: rgba(124,58,237,.35); }
.bdtf-health-card:hover.is-blue { border-color: rgba(37,99,235,.35); }
.bdtf-health-card:hover.is-teal { border-color: rgba(15,118,110,.35); }
.bdtf-health-card:hover.is-orange { border-color: rgba(234,88,12,.35); }

.bdtf-modern-table .bdtf-reference { color: var(--bdtf-primary); font-size: 11px; font-weight: 780; }
.bdtf-product-list { display: flex; flex-direction: column; }
.bdtf-product-row { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid #eef2f7; transition: background .18s ease; }
.bdtf-product-row:last-child { border-bottom: 0; }
.bdtf-product-row:hover { background: #f8fafc; }
.bdtf-rank { width: 24px; color: #94a3b8; font-size: 11px; font-weight: 800; text-align: center; }
.bdtf-product-copy { min-width: 0; flex: 1; }
.bdtf-product-copy strong { display: block; overflow: hidden; color: #334155; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.bdtf-product-copy span { color: #94a3b8; font-size: 10px; }
.bdtf-product-row > b { color: #0f172a; font-size: 11px; white-space: nowrap; }
.bdtf-balance-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px dashed #e2e8f0; }
.bdtf-balance-row:last-child { border-bottom: 0; }
.bdtf-balance-row span { display: flex; align-items: center; gap: 9px; color: #64748b; font-size: 11px; }
.bdtf-balance-row i { width: 29px; height: 29px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: #f1f5f9; }
.bdtf-balance-row strong { color: #0f172a; font-size: 12px; }
.is-green { color: #16a34a !important; }.is-red { color: #ef4444 !important; }.is-blue { color: #2563eb !important; }.is-orange { color: #ea580c !important; }.is-violet { color: #7c3aed !important; }.is-teal { color: #0f766e !important; }

/* Data-management page */
.bdtf-data-card { position: relative; overflow: hidden; }
.bdtf-data-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--bdtf-primary); }
.bdtf-data-card.is-danger::before { background: var(--bdtf-red); }
.bdtf-data-icon { width: 54px; height: 54px; display: inline-flex; align-items: center; justify-content: center; border-radius: 15px; background: var(--bdtf-primary-50); color: var(--bdtf-primary); font-size: 24px; }
.bdtf-data-card.is-danger .bdtf-data-icon { color: var(--bdtf-red); background: #fef2f2; }
.bdtf-confirm-box { padding: 14px; border: 1px dashed #fca5a5; border-radius: 10px; background: #fff7f7; }

/* POS */
.pos-page { background: #eef3f7; }
.pos-page nav.navbar { border-radius: 0 0 14px 14px; box-shadow: var(--bdtf-shadow-sm); }
.pos-page .product-grid > div {
    border: 1px solid #e2e8f0 !important;
    background: #fff;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.pos-page .product-grid > div:hover { transform: translateY(-3px); border-color: rgba(15,118,110,.35) !important; box-shadow: var(--bdtf-shadow); }
.pos-page .transaction-list,
.pos-page .payment-amount,
.pos-page .product-list { border-radius: 13px; background: #fff; }

/* Dark mode */
body.dark-mode {
    --bdtf-surface: #111827;
    --bdtf-page: #0b1120;
    --bdtf-line: #243044;
    --bdtf-ink: #f8fafc;
    --bdtf-muted: #94a3b8;
    color: #cbd5e1;
    background: var(--bdtf-page);
}
body.dark-mode .page,
body.dark-mode .card,
body.dark-mode .card-header,
body.dark-mode .bdtf-dashboard-toolbar,
body.dark-mode .bdtf-stat-card,
body.dark-mode .bdtf-health-card,
body.dark-mode .table-responsive,
body.dark-mode .dropdown-menu,
body.dark-mode nav.side-navbar,
body.dark-mode .form-control,
body.dark-mode .bootstrap-select > .dropdown-toggle { background: #111827 !important; color: #cbd5e1 !important; }
body.dark-mode .page header.container-fluid { background: rgba(17,24,39,.95); border-color: #243044; }
body.dark-mode .card,
body.dark-mode .bdtf-stat-card,
body.dark-mode .bdtf-health-card,
body.dark-mode .bdtf-dashboard-toolbar { border-color: #243044; }
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4, body.dark-mode h5, body.dark-mode h6,
body.dark-mode .bdtf-stat-copy strong,
body.dark-mode .bdtf-health-card strong,
body.dark-mode .bdtf-product-row > b,
body.dark-mode .bdtf-balance-row strong { color: #f8fafc; }
body.dark-mode .table thead th { color: #cbd5e1; background: #172033; border-color: #243044; }
body.dark-mode .table tbody td,
body.dark-mode .bdtf-product-row,
body.dark-mode .bdtf-balance-row { border-color: #243044; }
body.dark-mode .table tbody tr:hover,
body.dark-mode .bdtf-product-row:hover { background: #172033; }
body.dark-mode nav.side-navbar ul li a { color: #aab7ca; }

@media (max-width: 1199px) {
    .bdtf-stat-copy strong { font-size: 20px; }
}
@media (max-width: 767px) {
    .page .navbar { min-height: 62px; padding: 8px 12px; }
    .bdtf-dashboard-hero { padding: 24px 21px; }
    .bdtf-dashboard-hero h1 { font-size: 23px; }
    .bdtf-quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bdtf-filter-actions { width: 100%; }
    .bdtf-period-group { width: 100%; margin-top: 7px; }
    .bdtf-period-group .btn { flex: 1; padding: 6px 5px; }
    .bdtf-stat-card { min-height: 118px; }
}
@media (max-width: 420px) {
    .bdtf-quick-actions { grid-template-columns: 1fr; }
    .bdtf-quick-action { min-height: 58px; }
}
