body{margin:0;font-family:Arial,Helvetica,sans-serif;background:#eef2f6;color:#1a2433}
        .layout{display:flex;min-height:100vh}.sidebar{width:255px;background:#152238;color:#fff;padding:18px 0;position:sticky;top:0;height:100vh;overflow:auto}
        .brand{padding:0 18px 16px;font-size:20px;font-weight:700}.brand img{max-width:180px;max-height:52px;display:block;margin-bottom:8px}
        .group-title{padding:14px 18px 8px;font-size:12px;opacity:.7;text-transform:uppercase}.nav-link{display:block;padding:10px 18px;color:#d7e0ef;text-decoration:none;border-left:3px solid transparent}
        .nav-link:hover,.nav-link.active{background:#223450;color:#fff;border-left-color:#47a0ff}.content{flex:1;padding:18px}
        .topbar{background:#fff;border-radius:14px;padding:16px 18px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 4px 18px rgba(0,0,0,.08);margin-bottom:18px}
        .card{background:#fff;border-radius:14px;padding:18px;box-shadow:0 4px 18px rgba(0,0,0,.08);margin-bottom:18px}
        h1{margin:0;font-size:22px}h2{margin:0 0 12px;font-size:18px}h3{margin:0 0 10px;font-size:16px}.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:12px}
        .col-2{grid-column:span 2}.col-3{grid-column:span 3}.col-4{grid-column:span 4}.col-6{grid-column:span 6}.col-8{grid-column:span 8}.col-12{grid-column:span 12}
        label{display:block;font-size:11px;font-weight:700;margin-bottom:5px;color:#6a7688}input,select,textarea{width:100%;height:40px;min-height:40px;padding:9px 12px;border:1px solid #cfd8e3;border-radius:10px;box-sizing:border-box;background:#fff;font-size:14px;line-height:1.25;color:#1d2a3b}input[readonly]{background:#f8fbff}textarea{height:auto;padding-top:11px;padding-bottom:11px}
        textarea{min-height:84px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border:1px solid #0a63ab;border-radius:12px;background:linear-gradient(180deg,#1791ef,#0b78d1);color:#fff;text-decoration:none;cursor:pointer;font-weight:700;box-shadow:0 6px 16px rgba(11,120,209,.22);transition:.18s transform,.18s opacity,.18s box-shadow}
        .btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(11,120,209,.28)}.btn.secondary{background:linear-gradient(180deg,#7a889d,#68778f);border-color:#57667d}.btn.ghost{background:#f7fbff;color:#15456d;border-color:#d2e3f8;box-shadow:none}.btn.small{padding:8px 12px;font-size:12px;border-radius:10px}.btn-view{min-width:110px;background:linear-gradient(180deg,#1f6feb,#124fbe);border-color:#0f479f;box-shadow:0 10px 20px rgba(18,79,190,.24)}.btn-view:hover{box-shadow:0 12px 24px rgba(18,79,190,.30)}.inline{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.form-box .grid{align-items:end}.field-note{margin-top:6px;font-size:12px;color:#68788f}.field-alert{color:#c62828;font-weight:700}.field-note.ok{color:#2e7d32;font-weight:700}.table-clickable tbody tr{cursor:pointer}.table-clickable tbody tr:hover{background:#f5faff}
        input[type=checkbox]{accent-color:#0b78d1;width:16px;height:16px;border-radius:4px;vertical-align:middle;position:relative;top:-1px}table{width:100%;border-collapse:collapse;background:#fff}th,td{border:1px solid #b7c3d1;padding:8px 6px;font-size:13px;vertical-align:top}th{background:#8db4db}.table-wrap{overflow:auto}.small{font-size:12px;color:#61728b}
        .flash{padding:10px 12px;border-radius:12px;background:#ecf8ef;border:1px solid #b9e0c3;color:#25613a;margin-bottom:16px;font-size:13px;font-weight:700}.toolbar{display:flex;justify-content:space-between;align-items:end;gap:12px;flex-wrap:wrap}.form-box{background:#f8fbff;border:1px solid #d9e6f4;border-radius:14px;padding:14px}.form-section-title{margin:0 0 12px;font-size:14px;font-weight:700;color:#234}.compact td{padding:7px 6px}.loading-overlay{position:fixed;inset:0;background:rgba(255,255,255,.55);backdrop-filter:blur(2px);display:none;align-items:center;justify-content:center;z-index:9999}.loading-overlay.show{display:flex}.loading-box{background:#152238;color:#fff;padding:14px 18px;border-radius:14px;box-shadow:0 8px 20px rgba(0,0,0,.18)}
        .journal-grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:10px 12px}.journal-grid .col-2,.journal-grid .col-3,.journal-grid .col-4,.journal-grid .col-6,.journal-grid .col-9,.journal-grid .col-12{min-width:0}.journal-grid label{margin-bottom:5px}.journal-grid input,.journal-grid select{height:38px;min-height:38px;padding:8px 12px;border-radius:10px}.journal-grid .actions-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:2px}.journal-grid .help-text{font-size:12px;color:#61728b}.time-input{font-family:Arial,Helvetica,sans-serif;letter-spacing:.2px}.time-input::placeholder{color:#8da0b6}.record-hint{padding:10px 12px;border-radius:10px;background:#f7fbff;border:1px solid #d6e4f6;color:#567}.invalid-box{border-color:#d32f2f!important;box-shadow:0 0 0 3px rgba(211,47,47,.08)}
        .device-create-grid{gap:10px 14px;align-items:end}.device-create-grid .col-4,.device-create-grid .col-8,.device-create-grid .col-12{min-width:0}.device-create-grid input,.device-create-grid select,.device-create-grid textarea{height:38px;min-height:38px;border-radius:9px;padding:8px 12px;font-size:14px}.device-create-grid textarea{min-height:72px}.device-create-grid label{font-size:11px;color:#66768d;margin-bottom:4px}.device-create-grid .hint{font-size:12px;color:#6f7f93;margin-top:5px}.device-create-grid .actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.floating-field{position:relative}.floating-field > span{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:14px;color:#93a0b2;pointer-events:none;background:#fff;padding:0 4px;transition:.16s ease}.floating-field textarea,.floating-field input{padding-top:18px;padding-bottom:8px}.floating-field.active > span,.floating-field:hover > span{top:0;transform:translateY(-50%);font-size:11px;color:#66768d}.upload-box{border:1px dashed #c8d4e2;border-radius:10px;padding:10px;background:#fbfdff}.upload-preview{max-width:100%;max-height:180px;border:1px solid #d6deea;border-radius:10px;display:block;background:#fff}.upload-box .small{display:block;margin-top:6px}.status-select{font-weight:700}.user-table td:last-child{white-space:nowrap}.filter-actions-row{display:flex;align-items:end;gap:10px}.action-group{white-space:nowrap}.danger-btn{color:#9f1f1f;border-color:#f0c7c7;background:#fff7f7}.check-inline{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:#334257;font-weight:600}.check-inline input{margin:0}.asset-panel{background:#f8fbff;border:1px solid #d7e4f2;border-radius:12px;padding:12px}.asset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.asset-card{border:1px dashed #c8d4e2;border-radius:12px;padding:12px;background:#fff}.asset-card h4{margin:0 0 8px;font-size:13px;color:#2a4261}.asset-card img{max-width:100%;max-height:210px;display:block;border:1px solid #d6deea;border-radius:10px;background:#fff}.qr-preview{display:flex;align-items:center;justify-content:center;min-height:232px}.system-common-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.system-common-tab{padding:8px 12px;border-radius:999px;background:#eef5fc;color:#20476b;text-decoration:none;font-weight:700}.system-common-tab.active{background:#0b78d1;color:#fff}.table-chip{display:inline-flex;padding:4px 10px;border-radius:999px;background:#eef5fc;color:#20507a;font-weight:700;font-size:12px}.action-stack{display:flex;gap:8px;flex-wrap:wrap}.btn-view{min-width:110px;background:linear-gradient(180deg,#1f6feb,#124fbe);border-color:#0f479f;box-shadow:0 10px 20px rgba(18,79,190,.24)}
        .dash1 th.sticky,.dash1 td.sticky{position:sticky;left:0;background:#fff;z-index:2}.dash1 th.sticky2,.dash1 td.sticky2{position:sticky;left:36px;background:#fff;z-index:2}.dash1 th.sticky3,.dash1 td.sticky3{position:sticky;left:152px;background:#fff;z-index:2}
        .dash1 th.sticky,.dash1 th.sticky2,.dash1 th.sticky3{background:#8db4db;z-index:3}.dash1{table-layout:fixed;width:max-content;min-width:100%}.dash1 th,.dash1 td{text-align:center;vertical-align:middle;padding:2px 3px;height:28px;line-height:1}.dash1 th:nth-child(n+4):not(:last-child),.dash1 td:nth-child(n+4):not(:last-child){width:34px;min-width:34px;max-width:34px;font-size:10px;line-height:1;padding:1px 2px}.dash1 .sticky,.dash1 .sticky2,.dash1 .sticky3{text-align:left}.dash1 .sticky{width:36px;min-width:36px;max-width:36px}.dash1 .sticky2{width:116px;min-width:116px;max-width:116px}.dash1 .sticky3{width:150px;min-width:150px;max-width:150px}.dash1 th:last-child,.dash1 td:last-child{width:44px;min-width:44px;max-width:44px}.danger-cell,.time-cell,.empty-cell,.ttl-cell{font-size:10px;line-height:1;padding:1px 2px}.danger-cell{background:#f9b4b4;font-weight:700;color:#8a1313;text-align:center}.time-cell{background:#eef8ee;text-align:center;font-weight:700}.empty-cell{text-align:center;color:#999}.ttl-cell{font-weight:700;background:#f3f7fb;text-align:center}
        .print-form{background:#fff;border:2px solid #333}.print-form td,.print-form th{border:1px solid #333;padding:6px}.print-title{text-align:center;font-size:20px;font-weight:700;padding:12px 0}.tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:10px}.tab{padding:8px 12px;border-radius:999px;background:#edf3f9;color:#15456d;text-decoration:none;font-weight:700}.tab.active{background:#0b78d1;color:#fff}
        .muted{color:#7b8798}.placeholder{padding:18px;background:#f8fafc;border:1px dashed #c4d2e0;border-radius:12px;color:#6a7b92}.top-meta{font-size:13px;color:#6f7f93;margin-top:4px}.right-menu{display:flex;gap:8px;flex-wrap:wrap}.lang-switch{position:relative}.lang-switch details{position:relative}.lang-switch summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid #d6e4f6;border-radius:12px;background:#fff;font-weight:700;color:#15456d}.lang-switch summary::-webkit-details-marker{display:none}.lang-switch-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:180px;background:#fff;border:1px solid #d9e6f4;border-radius:16px;box-shadow:0 12px 28px rgba(19,44,74,.12);padding:8px;z-index:10}.lang-switch-menu a{display:flex;align-items:center;gap:10px;padding:10px 12px;text-decoration:none;color:#163a5f;border-radius:10px}.lang-switch-menu a:hover{background:#f4f9ff}
        .qr-shell{min-height:100vh;padding:24px;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#eef5fb,#f8fbff)}.qr-app{width:min(760px,100%);margin:0 auto}.qr-card{background:#fff;border-radius:22px;padding:24px;box-shadow:0 18px 40px rgba(22,39,63,.12);border:1px solid #d9e5f2}.qr-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.qr-title-wrap{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}.qr-title{font-size:24px;font-weight:800;color:#12385d;margin:0;line-height:1.1}.qr-sub{color:#61728b;font-size:12px;margin:0 0 2px}.qr-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}.qr-scan-btn{min-width:170px;font-size:15px;padding:12px 18px;border-radius:16px}.qr-device-card{border:1px solid #d7e6f5;border-radius:18px;padding:16px;background:#f8fbff;margin:18px 0}.qr-device-card h3{margin:0 0 6px;font-size:18px;color:#153b60;line-height:1.25}.qr-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.qr-summary .item{background:#fff;border:1px solid #dde7f2;border-radius:14px;padding:10px 12px}.qr-summary .item b{display:block;font-size:11px;color:#6d7f95;margin-bottom:4px}.qr-step{display:none}.qr-step.active{display:block}.qr-video-wrap{display:none;margin-top:16px;border:1px dashed #c8d7e8;border-radius:18px;padding:14px;background:#fbfdff}.qr-video-wrap.active{display:block}.qr-video{width:100%;border-radius:16px;background:#0b1826;max-height:360px}.qr-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.qr-grid .full{grid-column:1/-1}.qr-form input,.qr-form select,.qr-form textarea{height:40px;border-radius:12px}.qr-form textarea{min-height:84px}.qr-badge{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#ebf5ff;color:#12538a;font-weight:700;font-size:11px;line-height:1}.qr-inline-note{font-size:13px;color:#5e7188}.qr-top-link{display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:#184a76;font-weight:700;margin-bottom:12px}.qr-empty{padding:16px;border-radius:16px;border:1px dashed #d1ddea;background:#fbfdff;color:#5d6f87}.qr-result{margin-top:12px}.qr-manual{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.qr-manual input{flex:1;min-width:230px}.qr-complete{justify-content:center;align-items:center;margin-top:16px;flex-direction:column}.qr-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}.qr-option-card{display:block;text-decoration:none;border:1px solid #d7e4f2;border-radius:18px;padding:18px;background:#fff;color:#163a5f;box-shadow:0 10px 20px rgba(22,39,63,.05)}.qr-option-card h4{margin:0 0 8px;font-size:18px}.qr-option-card p{margin:0;color:#5f748d;font-size:14px}.qr-list{margin-top:16px}.qr-list-item{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid #d8e4f2;border-radius:16px;padding:14px 16px;background:#fff;margin-bottom:10px}.qr-list-item h4{margin:0 0 6px;font-size:16px;color:#14385d}.qr-list-item .meta{color:#5d7087;font-size:13px}.qr-actions-inline{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}.qr-mini{font-size:12px;color:#607389}.qr-device-name{font-size:17px;font-weight:700;color:#153b60;margin:0 0 4px;line-height:1.3}.qr-summary.compact{grid-template-columns:1fr}.qr-summary.compact .item{padding:9px 12px;text-align:left}
        @media (max-width:1200px){.col-2,.col-3,.col-4,.col-6,.col-8{grid-column:span 12}.sidebar{width:210px}.asset-grid{grid-template-columns:1fr}.qr-summary,.qr-grid{grid-template-columns:1fr}}
        @media (max-width:768px){.qr-shell{padding:14px}.qr-card{padding:16px;border-radius:18px}.qr-hero{align-items:flex-start}.qr-title{font-size:21px}.qr-sub{font-size:11px}.qr-device-card{padding:14px}.qr-device-name{font-size:16px}.qr-summary .item{padding:8px 10px}.qr-scan-btn,.btn.qr-scan-btn{width:100%;min-width:0}.qr-option-grid{grid-template-columns:1fr}.qr-list-item{padding:12px}.qr-form input,.qr-form select,.qr-form textarea{height:38px}.qr-form textarea{min-height:78px}}

/* V1.1.8 light refactor */
:root{--bg:#eef2f6;--card:#ffffff;--line:#d9e4ef;--primary:#0b78d1;--primary-dark:#0f479f;--text:#1a2433;--muted:#6b7d92}
.brand span{display:inline-flex;margin-left:8px;padding:4px 8px;border-radius:999px;background:rgba(255,255,255,.12);font-size:11px;font-weight:700;vertical-align:middle}
.topbar h1{font-size:24px;letter-spacing:-.02em}
.topbar{border:1px solid #dce7f2;background:linear-gradient(180deg,#fff,#f9fbfe)}
.card{border:1px solid #dce7f2;background:linear-gradient(180deg,#fff,#fbfdff)}
.sidebar{box-shadow:18px 0 36px rgba(7,22,44,.10)}
.table-wrap{border-radius:14px}
table{border-radius:12px;overflow:hidden}
th{font-size:12px;letter-spacing:.01em}
.btn.ghost{background:linear-gradient(180deg,#ffffff,#f3f8fe)}
.content{padding:20px 20px 28px}
@media (max-width:768px){.content{padding:14px}.topbar{padding:14px}.topbar h1{font-size:20px}}


/* V1.1.9 UI normalization */
.brand{display:flex;flex-direction:column;gap:4px;padding:0 18px 14px}
.brand-title{font-size:18px;font-weight:800;letter-spacing:.02em}
.brand-version{font-size:11px;opacity:.72}
.brand span{display:none}
.topbar .right-menu.compact{align-items:center;justify-content:flex-end}
.user-chip{display:flex;flex-direction:column;gap:2px;padding:8px 12px;border:1px solid #d6e4f6;border-radius:12px;background:#fff;min-width:110px}
.user-chip strong{font-size:13px;color:#17395d}.user-chip span{font-size:11px;color:#6b7d92}
.module-toolbar{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:12px}.module-toolbar.compact-header{margin-bottom:6px}.module-toolbar h2{margin:0}.toolbar-actions{display:flex;gap:8px;flex-wrap:wrap}
.unified-grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:12px 14px;align-items:end}.unified-grid .col-4{grid-column:span 4}.unified-grid .col-3{grid-column:span 4}.unified-grid .col-2{grid-column:span 4}.unified-grid .col-6{grid-column:span 6}.unified-grid .col-8,.unified-grid .col-12{grid-column:span 12}
.unified-grid label{font-size:11px;font-weight:700;color:#6a7688;margin-bottom:5px}.unified-grid input,.unified-grid select,.unified-grid textarea{height:38px;min-height:38px;border-radius:10px}.unified-grid textarea{min-height:78px}
.check-inline{min-height:38px;padding:0 2px}.check-inline input{top:0}
.filter-actions-row{justify-content:flex-start}
.btn-view{min-width:108px}
.qr-badge{font-size:10px;padding:5px 9px}
.qr-title{font-size:22px}.qr-device-card h3,.qr-device-name{font-size:15px}
@media (max-width:1200px){.unified-grid .col-2,.unified-grid .col-3,.unified-grid .col-4,.unified-grid .col-6,.unified-grid .col-8{grid-column:span 12}}


/* Sidebar language binding + compact navigation */
.layout{display:flex;min-height:100vh}
.sidebar{display:flex;flex-direction:column;gap:10px}
.sidebar-menu{display:flex;flex-direction:column;gap:6px;padding:0 10px 12px}
.brand{align-items:center;justify-content:center;padding:14px 16px 10px;text-align:center}
.brand img{max-width:180px;max-height:72px;display:block;margin:0 auto}
.brand-version{font-size:11px;opacity:.72;padding-left:2px}
.menu-group{border-radius:14px;overflow:hidden;background:rgba(255,255,255,.03)}
.menu-group.open{background:rgba(255,255,255,.05)}
.menu-group-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 12px;border:0;background:transparent;color:#fff;cursor:pointer;font-weight:700;font-size:15px;text-align:left}
.menu-group-left{display:flex;align-items:center;gap:10px;min-width:0}.menu-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.menu-icon{display:inline-flex;align-items:center;justify-content:center;width:20px;min-width:20px;font-size:14px;opacity:.95}.menu-caret{font-size:15px;line-height:1;transition:transform .2s ease;opacity:.9}
.menu-group.open .menu-caret{transform:rotate(180deg)}
.menu-subitems{display:none;padding:0 8px 8px 42px}.menu-group.open .menu-subitems{display:block}
.sidebar .nav-link{padding:8px 12px;border-radius:10px;border-left:0;margin:2px 0;font-size:14px;line-height:1.25}
.sidebar .nav-link:hover,.sidebar .nav-link.active{background:#223450;color:#fff;border-left:0}
.sidebar-collapse-btn{margin:8px auto 10px;width:34px;height:34px;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.08);color:#fff;cursor:pointer;font-size:18px;line-height:1}
.topbar-left{display:flex;align-items:center;gap:12px}.sidebar-mobile-toggle{display:none;width:38px;height:38px;border-radius:12px;border:1px solid #d6e4f6;background:#fff;color:#17395d;cursor:pointer;font-size:18px}
body.sidebar-collapsed .sidebar{width:82px}body.sidebar-collapsed .brand{align-items:center;padding-inline:10px}body.sidebar-collapsed .menu-text,body.sidebar-collapsed .menu-caret{display:none}body.sidebar-collapsed .brand img{max-width:48px;max-height:48px}body.sidebar-collapsed .menu-group-toggle{justify-content:center;padding:12px 8px}body.sidebar-collapsed .menu-group-left{justify-content:center}body.sidebar-collapsed .menu-subitems{position:absolute;left:78px;top:0;min-width:220px;background:#152238;border-radius:14px;padding:10px;box-shadow:0 14px 32px rgba(7,22,44,.22);display:none;z-index:50}body.sidebar-collapsed .menu-group{position:relative}body.sidebar-collapsed .menu-group:hover .menu-subitems{display:block}body.sidebar-collapsed .sidebar-collapse-btn{transform:rotate(180deg)}
@media (max-width:900px){.sidebar{position:fixed;left:0;top:0;bottom:0;z-index:80;transform:translateX(-100%);transition:transform .22s ease;width:265px;height:auto}.sidebar-mobile-toggle{display:inline-flex;align-items:center;justify-content:center}.content{width:100%}body.sidebar-open .sidebar{transform:translateX(0)}body.sidebar-collapsed .sidebar{width:265px}body.sidebar-collapsed .menu-text,body.sidebar-collapsed .menu-caret{display:initial}body.sidebar-collapsed .brand{align-items:center;padding-inline:16px}body.sidebar-collapsed .brand img{max-width:180px;max-height:72px}body.sidebar-collapsed .menu-group-toggle{justify-content:space-between;padding:12px}body.sidebar-collapsed .menu-subitems{position:static;left:auto;top:auto;min-width:0;background:transparent;box-shadow:none;padding:0 8px 8px 42px}.topbar{position:sticky;top:0;z-index:30}}


.daily-input-shell{padding-top:14px}
.daily-input-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end}
.daily-input-grid > div{min-width:0}
.daily-input-grid label{display:block;font-size:11px;font-weight:700;margin-bottom:5px;color:#6a7688}
.daily-input-grid input,.daily-input-grid select{height:38px;min-height:38px;border-radius:10px;width:100%}
.daily-input-actions{grid-column:1 / span 2;display:flex;align-items:center;gap:10px;flex-wrap:nowrap;padding-top:8px;min-width:0}
.daily-input-actions .btn{flex:0 0 auto}
.daily-input-actions .help-text{min-width:0;flex:1;color:#61728b;font-size:12px;background:#f7fbff;border-radius:10px;padding:10px 12px;border:1px solid #e0ebf7;white-space:normal}
.daily-input-note{grid-column:3 / span 2}
.invalid-box{border-color:#d32f2f!important;box-shadow:0 0 0 1px rgba(211,47,47,.08)}
@media (max-width:1200px){.daily-input-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.daily-input-actions,.daily-input-note{grid-column:span 2}.daily-input-actions{grid-column:1 / span 2;flex-wrap:wrap}.daily-input-note{grid-column:1 / span 2}}
@media (max-width:768px){.daily-input-grid{grid-template-columns:1fr}.daily-input-actions,.daily-input-note{grid-column:span 1}.daily-input-actions{grid-column:1 / span 1;align-items:flex-start;flex-wrap:wrap}.daily-input-note{grid-column:1 / span 1}}

.topbar{position:sticky;top:0;z-index:40}
.topbar-action-link{display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 14px;border:1px solid #d6e4f6;border-radius:12px;background:#fff;color:#15456d;text-decoration:none;font-weight:700;cursor:pointer}
.topbar-import-form{display:inline-flex;align-items:center;margin:0}.topbar-file-input{display:none}.topbar-divider{color:#95a6bb;font-weight:700;padding:0 2px}.maintenance-list-shell{display:flex;flex-direction:column}.maintenance-table-title{position:sticky;top:74px;z-index:5;background:#fff;padding:0 0 10px;font-size:16px;font-weight:700;color:#183b60}.maintenance-table-wrap{max-height:calc(100vh - 220px);overflow:auto;border:1px solid #d9e4ef;border-radius:12px}.sticky-table thead th{position:sticky;top:0;z-index:2}.right-menu.compact{display:flex;align-items:center;gap:10px;flex-wrap:wrap}@media (max-width:900px){.maintenance-table-title{top:86px}.topbar-divider{display:none}}


/* V1.2.1 layout fix */
html,body{height:100%}
body{overflow:hidden}
.layout{height:100vh;overflow:hidden}
.sidebar{position:fixed;left:0;top:0;bottom:0;height:100vh;overflow:auto}
.content{margin-left:255px;width:calc(100% - 255px);min-width:0;height:100vh;display:flex;flex-direction:column;overflow:hidden;padding:0 20px 0}
.page-body{flex:1;min-height:0;overflow:auto;padding:16px 0 24px}
.topbar{flex:0 0 auto;position:sticky;top:0;z-index:40;margin:16px 0 0}
.flash{margin:0 0 16px}
body.sidebar-collapsed .content{margin-left:82px;width:calc(100% - 82px)}
.card.table-wrap{display:flex;flex-direction:column;min-height:0}
.card.table-wrap > table{flex:0 0 auto}
.maintenance-list-shell{display:flex;flex-direction:column;min-height:0}
.maintenance-list-shell .tabs{position:sticky;top:0;z-index:6;background:#fff;padding:0 0 10px;margin:0 0 10px}
.maintenance-table-title{position:sticky;top:42px;z-index:5;background:#fff;padding:0 0 10px}
.maintenance-table-wrap{flex:1;min-height:0;max-height:none;height:calc(100vh - 260px);overflow:auto}
.sticky-table thead th{position:sticky;top:0;z-index:3}
.system-common-tabs{position:sticky;top:0;z-index:5;background:#fff;padding:0 0 10px}
.table-wrap table thead th{position:sticky;top:0;z-index:2}
@media (max-width:900px){body{overflow:auto}.layout{height:auto;overflow:visible}.content{margin-left:0;width:100%;height:auto;overflow:visible;padding:0 14px 14px}.page-body{overflow:visible;padding:14px 0 20px}.sidebar{position:fixed}.topbar{margin-top:14px}.maintenance-list-shell .tabs{top:0}.maintenance-table-title{top:48px}.maintenance-table-wrap{height:auto;max-height:60vh}}


/* V1.2.1 fixed3 - lock shell, scroll only inside table areas */
html,body{height:100%;overflow:hidden}
body{overflow:hidden}
.layout{display:flex;height:100vh;overflow:hidden}
.sidebar{position:fixed;left:0;top:0;bottom:0;height:100vh;overflow:auto;overscroll-behavior:contain}
.content{margin-left:255px;width:calc(100% - 255px);height:100vh;display:flex;flex-direction:column;overflow:hidden;padding:0 20px;min-width:0}
body.sidebar-collapsed .content{margin-left:82px;width:calc(100% - 82px)}
.topbar{flex:0 0 auto;position:sticky;top:0;z-index:100;margin:16px 0 0}
.page-body{flex:1 1 auto;min-height:0;overflow:hidden;padding:16px 0 24px}
.card{min-width:0}
.card.table-wrap,.maintenance-list-shell{display:flex;flex-direction:column;min-height:0}
.card.table-wrap{height:100%}
.table-wrap{overflow:auto;min-height:0;max-height:100%}
.table-wrap table thead th,.sticky-table thead th{position:sticky;top:0;z-index:3}
.maintenance-list-shell{height:100%}
.maintenance-list-shell .tabs{position:sticky;top:0;z-index:8;background:#fff;padding:0 0 10px;margin:0 0 10px;flex:0 0 auto}
.maintenance-table-title{position:sticky;top:42px;z-index:7;background:#fff;padding:0 0 10px;flex:0 0 auto}
.maintenance-table-wrap{flex:1 1 auto;min-height:0;height:auto;max-height:none;overflow:auto;border:1px solid #d9e4ef;border-radius:12px}
.maintenance-table-wrap table{margin:0}

/* Generic scroll region for pages that contain a table below static controls */
.page-body > .card:not(.table-wrap):last-child{margin-bottom:0}
.page-body > .card.table-wrap:last-child,
.page-body > .maintenance-list-shell:last-child{flex:1 1 auto}

@media (max-width:900px){
  body{overflow:hidden}
  .layout{height:100vh;overflow:hidden}
  .content{margin-left:0;width:100%;height:100vh;overflow:hidden;padding:0 14px 14px}
  .page-body{overflow:hidden;padding:14px 0 20px}
  .topbar{margin-top:14px}
  .maintenance-list-shell .tabs{top:0}
  .maintenance-table-title{top:48px}
}


.topbar-import-form{display:none !important}
.maintenance-filter-card{padding:14px 18px}
.maintenance-filter-form{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.maintenance-filter-form > div{display:flex;flex-direction:column;gap:6px;min-width:64px}
.maintenance-filter-form input{width:74px}
.daily-input-shell .form-section-title{display:none}
.maintenance-table-wrap{border-radius:14px 14px 0 0}
.table-footer-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;background:#d3d3d3;border:1px solid #c2c8d0;border-top:0;border-radius:0 0 14px 14px;color:#1b2d42}
.table-footer-left,.table-footer-center,.table-footer-right{display:flex;align-items:center;gap:8px;font-size:12px}
.pager-btn,.pager-page{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;border-radius:6px;border:1px solid #aeb8c4;background:#f2f2f2;font-weight:700}
.pager-btn.disabled{opacity:.55}
.pager-page.active{background:#fff}
@media (max-width:900px){.maintenance-filter-form{align-items:stretch}.maintenance-filter-form > div{min-width:0;width:calc(50% - 6px)}.maintenance-filter-form input{width:100%}}


/* UI fix round 2 */
.footer-per-page-form{display:flex;align-items:center;gap:8px;margin:0}
.footer-per-page-form label{display:flex;align-items:center;gap:8px;font-size:12px;color:#1b2d42;font-weight:600}
.footer-per-page-form select{height:30px;border-radius:8px;padding:0 10px;border:1px solid #aeb8c4;background:#fff;min-width:104px}
.table-footer-right a{text-decoration:none;color:inherit}
.maintenance-filter-form .tab{height:36px}
.topbar-action-link{display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 14px;border:1px solid #d6e4f6;border-radius:12px;background:#fff;color:#15456d;text-decoration:none;font-weight:700;cursor:pointer}
.topbar-action-link:hover{background:#f4f9ff}
.dash1-filter-grid{display:grid;grid-template-columns:1fr 1fr 1.6fr 1.6fr auto;gap:12px;align-items:end}
.dash1-filter-grid > div{min-width:0}
.dash1-filter-grid .dash1-filter-action{display:flex;align-items:end;justify-content:flex-end}
.dash1-filter-grid input,.dash1-filter-grid select{width:100%}
@media (max-width:1100px){.dash1-filter-grid{grid-template-columns:1fr 1fr}.dash1-filter-grid .dash1-filter-action{grid-column:1 / -1;justify-content:flex-start}}


/* Dash 1 compact tuning */
body.page-dash1 .topbar{
  border-radius:5px;
  padding:10px 14px;
  margin-top:8px;
  margin-bottom:8px;
  min-height:auto;
}
body.page-dash1 .topbar h1{font-size:16px;line-height:1.15}
body.page-dash1 .topbar .top-meta{font-size:11px;margin-top:1px}
body.page-dash1 .right-menu.compact{gap:6px}
body.page-dash1 .topbar-action-link,
body.page-dash1 .lang-switch summary,
body.page-dash1 .user-chip{
  height:34px;
  min-height:34px;
  padding:0 10px;
  border-radius:5px;
}
body.page-dash1 .user-chip{display:inline-flex;flex-direction:column;justify-content:center;gap:1px;padding:5px 10px;height:auto;min-height:34px}
body.page-dash1 .user-chip strong{font-size:12px;line-height:1.05}
body.page-dash1 .user-chip span{font-size:10px;line-height:1.05}
body.page-dash1 .card{
  border-radius:5px;
  padding:10px 14px;
  margin-bottom:8px;
}
body.page-dash1 .dash1-filter-grid{gap:8px;align-items:end}
body.page-dash1 .dash1-filter-grid label{font-size:10px;margin-bottom:3px}
body.page-dash1 .dash1-filter-grid input,
body.page-dash1 .dash1-filter-grid select{
  height:32px;
  min-height:32px;
  border-radius:5px;
  padding:5px 9px;
  font-size:13px;
}
body.page-dash1 .dash1-filter-grid .btn,
body.page-dash1 .dash1-filter-grid .btn-view{
  height:32px;
  min-height:32px;
  padding:0 12px;
  border-radius:5px;
  min-width:108px;
  box-shadow:0 3px 8px rgba(18,79,190,.16);
}
body.page-dash1 .table-wrap{border-radius:5px 5px 0 0}
body.page-dash1 .dash1 th,
body.page-dash1 .dash1 td{height:23px;padding:1px 3px;font-size:12px}
body.page-dash1 .dash1 th:nth-child(n+4):not(:last-child),
body.page-dash1 .dash1 td:nth-child(n+4):not(:last-child){height:23px;font-size:10px;padding:1px 2px}
body.page-dash1 .table-footer-bar{
  padding:4px 10px;
  border-radius:0 0 5px 5px;
  min-height:30px;
}
body.page-dash1 .table-footer-left,
body.page-dash1 .table-footer-center,
body.page-dash1 .table-footer-right{font-size:11px;gap:6px}
body.page-dash1 .footer-per-page-form label{font-size:11px;gap:6px;display:inline-flex;align-items:center;white-space:nowrap}
body.page-dash1 .footer-per-page-form select{
  height:24px;
  min-height:24px;
  border-radius:5px;
  min-width:84px;
  padding:0 8px;
  font-size:11px;
}
body.page-dash1 .pager-btn,
body.page-dash1 .pager-page{
  min-width:22px;
  height:22px;
  border-radius:5px;
  font-size:11px;
}
body.page-dash1 .page-body{padding-top:1px}
body.page-dash1 .table-wrap,
body.page-dash1 .maintenance-table-wrap,
body.page-dash1 .table-footer-bar,
body.page-dash1 .footer-per-page-form select,
body.page-dash1 .dash1-filter-grid .btn,
body.page-dash1 .dash1-filter-grid input,
body.page-dash1 .dash1-filter-grid select,
body.page-dash1 .topbar-action-link,
body.page-dash1 .lang-switch summary,
body.page-dash1 .user-chip{border-radius:5px}
body.page-dash1 .footer-per-page-form{display:flex;align-items:center}
body.page-dash1 .footer-per-page-form label span,
body.page-dash1 .footer-per-page-form .prefix{white-space:nowrap}
.warn-cell{background:#fff0b8;text-align:center;font-weight:700;color:#876200}


/* V1.2.1 dev fix ui4 - compact all source */
:root{--ui-radius:7px;--ui-gap:10px;--ui-gap-sm:8px;--ui-control-h:34px;--ui-topbar-h:auto;--ui-footer-h:32px}
body{font-size:14px}
.content{padding:0 16px 0}
.page-body{padding:1px 0 18px}
.topbar{border-radius:var(--ui-radius)!important;padding:10px 14px!important;margin:8px 0 8px!important;min-height:var(--ui-topbar-h)}
.topbar h1{font-size:16px;line-height:1.2}
.top-meta{font-size:11px;margin-top:2px}
.right-menu.compact{gap:8px!important}
.card,.form-box,.asset-panel,.asset-card,.upload-box,.loading-box,.placeholder,.maintenance-table-wrap,.table-wrap,.flash,.record-hint,.system-common-tab,.table-chip,.tab,.topbar-action-link,.lang-switch summary,.user-chip,input,select,textarea,.btn,.btn.small,.pager-btn,.pager-page,.table-footer-bar,.footer-per-page-form select,.maintenance-filter-form .tab{border-radius:var(--ui-radius)!important}
.card{padding:12px 14px!important;margin-bottom:10px!important}
.grid,.journal-grid,.device-create-grid,.dash1-filter-grid,.maintenance-filter-form,.filter-actions-row,.inline,.tabs,.system-common-tabs,.asset-grid,.action-stack{gap:var(--ui-gap-sm)!important}
label{font-size:11px;margin-bottom:4px}
input,select,textarea{height:var(--ui-control-h);min-height:var(--ui-control-h);padding:6px 10px;font-size:13px}
textarea{min-height:72px;padding-top:8px;padding-bottom:8px}
.btn,.topbar-action-link{height:var(--ui-control-h);min-height:var(--ui-control-h);padding:0 12px;font-size:13px;box-shadow:0 3px 10px rgba(11,120,209,.14)}
.btn.small{height:30px;min-height:30px;padding:0 10px;font-size:12px}
.topbar-action-link,.lang-switch summary{padding:0 12px;height:34px;min-height:34px}
.user-chip{display:inline-flex;flex-direction:column;justify-content:center;gap:1px;padding:4px 10px!important;min-height:34px;height:auto}
.user-chip strong{font-size:12px;line-height:1.05}.user-chip span{font-size:10px;line-height:1.05}
.table-wrap,.maintenance-table-wrap{border-radius:var(--ui-radius)!important}
.table-wrap table,.maintenance-table-wrap table,table{border-radius:var(--ui-radius);overflow:hidden}
th,td{padding:6px 5px;font-size:12px}
.table-footer-bar{padding:4px 10px!important;min-height:var(--ui-footer-h);border-radius:0 0 var(--ui-radius) var(--ui-radius)!important}
.table-footer-left,.table-footer-center,.table-footer-right{font-size:11px;gap:6px}
.footer-per-page-form{display:flex;align-items:center;gap:6px}
.footer-per-page-form label{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:11px}
.footer-per-page-form select{height:24px;min-height:24px;min-width:84px;padding:0 8px;font-size:11px}
.pager-btn,.pager-page{min-width:22px;height:22px;font-size:11px}
.maintenance-table-wrap{border-radius:var(--ui-radius) var(--ui-radius) 0 0!important}
.sidebar{padding:12px 0}
.brand{padding:0 14px 12px;font-size:18px}
.group-title,.nav-title{padding:10px 14px 6px;font-size:11px}
.nav-link{padding:8px 14px}
/* dash1 specific compact cleanup */
body.page-dash1 .page-body{padding-top:1px}
body.page-dash1 .topbar,body.page-dash1 .card{margin-bottom:8px!important}
body.page-dash1 .dash1-filter-grid{gap:8px!important;align-items:end}
body.page-dash1 .dash1-filter-grid input,body.page-dash1 .dash1-filter-grid select,body.page-dash1 .dash1-filter-grid .btn,body.page-dash1 .dash1-filter-grid .btn-view{height:32px;min-height:32px}
body.page-dash1 .dash1 th,body.page-dash1 .dash1 td{height:23px;padding:1px 3px;font-size:12px}
body.page-dash1 .dash1 th:nth-child(n+4):not(:last-child),body.page-dash1 .dash1 td:nth-child(n+4):not(:last-child){height:23px;font-size:10px;padding:1px 2px}
body.page-dash1 .footer-per-page-form label{white-space:nowrap}

.topbar-action-primary{background:linear-gradient(180deg,#1791ef,#0b78d1)!important;border-color:#0a63ab!important;color:#fff!important;box-shadow:0 3px 10px rgba(11,120,209,.18)!important}
.topbar-action-primary:hover{background:linear-gradient(180deg,#1a97f5,#0d80de)!important}
.topbar-divider{display:inline-flex;align-items:center;justify-content:center;color:#95a6bb;font-weight:700;padding:0 2px;height:34px}
body.page-journal-input .topbar .top-meta,body.page-dash1 .topbar .top-meta{max-width:680px}
body.page-journal-input .page-body{padding-top:1px}

/* maintenance page compact alignment to match dash1 */
body.page-maintenance .page-body{padding-top:1px}
body.page-maintenance .topbar,body.page-maintenance .card{margin-bottom:8px!important}
body.page-maintenance .topbar .top-meta{max-width:680px}
body.page-maintenance .maintenance-filter-card{padding:10px 14px!important}
body.page-maintenance .maintenance-filter-form{gap:8px!important;align-items:end}
body.page-maintenance .maintenance-filter-form > div{gap:3px;min-width:70px}
body.page-maintenance .maintenance-filter-form label{font-size:10px;margin-bottom:0}
body.page-maintenance .maintenance-filter-form input{width:86px;height:32px;min-height:32px}
body.page-maintenance .maintenance-filter-form .tab{height:32px;min-height:32px;padding:0 12px}
body.page-maintenance .maintenance-table-title{position:static;padding:0 0 8px;font-size:15px;line-height:1.2}
body.page-maintenance .maintenance-table-wrap{border-radius:7px 7px 0 0!important;max-height:calc(100vh - 245px)}
body.page-maintenance .sticky-table th,body.page-maintenance .sticky-table td{height:23px;padding:1px 6px;font-size:12px}
body.page-maintenance .table-footer-bar{padding:4px 10px!important;min-height:32px;border-radius:0 0 7px 7px!important}
body.page-maintenance .table-footer-left,body.page-maintenance .table-footer-center,body.page-maintenance .table-footer-right{font-size:11px;gap:6px}
body.page-maintenance .footer-per-page-form{display:flex;align-items:center}
body.page-maintenance .footer-per-page-form label{font-size:11px;gap:6px;display:inline-flex;align-items:center;white-space:nowrap}
body.page-maintenance .footer-per-page-form select{height:30px;min-height:30px;padding:0 26px 0 10px}
body.page-maintenance .pager-btn,body.page-maintenance .pager-page{width:28px;height:28px;min-height:28px;font-size:12px;border-radius:7px!important}


/* V1.2.1 dev fix ui7 - maintenance journal compact tabs and centered table */
body.page-maintenance .maintenance-filter-form{flex-wrap:wrap;row-gap:6px!important}
body.page-maintenance .maintenance-filter-form .tab{
  height:28px!important;
  min-height:28px!important;
  padding:0 9px!important;
  font-size:11px!important;
  font-weight:700;
  letter-spacing:0;
}
body.page-maintenance .maintenance-filter-form > div{min-width:64px!important}
body.page-maintenance .maintenance-filter-form input{width:82px!important}
body.page-maintenance .maintenance-table-wrap table{table-layout:fixed;width:100%}
body.page-maintenance .maintenance-table-wrap th,
body.page-maintenance .maintenance-table-wrap td{
  vertical-align:middle!important;
  text-align:center;
  padding:4px 6px!important;
  font-size:11px!important;
  line-height:1.2;
}
body.page-maintenance .maintenance-table-wrap th{white-space:normal}
body.page-maintenance .maintenance-table-wrap th:nth-child(1),
body.page-maintenance .maintenance-table-wrap td:nth-child(1){width:72px}
body.page-maintenance .maintenance-table-wrap th:nth-child(2),
body.page-maintenance .maintenance-table-wrap td:nth-child(2){width:78px}
body.page-maintenance .maintenance-table-wrap th:nth-child(3),
body.page-maintenance .maintenance-table-wrap td:nth-child(3){width:84px}
body.page-maintenance .maintenance-table-wrap th:nth-child(4),
body.page-maintenance .maintenance-table-wrap td:nth-child(4){width:68px}
body.page-maintenance .maintenance-table-wrap th:nth-child(5),
body.page-maintenance .maintenance-table-wrap td:nth-child(5){width:122px}
body.page-maintenance .maintenance-table-wrap th:nth-child(6),
body.page-maintenance .maintenance-table-wrap td:nth-child(6){width:20%; text-align:left}
body.page-maintenance .maintenance-table-wrap th:nth-child(7),
body.page-maintenance .maintenance-table-wrap td:nth-child(7){width:15%; text-align:left}
body.page-maintenance .maintenance-table-wrap th:nth-child(8),
body.page-maintenance .maintenance-table-wrap td:nth-child(8){width:88px}
body.page-maintenance .maintenance-table-wrap th:nth-child(9),
body.page-maintenance .maintenance-table-wrap td:nth-child(9){width:17%; text-align:left}
body.page-maintenance .maintenance-table-wrap td:nth-child(6),
body.page-maintenance .maintenance-table-wrap td:nth-child(7),
body.page-maintenance .maintenance-table-wrap td:nth-child(9){word-break:break-word}
body.page-maintenance .maintenance-table-wrap tbody tr td:not(:nth-child(6)):not(:nth-child(7)):not(:nth-child(9)){text-align:center}
body.page-maintenance .maintenance-table-wrap tbody td.muted{text-align:center!important}


/* UI fix 8 - maintenance tuning */
body.page-maintenance .topbar .top-meta{text-transform:none;}
body.page-maintenance .maintenance-filter-card{padding:10px 14px;}
body.page-maintenance .maintenance-filter-form{gap:8px;align-items:end;}
body.page-maintenance .maintenance-filter-form label{font-size:10px;margin-bottom:3px;}
body.page-maintenance .maintenance-filter-form input{height:32px;min-height:32px;border-radius:7px;padding:5px 9px;font-size:13px;width:74px;}
body.page-maintenance .maintenance-filter-form .tab{height:32px;min-height:32px;padding:0 9px;border-radius:7px;font-size:11px;line-height:1;display:inline-flex;align-items:center;justify-content:center;}
body.page-maintenance .maintenance-table-wrap{border-radius:7px 7px 0 0;}
body.page-maintenance .table-footer-bar{border-radius:0 0 7px 7px;}
body.page-maintenance .time-missing-cell{background:#fff3bf !important;color:#6b5200;font-weight:700;text-align:center;}


/* UI fix 9 - maintenance journal missing time label and consistent control heights */
body.page-maintenance .maintenance-filter-form input,
body.page-maintenance .maintenance-filter-form .tab{height:32px!important;min-height:32px!important;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;}
body.page-maintenance .maintenance-table-wrap th:nth-child(6),
body.page-maintenance .maintenance-table-wrap th:nth-child(7),
body.page-maintenance .maintenance-table-wrap th:nth-child(9){text-align:center!important;}
body.page-maintenance .maintenance-table-wrap td:nth-child(6),
body.page-maintenance .maintenance-table-wrap td:nth-child(7),
body.page-maintenance .maintenance-table-wrap td:nth-child(9){text-align:left!important;vertical-align:middle!important;}
body.page-maintenance .time-missing-cell{background:#fff3bf !important;color:#6b5200 !important;font-weight:700;text-align:center!important;}


body.page-system-language .topbar{margin-bottom:1px!important}
body.page-system-language .page-body{padding-top:1px!important}
body.page-system-language .compact-language-box{margin-bottom:10px}
.language-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 12px;align-items:end}
.language-form-grid .language-form-head,.language-form-grid .language-form-actions{grid-column:1/-1}
.language-form-grid label{font-size:11px;font-weight:700;color:#6a7688;margin-bottom:5px;display:block}
.language-form-grid input,.language-form-grid select{width:100%;height:34px;min-height:34px;border:1px solid #c8d6e6;border-radius:7px;padding:0 10px}
.language-form-actions{display:flex;gap:8px;flex-wrap:wrap}
.language-filter-row{display:grid;grid-template-columns:1.1fr 1.4fr auto;gap:10px 12px;align-items:end}
.language-filter-row label{font-size:11px;font-weight:700;color:#6a7688;margin-bottom:5px;display:block}
.language-filter-row input,.language-filter-row select{width:100%;height:34px;min-height:34px;border-radius:7px}
.language-filter-action{display:flex;align-items:end}
.language-page-table{padding-bottom:0!important;overflow:hidden!important}
.language-table-scroll{height:calc(100vh - 270px)!important;max-height:none!important;overflow:auto!important;border-radius:7px 7px 0 0!important}
body.page-system-language .language-table-scroll table{table-layout:fixed;width:100%}
body.page-system-language .language-table-scroll th,body.page-system-language .language-table-scroll td{font-size:12px;vertical-align:middle}
body.page-system-language .language-table-scroll th:nth-child(1),body.page-system-language .language-table-scroll td:nth-child(1){width:110px}
body.page-system-language .language-table-scroll th:nth-child(2),body.page-system-language .language-table-scroll td:nth-child(2){width:110px}
body.page-system-language .language-table-scroll th:nth-child(3),body.page-system-language .language-table-scroll td:nth-child(3){width:180px}
body.page-system-language .language-table-scroll th:nth-child(4),body.page-system-language .language-table-scroll td:nth-child(4){width:180px}
body.page-system-language .language-table-scroll th:nth-child(5),body.page-system-language .language-table-scroll td:nth-child(5){width:180px}
body.page-system-language .language-table-scroll th:nth-child(6),body.page-system-language .language-table-scroll td:nth-child(6){width:170px}
body.page-system-language .language-table-scroll th:nth-child(7),body.page-system-language .language-table-scroll td:nth-child(7){width:170px}
body.page-system-language .language-table-scroll th:nth-child(8),body.page-system-language .language-table-scroll td:nth-child(8){width:170px}
body.page-system-language .language-table-scroll th:nth-child(9),body.page-system-language .language-table-scroll td:nth-child(9){width:76px;text-align:center}
body.page-system-language .language-table-scroll th:nth-child(10),body.page-system-language .language-table-scroll td:nth-child(10){width:120px}
body.page-system-language .language-table-scroll th:nth-child(11),body.page-system-language .language-table-scroll td:nth-child(11){width:74px;text-align:center}
body.page-system-language .table-footer-bar{border-radius:0 0 7px 7px!important}
@media (max-width:1200px){.language-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.language-filter-row{grid-template-columns:1fr}.language-table-scroll{height:55vh!important}}


/* ui11: language page topbar/table fixes */
body.page-system-language .right-menu.compact .topbar-action-link,
body.page-system-language .right-menu.compact .topbar-import-form .topbar-action-link,
body.page-system-language .right-menu.compact .topbar-action-primary{
  background:#0b78d1 !important;
  color:#fff !important;
  border-color:#0b78d1 !important;
}
body.page-system-language .right-menu.compact .topbar-action-link:hover,
body.page-system-language .right-menu.compact .topbar-import-form .topbar-action-link:hover,
body.page-system-language .right-menu.compact .topbar-action-primary:hover{
  background:#0967b2 !important;
  border-color:#0967b2 !important;
}
body.page-system-language .language-page-table{
  overflow:hidden !important;
}
body.page-system-language .language-table-scroll{
  height:calc(100vh - 270px) !important;
  overflow:auto !important;
  overflow-x:auto !important;
  overflow-y:auto !important;
  border-radius:7px 7px 0 0 !important;
}
body.page-system-language .language-table-scroll table{
  table-layout:auto !important;
  width:max-content !important;
  min-width:1650px !important;
}
body.page-system-language .language-table-scroll thead th,
body.page-system-language .language-table-scroll .sticky-table thead th{
  position:sticky !important;
  top:0 !important;
  z-index:5 !important;
  white-space:nowrap;
}
body.page-system-language .language-table-scroll tbody td{
  vertical-align:middle;
}
body.page-system-language .language-table-scroll th:nth-child(1),
body.page-system-language .language-table-scroll td:nth-child(1){width:180px !important; min-width:180px !important;}
body.page-system-language .language-table-scroll th:nth-child(2),
body.page-system-language .language-table-scroll td:nth-child(2){width:150px !important; min-width:150px !important;}
body.page-system-language .language-table-scroll th:nth-child(3),
body.page-system-language .language-table-scroll td:nth-child(3),
body.page-system-language .language-table-scroll th:nth-child(4),
body.page-system-language .language-table-scroll td:nth-child(4),
body.page-system-language .language-table-scroll th:nth-child(5),
body.page-system-language .language-table-scroll td:nth-child(5){width:220px !important; min-width:220px !important;}
body.page-system-language .language-table-scroll th:nth-child(6),
body.page-system-language .language-table-scroll td:nth-child(6),
body.page-system-language .language-table-scroll th:nth-child(7),
body.page-system-language .language-table-scroll td:nth-child(7),
body.page-system-language .language-table-scroll th:nth-child(8),
body.page-system-language .language-table-scroll td:nth-child(8){width:210px !important; min-width:210px !important;}
body.page-system-language .language-table-scroll th:nth-child(9),
body.page-system-language .language-table-scroll td:nth-child(9){width:90px !important; min-width:90px !important; text-align:center;}
body.page-system-language .language-table-scroll th:nth-child(10),
body.page-system-language .language-table-scroll td:nth-child(10){width:150px !important; min-width:150px !important;}
body.page-system-language .language-table-scroll th:nth-child(11),
body.page-system-language .language-table-scroll td:nth-child(11){width:90px !important; min-width:90px !important; text-align:center;}


/* ui12 language real fixes */
body.page-system-language .topbar-import-form{display:inline-flex !important;align-items:center !important;margin:0 !important}
body.page-system-language .right-menu.compact > a.topbar-action-link,
body.page-system-language .right-menu.compact > form.topbar-import-form > .topbar-action-link,
body.page-system-language .right-menu.compact > a.topbar-action-primary{
  display:inline-flex !important;align-items:center;justify-content:center;
  min-height:34px !important;height:34px !important;
  padding:0 12px !important;border-radius:7px !important;
  background:#0b78d1 !important;color:#fff !important;border:1px solid #0b78d1 !important;
  text-decoration:none !important;white-space:nowrap;
}
body.page-system-language .right-menu.compact > a.topbar-action-link:hover,
body.page-system-language .right-menu.compact > form.topbar-import-form > .topbar-action-link:hover,
body.page-system-language .right-menu.compact > a.topbar-action-primary:hover{
  background:#0967b2 !important;border-color:#0967b2 !important;color:#fff !important;
}
body.page-system-language .right-menu.compact .topbar-divider{display:inline-flex !important;align-items:center;height:34px;color:#7e8ea3;font-weight:700}
body.page-system-language .language-page-table{display:flex !important;flex-direction:column !important;min-height:0 !important;overflow:hidden !important}
body.page-system-language .language-table-scroll{flex:1 1 auto !important;min-height:0 !important;height:calc(100vh - 270px) !important;overflow:auto !important;border:1px solid #d9e4ef !important;border-radius:7px 7px 0 0 !important}
body.page-system-language .language-table-scroll table{border-collapse:separate !important;border-spacing:0 !important;table-layout:auto !important;width:max-content !important;min-width:1900px !important}
body.page-system-language .language-table-scroll thead,body.page-system-language .language-table-scroll thead tr{position:static !important}
body.page-system-language .language-table-scroll thead th,
body.page-system-language .language-table-scroll .sticky-table thead th{
  position:sticky !important;top:0 !important;z-index:20 !important;background:#eef5fb !important;box-shadow:inset 0 -1px 0 #d8e3ef;white-space:nowrap !important;vertical-align:middle !important;
}
body.page-system-language .language-table-scroll tbody td{vertical-align:middle !important;background:#fff}
body.page-system-language .language-table-scroll th:nth-child(1),
body.page-system-language .language-table-scroll td:nth-child(1){width:260px !important;min-width:260px !important;max-width:260px !important;white-space:normal !important;word-break:break-word !important}
body.page-system-language .language-table-scroll th:nth-child(2),
body.page-system-language .language-table-scroll td:nth-child(2){width:170px !important;min-width:170px !important}
body.page-system-language .language-table-scroll th:nth-child(3),
body.page-system-language .language-table-scroll td:nth-child(3),
body.page-system-language .language-table-scroll th:nth-child(4),
body.page-system-language .language-table-scroll td:nth-child(4),
body.page-system-language .language-table-scroll th:nth-child(5),
body.page-system-language .language-table-scroll td:nth-child(5){width:230px !important;min-width:230px !important}
body.page-system-language .language-table-scroll th:nth-child(6),
body.page-system-language .language-table-scroll td:nth-child(6),
body.page-system-language .language-table-scroll th:nth-child(7),
body.page-system-language .language-table-scroll td:nth-child(7),
body.page-system-language .language-table-scroll th:nth-child(8),
body.page-system-language .language-table-scroll td:nth-child(8){width:220px !important;min-width:220px !important}


/* ui13 language table true sticky header + restored table css */
body.page-system-language .language-page-table{
  border-radius:7px !important;
  background:#fff !important;
  border:1px solid #d9e4ef !important;
  padding:0 !important;
}
body.page-system-language .language-table-scroll{
  flex:1 1 auto !important;
  min-height:0 !important;
  height:calc(100vh - 270px) !important;
  overflow:auto !important;
  border:0 !important;
  border-radius:7px 7px 0 0 !important;
  background:#fff !important;
}
body.page-system-language .language-table-scroll table,
body.page-system-language .language-table-scroll .sticky-table{
  width:max-content !important;
  min-width:100% !important;
  table-layout:auto !important;
  border-collapse:separate !important;
  border-spacing:0 !important;
  background:#fff !important;
}
body.page-system-language .language-table-scroll thead th,
body.page-system-language .language-table-scroll .sticky-table thead th{
  position:sticky !important;
  top:0 !important;
  z-index:30 !important;
  background:#8db4db !important;
  color:#13263b !important;
  white-space:nowrap !important;
  vertical-align:middle !important;
  border-top:0 !important;
}
body.page-system-language .language-table-scroll tbody td{
  background:#fff !important;
  vertical-align:middle !important;
}
body.page-system-language .language-table-scroll th,
body.page-system-language .language-table-scroll td{
  border-right:1px solid #b7c3d1 !important;
  border-bottom:1px solid #b7c3d1 !important;
  padding:8px 8px !important;
  font-size:12px !important;
}
body.page-system-language .language-table-scroll tr > *:first-child{
  border-left:1px solid #b7c3d1 !important;
}
body.page-system-language .language-table-scroll thead tr:first-child > *{
  border-top:1px solid #b7c3d1 !important;
}
body.page-system-language .language-table-scroll th:nth-child(1),
body.page-system-language .language-table-scroll td:nth-child(1){
  width:300px !important; min-width:300px !important; max-width:300px !important;
  white-space:normal !important; word-break:break-word !important;
}
body.page-system-language .language-table-scroll th:nth-child(2),
body.page-system-language .language-table-scroll td:nth-child(2){width:180px !important; min-width:180px !important;}
body.page-system-language .language-table-scroll th:nth-child(3),
body.page-system-language .language-table-scroll td:nth-child(3),
body.page-system-language .language-table-scroll th:nth-child(4),
body.page-system-language .language-table-scroll td:nth-child(4),
body.page-system-language .language-table-scroll th:nth-child(5),
body.page-system-language .language-table-scroll td:nth-child(5){width:240px !important; min-width:240px !important;}
body.page-system-language .language-table-scroll th:nth-child(6),
body.page-system-language .language-table-scroll td:nth-child(6),
body.page-system-language .language-table-scroll th:nth-child(7),
body.page-system-language .language-table-scroll td:nth-child(7),
body.page-system-language .language-table-scroll th:nth-child(8),
body.page-system-language .language-table-scroll td:nth-child(8){width:230px !important; min-width:230px !important;}
body.page-system-language .language-table-scroll th:nth-child(9),
body.page-system-language .language-table-scroll td:nth-child(9){width:100px !important; min-width:100px !important; text-align:center !important;}
body.page-system-language .language-table-scroll th:nth-child(10),
body.page-system-language .language-table-scroll td:nth-child(10){width:170px !important; min-width:170px !important;}
body.page-system-language .language-table-scroll th:nth-child(11),
body.page-system-language .language-table-scroll td:nth-child(11){width:96px !important; min-width:96px !important; text-align:center !important;}
body.page-system-language .table-footer-bar{border-top:1px solid #d9e4ef !important; border-radius:0 0 7px 7px !important;}


/* ui14 language table align to maintenance table */
body.page-system-language .language-page-table{
  display:flex !important;
  flex-direction:column !important;
  min-height:0 !important;
  overflow:visible !important;
  padding-bottom:0 !important;
}
body.page-system-language .language-table-scroll{
  flex:1 1 auto !important;
  min-height:0 !important;
  height:calc(100vh - 275px) !important;
  max-height:none !important;
  overflow:auto !important;
  border:1px solid #d9e4ef !important;
  border-radius:7px 7px 0 0 !important;
  background:#fff !important;
}
body.page-system-language .language-table-scroll table,
body.page-system-language .language-table-scroll .sticky-table{
  margin:0 !important;
  width:max-content !important;
  min-width:100% !important;
  table-layout:auto !important;
  border-collapse:separate !important;
  border-spacing:0 !important;
  background:#fff !important;
}
body.page-system-language .language-table-scroll thead th,
body.page-system-language .language-table-scroll .sticky-table thead th{
  position:sticky !important;
  top:0 !important;
  z-index:30 !important;
  background:#e8f1fb !important;
  vertical-align:middle !important;
  white-space:nowrap !important;
  box-shadow:inset 0 -1px 0 #d9e4ef !important;
}
body.page-system-language .language-table-scroll th,
body.page-system-language .language-table-scroll td{
  padding:6px 8px !important;
  border-right:1px solid #d9e4ef !important;
  border-bottom:1px solid #d9e4ef !important;
  vertical-align:middle !important;
  background:#fff !important;
}
body.page-system-language .language-table-scroll thead th:last-child,
body.page-system-language .language-table-scroll tbody td:last-child{border-right:0 !important;}
body.page-system-language .language-table-scroll tbody tr:last-child td{border-bottom:0 !important;}
body.page-system-language .language-table-scroll th:nth-child(1),
body.page-system-language .language-table-scroll td:nth-child(1){
  width:280px !important;
  min-width:280px !important;
  max-width:280px !important;
  white-space:normal !important;
  word-break:break-word !important;
}
body.page-system-language .language-table-scroll th:nth-child(2),
body.page-system-language .language-table-scroll td:nth-child(2){width:180px !important;min-width:180px !important;}
body.page-system-language .language-table-scroll th:nth-child(3),
body.page-system-language .language-table-scroll td:nth-child(3),
body.page-system-language .language-table-scroll th:nth-child(4),
body.page-system-language .language-table-scroll td:nth-child(4),
body.page-system-language .language-table-scroll th:nth-child(5),
body.page-system-language .language-table-scroll td:nth-child(5){width:240px !important;min-width:240px !important;}
body.page-system-language .language-table-scroll th:nth-child(6),
body.page-system-language .language-table-scroll td:nth-child(6),
body.page-system-language .language-table-scroll th:nth-child(7),
body.page-system-language .language-table-scroll td:nth-child(7),
body.page-system-language .language-table-scroll th:nth-child(8),
body.page-system-language .language-table-scroll td:nth-child(8){width:230px !important;min-width:230px !important;}
body.page-system-language .language-table-scroll th:nth-child(9),
body.page-system-language .language-table-scroll td:nth-child(9){width:100px !important;min-width:100px !important;text-align:center !important;}
body.page-system-language .language-table-scroll th:nth-child(10),
body.page-system-language .language-table-scroll td:nth-child(10){width:170px !important;min-width:170px !important;}
body.page-system-language .language-table-scroll th:nth-child(11),
body.page-system-language .language-table-scroll td:nth-child(11){width:96px !important;min-width:96px !important;text-align:center !important;}
body.page-system-language .table-footer-bar{
  border:1px solid #d9e4ef !important;
  border-top:0 !important;
  border-radius:0 0 7px 7px !important;
  background:#fff !important;
}


/* ui15 language page rebuild like maintenance table */
body.page-system-language .topbar{margin-bottom:1px !important}
body.page-system-language .page-body{padding-top:1px !important}
body.page-system-language .topbar-import-form{display:inline-flex !important;align-items:center !important;margin:0 !important}
body.page-system-language .right-menu.compact > a.topbar-action-link,
body.page-system-language .right-menu.compact > form.topbar-import-form > .topbar-action-link,
body.page-system-language .right-menu.compact > a.topbar-action-primary{
  display:inline-flex !important;align-items:center;justify-content:center;
  min-height:34px !important;height:34px !important;padding:0 12px !important;
  border-radius:7px !important;background:#0b78d1 !important;color:#fff !important;
  border:1px solid #0b78d1 !important;text-decoration:none !important;white-space:nowrap;
}
body.page-system-language .right-menu.compact > a.topbar-action-link:hover,
body.page-system-language .right-menu.compact > form.topbar-import-form > .topbar-action-link:hover,
body.page-system-language .right-menu.compact > a.topbar-action-primary:hover{background:#0967b2 !important;border-color:#0967b2 !important;color:#fff !important}
body.page-system-language .right-menu.compact .topbar-divider{display:inline-flex !important;align-items:center;height:34px;color:#7e8ea3;font-weight:700}
body.page-system-language .compact-language-box{margin-bottom:8px !important}
body.page-system-language .language-filter-card{padding:10px 14px !important;margin-bottom:8px !important;border-radius:7px !important}
body.page-system-language .language-filter-row{display:grid;grid-template-columns:1.2fr 1.5fr auto;gap:8px 12px;align-items:end}
body.page-system-language .language-filter-row label{font-size:10px;margin-bottom:3px}
body.page-system-language .language-filter-row input,
body.page-system-language .language-filter-row select{height:32px;min-height:32px;border-radius:7px;padding:5px 9px;font-size:13px}
body.page-system-language .language-filter-action{display:flex;align-items:end}
body.page-system-language .language-filter-action .btn{height:32px;min-height:32px;padding:0 12px;border-radius:7px;min-width:108px;box-shadow:0 3px 8px rgba(18,79,190,.16)}
body.page-system-language .language-list-shell{padding:0 !important;overflow:hidden !important;border-radius:7px !important}
body.page-system-language .language-table-wrap{flex:1 1 auto;min-height:0;height:calc(100vh - 285px) !important;max-height:none !important;overflow:auto !important;border:1px solid #d9e4ef !important;border-radius:7px 7px 0 0 !important;background:#fff !important}
body.page-system-language .language-grid-table{width:max-content !important;min-width:100% !important;table-layout:auto !important;border-collapse:collapse !important;border-spacing:0 !important;background:#fff}
body.page-system-language .language-grid-table th,
body.page-system-language .language-grid-table td{font-size:12px;vertical-align:middle !important;padding:8px 6px;border:1px solid #b7c3d1;white-space:normal;word-break:break-word}
body.page-system-language .language-grid-table thead th{position:sticky !important;top:0 !important;z-index:6 !important;background:#8db4db !important;vertical-align:middle !important;white-space:nowrap;word-break:normal}
body.page-system-language .language-grid-table th:nth-child(1), body.page-system-language .language-grid-table td:nth-child(1){min-width:240px;width:240px}
body.page-system-language .language-grid-table th:nth-child(2), body.page-system-language .language-grid-table td:nth-child(2){min-width:150px;width:150px}
body.page-system-language .language-grid-table th:nth-child(3), body.page-system-language .language-grid-table td:nth-child(3),
body.page-system-language .language-grid-table th:nth-child(4), body.page-system-language .language-grid-table td:nth-child(4),
body.page-system-language .language-grid-table th:nth-child(5), body.page-system-language .language-grid-table td:nth-child(5){min-width:220px;width:220px}
body.page-system-language .language-grid-table th:nth-child(6), body.page-system-language .language-grid-table td:nth-child(6),
body.page-system-language .language-grid-table th:nth-child(7), body.page-system-language .language-grid-table td:nth-child(7),
body.page-system-language .language-grid-table th:nth-child(8), body.page-system-language .language-grid-table td:nth-child(8){min-width:210px;width:210px}
body.page-system-language .language-grid-table th:nth-child(9), body.page-system-language .language-grid-table td:nth-child(9){min-width:90px;width:90px;text-align:center}
body.page-system-language .language-grid-table th:nth-child(10), body.page-system-language .language-grid-table td:nth-child(10){min-width:150px;width:150px}
body.page-system-language .language-grid-table th:nth-child(11), body.page-system-language .language-grid-table td:nth-child(11){min-width:90px;width:90px;text-align:center}
body.page-system-language .language-list-shell .table-footer-bar{border-top:0;border-left:1px solid #c2c8d0;border-right:1px solid #c2c8d0;border-bottom:1px solid #c2c8d0;border-radius:0 0 7px 7px !important;margin:0}
body.page-system-language .text-center{text-align:center}
@media (max-width:1200px){body.page-system-language .language-filter-row{grid-template-columns:1fr} body.page-system-language .language-table-wrap{height:55vh !important}}

/* ui16 language table rebuilt with split header/body */
body.page-system-language .language-filter-card{margin-bottom:6px !important;padding:10px 14px !important;}
body.page-system-language .language-list-shell{padding:0 !important;overflow:hidden !important;border-radius:7px !important;}
body.page-system-language .language-table-frame{display:flex;flex-direction:column;min-height:0;overflow:hidden;background:#fff;}
body.page-system-language .language-table-head-wrap{overflow:hidden;border:1px solid #d9e4ef;border-bottom:0;border-radius:7px 7px 0 0;background:#fff;}
body.page-system-language .language-table-body-wrap{flex:1 1 auto;min-height:0;height:calc(100vh - 308px) !important;overflow:auto;border:1px solid #d9e4ef;border-top:0;border-radius:0;background:#fff;}
body.page-system-language .language-grid-table{width:max-content !important;min-width:100% !important;table-layout:fixed !important;border-collapse:collapse !important;border-spacing:0 !important;background:#fff;margin:0;}
body.page-system-language .language-grid-table th,body.page-system-language .language-grid-table td{font-size:12px;padding:8px 6px;border:1px solid #b7c3d1;vertical-align:middle !important;background:#fff;}
body.page-system-language .language-grid-table-head th{background:#8db4db !important;white-space:nowrap;word-break:normal;text-align:center;position:static !important;}
body.page-system-language .language-grid-table-body td{white-space:normal;word-break:break-word;}
body.page-system-language .language-grid-table .col-code{width:240px;}
body.page-system-language .language-grid-table .col-key{width:150px;}
body.page-system-language .language-grid-table .col-vi,body.page-system-language .language-grid-table .col-en,body.page-system-language .language-grid-table .col-ko{width:220px;}
body.page-system-language .language-grid-table .col-note-vi,body.page-system-language .language-grid-table .col-note-en,body.page-system-language .language-grid-table .col-note-ko{width:210px;}
body.page-system-language .language-grid-table .col-version{width:90px;}
body.page-system-language .language-grid-table .col-scope{width:150px;}
body.page-system-language .language-grid-table .col-action{width:90px;}
body.page-system-language .language-grid-table td:nth-child(9),body.page-system-language .language-grid-table td:nth-child(11){text-align:center;}
body.page-system-language .language-list-shell .table-footer-bar{border-top:0 !important;border-left:1px solid #c2c8d0 !important;border-right:1px solid #c2c8d0 !important;border-bottom:1px solid #c2c8d0 !important;border-radius:0 0 7px 7px !important;margin:0 !important;}
@media (max-width:1200px){body.page-system-language .language-table-body-wrap{height:55vh !important;}}

/* ui17 final baseline: spacing and table shell follow Nhat ky bao tri */
.topbar,
.card{margin-bottom:8px !important;}
body.page-system-language .topbar,body.page-dash1 .topbar,body.page-maintenance-list .topbar,body.page-maintenance-form .topbar{margin-bottom:8px !important;}
body.page-system-language .page-body,body.page-dash1 .page-body,body.page-maintenance-list .page-body,body.page-maintenance-form .page-body{padding-top:0 !important;}
body.page-system-language .compact-language-box{margin-bottom:8px !important;}
body.page-system-language .language-filter-card{margin-bottom:8px !important;padding:10px 14px !important;border-radius:var(--ui-radius,7px) !important;}
body.page-system-language .maintenance-list-shell{display:flex !important;flex-direction:column !important;min-height:0 !important;padding:0 !important;overflow:hidden !important;border-radius:var(--ui-radius,7px) !important;background:#fff !important;}
body.page-system-language .language-table-frame{display:flex !important;flex-direction:column !important;flex:1 1 auto !important;min-height:0 !important;overflow:hidden !important;background:#fff !important;}
body.page-system-language .language-table-head-wrap{flex:0 0 auto !important;overflow:hidden !important;border:1px solid #c2c8d0 !important;border-bottom:0 !important;border-radius:var(--ui-radius,7px) var(--ui-radius,7px) 0 0 !important;background:#fff !important;}
body.page-system-language .language-table-body-wrap{flex:1 1 auto !important;min-height:0 !important;height:calc(100vh - 318px) !important;overflow:auto !important;border-left:1px solid #c2c8d0 !important;border-right:1px solid #c2c8d0 !important;border-bottom:0 !important;border-top:0 !important;border-radius:0 !important;background:#fff !important;}
body.page-system-language .language-grid-table{width:max-content !important;min-width:1900px !important;table-layout:fixed !important;border-collapse:collapse !important;border-spacing:0 !important;background:#fff !important;margin:0 !important;}
body.page-system-language .language-grid-table th,body.page-system-language .language-grid-table td{font-size:12px !important;line-height:1.25 !important;padding:8px 6px !important;border:1px solid #b7c3d1 !important;vertical-align:middle !important;background:#fff !important;}
body.page-system-language .language-grid-table-head th{position:static !important;top:auto !important;z-index:auto !important;background:#8db4db !important;color:#0f2238 !important;text-align:center !important;font-weight:800 !important;white-space:nowrap !important;word-break:normal !important;}
body.page-system-language .language-grid-table-body td{white-space:normal !important;word-break:break-word !important;}
body.page-system-language .language-grid-table .col-code{width:300px !important;min-width:300px !important;}
body.page-system-language .language-grid-table .col-key{width:170px !important;min-width:170px !important;}
body.page-system-language .language-grid-table .col-vi,body.page-system-language .language-grid-table .col-en,body.page-system-language .language-grid-table .col-ko{width:230px !important;min-width:230px !important;}
body.page-system-language .language-grid-table .col-note-vi,body.page-system-language .language-grid-table .col-note-en,body.page-system-language .language-grid-table .col-note-ko{width:220px !important;min-width:220px !important;}
body.page-system-language .language-grid-table .col-version{width:92px !important;min-width:92px !important;}
body.page-system-language .language-grid-table .col-scope{width:170px !important;min-width:170px !important;}
body.page-system-language .language-grid-table .col-action{width:100px !important;min-width:100px !important;}
body.page-system-language .language-grid-table td:nth-child(9),body.page-system-language .language-grid-table td:nth-child(11){text-align:center !important;}
body.page-system-language .maintenance-list-shell .table-footer-bar,.table-footer-bar{padding:4px 10px !important;min-height:var(--ui-footer-h,30px) !important;border-radius:0 0 var(--ui-radius,7px) var(--ui-radius,7px) !important;}
body.page-system-language .maintenance-list-shell .table-footer-bar{border:1px solid #c2c8d0 !important;border-top:0 !important;background:#fff !important;margin:0 !important;flex:0 0 auto !important;}
body.page-system-language .topbar-import-form{display:inline-flex !important;align-items:center !important;margin:0 !important;}
body.page-system-language .right-menu.compact > a.topbar-action-link,body.page-system-language .right-menu.compact > form.topbar-import-form > .topbar-action-link,body.page-system-language .right-menu.compact > a.topbar-action-primary{background:#0b78d1 !important;border-color:#0b78d1 !important;color:#fff !important;}
@media (max-width:1200px){body.page-system-language .language-filter-row{grid-template-columns:1fr !important;}body.page-system-language .language-table-body-wrap{height:55vh !important;}}


/* ui18 - system language table aligned to maintenance log table */
body.page-system-language .topbar,
body.page-dash1 .topbar,
body.page-maintenance-list .topbar,
body.page-maintenance-form .topbar{
  margin-bottom:8px !important;
}
body.page-system-language .page-body,
body.page-dash1 .page-body,
body.page-maintenance-list .page-body,
body.page-maintenance-form .page-body{
  padding-top:0 !important;
}
body.page-system-language .language-filter-card{
  margin-bottom:8px !important;
  padding:10px 14px !important;
  border-radius:var(--ui-radius,7px) !important;
}
body.page-system-language .maintenance-list-shell{
  display:flex !important;
  flex-direction:column !important;
  min-height:0 !important;
  padding:0 !important;
  overflow:hidden !important;
  border-radius:var(--ui-radius,7px) !important;
  background:#fff !important;
}
body.page-system-language .language-table-wrap{
  flex:1 1 auto !important;
  min-height:0 !important;
  height:auto !important;
  max-height:none !important;
  overflow:auto !important;
  border:1px solid #d9e4ef !important;
  border-bottom:0 !important;
  border-radius:var(--ui-radius,7px) var(--ui-radius,7px) 0 0 !important;
  background:#fff !important;
}
body.page-system-language .language-grid-table{
  width:max-content !important;
  min-width:1900px !important;
  table-layout:fixed !important;
  border-collapse:collapse !important;
  border-spacing:0 !important;
  margin:0 !important;
  background:#fff !important;
}
body.page-system-language .language-grid-table th,
body.page-system-language .language-grid-table td{
  font-size:12px !important;
  line-height:1.25 !important;
  padding:8px 6px !important;
  border:1px solid #b7c3d1 !important;
  vertical-align:middle !important;
  background:#fff !important;
}
body.page-system-language .language-grid-table thead th{
  position:sticky !important;
  top:0 !important;
  z-index:8 !important;
  background:#8db4db !important;
  color:#0f2238 !important;
  text-align:center !important;
  font-weight:800 !important;
  white-space:nowrap !important;
  word-break:normal !important;
}
body.page-system-language .language-grid-table tbody td{
  white-space:normal !important;
  word-break:break-word !important;
}
body.page-system-language .language-grid-table .col-code{width:300px !important;min-width:300px !important;}
body.page-system-language .language-grid-table .col-key{width:170px !important;min-width:170px !important;}
body.page-system-language .language-grid-table .col-vi,
body.page-system-language .language-grid-table .col-en,
body.page-system-language .language-grid-table .col-ko{width:230px !important;min-width:230px !important;}
body.page-system-language .language-grid-table .col-note-vi,
body.page-system-language .language-grid-table .col-note-en,
body.page-system-language .language-grid-table .col-note-ko{width:220px !important;min-width:220px !important;}
body.page-system-language .language-grid-table .col-version{width:92px !important;min-width:92px !important;}
body.page-system-language .language-grid-table .col-scope{width:170px !important;min-width:170px !important;}
body.page-system-language .language-grid-table .col-action{width:100px !important;min-width:100px !important;}
body.page-system-language .language-grid-table td:nth-child(9),
body.page-system-language .language-grid-table td:nth-child(11){text-align:center !important;}
body.page-system-language .maintenance-list-shell .table-footer-bar{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  padding:4px 10px !important;
  min-height:var(--ui-footer-h,30px) !important;
  border:1px solid #c2c8d0 !important;
  border-top:0 !important;
  border-radius:0 0 var(--ui-radius,7px) var(--ui-radius,7px) !important;
  background:#fff !important;
  color:#1b2d42 !important;
  margin:0 !important;
  flex:0 0 auto !important;
}
body.page-system-language .topbar-import-form{
  display:inline-flex !important;
  align-items:center !important;
  margin:0 !important;
}
body.page-system-language .right-menu.compact > a.topbar-action-link,
body.page-system-language .right-menu.compact > form.topbar-import-form > .topbar-action-link,
body.page-system-language .right-menu.compact > a.topbar-action-primary{
  background:#0b78d1 !important;
  border-color:#0b78d1 !important;
  color:#fff !important;
}
@media (max-width:1200px){
  body.page-system-language .language-filter-row{grid-template-columns:1fr !important;}
  body.page-system-language .language-grid-table{min-width:1800px !important;}
}


/* ui19 - system language table hard split: fixed header + scroll body + visible footer */
body.page-system-language .topbar{
  margin-bottom:8px !important;
}
body.page-system-language .page-body{
  padding-top:0 !important;
}
body.page-system-language .language-filter-card{
  margin-bottom:8px !important;
  padding:10px 14px !important;
  border-radius:var(--ui-radius,7px) !important;
}
body.page-system-language .language-maintenance-shell{
  display:flex !important;
  flex-direction:column !important;
  min-height:0 !important;
  height:calc(100vh - 178px) !important;
  padding:0 !important;
  overflow:hidden !important;
  border-radius:var(--ui-radius,7px) !important;
  background:#fff !important;
}
body.page-system-language .language-table-head-wrap{
  flex:0 0 auto !important;
  overflow:hidden !important;
  border:1px solid #c2c8d0 !important;
  border-bottom:0 !important;
  border-radius:var(--ui-radius,7px) var(--ui-radius,7px) 0 0 !important;
  background:#fff !important;
}
body.page-system-language .language-table-body-wrap{
  flex:1 1 auto !important;
  min-height:0 !important;
  overflow:auto !important;
  border-left:1px solid #c2c8d0 !important;
  border-right:1px solid #c2c8d0 !important;
  border-bottom:0 !important;
  border-top:0 !important;
  border-radius:0 !important;
  background:#fff !important;
}
body.page-system-language .language-grid-table{
  width:max-content !important;
  min-width:1900px !important;
  table-layout:fixed !important;
  border-collapse:collapse !important;
  border-spacing:0 !important;
  margin:0 !important;
  background:#fff !important;
}
body.page-system-language .language-grid-table th,
body.page-system-language .language-grid-table td{
  font-size:12px !important;
  line-height:1.25 !important;
  padding:8px 6px !important;
  border:1px solid #b7c3d1 !important;
  vertical-align:middle !important;
  background:#fff !important;
}
body.page-system-language .language-grid-table-head th{
  position:static !important;
  top:auto !important;
  z-index:auto !important;
  background:#8db4db !important;
  color:#0f2238 !important;
  text-align:center !important;
  font-weight:800 !important;
  white-space:nowrap !important;
  word-break:normal !important;
}
body.page-system-language .language-grid-table-body td{
  white-space:normal !important;
  word-break:break-word !important;
}
body.page-system-language .language-grid-table .col-code{width:300px !important;min-width:300px !important;}
body.page-system-language .language-grid-table .col-key{width:170px !important;min-width:170px !important;}
body.page-system-language .language-grid-table .col-vi,
body.page-system-language .language-grid-table .col-en,
body.page-system-language .language-grid-table .col-ko{width:230px !important;min-width:230px !important;}
body.page-system-language .language-grid-table .col-note-vi,
body.page-system-language .language-grid-table .col-note-en,
body.page-system-language .language-grid-table .col-note-ko{width:220px !important;min-width:220px !important;}
body.page-system-language .language-grid-table .col-version{width:92px !important;min-width:92px !important;}
body.page-system-language .language-grid-table .col-scope{width:170px !important;min-width:170px !important;}
body.page-system-language .language-grid-table .col-action{width:100px !important;min-width:100px !important;}
body.page-system-language .language-grid-table td:nth-child(9),
body.page-system-language .language-grid-table td:nth-child(11){text-align:center !important;}
body.page-system-language .language-maintenance-shell .table-footer-bar{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  padding:4px 10px !important;
  min-height:var(--ui-footer-h,30px) !important;
  border:1px solid #c2c8d0 !important;
  border-top:0 !important;
  border-radius:0 0 var(--ui-radius,7px) var(--ui-radius,7px) !important;
  background:#fff !important;
  color:#1b2d42 !important;
  margin:0 !important;
  flex:0 0 auto !important;
}
body.page-system-language .topbar-import-form{
  display:inline-flex !important;
  align-items:center !important;
  margin:0 !important;
}
body.page-system-language .right-menu.compact > a.topbar-action-link,
body.page-system-language .right-menu.compact > form.topbar-import-form > .topbar-action-link,
body.page-system-language .right-menu.compact > a.topbar-action-primary{
  background:#0b78d1 !important;
  border-color:#0b78d1 !important;
  color:#fff !important;
}
@media (max-width:1200px){
  body.page-system-language .language-maintenance-shell{height:55vh !important;}
  body.page-system-language .language-grid-table{min-width:1800px !important;}
}


/* ui20 - language page uses maintenance log visual standard */
body.page-system-language .topbar{
  margin-bottom:8px !important;
}
body.page-system-language .page-body{
  padding-top:0 !important;
}
body.page-system-language .language-filter-card{
  margin-bottom:8px !important;
  padding:10px 14px !important;
  border-radius:var(--ui-radius,7px) !important;
}
body.page-system-language .language-filter-row{
  display:grid !important;
  grid-template-columns:1.1fr 1.4fr auto !important;
  gap:8px 12px !important;
  align-items:end !important;
}
body.page-system-language .language-filter-row label{
  font-size:10px !important;
  margin-bottom:3px !important;
}
body.page-system-language .language-filter-row input,
body.page-system-language .language-filter-row select{
  height:32px !important;
  min-height:32px !important;
  border-radius:var(--ui-radius,7px) !important;
  padding:5px 9px !important;
  font-size:13px !important;
}
body.page-system-language .language-filter-action .btn{
  height:32px !important;
  min-height:32px !important;
  border-radius:var(--ui-radius,7px) !important;
}
body.page-system-language .language-maintenance-shell{
  display:flex !important;
  flex-direction:column !important;
  min-height:0 !important;
  height:calc(100vh - 178px) !important;
  padding:0 !important;
  overflow:hidden !important;
  border-radius:var(--ui-radius,7px) !important;
  background:#fff !important;
}
body.page-system-language .language-maintenance-shell .maintenance-table-title{
  flex:0 0 auto !important;
  position:static !important;
  top:auto !important;
  z-index:auto !important;
  margin:0 !important;
  padding:10px 12px 8px !important;
  background:#fff !important;
  color:#0f2238 !important;
  font-size:14px !important;
  font-weight:800 !important;
  line-height:1.25 !important;
  border:0 !important;
  border-radius:var(--ui-radius,7px) var(--ui-radius,7px) 0 0 !important;
}
body.page-system-language .language-table-head-wrap{
  flex:0 0 auto !important;
  overflow:hidden !important;
  border-left:1px solid #c2c8d0 !important;
  border-right:1px solid #c2c8d0 !important;
  border-top:1px solid #c2c8d0 !important;
  border-bottom:0 !important;
  border-radius:var(--ui-radius,7px) var(--ui-radius,7px) 0 0 !important;
  background:#fff !important;
  margin:0 12px !important;
}
body.page-system-language .language-table-body-wrap{
  flex:1 1 auto !important;
  min-height:0 !important;
  overflow:auto !important;
  border-left:1px solid #c2c8d0 !important;
  border-right:1px solid #c2c8d0 !important;
  border-bottom:0 !important;
  border-top:0 !important;
  border-radius:0 !important;
  background:#fff !important;
  margin:0 12px !important;
}
body.page-system-language .language-grid-table{
  width:max-content !important;
  min-width:1900px !important;
  table-layout:fixed !important;
  border-collapse:collapse !important;
  border-spacing:0 !important;
  margin:0 !important;
  background:#fff !important;
}
body.page-system-language .language-grid-table th,
body.page-system-language .language-grid-table td{
  font-size:12px !important;
  line-height:1.25 !important;
  padding:8px 6px !important;
  border:1px solid #b7c3d1 !important;
  vertical-align:middle !important;
  background:#fff !important;
  color:#0f2238 !important;
}
body.page-system-language .language-grid-table-head th{
  position:static !important;
  top:auto !important;
  z-index:auto !important;
  background:#8db4db !important;
  color:#0f2238 !important;
  text-align:center !important;
  font-weight:800 !important;
  white-space:nowrap !important;
  word-break:normal !important;
}
body.page-system-language .language-grid-table-head th:first-child{
  border-top-left-radius:0 !important;
}
body.page-system-language .language-grid-table-head th:last-child{
  border-top-right-radius:0 !important;
}
body.page-system-language .language-grid-table-body td{
  white-space:normal !important;
  word-break:break-word !important;
}
body.page-system-language .language-grid-table .col-code{width:300px !important;min-width:300px !important;}
body.page-system-language .language-grid-table .col-key{width:170px !important;min-width:170px !important;}
body.page-system-language .language-grid-table .col-vi,
body.page-system-language .language-grid-table .col-en,
body.page-system-language .language-grid-table .col-ko{width:230px !important;min-width:230px !important;}
body.page-system-language .language-grid-table .col-note-vi,
body.page-system-language .language-grid-table .col-note-en,
body.page-system-language .language-grid-table .col-note-ko{width:220px !important;min-width:220px !important;}
body.page-system-language .language-grid-table .col-version{width:92px !important;min-width:92px !important;text-align:center !important;}
body.page-system-language .language-grid-table .col-scope{width:170px !important;min-width:170px !important;}
body.page-system-language .language-grid-table .col-action{width:100px !important;min-width:100px !important;text-align:center !important;}
body.page-system-language .language-grid-table td:nth-child(9),
body.page-system-language .language-grid-table td:nth-child(11){
  text-align:center !important;
}
body.page-system-language .language-maintenance-shell .table-footer-bar{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  padding:4px 10px !important;
  min-height:var(--ui-footer-h,30px) !important;
  border:1px solid #c2c8d0 !important;
  border-top:0 !important;
  border-radius:0 0 var(--ui-radius,7px) var(--ui-radius,7px) !important;
  background:#d3d3d3 !important;
  color:#1b2d42 !important;
  margin:0 12px 10px !important;
  flex:0 0 auto !important;
}
body.page-system-language .language-maintenance-shell .table-footer-left,
body.page-system-language .language-maintenance-shell .table-footer-center,
body.page-system-language .language-maintenance-shell .table-footer-right{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  font-size:12px !important;
}
body.page-system-language .topbar-import-form{
  display:inline-flex !important;
  align-items:center !important;
  margin:0 !important;
}
body.page-system-language .right-menu.compact > a.topbar-action-link,
body.page-system-language .right-menu.compact > form.topbar-import-form > .topbar-action-link,
body.page-system-language .right-menu.compact > a.topbar-action-primary{
  background:#0b78d1 !important;
  border-color:#0b78d1 !important;
  color:#fff !important;
}
@media (max-width:1200px){
  body.page-system-language .language-filter-row{grid-template-columns:1fr !important;}
  body.page-system-language .language-maintenance-shell{height:55vh !important;}
  body.page-system-language .language-grid-table{min-width:1800px !important;}
}


/* system version: reuse maintenance journal table layout */
body.page-system-version .version-page-stack{display:flex;flex-direction:column;gap:8px;min-height:0}
body.page-system-version .version-current-card,body.page-system-version .version-upload-card{padding:10px 14px;margin-bottom:0}
body.page-system-version .version-table-shell{display:flex;flex-direction:column;min-height:0;padding:0;margin-bottom:0;overflow:hidden;background:#fff;border-radius:var(--ui-radius,7px)}
body.page-system-version .version-table-shell .maintenance-table-title{position:static;top:auto;z-index:auto;margin:0;padding:8px 12px 6px;background:#fff;color:#0f2238;font-size:14px;font-weight:800;line-height:1.25}
body.page-system-version .version-table-wrap{overflow:auto;border:1px solid #d9e4ef;border-bottom:0;border-radius:var(--ui-radius,7px) var(--ui-radius,7px) 0 0;margin:0 12px;background:#fff;min-height:0}
body.page-system-version .version-package-wrap{max-height:96px}
body.page-system-version .version-history-head{overflow:hidden;border:1px solid #d9e4ef;border-bottom:0;border-radius:var(--ui-radius,7px) var(--ui-radius,7px) 0 0;margin:0 12px;background:#fff;min-height:0}
body.page-system-version .version-history-wrap{max-height:260px;overflow-y:auto;overflow-x:hidden;border:1px solid #d9e4ef;border-top:0;border-bottom:0;border-radius:0;margin:0 12px;background:#fff;min-height:0}
body.page-system-version .version-log-wrap{max-height:180px}
body.page-system-version .version-grid-table{width:100%;min-width:980px;table-layout:fixed;border-collapse:collapse;margin:0}
body.page-system-version .version-history-head .version-grid-table{width:calc(100% - 17px);min-width:963px}
body.page-system-version .version-grid-table th,body.page-system-version .version-grid-table td{border:1px solid #b7c3d1;padding:8px 6px;font-size:12px;line-height:1.25;vertical-align:middle}
body.page-system-version .version-grid-table thead th{position:static;top:auto;z-index:auto;background:#8db4db;color:#0f2238;text-align:center;font-weight:800}
body.page-system-version .version-package-wrap .version-grid-table thead th,
body.page-system-version .version-log-wrap .version-grid-table thead th{position:sticky;top:0;z-index:3}
body.page-system-version .version-grid-table th:nth-child(1),body.page-system-version .version-grid-table td:nth-child(1){width:110px;text-align:center}
body.page-system-version .version-grid-table th:nth-child(2),body.page-system-version .version-grid-table td:nth-child(2){width:145px;text-align:center}
body.page-system-version .version-grid-table th:nth-child(3),body.page-system-version .version-grid-table td:nth-child(3){width:auto}
body.page-system-version .version-grid-table th:nth-child(4),body.page-system-version .version-grid-table td:nth-child(4),body.page-system-version .version-grid-table th:nth-child(5),body.page-system-version .version-grid-table td:nth-child(5){width:130px;text-align:center}
body.page-system-version .version-packages-shell .version-grid-table th:nth-child(6),body.page-system-version .version-packages-shell .version-grid-table td:nth-child(6){width:130px;text-align:center}
body.page-system-version .version-table-shell .table-footer-bar{margin:0 12px 10px;padding:4px 10px;min-height:var(--ui-footer-h,30px);border:1px solid #c2c8d0;border-top:0;border-radius:0 0 var(--ui-radius,7px) var(--ui-radius,7px);background:#d3d3d3;color:#1b2d42}
/* system version history final tuning: 3 blocks, matched columns, compact body */
body.page-system-version .version-history-shell{overflow:hidden}
body.page-system-version .version-history-head{
  overflow:hidden;
  box-sizing:border-box;
  padding-right:17px;
  border-bottom:0;
  border-radius:var(--ui-radius,7px) var(--ui-radius,7px) 0 0!important;
}
body.page-system-version .version-history-wrap{
  max-height:220px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  border-top:0;
  border-bottom:0;
  border-radius:0!important;
}
body.page-system-version .version-history-head .version-grid-table,
body.page-system-version .version-history-wrap .version-grid-table{
  width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
}
body.page-system-version .version-history-table col:nth-child(1){width:7%}
body.page-system-version .version-history-table col:nth-child(2){width:9%}
body.page-system-version .version-history-table col:nth-child(3){width:auto}
body.page-system-version .version-history-table col:nth-child(4){width:8%}
body.page-system-version .version-history-table col:nth-child(5){width:8%}
body.page-system-version .version-history-head th{
  border-bottom:0!important;
  border-radius:0!important;
}
body.page-system-version .version-history-head th:first-child{border-top-left-radius:var(--ui-radius,7px)!important}
body.page-system-version .version-history-head th:last-child{border-top-right-radius:0!important}

/* system version history v6 TRUE: header block like footer, body scroll kept */
body.page-system-version .version-history-head{
  overflow:hidden!important;
  box-sizing:border-box!important;
  margin:0 12px!important;
  padding-right:17px!important;
  border:1px solid #d9e4ef!important;
  border-bottom:0!important;
  border-radius:var(--ui-radius,7px) var(--ui-radius,7px) 0 0!important;
  background:#8db4db!important;
}
body.page-system-version .version-history-wrap{
  max-height:220px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scrollbar-gutter:stable!important;
  margin:0 12px!important;
  border:1px solid #d9e4ef!important;
  border-top:0!important;
  border-bottom:0!important;
  border-radius:0!important;
  background:#fff!important;
}
body.page-system-version .version-history-head .version-grid-table,
body.page-system-version .version-history-wrap .version-grid-table{
  width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
  border-collapse:collapse!important;
  margin:0!important;
}
body.page-system-version .version-history-head thead th{
  border-top:0!important;
  border-bottom:0!important;
  border-radius:0!important;
  background:#8db4db!important;
}
body.page-system-version .version-history-head thead th:first-child{border-left:0!important;}
body.page-system-version .version-history-head thead th:last-child{border-right:0!important;}
body.page-system-version .version-history-wrap tbody td:first-child{border-left:0!important;}
body.page-system-version .version-history-wrap tbody td:last-child{border-right:0!important;}
body.page-system-version .version-history-table col:nth-child(1){width:7%!important;}
body.page-system-version .version-history-table col:nth-child(2){width:9%!important;}
body.page-system-version .version-history-table col:nth-child(3){width:auto!important;}
body.page-system-version .version-history-table col:nth-child(4){width:8%!important;}
body.page-system-version .version-history-table col:nth-child(5){width:8%!important;}
body.page-system-version .version-table-shell .table-footer-bar{
  margin:0 12px 10px!important;
  border-radius:0 0 var(--ui-radius,7px) var(--ui-radius,7px)!important;
}

/* system version v10 TRUE: align table blocks with upload block */
body.page-system-version .version-page-stack{
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  min-height:0!important;
}
body.page-system-version .version-upload-card,
body.page-system-version .version-table-shell{
  padding:10px 14px!important;
  margin:0!important;
  box-sizing:border-box!important;
  border-radius:var(--ui-radius,7px)!important;
  background:#fff!important;
  color:#1b2d42!important;
  font-size:12px!important;
}
body.page-system-version .version-table-shell .maintenance-table-title{
  position:static!important;
  top:auto!important;
  z-index:auto!important;
  margin:0!important;
  padding:0 0 8px!important;
  background:#fff!important;
  color:#0f2238!important;
  font-size:14px!important;
  font-weight:700!important;
  line-height:1.25!important;
}
body.page-system-version .version-table-wrap,
body.page-system-version .version-history-head,
body.page-system-version .version-history-wrap,
body.page-system-version .version-package-wrap,
body.page-system-version .version-log-wrap{
  margin:0!important;
  box-sizing:border-box!important;
}
body.page-system-version .version-history-head{
  padding-right:17px!important;
  overflow:hidden!important;
  border:1px solid #d9e4ef!important;
  border-bottom:0!important;
  border-radius:var(--ui-radius,7px) var(--ui-radius,7px) 0 0!important;
  background:#8db4db!important;
}
body.page-system-version .version-history-wrap{
  max-height:220px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scrollbar-gutter:stable!important;
  border:1px solid #d9e4ef!important;
  border-top:0!important;
  border-bottom:0!important;
  border-radius:0!important;
  background:#fff!important;
}
body.page-system-version .version-package-wrap,
body.page-system-version .version-log-wrap{
  overflow:auto!important;
  border:1px solid #d9e4ef!important;
  border-bottom:0!important;
  border-radius:var(--ui-radius,7px) var(--ui-radius,7px) 0 0!important;
  background:#fff!important;
}
body.page-system-version .version-package-wrap{max-height:96px!important;}
body.page-system-version .version-log-wrap{max-height:180px!important;}
body.page-system-version .version-grid-table{
  width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
  border-collapse:collapse!important;
  margin:0!important;
  color:#000!important;
  font-size:12px!important;
}
body.page-system-version .version-grid-table th,
body.page-system-version .version-grid-table td{
  border:1px solid #b7c3d1!important;
  padding:8px 6px!important;
  font-size:12px!important;
  line-height:1.25!important;
  vertical-align:middle!important;
}
body.page-system-version .version-grid-table thead th{
  background:#8db4db!important;
  color:#0f2238!important;
  text-align:center!important;
  font-weight:700!important;
}
body.page-system-version .version-history-head thead th{
  position:static!important;
  top:auto!important;
  z-index:auto!important;
  border-top:0!important;
  border-bottom:0!important;
  border-radius:0!important;
}
body.page-system-version .version-history-head thead th:first-child{border-left:0!important;}
body.page-system-version .version-history-head thead th:last-child{border-right:0!important;}
body.page-system-version .version-history-wrap tbody td:first-child{border-left:0!important;}
body.page-system-version .version-history-wrap tbody td:last-child{border-right:0!important;}
body.page-system-version .version-package-wrap .version-grid-table thead th,
body.page-system-version .version-log-wrap .version-grid-table thead th{
  position:sticky!important;
  top:0!important;
  z-index:3!important;
}
body.page-system-version .version-table-shell .table-footer-bar{
  margin:0!important;
  padding:4px 10px!important;
  min-height:var(--ui-footer-h,30px)!important;
  border:1px solid #c2c8d0!important;
  border-top:0!important;
  border-radius:0 0 var(--ui-radius,7px) var(--ui-radius,7px)!important;
  background:#d3d3d3!important;
  color:#1b2d42!important;
  font-size:12px!important;
}
body.page-system-version .version-history-table col:nth-child(1){width:7%!important;}
body.page-system-version .version-history-table col:nth-child(2){width:9%!important;}
body.page-system-version .version-history-table col:nth-child(3){width:auto!important;}
body.page-system-version .version-history-table col:nth-child(4){width:8%!important;}
body.page-system-version .version-history-table col:nth-child(5){width:8%!important;}

/* === v11: System / Version - chống tràn tên file, trạng thái tiếng Việt, backup gọn === */
body.page-system-version .version-packages-shell .version-grid-table,
body.page-system-version .version-log-wrap .version-grid-table{
    table-layout: fixed !important;
    min-width: 980px !important;
}
body.page-system-version .version-packages-shell .version-grid-table th:nth-child(1),
body.page-system-version .version-packages-shell .version-grid-table td:nth-child(1){width:7% !important;}
body.page-system-version .version-packages-shell .version-grid-table th:nth-child(2),
body.page-system-version .version-packages-shell .version-grid-table td:nth-child(2){width:9% !important;}
body.page-system-version .version-packages-shell .version-grid-table th:nth-child(3),
body.page-system-version .version-packages-shell .version-grid-table td:nth-child(3){width:auto !important;}
body.page-system-version .version-packages-shell .version-grid-table th:nth-child(4),
body.page-system-version .version-packages-shell .version-grid-table td:nth-child(4){width:18% !important;}
body.page-system-version .version-packages-shell .version-grid-table th:nth-child(5),
body.page-system-version .version-packages-shell .version-grid-table td:nth-child(5){width:8% !important;text-align:center !important;}
body.page-system-version .version-packages-shell .version-grid-table th:nth-child(6),
body.page-system-version .version-packages-shell .version-grid-table td:nth-child(6){width:10% !important;text-align:center !important;}
body.page-system-version .version-file-cell{
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    line-height: 1.25 !important;
    text-align: left !important;
}
body.page-system-version .version-backup-cell,
body.page-system-version .version-action-cell{
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
}
body.page-system-version .version-backup-link{
    color:#0b5cad !important;
    font-weight:600 !important;
    text-decoration:none !important;
}
body.page-system-version .version-backup-link:hover{text-decoration:underline !important;}
body.page-system-version .version-action-cell form{display:inline-block;margin:0 !important;}
body.page-system-version .version-action-cell .btn.small{padding:5px 10px !important;white-space:nowrap !important;}
body.page-system-version .btn.danger{background:#d9534f !important;border-color:#c84541 !important;color:#fff !important;}

/* === v12: System / Version - table columns and compact upload/table layout === */
body.page-system-version .version-upload-card .maintenance-table-title{margin:0 0 8px!important;padding:0!important;color:#0f2238!important;font-size:14px!important;font-weight:700!important;line-height:1.25!important;}
body.page-system-version .version-history-table col:nth-child(1){width:7%!important;}body.page-system-version .version-history-table col:nth-child(2){width:9%!important;}body.page-system-version .version-history-table col:nth-child(3){width:auto!important;}
body.page-system-version .version-history-table th,body.page-system-version .version-history-table td{text-align:left!important;}body.page-system-version .version-history-table th:nth-child(1),body.page-system-version .version-history-table td:nth-child(1),body.page-system-version .version-history-table th:nth-child(2),body.page-system-version .version-history-table td:nth-child(2){text-align:center!important;}
body.page-system-version .version-package-wrap,body.page-system-version .version-log-wrap{max-height:150px!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-gutter:stable!important;border:1px solid #d9e4ef!important;border-bottom:0!important;border-radius:var(--ui-radius,7px) var(--ui-radius,7px) 0 0!important;background:#fff!important;}
body.page-system-version .version-package-table,body.page-system-version .version-log-table{min-width:0!important;table-layout:fixed!important;}
body.page-system-version .version-package-table col:nth-child(1){width:7%!important;}body.page-system-version .version-package-table col:nth-child(2){width:9%!important;}body.page-system-version .version-package-table col:nth-child(3){width:24%!important;}body.page-system-version .version-package-table col:nth-child(4){width:38%!important;}body.page-system-version .version-package-table col:nth-child(5){width:8%!important;}body.page-system-version .version-package-table col:nth-child(6){width:14%!important;}
body.page-system-version .version-package-table th,body.page-system-version .version-package-table td{overflow-wrap:anywhere!important;word-break:break-word!important;}body.page-system-version .version-package-table th:nth-child(1),body.page-system-version .version-package-table td:nth-child(1),body.page-system-version .version-package-table th:nth-child(2),body.page-system-version .version-package-table td:nth-child(2),body.page-system-version .version-package-table th:nth-child(5),body.page-system-version .version-package-table td:nth-child(5),body.page-system-version .version-package-table th:nth-child(6),body.page-system-version .version-package-table td:nth-child(6){text-align:center!important;}
body.page-system-version .version-log-table col:nth-child(1){width:10%!important;}body.page-system-version .version-log-table col:nth-child(2){width:8%!important;}body.page-system-version .version-log-table col:nth-child(3){width:8%!important;}body.page-system-version .version-log-table col:nth-child(4){width:auto!important;}body.page-system-version .version-log-table col:nth-child(5){width:10%!important;}
body.page-system-version .version-log-table th,body.page-system-version .version-log-table td{overflow-wrap:anywhere!important;word-break:break-word!important;}body.page-system-version .version-log-table th:nth-child(1),body.page-system-version .version-log-table td:nth-child(1),body.page-system-version .version-log-table th:nth-child(2),body.page-system-version .version-log-table td:nth-child(2),body.page-system-version .version-log-table th:nth-child(3),body.page-system-version .version-log-table td:nth-child(3),body.page-system-version .version-log-table th:nth-child(5),body.page-system-version .version-log-table td:nth-child(5){text-align:center!important;}
body.page-system-version .version-package-wrap .version-grid-table thead th,body.page-system-version .version-log-wrap .version-grid-table thead th{position:sticky!important;top:0!important;z-index:5!important;box-shadow:0 1px 0 #b7c3d1!important;}
/* === v13 TRUE: System / Version - pending packages + upgrade log fixed tables === */
body.page-system-version,
body.page-system-version .card,
body.page-system-version .maintenance-table-title,
body.page-system-version .small,
body.page-system-version table,
body.page-system-version th,
body.page-system-version td,
body.page-system-version input,
body.page-system-version select,
body.page-system-version button {
  font-family: Arial, Helvetica, sans-serif !important;
}
body.page-system-version .version-page-stack,
body.page-system-version .version-page-stack * {
  color: #61728b !important;
}
body.page-system-version .maintenance-table-title,
body.page-system-version .version-grid-table thead th {
  color: #0f2238 !important;
}
body.page-system-version .btn,
body.page-system-version .btn * {
  color: #fff !important;
}
body.page-system-version .version-upload-card .small,
body.page-system-version .version-upload-card .inline .small {
  color: #61728b !important;
  font-size: 12px !important;
}
body.page-system-version .version-package-wrap,
body.page-system-version .version-log-wrap {
  display: block !important;
  max-height: 150px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-gutter: stable !important;
  border: 1px solid #d9e4ef !important;
  border-bottom: 0 !important;
  border-radius: var(--ui-radius,7px) var(--ui-radius,7px) 0 0 !important;
  background: #fff !important;
  margin: 0 12px !important;
}
body.page-system-version .version-log-wrap {
  max-height: 170px !important;
}
body.page-system-version .version-package-table,
body.page-system-version .version-log-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  margin: 0 !important;
  font-size: 12px !important;
}
body.page-system-version .version-package-table thead th,
body.page-system-version .version-log-table thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 20 !important;
  background: #8db4db !important;
  color: #0f2238 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-align: center !important;
  box-shadow: 0 1px 0 #b7c3d1 !important;
}
body.page-system-version .version-package-table th,
body.page-system-version .version-package-table td,
body.page-system-version .version-log-table th,
body.page-system-version .version-log-table td {
  font-size: 12px !important;
  line-height: 1.25 !important;
  padding: 7px 6px !important;
  vertical-align: middle !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  white-space: normal !important;
}
body.page-system-version .version-package-table col:nth-child(1) { width: 7% !important; }
body.page-system-version .version-package-table col:nth-child(2) { width: 13% !important; }
body.page-system-version .version-package-table col:nth-child(3) { width: 18% !important; }
body.page-system-version .version-package-table col:nth-child(4) { width: 42% !important; }
body.page-system-version .version-package-table col:nth-child(5) { width: 8% !important; }
body.page-system-version .version-package-table col:nth-child(6) { width: 12% !important; }
body.page-system-version .version-package-table th:nth-child(1),
body.page-system-version .version-package-table td:nth-child(1),
body.page-system-version .version-package-table th:nth-child(2),
body.page-system-version .version-package-table td:nth-child(2),
body.page-system-version .version-package-table th:nth-child(5),
body.page-system-version .version-package-table td:nth-child(5),
body.page-system-version .version-package-table th:nth-child(6),
body.page-system-version .version-package-table td:nth-child(6) {
  text-align: center !important;
}
body.page-system-version .version-package-table th:nth-child(3),
body.page-system-version .version-package-table td:nth-child(3),
body.page-system-version .version-package-table th:nth-child(4),
body.page-system-version .version-package-table td:nth-child(4) {
  text-align: left !important;
}
body.page-system-version .version-file-cell {
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
  word-break: break-all !important;
  white-space: normal !important;
}
body.page-system-version .version-log-table col:nth-child(1) { width: 12% !important; }
body.page-system-version .version-log-table col:nth-child(2) { width: 8% !important; }
body.page-system-version .version-log-table col:nth-child(3) { width: 8% !important; }
body.page-system-version .version-log-table col:nth-child(4) { width: auto !important; }
body.page-system-version .version-log-table col:nth-child(5) { width: 10% !important; }
body.page-system-version .version-log-table th:nth-child(1),
body.page-system-version .version-log-table td:nth-child(1),
body.page-system-version .version-log-table th:nth-child(2),
body.page-system-version .version-log-table td:nth-child(2),
body.page-system-version .version-log-table th:nth-child(3),
body.page-system-version .version-log-table td:nth-child(3),
body.page-system-version .version-log-table th:nth-child(5),
body.page-system-version .version-log-table td:nth-child(5) {
  text-align: center !important;
}
body.page-system-version .version-log-table th:nth-child(4),
body.page-system-version .version-log-table td:nth-child(4) {
  text-align: left !important;
}

/* === v14 TRUE: System / Version - visible package/log table fixes === */
body.page-system-version,
body.page-system-version .version-page-stack,
body.page-system-version .version-page-stack *{font-family:inherit!important;}
body.page-system-version .version-page-stack,
body.page-system-version .version-page-stack td,
body.page-system-version .version-page-stack input,
body.page-system-version .version-page-stack select{color:#61728b!important;font-size:13px!important;}
body.page-system-version .maintenance-table-title,
body.page-system-version .version-grid-table thead th,
body.page-system-version label{color:#0f2238!important;}
body.page-system-version .btn,body.page-system-version .btn *{color:#fff!important;}
body.page-system-version .version-upload-card .small,body.page-system-version .version-upload-card .inline .small{color:#61728b!important;font-size:12px!important;line-height:1.35!important;}
body.page-system-version .version-package-head,body.page-system-version .version-log-head{margin:0 12px!important;border:1px solid #d9e4ef!important;border-bottom:0!important;border-radius:var(--ui-radius,7px) var(--ui-radius,7px) 0 0!important;overflow:hidden!important;background:#fff!important;}
body.page-system-version .version-package-wrap,body.page-system-version .version-log-wrap{display:block!important;margin:0 12px!important;max-height:150px!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-gutter:stable!important;border:1px solid #d9e4ef!important;border-top:0!important;border-radius:0 0 var(--ui-radius,7px) var(--ui-radius,7px)!important;background:#fff!important;}
body.page-system-version .version-log-wrap{max-height:170px!important;}
body.page-system-version .version-package-head .version-package-table,body.page-system-version .version-package-wrap .version-package-table,body.page-system-version .version-log-head .version-log-table,body.page-system-version .version-log-wrap .version-log-table{width:100%!important;min-width:0!important;table-layout:fixed!important;border-collapse:collapse!important;margin:0!important;font-size:13px!important;}
body.page-system-version .version-package-head thead th,body.page-system-version .version-log-head thead th{position:static!important;background:#8db4db!important;color:#0f2238!important;font-size:13px!important;font-weight:700!important;line-height:1.25!important;padding:7px 6px!important;text-align:center!important;vertical-align:middle!important;white-space:normal!important;}
body.page-system-version .version-package-wrap tbody td,body.page-system-version .version-log-wrap tbody td{font-size:13px!important;line-height:1.28!important;padding:7px 6px!important;vertical-align:middle!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;}
body.page-system-version .version-package-head col:nth-child(1),body.page-system-version .version-package-wrap col:nth-child(1){width:8%!important;}
body.page-system-version .version-package-head col:nth-child(2),body.page-system-version .version-package-wrap col:nth-child(2){width:14%!important;}
body.page-system-version .version-package-head col:nth-child(3),body.page-system-version .version-package-wrap col:nth-child(3){width:16%!important;}
body.page-system-version .version-package-head col:nth-child(4),body.page-system-version .version-package-wrap col:nth-child(4){width:42%!important;}
body.page-system-version .version-package-head col:nth-child(5),body.page-system-version .version-package-wrap col:nth-child(5){width:8%!important;}
body.page-system-version .version-package-head col:nth-child(6),body.page-system-version .version-package-wrap col:nth-child(6){width:12%!important;}
body.page-system-version .version-package-wrap td:nth-child(1),body.page-system-version .version-package-wrap td:nth-child(2),body.page-system-version .version-package-wrap td:nth-child(5),body.page-system-version .version-package-wrap td:nth-child(6){text-align:center!important;}
body.page-system-version .version-package-wrap td:nth-child(3),body.page-system-version .version-package-wrap td:nth-child(4){text-align:left!important;}
body.page-system-version .version-file-cell{max-width:none!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;word-break:break-all!important;white-space:normal!important;}
body.page-system-version .version-log-head col:nth-child(1),body.page-system-version .version-log-wrap col:nth-child(1){width:13%!important;}
body.page-system-version .version-log-head col:nth-child(2),body.page-system-version .version-log-wrap col:nth-child(2){width:8%!important;}
body.page-system-version .version-log-head col:nth-child(3),body.page-system-version .version-log-wrap col:nth-child(3){width:8%!important;}
body.page-system-version .version-log-head col:nth-child(4),body.page-system-version .version-log-wrap col:nth-child(4){width:auto!important;}
body.page-system-version .version-log-head col:nth-child(5),body.page-system-version .version-log-wrap col:nth-child(5){width:10%!important;}
body.page-system-version .version-log-wrap td:nth-child(1),body.page-system-version .version-log-wrap td:nth-child(2),body.page-system-version .version-log-wrap td:nth-child(3),body.page-system-version .version-log-wrap td:nth-child(5){text-align:center!important;}
body.page-system-version .version-log-wrap td:nth-child(4){text-align:left!important;}
body.page-system-version .version-package-table .version-action-cell form{margin:0!important;display:inline-block!important;}
body.page-system-version .version-package-table .version-action-cell .btn.small{padding:5px 9px!important;white-space:nowrap!important;}

/* === v15 TRUE: System / Version layout refinement === */
body.page-system-version .version-page-stack,
body.page-system-version .version-page-stack *{
    font-family:inherit!important;
}
body.page-system-version .version-page-stack,
body.page-system-version .version-page-stack td,
body.page-system-version .version-page-stack input,
body.page-system-version .version-page-stack select,
body.page-system-version .version-page-stack .small{
    color:#61728b!important;
    font-size:12px!important;
}
body.page-system-version .version-page-stack .maintenance-table-title,
body.page-system-version .version-page-stack .version-upload-title,
body.page-system-version .version-grid-table thead th,
body.page-system-version .version-page-stack label{
    color:#0f2238!important;
}
body.page-system-version .version-page-stack .btn,
body.page-system-version .version-page-stack .btn *{color:#fff!important;}

/* Compact upload block in one visual row */
body.page-system-version .version-upload-compact{padding:10px 12px 8px!important;}
body.page-system-version .version-upload-row{
    display:grid!important;
    grid-template-columns:100px minmax(260px,1fr) 90px minmax(260px,1.35fr) minmax(260px,.9fr) 140px!important;
    gap:6px 10px!important;
    align-items:end!important;
}
body.page-system-version .version-upload-title{
    grid-column:1/2!important;
    grid-row:1!important;
    font-size:14px!important;
    font-weight:700!important;
    line-height:1.2!important;
    align-self:center!important;
    white-space:nowrap!important;
}
body.page-system-version .version-upload-help{
    grid-column:2/7!important;
    grid-row:1!important;
    align-self:center!important;
    line-height:1.25!important;
    color:#61728b!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}
body.page-system-version .version-upload-field{display:block!important;min-width:0!important;}
body.page-system-version .version-upload-field label{display:block!important;margin:0 0 2px!important;font-size:12px!important;line-height:1.1!important;}
body.page-system-version .version-upload-field input{height:31px!important;padding:5px 9px!important;min-width:0!important;width:100%!important;}
body.page-system-version .version-upload-submit{align-self:end!important;justify-self:stretch!important;}
body.page-system-version .version-upload-submit .btn{width:100%!important;height:34px!important;padding:6px 10px!important;white-space:nowrap!important;}

/* Pending packages and upgrade log: same 3-block structure as history */
body.page-system-version .version-package-head,
body.page-system-version .version-log-head{
    margin:0 12px!important;
    padding:0!important;
    border:1px solid #d9e4ef!important;
    border-bottom:0!important;
    border-radius:var(--ui-radius,7px) var(--ui-radius,7px) 0 0!important;
    overflow:hidden!important;
    background:#fff!important;
    box-sizing:border-box!important;
}
body.page-system-version .version-package-wrap,
body.page-system-version .version-log-wrap{
    display:block!important;
    margin:0 12px!important;
    padding:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    scrollbar-gutter:stable!important;
    border:1px solid #d9e4ef!important;
    border-top:0!important;
    border-radius:0!important;
    background:#fff!important;
    box-sizing:border-box!important;
}
body.page-system-version .version-package-wrap{max-height:112px!important;}
body.page-system-version .version-log-wrap{max-height:118px!important;}
body.page-system-version .version-package-head .version-package-table,
body.page-system-version .version-package-wrap .version-package-table,
body.page-system-version .version-log-head .version-log-table,
body.page-system-version .version-log-wrap .version-log-table{
    width:100%!important;
    min-width:0!important;
    table-layout:fixed!important;
    border-collapse:collapse!important;
    margin:0!important;
    font-size:12px!important;
}
body.page-system-version .version-package-head thead th,
body.page-system-version .version-log-head thead th{
    position:static!important;
    top:auto!important;
    z-index:auto!important;
    background:#8db4db!important;
    color:#0f2238!important;
    font-size:12px!important;
    font-weight:700!important;
    line-height:1.15!important;
    padding:5px 6px!important;
    text-align:center!important;
    vertical-align:middle!important;
    white-space:normal!important;
    height:24px!important;
}
body.page-system-version .version-package-wrap tbody td,
body.page-system-version .version-log-wrap tbody td{
    font-size:12px!important;
    line-height:1.15!important;
    padding:4px 6px!important;
    vertical-align:middle!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    word-break:break-word!important;
    height:24px!important;
}
body.page-system-version .version-package-wrap tbody tr,
body.page-system-version .version-log-wrap tbody tr{height:auto!important;}

/* Pending columns: note wider, file reduced to about two-thirds of previous */
body.page-system-version .version-package-head col:nth-child(1),
body.page-system-version .version-package-wrap col:nth-child(1){width:7%!important;}
body.page-system-version .version-package-head col:nth-child(2),
body.page-system-version .version-package-wrap col:nth-child(2){width:13%!important;}
body.page-system-version .version-package-head col:nth-child(3),
body.page-system-version .version-package-wrap col:nth-child(3){width:30%!important;}
body.page-system-version .version-package-head col:nth-child(4),
body.page-system-version .version-package-wrap col:nth-child(4){width:28%!important;}
body.page-system-version .version-package-head col:nth-child(5),
body.page-system-version .version-package-wrap col:nth-child(5){width:9%!important;}
body.page-system-version .version-package-head col:nth-child(6),
body.page-system-version .version-package-wrap col:nth-child(6){width:13%!important;}
body.page-system-version .version-package-wrap td:nth-child(1),
body.page-system-version .version-package-wrap td:nth-child(2),
body.page-system-version .version-package-wrap td:nth-child(5),
body.page-system-version .version-package-wrap td:nth-child(6){text-align:center!important;}
body.page-system-version .version-package-wrap td:nth-child(3),
body.page-system-version .version-package-wrap td:nth-child(4){text-align:left!important;}
body.page-system-version .version-file-cell{
    max-width:none!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:anywhere!important;
    word-break:break-all!important;
    white-space:normal!important;
}
body.page-system-version .version-package-table .version-action-cell form{margin:0!important;display:inline-block!important;}
body.page-system-version .version-package-table .version-action-cell .btn.small{padding:4px 8px!important;line-height:1.1!important;white-space:nowrap!important;}

/* Log columns: status compact, detail expanded */
body.page-system-version .version-log-head col:nth-child(1),
body.page-system-version .version-log-wrap col:nth-child(1){width:12%!important;}
body.page-system-version .version-log-head col:nth-child(2),
body.page-system-version .version-log-wrap col:nth-child(2){width:8%!important;}
body.page-system-version .version-log-head col:nth-child(3),
body.page-system-version .version-log-wrap col:nth-child(3){width:8%!important;}
body.page-system-version .version-log-head col:nth-child(4),
body.page-system-version .version-log-wrap col:nth-child(4){width:62%!important;}
body.page-system-version .version-log-head col:nth-child(5),
body.page-system-version .version-log-wrap col:nth-child(5){width:10%!important;}
body.page-system-version .version-log-wrap td:nth-child(1),
body.page-system-version .version-log-wrap td:nth-child(2),
body.page-system-version .version-log-wrap td:nth-child(3),
body.page-system-version .version-log-wrap td:nth-child(5){text-align:center!important;}
body.page-system-version .version-log-wrap td:nth-child(4){text-align:left!important;}

@media (max-width:1100px){
    body.page-system-version .version-upload-row{grid-template-columns:1fr!important;}
    body.page-system-version .version-upload-title,
    body.page-system-version .version-upload-help{grid-column:1!important;grid-row:auto!important;white-space:normal!important;}
}

/* === v16 FINAL: System / Version layout from history-table pattern === */
body.page-system-version .version-page-stack,
body.page-system-version .version-page-stack *{font-family:inherit!important;}
body.page-system-version .version-page-stack,
body.page-system-version .version-page-stack td,
body.page-system-version .version-page-stack input,
body.page-system-version .version-page-stack select,
body.page-system-version .version-page-stack .small{color:#61728b!important;font-size:12px!important;}
body.page-system-version .version-page-stack .maintenance-table-title,
body.page-system-version .version-page-stack .version-upload-title,
body.page-system-version .version-page-stack label,
body.page-system-version .version-grid-table thead th{color:#0f2238!important;}
body.page-system-version .version-page-stack .btn,
body.page-system-version .version-page-stack .btn *{color:#fff!important;}

body.page-system-version .version-upload-card{padding:9px 12px 8px!important;margin:0!important;box-sizing:border-box!important;}
body.page-system-version .version-upload-row{display:grid!important;grid-template-columns:105px minmax(260px,1.45fr) minmax(260px,1fr) 132px!important;grid-template-areas:"title help help help" "version notes file submit"!important;gap:4px 10px!important;align-items:end!important;}
body.page-system-version .version-upload-title{grid-area:title!important;font-size:14px!important;font-weight:700!important;line-height:1.15!important;align-self:center!important;white-space:nowrap!important;margin:0!important;}
body.page-system-version .version-upload-help{grid-area:help!important;align-self:center!important;margin:0!important;color:#61728b!important;font-size:12px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
body.page-system-version .version-upload-version{grid-area:version!important;}
body.page-system-version .version-upload-notes{grid-area:notes!important;}
body.page-system-version .version-upload-file{grid-area:file!important;}
body.page-system-version .version-upload-submit{grid-area:submit!important;align-self:end!important;justify-self:stretch!important;}
body.page-system-version .version-upload-field{display:block!important;min-width:0!important;margin:0!important;}
body.page-system-version .version-upload-field label{display:block!important;margin:0 0 2px!important;font-size:12px!important;line-height:1.1!important;font-weight:600!important;}
body.page-system-version .version-upload-field input{width:100%!important;height:31px!important;min-width:0!important;padding:5px 9px!important;box-sizing:border-box!important;}
body.page-system-version .version-upload-submit .btn{width:100%!important;height:34px!important;padding:6px 10px!important;white-space:nowrap!important;}

body.page-system-version .version-packages-shell,
body.page-system-version .version-table-shell:has(.version-log-head){padding:10px 14px!important;overflow:hidden!important;}
body.page-system-version .version-package-head,
body.page-system-version .version-log-head{display:block!important;margin:0!important;padding:0 17px 0 0!important;box-sizing:border-box!important;overflow:hidden!important;border:1px solid #d9e4ef!important;border-bottom:0!important;border-radius:var(--ui-radius,7px) var(--ui-radius,7px) 0 0!important;background:#8db4db!important;}
body.page-system-version .version-package-wrap,
body.page-system-version .version-log-wrap{display:block!important;margin:0!important;padding:0!important;box-sizing:border-box!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-gutter:stable!important;border:1px solid #d9e4ef!important;border-top:0!important;background:#fff!important;}
body.page-system-version .version-package-wrap{max-height:112px!important;border-bottom:1px solid #d9e4ef!important;border-radius:0 0 var(--ui-radius,7px) var(--ui-radius,7px)!important;}
body.page-system-version .version-log-wrap{max-height:118px!important;border-bottom:0!important;border-radius:0!important;}
body.page-system-version .version-package-head table,
body.page-system-version .version-package-wrap table,
body.page-system-version .version-log-head table,
body.page-system-version .version-log-wrap table{width:100%!important;min-width:0!important;table-layout:fixed!important;border-collapse:collapse!important;margin:0!important;font-size:12px!important;}
body.page-system-version .version-package-head th,
body.page-system-version .version-log-head th{position:static!important;top:auto!important;z-index:auto!important;background:#8db4db!important;color:#0f2238!important;font-size:12px!important;font-weight:700!important;line-height:1.15!important;padding:5px 6px!important;height:24px!important;text-align:center!important;vertical-align:middle!important;white-space:normal!important;}
body.page-system-version .version-package-wrap td,
body.page-system-version .version-log-wrap td{color:#61728b!important;font-size:12px!important;line-height:1.15!important;padding:4px 6px!important;height:24px!important;vertical-align:middle!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;}
body.page-system-version .version-package-head th:first-child,
body.page-system-version .version-log-head th:first-child,
body.page-system-version .version-package-wrap td:first-child,
body.page-system-version .version-log-wrap td:first-child{border-left:0!important;}
body.page-system-version .version-package-head th:last-child,
body.page-system-version .version-log-head th:last-child,
body.page-system-version .version-package-wrap td:last-child,
body.page-system-version .version-log-wrap td:last-child{border-right:0!important;}
body.page-system-version .version-package-table col:nth-child(1){width:7%!important;}
body.page-system-version .version-package-table col:nth-child(2){width:13%!important;}
body.page-system-version .version-package-table col:nth-child(3){width:34%!important;}
body.page-system-version .version-package-table col:nth-child(4){width:24%!important;}
body.page-system-version .version-package-table col:nth-child(5){width:9%!important;}
body.page-system-version .version-package-table col:nth-child(6){width:13%!important;}
body.page-system-version .version-package-wrap td:nth-child(1),
body.page-system-version .version-package-wrap td:nth-child(2),
body.page-system-version .version-package-wrap td:nth-child(5),
body.page-system-version .version-package-wrap td:nth-child(6){text-align:center!important;}
body.page-system-version .version-package-wrap td:nth-child(3),
body.page-system-version .version-package-wrap td:nth-child(4){text-align:left!important;}
body.page-system-version .version-file-cell{max-width:none!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;word-break:break-all!important;white-space:normal!important;}
body.page-system-version .version-package-table .version-action-cell form{display:inline-block!important;margin:0!important;}
body.page-system-version .version-package-table .version-action-cell .btn.small{padding:4px 8px!important;line-height:1.1!important;white-space:nowrap!important;}
body.page-system-version .version-log-table col:nth-child(1){width:12%!important;}
body.page-system-version .version-log-table col:nth-child(2){width:8%!important;}
body.page-system-version .version-log-table col:nth-child(3){width:8%!important;}
body.page-system-version .version-log-table col:nth-child(4){width:62%!important;}
body.page-system-version .version-log-table col:nth-child(5){width:10%!important;}
body.page-system-version .version-log-wrap td:nth-child(1),
body.page-system-version .version-log-wrap td:nth-child(2),
body.page-system-version .version-log-wrap td:nth-child(3),
body.page-system-version .version-log-wrap td:nth-child(5){text-align:center!important;}
body.page-system-version .version-log-wrap td:nth-child(4){text-align:left!important;}
body.page-system-version .version-table-shell .table-footer-bar{margin:0!important;}
@media (max-width:1100px){body.page-system-version .version-upload-row{grid-template-columns:1fr!important;grid-template-areas:"title" "help" "version" "notes" "file" "submit"!important;}body.page-system-version .version-upload-help{white-space:normal!important;}}

/* === v17: fix upload title overlap and upload label style === */
body.page-system-version .version-upload-row{
    display:grid!important;
    grid-template-columns:minmax(145px,auto) minmax(260px,1.45fr) minmax(260px,1fr) 132px!important;
    grid-template-areas:"title help help help" "version notes file submit"!important;
    column-gap:10px!important;
    row-gap:4px!important;
    align-items:end!important;
}
body.page-system-version .version-upload-title{
    grid-area:title!important;
    min-width:145px!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
}
body.page-system-version .version-upload-help{
    grid-area:help!important;
    min-width:0!important;
    padding-left:0!important;
}
body.page-system-version .version-upload-card .version-upload-field label{
    color:#61728b!important;
    font-size:12px!important;
    font-weight:400!important;
    line-height:1.1!important;
}
body.page-system-version .version-upload-card .version-upload-field input::placeholder{
    color:#61728b!important;
    opacity:1!important;
}
@media (max-width:1100px){
    body.page-system-version .version-upload-row{
        grid-template-columns:1fr!important;
        grid-template-areas:"title" "help" "version" "notes" "file" "submit"!important;
    }
    body.page-system-version .version-upload-title{min-width:0!important;}
}

/* ===== V18: Devices page layout inheritance ===== */
body.page-devices .topbar .top-meta{
  color:#61728b!important;
  font-size:12px!important;
  font-weight:400!important;
}
body.page-devices .right-menu.compact > a.topbar-action-link{
  background:#0b78d1!important;
  border-color:#0b78d1!important;
  color:#fff!important;
}
body.page-devices .right-menu.compact > a.topbar-action-link:hover{
  background:#0967b2!important;
  border-color:#0967b2!important;
  color:#fff!important;
}
body.page-devices .devices-filter-card{
  padding:10px 14px!important;
  margin-bottom:8px!important;
}
body.page-devices .device-filter-grid{
  display:grid!important;
  grid-template-columns:repeat(12,minmax(0,1fr))!important;
  gap:8px 12px!important;
  align-items:end!important;
}
body.page-devices .device-filter-grid .col-3{grid-column:span 3!important;min-width:0!important;}
body.page-devices .device-filter-grid .col-9{grid-column:span 9!important;min-width:0!important;}
body.page-devices .device-filter-grid label{
  display:block!important;
  margin:0 0 3px!important;
  color:#61728b!important;
  font-size:12px!important;
  font-weight:600!important;
  line-height:1.2!important;
}
body.page-devices .device-filter-grid input,
body.page-devices .device-filter-grid select{
  height:34px!important;
  min-height:34px!important;
  padding:6px 10px!important;
  font-size:13px!important;
  color:#1b2d42!important;
}
body.page-devices .device-filter-actions{
  grid-column:span 3!important;
  display:flex!important;
  justify-content:flex-end!important;
  align-items:end!important;
}
body.page-devices .device-filter-actions .btn-view{
  width:100%!important;
  max-width:160px!important;
  height:34px!important;
}
body.page-devices .devices-table-shell{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
  padding:10px 14px!important;
  margin-bottom:0!important;
  overflow:hidden!important;
  background:#fff!important;
}
body.page-devices .devices-table-title{
  position:static!important;
  top:auto!important;
  z-index:auto!important;
  margin:0!important;
  padding:0 0 8px!important;
  background:#fff!important;
  color:#0f2238!important;
  font-size:14px!important;
  font-weight:700!important;
  line-height:1.25!important;
}
body.page-devices .devices-table-head,
body.page-devices .devices-table-body{
  margin:0!important;
  box-sizing:border-box!important;
  background:#fff!important;
}
body.page-devices .devices-table-head{
  overflow:hidden!important;
  padding-right:17px!important;
  border:1px solid #d9e4ef!important;
  border-bottom:0!important;
  border-radius:var(--ui-radius,7px) var(--ui-radius,7px) 0 0!important;
  background:#8db4db!important;
}
body.page-devices .devices-table-body{
  height:calc(100vh - 330px)!important;
  min-height:180px!important;
  max-height:420px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scrollbar-gutter:stable!important;
  border:1px solid #d9e4ef!important;
  border-top:0!important;
  border-bottom:0!important;
  border-radius:0!important;
}
body.page-devices .devices-grid-table{
  width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
  border-collapse:collapse!important;
  margin:0!important;
  color:#1b2d42!important;
  font-size:12px!important;
}
body.page-devices .devices-grid-table th,
body.page-devices .devices-grid-table td{
  padding:6px 6px!important;
  font-size:12px!important;
  line-height:1.25!important;
  vertical-align:middle!important;
  word-break:break-word!important;
}
body.page-devices .devices-grid-table thead th{
  position:static!important;
  top:auto!important;
  background:#8db4db!important;
  color:#0f2238!important;
  text-align:center!important;
  font-weight:700!important;
  border-top:0!important;
  border-bottom:0!important;
}
body.page-devices .devices-grid-table th:first-child,
body.page-devices .devices-grid-table td:first-child{border-left:0!important;}
body.page-devices .devices-grid-table th:last-child,
body.page-devices .devices-grid-table td:last-child{border-right:0!important;}
body.page-devices .devices-grid-table col:nth-child(1){width:9%!important;}
body.page-devices .devices-grid-table col:nth-child(2){width:19%!important;}
body.page-devices .devices-grid-table col:nth-child(3){width:12%!important;}
body.page-devices .devices-grid-table col:nth-child(4){width:10%!important;}
body.page-devices .devices-grid-table col:nth-child(5){width:16%!important;}
body.page-devices .devices-grid-table col:nth-child(6){width:14%!important;}
body.page-devices .devices-grid-table col:nth-child(7){width:9%!important;}
body.page-devices .devices-grid-table col:nth-child(8){width:11%!important;}
body.page-devices .devices-table-shell .table-footer-bar{
  margin:0!important;
  padding:4px 10px!important;
  min-height:var(--ui-footer-h,30px)!important;
  border:1px solid #c2c8d0!important;
  border-top:0!important;
  border-radius:0 0 var(--ui-radius,7px) var(--ui-radius,7px)!important;
  background:#d3d3d3!important;
  color:#1b2d42!important;
  flex:0 0 auto!important;
}
body.page-devices .devices-table-shell .action-stack{
  justify-content:center!important;
  gap:5px!important;
}
body.page-devices .devices-table-shell .btn.small{
  height:26px!important;
  min-height:26px!important;
  padding:0 7px!important;
  font-size:11px!important;
}
@media (max-width:1100px){
  body.page-devices .device-filter-grid .col-3,
  body.page-devices .device-filter-grid .col-9,
  body.page-devices .device-filter-actions{grid-column:span 12!important;}
  body.page-devices .device-filter-actions{justify-content:flex-start!important;}
}

/* ===== V19: Devices list actions, Excel, label print, and table height ===== */
body.page-devices .right-menu.compact > a.topbar-action-link,
body.page-devices .right-menu.compact > button.topbar-action-link,
body.page-devices .right-menu.compact > form.topbar-import-form > .topbar-action-link{
  background:#0b78d1!important;
  border-color:#0b78d1!important;
  color:#fff!important;
}
body.page-devices .right-menu.compact > a.topbar-action-link:hover,
body.page-devices .right-menu.compact > button.topbar-action-link:hover,
body.page-devices .right-menu.compact > form.topbar-import-form > .topbar-action-link:hover{
  background:#0967b2!important;
  border-color:#0967b2!important;
  color:#fff!important;
}
body.page-devices .topbar-import-form.device-topbar-import-form{
  display:inline-flex!important;
  align-items:center!important;
  margin:0!important;
}
body.page-devices .device-filter-grid .col-9{
  grid-column:span 9!important;
}
body.page-devices .device-filter-actions .btn-view{
  width:100%!important;
  max-width:none!important;
}
body.page-devices .devices-table-body{
  height:495px!important;
  max-height:495px!important;
  min-height:300px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
body.page-devices .devices-grid-table th,
body.page-devices .devices-grid-table td{
  padding:5px 6px!important;
  line-height:1.18!important;
}
body.page-devices .devices-grid-table col.dev-col-hs{width:9%!important;}
body.page-devices .devices-grid-table col.dev-col-name{width:18%!important;}
body.page-devices .devices-grid-table col.dev-col-model{width:10%!important;}
body.page-devices .devices-grid-table col.dev-col-kind{width:9%!important;}
body.page-devices .devices-grid-table col.dev-col-type{width:15%!important;}
body.page-devices .devices-grid-table col.dev-col-line{width:13%!important;}
body.page-devices .devices-grid-table col.dev-col-status{width:8%!important;}
body.page-devices .devices-grid-table col.dev-col-actions{width:18%!important;}
body.page-devices .device-action-row{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  flex-wrap:nowrap!important;
}
body.page-devices .device-action-row .btn.small{
  height:24px!important;
  min-height:24px!important;
  padding:0 7px!important;
  font-size:11px!important;
  line-height:1!important;
}
body.page-devices .device-label-check-wrap{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:24px!important;
  height:24px!important;
  border:1px solid #b8c6d8!important;
  border-radius:6px!important;
  background:#fff!important;
  color:#0b78d1!important;
  cursor:pointer!important;
  font-weight:700!important;
}
body.page-devices .device-label-check-wrap input{
  position:absolute!important;
  opacity:0!important;
  pointer-events:none!important;
}
body.page-devices .device-label-check-wrap span{opacity:.35!important;line-height:1!important;}
body.page-devices .device-label-check-wrap:has(input:checked){
  background:#0b78d1!important;
  color:#fff!important;
  border-color:#0b78d1!important;
}
body.page-devices .device-label-check-wrap:has(input:checked) span{opacity:1!important;}
@media (max-width:1100px){
  body.page-devices .devices-table-body{height:60vh!important;max-height:60vh!important;}
  body.page-devices .device-action-row{flex-wrap:wrap!important;}
}

/* V1.2.1 v23 - smooth hidden scroll for tall device edit/create form */
body.page-devices .page-body{
  overflow-y:auto !important;
  overflow-x:hidden !important;
  scrollbar-width:thin;
  scrollbar-color:transparent transparent;
  overscroll-behavior:contain;
}
body.page-devices .page-body:hover,
body.page-devices .page-body:focus-within{
  scrollbar-color:rgba(75,93,115,.35) transparent;
}
body.page-devices .page-body::-webkit-scrollbar{
  width:6px;
  height:6px;
}
body.page-devices .page-body::-webkit-scrollbar-track{
  background:transparent;
}
body.page-devices .page-body::-webkit-scrollbar-thumb{
  background:transparent;
  border-radius:999px;
}
body.page-devices .page-body:hover::-webkit-scrollbar-thumb,
body.page-devices .page-body:focus-within::-webkit-scrollbar-thumb{
  background:rgba(75,93,115,.32);
}
body.page-devices .page-body::-webkit-scrollbar-thumb:hover{
  background:rgba(75,93,115,.48);
}


/* V1.2.1 v24 - fix device create refresh and keep device list footer fixed */
body.page-devices:has(#device-create-form) .page-body{
  overflow-y:auto !important;
  overflow-x:hidden !important;
  scrollbar-width:thin;
  scrollbar-color:transparent transparent;
  overscroll-behavior:contain;
}
body.page-devices:has(#device-create-form) .page-body:hover,
body.page-devices:has(#device-create-form) .page-body:focus-within{
  scrollbar-color:rgba(75,93,115,.35) transparent;
}
body.page-devices:has(#device-create-form) .page-body::-webkit-scrollbar{width:6px;height:6px;}
body.page-devices:has(#device-create-form) .page-body::-webkit-scrollbar-track{background:transparent;}
body.page-devices:has(#device-create-form) .page-body::-webkit-scrollbar-thumb{background:transparent;border-radius:999px;}
body.page-devices:has(#device-create-form) .page-body:hover::-webkit-scrollbar-thumb,
body.page-devices:has(#device-create-form) .page-body:focus-within::-webkit-scrollbar-thumb{background:rgba(75,93,115,.32);}
body.page-devices:has(#device-create-form) .page-body::-webkit-scrollbar-thumb:hover{background:rgba(75,93,115,.48);}
body.page-devices:not(:has(#device-create-form)) .page-body{
  overflow:hidden !important;
  display:flex !important;
  flex-direction:column !important;
  min-height:0 !important;
}
body.page-devices:not(:has(#device-create-form)) .devices-filter-card{
  flex:0 0 auto !important;
}
body.page-devices:not(:has(#device-create-form)) .devices-table-shell{
  flex:1 1 auto !important;
  height:calc(100vh - 240px) !important;
  min-height:360px !important;
  max-height:none !important;
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
}
body.page-devices:not(:has(#device-create-form)) .devices-table-title,
body.page-devices:not(:has(#device-create-form)) .devices-table-head,
body.page-devices:not(:has(#device-create-form)) .devices-table-shell .table-footer-bar{
  flex:0 0 auto !important;
}
body.page-devices:not(:has(#device-create-form)) .devices-table-body{
  flex:1 1 auto !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
}
body.page-devices:not(:has(#device-create-form)) .devices-table-shell .table-footer-bar{
  position:relative !important;
  z-index:3 !important;
  margin-top:0 !important;
}

/* V25: readable device table header; removed standalone devices title in markup */
body.page-devices .devices-grid-table thead th{font-family:inherit!important;font-weight:700!important;letter-spacing:normal!important;text-shadow:none!important;}
body.page-equipment-kinds .action-stack,body.page-device-groups .action-stack,body.page-device-types .action-stack{justify-content:center!important;gap:6px!important;}

/* V26: catalog forms stay on one aligned row */
.catalog-inline-form{align-items:end;gap:10px 12px}
.catalog-inline-form .catalog-check{display:flex;align-items:end;min-height:58px}
.catalog-inline-form .catalog-check .check-inline{height:40px;margin:0;display:inline-flex;align-items:center}
.catalog-inline-form .catalog-save{display:flex;align-items:end;min-height:58px}
.catalog-inline-form .catalog-save .btn{width:100%;height:40px;display:inline-flex;align-items:center;justify-content:center}
.catalog-type-form select,.catalog-type-form input{min-width:0}
@media (max-width:1100px){.catalog-inline-form .col-1,.catalog-inline-form .col-2,.catalog-inline-form .col-3,.catalog-inline-form .col-5{grid-column:span 12}}

/* V27: global responsive pass - form/table/content adapts to small screens */
*{box-sizing:border-box}
img,svg,video,canvas{max-width:100%;height:auto}
.content,.page-body,.card,.form-box,.table-wrap,.maintenance-table-wrap{min-width:0}
input,select,textarea,button{max-width:100%}

/* Catalog forms: keep desktop in one clean row, with name field wider and save button pushed right */
body.page-equipment-kinds .catalog-inline-form,
body.page-device-groups .catalog-inline-form{
  display:grid!important;
  grid-template-columns:minmax(210px,25%) minmax(360px,1fr) minmax(120px,auto) minmax(220px,260px)!important;
  align-items:end!important;
  gap:10px 12px!important;
}
body.page-device-types .catalog-inline-form{
  display:grid!important;
  grid-template-columns:minmax(150px,1fr) minmax(190px,1.25fr) minmax(140px,.9fr) minmax(240px,1.55fr) minmax(120px,auto) minmax(150px,190px)!important;
  align-items:end!important;
  gap:10px 12px!important;
}
body.page-equipment-kinds .catalog-inline-form > div,
body.page-device-groups .catalog-inline-form > div,
body.page-device-types .catalog-inline-form > div{
  grid-column:auto!important;
  min-width:0!important;
}
.catalog-inline-form .catalog-save{justify-content:flex-end!important}
.catalog-inline-form .catalog-save .btn{min-width:160px!important}
body.page-equipment-kinds .catalog-inline-form .catalog-save .btn,
body.page-device-groups .catalog-inline-form .catalog-save .btn{width:100%!important}

/* General responsive grid behavior across source */
.grid > [class^="col-"],.grid > [class*=" col-"]{min-width:0}
@media (max-width:1200px){
  .grid .col-2,.grid .col-3,.grid .col-4{grid-column:span 6}
  .grid .col-5,.grid .col-6,.grid .col-8,.grid .col-9{grid-column:span 12}
  .asset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .right-menu.compact{justify-content:flex-start}
  body.page-device-types .catalog-inline-form{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.page-device-types .catalog-inline-form .catalog-save{grid-column:2!important;justify-content:flex-end!important}
}
@media (max-width:900px){
  html,body{overflow:hidden!important}
  .layout{height:100vh!important;overflow:hidden!important}
  .content{margin-left:0!important;width:100%!important;max-width:100%!important;padding:0 12px 12px!important}
  .page-body{overflow:auto!important;padding:12px 0 18px!important}
  .topbar{margin-top:12px!important;padding:12px!important;gap:10px;align-items:flex-start!important;flex-direction:column!important}
  .topbar-left{width:100%;align-items:flex-start!important}
  .right-menu.compact{width:100%;display:flex;align-items:center;gap:8px;overflow-x:auto;white-space:nowrap;padding-bottom:2px;flex-wrap:nowrap!important}
  .right-menu.compact > *{flex:0 0 auto}
  .user-chip{min-width:auto!important}
  .sidebar{height:100vh!important;max-width:86vw;box-shadow:14px 0 35px rgba(12,25,45,.22)}
  body.sidebar-open:before{content:"";position:fixed;inset:0;background:rgba(16,30,50,.34);z-index:70}
  body.sidebar-open .sidebar{z-index:90}
  .card{padding:12px!important;margin-bottom:12px!important;border-radius:10px!important}
  .form-box{padding:12px!important}
  .toolbar{align-items:stretch!important}
  .toolbar > *{width:100%}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .grid .col-1,.grid .col-2,.grid .col-3,.grid .col-4,.grid .col-5,.grid .col-6,.grid .col-8,.grid .col-9{grid-column:span 1!important}
  .grid .col-12{grid-column:1 / -1!important}
  .actions,.action-stack,.filter-actions-row{flex-wrap:wrap!important;justify-content:flex-start!important}
  .table-wrap,.maintenance-table-wrap{overflow:auto!important;-webkit-overflow-scrolling:touch;max-width:100%}
  table{min-width:760px}
  .dash1{min-width:980px!important}
  .table-footer-bar{flex-wrap:wrap!important;align-items:flex-start!important;gap:6px!important}
  .table-footer-left,.table-footer-center,.table-footer-right{width:100%;justify-content:flex-start!important;flex-wrap:wrap!important}
  .maintenance-filter-form{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;align-items:end!important}
  .maintenance-filter-form > div{width:auto!important;min-width:0!important}
  .maintenance-filter-form input{width:100%!important}
  .dash1-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .dash1-filter-grid .dash1-filter-action{grid-column:1 / -1!important;justify-content:flex-start!important}
  .asset-grid{grid-template-columns:1fr!important}
  .device-create-grid,.device-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .device-create-grid .col-4,.device-create-grid .col-8{grid-column:span 1!important}
  .device-create-grid .col-12,.device-filter-grid .col-9{grid-column:1 / -1!important}
  body.page-devices:not(:has(#device-create-form)) .devices-table-shell{height:auto!important;min-height:0!important;flex:1 1 auto!important}
  body.page-devices .devices-table-body{height:auto!important;max-height:55vh!important;overflow:auto!important}
  body.page-equipment-kinds .catalog-inline-form,
  body.page-device-groups .catalog-inline-form,
  body.page-device-types .catalog-inline-form{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.page-equipment-kinds .catalog-inline-form .catalog-check,
  body.page-device-groups .catalog-inline-form .catalog-check,
  body.page-device-types .catalog-inline-form .catalog-check{grid-column:1!important;min-height:auto!important;align-items:center!important}
  body.page-equipment-kinds .catalog-inline-form .catalog-save,
  body.page-device-groups .catalog-inline-form .catalog-save,
  body.page-device-types .catalog-inline-form .catalog-save{grid-column:2!important;min-height:auto!important;align-items:center!important;justify-content:flex-end!important}
  .catalog-inline-form .catalog-save .btn{width:100%!important;min-width:0!important}
}
@media (max-width:600px){
  .content{padding:0 8px 10px!important}
  .topbar{border-radius:9px!important;padding:10px!important}
  h1{font-size:18px!important}.top-meta{font-size:12px!important}
  .grid,.device-create-grid,.device-filter-grid,.daily-input-grid,.dash1-filter-grid,
  body.page-equipment-kinds .catalog-inline-form,
  body.page-device-groups .catalog-inline-form,
  body.page-device-types .catalog-inline-form,
  .maintenance-filter-form{grid-template-columns:1fr!important}
  .grid .col-1,.grid .col-2,.grid .col-3,.grid .col-4,.grid .col-5,.grid .col-6,.grid .col-8,.grid .col-9,.grid .col-12,
  .device-create-grid .col-4,.device-create-grid .col-8,.device-create-grid .col-12,
  .daily-input-actions,.daily-input-note,
  body.page-equipment-kinds .catalog-inline-form > div,
  body.page-device-groups .catalog-inline-form > div,
  body.page-device-types .catalog-inline-form > div{grid-column:1 / -1!important}
  body.page-equipment-kinds .catalog-inline-form .catalog-save,
  body.page-device-groups .catalog-inline-form .catalog-save,
  body.page-device-types .catalog-inline-form .catalog-save{grid-column:1 / -1!important;justify-content:stretch!important}
  .catalog-inline-form .catalog-save .btn{width:100%!important}
  input,select,textarea,.btn,.topbar-action-link{min-height:38px!important}
  .right-menu.compact{gap:6px}
  table{min-width:680px}
  .devices-grid-table{min-width:980px!important}
  .version-grid-table,.language-table{min-width:900px!important}
  .maintenance-table-wrap{max-height:58vh!important}
}

/* V1.2.1 v28 - QR maintenance permission table */
.qr-permission-shell{display:flex;flex-direction:column;gap:14px}
.qr-permission-form{display:flex;flex-direction:column;gap:18px}
.qr-permission-section{border:1px solid #d8e4f2;border-radius:14px;background:#fff;overflow:hidden}
.qr-permission-head{padding:14px 16px;border-bottom:1px solid #e2ebf5;background:#f8fbff}
.qr-permission-head h3{margin:0;color:#14385d;font-size:17px}
.qr-permission-head p{margin:6px 0 0;color:#607389;font-size:13px}
.qr-permission-table-wrap{margin:0;overflow:auto}
.qr-permission-table{min-width:780px;width:100%}
.qr-permission-table th:nth-child(1){width:260px}
.qr-permission-table th:nth-child(2){width:140px;text-align:center}
.qr-permission-table th:nth-child(3){min-width:360px}
.qr-permission-table td{vertical-align:top}
.qr-permission-table td.center{text-align:center;vertical-align:middle}
.inline-check{display:inline-flex;gap:8px;align-items:center;white-space:nowrap;font-weight:700;color:#153b60}
.member-check-grid{display:flex;flex-direction:column;gap:7px;max-height:150px;overflow-y:auto;overflow-x:hidden;padding:8px 10px;border:1px solid #d9e6f5;border-radius:10px;background:#fbfdff}
.member-check-grid::-webkit-scrollbar{width:8px}
.member-check-grid::-webkit-scrollbar-thumb{background:#b8cbe0;border-radius:999px}
.member-check-grid::-webkit-scrollbar-track{background:#eef5fc;border-radius:999px}
.member-check{display:flex;align-items:center;gap:7px;font-size:13px;line-height:1.3;color:#1c3148;min-height:22px}
.member-check input{flex:0 0 auto}
.form-actions.right{display:flex;justify-content:flex-end;gap:10px;align-items:center}
@media (max-width:768px){.qr-permission-shell{padding:12px}.qr-permission-table{min-width:720px}.qr-permission-head{padding:12px}.member-check-grid{max-height:135px}.form-actions.right .btn{width:100%}}

/* V1.2.1 v28 - rebuild QR permission by role columns */
.qr-role-permission-table{min-width:1200px;width:100%;table-layout:fixed}
.qr-role-permission-table th:nth-child(1){width:260px}
.qr-role-permission-table th:nth-child(2){width:140px;text-align:center}
.qr-role-permission-table th:nth-child(n+3){width:260px;text-align:center}
.qr-role-permission-table td{vertical-align:top}
.qr-component-cell{font-size:13px;line-height:1.25}
.qr-active-cell{vertical-align:middle!important;text-align:center}
.qr-role-cell{padding:6px!important;min-width:250px}
.qr-role-topline{display:grid;grid-template-columns:minmax(132px,1fr) 28px 52px;gap:6px;align-items:center;width:100%}
.qr-role-select{height:38px;min-width:0;width:100%;font-size:13px}
.qr-role-enable{display:flex;justify-content:center;align-items:center;height:38px;border:1px solid #cfdceb;border-radius:4px;background:#fff}
.qr-role-enable input{margin:0;width:16px;height:16px}
.qr-role-save{height:38px!important;min-height:38px!important;padding:0 10px!important;border-radius:0!important;font-size:13px!important}
.qr-role-member-list{display:flex;flex-direction:column;gap:6px;max-height:92px;overflow-y:auto;overflow-x:hidden;margin-top:8px;padding:8px;border:1px solid #d9e6f5;border-radius:8px;background:#fbfdff;min-height:38px}
.qr-role-member-list:empty:before{content:attr(data-empty);color:#789;font-size:12px;font-style:italic}
.qr-role-member-list::-webkit-scrollbar{width:8px}
.qr-role-member-list::-webkit-scrollbar-thumb{background:#b8cbe0;border-radius:999px}
.qr-role-member-list::-webkit-scrollbar-track{background:#eef5fc;border-radius:999px}
.qr-role-member-list .member-check{font-size:12px;min-height:20px;white-space:nowrap}
@media (max-width:768px){
  .qr-role-permission-table{min-width:980px}
  .qr-role-permission-table th:nth-child(1){width:210px}
  .qr-role-permission-table th:nth-child(2){width:125px}
  .qr-role-permission-table th:nth-child(n+3){width:230px}
  .qr-role-cell{min-width:220px}
  .qr-role-topline{grid-template-columns:minmax(112px,1fr) 28px 48px}
  .qr-role-member-list{max-height:84px}
}

/* V28 QR permission compact one-line layout */
.qr-role-permission-table{min-width:1160px;width:100%;table-layout:fixed}
.qr-role-permission-table th:nth-child(1){width:255px}
.qr-role-permission-table th:nth-child(2){width:135px;text-align:center}
.qr-role-permission-table th:nth-child(n+3){width:255px;text-align:center}
.qr-role-cell{padding:6px!important;vertical-align:middle!important;min-width:250px}
.qr-role-topline{display:grid!important;grid-template-columns:minmax(106px,0.85fr) minmax(88px,1fr) 52px!important;gap:6px;align-items:center;width:100%}
.qr-role-select{height:34px!important;min-width:0;width:100%;font-size:12px!important;padding:4px 8px!important}
.qr-role-member-list{display:flex!important;flex-direction:row!important;align-items:center;gap:6px;max-height:34px!important;min-height:34px!important;overflow-x:auto!important;overflow-y:hidden!important;margin-top:0!important;padding:4px 6px!important;border:1px solid #d9e6f5;border-radius:8px;background:#fbfdff;white-space:nowrap}
.qr-role-member-list:empty:before{content:attr(data-empty);color:#789;font-size:12px;font-style:italic;white-space:nowrap}
.qr-role-member-list .member-check{display:inline-flex!important;align-items:center;gap:4px;flex:0 0 auto;font-size:12px;min-height:24px;line-height:1.1;white-space:nowrap;margin:0}
.qr-role-member-list .member-check input{width:16px;height:16px;margin:0;flex:0 0 auto}
.qr-role-save{height:34px!important;min-height:34px!important;padding:0 10px!important;border-radius:7px!important;font-size:12px!important;width:52px}
.qr-role-enable{display:none!important}
@media (max-width:768px){.qr-role-permission-table{min-width:1040px}.qr-role-permission-table th:nth-child(1){width:215px}.qr-role-permission-table th:nth-child(2){width:120px}.qr-role-permission-table th:nth-child(n+3){width:235px}.qr-role-topline{grid-template-columns:minmax(95px,0.85fr) minmax(78px,1fr) 48px!important}.qr-role-save{width:48px;padding:0 7px!important}}

/* V1.2.1 v29 - QR permission UI cleanup */
.qr-permission-shell > .section-title{display:none!important}
.qr-permission-table-wrap{max-height:calc(100vh - 260px)!important;overflow:auto!important;border-radius:10px}
.qr-permission-table thead th{position:sticky;top:0;z-index:5}
.qr-role-save,.qr-role-save:visited,.qr-role-save:hover,.form-actions.right .btn{color:#fff!important}
.qr-role-member-list{scrollbar-width:thin}
@media (max-width:768px){.qr-permission-table-wrap{max-height:65vh!important}}

/* V1.2.1 v29 repair - scroll outer QR permission block without breaking form layout */
.qr-permission-shell{
  max-height:calc(100vh - 118px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding-right:10px;
}
.qr-permission-form{
  display:flex!important;
  flex-direction:column!important;
  gap:18px!important;
  min-width:0!important;
}
.qr-permission-section{
  overflow:visible!important;
}
.qr-permission-table-wrap{
  max-height:none!important;
  overflow-y:visible!important;
  overflow-x:auto!important;
  border-radius:10px;
}
.qr-permission-table thead th{
  position:sticky;
  top:0;
  z-index:5;
}
.qr-role-topline{
  display:grid!important;
  grid-template-columns:minmax(106px,0.85fr) minmax(88px,1fr) 52px!important;
  gap:6px!important;
  align-items:center!important;
}
.qr-role-member-list{
  max-height:34px!important;
  min-height:34px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
}
.qr-role-save,.qr-role-save:visited,.qr-role-save:hover,.form-actions.right .btn{
  color:#fff!important;
}
@media (max-width:768px){
  .qr-permission-shell{max-height:calc(100vh - 86px)!important;padding-right:6px}
  .qr-permission-table-wrap{max-height:none!important;overflow-y:visible!important;overflow-x:auto!important}
}

/* V1.2.1 v31 - Mobile QR maintenance layout repair */
body.page-qr-maintenance,
body.page-qr-device{
  overflow:hidden!important;
  min-height:100dvh!important;
  background:linear-gradient(180deg,#eef5fb,#f8fbff)!important;
}
body.page-qr-maintenance .qr-shell,
body.page-qr-device .qr-shell{
  height:100dvh!important;
  min-height:100dvh!important;
  padding:10px!important;
  align-items:flex-start!important;
  justify-content:center!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
body.page-qr-maintenance .qr-app,
body.page-qr-device .qr-app{
  width:min(760px,100%)!important;
  height:100%!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
}
body.page-qr-maintenance .qr-card,
body.page-qr-device .qr-card{
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:calc(100dvh - 20px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior:contain!important;
  padding:16px!important;
  border-radius:18px!important;
  box-sizing:border-box!important;
}
body.page-qr-maintenance .qr-hero,
body.page-qr-device .qr-hero{
  margin-bottom:10px!important;
}
body.page-qr-maintenance .qr-device-card,
body.page-qr-device .qr-device-card{
  margin:10px 0!important;
}
body.page-qr-maintenance .qr-option-grid{
  margin-top:10px!important;
  gap:10px!important;
}
body.page-qr-maintenance .qr-option-card{
  padding:14px!important;
}
body.page-qr-maintenance .qr-list{
  margin-top:10px!important;
  padding-bottom:12px!important;
}
body.page-qr-maintenance .qr-list-item{
  align-items:flex-start!important;
}
body.page-qr-maintenance .qr-manual{
  justify-content:center!important;
  align-items:center!important;
}
body.page-qr-maintenance #manualQrBtn{
  min-width:150px!important;
}
@media (max-width:768px){
  body.page-qr-maintenance .qr-shell,
  body.page-qr-device .qr-shell{padding:6px!important}
  body.page-qr-maintenance .qr-card,
  body.page-qr-device .qr-card{max-height:calc(100dvh - 12px)!important;padding:12px!important;border-radius:14px!important}
  body.page-qr-maintenance .qr-hero,
  body.page-qr-device .qr-hero{gap:8px!important;margin-bottom:8px!important}
  body.page-qr-maintenance .qr-title,
  body.page-qr-device .qr-title{font-size:19px!important}
  body.page-qr-maintenance .qr-sub,
  body.page-qr-device .qr-sub{font-size:10.5px!important}
  body.page-qr-maintenance .qr-badge,
  body.page-qr-device .qr-badge{padding:5px 8px!important;font-size:10px!important}
  body.page-qr-maintenance .qr-actions{justify-content:center!important;width:100%!important}
  body.page-qr-maintenance .qr-manual{display:flex!important;flex-direction:column!important;gap:8px!important;margin-top:10px!important}
  body.page-qr-maintenance .qr-manual input{width:100%!important;min-width:0!important;box-sizing:border-box!important}
  body.page-qr-maintenance #manualQrBtn{width:auto!important;min-width:170px!important;align-self:center!important}
  body.page-qr-maintenance .qr-option-grid{grid-template-columns:1fr!important}
  body.page-qr-maintenance .qr-list-item{display:block!important;padding:10px!important}
  body.page-qr-maintenance .qr-actions-inline{justify-content:flex-start!important;margin-top:8px!important}
  body.page-qr-maintenance .qr-step#qrFormStep{margin-top:10px!important}
  body.page-qr-maintenance .qr-grid{gap:9px!important}
}

/* V1.2.1 v33 - Mobile QR brand header and layout refinement */
body.page-qr-maintenance,
body.page-qr-device{
  overflow-y:auto!important;
  overflow-x:hidden!important;
  min-height:100svh!important;
  height:auto!important;
}
body.page-qr-maintenance .qr-shell,
body.page-qr-device .qr-shell{
  min-height:100svh!important;
  height:auto!important;
  padding:12px!important;
  justify-content:flex-start!important;
  overflow:visible!important;
}
body.page-qr-maintenance .qr-app,
body.page-qr-device .qr-app{
  min-height:0!important;
  height:auto!important;
}
body.page-qr-maintenance .qr-card,
body.page-qr-device .qr-card{
  min-height:calc(100svh - 24px)!important;
  max-height:none!important;
  overflow:visible!important;
  padding:18px!important;
  display:flex!important;
  flex-direction:column!important;
}
.qr-brand-header{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  text-align:center!important;
  padding:4px 0 14px!important;
  margin:0 0 14px!important;
  border-bottom:1px solid #e2edf8!important;
}
.qr-logo-wrap{display:flex;justify-content:center;align-items:center;width:100%}
.qr-logo-img{display:block;max-width:min(210px,70vw);height:auto;object-fit:contain}
.qr-system-subtitle{font-size:14px;font-weight:700;color:#173b60;letter-spacing:.2px}
.qr-scan-panel{
  flex:1 1 auto!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:14px!important;
  min-height:calc(100svh - 185px)!important;
  padding:10px 0 16px!important;
}
.qr-scan-intro{
  text-align:center;
  background:linear-gradient(180deg,#f7fbff,#fff);
  border:1px solid #dbe8f5;
  border-radius:18px;
  padding:18px 14px;
  box-shadow:0 10px 24px rgba(31,74,120,.08);
}
.qr-scan-icon{
  width:58px;height:58px;border-radius:18px;margin:0 auto 10px;
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:800;letter-spacing:.8px;
  background:linear-gradient(135deg,#1f76bd,#32a4d9);
  box-shadow:0 8px 18px rgba(31,118,189,.22);
}
.qr-scan-intro h3{margin:0 0 6px;color:#14385d;font-size:19px}
.qr-scan-intro p{margin:0;color:#607389;font-size:13px;line-height:1.45}
.qr-scan-actions{justify-content:center!important;margin-top:0!important}
.qr-device-info-card{
  border:1px solid #dbe8f5!important;
  background:linear-gradient(180deg,#f9fcff,#fff)!important;
  box-shadow:0 10px 24px rgba(31,74,120,.08)!important;
}
.qr-device-headline{display:flex;flex-direction:column;gap:5px;margin-bottom:12px;text-align:left}
.qr-device-label{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.45px;color:#1f76bd}
.qr-device-summary{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
.qr-device-summary .item{background:#fff!important;border:1px solid #e2edf8!important;border-radius:12px!important;padding:10px 11px!important;min-height:48px!important}
.qr-device-summary .item b{display:block;color:#607389;font-size:11.5px;margin-bottom:4px;font-weight:700}
.qr-qty-line{margin-top:10px!important;text-align:center!important}
@media (max-width:768px){
  body.page-qr-maintenance .qr-shell,
  body.page-qr-device .qr-shell{padding:10px!important}
  body.page-qr-maintenance .qr-card,
  body.page-qr-device .qr-card{min-height:calc(100svh - 20px)!important;padding:14px!important;border-radius:16px!important}
  .qr-brand-header{padding:2px 0 12px!important;margin-bottom:12px!important}
  .qr-logo-img{max-width:min(188px,72vw)}
  .qr-system-subtitle{font-size:13px}
  .qr-scan-panel{min-height:calc(100svh - 165px)!important;gap:12px!important}
  .qr-device-summary{grid-template-columns:1fr!important;gap:8px!important}
  .qr-device-headline{text-align:center!important;align-items:center!important}
  .qr-device-name{text-align:center!important}
  .qr-form .qr-grid{grid-template-columns:1fr!important}
}

/* V34 QR mobile responsive + auth popup */
body.page-qr-maintenance .qr-card, body.page-qr-device .qr-card{max-width:760px;width:100%;box-sizing:border-box}
.qr-brand-header{gap:6px!important;margin-bottom:14px!important;text-align:center!important}
.qr-logo-img{max-width:min(230px,78vw)!important}
.qr-system-subtitle{font-size:12px!important;color:#8b99aa!important;font-weight:600!important;line-height:1.2!important}
.qr-auth-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(15,30,48,.45);z-index:9999;padding:18px}
.qr-auth-modal.show{display:flex}
.qr-auth-box{width:min(360px,100%);background:#fff;border-radius:18px;padding:18px;box-shadow:0 20px 50px rgba(0,0,0,.22);border:1px solid #dce7f3}
.qr-auth-box h3{margin:0 0 12px;text-align:center;color:#14385d;font-size:18px}
.qr-auth-box input{width:100%;height:42px;border-radius:12px;border:1px solid #cbd8e6;padding:8px 12px;text-align:center;font-weight:700;box-sizing:border-box}
.qr-auth-error{min-height:22px;margin-top:8px;color:#b42318;text-align:center;font-size:13px;font-weight:700}
.qr-auth-actions{display:flex;gap:10px;margin-top:10px}.qr-auth-actions .btn{flex:1;color:#fff}.qr-auth-actions .ghost{color:#173b60!important;background:#fff!important}
body.page-qr-maintenance .qr-form .qr-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body.page-qr-maintenance .qr-form .qr-grid .full{grid-column:1/-1!important}
@media (max-width:480px){
  body.page-qr-maintenance .qr-shell, body.page-qr-device .qr-shell{padding:8px!important;align-items:flex-start!important;overflow-y:auto!important;min-height:100svh!important;height:auto!important}
  body.page-qr-maintenance .qr-card, body.page-qr-device .qr-card{min-height:auto!important;padding:12px!important;border-radius:15px!important;overflow:visible!important}
  .qr-logo-img{max-width:min(220px,82vw)!important}.qr-system-subtitle{font-size:11px!important;color:#9aa7b7!important}
  body.page-qr-maintenance .qr-form .qr-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body.page-qr-maintenance .qr-form input, body.page-qr-maintenance .qr-form select, body.page-qr-maintenance .qr-form textarea{font-size:13px!important;min-width:0!important}
  .qr-option-grid{gap:10px!important}.qr-option-card{padding:13px!important}.qr-option-card h4{font-size:16px!important}.qr-option-card p{font-size:12px!important}
}

/* V35 - QR permission/mobile cleanup */
.qr-role-select option:first-child{color:#7b8794}
.qr-grid .qr-half{min-width:0}
.qr-catalog-info{margin-top:14px!important}
.qr-auth-link:not([href]){cursor:pointer}
@media (max-width:768px){
  .qr-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .qr-grid .full{grid-column:1/-1!important}
  .qr-option-grid{grid-template-columns:1fr!important}
  .qr-summary{grid-template-columns:1fr!important}
}
@media (max-width:420px){
  .qr-grid{grid-template-columns:1fr!important}
}

/* v37 mobile QR refinements */
.qr-auth-remember{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:10px;font-size:13px;color:#51657e;font-weight:600}
.qr-auth-remember input{width:auto!important;height:auto!important;accent-color:#1769aa}
body.page-qr-maintenance .qr-scroll-panel{max-height:calc(100svh - 190px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-right:4px}
body.page-qr-maintenance #qrFormStep.qr-scroll-panel{padding-bottom:12px}
body.page-qr-maintenance .qr-list.qr-scroll-panel{padding-bottom:8px}
@media (max-width:768px){
  body.page-qr-maintenance .qr-scroll-panel{max-height:calc(100svh - 175px)}
  body.page-qr-maintenance .qr-card{max-height:none!important}
}

/* v38 - QR mobile footer + scroll refinements */
body.page-qr-maintenance .qr-shell,
body.page-qr-device .qr-shell{padding-bottom:42px!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important}
body.page-qr-maintenance .qr-card,
body.page-qr-device .qr-card{overflow:visible!important}
body.page-qr-maintenance #qrFormStep.qr-scroll-panel,
body.page-qr-maintenance #qrEditList.qr-scroll-panel{max-height:none!important;overflow:visible!important;padding-bottom:64px!important}
.qr-mobile-footer{position:fixed;left:0;right:0;bottom:0;z-index:80;background:rgba(255,255,255,.94);border-top:1px solid #dbe6f2;color:#8b99aa;font-size:11px;text-align:center;padding:8px 12px;box-shadow:0 -6px 16px rgba(22,39,63,.08);transition:transform .22s ease,opacity .22s ease;backdrop-filter:blur(8px)}
.qr-mobile-footer.hide{transform:translateY(110%);opacity:0}
body.page-qr-maintenance .qr-option-grid .qr-option-card:last-child{order:99}
@media (max-width:480px){
  body.page-qr-maintenance .qr-shell,body.page-qr-device .qr-shell{padding-bottom:48px!important}
  body.page-qr-maintenance #qrFormStep.qr-scroll-panel,body.page-qr-maintenance #qrEditList.qr-scroll-panel{padding-bottom:72px!important}
}

/* v39 - QR footer, scroll and permission note fixes */
.qr-permission-main-note{margin:6px 0 14px;color:#5f7188;font-size:13px;line-height:1.4}
body.page-qr-maintenance,body.page-qr-device{overflow-y:auto!important;min-height:100svh!important}
body.page-qr-maintenance .qr-shell,body.page-qr-device .qr-shell{align-items:flex-start!important;min-height:100svh!important;height:auto!important;overflow-y:auto!important;padding-bottom:56px!important;-webkit-overflow-scrolling:touch!important}
body.page-qr-maintenance .qr-app,body.page-qr-device .qr-app{width:min(760px,100%)!important}
body.page-qr-maintenance .qr-card,body.page-qr-device .qr-card{max-height:none!important;overflow:visible!important}
body.page-qr-maintenance #qrFormStep.qr-scroll-panel,body.page-qr-maintenance #qrEditList.qr-scroll-panel{max-height:none!important;overflow:visible!important;padding-bottom:92px!important}
body.page-qr-maintenance #qrFormStep .qr-form{padding-bottom:18px!important}
.qr-mobile-footer{position:fixed;left:0;right:0;bottom:0;z-index:80;background:rgba(255,255,255,.96);border-top:1px solid #dbe6f2;color:#8b99aa;font-size:11px;line-height:1.35;text-align:center;padding:8px 12px;box-shadow:0 -6px 16px rgba(22,39,63,.08);transition:transform .22s ease,opacity .22s ease;backdrop-filter:blur(8px)}
.qr-mobile-footer.hide{transform:translateY(110%);opacity:0}
@media (max-width:480px){body.page-qr-maintenance .qr-shell,body.page-qr-device .qr-shell{padding-bottom:64px!important}body.page-qr-maintenance #qrFormStep.qr-scroll-panel,body.page-qr-maintenance #qrEditList.qr-scroll-panel{padding-bottom:104px!important}}

/* v39-scroll-mobile-final - lock mobile width and always allow vertical scrolling */
html{
  min-height:100%;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
body.page-qr-maintenance,
body.page-qr-device{
  width:100%!important;
  max-width:100%!important;
  min-height:100dvh!important;
  height:auto!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior-y:auto!important;
  touch-action:pan-y!important;
}
body.page-qr-maintenance .qr-shell,
body.page-qr-device .qr-shell{
  width:100%!important;
  max-width:100%!important;
  min-height:100dvh!important;
  height:auto!important;
  display:block!important;
  padding:10px 10px 76px!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
body.page-qr-maintenance .qr-app,
body.page-qr-device .qr-app{
  width:100%!important;
  max-width:760px!important;
  min-width:0!important;
  margin:0 auto!important;
  height:auto!important;
  min-height:0!important;
  display:block!important;
  box-sizing:border-box!important;
}
body.page-qr-maintenance .qr-card,
body.page-qr-device .qr-card{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:calc(100dvh - 96px)!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  display:block!important;
  box-sizing:border-box!important;
  padding-bottom:96px!important;
}
body.page-qr-maintenance .qr-step,
body.page-qr-device .qr-step,
body.page-qr-maintenance .qr-form,
body.page-qr-device .qr-form,
body.page-qr-maintenance .qr-scroll-panel,
body.page-qr-device .qr-scroll-panel,
body.page-qr-maintenance #qrFormStep,
body.page-qr-maintenance #qrEditList,
body.page-qr-maintenance .qr-list,
body.page-qr-maintenance .qr-option-grid,
body.page-qr-maintenance .qr-device-card,
body.page-qr-device .qr-device-card{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
body.page-qr-maintenance input,
body.page-qr-maintenance select,
body.page-qr-maintenance textarea,
body.page-qr-maintenance button,
body.page-qr-device input,
body.page-qr-device select,
body.page-qr-device textarea,
body.page-qr-device button{
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
body.page-qr-maintenance .qr-grid,
body.page-qr-device .qr-grid{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  box-sizing:border-box!important;
}
body.page-qr-maintenance .qr-grid .full,
body.page-qr-device .qr-grid .full{grid-column:1/-1!important}
body.page-qr-maintenance .qr-list-item,
body.page-qr-device .qr-list-item,
body.page-qr-maintenance .qr-summary .item,
body.page-qr-device .qr-summary .item,
body.page-qr-maintenance .qr-option-card,
body.page-qr-device .qr-option-card{
  min-width:0!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
}
body.page-qr-maintenance .qr-mobile-footer,
body.page-qr-device .qr-mobile-footer{
  position:fixed!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
}
@media (max-width:480px){
  body.page-qr-maintenance .qr-shell,
  body.page-qr-device .qr-shell{padding:8px 8px 84px!important}
  body.page-qr-maintenance .qr-card,
  body.page-qr-device .qr-card{padding:12px 12px 104px!important;border-radius:15px!important}
  body.page-qr-maintenance .qr-grid,
  body.page-qr-device .qr-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body.page-qr-maintenance .qr-grid .full,
  body.page-qr-device .qr-grid .full{grid-column:1/-1!important}
}
@media (max-width:360px){
  body.page-qr-maintenance .qr-card,
  body.page-qr-device .qr-card{padding-left:10px!important;padding-right:10px!important}
  body.page-qr-maintenance .qr-grid,
  body.page-qr-device .qr-grid{grid-template-columns:1fr!important}
}

/* v40 - QR mobile status uses device status label */

/* v41 - QR mobile: keep horizontal layout stable, scroll vertically */
body.page-qr-maintenance,body.page-qr-device{width:100%!important;max-width:100vw!important;overflow-x:hidden!important;overflow-y:auto!important;-webkit-text-size-adjust:100%!important;text-size-adjust:100%!important;touch-action:pan-y pinch-zoom!important}
body.page-qr-maintenance .qr-shell,body.page-qr-device .qr-shell,body.page-qr-maintenance .qr-app,body.page-qr-device .qr-app,body.page-qr-maintenance .qr-card,body.page-qr-device .qr-card{max-width:100vw!important;overflow-x:hidden!important}
body.page-qr-maintenance .qr-card,body.page-qr-device .qr-card{overflow-y:visible!important}
body.page-qr-maintenance .qr-form,body.page-qr-device .qr-form,body.page-qr-maintenance .qr-grid,body.page-qr-device .qr-grid{min-width:0!important;max-width:100%!important;overflow-x:hidden!important}
body.page-qr-maintenance .qr-form input,body.page-qr-maintenance .qr-form select,body.page-qr-maintenance .qr-form textarea,body.page-qr-device .qr-form input,body.page-qr-device .qr-form select,body.page-qr-device .qr-form textarea{width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:40px!important;white-space:normal!important;overflow-wrap:anywhere!important}
body.page-qr-maintenance .qr-form textarea,body.page-qr-device .qr-form textarea{min-height:86px!important;resize:vertical!important}
body.page-qr-maintenance #qrFormStep,body.page-qr-maintenance #qrEditList{overflow:visible!important;max-height:none!important}
body.page-qr-maintenance .qr-summary,body.page-qr-device .qr-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
@media (max-width:360px){body.page-qr-maintenance .qr-grid,body.page-qr-device .qr-grid,body.page-qr-maintenance .qr-summary,body.page-qr-device .qr-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* v42 - QR mobile vertical scroll only (no other feature changes) */
html.qr-mobile-scroll-page{
  height:auto!important;
  min-height:100%!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  -webkit-text-size-adjust:100%!important;
  text-size-adjust:100%!important;
}
html.qr-mobile-scroll-page body.page-qr-maintenance,
html.qr-mobile-scroll-page body.page-qr-device{
  position:relative!important;
  height:auto!important;
  min-height:100dvh!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior-y:auto!important;
  touch-action:pan-y pinch-zoom!important;
}
html.qr-mobile-scroll-page body.page-qr-maintenance .qr-shell,
html.qr-mobile-scroll-page body.page-qr-device .qr-shell{
  min-height:100dvh!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  align-items:flex-start!important;
}
html.qr-mobile-scroll-page body.page-qr-maintenance .qr-app,
html.qr-mobile-scroll-page body.page-qr-device .qr-app,
html.qr-mobile-scroll-page body.page-qr-maintenance .qr-card,
html.qr-mobile-scroll-page body.page-qr-device .qr-card{
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
}
@media (max-width:900px){
  html.qr-mobile-scroll-page,
  html.qr-mobile-scroll-page body.page-qr-maintenance,
  html.qr-mobile-scroll-page body.page-qr-device{
    width:100%!important;
    max-width:100vw!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
  }
  html.qr-mobile-scroll-page body.page-qr-maintenance .qr-shell,
  html.qr-mobile-scroll-page body.page-qr-device .qr-shell{
    width:100%!important;
    max-width:100vw!important;
    overflow:visible!important;
    padding-bottom:88px!important;
  }
  html.qr-mobile-scroll-page body.page-qr-maintenance .qr-card,
  html.qr-mobile-scroll-page body.page-qr-device .qr-card{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:visible!important;
    padding-bottom:112px!important;
  }
  html.qr-mobile-scroll-page body.page-qr-maintenance #qrFormStep,
  html.qr-mobile-scroll-page body.page-qr-maintenance #qrEditList,
  html.qr-mobile-scroll-page body.page-qr-maintenance .qr-scroll-panel{
    max-height:none!important;
    height:auto!important;
    overflow:visible!important;
    padding-bottom:96px!important;
  }
}

/* v43 - QR mobile app shell: fixed viewport + inner vertical scroll only */
html.qr-mobile-scroll-page{height:100%!important;min-height:100%!important;width:100%!important;max-width:100vw!important;overflow:hidden!important;overscroll-behavior:none!important;-webkit-text-size-adjust:100%!important;text-size-adjust:100%!important}
html.qr-mobile-scroll-page body.page-qr-maintenance,html.qr-mobile-scroll-page body.page-qr-device{position:fixed!important;inset:0!important;width:100%!important;max-width:100vw!important;height:100dvh!important;min-height:100dvh!important;margin:0!important;overflow:hidden!important;background:linear-gradient(180deg,#eef5fb,#f8fbff)!important;touch-action:pan-y!important}
html.qr-mobile-scroll-page body.page-qr-maintenance .qr-shell,html.qr-mobile-scroll-page body.page-qr-device .qr-shell{position:fixed!important;inset:0!important;width:100%!important;max-width:100vw!important;height:100dvh!important;min-height:0!important;max-height:100dvh!important;display:flex!important;align-items:stretch!important;justify-content:center!important;padding:10px 10px calc(54px + env(safe-area-inset-bottom,0px))!important;overflow:hidden!important;box-sizing:border-box!important}
html.qr-mobile-scroll-page body.page-qr-maintenance .qr-app,html.qr-mobile-scroll-page body.page-qr-device .qr-app{width:min(760px,100%)!important;max-width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;box-sizing:border-box!important}
html.qr-mobile-scroll-page body.page-qr-maintenance .qr-card,html.qr-mobile-scroll-page body.page-qr-device .qr-card{flex:1 1 auto!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior-y:contain!important;touch-action:pan-y!important;box-sizing:border-box!important;padding:14px 14px calc(94px + env(safe-area-inset-bottom,0px))!important;border-radius:18px!important}
html.qr-mobile-scroll-page body.page-qr-maintenance .qr-card > *,html.qr-mobile-scroll-page body.page-qr-device .qr-card > *,html.qr-mobile-scroll-page body.page-qr-maintenance .qr-step,html.qr-mobile-scroll-page body.page-qr-device .qr-step,html.qr-mobile-scroll-page body.page-qr-maintenance .qr-form,html.qr-mobile-scroll-page body.page-qr-device .qr-form,html.qr-mobile-scroll-page body.page-qr-maintenance .qr-scroll-panel,html.qr-mobile-scroll-page body.page-qr-device .qr-scroll-panel,html.qr-mobile-scroll-page body.page-qr-maintenance #qrFormStep,html.qr-mobile-scroll-page body.page-qr-maintenance #qrEditList{min-width:0!important;max-width:100%!important;max-height:none!important;overflow:visible!important;box-sizing:border-box!important}
html.qr-mobile-scroll-page body.page-qr-maintenance .qr-grid,html.qr-mobile-scroll-page body.page-qr-device .qr-grid,html.qr-mobile-scroll-page body.page-qr-maintenance .qr-summary,html.qr-mobile-scroll-page body.page-qr-device .qr-summary{min-width:0!important;max-width:100%!important;overflow:visible!important;box-sizing:border-box!important}
html.qr-mobile-scroll-page body.page-qr-maintenance input,html.qr-mobile-scroll-page body.page-qr-maintenance select,html.qr-mobile-scroll-page body.page-qr-maintenance textarea,html.qr-mobile-scroll-page body.page-qr-maintenance button,html.qr-mobile-scroll-page body.page-qr-device input,html.qr-mobile-scroll-page body.page-qr-device select,html.qr-mobile-scroll-page body.page-qr-device textarea,html.qr-mobile-scroll-page body.page-qr-device button{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
html.qr-mobile-scroll-page body.page-qr-maintenance .qr-mobile-footer,html.qr-mobile-scroll-page body.page-qr-device .qr-mobile-footer{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:120!important;padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))!important}
html.qr-mobile-scroll-page body.page-qr-maintenance .loading-overlay,html.qr-mobile-scroll-page body.page-qr-device .loading-overlay{position:fixed!important;inset:0!important}
@media (max-width:480px){html.qr-mobile-scroll-page body.page-qr-maintenance .qr-shell,html.qr-mobile-scroll-page body.page-qr-device .qr-shell{padding:8px 8px calc(56px + env(safe-area-inset-bottom,0px))!important}html.qr-mobile-scroll-page body.page-qr-maintenance .qr-card,html.qr-mobile-scroll-page body.page-qr-device .qr-card{padding:12px 12px calc(102px + env(safe-area-inset-bottom,0px))!important;border-radius:15px!important}}

/* V45 - maintenance member dropdowns and maintenance list UI */
body.page-maintenance .maintenance-filter-form .tab{
  background:#f7fbff!important;
  color:#15456d!important;
  border:1px solid #d2e3f8!important;
  box-shadow:none!important;
  font-weight:700!important;
}
body.page-maintenance .maintenance-filter-form .tab.active{
  background:#0b78d1!important;
  color:#fff!important;
  border-color:#0b78d1!important;
  box-shadow:0 3px 8px rgba(18,79,190,.16)!important;
}
body.page-maintenance .maintenance-filter-form .tab:hover{
  background:#eaf4ff!important;
  border-color:#bcd8f5!important;
  color:#15456d!important;
}
body.page-maintenance .maintenance-filter-form .tab.active:hover{
  background:#0967b2!important;
  border-color:#0967b2!important;
  color:#fff!important;
}
body.page-maintenance .maintenance-table-wrap{
  overflow:auto!important;
  -webkit-overflow-scrolling:touch!important;
  max-height:calc(100vh - 260px)!important;
}
body.page-journal-input select[name="issued_by"],
body.page-journal-input select[name="confirmer"]{
  width:100%;
}
@media (max-width:900px){
  body.page-maintenance .maintenance-table-wrap{max-height:60vh!important;}
}

/* V46: canh giữa tiêu đề và cột No. */
body.page-dash1 .dash1 th.sticky,
body.page-dash1 .dash1 td.sticky,
body.page-dash2 .print-form th:first-child,
body.page-dash2 .print-form td:first-child {
  text-align: center !important;
}

/* ===== V47: device label print options ===== */
body.page-devices .device-filter-actions{display:flex;align-items:end;gap:8px;flex-wrap:wrap;}
body.page-devices .device-label-options{display:flex;align-items:center;gap:16px;padding:8px 10px;border:1px dashed #c9d4e2;border-radius:10px;background:#f8fbff;}
body.page-devices .device-label-options input{width:auto;height:auto;min-height:0;}

/* ===== V48: device list button row and thin printed label strokes ===== */
body.page-devices .device-filter-actions{
  display:flex!important;
  align-items:end!important;
  justify-content:flex-end!important;
  gap:6px!important;
  flex-wrap:nowrap!important;
}
body.page-devices .device-filter-actions .device-view-compact,
body.page-devices .device-filter-actions .device-option-compact{
  width:auto!important;
  max-width:none!important;
  min-width:72px!important;
  height:30px!important;
  min-height:30px!important;
  padding:0 10px!important;
  font-size:12px!important;
  line-height:1!important;
  border-radius:8px!important;
  white-space:nowrap!important;
  box-shadow:none!important;
}
body.page-devices .device-filter-actions .device-view-compact{
  background:linear-gradient(180deg,#1f6feb,#124fbe)!important;
  border-color:#0f479f!important;
  color:#fff!important;
}
body.page-devices .device-filter-actions .device-option-compact{
  background:#f7fbff!important;
  border-color:#d2e3f8!important;
  color:#15456d!important;
}
@media (max-width:1100px){
  body.page-devices .device-filter-actions{justify-content:flex-start!important;}
}

/* ===== V49: finalize device label/list polish ===== */
body.page-devices .device-filter-actions{
  display:flex!important;
  flex-direction:row!important;
  align-items:flex-end!important;
  justify-content:flex-start!important;
  gap:6px!important;
  flex-wrap:nowrap!important;
}
body.page-devices .device-filter-actions .device-view-compact,
body.page-devices .device-filter-actions .device-option-compact{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  max-width:none!important;
  min-width:74px!important;
  height:30px!important;
  min-height:30px!important;
  padding:0 10px!important;
  font-size:12px!important;
  line-height:1!important;
  border-radius:8px!important;
  box-shadow:none!important;
  white-space:nowrap!important;
}
body.page-devices .device-filter-actions .device-option-compact{margin:0!important;}
@media (max-width:1100px){
  body.page-devices .device-filter-actions{grid-column:span 12!important;justify-content:flex-start!important;}
}

/* ===== V50: compact device filter row and topbar label printing ===== */
body.page-devices .device-filter-grid{
  display:grid!important;
  grid-template-columns:1.05fr 1.25fr 1fr 1fr 1.45fr auto!important;
  gap:8px!important;
  align-items:end!important;
}
body.page-devices .device-filter-grid .device-filter-field,
body.page-devices .device-filter-grid .device-filter-actions{min-width:0!important;}
body.page-devices .device-filter-grid .device-filter-actions{display:flex!important;align-items:end!important;justify-content:flex-start!important;gap:8px!important;}
body.page-devices .device-filter-grid .device-filter-actions .device-view-compact{height:38px!important;min-width:72px!important;padding-left:16px!important;padding-right:16px!important;}
body.page-devices .device-label-options{
  grid-column:1 / -1!important;
  display:flex;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:10px 12px!important;
  border:1px dashed #c9d4e2!important;
  border-radius:10px!important;
  background:#f8fbff!important;
}
body.page-devices .device-label-choice{display:flex;align-items:center;gap:16px;flex-wrap:wrap;}
body.page-devices .device-label-options input{width:auto!important;height:auto!important;min-height:0!important;}
body.page-devices .device-label-options #printSelectedDeviceLabels{margin-left:auto!important;white-space:nowrap!important;}
body.page-devices .right-menu .topbar-action-link[type="button"]{font:inherit;cursor:pointer;}
@media (max-width:1180px){
  body.page-devices .device-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body.page-devices .device-filter-grid .device-filter-actions,
  body.page-devices .device-label-options{grid-column:1 / -1!important;}
}
@media (max-width:640px){
  body.page-devices .device-filter-grid{grid-template-columns:1fr!important;}
  body.page-devices .device-label-options{align-items:stretch!important;flex-direction:column!important;}
  body.page-devices .device-label-options #printSelectedDeviceLabels{width:100%!important;margin-left:0!important;}
}

/* V1.2.1 v50b - device list top menu order and right aligned label print options */
body.page-devices .device-filter-grid{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  align-items:end!important;
}
body.page-devices .device-filter-field,
body.page-devices .device-filter-keyword{
  grid-column:auto!important;
  min-width:0!important;
}
body.page-devices .device-filter-actions{display:none!important;}
body.page-devices .device-label-options{
  grid-column:1 / -1!important;
  display:flex;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:12px!important;
  padding-top:4px!important;
  width:100%!important;
}
body.page-devices .device-label-choice{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:14px!important;
  margin-left:auto!important;
}
body.page-devices .device-label-options .check-inline{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  white-space:nowrap!important;
  margin:0!important;
  color:#1b2d42!important;
  font-weight:700!important;
}
body.page-devices .device-label-options .btn-view{
  height:34px!important;
  min-height:34px!important;
  width:auto!important;
  min-width:120px!important;
}
body.page-devices .right-menu.compact{gap:8px!important;}
body.page-devices .right-menu.compact > .topbar-action-link,
body.page-devices .right-menu.compact > form.topbar-import-form > .topbar-action-link{white-space:nowrap!important;}
@media (max-width:1100px){
  body.page-devices .device-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body.page-devices .device-label-options{grid-column:1 / -1!important;justify-content:flex-end!important;flex-wrap:wrap!important;}
}
@media (max-width:700px){
  body.page-devices .device-filter-grid{grid-template-columns:1fr!important;}
  body.page-devices .device-label-choice{width:100%!important;justify-content:flex-end!important;}
}


/* ===== V51: device label print compact borders and owner selectors ===== */
body.page-devices .device-label-owner-select{
  width:auto!important;
  min-width:94px!important;
  height:34px!important;
  min-height:34px!important;
  padding:5px 28px 5px 10px!important;
  border-radius:8px!important;
  font-weight:800!important;
  text-transform:uppercase!important;
}
body.page-devices .device-label-choice{gap:10px!important;}
body.page-devices .device-label-options #printSelectedDeviceLabels{margin-left:0!important;}
@media (max-width:700px){
  body.page-devices .device-label-owner-select{min-width:0!important;flex:1 1 110px!important;}
}

/* V1.2.1 v53 - device label print alignment: dashed cut border preserved, QR enlarged, owner center line contained */
body.page-devices .device-label-options{border:1px dashed #c9d4e2!important;}

/* v58 maintenance Excel export popup */
.maintenance-export-panel{position:fixed;inset:0;background:rgba(15,23,42,.28);z-index:80;display:flex;align-items:center;justify-content:center;padding:18px}
.maintenance-export-panel[hidden]{display:none!important}
.maintenance-export-dialog{width:min(460px,96vw);background:#fff;border:1px solid #d6e4f6;border-radius:16px;box-shadow:0 18px 42px rgba(15,23,42,.22);padding:18px}
.maintenance-export-title{font-weight:800;font-size:18px;color:#15456d;margin-bottom:14px}
.maintenance-export-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.maintenance-export-form label{display:flex;flex-direction:column;gap:6px;font-weight:700;color:#274c6b}
.maintenance-export-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px;margin-top:4px}
.maintenance-export-form .help-text{grid-column:1/-1}
body.page-maintenance .right-menu.compact > form.topbar-import-form > .topbar-action-link,
body.page-maintenance .right-menu.compact > button.topbar-action-link{white-space:nowrap!important}
/* V59 - maintenance import button and compact export workbook */
body.page-maintenance .maintenance-filter-card{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}
body.page-maintenance .maintenance-filter-card .maintenance-filter-form{flex:1 1 auto}
body.page-maintenance .maintenance-inline-import-form{display:inline-flex;align-items:flex-end;margin:0}
body.page-maintenance .maintenance-inline-import-btn{height:32px;min-height:32px;padding:0 12px;border-radius:7px;font-size:11px;line-height:1;display:inline-flex;align-items:center;justify-content:center;background:#f6f9fd;color:#183b60;border:1px solid #c8d7e6;font-weight:700;cursor:pointer}
body.page-maintenance .maintenance-inline-import-btn:hover{background:#eef5ff}


/* V60 - maintenance Excel import/export visibility */
body.page-maintenance .right-menu.maintenance-actions{gap:8px;flex-wrap:wrap}
body.page-maintenance .maintenance-topbar-import-form{display:inline-flex!important;align-items:center;margin:0!important}
body.page-maintenance .maintenance-inline-import-form{display:inline-flex!important;align-items:flex-end;margin:0 0 0 auto!important}
body.page-maintenance .maintenance-inline-import-btn{background:#eaf4ff!important;border-color:#9bc4ef!important;color:#123e66!important}


/* V61 - maintenance top menu import button + clean export month/year popup */
body.page-maintenance .right-menu.maintenance-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  flex-wrap:wrap!important;
}
body.page-maintenance .right-menu.maintenance-actions .topbar-action-link,
body.page-maintenance .right-menu.maintenance-actions .topbar-action-primary,
body.page-maintenance .right-menu.maintenance-actions .maintenance-topbar-import-form > button{
  height:34px!important;
  min-height:34px!important;
  min-width:104px!important;
  padding:0 14px!important;
  border-radius:10px!important;
  line-height:1!important;
  font-size:13px!important;
  font-weight:800!important;
  letter-spacing:0!important;
  text-shadow:none!important;
  white-space:nowrap!important;
  box-sizing:border-box!important;
}
body.page-maintenance .maintenance-topbar-import-form{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0!important;
  padding:0!important;
  flex:0 0 auto!important;
}
body.page-maintenance .maintenance-export-panel{
  position:fixed!important;
  inset:0!important;
  z-index:1000!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:18px!important;
  background:rgba(15,23,42,.30)!important;
}
body.page-maintenance .maintenance-export-panel[hidden]{display:none!important;}
body.page-maintenance .maintenance-export-dialog{
  width:min(460px,96vw)!important;
  background:#fff!important;
  border:1px solid #cfe0f3!important;
  border-radius:18px!important;
  box-shadow:0 18px 42px rgba(15,23,42,.24)!important;
  padding:18px 18px 16px!important;
}
body.page-maintenance .maintenance-export-title{
  margin:0 0 16px!important;
  text-align:center!important;
  font-size:18px!important;
  line-height:1.25!important;
  font-weight:900!important;
  color:#15456d!important;
}
body.page-maintenance .maintenance-export-form{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:12px 14px!important;
  align-items:end!important;
}
body.page-maintenance .maintenance-export-form label{
  display:flex!important;
  flex-direction:column!important;
  gap:6px!important;
  margin:0!important;
  color:#274c6b!important;
  font-size:12px!important;
  font-weight:800!important;
}
body.page-maintenance .maintenance-export-form input{
  width:100%!important;
  height:34px!important;
  min-height:34px!important;
  padding:6px 10px!important;
  border:1px solid #cbdced!important;
  border-radius:8px!important;
  font-size:14px!important;
  color:#183b60!important;
  background:#fff!important;
  box-sizing:border-box!important;
}
body.page-maintenance .maintenance-export-actions{
  grid-column:1 / -1!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:12px!important;
  margin-top:8px!important;
}
body.page-maintenance .maintenance-export-actions .btn{
  width:100%!important;
  height:38px!important;
  min-height:38px!important;
  border-radius:10px!important;
  font-size:14px!important;
  font-weight:900!important;
  line-height:1!important;
  letter-spacing:0!important;
  text-shadow:none!important;
  box-shadow:0 4px 12px rgba(11,120,209,.16)!important;
  transform:none!important;
}
body.page-maintenance .maintenance-export-actions .btn.ghost{
  background:#f7fbff!important;
  border:1px solid #cbdced!important;
  color:#183b60!important;
  box-shadow:none!important;
}
body.page-maintenance .maintenance-export-actions .maintenance-export-submit{
  background:linear-gradient(180deg,#1791ef,#0b78d1)!important;
  border:1px solid #0a63ab!important;
  color:#fff!important;
}
body.page-maintenance .maintenance-export-form .help-text{
  grid-column:1 / -1!important;
  margin-top:2px!important;
  color:#3d4d5f!important;
  font-size:13px!important;
  line-height:1.35!important;
}
@media (max-width:640px){
  body.page-maintenance .maintenance-export-form{grid-template-columns:1fr!important;}
  body.page-maintenance .maintenance-export-actions{grid-template-columns:1fr!important;}
}

/* V61 - import only on top menu for maintenance */
body.page-maintenance .maintenance-inline-import-form{display:none!important;}

/* V62 - maintenance Excel import: only one file dialog and active top-menu import */
body.page-maintenance .maintenance-topbar-import-form{display:inline-flex !important;align-items:center !important;margin:0 !important;}
body.page-maintenance .maintenance-inline-import-form{display:none !important;}
body.page-maintenance .maintenance-topbar-import-form .topbar-action-link{display:inline-flex !important;align-items:center;justify-content:center;}
/* v67: DASH 1 filter alignment and top menu search */
body.page-dash1 .dash1-filter-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px 12px!important;
  align-items:end!important;
}
body.page-dash1 .dash1-filter-grid > div{min-width:0!important;}
body.page-dash1 .dash1-filter-grid input,
body.page-dash1 .dash1-filter-grid select{width:100%!important;}
@media (max-width:900px){
  body.page-dash1 .dash1-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media (max-width:560px){
  body.page-dash1 .dash1-filter-grid{grid-template-columns:1fr!important;}
}
/* v68: System common layout cleanup */
body.page-system-common .common-category-form{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px 12px!important;}
body.page-system-common .common-category-form .col-3{grid-column:span 1!important;min-width:0!important;}
body.page-system-common .common-category-form input,
body.page-system-common .common-category-form select{width:100%!important;}
body.page-system-common .common-save-row{grid-column:1 / -1!important;display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;margin-top:2px!important;}
body.page-system-common .common-save-row .check-inline{margin-right:6px!important;}
body.page-system-common .table-wrap .system-common-tabs{margin-bottom:12px!important;}
@media (max-width:900px){body.page-system-common .common-category-form{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media (max-width:560px){body.page-system-common .common-category-form{grid-template-columns:1fr!important;}body.page-system-common .common-category-form .col-3{grid-column:1 / -1!important;}}

/* v69 - System common master data tabs/table */
body.page-system-common .system-common-table-card{display:flex;flex-direction:column;max-height:calc(100vh - 285px);min-height:320px;overflow:hidden!important;}
body.page-system-common .system-common-table-card .system-common-tabs{flex:0 0 auto;margin-bottom:10px!important;}
body.page-system-common .system-common-table-scroll{flex:1 1 auto;min-height:0;overflow:auto;border:1px solid #d9e4ef;border-radius:12px;background:#fff;}
body.page-system-common .system-common-table-scroll table{margin:0;min-width:780px;}
body.page-system-common .system-common-table-scroll thead th{position:sticky;top:0;z-index:3;background:#f6f9fd;}
body.page-system-common .system-common-table-scroll tfoot td{position:sticky;bottom:0;z-index:3;background:#f6f9fd;font-weight:700;color:#334257;border-top:1px solid #d9e4ef;}
body.page-system-common .empty-row{text-align:center;color:#7c8ba0;padding:18px!important;}
@media (max-width:900px){body.page-system-common .system-common-table-card{max-height:calc(100vh - 320px);}}

/* v70 - System / Process permissions */
body.page-system-process-permissions .process-permission-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:14px;align-items:stretch;}
body.page-system-process-permissions .process-permission-left,body.page-system-process-permissions .process-permission-right{min-height:calc(100vh - 220px);overflow:hidden;}
body.page-system-process-permissions .section-mini-title{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#66768d;margin-bottom:8px;}
body.page-system-process-permissions .process-line-tabs{display:flex;flex-direction:column;gap:8px;max-height:calc(100vh - 270px);overflow:auto;padding-right:4px;}
body.page-system-process-permissions .process-line-tab{display:flex;flex-direction:column;gap:3px;padding:10px 12px;border:1px solid #dbe6f2;background:#f8fbff;color:#20364f;text-decoration:none;border-radius:12px;}
body.page-system-process-permissions .process-line-tab strong{font-size:14px;line-height:1.25;}
body.page-system-process-permissions .process-line-tab span{font-size:12px;color:#6f7f93;}
body.page-system-process-permissions .process-line-tab.active{background:#0b78d1;border-color:#0b78d1;color:#fff;box-shadow:0 10px 18px rgba(11,120,209,.18);}
body.page-system-process-permissions .process-line-tab.active span{color:#e8f4ff;}
body.page-system-process-permissions .process-permission-right{display:flex;flex-direction:column;}
body.page-system-process-permissions .process-permission-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:10px;}
body.page-system-process-permissions .process-permission-head h3{margin:0;font-size:18px;color:#20364f;}
body.page-system-process-permissions .process-permission-form{display:flex;flex-direction:column;min-height:0;flex:1 1 auto;}
body.page-system-process-permissions .process-permission-scroll{flex:1 1 auto;min-height:0;overflow:auto;border:1px solid #d9e4ef;border-radius:12px;background:#fff;}
body.page-system-process-permissions .process-permission-scroll table{margin:0;min-width:620px;}
body.page-system-process-permissions .process-permission-scroll thead th{position:sticky;top:0;z-index:3;background:#f6f9fd;}
body.page-system-process-permissions .process-permission-scroll tfoot td{position:sticky;bottom:0;z-index:3;background:#f6f9fd;font-weight:700;border-top:1px solid #d9e4ef;}
body.page-system-process-permissions .permission-check{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;}
body.page-system-process-permissions .permission-check input{position:absolute;opacity:0;pointer-events:none;}
body.page-system-process-permissions .permission-check span{width:24px;height:24px;border-radius:7px;border:2px solid #b8c7d9;background:#fff;display:inline-block;position:relative;}
body.page-system-process-permissions .permission-check input:checked + span{background:#0b78d1;border-color:#0b78d1;}
body.page-system-process-permissions .permission-check input:checked + span:after{content:'✓';position:absolute;left:5px;top:0;color:#fff;font-weight:900;font-size:16px;}
body.page-system-process-permissions .process-permission-scroll td small{display:block;color:#718299;margin-top:3px;}
body.page-system-process-permissions .process-permission-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding-top:12px;}
@media (max-width:900px){body.page-system-process-permissions .process-permission-layout{grid-template-columns:1fr;}body.page-system-process-permissions .process-permission-left,body.page-system-process-permissions .process-permission-right{min-height:auto;}body.page-system-process-permissions .process-line-tabs{max-height:220px;}}

/* V71 - Process permissions display/edit flow */
body.page-system-process-permissions .section-mini-title,
body.page-system-process-permissions .process-line-tab strong,
body.page-system-process-permissions .process-permission-head h3{
  font-family:Arial,Helvetica,sans-serif;
  letter-spacing:0;
  text-transform:none;
  font-weight:700;
}
body.page-system-process-permissions .section-mini-title{font-size:14px;color:#15456d;margin-bottom:10px;}
body.page-system-process-permissions .process-line-tab strong{font-size:14px;color:inherit;}
body.page-system-process-permissions .process-permission-head h3{font-size:16px;line-height:1.25;color:#183b60;}
body.page-system-process-permissions .process-permission-note{margin:4px 0 0;font-size:12px;color:#607389;line-height:1.35;}
body.page-system-process-permissions .permission-row-locked{opacity:.45;background:#f3f5f8;}
body.page-system-process-permissions .permission-row-locked td{color:#718096;}
body.page-system-process-permissions .permission-check.disabled{cursor:not-allowed;pointer-events:none;}
body.page-system-process-permissions .permission-check.disabled span{background:#eef1f5;border-color:#c7d0dc;}

/* V1.2.1 v73 - process permission pagination and clearer selected rows */
body.page-system-process-permissions .process-permission-scroll th:nth-child(1),
body.page-system-process-permissions .process-permission-scroll td:nth-child(1),
body.page-system-process-permissions .process-permission-scroll th:nth-child(2),
body.page-system-process-permissions .process-permission-scroll td:nth-child(2){text-align:center;vertical-align:middle;}
body.page-system-process-permissions .center-cell{text-align:center!important;vertical-align:middle!important;}
body.page-system-process-permissions .row-no{font-weight:800;color:#24425f;}
body.page-system-process-permissions .permission-row-selected td{font-weight:700;}
body.page-system-process-permissions .permission-row-locked{opacity:.55;background:#eef2f6!important;}
body.page-system-process-permissions .permission-row-locked td{color:#536477;}
body.page-system-process-permissions .permission-row-locked .row-no{color:#536477;}
body.page-system-process-permissions .permission-check.disabled span{background:#dfe5ec;border-color:#aeb9c7;}
body.page-system-process-permissions .permission-check.disabled input:checked + span{background:#9aa7b5;border-color:#9aa7b5;}
body.page-system-process-permissions .permission-check input:checked + span:after{left:50%;top:50%;transform:translate(-50%,-54%);}
body.page-system-process-permissions .process-permission-pager{display:flex;align-items:center;justify-content:center;gap:10px;padding:10px 0 0;font-size:13px;font-weight:700;color:#35516f;}
body.page-system-process-permissions .process-permission-pager .pager-btn{padding:7px 12px;border:1px solid #cfdbea;border-radius:9px;text-decoration:none;background:#fff;color:#0b5f9f;}
body.page-system-process-permissions .process-permission-pager .pager-btn.disabled{opacity:.45;pointer-events:none;color:#7c8b9a;}

/* V1.2.1 v76 - device image/QR four-column asset layout */
.asset-grid.asset-grid-v76{grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:stretch}
.asset-preview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:8px}
.asset-preview-grid img{width:100%;height:58px;object-fit:cover;max-height:58px!important}
.asset-card input[type=file]{width:100%}
@media (max-width:1200px){.asset-grid.asset-grid-v76{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:720px){.asset-grid.asset-grid-v76{grid-template-columns:1fr!important}.asset-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* V1.2.1 v77 - compact 3x3 image previews and multi-row model selector */
.asset-grid.asset-grid-v76{grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:stretch}
.asset-preview-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px;margin-top:8px;max-width:210px}
.asset-preview-grid img{width:100%!important;height:54px!important;object-fit:cover;max-height:54px!important;border-radius:8px!important}
.multi-select-list{height:auto!important;min-height:118px!important;padding:8px!important;line-height:1.35}
.multi-select-list option{padding:5px 7px}
/* V78: preview 9 images evenly and checkbox list for Mẫu hàng */
.asset-grid.asset-grid-v76{grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:stretch}
.asset-preview-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:10px auto 0!important;max-width:100%!important;width:100%!important;align-items:center!important;justify-items:center!important}
.asset-preview-grid img{width:100%!important;aspect-ratio:1/1!important;height:auto!important;max-height:none!important;object-fit:cover!important;border-radius:10px!important;border:1px solid var(--line)!important;background:#fff!important}
.multi-check-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px;max-height:180px;overflow:auto;padding:8px;border:1px solid var(--line);border-radius:12px;background:#fff}
.multi-check-list label{display:flex;align-items:center;gap:8px;margin:0;font-weight:600;font-size:13px;line-height:1.25;padding:6px 8px;border:1px solid #e5e7eb;border-radius:10px;background:#f8fafc;cursor:pointer}
.multi-check-list input{width:16px;height:16px;flex:0 0 auto;margin:0}
.multi-check-list span{display:block}
@media (max-width:720px){.asset-grid.asset-grid-v76{grid-template-columns:1fr!important}.asset-preview-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.multi-check-list{grid-template-columns:1fr;max-height:220px}}

/* V79: compact scrollable multi-select for large Mẫu hàng lists */
.compact-multi-select{position:relative;width:100%;border:1px solid var(--line);border-radius:12px;background:#fff}
.compact-multi-select summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;font-weight:700;color:#0f172a}
.compact-multi-select summary::-webkit-details-marker{display:none}
.compact-multi-placeholder{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.compact-multi-count{flex:0 0 auto;font-size:12px;font-weight:800;color:#2563eb;background:#eff6ff;border:1px solid #bfdbfe;border-radius:999px;padding:3px 8px}
.compact-multi-list.multi-check-list{position:absolute;z-index:50;left:0;right:0;top:calc(100% + 6px);display:block;max-height:290px;overflow:auto;padding:8px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 16px 36px rgba(15,23,42,.16)}
.compact-multi-list.multi-check-list label{display:flex;margin:0 0 5px 0;border:1px solid #e5e7eb;background:#f8fafc}
.compact-multi-list.multi-check-list label:hover{background:#eef6ff;border-color:#bfdbfe}
@media (max-width:720px){.compact-multi-list.multi-check-list{position:fixed;left:10px;right:10px;top:80px;max-height:70vh}}
/* V81.7 detail images from V81_OK */
.detail-v81-grid{align-items:start}
.detail-v81-images{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:12px;width:100%}
.detail-v81-card{border:1px dashed #d6e0ec;border-radius:12px;background:#fff;padding:14px;min-height:230px}
.detail-v81-card h4{margin:0 0 10px;font-size:14px;font-weight:800;color:#20324d}
.detail-v81-card input[type=file]{width:100%;border:1px solid #d8e1ed;border-radius:8px;padding:6px;background:#fff}
.detail-v81-card .small{margin-top:8px;color:#64748b;font-size:12px}
.detail-v81-main{display:block;width:100%;height:170px;object-fit:cover;margin-top:10px;border:1px solid #d8e1ed;border-radius:10px;background:#f8fafc;cursor:pointer}
.detail-v81-thumbs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
.detail-v81-thumb{width:100%;height:78px;object-fit:cover;border:1px solid #d8e1ed;border-radius:10px;background:#f8fafc;cursor:pointer}
.detail-v81-qr-img{display:block;width:190px;height:190px;max-width:100%;object-fit:contain;margin:18px auto 0;border:1px solid #d8e1ed;border-radius:10px;padding:10px;background:#fff;cursor:pointer}
.asset-preview-grid img.js-image-viewer{cursor:pointer}
.maintenance-viewer{display:none;position:fixed;inset:0;z-index:3000}
.maintenance-viewer.show{display:block}
.maintenance-viewer-bg{position:absolute;inset:0;background:rgba(15,23,42,.45)}
.maintenance-viewer-panel{position:absolute;right:0;top:0;height:100%;width:min(88vw,620px);background:#fff;display:flex;flex-direction:column;box-shadow:-20px 0 45px rgba(15,23,42,.28)}
.maintenance-viewer-head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid #d8e1ed}
.maintenance-viewer-head button{border:1px solid #d8e1ed;background:#fff;border-radius:999px;padding:7px 12px;font-weight:800}
.maintenance-viewer-body{position:relative;flex:1;display:flex;align-items:center;justify-content:center;background:#f8fafc;padding:18px}
.maintenance-viewer-body img{max-width:100%;max-height:calc(100vh - 126px);object-fit:contain}
.viewer-prev,.viewer-next{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;border-radius:999px;border:1px solid #d8e1ed;background:#fff;font-size:30px}
.viewer-prev{left:16px}.viewer-next{right:16px}
.maintenance-viewer-count{text-align:center;padding:10px;border-top:1px solid #d8e1ed;font-weight:700}
@media(max-width:900px){.detail-v81-images{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.detail-v81-images{grid-template-columns:1fr}.maintenance-viewer-panel{width:100vw}}

/* V81.8 final detail image viewer adjustments */
.detail-v81-card h4{
    font-size:15px;
    font-weight:800;
    color:#17365d;
    letter-spacing:.01em;
}
.detail-v81-card input[type=file],
.detail-v81-card .small{
    display:none!important;
}
.maintenance-viewer-panel{
    left:0!important;
    right:0!important;
    top:0!important;
    bottom:0!important;
    width:100vw!important;
    height:100vh!important;
    max-width:none!important;
}
.maintenance-viewer-body{
    padding:20px!important;
}
.maintenance-viewer-body img{
    max-width:calc(100vw - 120px)!important;
    max-height:calc(100vh - 120px)!important;
}

/* V82: device detail image title typography */
.detail-v82-image-title{
    font-family: inherit;
    font-size:18px!important;
    line-height:1.2;
    font-weight:800!important;
    color:#111827!important;
    letter-spacing:0;
}

/* V82.1 edit image delete + detail title sizing */
.detail-v82-image-title{
    font-family:inherit!important;
    font-size:14px!important;
    line-height:1.25!important;
    font-weight:800!important;
    color:#0f172a!important;
    letter-spacing:0!important;
}
.image-remove-wrap{
    position:relative;
    display:inline-block;
    max-width:100%;
}
.image-remove-wrap img{
    display:block;
}
.image-remove-btn{
    position:absolute;
    top:6px;
    right:6px;
    width:24px;
    height:24px;
    border:0;
    border-radius:999px;
    background:rgba(15,23,42,.86);
    color:#fff;
    font-size:18px;
    line-height:22px;
    font-weight:900;
    cursor:pointer;
    box-shadow:0 4px 12px rgba(15,23,42,.22);
    z-index:3;
}
.image-remove-btn:hover{background:#dc2626}
.asset-preview-grid .image-remove-wrap{width:100%}
.detail-action-tab{
    margin-left:auto;
    background:#eef6ff!important;
    color:#0f4f8f!important;
    border:1px solid #cfe3ff!important;
}
.detail-action-tab + .detail-action-tab{margin-left:8px}
@media(max-width:720px){
    .detail-action-tab{margin-left:0}
}

/* V83 device detail tab actions and spare import */
.device-spare-inline-form{align-items:end}
.device-spare-actions{display:flex;gap:8px;align-items:center}
.spare-import-modal[hidden]{display:none}
.spare-import-modal{position:fixed;inset:0;z-index:3100}
.spare-import-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.42)}
.spare-import-panel{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(980px,92vw);max-height:86vh;overflow:auto;background:#fff;border-radius:16px;box-shadow:0 24px 60px rgba(15,23,42,.28);padding:16px}
.spare-import-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.spare-import-head h3{margin:0;font-size:18px;font-weight:800;color:#0f172a}
.spare-import-head button{border:1px solid #d8e1ed;background:#fff;border-radius:999px;width:34px;height:34px;font-size:22px;line-height:1;cursor:pointer}
.spare-import-table input[type="date"],.spare-import-table input[name^="import_quantity"]{width:100%;min-width:120px}
.spare-import-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:12px}
.tabs{align-items:center}
.detail-action-tab{margin-left:8px!important}

/* V84 detail top menu, spares and history */
.detail-top-menu-actions{
    position:absolute;
    top:38px;
    right:170px;
    z-index:20;
    display:flex;
    align-items:center;
    gap:8px;
}
.detail-top-action{
    border:0!important;
    background:transparent!important;
    color:#0f4f8f!important;
    font-weight:800!important;
    padding:6px 8px!important;
    text-decoration:none!important;
    cursor:pointer;
}
.detail-top-sep{color:#94a3b8;font-weight:800}
.detail-history-filter{display:flex;align-items:center;gap:8px;margin:0}
.detail-history-filter input{
    width:70px;
    height:32px;
    border:1px solid #d8e1ed;
    border-radius:8px;
    padding:4px 8px;
}
.primary-action{
    background:#2563eb!important;
    color:#fff!important;
    border-color:#2563eb!important;
    box-shadow:none!important;
}
.device-spare-actions{
    justify-content:flex-end!important;
}
.spare-import-head h3{
    font-family:inherit!important;
    font-size:18px!important;
    line-height:1.2!important;
    font-weight:800!important;
    color:#0f172a!important;
}
.spare-import-actions .primary-action{
    color:#fff!important;
    border-color:#2563eb!important;
}
@media(max-width:900px){
    .detail-top-menu-actions{position:static;margin:8px 0;justify-content:flex-end}
}

/* V85 device detail refinements */
.topbar-history-filter{
    display:flex;
    align-items:center;
    gap:8px;
    margin:0;
}
.topbar-history-filter input{
    width:70px;
    height:32px;
    border:1px solid #d8e1ed;
    border-radius:8px;
    padding:4px 8px;
}
.device-history-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:12px;
}
.device-history-head h3{
    margin:0;
    font-size:18px;
    font-weight:800;
    color:#0f172a;
}
.detail-history-filter-inline{
    display:flex;
    align-items:center;
    gap:8px;
}
.detail-history-filter-inline input{
    width:78px;
    height:34px;
    border:1px solid #d8e1ed;
    border-radius:8px;
    padding:4px 8px;
}
.center-cell{
    text-align:center!important;
    vertical-align:middle!important;
}
.spare-active-check{
    margin-right:auto;
    font-weight:700;
}
.device-spare-actions{
    justify-content:flex-end!important;
}
.primary-action{
    color:#fff!important;
    border-color:#2563eb!important;
    box-shadow:none!important;
}
@media(max-width:900px){
    .device-history-head{display:block}
    .detail-history-filter-inline{margin-top:8px}
}

/* V86 device detail fixes */
.detail-tabs-hr{
    border:0;
    border-top:1px solid #e2e8f0;
    margin:10px 0 14px;
}
.detail-fallback-edit-tab{
    margin-left:auto;
    background:#eef6ff!important;
    color:#0f4f8f!important;
    border:1px solid #cfe3ff!important;
}
.usage-box{
    display:inline-block;
    min-width:22px;
    font-size:18px;
    line-height:1;
    color:#0f4f8f;
    vertical-align:middle;
}
.spare-active-check input{
    width:16px;
    height:16px;
    margin-right:6px;
}
.spare-action-spacer{flex:1}
.history-edit-modal[hidden]{display:none}
.history-edit-modal{position:fixed;inset:0;z-index:3200}
.history-edit-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.42)}
.history-edit-panel{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(820px,92vw);max-height:86vh;overflow:auto;background:#fff;border-radius:16px;box-shadow:0 24px 60px rgba(15,23,42,.28);padding:16px}
.history-edit-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.history-edit-head h3{margin:0;font-size:18px;font-weight:800;color:#0f172a}
.history-edit-head button{border:1px solid #d8e1ed;background:#fff;border-radius:999px;width:34px;height:34px;font-size:22px;line-height:1;cursor:pointer}
.topbar-history-filter input[type=number],
.detail-history-filter-inline input[type=number]{
    appearance:auto;
}

/* V87 detail table alignment and popup fixes */
.device-spares-table th,
.device-spares-table td{
    text-align:center!important;
    vertical-align:middle!important;
}
.device-spares-table .action-group,
.history-edit-popup-btn + form,
.device-spares-table .action-group form{
    display:inline-flex!important;
    align-items:center!important;
    gap:10px!important;
}
.device-spares-table .action-group{
    justify-content:center!important;
    gap:12px!important;
}
.usage-box{
    font-size:26px!important;
    line-height:1!important;
    margin-right:10px!important;
    color:#0f4f8f!important;
    font-weight:900!important;
}
.device-detail-section-title,
.device-history-head h3{
    font-size:18px!important;
    line-height:1.25!important;
    font-weight:800!important;
    color:#0f172a!important;
    margin:0 0 10px 0!important;
}
.history-edit-popup-btn{
    margin-right:8px!important;
}
.action-group.center-cell{
    text-align:center!important;
}

/* V88 device detail fixes */
.device-spares-table{
    width:100%!important;
    table-layout:auto!important;
    border-collapse:collapse!important;
}
.device-spares-table th,
.device-spares-table td{
    text-align:center!important;
    vertical-align:middle!important;
    border:1px solid #e2e8f0!important;
}
.device-spares-table .action-group{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:14px!important;
    flex-wrap:nowrap!important;
}
.device-spares-table .action-group form{
    display:inline-flex!important;
    margin:0!important;
}
.usage-box{
    font-size:24px!important;
    margin-right:6px!important;
}
.device-detail-section-title,
.device-history-head h3{
    font-size:15px!important;
    font-weight:650!important;
    line-height:1.25!important;
    letter-spacing:0!important;
}
.history-edit-head{
    justify-content:center!important;
    position:relative;
    text-align:center;
}
.history-edit-head button{
    position:absolute;
    right:0;
}
.history-edit-actions{
    display:flex!important;
    justify-content:center!important;
    gap:16px!important;
}
.history-edit-panel select{
    width:100%;
    height:38px;
    border:1px solid #d8e1ed;
    border-radius:10px;
    padding:7px 10px;
    background:#fff;
}
#histEditNoView[readonly]{
    background:#f8fafc;
    color:#64748b;
}

/* V90 shared spares + stock validation UX */
.shared-spare-form{align-items:end}
.shared-spares-table th,
.shared-spares-table td{
    text-align:center!important;
    vertical-align:middle!important;
    border:1px solid #e2e8f0!important;
}
.shared-spares-table .action-group{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:14px!important;
}
.shared-spares-table .action-group form{
    display:inline-flex!important;
    margin:0!important;
}

/* V91 required quantity + shared import */
.device-spare-inline-form input[name="quantity"],
.shared-spare-form input[name="stock"]{
    border-color:#94a3b8;
}

/* V92 spare line, warning stock */
.device-spare-inline-form{
    display:flex!important;
    flex-wrap:wrap;
    gap:10px;
    align-items:end;
}
.spare-line-field{
    flex:1 1 100px;
    min-width:90px;
}
.spare-line-field.spare-name-field{flex:1.6 1 150px}
.spare-line-field.spare-note-field{flex:1.5 1 150px}
.spare-line-field label{display:block}
.spare-line-field input{width:100%}
.spare-import-table input[name^="import_warning_quantity"],
.spare-import-table input[name^="shared_import_warning_quantity"]{
    min-width:110px;
}

/* V95 journal input equipment-kind filter */
.journal-kind-filter-card{
    margin-bottom:12px;
    padding:14px 16px;
}
.journal-kind-tabs{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}
.journal-kind-tabs .tab{
    min-width:76px;
    justify-content:center;
}

/* V96 sample catalog */
.sample-kind-filter-card{
    margin-bottom:12px;
    padding:14px 16px;
}
.sample-kind-tabs{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}
.sample-kind-tabs .tab{
    min-width:86px;
    justify-content:center;
}
.sample-catalog-hr{
    border:0;
    border-top:1px solid #e2e8f0;
    margin:10px 0 14px;
}
.sample-catalog-form{
    display:flex!important;
    flex-wrap:wrap;
    align-items:end;
    gap:10px;
}
.sample-line-field{
    flex:1 1 150px;
    min-width:130px;
}
.sample-note-field{
    flex:1.5 1 200px;
}
.sample-line-field label{
    display:block;
}
.sample-line-field input{
    width:100%;
}
.sample-line-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    margin-left:auto;
    min-height:38px;
}
.sample-catalog-table th,
.sample-catalog-table td{
    text-align:center!important;
    vertical-align:middle!important;
    border:1px solid #e2e8f0!important;
}
.sample-catalog-table .action-group{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:14px!important;
}
.sample-catalog-table .action-group form{
    display:inline-flex!important;
    margin:0!important;
}

/* V97 fixed JIG management */
.jig-inline-form{
    display:flex!important;
    flex-wrap:wrap;
    align-items:end;
    gap:10px;
}
.jig-line-field{
    flex:1 1 150px;
    min-width:130px;
}
.jig-note-field{
    flex:1.4 1 180px;
}
.jig-line-field label{
    display:block;
}
.jig-line-field input{
    width:100%;
}
.jig-line-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    margin-left:auto;
    min-height:38px;
}
.jig-table th,
.jig-table td{
    text-align:center!important;
    vertical-align:middle!important;
    border:1px solid #e2e8f0!important;
}
.jig-table .action-group{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:14px!important;
}
.jig-table .action-group form{
    display:inline-flex!important;
    margin:0!important;
}

/* V98 system common and JIG sample linkage */
.system-common-table-card table th,
.system-common-table-card table td{
    text-align:center!important;
    vertical-align:middle!important;
}
.system-common-table-card .action-group{
    display:flex!important;
    justify-content:center!important;
    align-items:center!important;
    gap:12px!important;
}
.system-common-table-card .action-group form{
    display:inline-flex!important;
    margin:0!important;
}
.jig-inline-form select{
    width:100%;
    height:38px;
    border:1px solid #d8e1ed;
    border-radius:10px;
    padding:7px 10px;
    background:#fff;
}

/* V99 sample catalog select and type labels */
.sample-catalog-form select,
.jig-inline-form select{
    width:100%;
    height:38px;
    border:1px solid #d8e1ed;
    border-radius:10px;
    padding:7px 10px;
    background:#fff;
}
