/* POS-X R291 — Audit history, the same green/sidebar rhythm as HR. */
#page-content[data-page="admin-audit"]{padding:0!important;margin:0!important;max-width:none!important;width:100%!important;background:#fff!important;min-height:calc(100dvh - 112px);color:#172b34!important}
#page-content[data-page="admin-audit"] .audit291-shell{--audit-green:#008e4c;--audit-line:#dce7e3;--audit-ink:#19322b;font-family:Tahoma,'Noto Sans Thai','Segoe UI',sans-serif;display:grid;grid-template-columns:235px minmax(0,1fr);width:100%;min-height:calc(100dvh - 113px);color:var(--audit-ink);background:#fff;font-size:13px;line-height:1.5}
#page-content .audit291-shell *,#page-content .audit291-shell *::before,#page-content .audit291-shell *::after{box-sizing:border-box}
#page-content .audit291-sidebar{padding:16px 10px 26px;background:linear-gradient(160deg,#034732 0%,#076647 55%,#034b38 100%);color:#ecfff3;min-width:0;position:relative;overflow:hidden}
#page-content .audit291-side-heading{display:flex;align-items:center;gap:12px;padding:9px 12px 17px;font-size:16px;border-bottom:1px solid #ffffff2b;margin-bottom:11px}
#page-content .audit291-side-heading svg{width:21px;height:21px;flex:none}
#page-content .audit291-sidebar nav{display:grid;gap:5px;align-content:start;position:relative;z-index:1}
#page-content .audit291-sidebar .audit291-nav-item{background:transparent!important;box-shadow:none!important;border:1px solid transparent!important;color:#effff6!important;padding:10px 12px!important;min-height:42px;text-align:left;display:flex;align-items:center;gap:11px;border-radius:8px;font-size:13px!important;font-weight:600!important;width:100%;cursor:pointer}
#page-content .audit291-sidebar .audit291-nav-item svg{height:20px;width:20px;flex:none}
#page-content .audit291-sidebar .audit291-nav-item:hover{background:#ffffff1e!important}
#page-content .audit291-sidebar .audit291-nav-item.active{background:#e0f6e7!important;color:#05793c!important;border-color:#d2f0dd!important;font-weight:800!important}
#page-content .audit291-watermark{position:absolute;bottom:20px;left:18px;opacity:.21;pointer-events:none}
#page-content .audit291-watermark svg{width:152px;height:152px;stroke:#c5ffdb;stroke-width:1.35}
#page-content .audit291-main{padding:21px clamp(18px,2.2vw,34px) 26px;min-width:0;width:100%;background:#fff}
#page-content .audit291-heading{display:flex;align-items:center;gap:17px;margin:0 0 22px}
#page-content .audit291-symbol{width:57px;height:57px;display:grid;place-items:center;flex:none;border-radius:14px;color:#fff;background:linear-gradient(145deg,#0ca45e,#00783e);box-shadow:0 4px 14px #04834d20}
#page-content .audit291-symbol svg{width:30px;height:30px}
#page-content .audit291-heading h1{font-size:26px!important;line-height:1.3;color:#0d281b!important;margin:0 0 2px;font-weight:800!important}
#page-content .audit291-heading p{margin:0;color:#71827c;font-size:13px}
#page-content .audit291-filters{display:grid;grid-template-columns:minmax(210px,1.55fr) minmax(125px,.8fr) minmax(120px,.8fr) minmax(138px,.95fr) minmax(180px,1.4fr) auto auto;align-items:end;gap:10px;padding:13px 13px 15px;background:#fff;border:1px solid var(--audit-line);border-radius:11px;box-shadow:0 4px 15px #1543310b;margin-bottom:17px}
#page-content .audit291-filters label{display:grid;gap:5px;min-width:0;color:#34483e;font-weight:700;font-size:12px}
#page-content .audit291-filters input,#page-content .audit291-filters select{min-width:0;width:100%;height:39px;border-radius:7px;border:1px solid #cbdad5;padding:7px 10px;font-size:12px;color:#1b3440;background:#fff!important;font-weight:500;box-shadow:none;outline:0}
#page-content .audit291-filters input:focus,#page-content .audit291-filters select:focus{border-color:#138a50;box-shadow:0 0 0 2px #00894d20}
#page-content .audit291-filters .audit291-date-inputs{display:flex;gap:6px;align-items:center;min-width:0}
#page-content .audit291-filters .audit291-date-inputs>input{flex:1;width:0;min-width:0;padding:6px 5px;font-size:11px}
#page-content .audit291-filters .audit291-date-inputs>span{font-size:12px;color:#718279;font-weight:500}
#page-content .audit291-search-wrap{align-self:end}
#page-content .audit291-filters .audit291-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#page-content .audit291-filters button{height:39px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 12px!important;border-radius:7px!important;white-space:nowrap;font-size:12px!important;font-weight:750!important;box-shadow:none!important}
#page-content .audit291-filters button svg{width:16px;height:16px}
#page-content .audit291-filters .audit291-find{background:#008949!important;color:#fff!important;border:1px solid #008949!important}
#page-content .audit291-filters .audit291-reset{background:#fff!important;border:1px solid #c6d6d1!important;color:#41635a!important}
#page-content .audit291-card{border:1px solid #dbe8e3;border-radius:11px;background:#fff;overflow:hidden;box-shadow:0 3px 16px #15433109}
#page-content .audit291-table-heading{min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px}
#page-content .audit291-table-heading>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#page-content .audit291-table-heading svg{width:19px;height:19px;color:#008b4e}
#page-content .audit291-table-heading strong{font-size:15px;color:#132f22}
#page-content .audit291-table-heading span{font-size:12px;color:#667870}
#page-content .audit291-table-heading .audit291-export{display:inline-flex;align-items:center;gap:7px;background:#fff!important;border:1px solid #c6d7d0!important;color:#335248!important;border-radius:7px!important;padding:8px 11px!important;white-space:nowrap;font-size:12px;font-weight:650;min-height:36px}
#page-content .audit291-table-heading .audit291-export svg{width:16px;height:16px;color:inherit}
#page-content .audit291-table-heading button:disabled{opacity:.55;cursor:wait}
#page-content .audit291-table-scroll{max-width:100%;overflow-x:auto;min-height:250px}
#page-content .audit291-table-scroll table{margin:0!important;width:100%;border-collapse:collapse;min-width:820px!important;table-layout:fixed;background:#fff!important;border:0!important}
#page-content .audit291-table-scroll th{padding:13px 12px!important;text-align:left!important;border-bottom:1px solid #d9e9e2!important;background:#e5f5eb!important;color:#19442e!important;font-size:12px!important;font-weight:750!important;white-space:nowrap!important}
#page-content .audit291-table-scroll th:nth-child(1){width:17%}#page-content .audit291-table-scroll th:nth-child(2){width:23%}#page-content .audit291-table-scroll th:nth-child(3){width:12%}#page-content .audit291-table-scroll th:nth-child(4){width:19%}#page-content .audit291-table-scroll th:nth-child(5){width:18%}#page-content .audit291-table-scroll th:nth-child(6){width:11%}
#page-content .audit291-table-scroll td{padding:10px 12px!important;border-bottom:1px solid #e9efed!important;background:#fff!important;color:#273d3a!important;font-size:12px!important;line-height:1.5!important;vertical-align:middle!important;overflow-wrap:anywhere!important}
#page-content .audit291-table-scroll tr:hover td{background:#f8fcf9!important}
#page-content .audit291-table-scroll tr:last-child td{border-bottom:0!important}
#page-content .audit291-table-scroll td strong{display:block;font-size:12px;font-weight:650;color:#1e3a35}
#page-content .audit291-table-scroll td small{display:block;font-size:10px;color:#758a86;font-weight:400;line-height:1.4;margin-top:1px}
#page-content .audit291-person{display:flex;align-items:center;gap:8px;min-width:0}
#page-content .audit291-person svg{width:16px;height:16px;color:#64817b;flex:none}
#page-content .audit291-person span{overflow-wrap:anywhere;max-width:100%}
#page-content .audit291-action{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:3px 10px;font-size:11px;font-weight:750;white-space:nowrap}
#page-content .audit291-update{background:#dcefff;color:#1063af}#page-content .audit291-insert{background:#dcf7e0;color:#096e35}#page-content .audit291-delete{background:#ffe7e5;color:#bc3531}#page-content .audit291-other{background:#edf0f7;color:#5d6583}
#page-content .audit291-record{font-size:11px!important;color:#627f80!important}
#page-content .audit291-table-scroll .audit291-detail-btn{background:#fff!important;border:1px solid #ceded9!important;border-radius:7px!important;color:#315a4b!important;padding:6px 8px!important;font-size:11px!important;min-height:32px!important;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}
#page-content .audit291-table-scroll .audit291-detail-btn svg{width:15px;height:15px;color:#057f46}
#page-content .audit291-empty{text-align:center!important;padding:40px 15px!important;color:#72847c!important}
#page-content .audit291-status{padding:0 14px;min-height:21px;color:#658479;font-size:11px}
#page-content .audit291-status[data-kind="error"]{color:#b5242e;background:#fff1f0;padding:9px 14px}
#page-content .audit291-status[data-kind="success"]{color:#007744}
#page-content .audit291-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 2px;flex-wrap:wrap;color:#465f56;font-size:12px}
#page-content .audit291-pager{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
#page-content .audit291-pager label{display:flex;align-items:center;gap:8px;white-space:nowrap}
#page-content .audit291-pager select{border:1px solid #d0dfd9;background:#fff;color:#37544c;border-radius:7px;padding:7px 10px;min-height:35px;font-size:12px}
#page-content .audit291-pages{display:flex;align-items:center;gap:5px}
#page-content .audit291-pages button{min-width:32px;height:33px;display:inline-grid;place-items:center;background:#fff!important;border:1px solid #d4e2dc!important;color:#51675d!important;border-radius:7px!important;padding:0 6px!important;font-size:12px!important;font-weight:650!important}
#page-content .audit291-pages button[aria-current="page"]{background:#038d4d!important;color:#fff!important;border-color:#038d4d!important}
#page-content .audit291-pages button:disabled{opacity:.35;cursor:default}
#page-content .audit291-overlay{position:fixed;inset:0;background:#102b22a1;display:flex;align-items:center;justify-content:center;z-index:2200;padding:20px}
#page-content .audit291-overlay[hidden]{display:none!important}
#page-content .audit291-modal{width:min(940px,98vw);max-height:88dvh;display:flex;flex-direction:column;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 20px 75px #001f1760;border:1px solid #d6e6df}
#page-content .audit291-modal header{padding:17px 22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e2ece7}
#page-content .audit291-modal header h2{margin:0;font-size:19px;color:#143d2c}
#page-content .audit291-modal header p{margin:2px 0 0;font-size:11px;color:#74877f}
#page-content .audit291-modal header button{border:0!important;background:transparent!important;padding:5px!important;color:#4c665d!important}
#page-content .audit291-modal-content{overflow:auto;padding:19px 22px}
#page-content .audit291-modal .audit291-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 15px}
#page-content .audit291-modal .audit291-meta>div{padding:10px;border:1px solid #e4eee9;border-radius:7px}
#page-content .audit291-modal .audit291-meta-wide{grid-column:1/-1}
#page-content .audit291-modal dt{color:#82928c;font-size:11px;margin-bottom:3px}
#page-content .audit291-modal dd{margin:0;color:#1b3a30;overflow-wrap:anywhere;font-weight:600}
#page-content .audit291-modal dd small{color:#778e85;font-weight:400}
#page-content .audit291-compare{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
#page-content .audit291-compare section{min-width:0;border:1px solid #dbe9e2;border-radius:8px;overflow:hidden}
#page-content .audit291-compare h3{margin:0;padding:10px 12px;background:#ebf6f0;font-size:13px;color:#184c31}
#page-content .audit291-compare pre{margin:0;padding:12px;background:#fafcfa;min-height:120px;max-height:280px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;color:#273c33;font-size:11px;line-height:1.5}
#page-content .audit291-redaction-note{font-size:11px;color:#778a7e;margin:12px 0 0}
#page-content .audit291-modal>footer{display:flex;justify-content:flex-end;border-top:1px solid #dce9e3;padding:12px 21px}
#page-content .audit291-modal>footer button{background:#00874b!important;color:#fff!important;border:1px solid #00874b!important;border-radius:7px!important;min-width:80px;padding:8px 15px!important}
@media(max-width:1380px){#page-content[data-page="admin-audit"] .audit291-shell{grid-template-columns:205px minmax(0,1fr)}#page-content .audit291-filters{grid-template-columns:1.6fr 1fr 1fr 1fr;gap:9px}#page-content .audit291-search-wrap{grid-column:1/3}#page-content .audit291-filters .audit291-find{grid-column:3}#page-content .audit291-filters .audit291-reset{grid-column:4}}
@media(max-width:930px){#page-content[data-page="admin-audit"] .audit291-shell{grid-template-columns:1fr}#page-content .audit291-sidebar{padding:10px 12px}#page-content .audit291-side-heading{padding:3px 9px 9px;margin:0 0 6px}#page-content .audit291-sidebar nav{display:flex;gap:5px;overflow-x:auto}#page-content .audit291-sidebar .audit291-nav-item{flex:0 0 auto;width:auto;padding:8px!important;font-size:11px!important}#page-content .audit291-watermark{display:none}#page-content .audit291-main{padding:18px}#page-content .audit291-filters{grid-template-columns:repeat(2,minmax(0,1fr))}#page-content .audit291-search-wrap{grid-column:1/-1}#page-content .audit291-filters .audit291-find{grid-column:1}#page-content .audit291-filters .audit291-reset{grid-column:2}#page-content .audit291-compare{grid-template-columns:1fr}}
@media(max-width:550px){#page-content .audit291-heading h1{font-size:21px!important}#page-content .audit291-filters{grid-template-columns:1fr}#page-content .audit291-search-wrap,#page-content .audit291-filters .audit291-find,#page-content .audit291-filters .audit291-reset{grid-column:1}#page-content .audit291-table-heading{align-items:start;flex-wrap:wrap}#page-content .audit291-pager{gap:7px}#page-content .audit291-modal .audit291-meta{grid-template-columns:1fr}}
