/* Hướng 2 "Tươi mát" — user chọn từ 3 bản preview ngày 2026-10-31:
   tông xanh lá thân thiện kiểu HR, nền xanh rất nhẹ, thẻ trắng bo tròn mềm,
   nhãn trạng thái dạng pill pastel, nút bo tròn, avatar vòng tròn chữ cái. */
:root{
  --bg:#f2f8f4; --surface:#ffffff; --ink:#17352a; --ink2:#4a6a5c;
  --line:#dcebe2; --acc:#0e7a4f; --accSoft:#e2f4ea; --avaBg:#bfe8d2;
  --wait-bg:#fdf0d5; --wait:#9a6a06;
  --ok-bg:#d8f3e3; --ok:#0e7a4f;
  --bad-bg:#fbe3e3; --bad:#b3382c;
  --mut-bg:#e8efeb; --mut:#4a6a5c;
  --radius:18px;
}
/* Giao diện chốt là nền trắng xanh nhẹ (đúng bản preview user duyệt) — không dùng chế độ tối. */
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);
  font-family:'Be Vietnam Pro','Segoe UI',system-ui,-apple-system,sans-serif;
  font-size:15.5px;line-height:1.55;-webkit-font-smoothing:antialiased}
a{color:var(--acc);text-decoration:none}
a:hover{text-decoration:underline}
h1{font-size:27px;font-weight:800;letter-spacing:-.01em;margin:18px 0 6px}
h1.largetitle{font-size:29px}
h2{font-size:17.5px;font-weight:700;margin:4px 0 10px}
.muted{color:var(--ink2)}
.small{font-size:13.5px;color:var(--ink2)}
.mono{font-family:inherit}

/* Thanh trên trắng, dính, viền xanh nhạt */
.top{position:sticky;top:0;z-index:50;display:flex;align-items:center;gap:18px;flex-wrap:wrap;
  padding:11px 22px;background:var(--surface);border-bottom:1px solid var(--line)}
.brand{font-weight:800;font-size:18px;color:var(--ink);display:inline-flex;align-items:center;gap:9px}
.brand-logo{width:30px;height:30px;border-radius:8px;object-fit:cover;display:block}
.brand:hover{text-decoration:none}
.brand .leaf{color:var(--acc)}
.nav{display:flex;gap:3px;flex-wrap:wrap}
.nav a{color:var(--ink2);padding:8px 13px;border-radius:999px;font-size:14.5px;display:inline-flex;align-items:center;min-height:38px}
.nav a:hover{text-decoration:none;background:var(--accSoft);color:var(--acc)}
.count{background:var(--bad);color:#fff;border-radius:999px;font-size:11.5px;font-weight:700;padding:1px 7px;margin-left:5px}
.userbox{margin-left:auto;color:var(--ink2);font-size:14px}
.wrap{max-width:none;margin:0;padding:6px 30px 54px}

/* Danh sách đơn dạng hàng có avatar (bố cục preview Hướng 2) */
.lrows{margin-top:2px}
.lrow{display:flex;gap:12px;align-items:center;padding:12px 4px;border-bottom:1px dashed var(--line);color:var(--ink);border-radius:10px}
.lrow:last-child{border-bottom:none}
.lrow:hover{text-decoration:none;background:var(--bg)}
.lrow .ava{width:40px;height:40px;font-size:14px}
.lmain{flex:1;display:flex;flex-direction:column;min-width:0}
.lt{font-size:15px}
.ls{color:var(--ink2);font-size:13.5px}
.userbox{display:flex;align-items:center;gap:9px}
.userbox .ava{width:34px;height:34px;font-size:12.5px}

.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;margin:14px 0}
.card.narrow{max-width:none}
.card.authn{max-width:440px;margin:34px auto}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:4px 28px}
.field{margin:10px 0}
.field label{display:block;font-size:13px;font-weight:700;color:var(--ink2);margin-bottom:5px}
.field.grow{flex:1}
.formcard form .field{padding:7px 0;margin:0;border-bottom:1px dashed var(--line)}
.formcard form .field:last-of-type{border-bottom:none}
input,select,textarea{width:100%;padding:10px 13px;border:1.5px solid var(--line);border-radius:12px;
  background:var(--surface);color:var(--ink);font:inherit;font-size:15.5px}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--acc);box-shadow:0 0 0 3px var(--accSoft)}
::placeholder{color:var(--ink2);opacity:.6}
.check{display:flex;gap:9px;align-items:center;margin:12px 0;cursor:pointer}
.check input{width:auto;accent-color:var(--acc)}

