/* ============================================================
   Trade OS — styles theo design system chung (styles.css variables)
   Dùng biến: --text, --text-muted, --accent, --accent-2, --bg, --bg-card,
   --bg-soft, --bg-hover, --border, --shadow-sm. Tab dùng .tab-btn global.
   ============================================================ */

.tos-wrap { max-width: none; margin: 0; padding: 22px 30px; }

.tos-head { display: flex; align-items: center; gap: 10px; }
.tos-head .tos-icon { font-size: 26px; }
.tos-head h1 { margin: 0; font-size: 20px; font-weight: 700; color: var(--text); }
.tos-sub { margin: 2px 0 14px; font-size: 13px; color: var(--text-muted); }

.tos-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.tos-tabs .tab-btn { padding: 11px 18px; font-size: 13px; border-bottom-width: 2px; }

/* Toolbar (tiêu đề khu + nút) */
.tos-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.tos-toolbar h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--text); }
.tos-toolbar .muted { color: var(--text-muted); font-weight: 500; }

/* Bảng — đồng bộ look với Commercial Plan/Warehouse */
.tos-table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); }
.tos-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 880px; }
.tos-table thead th { background: var(--bg-soft); color: var(--text-muted); text-align: left; padding: 10px 12px; font-weight: 600; font-size: 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tos-table tbody td { padding: 9px 12px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: top; }
.tos-table tbody tr:last-child td { border-bottom: none; }
.tos-table tbody tr:hover { background: var(--bg-hover); }
.tos-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.tos-table .sub { font-size: 11px; color: var(--text-muted); }

/* Card danh sách (inbox) */
.tos-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow-sm); cursor: pointer; transition: box-shadow .15s, transform .15s; }
.tos-card:hover { box-shadow: 0 4px 16px rgba(15,23,42,.08); transform: translateY(-1px); }
.tos-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.tos-card-name { font-weight: 700; color: var(--text); }
.tos-card-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.tos-card-body { font-size: 13px; color: var(--text); line-height: 1.5; }

.tos-badge { border-radius: 20px; padding: 2px 10px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.tos-pill { border-radius: 8px; padding: 4px 10px; font-size: 12px; font-weight: 700; }

.tos-empty { border: 1px dashed var(--border); border-radius: 12px; padding: 40px; text-align: center; color: var(--text-muted); font-size: 14px; background: var(--bg-soft); }
.tos-note { font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.tos-warn { background: #fffbeb; border: 1px dashed #fde68a; border-radius: 8px; padding: 8px 12px; font-size: 12px; color: #92400e; }

/* Chuông thông báo */
.tos-bell { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; width: 38px; height: 38px; font-size: 18px; cursor: pointer; line-height: 1; }
.tos-bell:hover { background: var(--bg-hover); }
.tos-bell-badge { position: absolute; top: -6px; right: -6px; background: #dc2626; color: #fff; border-radius: 10px; min-width: 18px; height: 18px; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
