/* Trang /list (DanhSach.aspx): chuyển nguyên từ <style> của LvnList.aspx bản hiện tại */
.bt-wrap{--bt-brand:#c90d5a;--bt-brand-soft:#fbe9f0;--bt-line:#e6e6e6;--bt-text:#222;--bt-muted:#777;
    display:grid;grid-template-columns:240px minmax(0,1fr);gap:14px;align-items:start;
    width:100%;max-width:none;margin:14px 0;padding:0 3px 0 5px;color:var(--bt-text);box-sizing:border-box}
.bt-wrap *{box-sizing:border-box}

/* ===== Cột trái ===== */
.bt-side{position:sticky;top:12px;background:#fff;border:1px solid var(--bt-line);border-radius:10px;overflow:hidden}
.bt-head{background:var(--bt-brand);color:#fff;padding:10px 12px;font-weight:600;font-size:15px}
/* VBPL: toggle trượt Lĩnh vực / Loại văn bản */
.bt-seg{position:relative;display:grid;grid-template-columns:1fr 1fr;margin:10px 10px 8px;padding:3px;
    background:#f1f1f3;border-radius:999px;user-select:none}
.bt-seg-thumb{position:absolute;top:3px;left:3px;width:calc(50% - 3px);height:calc(100% - 6px);background:#fff;
    border-radius:999px;box-shadow:0 1px 3px rgba(0,0,0,.15),0 0 0 1px rgba(201,13,90,.12);
    transition:transform .32s cubic-bezier(.4,0,.2,1)}
.bt-seg[data-dim="type"] .bt-seg-thumb{transform:translateX(100%)}
.bt-seg-btn{all:unset;box-sizing:border-box;position:relative;z-index:1;text-align:center;padding:7px 4px;border-radius:999px;
    font-size:13px;font-weight:600;color:var(--bt-muted);cursor:pointer;transition:color .25s;white-space:nowrap}
.bt-seg-btn:hover{color:var(--bt-text)}
.bt-seg-btn.active{color:var(--bt-brand)}
.bt-seg-btn:focus-visible{outline:2px solid var(--bt-brand);outline-offset:1px}
@media (prefers-reduced-motion:reduce){.bt-seg-thumb,.bt-seg-btn{transition:none}}
.bt-period{border-top:1px solid var(--bt-line)}
.bt-period:first-of-type{border-top:0}
.bt-ph{all:unset;box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;width:100%;
    padding:10px 12px;cursor:pointer;font-weight:600;font-size:14px;color:var(--bt-text)}
.bt-ph:hover{background:#fafafa}
.bt-ph:focus-visible{outline:2px solid var(--bt-brand);outline-offset:-2px}
.bt-arrow{width:8px;height:8px;border-right:2px solid var(--bt-muted);border-bottom:2px solid var(--bt-muted);
    transform:rotate(-45deg);transition:transform .2s}
.bt-period.open .bt-ph{color:var(--bt-brand)}
.bt-period.open .bt-arrow{transform:rotate(45deg);border-color:var(--bt-brand)}
.bt-pb{display:none;padding:0 8px 8px}
.bt-period.open .bt-pb{display:block}

.bt-search{margin:0 0 8px}
.bt-search input{width:100%;padding:8px 10px;border:1px solid var(--bt-line);border-radius:6px;font-size:14px}
.bt-search input:focus{outline:none;border-color:var(--bt-brand)}

.bt-list{list-style:none;margin:0;padding:0;max-height:55vh;overflow-y:auto}
.bt-item{all:unset;box-sizing:border-box;display:block;width:100%;padding:7px 8px;border-radius:6px;cursor:pointer;font-size:13.5px;line-height:1.4}
.bt-item:hover{background:#f5f5f5}
.bt-item.active{background:var(--bt-brand-soft);color:var(--bt-brand)}
.bt-item b{font-weight:600}
/* GDPL/VBPL: số lượng bên phải dòng chủ đề */
.bt-item.has-cnt{display:flex;justify-content:space-between;align-items:center;gap:8px}
.bt-cnt{flex:none;min-width:24px;padding:1px 7px;border-radius:10px;background:#eee;color:#555;font-size:12px;font-weight:600;text-align:center;line-height:18px}
.bt-item.active .bt-cnt{background:var(--bt-brand);color:#fff}
.bt-msg{padding:8px 10px;color:var(--bt-muted);font-size:13px}
.bt-more{all:unset;box-sizing:border-box;display:none;width:100%;text-align:center;padding:7px;margin-top:6px;
    border:1px dashed var(--bt-line);border-radius:6px;color:var(--bt-brand);cursor:pointer;font-size:13px}
.bt-more:hover{background:var(--bt-brand-soft)}

/* ===== Cột phải ===== */
.bt-main{background:#fff;border:1px solid var(--bt-line);border-radius:10px;padding:14px 16px;min-height:300px;min-width:0}
.bt-back{all:unset;display:none;cursor:pointer;color:var(--bt-brand);font-weight:600;margin-bottom:12px;padding:4px 0}
.bt-title{font-size:18px;font-weight:700;color:var(--bt-brand);margin-bottom:12px}
.bt-title:empty{display:none}
.bt-content{line-height:1.6;overflow-wrap:anywhere;overflow-x:auto}
.bt-content img{max-width:100%;height:auto}
.bt-content table{max-width:100%}
/* Bản tin dựng theo khung email cố định (730px/700px) => co lại theo cột nội dung */
.bt-content [style*="730px"],.bt-content [width="730"],.bt-content [width="700"]{width:100% !important;max-width:100% !important}
.bt-empty{color:var(--bt-muted)}
.bt-content.bt-loading{opacity:.5;pointer-events:none;transition:opacity .15s}
.gd-head{color:var(--bt-muted);font-size:13px;margin-bottom:8px}
.gd-pager{display:flex;flex-wrap:wrap;gap:4px;align-items:center;margin:8px 0}
.gd-pg{all:unset;box-sizing:border-box;min-width:32px;height:32px;padding:0 8px;border:1px solid var(--bt-line);border-radius:6px;
display:inline-flex;align-items:center;justify-content:center;font-size:13px;cursor:pointer;color:var(--bt-text);background:#fff}
.gd-pg:hover:not([disabled]){border-color:var(--bt-brand);color:var(--bt-brand)}
.gd-pg.active{background:#e4e4e4;border-color:#c8c8c8;color:#333;font-weight:700;cursor:default}
.gd-pg[disabled]:not(.active){opacity:.4;cursor:default}
.gd-dots{padding:0 4px;color:var(--bt-muted)}
.gd-item{padding:12px 0;border-bottom:1px solid var(--bt-line)}
.gd-item:last-child{border-bottom:0}
.gd-title{font-weight:700;font-size:15px;color:#006699;line-height:1.45}
.gd-stt{color:var(--bt-muted);font-weight:600}
.gd-sum{margin-top:4px;font-size:14px;color:#444;line-height:1.55}
.gd-ans{margin-top:6px;font-size:14px}
.gd-ans>summary{cursor:pointer;color:var(--bt-muted);list-style:none;display:inline-flex;align-items:center;gap:6px;user-select:none}
.gd-ans>summary::-webkit-details-marker{display:none}
.gd-ans>summary::before{content:'';width:6px;height:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;
transform:rotate(-45deg);transition:transform .2s}
.gd-ans[open]>summary::before{transform:rotate(45deg)}
.gd-ans-body{margin-top:6px;padding:10px 12px;background:#fafafa;border-left:3px solid var(--bt-brand);border-radius:4px;line-height:1.6}
.gd-more{display:inline-block;margin-top:6px;font-size:13px;color:#006699;text-decoration:none}
.gd-more:hover{text-decoration:underline}
.gd-eff{margin-top:6px;font-size:14px;color:var(--bt-muted)}
.gd-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-top:6px}
.gd-foot .gd-more{margin-top:0}
.gd-ask{margin-left:auto}

/* ===== Sổ tay (cat=flow): tab + danh mục sổ tay bên trái, nội dung bên phải ===== */
.bt-wrap.bt-flow{grid-template-columns:300px minmax(0,1fr)}
.bt-flow .bt-side{order:-1}   /* aside đứng sau section trong HTML => đưa lên cột đầu */
.bt-flow .bt-side{display:flex;flex-direction:column;max-height:calc(100vh - 24px)}
.bt-flow .bt-head{flex:none}
.bt-flow .fl-tabs{flex:none;max-height:none;overflow:visible;padding:6px 8px}
.bt-flow .fl-head2{background:var(--bt-brand-soft);color:var(--bt-brand);border-top:1px solid var(--bt-line)}
.bt-flow .fl-cat{flex:1;min-height:0;display:flex;flex-direction:column;padding:8px}
.bt-flow .fl-list{flex:1;min-height:120px;max-height:none;position:relative}
.bt-flow .bt-more{flex:none}
.fl-nm{min-width:0}
.fl-nm small{display:block;margin-top:1px;color:var(--bt-muted);font-size:11.5px;font-weight:400}
.bt-item.active .fl-nm small{color:inherit;opacity:.75}
.fl-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;
    padding-bottom:10px;margin-bottom:12px;border-bottom:1px solid var(--bt-line)}
.fl-crumb{font-size:15px;color:var(--bt-text);line-height:1.5}
.fl-crumb b{color:var(--bt-brand)}
.fl-date{color:green;font-weight:600}
.fl-found{color:var(--bt-muted);font-size:13px}
.fl-top .col-sm-12{width:auto;float:none;padding:0;margin-left:auto}  /* nút In / Gửi mail (PrintButtonsFlow) */
.bt-flow .bt-content>table{width:100%}
.bt-flow .bt-content td[width="11%"]{white-space:nowrap}   /* ngày không bị xuống dòng (19/11/202|6) */

/* ===== Di động ===== */
@media (max-width:768px){
    .gd-pg{min-width:36px;height:36px}
    .bt-wrap{grid-template-columns:1fr;gap:12px;margin:10px 0;padding:0 10px}
    .bt-wrap.bt-flow{grid-template-columns:1fr}
    .bt-flow .bt-side{max-height:none}
    .bt-flow .fl-list{max-height:60vh}
    .bt-side{position:static}
    .bt-list{max-height:none}
    .bt-main{padding:14px}
    .bt-wrap:not(.show-content) .bt-main{display:none}
    .bt-wrap.show-content .bt-side{display:none}
    .bt-ph,.bt-item{padding-top:12px;padding-bottom:12px} /* vùng chạm lớn hơn */
    .bt-search input{font-size:16px} /* tránh iOS tự zoom */
    .bt-seg-btn{padding:10px 4px;font-size:14px}
    .bt-back{display:block;position:sticky;top:var(--bt-top,0px);z-index:5;background:#fff;
     margin:-14px -14px 10px;padding:12px 14px;border-bottom:1px solid var(--bt-line)}
}

/* V2: thay Bootstrap/Fancybox mà nội dung cũ (Sổ tay, bản tin) còn dùng */
.bt-content .collapse{display:none}
.bt-content .collapse.in,.bt-content .collapse.show{display:block}
.bt-content .pull-right{float:right}
.bt-content .alert{padding:10px 12px;border-radius:6px;background:#fff7e6;border:1px solid #f3d7a0;margin:8px 0}
