:root {
  --green: #315c43;
  --green-2: #46765a;
  --green-soft: #eaf2ec;
  --orange: #dc643e;
  --orange-soft: #fff0e9;
  --ink: #242823;
  --muted: #747b73;
  --line: #e6e8e2;
  --paper: #f5f6f2;
  --white: #fff;
  --danger: #b9443b;
  --shadow: 0 18px 55px rgba(41, 53, 43, .11);
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }

.boot { min-height: 100vh; display: grid; place-items: center; gap: 14px; color: var(--green); }
.boot span { width: 34px; height: 34px; border: 3px solid #d6e3da; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.signin { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); background: #f7f7f3; }
.signin-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(36px, 7vw, 92px); color: white; background: linear-gradient(145deg, #244533, #46785a); }
.signin-hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; bottom: -230px; border: 90px solid rgba(255,255,255,.06); border-radius: 50%; }
.brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 800; line-height: 1.45; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--orange); color: white; font-size: 21px; box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.signin-copy { position: relative; z-index: 1; max-width: 680px; }
.eyebrow { margin: 0 0 12px; color: #d9eadf; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.signin h1 { margin: 0; font-size: clamp(36px, 5vw, 68px); line-height: 1.08; letter-spacing: -.045em; }
.signin-copy > p:last-child { max-width: 570px; margin: 24px 0 0; color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.8; }
.signin-panel { display: grid; place-items: center; padding: 36px; }
.signin-card { width: min(100%, 480px); border: 1px solid var(--line); border-radius: 24px; background: white; padding: 38px; box-shadow: var(--shadow); }
.signin-card .mini { display: inline-flex; border-radius: 999px; background: var(--green-soft); padding: 7px 10px; color: var(--green); font-size: 10px; font-weight: 800; }
.signin-card h2 { margin: 22px 0 10px; font-size: 28px; letter-spacing: -.03em; }
.signin-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.google-button { width: 100%; height: 50px; display: flex; align-items: center; justify-content: center; gap: 11px; margin-top: 26px; border: 1px solid #d9ddd7; border-radius: 12px; background: white; color: #333; font-weight: 750; }
.google-button:hover { border-color: #aeb9b0; background: #fafbf9; }
.google-g { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0); color: white; font-size: 10px; font-weight: 900; }
.signin-note { display: flex; gap: 10px; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.signin-note i { color: var(--green); font-style: normal; }

.denied { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.denied-card { max-width: 580px; border: 1px solid var(--line); border-radius: 22px; background: white; padding: 36px; text-align: center; box-shadow: var(--shadow); }
.denied-card b { display: grid; place-items: center; width: 56px; height: 56px; margin: auto; border-radius: 18px; background: var(--orange-soft); color: var(--orange); font-size: 24px; }
.denied-card h1 { margin: 20px 0 8px; font-size: 25px; }
.denied-card p { color: var(--muted); line-height: 1.7; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: #284b37; color: white; padding: 24px 18px; }
.sidebar .brand { padding: 4px 5px 24px; }
.nav-label { margin: 14px 9px 7px; color: #9eb4a5; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.nav { display: grid; gap: 5px; }
.nav button { height: 43px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 10px; background: transparent; padding: 0 13px; color: #dce7df; text-align: left; font-size: 12px; font-weight: 650; }
.nav button:hover, .nav button.active { background: rgba(255,255,255,.11); color: white; }
.nav button span { width: 22px; color: #b8ccbe; font-size: 16px; }
.sidebar-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; }
.user-mini { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 10px; align-items: center; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #e8a348; color: #fff; font-size: 11px; font-weight: 800; }
.user-mini strong, .user-mini small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-mini strong { font-size: 10px; }.user-mini small { margin-top: 3px; color: #afc4b5; font-size: 8px; }
.logout { width: 100%; margin-top: 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; background: transparent; padding: 9px; color: #dce7df; font-size: 9px; }

.workspace { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 10; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); padding: 0 30px; backdrop-filter: blur(12px); }
.search { flex: 1; max-width: 560px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 11px; background: #fafbf9; padding: 0 13px; }
.search input { width: 100%; height: 38px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.system-chip { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; background: var(--green-soft); padding: 7px 10px; color: var(--green); font-size: 9px; font-weight: 750; }
.system-chip i { width: 7px; height: 7px; border-radius: 50%; background: #4da36e; }
.content { padding: 30px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 22px; }
.page-head h1 { margin: 4px 0 6px; font-size: 28px; letter-spacing: -.035em; }
.page-head p { margin: 0; color: var(--muted); font-size: 11px; }
.primary, .secondary, .danger { min-height: 39px; border-radius: 10px; padding: 0 15px; font-size: 10px; font-weight: 750; }
.primary { border: 1px solid var(--orange); background: var(--orange); color: white; }
.primary:hover { background: #c95532; }
.secondary { border: 1px solid var(--line); background: white; color: var(--ink); }
.danger { border: 1px solid #ebc9c5; background: #fff6f5; color: var(--danger); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; margin-bottom: 18px; }
.stat { border: 1px solid var(--line); border-radius: 15px; background: white; padding: 17px; }
.stat span { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-weight: 800; }
.stat.orange span { background: var(--orange-soft); color: var(--orange); }
.stat strong { display: block; margin-top: 13px; font-size: 24px; }
.stat small { color: var(--muted); font-size: 9px; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .7fr); gap: 16px; }
.panel { border: 1px solid var(--line); border-radius: 16px; background: white; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 16px 18px; }
.panel-head h2 { margin: 0; font-size: 14px; }.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.pipeline { display: grid; grid-template-columns: repeat(5,1fr); gap: 7px; padding: 18px; }
.stage { border-radius: 11px; background: #f4f6f2; padding: 13px 10px; }
.stage strong, .stage small { display: block; }.stage strong { color: var(--green); font-size: 19px; }.stage small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.task-list, .activity-list { padding: 8px 18px 16px; }
.task-item, .activity-item { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 10px; align-items: start; border-bottom: 1px solid #eef0eb; padding: 11px 0; }
.task-item:has(.calendar-mini) { grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; }
.task-item:last-child, .activity-item:last-child { border-bottom: 0; }
.task-item i, .activity-item i { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: var(--orange-soft); color: var(--orange); font-size: 10px; font-style: normal; }
.task-item strong, .task-item small, .activity-item strong, .activity-item small { display: block; }
.task-item strong, .activity-item strong { font-size: 9px; line-height: 1.45; }.task-item small, .activity-item small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.45; }

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th { background: #fafbf9; padding: 11px 13px; color: var(--muted); font-size: 8px; text-align: left; letter-spacing: .05em; }
td { border-top: 1px solid var(--line); padding: 13px; font-size: 9px; vertical-align: middle; }
td strong, td small { display: block; } td strong { font-size: 9px; } td small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.row-button { border: 0; background: transparent; color: var(--green); font-weight: 800; }
.status { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 9px; background: #eef2ed; color: #526257; font-size: 8px; font-weight: 750; white-space: nowrap; }
.status.review, .status.submitted { background: #eaf2fb; color: #416b98; }
.status.supplement { background: #fff0e4; color: #a86127; }.status.approved { background: #e7f3ea; color: #35714b; }
.empty { display: grid; place-items: center; min-height: 210px; padding: 24px; text-align: center; color: var(--muted); }
.empty b { color: var(--ink); font-size: 12px; }.empty p { margin: 7px 0 0; font-size: 9px; line-height: 1.6; }

.cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.follow-card { border: 1px solid var(--line); border-radius: 15px; background: white; padding: 17px; }
.follow-card-head { display: flex; justify-content: space-between; gap: 12px; }
.follow-card h3 { margin: 5px 0 3px; font-size: 13px; }.follow-card p { margin: 0; color: var(--muted); font-size: 8px; }
.progress { height: 7px; overflow: hidden; margin: 15px 0 8px; border-radius: 99px; background: #edf0eb; }.progress i { display: block; height: 100%; background: var(--orange); }
.follow-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; }
.follow-actions { display: flex; gap: 8px; margin-top: 15px; }.follow-actions select { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: 9px; padding: 9px; background: white; font-size: 9px; }
.calendar-mini { align-self: center; border: 1px solid #c9d9ce; border-radius: 8px; background: #f2f8f3; color: var(--green); padding: 6px 9px; font: inherit; font-size: 8px; font-weight: 750; cursor: pointer; }
.calendar-mini:hover, .workspace-button:hover { border-color: var(--green); background: #e9f4eb; }
.workspace-button { border-color: #c9d9ce !important; color: var(--green) !important; }
.workspace-toggle { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; border: 1px solid #d7e5da; border-radius: 11px; background: #f4f9f5; padding: 11px 12px; cursor: pointer; }
.workspace-toggle input { width: 16px; height: 16px; margin-top: 1px; accent-color: var(--green); }
.workspace-toggle span { min-width: 0; }.workspace-toggle strong, .workspace-toggle small { display: block; }.workspace-toggle strong { font-size: 9px; }.workspace-toggle small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.workspace-note { margin-top: 12px; border-radius: 9px; background: #f5f5f2; color: var(--muted); padding: 9px 11px; font-size: 8px; line-height: 1.5; }
.revision-with-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.revision-with-action > div { min-width: 0; }

.member-list { display: grid; gap: 10px; padding: 15px; }
.member { display: grid; grid-template-columns: 36px minmax(0,1fr) auto auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 11px; }
.member strong, .member small { display: block; }.member strong { font-size: 10px; }.member small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.member .role { border-radius: 99px; background: var(--green-soft); padding: 5px 8px; color: var(--green); font-size: 8px; font-weight: 750; }

.modal-layer { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; overflow: auto; background: rgba(22,31,24,.58); padding: 22px; }
.modal { width: min(100%, 760px); max-height: calc(100vh - 44px); overflow: auto; border-radius: 20px; background: white; box-shadow: var(--shadow); }
.modal.wide { width: min(100%, 980px); }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); background: white; padding: 20px 22px; }
.modal-head h2 { margin: 3px 0 0; font-size: 19px; }.modal-head button { width: 34px; height: 34px; border: 0; border-radius: 10px; background: #f1f3ef; color: var(--ink); }
.modal-body { padding: 20px 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
label.field { display: grid; gap: 6px; }.field.wide { grid-column: 1 / -1; }
.field span { color: #555d56; font-size: 9px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; outline: none; background: white; padding: 11px 12px; color: var(--ink); font-size: 10px; }
.field textarea { min-height: 90px; resize: vertical; }.field input:focus, .field select:focus, .field textarea:focus { border-color: #91ac99; box-shadow: 0 0 0 3px #eff5f0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); padding: 16px 22px; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr); gap: 15px; }
.section { border: 1px solid var(--line); border-radius: 14px; padding: 15px; }
.section + .section { margin-top: 13px; }.section h3 { margin: 0 0 12px; font-size: 12px; }
.kv { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }.kv div { border-radius: 10px; background: #f7f8f5; padding: 10px; }.kv small,.kv strong { display: block; }.kv small { color: var(--muted); font-size: 8px; }.kv strong { margin-top: 5px; font-size: 9px; }
.doc { display: grid; grid-template-columns: 26px minmax(0,1fr) auto; gap: 9px; align-items: center; border-top: 1px solid #edf0eb; padding: 10px 0; }.doc:first-of-type { border-top: 0; }.doc-check { width: 25px; height: 25px; border: 1px solid #d6dcd5; border-radius: 8px; background: white; color: var(--green); }.doc-check.done { border-color: #a7c4ae; background: var(--green-soft); }.doc strong,.doc small { display: block; }.doc strong { font-size: 9px; }.doc small { margin-top: 4px; color: var(--muted); font-size: 7px; }.doc a { color: var(--green); font-size: 8px; font-weight: 700; }
.revision { border-left: 3px solid #e9a267; background: #fff9f4; padding: 10px 11px; margin-top: 8px; }.revision strong,.revision small { display: block; }.revision strong { font-size: 9px; }.revision small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.saved-tool-group { margin-top: 13px; border-radius: 11px; background: #f7f9f6; padding: 11px; }.saved-tool-group:first-of-type { margin-top: 0; }.saved-tool-group > strong, .saved-tool-group > small { display: block; }.saved-tool-group > strong { color: var(--green); font-size: 9px; }.saved-tool-group > small { margin-top: 7px; color: var(--muted); font-size: 8px; }.saved-tool { display: grid; grid-template-columns: 27px minmax(0,1fr); gap: 9px; align-items: center; border-top: 1px solid #e5e9e3; margin-top: 9px; padding-top: 9px; }.saved-tool > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 800; }.saved-tool b, .saved-tool small { display: block; }.saved-tool b { font-size: 8px; }.saved-tool small { margin-top: 3px; color: var(--muted); font-size: 7px; line-height: 1.45; }
.drive-box { border: 1px dashed #b8c8bb; border-radius: 12px; background: #f7faf7; padding: 14px; text-align: center; }.drive-box p { margin: 5px 0 12px; color: var(--muted); font-size: 8px; line-height: 1.6; }.drive-box input { width: 100%; font-size: 8px; }
.tool-grid { display: grid; grid-template-columns: minmax(340px,.75fr) minmax(420px,1.25fr); gap: 16px; align-items: start; }
.tool-card { min-width: 0; }.tool-card .modal-body { padding: 18px; }
.doc-preview { min-height: 640px; overflow: auto; background: #e9ece7; padding: 22px; }
.paper { width: min(100%,680px); min-height: 880px; margin: auto; background: white; padding: 52px 48px; color: #171917; font-family: "Times New Roman", serif; font-size: 13px; line-height: 1.65; box-shadow: 0 8px 30px rgba(42,52,44,.1); }
.paper-head { text-align: center; }.paper-head b,.paper-head span { display: block; }.paper-head span { margin-top: 3px; font-weight: 700; text-decoration: underline; }
.paper h2 { margin: 28px 0 22px; text-align: center; font-size: 17px; }.paper p { margin: 10px 0; }.signature { width: 49%; margin: 38px 0 0 auto; text-align: center; }.signature span,.signature b,.signature small { display: block; }.signature b { margin-top: 12px; }
.metric-wrap { padding: 18px; }.metric-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.metric { border: 1px solid var(--line); border-radius: 13px; background: #fafbf9; padding: 16px; }.metric span,.metric strong,.metric small { display: block; }.metric span { color: var(--muted); font-size: 9px; }.metric strong { margin: 9px 0 7px; color: var(--green); font-size: 24px; }.metric small { font-size: 8px; }.metric .ok { color: #39784f; }.metric .bad { color: var(--danger); font-weight: 750; }
.notice { display: flex; gap: 12px; margin-top: 15px; border: 1px solid #efd5bc; border-radius: 12px; background: #fff8f0; padding: 14px 16px; color: #79522f; font-size: 9px; line-height: 1.6; }.notice strong { white-space: nowrap; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 80; max-width: 380px; border-radius: 12px; background: #243e2e; padding: 13px 16px; color: white; font-size: 10px; box-shadow: var(--shadow); }
.mobile-menu { display: none; }

@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(2,1fr); }
  .grid-2, .detail-grid, .tool-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .signin { grid-template-columns: 1fr; }.signin-hero { min-height: 46vh; padding: 34px 26px; }.signin-panel { padding: 22px; }
  .shell { display: block; }.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 248px; transform: translateX(-102%); transition: .2s; }.sidebar.open { transform: translateX(0); }
  .mobile-menu { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: white; }
  .topbar { height: 60px; padding: 0 15px; }.search { max-width: none; }.system-chip { display: none; }.content { padding: 20px 15px; }
  .page-head { align-items: flex-start; flex-direction: column; }.stats { grid-template-columns: 1fr 1fr; }.pipeline { grid-template-columns: repeat(2,1fr); }
  .form-grid, .kv, .metric-grid { grid-template-columns: 1fr; }.field.wide { grid-column: auto; }.modal-layer { padding: 9px; }.modal { max-height: calc(100vh - 18px); }.doc-preview { min-height: 420px; padding: 10px; }.paper { min-height: 700px; padding: 34px 25px; }
}

/* Báo cáo tiến độ gửi khách hàng */
.customer-report-layer { z-index: 90; padding: 18px; }
.customer-report-modal { height: min(920px, calc(100vh - 36px)); max-height: none; display: grid; grid-template-rows: auto minmax(0,1fr); overflow: hidden; }
.customer-report-modal > form { min-height: 0; display: grid; grid-template-rows: minmax(0,1fr) auto; overflow: hidden; }
.customer-report-modal .modal-head small { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; }
.customer-report-layout { min-height: 0; display: grid; grid-template-columns: 300px minmax(0,1fr); overflow: hidden; background: #eef0eb; }
.customer-report-editor { overflow-y: auto; border-right: 1px solid #dedfd9; background: #fff; padding: 18px; }
.customer-report-editor .field { margin-bottom: 14px; }.customer-report-editor .field textarea { min-height: 112px; }
.customer-report-editor > p { margin: 3px 0 0; border-radius: 8px; background: #f5f4ef; padding: 10px; color: #85877f; font-size: 8px; line-height: 1.55; }
.customer-report-preview { overflow: auto; padding: 20px; }
.customer-report-paper { width: min(190mm,100%); min-height: 270mm; margin: 0 auto; background: #fff; padding: 14mm; color: #242823; font-family: Arial,sans-serif; box-shadow: 0 8px 30px rgba(30,45,35,.12); }
.customer-report-brand { display: flex; align-items: center; gap: 11px; border-bottom: 2px solid #315c43; padding-bottom: 13px; }.customer-report-brand > span { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 10px; background: #dc643e; color: #fff; font-size: 20px; font-weight: 900; }.customer-report-brand strong,.customer-report-brand small { display: block; }.customer-report-brand strong { color: #315c43; font-size: 14px; }.customer-report-brand small { margin-top: 3px; color: #6f756e; font-size: 9px; }
.customer-report-title { padding: 22px 0 16px; text-align: center; }.customer-report-title h1 { margin: 0; color: #294e39; font-size: 21px; }.customer-report-title p { margin: 6px 0 0; color: #7e827c; font-size: 10px; }
.customer-report-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.customer-report-summary > span { border: 1px solid #e4e6e0; border-radius: 8px; background: #fafbf8; padding: 9px; }.customer-report-summary small,.customer-report-summary strong { display: block; }.customer-report-summary small { color: #888d86; font-size: 8px; }.customer-report-summary strong { margin-top: 4px; font-size: 10px; line-height: 1.4; }
.customer-report-status { margin: 14px 0; border-radius: 10px; background: #edf4ef; padding: 12px; }.customer-report-status > div:first-child { display: flex; justify-content: space-between; gap: 10px; }.customer-report-status span { color: #315c43; font-size: 10px; font-weight: 800; }.customer-report-status b { color: #dc643e; font-size: 11px; }.customer-report-bar { height: 7px; overflow: hidden; margin-top: 9px; border-radius: 99px; background: #dfe7e1; }.customer-report-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#315c43,#5f8b6e); }
.customer-report-section { margin-top: 15px; }.customer-report-section h2 { margin: 0 0 8px; color: #315c43; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }.customer-report-message { margin: 0; border-left: 3px solid #dc643e; background: #fff7f2; padding: 10px 11px; font-size: 10px; line-height: 1.55; white-space: pre-line; }
.customer-report-row { display: grid; grid-template-columns: 20px minmax(0,1fr) auto; align-items: start; gap: 7px; border-bottom: 1px solid #eceee9; padding: 6px 0; }.customer-report-row i { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 5px; background: #edf4ef; color: #34704a; font-size: 8px; font-style: normal; font-weight: 900; }.customer-report-row.missing i { background: #fff0dc; color: #a96b18; }.customer-report-row strong,.customer-report-row small { display: block; }.customer-report-row strong { font-size: 9px; line-height: 1.4; }.customer-report-row small { margin-top: 3px; color: #858a83; font-size: 8px; line-height: 1.45; }.customer-report-row > em { color: #777d76; font-size: 8px; font-style: normal; white-space: nowrap; }
.customer-report-next { border: 1px solid #e2dfd7; border-radius: 9px; padding: 10px 11px; font-size: 10px; line-height: 1.55; white-space: pre-line; }.customer-report-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 24px; border-top: 1px solid #dfe2dc; padding-top: 12px; color: #727770; font-size: 8px; line-height: 1.5; }.customer-report-footer strong { display: block; color: #315c43; font-size: 9px; }
.customer-report-actions { margin: 0; background: #fff; }

@media (max-width: 760px) {
  .customer-report-layer { align-items: end; padding: 0; }
  .customer-report-modal { height: 95vh; border-radius: 18px 18px 0 0; }
  .customer-report-layout { grid-template-columns: 1fr; overflow-y: auto; }
  .customer-report-editor { overflow: visible; border-right: 0; border-bottom: 1px solid #dedfd9; }
  .customer-report-preview { overflow: visible; padding: 10px; }
  .customer-report-paper { min-height: 0; padding: 25px 18px; }
  .customer-report-summary { grid-template-columns: 1fr; }
  .customer-report-actions { flex-wrap: wrap; padding: 12px; }.customer-report-actions button { flex: 1 1 140px; }
}

/* Thông báo công việc có thể mở thẳng hồ sơ */
.standalone-top-actions { display: flex; align-items: center; gap: 12px; }
.standalone-notification-toggle { position: relative; width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #50564f; }.standalone-notification-toggle > span { font-size: 20px; }.standalone-notification-toggle > b { position: absolute; top: -6px; right: -7px; min-width: 18px; height: 18px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 99px; background: var(--orange); padding: 0 4px; color: #fff; font-size: 7px; }
.standalone-notification-layer { position: fixed; inset: 68px 0 0 248px; z-index: 60; background: rgba(28,33,28,.16); }.standalone-notification-panel { position: absolute; top: 10px; right: 28px; width: min(430px,calc(100vw - 280px)); overflow: hidden; border: 1px solid #e1dfd8; border-radius: 15px; background: #fff; box-shadow: 0 22px 65px rgba(30,35,29,.2); animation: notificationIn .18s ease; }@keyframes notificationIn { from { opacity: 0; transform: translateY(-7px) scale(.985); } }
.standalone-notification-panel > header { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #eceae4; padding: 17px 18px 14px; }.standalone-notification-panel > header span { color: var(--orange); font-size: 7px; font-weight: 850; letter-spacing: .1em; }.standalone-notification-panel > header h2 { margin: 5px 0 0; font-size: 15px; }.standalone-notification-panel > header p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }.standalone-notification-panel > header button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: #f2f1ec; color: #62645d; font-size: 17px; }
.standalone-notification-list { max-height: min(540px,calc(100vh - 210px)); overflow-y: auto; padding: 5px 13px; }.standalone-notification-item { width: 100%; display: grid; grid-template-columns: 31px minmax(0,1fr) auto; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid #eeece6; background: #fff; padding: 12px 4px; text-align: left; }.standalone-notification-item:hover { background: #faf9f5; }.standalone-notification-item > i { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: #edf3f8; color: #52779d; font-size: 9px; font-style: normal; font-weight: 850; }.standalone-notification-item.warning > i { background: #fff1dc; color: #a56a16; }.standalone-notification-item.critical > i { background: #fff0ed; color: #be4d38; }.standalone-notification-item strong,.standalone-notification-item small { display: block; }.standalone-notification-item strong { color: #4c4e48; font-size: 9px; line-height: 1.4; }.standalone-notification-item small { margin-top: 4px; overflow: hidden; color: #95978f; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }.standalone-notification-item > em { border-radius: 99px; background: #f1f3f6; padding: 4px 6px; color: #60758b; font-size: 7px; font-style: normal; font-weight: 750; white-space: nowrap; }.standalone-notification-item.warning > em { background: #fff4e3; color: #96631c; }.standalone-notification-item.critical > em { background: #fff0ed; color: #b34634; }
.standalone-notification-empty { padding: 38px 25px; text-align: center; }.standalone-notification-empty > span { width: 38px; height: 38px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 12px; background: #e8f4eb; color: #42805a; font-size: 15px; font-weight: 850; }.standalone-notification-empty strong { display: block; font-size: 11px; }.standalone-notification-empty p { max-width: 300px; margin: 7px auto 0; color: #8c8e87; font-size: 8px; line-height: 1.55; }.standalone-notification-panel > footer { display: flex; align-items: center; gap: 13px; border-top: 1px solid #eceae4; background: #faf9f6; padding: 10px 15px; color: #8e9089; font-size: 7px; }.standalone-notification-panel > footer span { display: flex; align-items: center; gap: 5px; }.standalone-notification-panel > footer span i { width: 7px; height: 7px; border-radius: 50%; background: #d75b43; }.standalone-notification-panel > footer span:nth-child(2) i { background: #d69b3d; }.standalone-notification-panel > footer button { margin-left: auto; border: 0; background: none; color: var(--orange); font-size: 8px; font-weight: 750; }

@media (max-width: 760px) {
  .standalone-notification-layer { inset: 60px 0 0; }.standalone-notification-panel { top: 8px; right: 8px; width: calc(100vw - 16px); }.standalone-notification-item { grid-template-columns: 29px minmax(0,1fr); }.standalone-notification-item > em { grid-column: 2; width: fit-content; margin-top: -4px; }
}

/* Hướng dẫn quy trình trong ứng dụng */
.standalone-guide-intro { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; border-radius: 14px; background: linear-gradient(115deg,#2d503b,#3f6d50); padding: 17px 19px; color: #fff; }.standalone-guide-intro > span { border-radius: 99px; background: rgba(255,255,255,.15); padding: 7px 10px; font-size: 9px; font-weight: 800; white-space: nowrap; }.standalone-guide-intro strong { font-size: 12px; }.standalone-guide-intro p { margin: 5px 0 0; color: rgba(255,255,255,.75); font-size: 9px; }
.standalone-guide-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }.standalone-guide-grid article { position: relative; display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; padding: 15px; }.standalone-guide-grid article > span { position: absolute; top: 10px; right: 11px; color: #d9dcd6; font-size: 8px; font-weight: 850; }.standalone-guide-grid article > i { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 14px; font-style: normal; font-weight: 850; }.standalone-guide-grid article:nth-child(3n+2) > i { background: var(--orange-soft); color: var(--orange); }.standalone-guide-grid h3 { margin: 2px 24px 0 0; font-size: 11px; }.standalone-guide-grid p { min-height: 32px; margin: 6px 0 0; color: var(--muted); font-size: 8px; line-height: 1.55; }.standalone-guide-grid button { margin-top: 8px; border: 0; background: none; padding: 0; color: var(--orange); font-size: 8px; font-weight: 750; }.standalone-guide-tip { display: flex; gap: 13px; margin-top: 14px; border: 1px solid #eadbc9; border-radius: 12px; background: #fff8ef; padding: 13px 15px; }.standalone-guide-tip strong { color: #9b6524; font-size: 9px; white-space: nowrap; }.standalone-guide-tip p { margin: 0; color: #806b52; font-size: 8px; line-height: 1.55; }
@media (max-width: 760px) { .standalone-guide-grid { grid-template-columns: 1fr; }.standalone-guide-grid p { min-height: 0; }.standalone-guide-tip { display: block; }.standalone-guide-tip p { margin-top: 5px; } }

/* Sao lưu dữ liệu nghiệp vụ */
.standalone-backup-card { margin-bottom: 15px; border: 1px solid var(--line); border-radius: 15px; background: #fff; padding: 18px; }.standalone-backup-head { display: flex; align-items: center; gap: 13px; }.standalone-backup-head > span { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; background: var(--green); color: #fff; font-size: 17px; font-weight: 850; }.standalone-backup-head small { color: var(--orange); font-size: 7px; font-weight: 850; letter-spacing: .1em; }.standalone-backup-head h2 { margin: 5px 0 0; font-size: 15px; }.standalone-backup-head p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }.standalone-backup-counts { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin-top: 15px; }.standalone-backup-counts span { border-radius: 9px; background: #f6f7f3; padding: 11px; text-align: center; }.standalone-backup-counts strong,.standalone-backup-counts small { display: block; }.standalone-backup-counts strong { color: var(--green); font-size: 17px; }.standalone-backup-counts small { margin-top: 3px; color: var(--muted); font-size: 7px; }.standalone-backup-note { display: flex; gap: 9px; margin: 12px 0; border-radius: 9px; background: #fff4e5; padding: 10px 11px; color: #8c672f; }.standalone-backup-note b { font-size: 10px; }.standalone-backup-note p { margin: 0; font-size: 8px; line-height: 1.5; }.standalone-backup-card > button { display: block; margin-left: auto; }
@media (max-width: 760px) { .standalone-backup-counts { grid-template-columns: repeat(3,1fr); }.standalone-backup-card > button { width: 100%; }.standalone-backup-head { align-items: flex-start; } }

/* Chỉnh sửa thông tin hồ sơ an toàn */
.edit-dossier-safe { display: flex; gap: 8px; margin-top: 14px; border-radius: 9px; background: #edf5ef; padding: 10px 11px; color: #52705b; }.edit-dossier-safe span { font-size: 9px; font-weight: 850; }.edit-dossier-safe p { margin: 0; font-size: 8px; line-height: 1.5; }

/* Phân quyền, nhật ký và cổng tra cứu khách hàng */
.readonly-chip { display: inline-flex; align-items: center; border: 1px solid #d8ddd7; border-radius: 99px; background: #f5f6f3; padding: 8px 11px; color: #747a73; font-size: 8px; font-weight: 750; }
.member .role-admin { background: #fff0e4; color: #a85f24; }.member .role-viewer { background: #eef0f3; color: #68717c; }
.audit-list { padding: 8px 15px; }.audit-item { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid #ecefe9; padding: 12px 0; }.audit-item:last-child { border-bottom: 0; }.audit-item > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 8px; font-weight: 850; }.audit-item strong,.audit-item small { display: block; }.audit-item strong { font-size: 9px; }.audit-item small { margin-top: 4px; color: var(--muted); font-size: 7px; }.audit-item em { border-radius: 99px; background: #f3f4f1; padding: 5px 8px; color: #697069; font-size: 7px; font-style: normal; white-space: nowrap; }
.portal-settings { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 15px; border: 1px solid #cfe0d3; border-radius: 15px; background: linear-gradient(115deg,#f2f8f3,#fff); padding: 18px; }.portal-settings small { color: var(--orange); font-size: 7px; font-weight: 850; letter-spacing: .1em; }.portal-settings h2 { margin: 5px 0 0; font-size: 15px; }.portal-settings p { max-width: 650px; margin: 6px 0 0; color: var(--muted); font-size: 8px; line-height: 1.6; }.portal-settings > div:last-child { display: flex; gap: 8px; white-space: nowrap; }.portal-settings a { text-decoration: none; }

.lookup-page { min-height: 100vh; background: radial-gradient(circle at top right,#e7f1e9,transparent 38%),#f5f6f2; padding: 32px 18px 20px; color: var(--ink); }
.lookup-brand { width: min(880px,100%); display: flex; align-items: center; gap: 11px; margin: 0 auto 32px; }.lookup-brand strong,.lookup-brand small { display: block; }.lookup-brand strong { color: var(--green); font-size: 13px; letter-spacing: .04em; }.lookup-brand small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.lookup-hero,.lookup-result,.lookup-note { width: min(880px,100%); margin: 0 auto; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 18px 55px rgba(35,50,39,.08); }
.lookup-hero { padding: 32px; }.lookup-hero h1 { margin: 7px 0 8px; color: var(--green); font-size: clamp(25px,4vw,42px); letter-spacing: -.04em; }.lookup-hero > p:not(.eyebrow) { max-width: 650px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.lookup-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; margin-top: 25px; }.lookup-form .field input { height: 43px; font-size: 11px; }.lookup-form button { height: 43px; padding-inline: 22px; }
.lookup-error { margin-top: 14px; border-radius: 10px; background: #fff0ed; padding: 11px 13px; color: #a44435; font-size: 9px; line-height: 1.5; }
.lookup-result { margin-top: 16px; padding: 26px 28px; }.lookup-result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }.lookup-result-head small { color: var(--muted); font-size: 8px; font-weight: 700; }.lookup-result-head h2 { margin: 5px 0 4px; color: var(--green); font-size: 21px; }.lookup-result-head p { margin: 0; color: var(--muted); font-size: 9px; }.lookup-result-head .status { font-size: 9px; }
.lookup-progress { margin: 20px 0; border-radius: 13px; background: #f3f7f3; padding: 15px; }.lookup-progress > div { display: flex; justify-content: space-between; color: var(--green); font-size: 10px; font-weight: 750; }.lookup-progress i { display: block; height: 8px; overflow: hidden; margin: 10px 0 7px; border-radius: 99px; background: #dce6de; }.lookup-progress i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--green),#6b9475); }.lookup-progress small { color: var(--muted); font-size: 8px; }
.lookup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.lookup-grid article,.lookup-revisions { border: 1px solid var(--line); border-radius: 13px; padding: 15px; }.lookup-grid h3,.lookup-revisions h3 { margin: 0 0 10px; color: var(--green); font-size: 11px; }.lookup-grid ul { margin: 0; padding-left: 17px; color: #67594a; font-size: 9px; line-height: 1.8; }.lookup-grid article > p,.lookup-revisions > p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }.lookup-grid .lookup-ok { color: #39734d; }
.lookup-revisions { margin-top: 12px; }.lookup-line { display: grid; grid-template-columns: 25px minmax(0,1fr); gap: 9px; align-items: start; border-top: 1px solid #ecefe9; padding: 9px 0; }.lookup-line:first-of-type { border-top: 0; padding-top: 0; }.lookup-line > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: #edf4ef; color: var(--green); font-size: 8px; font-weight: 850; }.lookup-line strong,.lookup-line small { display: block; }.lookup-line strong { font-size: 9px; }.lookup-line small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.5; }.lookup-updated { margin: 14px 0 0; color: #92978f; font-size: 7px; text-align: right; }
.lookup-note { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 18px 22px; box-shadow: none; }.lookup-note > span { font-size: 20px; }.lookup-note strong { font-size: 10px; }.lookup-note p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }.lookup-footer { margin-top: 28px; color: #92968f; font-size: 8px; text-align: center; }
.lookup-density-embedded { width: min(1180px,100%); margin: 16px auto 0; overflow: hidden; border: 1px solid #d8c8ae; border-radius: 18px; background: #fff; box-shadow: 0 14px 38px rgba(90,67,34,.06); }.lookup-density-embedded > header { display: flex; align-items: center; gap: 14px; background: linear-gradient(120deg,#fff9ee,#fff); padding: 18px 22px; }.lookup-density-embedded > header > span { width: 44px; height: 44px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 13px; background: #f1dfbf; color: #885d21; font-size: 19px; font-weight: 800; }.lookup-density-embedded small { color: var(--orange); font-size: 7px; font-weight: 850; letter-spacing: .1em; }.lookup-density-embedded h2 { margin: 4px 0; color: #665032; font-size: 13px; }.lookup-density-embedded p { margin: 0; color: #88775f; font-size: 8px; line-height: 1.55; }.lookup-density-embedded iframe { width: 100%; height: 1050px; display: block; border: 0; border-top: 1px solid #eee3d2; background: #f4f4ef; }
.embedded-density-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); }.embedded-density-panel iframe { width: 100%; height: calc(100vh - 175px); min-height: 780px; display: block; border: 0; background: #f4f4ef; }

.density-lead-summary { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; border-radius: 15px; background: linear-gradient(120deg,#2e533d,#477457); padding: 17px 19px; color: #fff; }.density-lead-summary > span { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.14); font-size: 17px; }.density-lead-summary small,.density-lead-summary strong,.density-lead-summary p { display: block; }.density-lead-summary small { color: rgba(255,255,255,.62); font-size: 7px; font-weight: 850; letter-spacing: .1em; }.density-lead-summary strong { margin-top: 3px; font-size: 18px; }.density-lead-summary p { margin: 3px 0 0; color: rgba(255,255,255,.72); font-size: 8px; }
.density-lead-list { padding: 8px 14px; }.density-lead-item { border-bottom: 1px solid var(--line); padding: 14px 2px; }.density-lead-item:last-child { border-bottom: 0; }.density-lead-head { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 10px; }.density-lead-head > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 9px; font-weight: 850; }.density-lead-head strong,.density-lead-head small { display: block; }.density-lead-head strong { font-size: 10px; }.density-lead-head small { margin-top: 4px; color: var(--muted); font-size: 7px; }.density-lead-head > a { border-radius: 99px; background: var(--orange-soft); padding: 7px 10px; color: var(--orange); font-size: 8px; font-weight: 800; text-decoration: none; }.density-lead-metrics { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 7px; margin: 11px 0; }.density-lead-metrics > span { border-radius: 9px; background: #f5f6f3; padding: 9px; }.density-lead-metrics small,.density-lead-metrics strong { display: block; }.density-lead-metrics small { color: var(--muted); font-size: 6.5px; }.density-lead-metrics strong { margin-top: 4px; color: var(--green); font-size: 9px; }.density-lead-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }.density-lead-foot details { min-width: 150px; color: var(--orange); font-size: 8px; text-align: right; }.density-lead-foot summary { cursor: pointer; font-weight: 750; }.density-lead-foot pre { max-width: 720px; max-height: 320px; overflow: auto; margin: 9px 0 0; border-radius: 9px; background: #f6f6f3; padding: 12px; color: #60645d; font: 8px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace; text-align: left; white-space: pre-wrap; }

@media (max-width: 760px) {
  .portal-settings { align-items: stretch; flex-direction: column; }.portal-settings > div:last-child { display: grid; }.audit-item { grid-template-columns: 32px minmax(0,1fr); }.audit-item em { grid-column: 2; width: fit-content; }
  .lookup-page { padding: 20px 10px; }.lookup-brand { margin-bottom: 20px; }.lookup-hero { padding: 23px 18px; }.lookup-form { grid-template-columns: 1fr; }.lookup-form button { width: 100%; }.lookup-result { padding: 20px 16px; }.lookup-result-head { flex-direction: column; }.lookup-grid { grid-template-columns: 1fr; }.lookup-density-embedded > header { align-items: flex-start; }.lookup-density-embedded iframe { height: 1160px; }.embedded-density-panel iframe { height: calc(100vh - 145px); min-height: 720px; }.density-lead-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }.density-lead-head { grid-template-columns: 36px minmax(0,1fr); }.density-lead-head > a { grid-column: 2; width: fit-content; }.density-lead-foot { align-items: stretch; flex-direction: column; }.density-lead-foot details { text-align: left; }
}
