:root { --ink:#15231e; --muted:#6a766f; --paper:#f7f8f3; --line:#dce3dc; --green:#0e6d50; --amber:#a86400; --red:#ad3833; }
* { box-sizing:border-box; } body { margin:0; color:var(--ink); background:var(--paper); font-family:Arial,"Noto Sans Thai",sans-serif; font-size:15px; } .shell { width:min(1180px,calc(100% - 32px)); margin:auto; padding:28px 0 64px; } .topbar { min-height:54px; display:flex; align-items:center; justify-content:space-between; margin-bottom:46px; border-bottom:1px solid var(--line); } .brand { color:var(--ink); font-size:24px; font-weight:800; letter-spacing:-1.2px; text-decoration:none; } .brand span { color:var(--green); } #identity { display:flex; gap:14px; align-items:center; color:var(--muted); } h1 { margin:4px 0 8px; letter-spacing:-1.2px; font-size:clamp(28px,4vw,42px); } .eyebrow { margin:0; color:var(--green); font-size:11px; font-weight:bold; letter-spacing:1.4px; } .muted { color:var(--muted); line-height:1.6; } .card { border:1px solid var(--line); background:white; padding:clamp(22px,5vw,44px); box-shadow:0 14px 45px #21372a0c; } .narrow { width:min(600px,100%); margin:70px auto; } .form-grid { display:grid; gap:18px; margin-top:28px; } label { display:grid; gap:7px; color:#38453f; font-size:13px; font-weight:bold; } input,select { width:100%; min-height:43px; border:1px solid #bfcac2; border-radius:3px; padding:10px 12px; background:white; font:inherit; color:var(--ink); } input:focus,select:focus { outline:2px solid #8bc4ad; border-color:var(--green); } .button,.outline { width:max-content; border:0; border-radius:3px; min-height:43px; padding:0 18px; font:inherit; font-weight:bold; cursor:pointer; } .button { background:var(--green); color:white; margin-top:4px; } .outline { background:transparent; border:1px solid var(--green); color:var(--green); } button:disabled { opacity:.55; cursor:wait; } .notice { margin:25px 0 0; border-left:3px solid #d6a63d; padding:10px 12px; color:#69551d; background:#fff9e9; font-size:13px; } .form-error { margin:18px 0 0; padding:11px 13px; background:#fbe6e4; color:#8d2925; border-left:3px solid var(--red); font-size:13px; font-weight:bold; } .field-error { border-color:var(--red)!important; } .intro { display:flex; align-items:end; justify-content:space-between; gap:22px; margin-bottom:28px; } .stats { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; margin-bottom:30px; } .stat { min-height:116px; padding:18px; background:white; border-top:3px solid var(--green); box-shadow:0 3px 10px #21372a08; } .stat.amber { border-color:var(--amber); } .stat.red { border-color:var(--red); } .stat span { display:block; color:var(--muted); font-size:13px; } .stat strong { display:block; margin-top:15px; font-size:31px; letter-spacing:-1px; } .toolbar { display:flex; justify-content:space-between; gap:12px; margin-bottom:13px; } .search { width:min(400px,100%); } .toolbar select { width:220px; align-self:end; } .table-card { background:white; border:1px solid var(--line); } .table-meta { padding:14px 18px; color:var(--muted); font-size:13px; border-bottom:1px solid var(--line); } .table-wrap { overflow-x:auto; } table { width:100%; border-collapse:collapse; min-width:720px; } th { text-align:left; padding:13px 18px; background:#f3f6f2; color:#526058; font-size:11px; letter-spacing:.8px; text-transform:uppercase; } td { padding:15px 18px; border-top:1px solid #ebefeb; vertical-align:top; } td strong,td small { display:block; } td small { color:var(--muted); margin-top:4px; font-size:12px; } .tag,.safe { display:inline-block; margin:0 4px 4px 0; padding:4px 7px; border-radius:2px; font-size:11px; font-weight:bold; } .tag.high { color:#8d2925; background:#fbe6e4; } .tag.medium { color:#7e4d00; background:#fff0cf; } .tag.low { color:#57645c; background:#ebeeeb; } .safe { color:#176243; background:#e1f2e9; } .empty { text-align:center; color:var(--muted); padding:38px; } .link { border:0; background:none; color:var(--green); cursor:pointer; font:inherit; font-weight:bold; } .message { position:fixed; right:18px; bottom:18px; max-width:min(440px,calc(100% - 36px)); padding:13px 16px; background:#81302c; color:white; box-shadow:0 7px 22px #0002; } .message.success { background:var(--green); } .hidden { display:none!important; }
.col-action { width:100px; text-align:center; } .btn-disable { display:inline-block; border:0; border-radius:3px; padding:6px 10px; font:inherit; font-size:12px; font-weight:bold; cursor:pointer; background:#8d2925; color:white; } .btn-disable:hover { background:var(--red); } .confirm-overlay { position:fixed; inset:0; background:rgba(21,35,30,.45); display:flex; align-items:center; justify-content:center; z-index:9999; } .confirm-box { background:white; border:1px solid var(--line); padding:28px 30px; min-width:340px; max-width:420px; box-shadow:0 12px 40px #21372a22; } .confirm-title { font-size:18px; font-weight:800; margin-bottom:10px; } .confirm-body { color:var(--muted); line-height:1.6; margin-bottom:24px; font-size:14px; } .confirm-actions { display:flex; gap:10px; justify-content:flex-end; } .confirm-actions .cancel { background:var(--ink); color:white; } .menu-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:20px; margin-top:40px; } .menu-card { position:relative; display:block; border:1px solid var(--line); background:white; padding:26px 26px 24px; text-decoration:none; color:var(--ink); box-shadow:0 6px 20px #21372a08; transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease; } .menu-card:hover { transform:translateY(-3px); box-shadow:0 14px 34px #21372a14; border-color:#8bc4ad; } .menu-icon { font-size:30px; color:var(--green); line-height:1; } .menu-card h2 { margin:18px 0 6px; font-size:19px; letter-spacing:-.4px; } .menu-card p { margin:0; color:var(--muted); font-size:13px; line-height:1.6; padding-right:18px; } .menu-arrow { position:absolute; top:26px; right:24px; color:var(--green); font-weight:bold; } .page-nav { margin-bottom:26px; } .back { border:0; background:none; color:var(--green); font:inherit; font-weight:bold; cursor:pointer; padding:0; } .back:hover { text-decoration:underline; } .emp-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:16px; padding:18px; } .emp-card { display:flex; gap:14px; align-items:center; border:1px solid var(--line); background:white; padding:14px; border-radius:4px; } .emp-photo { position:relative; width:64px; height:64px; border-radius:50%; overflow:hidden; flex:0 0 64px; background:#eef2ee; } .emp-photo img { width:100%; height:100%; object-fit:cover; display:block; } .emp-photo-fallback, .emp-photo.no-photo .emp-photo-fallback { display:none; } .emp-photo.no-photo .emp-photo-fallback { display:flex; align-items:center; justify-content:center; width:100%; height:100%; font-size:26px; font-weight:800; color:var(--green); background:#eef2ee; } .emp-info { min-width:0; } .emp-info strong { display:block; font-size:14px; line-height:1.4; } .emp-info small { display:block; color:var(--muted); font-size:12px; margin-top:3px; } .emp-info .muted { color:var(--muted); font-size:12px; } .wide { grid-column:1/-1; } @media (max-width:700px) { .shell { width:min(100% - 24px,1180px); padding-top:14px; } .topbar { margin-bottom:24px; } #identity span { display:none; } .narrow { margin:18px auto; } .intro { align-items:start; flex-direction:column; } .intro .outline { width:100%; } .stats { grid-template-columns:repeat(2,1fr); gap:8px; } .stat { min-height:98px; padding:14px; } .stat strong { margin-top:10px; font-size:26px; } .toolbar { flex-direction:column; } .search,.toolbar select { width:100%; } .col-action { width:80px; } .menu-grid { grid-template-columns:1fr; margin-top:24px; } }
