.sortable { cursor: pointer; user-select: none; }
.sortable:hover { background: #f0f3f8; color: #343640; }
.inline-select { cursor: pointer; appearance: auto; outline-color: #0073ea; border: 0; }
.group-select { cursor: pointer; appearance: auto; border: 0; outline-color: #0073ea; }
.group-select:disabled { cursor: not-allowed; opacity: .55; }
.inline-select:disabled { cursor: not-allowed; opacity: .55; }
.inline-comment { width: 160px; border: 0; border-bottom: 1px solid transparent; padding: 4px 2px; font: inherit; font-size: 12px; color: #4d5060; outline: none; background: transparent; }
.inline-comment:focus { border-bottom-color: #0073ea; background: #fff; }
.locked-comment { color: #8d8f98; font-size: 12px; }
.latest-comment { color: #4a5270; font-weight: 500; }
.edit-lead { margin-left: 7px; padding: 0; border: 0; background: transparent; color: #7d8aa0; font-size: 11px; font-weight: 650; cursor: pointer; opacity: .45; }
tr:hover .edit-lead { opacity: 1; color: #176cc0; text-decoration: underline; }
.board-groups-table { border-collapse: separate; border-spacing: 0; }
.board-groups-table .lead-group-heading td { background: transparent; color: #2878c8; font-size: 15px; letter-spacing: 0; font-weight: 700; padding: 12px 10px 8px; border-top: 16px solid #edf0f4; border-bottom: 1px solid #d4e5f7; box-shadow: inset 3px 0 0 #72b4f5; }
.board-groups-table .lead-group-heading:first-child td { border-top-width: 6px; }
.board-groups-table .lead-group-heading small { margin-left: 8px; color: #8da8c4; font-size: 11px; font-weight: 650; letter-spacing: 0; }
.live-dot { display: inline-block; width: 8px; height: 8px; margin: 0 7px 1px 1px; border-radius: 50%; background: #2d94f6; vertical-align: middle; box-shadow: 0 0 0 0 rgba(45,148,246,.55); animation: live-pulse 1.7s infinite; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 7px rgba(45,148,246,0); } 100% { box-shadow: 0 0 0 0 rgba(45,148,246,0); } }
.rename-group { margin-left: 9px; border: 0; background: transparent; color: #5d8fbe; font-size: 11px; font-weight: 650; cursor: pointer; opacity: .65; }
.rename-group:hover { opacity: 1; color: #176cc0; text-decoration: underline; }
.group-summary td { background: transparent; border-top: 1px solid #e1e5eb; border-bottom: 0; padding: 8px 12px; color: #7d8593; font-size: 11px; }
.group-summary span { display: inline-block; margin-right: 18px; }
.group-summary b { color: #353943; margin-left: 3px; }
.group-summary strong { display: inline-block; border-left: 1px solid #d5dae5; padding-left: 17px; color: #176cc0; font-size: 12px; }
.board-groups-table .lead-group-heading + tr td { border-top: 0; }
.lead-actions { min-width: 185px; white-space: nowrap; }
.separate-lead { border: 1px solid #9cc5f6; border-radius: 4px; background: #fff; color: #176cc0; padding: 5px 8px; font-size: 11px; font-weight: 700; cursor: pointer; }
.move-lead { margin-left: 5px; border: 1px solid #d5dbe6; border-radius: 4px; background: #fff; color: #576074; padding: 5px; font-size: 11px; max-width: 115px; }
.lead-checkbox { width: 38px; text-align: center; }
.lead-checkbox input { width: 16px; height: 16px; accent-color: #0073ea; cursor: pointer; }
.select-column { width: 38px; text-align: center; }
.selection-toolbar { display: flex; align-items: center; gap: 10px; min-height: 47px; margin-bottom: 10px; padding: 8px 11px; border: 1px solid #b7d8fb; border-radius: 6px; background: #eef7ff; color: #23598f; font-size: 13px; }
.selection-toolbar button { border: 1px solid #78b5ef; border-radius: 4px; background: #fff; color: #176cc0; padding: 6px 9px; font-weight: 700; cursor: pointer; }
.selection-toolbar select { border: 1px solid #b9d4ee; border-radius: 4px; background: #fff; color: #285987; padding: 6px; font-size: 12px; }
.selection-toolbar .clear-selection { margin-left: auto; min-width: 28px; color: #657a92; }
.danger { border: 1px solid #e2445c; border-radius: 5px; background: #fff; color: #c82d47; padding: 9px 13px; font-weight: 650; cursor: pointer; }
.dialog-spacer { flex: 1; }
.status.Contratado_Free { background: #d9f1ff; color: #12678e; }
.status.Sin_clasificar { background: #e8e9ee; color: #676879; }
.status.No_contratado { background: #ffe6d3; color: #b55616; }
.status.Sin_asiganacion { background: #e8e9ee; color: #676879; }
.status.Mixed { background: #eee7ff; color: #6845bb; }
.contact-parent td { background: #fff; border-top: 0; font-weight: inherit; }
.contact-parent:hover td { background: #fbfcff; }
.contact-parent .applicant { color: #333; font-weight: 650; }
.expand-contact { border: 0; background: transparent; color: #7c8799; width: 15px; height: 15px; margin-left: 4px; padding: 0; cursor: pointer; font-size: 15px; line-height: 12px; vertical-align: -1px; }
.subitem-count { margin-left: 5px; color: #9399a5; font-size: 10px; font-weight: 600; }
.subitem-row td { background: #fff; color: inherit; }
.subitem-row td:first-child { padding-left: 10px; color: #333; font-weight: 650; }
.settings-button { margin: 5px 0 0; border: 0; background: transparent; text-align: left; color: #5b5d68; padding: 10px; font-size: 14px; cursor: pointer; }
.sheet-label { color: #323338; font-size: 14px; font-weight: 650; padding: 8px 14px; border-bottom: 2px solid #0073ea; }
.date-views { display: flex; align-items: center; gap: 5px; margin-left: 4px; }
.date-views[hidden] { display: none; }
.period-switch { display: flex; border: 1px solid #d8dce5; border-radius: 5px; overflow: hidden; }
.period-button { border: 0; background: #fff; color: #626574; padding: 6px 10px; font-size: 12px; cursor: pointer; }
.period-button + .period-button { border-left: 1px solid #d8dce5; }
.period-button.active { background: #e8f3ff; color: #1269b0; font-weight: 750; }
.period-nav { border: 0; background: transparent; color: #5c6373; font-size: 21px; line-height: 22px; cursor: pointer; }
.period-label { min-width: 155px; text-align: center; color: #545765; font-size: 12px; font-weight: 650; }
.period-today { border: 0; background: transparent; color: #176cc0; font-size: 11px; font-weight: 700; cursor: pointer; }
.settings-button:hover { background: #e7e7ee; border-radius: 5px; }
.settings-label { display: grid; gap: 6px; font-size: 12px; color: #5b5c66; font-weight: 650; }
.settings-label input { font: inherit; font-size: 13px; border: 1px solid #d4d6dd; border-radius: 4px; padding: 9px; outline-color: #0073ea; }
.settings-help { color: #777; font-size: 12px; margin: 8px 0 15px; }
.assignee-list { max-height: 180px; overflow: auto; border: 1px solid #e1e4ea; border-radius: 5px; padding: 4px 10px; }
.assignee-list div { display: flex; align-items: center; gap: 8px; padding: 8px 1px; border-bottom: 1px solid #eff0f3; font-size: 13px; }
.assignee-list div:last-child { border-bottom: 0; }
.assignee-list span { width: 9px; height: 9px; border-radius: 3px; background: #0073ea; }
body { background: #e9edf2; }
.auth-screen { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: #edf0f4; }
.auth-screen.hidden { display: none; }
.login-card { width: min(390px, calc(100% - 32px)); padding: 34px; background: #fff; border: 1px solid #dce1e8; border-radius: 12px; box-shadow: 0 18px 45px #34415a18; display: grid; gap: 13px; }
.login-logo span { display: inline-block; border-radius: 8px; padding: 4px 8px; background: linear-gradient(135deg,#f65a7a,#367fe7); color: #fff; font-weight: 800; }
.login-card h1 { margin: 4px 0 -9px; font-size: 24px; }.login-card p { margin: 0; color: #747a89; font-size: 13px; }
.login-card label { display: grid; gap: 6px; color: #535968; font-size: 12px; font-weight: 650; }.login-card input,.team-form input { border: 1px solid #d4d9e2; border-radius: 5px; padding: 10px; font: inherit; font-size: 14px; outline-color: #0073ea; }
.login-card .primary { margin-top: 5px; }.login-error { color: #c22b45 !important; }.logout { margin-left: auto; border: 0; background: transparent; color: #777e8e; cursor: pointer; font-size: 17px; }
.team-settings { margin-top: 20px; padding-top: 17px; border-top: 1px solid #e3e6ec; }.team-title h3 { margin: 0; font-size: 15px; }.team-title p { margin: 4px 0 11px; color: #777; font-size: 12px; }.team-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.team-form input:nth-child(3) { grid-column: 1 / -1; }.team-form button { grid-column: 1 / -1; justify-self: start; }.team-list { margin-top: 10px; }.team-role { margin-left: auto; color: #6a9b3a; font-size: 10px; font-weight: 700; }
.brand-copy { display: grid; gap: 1px; }
.brand-copy small { color: #858b98; font-size: 10px; font-weight: 650; letter-spacing: .1px; }
.workspace-menu { margin: 5px 0 0; padding: 5px; border: 1px solid #d9dee7; border-radius: 6px; background: #fff; box-shadow: 0 8px 18px #29354a16; }
.workspace-menu[hidden] { display: none; }.workspace-option,.workspace-create { display: flex; align-items: center; gap: 7px; width: 100%; border: 0; border-radius: 4px; background: transparent; padding: 8px; color: #4d5564; font-size: 12px; text-align: left; cursor: pointer; }.workspace-option:hover,.workspace-option.active { background: #edf4ff; color: #176cc0; }.workspace-create { margin-top: 3px; border-top: 1px solid #edf0f4; border-radius: 0; color: #176cc0; font-weight: 650; }
.applicant,.contact-parent .applicant,.subitem-row td:first-child { font-weight: 400; }
.applicant.hired-name { font-weight: 700; }
.main,.content { background: #edf0f4; }
.topbar { background: #f3f5f8; }
.table-wrap { background: #f7f8fa; }
th { background: #eef1f5; }
td,.contact-parent td,.subitem-row td { background: #f8f9fb; }
tr:hover td,.contact-parent:hover td { background: #f1f5fa; }
.balance-dashboard { padding-top: 18px; }.balance-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 16px; }.balance-heading h2,.weekly-list h2 { margin: 0; font-size: 17px; color: #303642; }.balance-heading p { margin: 5px 0 0; color: #7b8392; font-size: 12px; }.balance-heading > span { color: #5c7899; font-size: 12px; font-weight: 700; }.balance-cards { display: grid; grid-template-columns: repeat(6, minmax(110px, 1fr)); gap: 10px; }.balance-card { min-height: 92px; padding: 14px; border-radius: 8px; background: #f7f9fc; border: 1px solid #e0e6ef; display: grid; align-content: space-between; }.balance-card span { color: #707989; font-size: 11px; font-weight: 650; }.balance-card strong { color: #2f3745; font-size: 28px; }.balance-card.hired { border-bottom: 3px solid #3ebd7c; }.balance-card.not-hired { border-bottom: 3px solid #ed9b54; }.balance-card.no-show { border-bottom: 3px solid #e05d73; }.balance-card.pending { border-bottom: 3px solid #dfb338; }.balance-card.free { border-bottom: 3px solid #58a6e7; }.balance-card.total { border-bottom: 3px solid #6e83a0; }.weekly-list { margin-top: 22px; }.weekly-table { margin-top: 10px; border: 1px solid #dde3eb; border-radius: 7px; overflow: hidden; background: #f9fafc; }.weekly-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 12px; padding: 11px 14px; border-bottom: 1px solid #e8ecf1; color: #4e5969; font-size: 13px; }.weekly-row:last-child { border-bottom: 0; }.weekly-head { background: #eef2f6; color: #7a8493; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .4px; }.weekly-row span:last-child { color: #3177ba; font-weight: 650; }.weekly-result { color: #586273 !important; }@media (max-width: 900px) { .balance-cards { grid-template-columns: repeat(3, 1fr); } }.balance-dashboard .empty { background: transparent; }
.compensation-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }.compensation-summary article { padding: 14px; border: 1px solid #dce7f3; border-radius: 8px; background: #f6faff; display: grid; gap: 5px; }.compensation-summary span { color: #5f7690; font-size: 12px; font-weight: 700; }.compensation-summary strong { color: #1e70bd; font-size: 24px; }.compensation-summary small { color: #8291a2; font-size: 11px; }.rate-table { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); border: 1px solid #dfe5ed; border-radius: 6px; overflow: hidden; background: #fff; }.rate-head,.rate-label,.rate-input { min-width: 0; padding: 9px; border: 0; border-bottom: 1px solid #e8ecf1; font-size: 12px; }.rate-head { background: #edf3f9; color: #667488; font-size: 10px; font-weight: 750; text-transform: uppercase; }.rate-label { color: #4d5868; font-weight: 650; }.rate-input { border-left: 1px solid #edf0f4; outline-color: #0073ea; }.save-rates { margin-top: 12px; }
.weekly-row { grid-template-columns: 1.35fr .95fr 1fr 1fr .9fr .9fr .9fr .95fr; }.weekly-row .payment-cell { color: #2c7ec8 !important; font-variant-numeric: tabular-nums; }.payment-total { color: #176cc0; font-variant-numeric: tabular-nums; }
.weekly-total { background: #edf5ff; border-top: 2px solid #bfd9f6; color: #2f5d8d; font-weight: 750; }.weekly-total strong { color: #246daf; font-variant-numeric: tabular-nums; }
.balance-sort { cursor: pointer; user-select: none; }.balance-sort:hover { color: #176cc0; }
#settings-dialog { width: min(780px, calc(100% - 28px)); }
#settings-dialog form { padding: 0; }
#settings-dialog .dialog-head { padding: 24px 26px 18px; margin: 0; border-bottom: 1px solid #e4e8ee; }
#settings-dialog .settings-section { margin: 16px 26px; padding: 18px; border: 1px solid #e0e5ed; border-radius: 8px; background: #f8fafc; }
#settings-dialog .team-settings { margin-top: 14px; border-top: 1px solid #e0e5ed; }
#settings-dialog .team-title { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
#settings-dialog .team-title h3 { color: #2e3440; font-size: 15px; }
#settings-dialog .team-title p { margin: 0 0 14px; color: #7a8190; font-size: 12px; }
#settings-dialog .settings-label { color: #4d5564; }
#settings-dialog .settings-label input { height: 39px; background: #fff; }
#settings-dialog .assignee-list { margin-top: 13px; max-height: 135px; background: #fff; border-color: #e1e6ee; }
#settings-dialog .assignee-list div { padding: 9px 2px; color: #4f5868; }
#settings-dialog .team-form { grid-template-columns: 1fr 1.2fr 1fr auto; align-items: end; }
#settings-dialog .team-form input:nth-child(3),#settings-dialog .team-form button { grid-column: auto; }
#settings-dialog .team-form input { min-width: 0; height: 39px; background: #fff; }
#settings-dialog .team-form button { height: 39px; white-space: nowrap; }
#settings-dialog .dialog-actions { margin: 18px 26px 24px; }
@media (max-width: 700px) { #settings-dialog .team-form { grid-template-columns: 1fr; } #settings-dialog .team-form input:nth-child(3),#settings-dialog .team-form button { grid-column: auto; justify-self: stretch; } }
/* ── Invoice layout ─────────────────────────────── */
.balance-dashboard { padding-top: 14px; }
.invoice-wrap { background: #fff; border: 1px solid #d8e2ef; border-radius: 10px; overflow: hidden; box-shadow: 0 3px 16px rgba(0,0,0,.07); }
.invoice-header { display: flex; align-items: flex-start; gap: 20px; padding: 24px 28px 20px; background: #f3f7fc; border-bottom: 2px solid #d8e2ef; }
.invoice-brand { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.invoice-logo-mark { width: 38px; height: 38px; background: #0073ea; color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; letter-spacing: -.5px; flex-shrink: 0; }
.invoice-brand strong { display: block; font-size: 14px; color: #1e2638; margin-bottom: 2px; }
.invoice-brand span { font-size: 11px; color: #7a8395; }
.invoice-meta { text-align: right; flex-shrink: 0; }
.invoice-meta h2 { margin: 0 0 5px; font-size: 15px; color: #1e2638; font-weight: 750; }
.invoice-meta p { margin: 2px 0 0; font-size: 12px; color: #5a6478; }
.invoice-meta .invoice-emitted { font-size: 10px; color: #9aa3b0; margin-top: 5px; }
.compact-toggle-btn { align-self: center; padding: 6px 13px; font-size: 12px; height: auto; border-radius: 6px; white-space: nowrap; flex-shrink: 0; margin-left: 10px; }
/* Stats bar */
.invoice-stats { display: flex; background: #eaf0fa; border-bottom: 1px solid #d8e2ef; }
.invoice-stats span { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 10px 6px 8px; font-size: 10px; color: #6b7689; text-transform: uppercase; letter-spacing: .3px; border-right: 1px solid #d8e2ef; gap: 2px; }
.invoice-stats span:last-child { border-right: 0; }
.invoice-stats b { font-size: 20px; color: #1e2638; font-weight: 800; letter-spacing: -.5px; }
/* Role sections */
.invoice-roles { padding: 0 28px; }
.inv-role { border-bottom: 1px solid #e8edf5; padding: 22px 0 18px; }
.inv-role:last-child { border-bottom: 0; }
.inv-role-head { margin-bottom: 10px; display: flex; align-items: baseline; gap: 10px; }
.inv-role-head h3 { margin: 0; font-size: 11px; color: #2c5282; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; }
.inv-role-person { font-size: 13px; color: #3d4f68; font-weight: 650; }
.rate-person-label { font-style: italic; color: #5a7291; }
.rate-person-select { border: 1px solid #d8e2ef; border-left: 1px solid #edf0f4; border-radius: 0; padding: 7px 9px; font-size: 12px; color: #3d4656; background: #f9fafc; width: 100%; outline-color: #0073ea; }
/* Invoice table */
.inv-table-wrap { overflow-x: auto; }
.inv-table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 13px; }
.inv-table th { text-align: left; padding: 6px 12px; background: #f0f4fa; color: #6b7a8e; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .4px; border-bottom: 1px solid #d8e2ef; white-space: nowrap; }
.inv-table td { padding: 8px 12px; border-bottom: 1px solid #f0f3f8; color: #3d4656; }
.inv-table tr:last-child td { border-bottom: 0; }
.inv-table .inv-qty { text-align: right; font-variant-numeric: tabular-nums; width: 60px; white-space: nowrap; }
.inv-table .inv-rate { text-align: right; font-variant-numeric: tabular-nums; width: 100px; white-space: nowrap; }
.inv-table .inv-line { text-align: right; font-variant-numeric: tabular-nums; width: 100px; white-space: nowrap; font-weight: 650; color: #2f3745; }
.inv-base-row td { color: #5c7496; }
.inv-empty { text-align: center; color: #9aa3b0; font-style: italic; padding: 14px; }
/* Subtotal row */
.inv-subtotal-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; border-top: 1px solid #d8e2ef; background: #f8fafd; margin-top: 2px; }
.inv-subtotal-row span { color: #5a6478; font-size: 12px; font-weight: 700; }
.inv-subtotal-row strong { color: #2f3745; font-size: 15px; font-variant-numeric: tabular-nums; }
/* Adjustments (per-role list, read-only inside each section) */
.inv-adj-zone { padding: 2px 12px 8px; }
.inv-adj-list { list-style: none; margin: 0; padding: 0; }
.inv-adj-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #edf3fa; font-size: 13px; }
.inv-adj-list li:last-child { border-bottom: 0; }
.inv-adj-list li span { flex: 1; color: #4d5868; }
.inv-adj-list li strong { font-variant-numeric: tabular-nums; min-width: 80px; text-align: right; }
.adj-bonus strong { color: #217a4e; }
.adj-deduction strong { color: #c0392b; }
.adj-remove { background: none; border: none; color: #b0b8c4; font-size: 15px; cursor: pointer; padding: 0 4px; line-height: 1; border-radius: 4px; }
.adj-remove:hover { color: #e05d73; background: #fdf0f2; }
/* Global adjustment form bar (below header) */
.invoice-header-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; flex-shrink: 0; }
.inv-global-adj-form-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 28px; background: #edf5ff; border-bottom: 1px solid #c5d9f5; }
.inv-global-adj-form-bar select { height: 36px; font-size: 13px; background: #fff; border: 1px solid #b8d0ed; border-radius: 6px; padding: 0 10px; color: #1e3a5f; font-weight: 650; min-width: 200px; }
.inv-global-adj-form-bar input { flex: 1; min-width: 130px; height: 36px; font-size: 13px; background: #fff; border: 1px solid #b8d0ed; border-radius: 6px; padding: 0 10px; }
.inv-global-adj-form-bar button { padding: 7px 16px; font-size: 13px; height: auto; white-space: nowrap; }
/* Role total */
.inv-role-total { display: flex; justify-content: space-between; align-items: center; padding: 11px 10px; margin-top: 10px; background: #edf5ff; border: 1px solid #c5d9f5; border-radius: 7px; }
.inv-role-total span { color: #2c5282; font-size: 13px; font-weight: 700; }
.inv-role-total strong { color: #0f6db5; font-size: 17px; font-variant-numeric: tabular-nums; font-weight: 800; }
/* Grand total */
.invoice-grand-total { display: flex; justify-content: space-between; align-items: center; padding: 18px 28px; background: #1a2a42; color: #fff; }
.invoice-grand-total span { font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; opacity: .8; }
.invoice-grand-total strong { font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
/* Weekly list inside invoice */
.invoice-wrap .weekly-list { padding: 22px 28px; border-top: 1px solid #d8e2ef; }
.invoice-wrap .weekly-list h2 { font-size: 13px; color: #4d5868; margin: 0 0 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
@media (max-width: 700px) { .invoice-stats { flex-wrap: wrap; } .invoice-stats span { min-width: 33%; } .invoice-header { flex-wrap: wrap; } .invoice-meta { text-align: left; } }
/* ── Balance general table ───────────────────────── */
.bg-table-wrap { overflow-x: auto; padding: 20px 28px 28px; }
.bg-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bg-table th,.bg-table td { border: 1px solid #dde4ef; padding: 7px 10px; }
.bg-concept-head { background: #f0f4fa; color: #4d5868; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .4px; min-width: 160px; text-align: left; }
.bg-grand-head { background: #e8f0fb; color: #2c5282; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .4px; text-align: right; white-space: nowrap; }
.bg-role-head { background: #edf3fb; color: #1e3a6e; font-size: 12px; font-weight: 750; text-align: center; border-bottom: 2px solid #b8d0f0; }
.bg-role-head small { display: block; font-size: 11px; color: #4a6fa8; font-weight: 500; margin-top: 2px; }
.bg-sub { background: #f4f7fc; color: #7a8899; font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .3px; text-align: right; white-space: nowrap; }
.bg-concept { color: #3d4656; font-size: 13px; background: #fafbfd; }
.bg-qty,.bg-rate,.bg-line,.bg-grand { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bg-qty { color: #5a6a80; font-size: 12px; background: #fafbfd; }
.bg-rate { color: #7a8899; font-size: 12px; background: #fafbfd; }
.bg-line { color: #2f3d52; background: #fafbfd; }
.bg-grand { background: #edf3fb; color: #1a3a6e; font-weight: 700; }
.bg-base .bg-concept,.bg-base .bg-qty,.bg-base .bg-rate,.bg-base .bg-line { color: #5c7496; font-style: italic; }
.bg-subtotal td { background: #f0f5fc; border-top: 2px solid #c5d5ec; }
.bg-subtotal .bg-concept { font-weight: 700; color: #2c4a72; font-style: normal; }
.bg-subtotal-cell { font-weight: 750; color: #1a3a6e; }
.bg-adj-row td { background: #fffdf5; }
.bg-adj-label { color: #7a6a30; font-size: 12px; }
.bg-adj-label small { color: #a08840; }
.bg-bonus { color: #217a4e; font-weight: 650; }
.bg-deduction { color: #b83232; font-weight: 650; }
.bg-total-row td { background: #1a2a42; color: #fff; border-color: #1a2a42; font-weight: 800; }
.bg-total-row .bg-concept { color: #c5d8f5; font-size: 11px; letter-spacing: .8px; text-transform: uppercase; }
.bg-total-row .bg-qty,.bg-total-row .bg-rate { background: #1a2a42; }
.bg-total-cell { font-size: 15px; color: #7dd3fc; background: #1a2a42; }
.bg-total-row .bg-grand { background: #0f1e35; color: #fff; font-size: 16px; }
