/* TRONX red/black brand identity — visual-only overrides */
:root {
  --tronx-red: #e51b23;
  --tronx-red-dark: #b5121b;
  --tronx-red-deep: #8f0d15;
  --tronx-red-soft: #fff1f2;
  --tronx-ink: #171717;
  --tronx-muted: #687080;
  --tronx-line: #e9e7e7;
  --primary: var(--tronx-red) !important;
  --primary-dark: var(--tronx-red-dark) !important;
  --primary-light: var(--tronx-red-soft) !important;
  --ap-primary: var(--tronx-red) !important;
  --ap-primary-dark: var(--tronx-red-dark) !important;
  --ap-primary-soft: var(--tronx-red-soft) !important;
  --tx-primary: var(--tronx-red) !important;
  --tx-primary-600: var(--tronx-red-dark) !important;
  --tx-primary-700: var(--tronx-red-deep) !important;
  --brand-500: var(--tronx-red) !important;
  --brand-600: var(--tronx-red-dark) !important;
}
body { color: var(--tronx-ink); }
/* Shared navigation and action surfaces */
.ez-brand-badge, .ez-avatar, .ez-welcome-mobile,
.btn-primary, .ezi-btn-primary, .ez-btn-primary,
.tx-btn--primary, .btn-action.btn-primary, .cat-item.active,
.tx-nav-link.is-active, .ez-section-nav a.active {
  background: linear-gradient(135deg, var(--tronx-red), var(--tronx-red-dark)) !important;
  border-color: var(--tronx-red) !important;
}
.ez-brand b, .ez-page-title i, .page-header i, .item-price,
.summary-row.total, .cart-item-final-price, .tx-stat__icon--primary,
.tx-badge--primary, .btn-link, a:hover, .ez-nav-link:hover,
.tx-nav-link:hover { color: var(--tronx-red) !important; }
.card:hover, .ezi-card:hover, .ez-card:hover, .report-card:hover, .summary-card:hover,
.form-control:focus, .form-select:focus, .input-wrap .form-control:focus,
.search-box input:focus, .customer-search-input:focus { border-color: rgba(229,27,35,.45) !important; box-shadow: 0 0 0 3px rgba(229,27,35,.12) !important; }
.btn-primary:hover, .ezi-btn-primary:hover, .ez-btn-primary:hover,
.tx-btn--primary:hover { background: var(--tronx-red-dark) !important; }
.btn-danger, .btn-pay { background: linear-gradient(135deg, var(--tronx-red), var(--tronx-red-dark)) !important; }
/* Admin and cashier headers */
.ez-navbar, .tx-header, .pos-navbar { border-bottom-color: #f0d5d7 !important; }
.ez-brand-logo, .pos-header__logo, .tronx-brand-mark { border-color: #f0d5d7 !important; }
/* Standalone POS */
.pos-header__logo, .tronx-brand-mark { background:#fff !important; box-shadow:0 6px 16px rgba(229,27,35,.14) !important; }
.item-card:hover, .pos-card:hover { border-color: rgba(229,27,35,.42) !important; box-shadow: 0 10px 24px rgba(229,27,35,.12) !important; }
.status-pill { background: #fff1f2 !important; color: var(--tronx-red-dark) !important; border-color: #f3c6ca !important; }
.status-pill .pulse { background: var(--tronx-red) !important; }
/* Login and landing pages */
.brand-name em, .logo-product, .logo em { background: linear-gradient(135deg,var(--tronx-red),var(--tronx-red-dark)) !important; -webkit-background-clip:text !important; background-clip:text !important; color:transparent !important; }
.signin, .tx-btn--primary { background: linear-gradient(135deg,#ff4b35,var(--tronx-red)) !important; }
.signin:hover { box-shadow: 0 16px 32px rgba(229,27,35,.28) !important; }
.portal-badge { color: var(--tronx-red-dark) !important; border-color: #f1b9bd !important; background: var(--tronx-red-soft) !important; }
.remember-row a, .auth-footer a, .helper-text a { color: var(--tronx-red-dark) !important; }
/* Common status and warning accents become brand-red where they represent primary actions */
.btn-tool:hover, .btn-outline:hover, .dropdown-item:hover { color: var(--tronx-red) !important; border-color: #efafb3 !important; background: var(--tronx-red-soft) !important; }
@media (max-width:767px) {
  .ez-brand-logo, .pos-header__logo, .tronx-brand-mark { box-shadow:0 4px 12px rgba(229,27,35,.13) !important; }
}

/* Direct-color legacy components */
.modern-nav-ui, .modern-nav-ui-light { --nav-primary: var(--tronx-red) !important; --nav-text-active: var(--tronx-red) !important; }
.modern-nav-ui a.active, .modern-nav-ui-light a.active,
.modern-nav-ui .nav-link.active, .modern-nav-ui-light .nav-link.active,
.modern-nav-ui .nav-icon-btn:hover, .modern-nav-ui-light .nav-icon-btn:hover { color:var(--tronx-red) !important; border-color:var(--tronx-red) !important; background:var(--tronx-red-soft) !important; }
.stat-icon.purple, .stat-icon.blue, .stat-icon.primary,
.tx-stat__icon--primary, .ez-stat-hero--sales, .ez-stat-hero--orders,
.ez-stat-hero--inventory { background:linear-gradient(135deg,var(--tronx-red),var(--tronx-red-dark)) !important; color:#fff !important; }
.stat-icon.purple { color:var(--tronx-red) !important; background:var(--tronx-red-soft) !important; }
.badge-primary, .badge-info, .badge-warning { background:var(--tronx-red-soft) !important; color:var(--tronx-red-dark) !important; }
.ez-brand-badge, .ez-menu-toggle:hover, .ez-icon-btn:hover { color:var(--tronx-red) !important; }
.ez-welcome-mobile, .ez-stat-hero--sales, .ez-stat-hero--orders, .ez-stat-hero--inventory { box-shadow:0 12px 30px rgba(229,27,35,.18) !important; }
.btn-info, .btn-secondary, .btn-outline-primary, .btn-outline-info { border-color:var(--tronx-red) !important; color:var(--tronx-red) !important; }
.btn-info:hover, .btn-secondary:hover, .btn-outline-primary:hover, .btn-outline-info:hover { background:var(--tronx-red) !important; color:#fff !important; }
/* Inline legacy blue surfaces on the standalone login/landing/POS pages */
.brand-mark, .card-admin .card-icon, .card-cashier .card-icon,
.tx-header__logo, .pos-header__logo { border-color:#f0c5c8 !important; }
.card-admin::before, .card-cashier::before { background:var(--tronx-red) !important; }
.card-admin .card-icon, .card-cashier .card-icon { background:linear-gradient(135deg,var(--tronx-red),var(--tronx-red-dark)) !important; box-shadow:0 8px 20px rgba(229,27,35,.22) !important; }
.card-arrow, .card-cashier .card-arrow { color:var(--tronx-red) !important; }
.card:hover .card-arrow, .card-cashier:hover .card-arrow { background:var(--tronx-red) !important; color:#fff !important; }

/* Section cards: red border on hover */
.ezi-menu-group__single:hover,
.ezi-menu-group__links a:hover,
.ezi-menu-group:hover,
.ez-section-nav a:hover,
.ez-section-nav a.active,
.category-tabs a:hover,
.category-tabs button:hover,
.category-card:hover,
.section-card:hover {
  border-color: var(--tronx-red) !important;
}
.ezi-menu-group__single:hover,
.ezi-menu-group__links a:hover,
.ez-section-nav a:hover {
  box-shadow: 0 4px 14px rgba(229,27,35,.14) !important;
}

/* Force section-card hover border above legacy blue rules */
.ezi-section-menu .ezi-menu-group:hover,
.ezi-section-menu .ezi-menu-group__single:hover,
.ezi-section-menu .ezi-menu-group__links a:hover,
.ezi-section-menu .ezi-menu-group__links a:focus-visible,
.ezi-section-menu .ezi-menu-group__single:focus-visible {
  border: 1px solid #e51b23 !important;
  outline: 1px solid #e51b23 !important;
  outline-offset: -1px !important;
  box-shadow: 0 0 0 2px rgba(229,27,35,.16), 0 6px 18px rgba(229,27,35,.14) !important;
}
.ezi-section-menu .ezi-menu-group__single:hover,
.ezi-section-menu .ezi-menu-group__links a:hover {
  background: #fff1f2 !important;
  color: #b5121b !important;
}

/* Admin dashboard quick-action tiles: explicit red identity */
:root {
  --brand-50: #fff1f2 !important;
  --brand-100: #ffe1e4 !important;
  --brand-200: #f7b9bf !important;
  --brand-300: #f18b95 !important;
  --brand-400: #eb4f5b !important;
  --brand-500: #e51b23 !important;
  --brand-600: #b5121b !important;
  --brand-700: #8f0d15 !important;
}
.ez-quick-group,
.ez-quick { border-color: #e5e7eb !important; }
.ez-quick-group:hover,
.ez-quick:hover,
.ez-quick:focus-visible { border-color: #e51b23 !important; outline: 1px solid #e51b23 !important; outline-offset: -1px !important; box-shadow: 0 0 0 3px rgba(229,27,35,.13), 0 10px 24px rgba(229,27,35,.14) !important; }
.ez-quick-group__title::before { background: linear-gradient(180deg,#e51b23,#b5121b) !important; }
.ez-quick-group__title i { color: #e51b23 !important; }
.ez-quick .ic[style*="var(--brand-50)"],
.ez-quick .ic[style*="var(--brand-500)"] { background: #fff1f2 !important; color: #e51b23 !important; }

/* Categories, items and store-sales pages */
.btn-primary, .btn-info, .btn-outline-primary, .btn-outline-info,
.btn-group .btn-primary, .btn-group .btn-info { background: linear-gradient(135deg,#e51b23,#b5121b) !important; border-color:#e51b23 !important; color:#fff !important; }
.btn-primary:hover, .btn-info:hover, .btn-outline-primary:hover, .btn-outline-info:hover,
.btn-group .btn-primary:hover, .btn-group .btn-info:hover { background:#8f0d15 !important; border-color:#8f0d15 !important; color:#fff !important; }
.nav-tabs .nav-link.active, .nav-pills .nav-link.active,
.pagination .page-item.active .page-link { background:#e51b23 !important; border-color:#e51b23 !important; color:#fff !important; }
.nav-tabs .nav-link:hover, .nav-pills .nav-link:hover,
.pagination .page-link:hover { color:#b5121b !important; border-color:#e51b23 !important; background:#fff1f2 !important; }
.table-hover tbody tr:hover { background-color:#fff7f7 !important; }
.table thead th, .order-items-table thead th { border-bottom-color:#f0c5c8 !important; }
.order-hero, .order-total-bar { background:linear-gradient(135deg,#e51b23,#b5121b) !important; }
.order-info-card:hover, .order-items-card:hover, .order-notes:hover { border-color:#e51b23 !important; box-shadow:0 8px 22px rgba(229,27,35,.12) !important; }
.form-check-input:checked, input[type="checkbox"]:checked, input[type="radio"]:checked { background-color:#e51b23 !important; border-color:#e51b23 !important; }
.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple { border-color:#e51b23 !important; box-shadow:0 0 0 3px rgba(229,27,35,.12) !important; }

/* Page-specific hard override: categories, items, store sales */
:root {
  --ti-primary: #e51b23 !important;
  --ti-primary-dark: #b5121b !important;
  --ti-primary-light: #fff1f2 !important;
  --ti-purple: #b5121b !important;
  --si-primary: #e51b23 !important;
  --si-primary-dark: #b5121b !important;
  --si-primary-light: #fff1f2 !important;
}
.ti-btn-primary, .ti-btn-primary:hover,
.ti-modal-footer .ti-btn-primary,
.si-btn-primary, .si-btn-primary:hover {
  background: linear-gradient(135deg,#e51b23,#b5121b) !important;
  border-color:#e51b23 !important;
  color:#fff !important;
}
.ti-page-header, .ti-hero, .si-page-header, .si-hero,
.page-hero, .products-hero, .categories-hero {
  background: linear-gradient(135deg,#e51b23,#b5121b) !important;
  border-color:#e51b23 !important;
}
.ti-stat-card, .si-stat-card, .stat-card, .summary-card {
  border-color:#e7e7e7 !important;
}
.ti-stat-card:hover, .si-stat-card:hover, .stat-card:hover, .summary-card:hover {
  border-color:#e51b23 !important;
  box-shadow:0 0 0 3px rgba(229,27,35,.12),0 10px 24px rgba(229,27,35,.14) !important;
}
.ti-form-control:focus, .ti-image-upload:hover, .ti-type-toggle input:checked + label,
.ti-check { border-color:#e51b23 !important; box-shadow:0 0 0 3px rgba(229,27,35,.12) !important; color:#b5121b !important; }
.ti-type-toggle input:checked + label { background:#e51b23 !important; color:#fff !important; }
.order-modal .modal-header { background:linear-gradient(135deg,#e51b23,#b5121b) !important; }
.order-hero { background:linear-gradient(135deg,#e51b23,#b5121b) !important; box-shadow:0 12px 25px rgba(229,27,35,.18) !important; }
.order-info-icon.customer { background:#fff1f2 !important; color:#e51b23 !important; }
.order-section-head h3 i, .order-product-icon { color:#e51b23 !important; }
.order-product-icon { background:#fff1f2 !important; }
.order-line-total { color:#b5121b !important; }
.order-total-bar { background:linear-gradient(135deg,#8f0d15,#b5121b) !important; }
.order-total-bar strong { color:#ffe1e4 !important; }

/* Global dropdown identity: red instead of legacy blue */
select, .form-select, .tb-select, .ti-select,
select:focus, .form-select:focus, .tb-select:focus, .ti-select:focus {
  border-color:#e51b23 !important;
  outline-color:#e51b23 !important;
}
select:focus, .form-select:focus, .tb-select:focus, .ti-select:focus {
  box-shadow:0 0 0 3px rgba(229,27,35,.12) !important;
}
select option:checked, select option:hover,
.form-select option:checked, .tb-select option:checked, .ti-select option:checked {
  background:#e51b23 !important;
  color:#fff !important;
}
.dropdown-menu, .dropdown-menu.show {
  border:1px solid #f0b8bc !important;
  box-shadow:0 10px 28px rgba(229,27,35,.14) !important;
}
.dropdown-menu .dropdown-item:hover, .dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item.active, .dropdown-menu .dropdown-item:active {
  color:#b5121b !important;
  background:#fff1f2 !important;
}
.select2-container--default .select2-dropdown {
  border-color:#e51b23 !important;
  box-shadow:0 10px 24px rgba(229,27,35,.14) !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option[aria-selected="true"] {
  background:#e51b23 !important;
  color:#fff !important;
}
.select2-container--default .select2-results__option:hover {
  background:#fff1f2 !important;
  color:#b5121b !important;
}
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  border-color:#e5e7eb !important;
}
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--multiple {
  border-color:#e51b23 !important;
  box-shadow:0 0 0 3px rgba(229,27,35,.12) !important;
}
.select2-search--dropdown .select2-search__field:focus {
  border-color:#e51b23 !important;
  box-shadow:0 0 0 3px rgba(229,27,35,.12) !important;
}
.choices__list--dropdown .choices__item--selectable.is-highlighted,
.multiselect-container > li > a:hover,
.ui-menu .ui-menu-item-wrapper:hover {
  background:#e51b23 !important;
  color:#fff !important;
}

/* Custom red dropdown layer for native selects */
.tronx-red-dropdown { position:relative; display:block; width:100%; min-width:0; }
.tronx-red-dropdown__native { position:absolute !important; width:1px !important; height:1px !important; opacity:0 !important; pointer-events:none !important; inset:auto !important; }
.tronx-red-dropdown__button { width:100%; min-height:38px; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:.55rem .8rem; border:1px solid #e2e5ea; border-radius:8px; background:#fff; color:#242424; cursor:pointer; font:inherit; text-align:start; transition:border-color .15s,box-shadow .15s; }
.tronx-red-dropdown__button:hover, .tronx-red-dropdown.is-open .tronx-red-dropdown__button { border-color:#e51b23 !important; box-shadow:0 0 0 3px rgba(229,27,35,.12) !important; }
.tronx-red-dropdown__arrow { color:#b5121b; font-size:.85em; }
.tronx-red-dropdown__list { display:none; position:absolute; z-index:10050; inset-inline:0; top:calc(100% + 4px); max-height:260px; overflow:auto; padding:4px; border:1px solid #e51b23; border-radius:8px; background:#fff; box-shadow:0 12px 28px rgba(229,27,35,.18); }
.tronx-red-dropdown.is-open .tronx-red-dropdown__list { display:block; }
.tronx-red-dropdown__option { display:block; width:100%; padding:.55rem .7rem; border:0; border-radius:6px; background:#fff; color:#242424; cursor:pointer; font:inherit; text-align:start; }
.tronx-red-dropdown__option:hover, .tronx-red-dropdown__option:focus, .tronx-red-dropdown__option.is-selected { background:#e51b23 !important; color:#fff !important; outline:none; }
@media (max-width:767px) { .tronx-red-dropdown__list { max-height:220px; } }

/* Final desktop dropdown and input polish */
:root{--tronx-red-border:#f0b8bc;}
input:not([type="checkbox"]):not([type="radio"]),textarea,.form-control,.form-select,.ti-form-control,.ti-select,.tb-select,.choices__inner,.select2-container--default .select2-selection--single,.select2-container--default .select2-selection--multiple{min-height:42px;border:1px solid #dfe3e8!important;border-radius:10px!important;background:#fff!important;color:#20242a!important;box-shadow:0 2px 8px rgba(20,24,32,.04)!important;transition:border-color .18s ease,box-shadow .18s ease!important}
input:not([type="checkbox"]):not([type="radio"]):hover,textarea:hover,.form-control:hover,.form-select:hover,.ti-form-control:hover,.ti-select:hover,.tb-select:hover,.choices__inner:hover,.select2-container--default .select2-selection--single:hover,.select2-container--default .select2-selection--multiple:hover{border-color:#e7a3a8!important}
input:not([type="checkbox"]):not([type="radio"]):focus,textarea:focus,.form-control:focus,.form-select:focus,.ti-form-control:focus,.ti-select:focus,.tb-select:focus,.choices.is-focused .choices__inner,.choices.is-open .choices__inner,.select2-container--default.select2-container--focus .select2-selection--single,.select2-container--default.select2-container--open .select2-selection--single,.select2-container--default.select2-container--focus .select2-selection--multiple,.select2-container--default.select2-container--open .select2-selection--multiple{border-color:#e51b23!important;outline:none!important;box-shadow:0 0 0 3px rgba(229,27,35,.13),0 4px 12px rgba(20,24,32,.06)!important}
.tronx-red-dropdown{width:100%;min-width:150px}.tronx-red-dropdown__button{min-height:42px;padding:.62rem .85rem;border-radius:10px;border-color:#dfe3e8!important;background:#fff!important;box-shadow:0 2px 8px rgba(20,24,32,.04)}
.tronx-red-dropdown__button:hover,.tronx-red-dropdown.is-open .tronx-red-dropdown__button{border-color:#e51b23!important;background:#fff!important;color:#b5121b!important;box-shadow:0 0 0 3px rgba(229,27,35,.12),0 6px 16px rgba(20,24,32,.07)!important}
.tronx-red-dropdown__list{top:calc(100% + 6px);max-height:300px;padding:6px;border:1px solid #e51b23!important;border-radius:10px;background:#fff!important;box-shadow:0 16px 34px rgba(20,24,32,.16),0 0 0 3px rgba(229,27,35,.07)!important}
.tronx-red-dropdown__option{min-height:38px;padding:.58rem .75rem;border-radius:7px;background:#fff!important;color:#252a31!important}.tronx-red-dropdown__option:hover,.tronx-red-dropdown__option:focus,.tronx-red-dropdown__option.is-selected{background:#e51b23!important;color:#fff!important}
.dropdown-menu .dropdown-item:hover,.dropdown-menu .dropdown-item:focus,.dropdown-menu .dropdown-item.active,.dropdown-menu .dropdown-item:active,.select2-results__option--highlighted,.select2-container--default .select2-results__option--highlighted[aria-selected],.select2-container--default .select2-results__option[aria-selected="true"],.choices__list--dropdown .choices__item--selectable.is-highlighted,.choices__list[aria-expanded="true"] .choices__item--selectable:hover,.multiselect-container>li>a:hover,.multiselect-container>li.active>a,.ui-menu .ui-menu-item-wrapper:hover{background:#e51b23!important;background-image:none!important;color:#fff!important;border-color:#e51b23!important}
@media (min-width:769px){.ti-modal-box{width:min(760px,calc(100vw - 48px))!important;max-width:760px!important;border-radius:16px!important}.tcx-modal-box{width:min(560px,calc(100vw - 48px))!important;max-width:560px!important;border-radius:16px!important}.ti-modal-body,.tcx-modal-body{padding:1.5rem 1.75rem!important}.ti-form-grid{gap:1rem!important}.ti-form-group,.tcx-form-group{gap:.45rem!important}.ti-form-group label,.tcx-form-group label{font-size:.84rem!important}.ti-form-control,.tcx-form-control{min-height:42px!important;padding:.62rem .9rem!important}.ti-modal-footer,.tcx-modal-footer{padding:1rem 1.75rem!important}.ti-modal-footer .ti-btn,.tcx-modal-footer button{min-height:42px!important;border-radius:9px!important}}
@media (max-width:768px){.tronx-red-dropdown{min-width:0}.tronx-red-dropdown__button{min-height:44px}.tronx-red-dropdown__list{max-height:240px}input:not([type="checkbox"]):not([type="radio"]),textarea,.form-control,.form-select{min-height:44px}}

/* Page-specific hard override: categories (tcx) */
.tcx-hero, .tcx-btn-primary, .tcx-cat-avatar {
  background: linear-gradient(135deg, #e51b23, #b5121b) !important;
  border-color: #e51b23 !important;
}
.tcx-btn-primary:hover { background: #8f0d15 !important; }
.tcx-pill.active { background: #e51b23 !important; color: #fff !important; }
.tcx-badge.info { background: #fff1f2 !important; color: #e51b23 !important; border-color: #f0b8bc !important; }
.tcx-stat-icon.blue { background: #fff1f2 !important; color: #e51b23 !important; }

/* Desktop polish for modals and inputs */
@media (min-width: 769px) {
  .tcx-modal-box, .ti-modal-box {
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(229,27,35,0.1) !important;
  }
  .tronx-red-dropdown__button, .ti-form-control, .tcx-form-control, input:not([type="checkbox"]) {
    font-size: 0.92rem !important;
    padding: 0.65rem 1rem !important;
  }
}

/* Global hover priority: Red instead of Blue */
*:hover { --primary-hover: #e51b23; }
.dropdown-item:hover, .select2-results__option--highlighted, .tronx-red-dropdown__option:hover {
  background-color: #e51b23 !important;
  color: #fff !important;
}

/* Remove remaining legacy blue shadows from tcx surfaces */
.tcx-hero, .tcx-btn-primary, .tcx-btn-primary:hover, .tcx-cat-avatar, .tcx-pill.active, .tcx-card:hover {
  box-shadow: 0 10px 26px rgba(229,27,35,.18) !important;
}
.tcx-btn-primary:hover { box-shadow: 0 8px 20px rgba(143,13,21,.25) !important; }
