/* NESCEN / FoxPro Legacy: ABCSYSTEM A038 original blue-and-white user interface restyled *only* within .fx-root.
   Existing NESCEN app shell/Auth/ACL and backend remain unchanged. */
.fx-root{--fx-ink:#182b48;--fx-blue:#176bda;--fx-blue2:#135bc3;--fx-border:#d4deeb;--fx-muted:#607189;color:var(--fx-ink);font-family:Tahoma,'Noto Sans Thai',Arial,sans-serif;font-size:14px;background:linear-gradient(180deg,#fafcff 0,#fff 430px);min-height:calc(100vh - 115px);margin:0;box-sizing:border-box}
.fx-root *, .fx-root *:before, .fx-root *:after{box-sizing:border-box}
.fx-root button,.fx-root input,.fx-root select{font:inherit}.fx-root button{cursor:pointer}.fx-root button:disabled{opacity:.45;cursor:not-allowed}.fx-root [hidden]{display:none!important}
.fx-root button:focus-visible,.fx-root input:focus-visible,.fx-root select:focus-visible{outline:2px solid #63a5ff;outline-offset:2px}
.fx-root .fx-ico{width:22px;height:22px;display:inline-block;flex:none;vertical-align:middle;stroke:currentColor;fill:none;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}
.fx-root .fx-ico.sm{width:17px;height:17px}.fx-root .fx-ico.lg{width:30px;height:30px}.fx-root .fx-ico.fx-chevron{width:15px;height:15px}
.fx-root .fx-site-header{height:67px;background:#fff;border-bottom:1px solid #dde4ed;box-shadow:0 2px 8px #102f5110}
.fx-root .fx-head-inner{max-width:1390px;margin:auto;height:100%;display:flex;align-items:center;gap:15px;padding:0 10px}
.fx-root .fx-brand{font-size:24px;font-weight:900;color:#0752a8;letter-spacing:-.6px;white-space:nowrap}
.fx-root .fx-brand-divider{height:42px;border-left:1px solid #cfd9e8}
.fx-root .fx-foxmark{color:#3994e6;display:flex;align-items:center}
.fx-root .fx-foxmark .fx-ico{width:31px;height:31px}
.fx-root .fx-head-title{display:flex;flex-direction:column;min-width:150px}
.fx-root .fx-head-title strong{font-size:22px;line-height:1.2;color:#132e50}
.fx-root .fx-head-title small{font-size:11px;color:#566784;margin-top:2px}
.fx-root .fx-head-actions{display:flex;margin-left:auto;gap:11px}
.fx-root .fx-head-actions button{min-height:34px;display:inline-flex;align-items:center;gap:7px;padding:7px 14px;border:1px solid #a9bad0;border-radius:6px;font-size:13px;font-weight:700;color:#1955a2;background:white;white-space:nowrap}
.fx-root .fx-head-actions .fx-logout{color:#9b2932;border-color:#d5b8c0}
.fx-root .fx-navbar{background:linear-gradient(#fff,#fcfdff);border-bottom:1px solid #dce5f0;box-shadow:0 3px 8px #23436a12;position:relative;z-index:20;min-height:53px}
.fx-root .fx-nav-scroll{max-width:1390px;margin:auto;padding:5px 10px;display:flex;align-items:center;gap:7px;min-height:53px;overflow:visible}
.fx-root .fx-nav-item{position:relative;flex:0 0 auto}
.fx-root .fx-nav-btn{border:0;background:transparent;color:#2b3d57;padding:10px 11px;min-height:41px;border-radius:7px;font-size:14px;font-weight:700;display:flex;align-items:center;gap:7px;white-space:nowrap}
.fx-root .fx-nav-btn .fx-ico{color:#536884}
.fx-root .fx-nav-btn.active,.fx-root .fx-nav-btn[aria-expanded='true']{background:linear-gradient(#2586f4,#1264d8);color:white;box-shadow:0 3px 7px #0c6ec333}
.fx-root .fx-nav-btn.active .fx-ico,.fx-root .fx-nav-btn[aria-expanded='true'] .fx-ico{color:white}
.fx-root .fx-drop{position:absolute;left:0;top:calc(100% + 4px);min-width:265px;max-height:65vh;overflow-y:auto;background:#fff;border:1px solid #d3dfef;border-radius:8px;box-shadow:0 12px 24px #12376535;padding:5px;z-index:50}
.fx-root .fx-drop-item{width:100%;display:flex;align-items:center;gap:11px;text-align:left;padding:10px 11px;border:0;border-radius:5px;background:#fff;color:#203551;font-size:13px;white-space:nowrap}
.fx-root .fx-drop-item:hover,.fx-root .fx-drop-item.selected{background:#e4efff}
.fx-root .fx-drop-item.selected{font-weight:700;color:#0756b2}
.fx-root .fx-drop-item .fx-ico{color:#517db6}.fx-root .fx-check{margin-left:auto;color:var(--fx-blue)}
.fx-root .fx-main{max-width:1390px;margin:0 auto;padding:17px 10px 34px}
.fx-root .fx-page-title{display:flex;align-items:center;gap:11px;margin:0 0 7px;min-height:35px}
.fx-root .fx-page-title>.fx-ico{color:#264d7e}
.fx-root .fx-page-title h1{font-size:22px;line-height:1.25;color:#193955;font-weight:700;letter-spacing:0;margin:0}
.fx-root .fx-locked{margin-left:auto;display:inline-flex;align-items:center;gap:5px;border:1px solid #f5d49a;color:#9f5912;background:#fff6e8;font-size:11px;padding:5px 10px;border-radius:99px;font-weight:700;white-space:nowrap}
.fx-root .fx-filterbar{border:1px solid var(--fx-border);background:#fff;border-radius:7px;padding:7px 11px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0 7px}
.fx-root .fx-filterbar label{display:flex;align-items:center;gap:8px;color:#243851;font-weight:700;font-size:13px;white-space:nowrap}
.fx-root .fx-filterbar input,.fx-root .fx-filterbar select{border:1px solid #c2cdda;background:#fff;color:#243851;border-radius:6px;height:37px;padding:6px 9px;min-width:0;font-weight:400}
.fx-root .fx-filterbar .fx-warehouse select{width:210px}
.fx-root .fx-filterbar .fx-query{flex:1 1 250px;min-width:180px}
.fx-root .fx-filterbar .fx-query input{width:100%;min-width:100px}
.fx-root .fx-filterbar .fx-date input{width:144px}
.fx-root .fx-filterbar .fx-primary{border:1px solid #0861d1;border-radius:6px;background:linear-gradient(#1476e6,#075fc9);color:#fff;padding:7px 12px;min-height:37px;font-weight:700;display:flex;align-items:center;gap:6px;white-space:nowrap}
.fx-root .fx-filterbar .fx-outline{border:1px solid #becbda;border-radius:6px;background:#fff;color:#25425f;padding:7px 12px;min-height:37px;font-weight:700;display:flex;align-items:center;gap:6px;white-space:nowrap}
.fx-root .fx-tablebox{border:1px solid #ced7e3;border-radius:7px;overflow-x:auto;background:#fff;min-height:57px}
.fx-root .fx-empty{padding:21px 15px;text-align:center;color:#667a97;font-size:13px;line-height:1.6}
.fx-root .fx-empty strong{font-size:14px;color:#284e79}.fx-root .fx-empty p{font-size:12px;margin:6px auto;max-width:660px}
.fx-root .fx-empty.fx-fail{color:#b02c45}
.fx-root .fx-tablewrap{overflow:auto;max-width:100%}
.fx-root .fx-table{border-collapse:collapse;width:100%;font-size:13px;table-layout:auto}
.fx-root .fx-table th{background:linear-gradient(#e7f1ff,#dce9f8);padding:9px 12px;color:#203551;font-weight:700;text-align:left;border:1px solid #d1dbe8;white-space:nowrap}
.fx-root .fx-table td{padding:8px 12px;border:1px solid #dde4ee;vertical-align:middle;overflow-wrap:anywhere;max-width:430px}
.fx-root .fx-table tbody tr:hover{background:#f7fbff}
.fx-root .fx-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:#5e7088;margin:12px 2px}
.fx-root .fx-meta select{border:1px solid #bdcee1;border-radius:6px;background:white;padding:5px 8px;color:#284764}
.fx-root .fx-page-actions{display:flex;gap:7px;align-items:center}
.fx-root .fx-page-actions button{background:white;border:1px solid #bdcee0;border-radius:6px;color:#2b4b73;padding:7px 12px;font-size:12px;font-weight:700}
.fx-root .fx-status{margin:8px 0;background:#f1f6ff;border:1px solid #cbdffb;padding:9px 13px;color:#315b87;font-size:12px;border-radius:7px}
.fx-root .fx-status[data-kind='error']{background:#fff1f1;border-color:#f1c8c8;color:#a53d3d}
.fx-root .fx-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:1400px){.fx-root .fx-nav-scroll{overflow-x:auto;scrollbar-width:thin}.fx-root .fx-nav-btn{font-size:13px;padding:9px 8px}.fx-root .fx-nav-btn .fx-ico{width:18px;height:18px}}
@media(max-width:880px){.fx-root .fx-head-inner{padding:0 12px}.fx-root .fx-navbar{min-height:52px}.fx-root .fx-nav-scroll{overflow-x:auto;overflow-y:visible}.fx-root .fx-drop{position:fixed;left:16px;top:180px;max-width:calc(100vw - 32px)}.fx-root .fx-filterbar .fx-query{flex:1 1 100%}.fx-root .fx-main{padding:15px 12px 26px}.fx-root .fx-page-title h1{font-size:21px}}
@media(max-width:600px){.fx-root .fx-site-header{height:auto}.fx-root .fx-head-inner{flex-wrap:wrap;min-height:60px;padding:10px 12px;gap:8px}.fx-root .fx-brand{font-size:18px}.fx-root .fx-brand-divider{height:34px}.fx-root .fx-foxmark .fx-ico{width:25px;height:25px}.fx-root .fx-head-title strong{font-size:17px}.fx-root .fx-head-title small{font-size:10px}.fx-root .fx-head-actions{width:100%;justify-content:flex-end}.fx-root .fx-head-actions button{font-size:11px;padding:5px 9px;min-height:29px}.fx-root .fx-main{padding:13px 10px 20px}.fx-root .fx-page-title h1{font-size:19px}.fx-root .fx-locked{font-size:10px}.fx-root .fx-filterbar{gap:8px;padding:9px}.fx-root .fx-filterbar .fx-warehouse{width:100%;justify-content:space-between}.fx-root .fx-filterbar .fx-warehouse select{width:70%}.fx-root .fx-filterbar .fx-query{flex:1 1 100%}.fx-root .fx-filterbar .fx-date{width:100%;justify-content:space-between}.fx-root .fx-filterbar .fx-date input{width:70%}.fx-root .fx-filterbar .fx-primary,.fx-root .fx-filterbar .fx-outline{flex:1 1 auto;justify-content:center}.fx-root .fx-table{min-width:580px}.fx-root .fx-nav-btn{min-height:39px}.fx-root .fx-drop{top:215px}}

.fx-root .fx-import{padding:16px;display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.fx-root .fx-import fieldset,.fx-root .fx-import p{flex-basis:100%}
.fx-root .fx-import fieldset>div{display:flex;flex-wrap:wrap;gap:8px 16px}
.fx-root .fx-import [hidden]{display:none}
.fx-root .fx-filterbar[hidden]{display:none}

/* Full-width Backup workspace with its own header and navigation. */
#app:has(.fx-import-view) > .topbar{display:none}
#app:has(.fx-import-view) > .workspace,
#page-content:has(> .fx-import-view){width:100%;max-width:none;margin:0;padding:0}
.fx-root.fx-import-view{margin:0;padding:0;max-width:none;min-height:100vh;background:linear-gradient(135deg,#f2f5ff,#fafcff)}
.fx-root .fx-site-header{height:76px;background:linear-gradient(105deg,#172e7f,#284bb8 55%,#4268ec);border:0;position:sticky;top:0;z-index:22}
.fx-root .fx-head-inner{max-width:none;padding:0 30px;gap:17px}
.fx-root .fx-brand{font-size:27px}
.fx-root .fx-brand,.fx-root .fx-foxmark,.fx-root .fx-head-title strong,.fx-root .fx-head-title small{color:white}
.fx-root .fx-head-title strong{font-size:24px}
.fx-root .fx-head-title small{font-size:12px}
.fx-root .fx-brand-divider{border-color:#ffffff55}
.fx-root .fx-head-actions button,.fx-root .fx-head-actions .fx-logout{min-height:40px;background:#ffffff16;border:1px solid #ffffff66;color:#fff;border-radius:10px}
.fx-root .fx-navbar{min-height:60px;position:sticky;top:76px;z-index:21}
.fx-root .fx-nav-scroll{max-width:none;min-height:60px;padding:6px 30px}
.fx-root .fx-nav-btn{background:transparent;border:0;box-shadow:none;color:#243753}
.fx-root .fx-nav-btn.active,.fx-root .fx-nav-btn[aria-expanded=true]{background:linear-gradient(#2586f4,#1264d8);border-color:transparent;color:#fff;box-shadow:0 3px 7px #0c6ec333}
.fx-import-view .fx-main{max-width:1920px;padding:24px clamp(16px,2vw,40px) 36px}
.fx-import-view .fx-tablebox{border:0;background:transparent;overflow:visible}
.fx-backup{--backup-border:#d4def4;--backup-text:#142c64;color:var(--backup-text)}
.fx-backup-heading{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:18px}
.fx-backup-heading>.fx-ico{width:46px;height:46px;color:#194dcd}
.fx-backup-heading h1{font-size:29px;line-height:1.25;margin:0 0 4px;color:#142d6e}
.fx-backup-heading p,.fx-backup-monitor header p{margin:0;color:#566e93}
.fx-backup-actions{margin-left:auto;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.fx-backup-actions .fx-locked{margin:0}
.fx-backup button{min-height:39px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:7px 13px;background:#fff;color:#234da4;border:1px solid #bfcbeb;border-radius:9px;font-weight:700}
.fx-backup button:hover:not(:disabled){background:#edf4ff}
.fx-backup button.fx-backup-primary{background:linear-gradient(135deg,#2988ff,#085de5);border-color:transparent;color:#fff}
.fx-backup button.fx-backup-primary:hover:not(:disabled){background:#0756cf}
.fx-backup-limits{padding:10px;background:#fff;border:1px solid var(--backup-border);border-radius:9px}
.fx-backup-layout{display:grid;grid-template-columns:minmax(0,39fr) minmax(0,61fr);gap:14px;align-items:stretch}
.fx-backup-card{min-width:0;background:#fff;border:1px solid var(--backup-border);border-radius:15px;box-shadow:0 4px 14px #293d7210;overflow:hidden}
.fx-backup-input{padding:20px;display:flex;flex-direction:column;gap:10px}
.fx-backup h2,.fx-backup h3{margin:0;color:#173570}
.fx-backup-input h2{font-size:16px}
.fx-backup-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));list-style:none;gap:9px;margin:0 0 10px;padding:2px 0 23px;border-bottom:1px solid #e5ebf9}
.fx-backup-steps li{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:700}
.fx-backup-steps li span{min-width:35px;height:35px;display:grid;place-items:center;border-radius:50%;background:#bcc9e2;color:#fff}
.fx-backup-steps li[aria-current=step] span,.fx-backup-steps li.fx-step-done span{background:#136af2}
.fx-backup small{display:block;color:#596e94;font-size:12px;font-weight:400}
.fx-backup-file{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;background:#f5f8ff;border:1px solid #ccdaf4;border-radius:10px;padding:13px}
.fx-backup-file strong{display:block;overflow-wrap:anywhere}
.fx-backup-zip{display:grid;place-items:center;width:42px;height:48px;border-radius:9px;background:#e6edff;font-weight:700;color:#1354c8}
.fx-backup-read-row,.fx-backup-select-head,.fx-backup-buttons{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.fx-backup-select-head{margin-top:6px}
.fx-backup-select-head h2{margin-right:auto}
.fx-backup-select-head label{display:flex;align-items:center;gap:5px;font-weight:700}
.fx-backup-choices{border:1px solid var(--backup-border);border-radius:10px}
.fx-backup-choices>p{margin:0;padding:16px;text-align:center;color:#62769b}
.fx-backup-choices fieldset{margin:0;border:0;padding:12px;max-height:290px;overflow:auto}
.fx-backup-choices fieldset>div{display:grid;gap:8px}
.fx-backup-buttons{justify-content:space-between;margin-top:auto;padding-top:18px}
.fx-backup-monitor>header{padding:22px 24px;background:linear-gradient(110deg,#e5eaff,#eef3ff);min-height:95px}
.fx-backup-monitor>header h2{font-size:23px;margin-bottom:5px}
.fx-backup-overview{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,1fr);align-items:center;gap:24px;padding:22px 24px 18px}
.fx-backup-ring{width:clamp(110px,10vw,176px);aspect-ratio:1;position:relative;display:grid;place-items:center}
.fx-backup-ring svg{display:block;position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.fx-backup-ring circle{fill:none;stroke-width:9}
.fx-backup-ring-track{stroke:#dbe4f2}
.fx-backup-ring-value{stroke:#1269f4}
.fx-backup-ring strong{position:relative;max-width:80%;margin:0;padding:0;text-align:center;white-space:nowrap;color:#1267ed;font-size:clamp(22px,2vw,35px);line-height:1;font-variant-numeric:tabular-nums}
.fx-backup-overview dl{margin:0;min-width:0}
.fx-backup-overview dl+dl{border-left:1px solid #e1e8f6;padding-left:24px}
.fx-backup-overview dl div{display:flex;justify-content:space-between;gap:8px;padding:12px 0;border-bottom:1px solid #e4ebf8}
.fx-backup-overview dt{color:#4a638b}
.fx-backup-overview dd{margin:0;text-align:right;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.fx-backup-monitor progress{appearance:none;width:calc(100% - 48px);height:15px;margin:0 24px;display:block;border:0;border-radius:9px;background:#dbe4f4;color:#1269f4;overflow:hidden}
.fx-backup-monitor progress::-webkit-progress-bar{background:#dbe4f4}
.fx-backup-monitor progress::-webkit-progress-value{background:linear-gradient(90deg,#24a4ff,#1269f4)}
.fx-backup-monitor progress::-moz-progress-bar{background:#1269f4}
.fx-backup-summary{margin:7px 24px 16px;text-align:right;font-weight:700;font-size:12px;color:#35579c}
.fx-backup-progress-detail{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:12px;padding:0 15px 15px}
.fx-backup-progress-detail section{border:1px solid var(--backup-border);border-radius:11px;min-width:0;min-height:260px;overflow:auto;padding:12px}
.fx-backup-progress-detail h3{font-size:14px;margin-bottom:10px}
.fx-backup-progress-detail table{border-collapse:collapse;width:100%;font-size:12px}
.fx-backup-progress-detail th,.fx-backup-progress-detail td{padding:8px 6px;border-bottom:1px solid #e4ebf8;text-align:left;white-space:nowrap}
.fx-backup-progress-detail thead{background:#e9eeff}
.fx-backup-progress-detail ol{list-style:none;margin:0;padding:0;font-size:12px;color:#3e5987}
.fx-backup-progress-detail li{padding:9px 0;border-bottom:1px solid #e4ebf8;overflow-wrap:anywhere}
.fx-backup-progress-detail li::before{content:'●';color:#6091e7;margin-right:8px}
@media(max-width:1150px){.fx-backup-layout{grid-template-columns:minmax(0,1fr)}.fx-backup-actions{margin-left:0}}
@media(max-width:740px){.fx-root .fx-head-inner,.fx-root .fx-nav-scroll{padding-left:12px;padding-right:12px}.fx-root .fx-drop{top:138px}.fx-backup-overview{grid-template-columns:1fr 1fr;padding:15px;gap:12px}.fx-backup-ring{grid-column:1/-1;justify-self:center}.fx-backup-overview dl+dl{padding-left:12px}.fx-backup-progress-detail{grid-template-columns:1fr}.fx-backup-progress-detail section{min-height:100px}}
@media(max-width:600px){.fx-root .fx-site-header{height:auto;position:relative}.fx-root .fx-navbar{position:relative;top:0}.fx-root .fx-drop{position:absolute;top:100%}.fx-backup-file{grid-template-columns:auto minmax(0,1fr)}.fx-backup-file button{grid-column:2}.fx-backup-steps li{align-items:flex-start;gap:5px}.fx-backup-steps li span{min-width:23px;height:23px}.fx-backup-steps small{display:none}}

/* A029 FoxPro uses its own shell. Restore POS-X chrome when leaving the module. */
#app:has(#page-content > .fx-root) > .topbar{display:none}
#app:has(#page-content > .fx-root) > .workspace,
#page-content:has(> .fx-root){width:100%;max-width:none;margin:0;padding:0}
.fx-root:not(.fx-import-view){min-height:100vh}
.fx-root:not(.fx-import-view) .fx-main{max-width:1520px}
.fx-backup .fx-backup-safe{display:flex;align-items:flex-start;gap:7px}
.fx-backup-safe>.fx-ico{color:#16987a}
.fx-backup-steps li:nth-child(2) span{background:#136af2}
.fx-backup-monitor>header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.fx-backup-live{display:inline-flex;align-items:center;gap:6px;border:1px solid #dfe6fa;background:#ffffffd9;border-radius:9px;padding:8px 10px;color:#2f5fae;font-size:12px;font-weight:700}
.fx-backup-live::before{content:'';width:7px;height:7px;border-radius:50%;background:#92a5c5}
.fx-backup-running .fx-backup-live::before{background:#16a16d}
.fx-backup-overview dd small{display:inline;font-size:11px}
.fx-backup-progress-detail h3{display:flex;align-items:center;gap:6px}
.fx-backup-progress-detail h3 .fx-ico{color:#286cf0}
.fx-backup-progress-detail section{min-height:310px}
.fx-backup-group{border-bottom:1px solid #e6ecf6}
.fx-backup-group:last-child{border-bottom:0}
.fx-backup-group summary{cursor:pointer;font-weight:700;padding:9px 8px;background:#f3f7ff}
.fx-backup-group label{display:flex;align-items:center;gap:8px;padding:7px 12px 7px 23px;background:#fbfcff;overflow-wrap:anywhere}
.fx-backup-group input{accent-color:#196cf2}
.fx-backup-footnote{padding:12px 22px 17px;margin:0;color:#566e93;font-size:12px;border-top:1px solid #e4ebf8}
.fx-backup-buttons{margin-top:15px;padding:14px 4px 0;border-top:1px solid #e2eafa}
.fx-backup-buttons>div{display:flex;flex-wrap:wrap;gap:10px}
.fx-backup-buttons #fx-backup-stop{border-color:#f2b8c8;color:#b63055}
@media(max-width:740px){.fx-backup-progress-detail section{min-height:120px}}

.fx-backup-choices #fx-backup-tables{padding:0}
.fx-backup-choices #fx-backup-tables>div{display:block}
.fx-backup-catalog-head,.fx-backup-catalog-total{display:flex!important;justify-content:space-between;gap:12px;padding:10px 14px;border-bottom:1px solid #e2eafa}
.fx-backup-catalog-head{background:#e9effb;font-size:12px;font-weight:700;color:#3e537d}
.fx-backup-catalog-total small{margin-top:3px}
.fx-backup-group .fx-backup-group-summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:8px;min-height:46px;padding:10px 14px;background:#fff;list-style:none}
.fx-backup-group-summary::-webkit-details-marker{display:none}
.fx-backup-group-summary::after{content:'⌄';color:#5074a9}
.fx-backup-group[open] .fx-backup-group-summary::after{content:'⌃'}
.fx-backup-group-summary input{margin:0}
.fx-backup-group-summary>span,.fx-backup-group label>span{margin-left:auto;font-variant-numeric:tabular-nums}
.fx-backup-group-summary>span{font-size:12px;text-align:right}
.fx-backup-group label{padding-inline:23px 14px}

/* ABCSYSTEM Backup controls, inside the FoxPro shell. */
#page-content .fx-root .fx-navbar .fx-nav-btn{background:transparent;color:#243753;border:0;box-shadow:none;min-height:43px;font-weight:700}
#page-content .fx-root .fx-navbar .fx-nav-btn:is([data-selected=true],[aria-expanded=true]){background:linear-gradient(#2586f4,#1264d8);color:#fff;box-shadow:0 3px 7px #0c6ec333}
#page-content .fx-root .fx-navbar .fx-nav-btn:is([data-selected=true],[aria-expanded=true]) .fx-ico{color:#fff}
#page-content .fx-root .fx-backup button.fx-backup-primary{background:linear-gradient(115deg,#3389ff,#1164e9);border-color:transparent;color:#fff;box-shadow:0 4px 10px #0e64de17}
.fx-backup-input{gap:10px}
.fx-backup-read-row{margin-bottom:2px}
.fx-backup-choices #fx-backup-tables{max-height:430px}
.fx-backup-choices #fx-backup-tables>.fx-backup-catalog-head,
.fx-backup-choices #fx-backup-tables>.fx-backup-catalog-total,
.fx-backup-group .fx-backup-group-summary{display:grid!important;grid-template-columns:27px minmax(0,1fr) minmax(74px,auto) 12px;align-items:center;column-gap:8px;padding:7px 14px}
.fx-backup-choices #fx-backup-tables>.fx-backup-catalog-head{min-height:35px;position:sticky;top:0;z-index:1;text-align:left;font-size:12px}
.fx-backup-catalog-head>span:last-child,.fx-backup-catalog-total>strong:last-child{text-align:right}
.fx-backup-choices #fx-backup-tables>.fx-backup-catalog-total{min-height:53px;cursor:pointer}
.fx-backup-group .fx-backup-group-summary{min-height:53px}
.fx-backup-group-summary>span.fx-backup-group-label{margin:0;text-align:left}
.fx-backup-group-summary>span:last-child{font-weight:700;color:#183979}
.fx-backup-group-label{display:flex;align-items:center;gap:9px;min-width:0}
.fx-backup-group-label>i{width:29px;height:29px;border-radius:7px;background:#edf3ff;color:#3a67c1;display:grid;place-items:center;flex:none}
.fx-backup-group-label strong{display:block;font-size:13px}
.fx-backup-group-label small{font-size:11px;margin:1px 0 0}
.fx-backup-choices input[type=checkbox],.fx-backup-select-head input[type=checkbox]{width:16px;height:16px;accent-color:#196cf2}
.fx-backup-progress-detail table{table-layout:fixed;min-width:0;width:100%}
.fx-backup-progress-detail th,.fx-backup-progress-detail td{white-space:normal;overflow-wrap:anywhere;padding:8px 6px}
.fx-backup-progress-detail thead th:first-child{width:28%}
.fx-backup-progress-detail thead th:nth-child(4){width:12%}
.fx-backup-progress-detail thead th:last-child{width:20%}
.fx-backup-progress-detail ol li{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:7px}
.fx-backup-progress-detail ol li:not([data-state]){grid-template-columns:auto minmax(0,1fr)}
.fx-backup-progress-detail ol li::before{content:'·';margin:0;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#e7efff;color:#2564c4}
.fx-backup-progress-detail ol li[data-state=success]::before{content:'✓';background:#d1f6e0;color:#10885a}
.fx-backup-progress-detail time{font-variant-numeric:tabular-nums}

#page-content .fx-root .fx-backup-choices #fx-backup-tables{max-height:none;overflow:visible}
#page-content .fx-root .fx-backup-catalog-total,
#page-content .fx-root .fx-backup-group .fx-backup-group-summary{height:auto;min-height:53px;padding:7px 14px}
#page-content .fx-root .fx-backup-choices #fx-backup-tables>.fx-backup-catalog-head{position:static}
#page-content .fx-root .fx-backup-progress-card{overflow:hidden}
#page-content .fx-root .fx-backup-progress-scroll{max-height:345px;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable}
#page-content .fx-root .fx-backup-progress-table{width:100%!important;min-width:0!important;max-width:100%;table-layout:fixed;border-collapse:collapse;margin:0}
#page-content .fx-root .fx-backup-progress-table :is(th,td){min-width:0!important;padding:8px 6px;vertical-align:middle;white-space:normal;overflow-wrap:anywhere;background:#fff;color:#263f70;border-bottom:1px solid #e9eef9}
#page-content .fx-root .fx-backup-progress-table thead th{position:sticky;top:0;background:#e9efff;font-size:11px;color:#3b5281;z-index:1}
#page-content .fx-root .fx-backup-progress-table thead th:nth-child(1){width:36%}
#page-content .fx-root .fx-backup-progress-table thead th:nth-child(2){width:14%}
#page-content .fx-root .fx-backup-progress-table thead th:nth-child(3){width:14%}
#page-content .fx-root .fx-backup-progress-table thead th:nth-child(4){width:16%}
#page-content .fx-root .fx-backup-progress-table thead th:nth-child(5){width:20%}
#page-content .fx-root .fx-backup-progress-table tbody tr{height:48px}
#page-content .fx-root .fx-backup-progress-table tbody th{font-weight:400;font-size:12px}
#page-content .fx-root .fx-backup-progress-table :is(th,td):is(:nth-child(2),:nth-child(3)){text-align:right;font-variant-numeric:tabular-nums}
#page-content .fx-root .fx-backup-progress-table .fx-backup-mini{width:100%;max-width:90px;height:8px;margin:0 0 4px;border-radius:99px;background:#e0e7f3}
#page-content .fx-root .fx-backup-progress-table td small{font-size:11px}
.fx-backup-row-status{display:inline-block;max-width:100%;padding:5px 8px;border-radius:22px;background:#eff3fa;color:#526682;font-size:11px;line-height:1.2}
.fx-backup-row-status[data-state=active]{background:#eaf3ff;color:#145ab9}
.fx-backup-row-status:is([data-state=confirmed],[data-state=complete]){background:#e6f8f0;color:#147b54}
.fx-backup-row-status:is([data-state=error],[data-state=stopped]){background:#fff0f2;color:#ac395a}

/* Shared compact desktop header and compact Backup content. */
@media (min-width:1151px){
  #page-content .fx-root{--fx-compact-title:54px;--fx-compact-nav:44px}
  #page-content .fx-root .fx-site-header{height:var(--fx-compact-title)}
  #page-content .fx-root .fx-head-inner{gap:12px}
  #page-content .fx-root .fx-brand{font-size:23px}
  #page-content .fx-root .fx-brand-divider{height:32px}
  #page-content .fx-root .fx-head-title strong{font-size:21px}
  #page-content .fx-root .fx-head-title small{font-size:11px}
  #page-content .fx-root.fx-root .fx-head-actions button{min-height:32px;padding:5px 10px}
  #page-content .fx-root.fx-root .fx-navbar{top:var(--fx-compact-title);min-height:var(--fx-compact-nav)}
  #page-content .fx-root .fx-nav-scroll{min-height:var(--fx-compact-nav);padding-block:4px}
  #page-content .fx-root.fx-root .fx-navbar .fx-nav-btn{min-height:35px;padding:6px 10px}
  #page-content .fx-root .fx-nav-btn>.fx-ico{width:18px;height:18px}
  #page-content .fx-root .fx-nav-btn>.fx-chevron{width:13px;height:13px}
  #page-content .fx-import-view .fx-main{padding:10px clamp(14px,1.6vw,30px) 10px}
  #page-content .fx-import-view .fx-backup-heading{gap:9px;margin-bottom:9px}
  #page-content .fx-import-view .fx-backup-heading>.fx-ico{width:33px;height:33px}
  #page-content .fx-import-view .fx-backup-heading h1{font-size:23px;line-height:1.2;margin-bottom:2px}
  #page-content .fx-import-view .fx-backup-heading p{font-size:12px}
  #page-content .fx-import-view .fx-backup-actions{gap:7px}
  #page-content .fx-import-view .fx-backup button{min-height:32px;padding:5px 9px;font-size:12px}
  #page-content .fx-import-view .fx-backup-layout{gap:10px}
  #page-content .fx-import-view .fx-backup-input{padding:11px 13px;gap:6px}
  #page-content .fx-import-view .fx-backup-steps{padding:0 0 8px;margin:0 0 4px}
  #page-content .fx-import-view .fx-backup-steps li{gap:6px}
  #page-content .fx-import-view .fx-backup-steps li span{min-width:27px;height:27px}
  #page-content .fx-import-view .fx-backup-steps small{font-size:11px}
  #page-content .fx-import-view .fx-backup-input h2{font-size:14px}
  #page-content .fx-import-view .fx-backup-file{gap:8px;padding:6px 9px}
  #page-content .fx-import-view .fx-backup-zip{width:31px;height:32px;border-radius:6px;font-size:11px}
  #page-content .fx-import-view .fx-backup-select-head{margin-top:1px;gap:7px}
  #page-content .fx-import-view .fx-backup-choices #fx-backup-tables{max-height:300px;overflow:auto;overscroll-behavior:contain}
  #page-content .fx-import-view .fx-backup-choices #fx-backup-tables>.fx-backup-catalog-head{min-height:27px;padding:4px 10px;position:sticky;top:0}
  #page-content .fx-import-view .fx-backup-choices #fx-backup-tables>.fx-backup-catalog-total,
  #page-content .fx-import-view .fx-backup-group .fx-backup-group-summary{min-height:36px;padding:3px 10px}
  #page-content .fx-import-view .fx-backup-group-label{gap:6px}
  #page-content .fx-import-view .fx-backup-group-label>i{width:24px;height:24px}
  #page-content .fx-import-view .fx-backup-group-label strong{font-size:12px;line-height:1.2}
  #page-content .fx-import-view .fx-backup-group-label small{font-size:10px;line-height:1.2;margin:1px 0 0}
  #page-content .fx-import-view .fx-backup-catalog-total>input{margin:0}
  #page-content .fx-import-view .fx-backup-group label{padding-block:4px}
  #page-content .fx-import-view #fx-backup-selection,#page-content .fx-import-view .fx-backup-safe{font-size:12px}
  #page-content .fx-import-view .fx-backup-monitor>header{padding:9px 14px;min-height:53px}
  #page-content .fx-import-view .fx-backup-monitor>header h2{font-size:19px;margin-bottom:2px}
  #page-content .fx-import-view .fx-backup-monitor>header p{font-size:12px}
  #page-content .fx-import-view .fx-backup-live{padding:5px 8px;font-size:11px}
  #page-content .fx-import-view .fx-backup-overview{gap:14px;padding:10px 14px 9px}
  #page-content .fx-import-view .fx-backup-ring{width:105px}
  #page-content .fx-import-view .fx-backup-ring strong{font-size:23px}
  #page-content .fx-import-view .fx-backup-overview dl+dl{padding-left:13px}
  #page-content .fx-import-view .fx-backup-overview dl div{padding:6px 0;font-size:12px}
  #page-content .fx-import-view #fx-backup-bar{height:9px;width:calc(100% - 28px);margin:0 14px}
  #page-content .fx-import-view .fx-backup-summary{margin:3px 14px 7px;font-size:11px}
  #page-content .fx-import-view .fx-backup-progress-detail{gap:8px;padding:0 9px 8px}
  #page-content .fx-import-view .fx-backup-progress-detail section{min-height:0;padding:7px 8px}
  #page-content .fx-import-view .fx-backup-progress-detail h3{margin-bottom:5px;font-size:13px}
  #page-content .fx-import-view .fx-backup-progress-scroll,#page-content .fx-import-view #fx-backup-log{height:clamp(176px,calc(100dvh - 505px),258px);max-height:none;overflow-y:auto;overscroll-behavior:contain}
  #page-content .fx-import-view .fx-backup-progress-table tbody tr{height:34px}
  #page-content .fx-import-view .fx-backup-progress-table :is(th,td){padding:4px 5px}
  #page-content .fx-import-view .fx-backup-progress-table .fx-backup-mini{height:5px;margin-bottom:2px}
  #page-content .fx-import-view .fx-backup-row-status{padding:3px 5px}
  #page-content .fx-import-view .fx-backup-progress-detail ol li{padding:5px 0}
  #page-content .fx-import-view .fx-backup-footnote{padding:6px 12px 7px;font-size:11px}
  #page-content .fx-import-view .fx-backup-buttons{margin-top:7px;padding:6px 2px 0}
}

/* One aligned row for each collapsed catalog group. */
#page-content .fx-import-view .fx-backup-choices{--fx-choice-columns:24px minmax(0,1fr) 44px minmax(70px,92px) 12px}
#page-content .fx-import-view .fx-backup-choices #fx-backup-tables{max-height:none;overflow:visible;padding:0}
#page-content .fx-import-view .fx-backup-choices #fx-backup-tables:has(.fx-backup-group[open]){max-height:340px;overflow:auto;overscroll-behavior:contain}
#page-content .fx-import-view .fx-backup-choices :is(.fx-backup-catalog-head,.fx-backup-catalog-total,.fx-backup-group-summary,.fx-backup-group>label){
  grid-template-columns:var(--fx-choice-columns);
  align-items:center;
  gap:8px;
  margin:0;
  line-height:1.25;
}
#page-content .fx-import-view .fx-backup-choices #fx-backup-tables>.fx-backup-catalog-head{min-height:28px;padding:4px 10px;position:sticky;top:0;border-radius:9px 9px 0 0}
#page-content .fx-import-view .fx-backup-choices #fx-backup-tables>.fx-backup-catalog-total,
#page-content .fx-import-view .fx-backup-choices .fx-backup-group-summary{min-height:37px;height:auto;padding:5px 10px;background:#fff}
#page-content .fx-import-view .fx-backup-choices :is(.fx-backup-catalog-total,.fx-backup-group-summary,.fx-backup-group>label):hover{background:#f5f8ff}
#page-content .fx-import-view .fx-backup-choices :is(.fx-backup-catalog-total,.fx-backup-group-summary,.fx-backup-group>label):has(> input:is(:checked,:indeterminate)){background:#eaf2ff}
#page-content .fx-import-view .fx-backup-choices .fx-backup-group>label{display:grid;min-height:33px;padding:4px 10px;background:#fbfcff;border-top:1px solid #eef2fa}
#page-content .fx-import-view .fx-backup-choices .fx-backup-table-label{min-width:0;margin:0;padding-left:25px;text-align:left;overflow-wrap:anywhere}
#page-content .fx-import-view .fx-backup-choices :is(.fx-backup-catalog-head,.fx-backup-catalog-total,.fx-backup-group-summary,.fx-backup-group>label)>:is(:nth-child(3),:nth-child(4)){text-align:right;font-size:12px;font-variant-numeric:tabular-nums}
#page-content .fx-import-view .fx-backup-choices .fx-backup-catalog-head>:is(:nth-child(3),:nth-child(4)){font-size:11px}
#page-content .fx-import-view .fx-backup-choices input[type=checkbox]{width:16px;height:16px;min-height:0;margin:0;justify-self:center}
#page-content .fx-import-view .fx-backup-choices .fx-backup-group-label{gap:7px;margin:0}
#page-content .fx-import-view .fx-backup-choices .fx-backup-group-label>i{width:23px;height:23px}
#page-content .fx-import-view .fx-backup-choices .fx-backup-group-label strong{font-size:12px;line-height:1.2}
#page-content .fx-import-view .fx-backup-select-head{margin-block:4px 0}
#page-content .fx-import-view .fx-backup-select-head h2{margin:0 auto 0 0}
#page-content .fx-import-view .fx-backup-buttons>div{align-items:center}
#page-content .fx-import-view #fx-backup-selection{padding:4px 2px;color:#274d90;font-size:12px}
@media(max-width:460px){
  #page-content .fx-import-view .fx-backup-choices{--fx-choice-columns:19px minmax(0,1fr) 34px 60px 9px}
  #page-content .fx-import-view .fx-backup-choices .fx-backup-group-label>i{display:none}
  #page-content .fx-import-view .fx-backup-choices .fx-backup-table-label{padding-left:0}
}
.fx-root .fx-record-dialog{width:min(90vw,800px);max-height:82vh;padding:16px;border:1px solid #cbd9ef;border-radius:12px;color:#18365c;background:#fff}
.fx-root .fx-record-dialog::backdrop{background:#122c5169}
.fx-root .fx-record-dialog form{display:flex;justify-content:flex-end}
.fx-root .fx-record-dialog h2{margin:0 0 12px}
.fx-root .fx-table [data-open-dbf],.fx-root .fx-table [data-record-detail]{white-space:nowrap;min-height:28px;padding:3px 9px}

.fx-root .fx-data-context{margin:4px 0 8px;color:#365987;font-size:13px}
.fx-root .fx-sales-dialog form{gap:8px}
.fx-root .fx-sales-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:9px 18px;margin:12px 0}
.fx-root .fx-sales-summary div{border-bottom:1px solid #e0e9f8;padding:4px 0}
.fx-root .fx-sales-summary dt{font-size:12px;color:#567394}
.fx-root .fx-sales-summary dd{margin:0;font-weight:700}
@media print{
  body:has(.fx-sales-dialog[open]) .fx-root > :not(.fx-sales-dialog){display:none!important}
  body:has(.fx-sales-dialog[open]) .fx-root{min-height:0;background:#fff}
  body:has(.fx-sales-dialog[open]) .fx-sales-dialog{position:static;display:block;width:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;overflow:visible}
  body:has(.fx-sales-dialog[open]) .fx-sales-dialog::backdrop{display:none}
  body:has(.fx-sales-dialog[open]) .fx-sales-dialog form{display:none}
  body:has(.fx-sales-dialog[open]) .fx-sales-dialog .fx-tablewrap{overflow:visible}
  body:has(.fx-sales-dialog[open]) .fx-sales-dialog .fx-table{min-width:0}
}

/* NESCEN FOX R294.15: ABC-only brand, white corporate theme, stable selected menu. */
#page-content .fx-root{background:#fff;color:#18304c}
#page-content .fx-root .fx-site-header{background:#fff;border-bottom:1px solid #dce5f0;box-shadow:0 1px 5px rgba(28,60,108,.05)}
#page-content .fx-root .fx-brand{display:inline-flex;align-items:center;gap:7px;color:#112f5a;font-weight:900;font-size:25px}
#page-content .fx-root .fx-brand strong{font:inherit;line-height:1.05;letter-spacing:-.9px}
#page-content .fx-root .fx-abc-mark{width:31px;height:31px;display:block;flex:none}
#page-content .fx-root .fx-brand-divider{border-color:#cfd9e8}
#page-content .fx-root .fx-foxmark{color:#2773c4}
#page-content .fx-root .fx-head-title strong{color:#18304d}
#page-content .fx-root .fx-head-title small{color:#718197}
#page-content .fx-root .fx-head-actions button,
#page-content .fx-root .fx-head-actions .fx-logout{background:#fff;color:#23589b;border-color:#c7d9ef;box-shadow:none}
#page-content .fx-root .fx-head-actions .fx-logout{color:#a83745;border-color:#eccbd0}
#page-content .fx-root .fx-navbar{background:#fff;border-bottom:1px solid #e0e7f2;box-shadow:0 1px 3px rgba(38,67,118,.04)}
#page-content .fx-root .fx-nav-btn.active,
#page-content .fx-root .fx-nav-btn[data-selected="true"],
#page-content .fx-root .fx-nav-btn[aria-expanded="true"]{background:#eaf3ff;color:#0759bc;box-shadow:none;border:1px solid #c5ddff}
#page-content .fx-root .fx-nav-btn.active .fx-ico,
#page-content .fx-root .fx-nav-btn[data-selected="true"] .fx-ico,
#page-content .fx-root .fx-nav-btn[aria-expanded="true"] .fx-ico{color:#0759bc}
#page-content .fx-root.fx-import-view{background:#fff}
@media(max-width:600px){#page-content .fx-root .fx-brand{font-size:20px}#page-content .fx-root .fx-abc-mark{width:27px;height:27px}}

.full-tax-paper{font-family:Tahoma,Arial,sans-serif;color:#182330}.tax-settings{border:1px solid #c8d5e5;border-radius:6px;padding:12px;margin-bottom:18px;background:#f7faff}.tax-settings summary{cursor:pointer;font-weight:bold}.tax-settings p{font-size:12px}.tax-config-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.tax-config-grid label{font-size:12px}.tax-config-grid input{display:block;width:100%;padding:7px;margin-top:4px;border:1px solid #bdcada;border-radius:4px;font:inherit}.tax-settings button{margin-top:10px;background:#1559ba;color:white;border:0;border-radius:5px;padding:8px 14px}
.fx-root .fx-five-part-preview{margin-top:16px;overflow:auto}
.fx-root .fx-five-part-preview .tax-settings form{display:block}
.fx-root .fx-five-part-preview .tax-settings input{box-sizing:border-box}
.dot-sheet{position:relative;width:612pt;height:792pt;min-width:612pt;background:#fff;color:#000;margin:14px auto;box-shadow:0 0 0 1px #ddd;font:10pt "Times New Roman",Tahoma,serif;line-height:1.25;overflow:visible}.dot-field{position:absolute;white-space:nowrap}.dot-company{font-size:20pt;font-weight:bold;max-width:550pt;white-space:normal}.dot-company-address{font-weight:bold;max-width:550pt;white-space:normal}.dot-seller{font-size:9pt;max-width:470pt;white-space:normal}.dot-buyer{max-width:320pt;white-space:normal}.dot-address{font-size:9pt;max-width:320pt;line-height:1.2}.dot-bold{font-weight:bold}.dot-num{transform:translateX(-100%);font-variant-numeric:tabular-nums}.dot-item{width:215pt;white-space:nowrap;font-size:9pt}.dot-ref{font-size:9pt;font-weight:bold;max-width:335pt;white-space:normal}.tax-screen-note{font:12px Tahoma,sans-serif;color:#536171;margin-bottom:10px}
