/*
   EBS 線框預覽外框與規格標註（非 ColaIT 公版；實作 .aspx 時整支不用）
   引用順序：ColaSpec-Site.css（外框）→ ColaEBS.css（公版）→ A18C.css（專案，B-02 先公版後專案）→ 本檔 → JS/ColaSpec-Frame.js
   程式畫面一律包在 .demo-box 裡，只吃公版＋專案 CSS；本檔負責把站台 CSS 的全域設定擋在程式畫面外，
   另放只給看線框用的麵包屑、灰字欄位提示、圓號標註。
*/

/* ===== 線框頁加寬：站台上限 1280，線框放寬到 1440，內容區約 1110px，放得下 1060 寬的畫面；更寬的在虛線框內左右捲 ===== */
.site-main,
.site-footer { max-width: 1440px; }

@media (max-width: 1472px) {
    .site-main,
    .site-footer { margin-left: 16px; margin-right: 16px; }
}

/* ===== 頁首 ===== */
.nav-toggle { text-decoration: none; }                      /* 站台用 <button>；這裡用 <a>，拿掉連結預設底線 */
.nav-drop a.is-current { color: #1f3a5f; font-weight: bold; }
/* 定版標記：工作版沒定版的線框標「未定版」；打包時連到包裡沒有的檔，跳一行提示 */
.wf-draft { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid #e1c98a; border-radius: 3px; background: #fdf6e3; color: #8a6d17; font-size: 11px; line-height: 16px; vertical-align: 1px; }
.wf-draft.wf-old { border-color: #c9ced6; background: #f1f3f6; color: #5f6b7a; }   /* 未改版（還沒套新樣板）：灰色，跟黃色的未定版區分 */
/* 交付版本與更新（E-03 §八）：頁首版本、「新」小標、最近更新表、線框頁頂提示、資料庫規格的更新異動紀錄 */
.site-ver { margin-left: 12px; padding: 1px 8px; border-radius: 3px; background: rgba(255,255,255,.18); font-size: 12px; font-weight: normal; vertical-align: 2px; }
.site-ver.is-work { background: rgba(0,0,0,.18); }
.wf-new { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid #f0b4a8; border-radius: 3px; background: #fdecea; color: #b42318; font-size: 11px; line-height: 16px; vertical-align: 1px; font-weight: normal; }
.chg-head { margin: 4px 0 10px; }
.chg-list, .chg-sheet { width: 100%; border-collapse: collapse; font-size: 13px; }
.chg-list th, .chg-list td, .chg-sheet th, .chg-sheet td { border: 1px solid #dbe3ef; padding: 6px 8px; text-align: left; vertical-align: top; }
.chg-list th, .chg-sheet th { background: #f3f7ff; color: #2b4a7f; white-space: nowrap; }
.chg-list td.d, .chg-sheet td.d { white-space: nowrap; font-variant-numeric: tabular-nums; }
.chg-list td.k { white-space: nowrap; color: #5f6b7a; }
.chg-list td.n { white-space: nowrap; }
.chg-list td.n a span { margin-left: 6px; color: #5f6b7a; }
.chg-old { margin-top: 10px; }
h2.chg-old { margin-top: 32px; }   /* 更新紀錄頁：各交付版分段標題，跟上一張表隔開 */
.chg-old summary { cursor: pointer; color: #5f6b7a; }
.chg-bar { margin: 0 0 16px; padding: 10px 14px; border: 1px solid #f0b4a8; border-left: 4px solid #d92d20; border-radius: 4px; background: #fff6f5; font-size: 14px; line-height: 1.7; }
.chg-bar b { color: #b42318; }
.sf-toast { position: fixed; left: 50%; bottom: 32px; z-index: 90; padding: 8px 16px; border-radius: 4px; background: #1f3a5f; color: #ffffff; font-size: 14px; transform: translateX(-50%); box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.nav-drop .nav-code { color: #95a0a6; font: 12px Consolas, monospace; }   /* 選單裡的代碼（aspx 名稱）灰字等寬 */
.spec-toggle { cursor: pointer; user-select: none; }
.spec-toggle input { margin: 0 4px 0 0; vertical-align: -2px; }
body > .spec-toggle { display: none; }                       /* 搬進頁首之前先不顯示 */

/* ===== 程式畫面（.demo-box 內）：維持 ColaEBS 原貌，跟實作 .aspx 一樣 ===== */
.demo-box .Panel,
.demo-box .Panel * { box-sizing: revert; }                   /* 擋掉 Site.css 的 * { border-box } */
.demo-box .Panel { font: initial; color: initial; }          /* 擋掉 Site.css 的 body 字型；連結由 Site.css 的 .demo-box a { all: revert } 還原 */

/* 麵包屑：代表 EBS 系統給的頁名（B-02「標題由上層 shell 麵包屑提供」），.aspx 自己不畫 */
.cr-breadcrumb {
    margin: -4px 0 12px 0;
    padding: 5px 12px;
    border-left: 3px solid #e67e22;
    border-radius: 0 4px 4px 0;
    background: #eef3f8;
    color: #5b6b7a;
    font-family: "Microsoft JhengHei", "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    text-align: left;
}
.cr-breadcrumb a { color: #2c3e50; text-decoration: none; }
.cr-breadcrumb a:hover { color: #e67e22; text-decoration: underline; }

/* 灰字 DB 欄位提示（規格標註，關掉標註時隱藏） */
.cr-inline-hint { margin-top: 2px; color: #666; font-size: 11px; }

/* 畫面裡的小節標（舊線框寫在 Panel 裡的 .spec-sec） */
.demo-box .spec-sec {
    margin: 16px 0 8px;
    padding-left: 8px;
    border-left: 4px solid #c3cbd4;
    color: #2c3e50;
    font: bold 14px "Microsoft JhengHei", "Segoe UI", Arial, sans-serif;
    text-align: left;
}

/* ===== 規格標註 cr-flag：畫面裡只放圓號（span），句子寫在該畫面虛線框正下方的對照區（div，號碼放 data-n） =====
   號碼每段畫面各自從 1 起；深藍＝一般規則，淺藍（cr-flag-new）＝本次新增、尚待業務裁決。對照區外框用 Site.css 的 .hint。 */
span.cr-flag,
div.cr-flag::before {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #1f3a5f;
    color: #ffffff;
    font: bold 11px/16px "Segoe UI", Arial, sans-serif;
    text-align: center;
    text-indent: 0;
}

span.cr-flag { margin-left: 4px; vertical-align: middle; }
div.cr-flag { padding-left: 22px; text-indent: -22px; }      /* 句子換行時對齊圓號右邊 */
div.cr-flag::before { content: attr(data-n); margin-right: 6px; vertical-align: 1px; }

span.cr-flag.cr-flag-new,
div.cr-flag.cr-flag-new::before {
    background-color: #dbeafe;
    box-shadow: inset 0 0 0 1px #8ab6e8;
    color: #14508f;
}

.req { color: red; font-weight: bold; }

/* 線框大綱卡片裡的徽章（原規格抬頭的「模組代碼 TBD」等） */
.spec-head .badge {
    display: inline-block;
    margin-left: 6px;
    padding: 0 8px;
    border-radius: 10px;
    background-color: #f7ecd2;
    color: #6b5713;
    font-size: 12px;
}

/* ===== 圖例與說明 ===== */
.spec-legend { font-size: 14px; }
.spec-legend h3 { margin: 0 0 6px; color: #2b4d7a; font-size: 15px; }
.spec-legend ul, .spec-legend ol { margin: 0; padding-left: 22px; }
.spec-legend li { margin: 3px 0; line-height: 1.8; }
.spec-legend > ol > li, .spec-legend > ul > li { margin-bottom: 1.6em; }   /* E-02：第一層每條之間空一行 */
.spec-legend > ol > li > b:first-child { color: #1f3a5f; }

/* ===== 規格標註開關：勾掉即隱藏所有標註，還原成實作後的真實畫面 ===== */
html.spec-off .spec-head,
html.spec-off .spec-legend,
html.spec-off .spec-only,
html.spec-off .cr-flag,
html.spec-off .cr-inline-hint,
html.spec-off .cr-readonly-note { display: none !important; }

/* ===== 資料庫規格：欄位卡（點畫面灰字的欄位名）＋抽屜（整張表）；資料檔在 db/（dbspec.py 從規格 MD 產生） ===== */
.cr-inline-hint .db-chip { color: #1f3a5f; text-decoration: underline dotted; text-underline-offset: 2px; cursor: pointer; }
.cr-inline-hint .db-chip:hover { color: #2b4d7a; text-decoration-style: solid; }

.db-pop {
    position: absolute;
    z-index: 60;
    width: 400px;
    padding: 12px 14px 10px;
    border: 1px solid #c3cbd4;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(31, 58, 95, .18);
    color: #2d3436;
    font: 14px/1.6 "Segoe UI", "Microsoft JhengHei", sans-serif;
}
.db-pop .x { position: absolute; top: 6px; right: 10px; border: 0; background: none; color: #95a0a6; font-size: 16px; cursor: pointer; }
.db-pop .grp { margin-bottom: 4px; color: #95a0a6; font-size: 12px; }
.db-pop .t { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.db-pop .t b { color: #1f3a5f; font-size: 15px; }
.db-pop .t code { color: #636e72; font: 13px Consolas, monospace; }
.db-pop .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.db-pop .d { font-size: 13px; line-height: 1.7; }
.db-pop .d code { padding: 0 4px; border-radius: 3px; background: #f0f3f7; font: 12px Consolas, monospace; }
.db-pop .f { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 8px; border-top: 1px solid #eef1f4; font-size: 13px; }
.db-pop .f a { margin-right: 10px; color: #1f3a5f; text-decoration: none; }
.db-pop .f a:hover { text-decoration: underline; }

.db-tag { display: inline-block; padding: 0 8px; border-radius: 10px; background: #f0f3f7; color: #1f3a5f; font-size: 12px; line-height: 20px; }
.db-tag.mono { font-family: Consolas, monospace; }
.db-tag.key { background: #1f3a5f; color: #ffffff; }
.db-tag.nn { background: #fdeeec; color: #96281b; }
.db-tag.nl { background: #f4f5f7; color: #7a848a; }
.db-tag.red { background: #fdf6e3; color: #8a6d17; }
.db-tag.blue { background: #e8f0fa; color: #1f3a5f; }

.db-bg { position: fixed; inset: 0; z-index: 70; background: rgba(15, 25, 40, .28); }
.db-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 71;
    width: min(860px, 94vw);
    max-width: 100%;
    overflow-y: auto;
    border-left: 1px solid #c3cbd4;
    background: #ffffff;
    box-shadow: -8px 0 24px rgba(0, 0, 0, .12);
    color: #2d3436;
    font: 14px/1.6 "Segoe UI", "Microsoft JhengHei", sans-serif;
}
.db-drawer .hd { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid #e1e4e8; background: #ffffff; }
.db-drawer .hd b { color: #1f3a5f; font-size: 16px; }
.db-drawer .hd code { color: #636e72; font: 13px Consolas, monospace; }
.db-drawer .hd .cn { color: #636e72; }
.db-drawer .hd .btn { margin: 0 0 0 auto; }
/* 一頁多表的頁籤：中文名＋短英文名，放不下自動換列（按鈕樣式，換列後不會接不上內容） */
.db-drawer .tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 18px; border-bottom: 1px solid #e1e4e8; background: #fafbfc; }
.db-drawer .tabs a { display: flex; flex-direction: column; padding: 5px 12px; border: 1px solid #d5dbe1; border-radius: 4px; background: #ffffff; color: #636e72; line-height: 1.35; text-decoration: none; }
.db-drawer .tabs a b { color: #2d3436; font-size: 13px; font-weight: normal; }
.db-drawer .tabs a span { color: #95a0a6; font: 11px Consolas, monospace; }
.db-drawer .tabs a:hover { border-color: #95a0a6; }
.db-drawer .tabs a.on { border-color: #1f3a5f; background: #1f3a5f; }
.db-drawer .tabs a.on b, .db-drawer .tabs a.on span { color: #ffffff; }
.db-drawer .hd a.lnk { margin-left: auto; color: #1f3a5f; font-size: 13px; text-decoration: none; white-space: nowrap; }
.db-drawer .hd a.lnk:hover { text-decoration: underline; }
.db-drawer .hd a.lnk + .btn { margin-left: 0; }
.db-drawer .bd { padding: 14px 18px 24px; }
body.db-open { overflow: hidden; }

/* 整張表的內容（抽屜與「資料庫結構」頁共用） */
.db-sheet { color: #2d3436; font-size: 14px; line-height: 1.6; }
.db-sheet .one { margin: 0 0 12px; color: #636e72; font-size: 13px; line-height: 1.7; }
.db-sheet h3 { margin: 18px 0 8px; color: #2b4d7a; font-size: 14px; }
.db-sheet table { width: 100%; border-collapse: collapse; font-size: 13px; }
.db-sheet th, .db-sheet td { padding: 6px 8px; border: 1px solid #e1e4e8; text-align: left; vertical-align: top; }
.db-sheet th { background: #f0f3f7; color: #1f3a5f; font-weight: normal; white-space: nowrap; }
.db-sheet tr.g td { background: #fafbfc; color: #636e72; font-size: 12px; }
.db-sheet td.en { font: 12px Consolas, monospace; white-space: nowrap; }
.db-sheet td.ty { color: #636e72; font: 12px Consolas, monospace; white-space: nowrap; }
.db-sheet table.keys td.en { width: 42%; white-space: normal; }  /* 鍵名（例 K1 多欄＋條件）可換行，不把右邊說明擠成一字一行 */
.db-sheet td.d { line-height: 1.7; }
.db-sheet code { padding: 0 3px; border-radius: 3px; background: #f0f3f7; font: 12px Consolas, monospace; overflow-wrap: anywhere; }
.db-sheet tr.row { cursor: pointer; }
.db-sheet tr.row:hover td { background: #f8fafc; }
.db-sheet tr.hit td, .db-sheet li.hit { background: #fff3c4; }
.db-sheet .where a { color: #1f3a5f; }
.db-sheet a[data-note] { color: #1f3a5f; }
.db-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: 1px; }
.db-dot.red { background: #c9a227; }
.db-dot.blue { background: #2b6cb0; }
.db-sheet ol.notes { margin: 0; padding-left: 4px; list-style: none; }
.db-sheet ol.notes > li { margin-bottom: 1.2em; line-height: 1.7; }
.db-sheet ol.notes > li > b { color: #1f3a5f; }
.db-sheet ol.notes p { margin: 0 0 4px; line-height: 1.7; }
.db-sheet ol.notes ul { margin: 2px 0 0; padding-left: 18px; }
.db-sheet ol.notes li li { margin: 2px 0; }
.db-sheet .src { margin-top: 16px; color: #95a0a6; font-size: 12px; }
@keyframes db-flash { from { box-shadow: inset 0 0 0 3px #f5c542; } to { box-shadow: none; } }
.db-flash { animation: db-flash 1.6s ease-out; }

/* ===== 資料庫結構頁（db.html）：左邊表清單（子域可收合）＋搜尋，右邊一覽（子域卡片）或整張表 ===== */
.db-nav { flex-basis: 260px; padding: 12px 12px 8px; }
.db-nav input { width: 100%; box-sizing: border-box; margin: 0 0 4px; }
.db-nav details { margin-top: 6px; }
.db-nav summary { padding: 3px 0; color: #1f3a5f; font-weight: bold; cursor: pointer; list-style: none; }
.db-nav summary::-webkit-details-marker { display: none; }
.db-nav summary::before { content: '▸'; display: inline-block; width: 14px; color: #95a0a6; }
.db-nav details[open] > summary::before { content: '▾'; }
.db-nav summary span { margin-left: 4px; color: #95a0a6; font-weight: normal; }
.db-nav ul { margin: 2px 0 0; padding: 0; }
.db-nav li { padding: 0; }
/* 一張表一項：• 英文表名，下一行中文名 */
.db-nav li > a { display: grid; grid-template-columns: 14px 1fr; column-gap: 4px; padding: 4px 8px 4px 6px; border-radius: 3px; }
.db-nav li > a::before { content: '•'; grid-row: span 2; color: #95a0a6; text-align: center; line-height: 1.45; }
.db-nav li > a .en { color: #2d3436; font: 12.5px Consolas, monospace; line-height: 1.5; word-break: break-all; }
.db-nav li > a .cn { color: #7a848a; font-size: 12px; line-height: 1.5; }
.db-nav li > a:hover { background: #eef2f6; }
.db-nav li > a.on { background: #1f3a5f; }
.db-nav li > a.on::before, .db-nav li > a.on .en { color: #ffffff; }
.db-nav li > a.on .cn { color: #cfd8e3; }
.db-nav .hits { margin: 2px 0 6px 24px; padding-left: 8px; border-left: 2px solid #e6eaee; }
.db-nav .hits a { display: inline-block; margin-right: 8px; color: #1f3a5f; font: 11px Consolas, monospace; }
.db-nav .none { padding: 8px 4px; color: #95a0a6; }

.db-page a { color: #1f3a5f; text-decoration: none; }   /* 連結不加底線，滑過才有 */
.db-page a:hover { text-decoration: underline; }
/* 一覽：子域張數卡片＋用法 */
.db-page .db-note { margin: 0 0 14px; color: #7a848a; font-size: 13px; }
.db-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.db-card { padding: 16px 18px; border: 1px solid #e1e4e8; border-radius: 6px; background: #ffffff; }
.db-page .db-card h3 { margin: 0 0 2px; color: #1f3a5f; font-size: 16px; }
.db-card .sub { color: #95a0a6; font: 12px Consolas, monospace; }
.db-card .n { margin: 10px 0 4px; color: #2d3436; font-size: 13px; }
.db-card .n b { margin-right: 4px; color: #1f3a5f; font-size: 22px; }
.db-card .tip { color: #7a848a; font-size: 12px; }
.db-how { margin-top: 22px; padding: 14px 18px; border-radius: 6px; background: #f4f7fa; color: #636e72; font-size: 13px; line-height: 1.9; }
/* 單表：標題、來源、跳轉列（捲動時固定在上方） */
.db-page .course-sec h2.db-title { margin: 0 0 4px; padding: 0; border: 0; color: #1f3a5f; font-size: 22px; }
.db-title code { margin-left: 10px; padding: 2px 8px; border-radius: 4px; background: #eef2f6; color: #2b4d7a; font: 14px Consolas, monospace; vertical-align: 2px; }
.db-meta { margin: 0 0 8px; color: #7a848a; font-size: 13px; }
.db-meta .sep { margin: 0 8px; color: #d0d6db; }
.db-jump { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; margin: 0 -2px 6px; padding: 8px 2px; border-bottom: 1px solid #e1e4e8; background: #ffffff; }
.db-page .db-jump a { padding: 3px 12px; border: 1px solid #d5dbe1; border-radius: 14px; font-size: 13px; }
.db-jump a span { color: #95a0a6; }
.db-page .db-jump a:hover { border-color: #1f3a5f; text-decoration: none; }
.db-page .db-sheet h3 { margin-top: 22px; scroll-margin-top: 52px; }
.db-page .db-sheet table.keys th, .db-page .db-sheet table.keys td { border: 0; border-bottom: 1px solid #eef1f4; background: none; }
.db-page .db-sheet table.keys th { width: 48px; color: #1f3a5f; font-weight: bold; }
.db-page .db-sheet table.keys td.en { width: 42%; white-space: normal; }
.db-page .db-sheet table.fields { table-layout: fixed; }
.db-page .db-sheet table.fields td.en { white-space: normal; overflow-wrap: anywhere; }
.db-page .db-sheet td.k { color: #1f3a5f; text-align: center; }

/* ===== 首頁 ===== */
.entry-card.is-lock { cursor: default; }                    /* 還沒有文件的入口卡：不是連結，滑上去不浮起 */
.entry-card.is-lock:hover { border-color: #e1e4e8; background-color: transparent; box-shadow: none; transform: none; }
.entry-card.is-lock:hover .entry-icon { background-color: #f0f3f7; color: #1f3a5f; }
.wf-cols .course-code { flex: 0 0 auto; min-width: 44px; }   /* 代碼改成 aspx 名稱後比較長，不壓到名稱 */
.wf-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; }   /* 三個子域的線框清單並排 */

/* 子域首頁（例 01-product/index.html）：只列該子域的線框，兩欄 */
.wf-one .course-list { columns: 2; column-gap: 32px; }
.wf-one .course-list li { break-inside: avoid; }
.wf-one .course-code { flex: 0 0 auto; min-width: 44px; }
.nav-drop a.nav-hub { margin-bottom: 4px; padding-bottom: 8px; border-bottom: 1px solid #e6eaee; color: #1f3a5f; font-weight: bold; }   /* 選單最上面的「子域總覽」 */

/* ===== 流程與架構圖：圖卡（縮圖＋標題＋說明），點開全螢幕看（JS/ColaSpec-Frame.js 依圖清單 FIG 產生） ===== */
.fig-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.fig-card { display: block; border: 1px solid #e1e4e8; border-radius: 8px; overflow: hidden; background: #ffffff; color: inherit; text-decoration: none; cursor: zoom-in; transition: box-shadow .15s, border-color .15s; }
.fig-card:hover { border-color: #1f3a5f; box-shadow: 0 4px 14px rgba(31, 58, 95, .12); text-decoration: none; }
.fig-th { display: block; height: 190px; border-bottom: 1px solid #eef1f4; background-position: top center; background-size: cover; }
.fig-tx { display: block; padding: 12px 14px; }
.fig-tx > b { display: block; color: #1f3a5f; font-size: 15px; }
.fig-tx > span { display: block; margin-top: 4px; color: #636e72; font-size: 12.5px; line-height: 1.6; }
.fig-lb { position: fixed; inset: 0; z-index: 100; display: none; flex-direction: column; background: rgba(20, 30, 45, .82); }
.fig-lb.on { display: flex; }
.fig-lb-hd { display: flex; align-items: center; gap: 12px; padding: 10px 18px; background: #1f3a5f; color: #ffffff; }
.fig-lb-hd b { font-size: 15px; }
.fig-lb-hd .fig-raw { margin-left: auto; color: #cfd8e3; font-size: 13px; text-decoration: none; }
.fig-lb-hd .fig-raw:hover { color: #ffffff; text-decoration: underline; }
.fig-lb-hd button { padding: 4px 12px; border: 1px solid #8fa3b8; border-radius: 4px; background: none; color: #ffffff; font-size: 13px; cursor: pointer; }
.fig-lb-hd button:hover { border-color: #ffffff; }
.fig-lb-bd { flex: 1; overflow: auto; padding: 18px; text-align: center; }
.fig-lb-bd img { width: min(1440px, 100%); border-radius: 4px; background: #ffffff; }
.fig-lb-bd.full img { width: auto; max-width: none; }
/* 專案表單頁 forms.html：卡片標題列的按鈕；〔看原表單〕的白色彈窗（一次一張，上面用表單編號切換） */
.form-card .btn { margin: 0 0 0 8px; }
.form-card + .form-card { margin-top: 16px; }
.form-lb { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(20, 30, 45, .45); }
.form-lb.on { display: flex; }
.form-lb-box { display: flex; flex-direction: column; width: min(1100px, calc(100% - 32px)); max-height: 92vh; border-radius: 8px; background: #ffffff; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); overflow: hidden; }
.form-lb-hd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid #e1e4e8; }
.form-lb-hd b { margin-right: 10px; color: #1f3a5f; font-size: 17px; }
.form-lb-hd .btn { margin: 0; }
.form-lb-tabs, .form-lb-act { display: flex; gap: 8px; }
.form-lb-act { margin-left: auto; }
.form-lb-sub { padding: 8px 18px; border-bottom: 1px solid #eef1f4; color: #636e72; font-size: 13px; }
.form-lb-bd { flex: 1; overflow: auto; padding: 18px; background: #f5f7fa; text-align: center; }
.form-lb-bd img { max-width: 100%; border: 1px solid #e1e4e8; background: #ffffff; }

@media (max-width: 900px) {
    .wf-cols { grid-template-columns: 1fr; }
    .wf-one .course-list { columns: 1; }
}
