/* LinsGeek ERP —— 发票管理里的「Shopee FBS」页面（配合 88-shopee-fbs.js）。回滚：删除这两个文件。 */
#lg-fbs, .fbs-toast { --f-brand: #0d7b6d; --f-soft: #e7f2f0; --f-ink: #0f1a18; --f-muted: #5f6e6b; --f-line: rgba(15, 35, 30, .08); font-family: 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif; color: var(--f-ink); font-size: 13.5px; }
#lg-fbs { padding: 4px 0 24px; max-width: 1280px; min-width: 0; }
#lg-fbs *, #lg-fbs *::before, #lg-fbs *::after { box-sizing: border-box; }
#lg-fbs .fbs-head { margin-bottom: 14px; }
#lg-fbs .fbs-head h1 { margin: 0; font-size: 24px; font-weight: 700; }
#lg-fbs .fbs-head p { margin: 4px 0 0; color: var(--f-muted); max-width: 760px; line-height: 1.5; }
#lg-fbs .fbs-panel { background: #fff; border: 1px solid var(--f-line); border-radius: 20px; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 18px 40px -32px rgba(13,123,109,.45); overflow: hidden; }
#lg-fbs .fbs-pad { padding: 20px; margin: 0; }
#lg-fbs .fbs-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 0 16px; border-bottom: 1px solid var(--f-line); }
#lg-fbs .fbs-tabs { display: flex; gap: 6px; align-self: stretch; }
#lg-fbs .fbs-tab { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; min-height: 54px; font-size: 14.5px; color: #4b5a57; border-bottom: 2px solid transparent; white-space: nowrap; font-family: inherit; }
#lg-fbs .fbs-tab b { font-size: 11.5px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #eef2f1; display: inline-flex; align-items: center; justify-content: center; }
#lg-fbs .fbs-tab.hot b { background: #fdecec; color: #d64545; }
#lg-fbs .fbs-tab.on { color: var(--f-brand); font-weight: 700; border-bottom-color: var(--f-brand); }
#lg-fbs .fbs-tab.on.hot b { background: #d64545; color: #fff; }
#lg-fbs .fbs-shop { display: flex; align-items: center; gap: 8px; color: var(--f-muted); margin: 8px 0; }
#lg-fbs select, #lg-fbs input { height: 34px; border: 1px solid #d5dedb; border-radius: 8px; padding: 0 8px; font: inherit; color: var(--f-ink); background: #fff; min-width: 0; }
#lg-fbs select:focus, #lg-fbs input:focus { outline: none; border-color: var(--f-brand); box-shadow: 0 0 0 3px rgba(13,123,109,.12); }
#lg-fbs .fbs-body { padding: 16px; }
#lg-fbs .fbs-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
#lg-fbs .fbs-form label { display: flex; flex-direction: column; gap: 4px; color: var(--f-muted); font-size: 12.5px; }
#lg-fbs .fbs-form label input, #lg-fbs .fbs-form label select { font-size: 13.5px; }
#lg-fbs .fbs-acts { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; }
#lg-fbs .fbs-acts .fbs-muted { margin: 0; max-width: 640px; }
#lg-fbs .fbs-btn { height: 34px; padding: 0 16px; border-radius: 17px; border: 1px solid #d5dedb; background: #fff; color: var(--f-ink); cursor: pointer; white-space: nowrap; font: inherit; }
#lg-fbs .fbs-btn.pri { background: var(--f-brand); border-color: var(--f-brand); color: #fff; }
#lg-fbs .fbs-btn.sm { height: 28px; padding: 0 12px; }
#lg-fbs .fbs-btn:disabled { opacity: .45; cursor: not-allowed; }
#lg-fbs .fbs-link { border: 0; background: none; color: var(--f-brand); cursor: pointer; padding: 4px 0; font: inherit; }
#lg-fbs button:focus-visible { outline: 2px solid #13b8a6; outline-offset: 2px; }
#lg-fbs h4 { margin: 18px 0 8px; font-size: 14.5px; }
#lg-fbs .fbs-th { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--f-line); margin-top: 6px; }
#lg-fbs .fbs-kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 12px; margin: 0; }
#lg-fbs .fbs-kv dt { color: var(--f-muted); }
#lg-fbs .fbs-kv dd { margin: 0; }
#lg-fbs .fbs-alert { background: #fdecec; color: #a12a2a; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; line-height: 1.5; }
#lg-fbs .ok { color: var(--f-brand); }
#lg-fbs .bad, #lg-fbs .fbs-bad, #lg-fbs .fbs-err { color: #b93131; }
#lg-fbs .fbs-err { min-height: 18px; margin: 6px 0 0; }
#lg-fbs .fbs-muted { color: var(--f-muted); font-size: 12.5px; }
#lg-fbs .fbs-wrap { overflow: auto; max-height: 520px; border: 1px solid var(--f-line); border-radius: 12px; }
#lg-fbs table { width: 100%; border-collapse: collapse; font-size: 13px; }
#lg-fbs th { position: sticky; top: 0; background: #f6f9f8; text-align: left; font-weight: 600; color: var(--f-muted); }
#lg-fbs th, #lg-fbs td { padding: 9px 12px; border-bottom: 1px solid var(--f-line); vertical-align: top; }
#lg-fbs td small { color: var(--f-muted); }
.fbs-toast { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 3100; background: #0f1a18; color: #fff; padding: 9px 18px; border-radius: 10px; }
/* 仓库「Shopee Full」页面头部的「FBS 发票」按钮：靠右，紧挨着「同步」（页头是 space-between，不加会飘在中间） */
#lg-sfl .sfl-head [data-lg-fbs] { margin-left: auto; margin-right: -6px; }
aside [data-lg-fbs-item] div.lg-fbs-active { background: #E8F8F6 !important; color: #0d7b6d; }
body.lg-fbs-on aside li:not([data-lg-fbs-item]) .\!bg-\[\#E8F8F6\] { background: transparent !important; }
@media (max-width: 900px) { #lg-fbs .fbs-form { grid-template-columns: 1fr 1fr; } #lg-fbs .fbs-kv { grid-template-columns: 1fr; } #lg-fbs .fbs-acts { flex-direction: column; align-items: stretch; } }
