/* Giao diện theo tuanphuexpress.com.vn: xanh lá #046739, vàng #ffcd20, logo công ty, font Roboto.
   Đây là giao diện duy nhất. site.css lo bố cục và màu nền tảng, file này đặt màu và chi tiết thương hiệu đè lên.
   Thẻ html luôn mang data-brand="tuanphu" để các quy tắc dưới đây thắng quy tắc sáng/tối của site.css. */

:root[data-brand="tuanphu"] {
  --tp-green: #046739;
  --tp-yellow: #ffcd20;
  --tp-ink: #14281d;
}

:root[data-brand="tuanphu"][data-theme="light"] {
  --sl-accent: #07804a;
  --sl-accent-hover: #0a9156;
  --sl-accent-deep: #046739;
  --sl-bg: #f5f7f5;
  --sl-surface: #ffffff;
  --sl-raised: #f7faf8;
  --sl-hover: #e9f3ed;
  --sl-line: #d6e2db;
  --sl-text: #16241d;
  --sl-muted: #53645a;
  --sl-link: #046739;
  --sl-danger: #b51d36;
  --sl-shadow: 0 4px 18px rgba(4, 103, 57, .07);
  --bs-link-color-rgb: 4, 103, 57;
  --bs-link-hover-color-rgb: 3, 85, 47;
  --dash-bar: #046739;
  --tp-side: #046739;
  --tp-side-active: #03552f;
  --tp-side-muted: #cfe5d9;
  --tp-tint: rgba(4, 103, 57, .1);
  --tp-tint-soft: rgba(4, 103, 57, .05);
  --tp-focus: rgba(4, 103, 57, .22);
}

:root[data-brand="tuanphu"][data-theme="dark"] {
  --sl-accent: #07804a;
  --sl-accent-hover: #0a9156;
  --sl-accent-deep: #066b3e;
  --sl-bg: #0b1712;
  --sl-surface: #12231b;
  --sl-raised: #172c22;
  --sl-hover: #1c3529;
  --sl-line: #2f4a3c;
  --sl-text: #eaf3ee;
  --sl-muted: #a3b8ac;
  --sl-link: #7fdcae;
  --sl-danger: #f58a8a;
  --sl-shadow: 0 4px 20px rgba(0, 0, 0, .22);
  --bs-link-color-rgb: 127, 220, 174;
  --bs-link-hover-color-rgb: 170, 235, 203;
  --dash-bar: #3fbf83;
  --tp-side: #06482b;
  --tp-side-active: #053a22;
  --tp-side-muted: #c2d9cc;
  --tp-tint: rgba(63, 191, 131, .15);
  --tp-tint-soft: rgba(63, 191, 131, .07);
  --tp-focus: rgba(63, 191, 131, .28);
}

:root[data-brand="tuanphu"][data-theme] { --bs-body-font-family: "TP Roboto", "Segoe UI", Arial, sans-serif; }