/* Nút bo tròn: chính xanh lá, phụ nền xanh nhạt, nguy hiểm nền đỏ nhạt */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 19px;border-radius:999px;
  border:none;background:var(--accSoft);color:var(--acc);font:inherit;font-size:15px;font-weight:700;cursor:pointer;text-decoration:none}
.btn:hover{text-decoration:none;filter:brightness(.97)}
.btn:active{transform:scale(.97)}
.btn.primary{background:var(--acc);color:#fff}
.btn.danger{background:var(--bad-bg);color:var(--bad)}
.btn.small{min-height:33px;padding:4px 13px;font-size:13.5px}
.btn[disabled]{opacity:.4;cursor:default}
a:focus-visible,.btn:focus-visible{outline:2px solid var(--acc);outline-offset:2px}

/* Bảng mềm: đầu cột nhỏ, hàng ngăn bằng đường đứt nét */
.tbl{width:100%;border-collapse:collapse}
.tbl th{text-align:left;font-size:12.5px;color:var(--ink2);font-weight:700;text-transform:uppercase;letter-spacing:.04em;
  padding:6px 10px;border-bottom:1.5px solid var(--line)}
.tbl td{padding:11px 10px;border-bottom:1px dashed var(--line);vertical-align:top;font-size:15px}
.tbl tr:last-child td{border-bottom:none}
.tbl tbody tr:hover{background:var(--bg)}
.chev{color:var(--ink2);opacity:.55;font-weight:700;margin-left:5px}

/* Nhãn trạng thái dạng pill pastel */
.tag{display:inline-block;border-radius:999px;font-size:12.5px;font-weight:700;padding:4px 12px;white-space:nowrap}
.tag.wait{background:var(--wait-bg);color:var(--wait)}
.tag.ok{background:var(--ok-bg);color:var(--ok)}
.tag.bad{background:var(--bad-bg);color:var(--bad)}
.tag.mut{background:var(--mut-bg);color:var(--mut)}
.tag.big{font-size:14px;padding:6px 16px}
@keyframes tag-pop{0%{transform:scale(1.45)}55%{transform:scale(.94)}100%{transform:scale(1)}}
.tag.slam{animation:tag-pop .3s ease-out}
.chip{display:inline-block;padding:3px 11px;border-radius:999px;font-size:12.5px;font-weight:700;background:var(--mut-bg);color:var(--mut)}
.chip.ok{background:var(--ok-bg);color:var(--ok)}

/* Avatar chữ cái */
.ava{width:38px;height:38px;border-radius:50%;background:var(--avaBg);color:var(--acc);font-weight:800;
  display:inline-flex;align-items:center;justify-content:center;font-size:13.5px;flex:none}
.who2{display:flex;gap:11px;align-items:center;padding:8px 0}
.who2 .nm{font-weight:600}

/* Lịch tháng mini: ô có người nghỉ tô vàng nhạt */
.cal{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;font-size:12.5px;text-align:center}
.cal div{padding:6px 0;border-radius:8px;color:var(--ink2)}
.cal .hd{font-weight:700;color:var(--ink)}
.cal .off{background:var(--wait-bg);color:var(--wait);font-weight:700}
.cal .today{background:var(--acc);color:#fff;font-weight:700}
.cal .dim{opacity:.35}

/* Bố cục 2 cột trang chủ */
.cols{display:grid;grid-template-columns:1fr 302px;gap:18px;align-items:start}
.cols .card{margin-top:0}
@media(max-width:840px){.cols{grid-template-columns:1fr}}

/* Quá trình duyệt */
.steps{list-style:none;margin:4px 0;padding:0}
.steps li{padding:10px 2px;border-bottom:1px dashed var(--line);display:flex;gap:12px;align-items:flex-start}
.steps li:last-child{border-bottom:none}
.steps li .glyph{width:26px;height:26px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;
  font-size:12.5px;font-weight:800;background:var(--accSoft);color:var(--acc);margin-top:1px}
.steps li.done .glyph{background:var(--acc);color:#fff}
.steps li.bad .glyph{background:var(--bad);color:#fff}
.steps li.skip .glyph{background:var(--wait-bg);color:var(--wait)}
.steps li.current{background:var(--bg);border-radius:12px;padding-left:10px;padding-right:10px}

.inline-form{display:flex;gap:10px;margin:10px 0;flex-wrap:wrap}
.inline-form input{flex:1;min-width:200px}
.flash{padding:12px 16px;border-radius:12px;margin:16px 0;font-weight:600;font-size:15px}
.flash.ok{background:var(--ok-bg);color:var(--ok)}
.flash.bad{background:var(--bad-bg);color:var(--bad)}
.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.row.between{justify-content:space-between}

/* Bộ lọc */
.filters{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0;align-items:center}
.filters input,.filters select{width:auto}
.segmented{display:inline-flex;background:var(--accSoft);border-radius:999px;padding:3px;gap:2px;flex-wrap:wrap}
.segmented label{cursor:pointer}
.segmented input{position:absolute;opacity:0;width:1px;height:1px}
.segmented span{display:inline-flex;align-items:center;min-height:31px;padding:4px 14px;border-radius:999px;font-size:14px;color:var(--ink2)}
.segmented input:checked+span{background:var(--surface);font-weight:700;color:var(--acc);box-shadow:0 1px 4px rgba(23,53,42,.15)}
.segmented input:focus-visible+span{outline:2px solid var(--acc);outline-offset:1px}

@media (max-width:680px){
  .wrap{padding:4px 14px 48px}
  .card{padding:15px 16px}
  .tbl thead{display:none}
  .tbl,.tbl tbody,.tbl tr,.tbl td{display:block;width:100%}
  .tbl tr{padding:8px 0;border-bottom:1px dashed var(--line)}
  .tbl td{border-bottom:none;padding:3px 2px}
  .tbl tr:last-child{border-bottom:none}
  h1,h1.largetitle{font-size:24px}
}
/* Bộ chọn khoảng ngày kiểu Google (form tạo đơn + bộ lọc) */
.drp{position:relative}
.filters .drp{flex:1 1 100%}
.drp-fields{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.drp-input{flex:1;min-width:180px;padding:11px 14px;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);
  color:var(--ink2);font:inherit;font-size:15px;cursor:pointer;text-align:left}
.drp-input b{color:var(--ink);font-size:15.5px}
.drp-input:focus-visible{outline:2px solid var(--acc);outline-offset:1px}
.drp-arrow{color:var(--ink2);font-weight:700}
.drp-panel{margin-top:10px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);padding:14px 16px}
.drp-nav{display:flex;justify-content:space-between;margin-bottom:8px}
.drp-months{display:grid;grid-template-columns:1fr 1fr;gap:18px}
@media(max-width:720px){.drp-months{grid-template-columns:1fr}}
.drp-month{border:1px solid var(--line);border-radius:16px;padding:14px 12px;background:#fbfefd}
.drp-mhead{margin-bottom:6px}
.drp-mtitle{display:block;width:100%;font:inherit;font-weight:700;text-align:center;background:none;border:none;cursor:pointer;color:var(--ink);padding:2px 0;border-radius:8px}
.drp-mtitle:hover{background:var(--accSoft)}
.drp-jump{display:flex;gap:6px;justify-content:center;align-items:center;margin-top:6px}
.drp-jump[hidden]{display:none}
.drp-jump select{width:auto;padding:7px 9px}
.drp-jump input{width:92px;padding:7px 9px}
.drp-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center}
.drp-wd{font-size:12px;font-weight:700;color:var(--ink2);padding:3px 0}
.drp-day{border:none;background:none;font:inherit;font-size:14px;width:38px;height:38px;justify-self:center;border-radius:50%;cursor:pointer;color:var(--ink);padding:0}
.drp-day:hover{background:var(--accSoft)}
.drp-day.sun{color:var(--bad)}
.drp-day.today{box-shadow:inset 0 0 0 1.5px var(--acc)}
.drp-day.inrange{background:var(--accSoft);border-radius:0;justify-self:stretch;width:auto}
.drp-day.endpoint{background:var(--acc);color:#fff;font-weight:700;border-radius:50%;justify-self:center;width:38px}
.drp-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px;flex-wrap:wrap}

/* Chữ ký cá nhân */
.sigbox{margin-top:8px}
.sigimg{max-height:58px;max-width:230px;display:block}
.sig-default{font-family:'Dancing Script',cursive;font-size:27px;line-height:1.15;color:var(--ink);transform:rotate(-2deg);display:inline-block}
.sig-name{font-size:12px;color:var(--ink2);letter-spacing:.05em;text-transform:uppercase;margin-top:1px}
.sig-line{border-bottom:1.5px solid var(--line);max-width:240px;padding-bottom:2px}
canvas.sigpad{width:100%;max-width:520px;height:170px;border:1.5px dashed var(--line);border-radius:12px;background:var(--surface);touch-action:none;cursor:crosshair}
@media (prefers-reduced-motion: reduce){*{transition:none!important}.tag.slam{animation:none}.btn:active{transform:none}}

/* Góp ý, báo lỗi và thông tin tiến độ. */
.nav a.active{background:var(--accSoft);color:var(--acc);font-weight:700}
.page-intro{margin:2px 0 16px}
.summary-strip{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 20px}
.summary-item{display:flex;flex:1;min-width:130px;flex-direction:column;gap:3px;padding:14px 18px;background:var(--surface);border:1px solid var(--line);border-radius:14px;color:var(--ink2);font-size:13px}
a.summary-item:hover{text-decoration:none;border-color:var(--acc)}
.summary-item strong{color:var(--ink);font-size:23px;line-height:1.2}
.summary-item.selected{border-color:var(--acc);background:var(--accSoft)}
.feedback-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,380px);gap:20px;align-items:start}
.feedback-layout>.card,.feedback-layout>aside>.card{margin-top:0}
.feedback-compose{scroll-margin-top:140px}
.feedback-item{display:block;padding:18px 2px;border-top:1px dashed var(--line);color:var(--ink);overflow-wrap:anywhere}
.feedback-item:hover{text-decoration:none;background:var(--bg);border-radius:10px}
.feedback-item h3{margin:8px 0 4px;font-size:17px;line-height:1.5}
.feedback-excerpt{margin:0 0 12px;color:var(--ink2);font-size:14px}
.feedback-list .filters select{flex:1;min-width:0}
.tag.info{background:#e2effa;color:#235d90}
.image-preview{display:block;max-width:100%;max-height:220px;object-fit:contain;border-radius:12px;margin:12px 0}
.feedback-attachment{display:block;max-width:100%;max-height:520px;object-fit:contain;object-position:left;border:1px solid var(--line);border-radius:12px}
.feedback-response{border-top:1px dashed var(--line);margin-top:24px;padding-top:18px}
.empty-state{padding:26px 12px;text-align:center}
.empty-state h3{margin:5px 0;font-size:17px}
.prose{white-space:normal;overflow-wrap:anywhere}
.back-link{display:inline-block;margin-top:18px}
.pagination{margin-top:16px;border-top:1px solid var(--line);padding-top:16px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.leave-total{display:flex;flex-wrap:wrap;gap:5px 16px;align-items:center;padding:14px 16px;background:var(--accSoft);border-radius:12px;margin:16px 0}
.leave-total strong{font-size:22px;color:var(--acc)}
.leave-total .small{flex-basis:100%}
.role-form{display:flex;gap:7px;align-items:center;min-width:190px}
.role-form select{padding:7px 9px;font-size:13px}
.project-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:16px 0 20px}
.project-metric{display:flex;flex-direction:column;gap:7px;border:1px solid var(--line);border-radius:14px;padding:13px 16px;background:var(--surface);font-size:13px;color:var(--ink2)}
.project-metric strong{font-size:23px;color:var(--ink);line-height:1.2}
.project-metric:hover{text-decoration:none;border-color:var(--acc)}
.project-metric.active{background:var(--accSoft);border-color:var(--acc)}
.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:18px}
.project-card{margin:0;display:flex;flex-direction:column;gap:14px;min-width:0}
.project-card h2{font-size:19px;margin:0;overflow-wrap:anywhere}
.project-description{font-size:14px;color:var(--ink2);margin:0;overflow-wrap:anywhere;flex:1}
.project-progress progress{display:block;width:100%;height:10px;appearance:none;border:none;background:var(--accSoft);border-radius:99px;margin-top:8px;overflow:hidden}
.project-progress progress::-webkit-progress-bar{background:var(--accSoft);border-radius:99px}
.project-progress progress::-webkit-progress-value{background:var(--acc);border-radius:99px}
.project-progress progress::-moz-progress-bar{background:var(--acc);border-radius:99px}
.project-meta{margin:4px 0;line-height:1.8}
.project-overdue{color:var(--bad);font-size:13px;font-weight:700}
.project-empty{grid-column:1/-1;padding:30px 20px;text-align:center}
.project-detail{max-width:1000px}
.project-detail .project-progress{margin:24px 0}
.project-detail-description{overflow-wrap:anywhere;margin-bottom:22px}
.project-form{max-width:1000px}
.project-pagination{margin-top:20px}
@media(max-width:1000px){.project-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:480px){.project-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.project-metric{padding:11px 13px}.grid2{grid-template-columns:minmax(0,1fr)}}
@media(max-width:960px){.feedback-layout{grid-template-columns:minmax(0,1fr)}.feedback-compose{scroll-margin-top:190px}}
@media(max-width:680px){.top{gap:8px;padding:10px 14px}.nav{gap:1px}.nav a{font-size:13px;padding:7px 9px}.userbox{margin-left:0;width:100%}.summary-strip{gap:7px}.summary-item{min-width:100px;padding:11px 12px}.summary-item strong{font-size:21px}.feedback-item>.row{gap:7px}.feedback-list .filters{align-items:stretch}.feedback-list .filters select{flex-basis:100%}.feedback-compose{scroll-margin-top:240px}.drp-month{min-width:0}.drp-day{width:32px;height:34px}.drp-day.endpoint{width:32px}}