/* ----- Logo: nền trắng ở cả chế độ tối vì logo có chữ đỏ và xanh ----- */
:root[data-brand="tuanphu"] .brand-logo { display: block; flex: 0 1 196px; min-width: 0; width: 196px; height: auto; }
:root[data-brand="tuanphu"] .sidebar-brand { background: #fff; border-top: 0; border-bottom: 3px solid var(--tp-yellow); box-sizing: border-box; }
:root[data-brand="tuanphu"] .sidebar-close { color: #40524a; }
:root[data-brand="tuanphu"] .sidebar-close:hover { background: #e9f3ed; color: var(--tp-green); }

/* ----- Menu trái: dải xanh như thanh menu của website ----- */
:root[data-brand="tuanphu"] .sidebar { background: var(--tp-side); box-shadow: none; }
:root[data-brand="tuanphu"] .sidebar-cta { padding-top: 14px; }
:root[data-brand="tuanphu"] .sidebar-cta .btn-primary {
  --bs-btn-color: var(--tp-ink); --bs-btn-bg: var(--tp-yellow); --bs-btn-border-color: var(--tp-yellow);
  --bs-btn-hover-color: var(--tp-ink); --bs-btn-hover-bg: #ffd84d; --bs-btn-hover-border-color: #ffd84d;
  --bs-btn-active-color: var(--tp-ink); --bs-btn-active-bg: var(--tp-yellow); --bs-btn-active-border-color: var(--tp-yellow);
}
:root[data-brand="tuanphu"] .nav-section { color: var(--tp-side-muted); }
:root[data-brand="tuanphu"] .nav-link-item { color: #fff; }
:root[data-brand="tuanphu"] .nav-link-item:hover { background: rgba(255, 255, 255, .1); color: #fff; }
:root[data-brand="tuanphu"] .nav-link-item.active { background: var(--tp-side-active); color: var(--tp-yellow); }
:root[data-brand="tuanphu"] .nav-link-item.active::after { background: var(--tp-yellow); box-shadow: none; }
:root[data-brand="tuanphu"] .sidebar :focus-visible { outline-color: var(--tp-yellow); }
:root[data-brand="tuanphu"] .sidebar-foot { border-top-color: rgba(255, 255, 255, .2); }
:root[data-brand="tuanphu"] .sidebar-user { color: var(--tp-side-muted); }
:root[data-brand="tuanphu"] .sidebar-foot .btn-outline-secondary {
  --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, .45);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(255, 255, 255, .12); --bs-btn-hover-border-color: #fff;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: rgba(255, 255, 255, .12); --bs-btn-active-border-color: #fff;
}

/* ----- Thanh trên: vạch vàng trước tiêu đề, giống tiêu đề mục trên website ----- */
:root[data-brand="tuanphu"] .topbar { border-top: 0; }
:root[data-brand="tuanphu"] .topbar-title::before { content: ""; display: inline-block; width: 26px; height: 3px; margin-right: 10px; vertical-align: middle; background: var(--tp-yellow); }

/* ----- Góc bo vuông hơn ----- */
:root[data-brand="tuanphu"] .card { --bs-card-border-radius: 8px; --bs-card-inner-border-radius: 7px; }
:root[data-brand="tuanphu"] :is(.panel, .dash-tile, .form-drawer, .party-card, .list-empty, .login-card) { border-radius: 8px; }
:root[data-brand="tuanphu"] .form-drawer > summary { border-radius: 8px; }
:root[data-brand="tuanphu"] .form-drawer[open] > summary { border-radius: 8px 8px 0 0; }
:root[data-brand="tuanphu"] :is(.btn, .btn-primary, .nav-link-item, .icon-btn, .form-control, .form-select, .step-btn, .svc-tab, .svc-card, .svc-logo, .track-tile) { border-radius: 6px; }
:root[data-brand="tuanphu"] .item-row { border-radius: 6px !important; }
@media (max-width: 767.98px) {
  :root[data-brand="tuanphu"] .table-responsive > .table > tbody > tr { border-radius: 8px; }
  :root[data-brand="tuanphu"] .card > .table-responsive > .table > tbody > tr { border-radius: 0; }
}

/* ----- Thay các chỗ site.css ghi cứng màu đỏ ----- */
:root[data-brand="tuanphu"] .btn-link { --bs-btn-color: var(--sl-link); --bs-btn-hover-color: var(--sl-link); --bs-btn-active-color: var(--sl-link); }
:root[data-brand="tuanphu"] .table { --bs-table-hover-bg: var(--tp-tint-soft); }
:root[data-brand="tuanphu"] .table > thead th { background: var(--tp-tint); color: var(--sl-link); }
:root[data-brand="tuanphu"] :is(.form-control, .form-select):focus { box-shadow: 0 0 0 .2rem var(--tp-focus); }
:root[data-brand="tuanphu"] .svc-tab.active { background: var(--tp-tint); }
:root[data-brand="tuanphu"] .svc-card.selected { background: var(--tp-tint-soft); }
:root[data-brand="tuanphu"] .party-avatar { background: var(--tp-tint); }
:root[data-brand="tuanphu"] .tp-search-list li.active { background: var(--tp-tint); }

/* ----- Thanh dưới trên điện thoại: nút tạo đơn màu vàng ----- */
:root[data-brand="tuanphu"] .bottom-create .bottom-plus { background: var(--tp-yellow); color: var(--tp-ink); }

/* ----- Đăng nhập: dải chuyển màu lấy từ website ----- */
:root[data-brand="tuanphu"] .login-shell { background: linear-gradient(70deg, var(--tp-green) 36%, var(--tp-yellow) 100%); }
:root[data-brand="tuanphu"][data-theme="dark"] .login-shell { background: linear-gradient(70deg, #06351f 36%, #0b5a38 100%); }
:root[data-brand="tuanphu"][data-theme="light"] .login-theme { color: var(--tp-ink); }
:root[data-brand="tuanphu"][data-theme="light"] .login-theme:hover { background: rgba(20, 40, 29, .1); color: var(--tp-ink); }
:root[data-brand="tuanphu"] .login-brand { padding: 10px 12px; background: #fff; border-radius: 6px; }
:root[data-brand="tuanphu"] .login-brand .brand-logo { width: 240px; flex-basis: 240px; margin: 0 auto; }

/* ----- Roboto (giấy phép mã nguồn mở), lưu cục bộ để không phụ thuộc mạng ngoài ----- */
@font-face { font-family: "TP Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "TP Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "TP Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "TP Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "TP Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "TP Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "TP Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "TP Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "TP Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
