/* V1.3.3.69 CSS cache: shared spares submenu copies device type control attributes */
@import url("base.css?v=133sparesv58");
@import url("layout.css?v=133sparesv58");
@import url("modules.css?v=133sparesv58");
@import url("system.css?v=133sparesv69");
@import url("print.css?v=133sparesv58");
@import url("responsive.css?v=133sparesv58");
@import url("qr-mobile.css?v=133sparesv58");
@import url("mobile-fix.css?v=133sparesv58");

/* V1.2.9 permission real per-menu fix */
.member-menu-leaf-row{cursor:pointer}
.member-menu-leaf-row.member-menu-selected{background:#eef6ff!important;box-shadow:inset 4px 0 0 #2563eb}
.member-menu-leaf-row.member-menu-selected code{color:#1d4ed8;font-weight:700}
.member-action-table{width:100%}
.member-permission-action-panel .member-permission-head p{font-weight:600;color:#1d4ed8}

/* V1.2.9: DASH 1 cells open the matching maintenance log. */
.dash1-journal-link{cursor:pointer;}
.dash1-journal-link:hover{outline:2px solid rgba(37,99,235,.35);outline-offset:-2px;}


/* V1.3.0 Notifications */
.notification-bell-v130{position:relative;display:inline-block;margin:0 4px} .bell-icon-v130{display:inline-block;transform-origin:50% 0}.notification-bell-v130.has-unread-v130 .bell-icon-v130{animation:bellRingV130 1.2s ease-in-out infinite}@keyframes bellRingV130{0%,100%{transform:rotate(0deg)}10%,30%,50%{transform:rotate(14deg)}20%,40%,60%{transform:rotate(-14deg)}70%{transform:rotate(7deg)}80%{transform:rotate(-7deg)}}.notification-bell-v130 summary{list-style:none;cursor:pointer;border:1px solid #e5e7eb;border-radius:999px;min-width:38px;height:34px;display:flex;align-items:center;justify-content:center;background:#fff;position:relative}.notification-bell-v130 summary::-webkit-details-marker{display:none}.bell-badge-v130{position:absolute;right:-4px;top:-5px;background:#dc2626;color:#fff;border-radius:999px;min-width:18px;height:18px;padding:0 5px;font-size:11px;line-height:18px;font-weight:700}.notification-dropdown-v130{position:absolute;right:0;top:42px;width:min(420px,92vw);background:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 18px 50px rgba(15,23,42,.18);z-index:80;padding:12px}.notification-popup-tabs-v130{display:flex;gap:8px;margin-bottom:10px}.notification-popup-tabs-v130 button{border:1px solid #dbe3ef;background:#f8fafc;border-radius:999px;padding:6px 12px;font-weight:700;cursor:pointer}.notification-popup-tabs-v130 button.active{background:#2563eb;color:#fff;border-color:#2563eb}.notification-popup-list-v130{max-height:320px;overflow:auto}.notification-popup-item-v130{border-bottom:1px solid #edf2f7;padding:9px 4px}.notification-popup-item-v130 strong{display:block;color:#0f172a}.notification-popup-item-v130 p{margin:3px 0;color:#334155}.notification-popup-item-v130 small{color:#64748b}.notification-popup-item-v130.is-unread{background:#eff6ff;border-radius:10px;padding-left:8px}.notification-popup-empty-v130{padding:20px;text-align:center;color:#64748b}.notification-view-all-v130{display:block;text-align:center;margin-top:10px;padding:9px 12px;border-radius:12px;background:#f1f5f9;text-decoration:none;font-weight:700}.notification-tabs-v130{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.notification-tabs-v130 a{padding:9px 14px;border-radius:999px;background:#f1f5f9;text-decoration:none;font-weight:700;color:#334155}.notification-tabs-v130 a.active{background:#2563eb;color:#fff}.notification-card-v130{padding:16px}.notification-table-v130 input,.notification-table-v130 select,.notification-send-grid-v130 input,.notification-send-grid-v130 select{width:100%;min-height:36px;border:1px solid #dbe3ef;border-radius:10px;padding:6px 9px}.notification-send-grid-v130{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.notification-send-grid-v130 label{display:block;font-size:12px;font-weight:700;color:#475569;margin-bottom:4px}.notification-send-actions-v130{display:flex;align-items:end}.notification-actions-v130{margin-top:14px;text-align:right}.notification-table-v130 tr.is-unread td{background:#eff6ff}.dash1-notification-popup-v130,.qr-maintenance-notification-v130{position:fixed;inset:0;background:transparent;z-index:90;display:flex;align-items:flex-start;justify-content:flex-end;padding:76px 18px 18px;pointer-events:auto}.dash1-notification-popup-v130[hidden],.qr-maintenance-notification-v130[hidden],.dash1-notification-popup-v130.is-closed-v130,.qr-maintenance-notification-v130.is-closed-v130{display:none!important}.notification-popup-card-v130{pointer-events:auto;background:#fff;border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 20px 60px rgba(15,23,42,.22);width:min(420px,94vw);padding:16px;position:relative}.notification-popup-card-v130 h3{margin:0 0 10px}.notification-popup-card-v130 p{margin:8px 0;padding-bottom:8px;border-bottom:1px solid #edf2f7}.notification-close-v130{position:absolute;right:10px;top:8px;border:0;background:#f1f5f9;border-radius:999px;width:36px;height:36px;cursor:pointer;font-weight:900;font-size:22px;line-height:36px;touch-action:manipulation;z-index:3}.notification-close-bottom-v130{display:none;width:100%;margin-top:12px;border:0;border-radius:12px;background:#e2e8f0;padding:12px 14px;font-weight:800;touch-action:manipulation}@media(max-width:800px){.notification-send-grid-v130{grid-template-columns:1fr}.notification-dropdown-v130{right:-78px}.dash1-notification-popup-v130,.qr-maintenance-notification-v130{align-items:flex-start;justify-content:center;padding:18px 10px}.notification-popup-card-v130{width:calc(100vw - 20px);max-height:calc(100vh - 36px);overflow:auto;padding-top:48px}.notification-close-v130{right:12px;top:10px;width:44px;height:44px;line-height:44px;font-size:26px}.notification-close-bottom-v130{display:block}}

/* V1.3.0 notification maintenance-log navigation + spacing fix */
.notification-popup-line-v130{display:block;margin:0 0 7px;padding:9px 10px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;text-decoration:none;color:#0f172a;line-height:1.35;cursor:pointer;touch-action:manipulation}
.notification-popup-line-v130:last-child{margin-bottom:0}
.notification-popup-line-v130:hover{background:#eff6ff;border-color:#bfdbfe}
.notification-popup-card-v130 p{margin-bottom:7px!important}
.notification-popup-item-v130{display:block;margin-bottom:7px;text-decoration:none;color:inherit;border:1px solid transparent;border-radius:12px}
.notification-popup-item-v130:last-child{margin-bottom:0}
.notification-popup-item-v130:hover{background:#f8fafc;border-color:#dbeafe}
.notification-popup-item-v130.is-unread{margin-bottom:7px}
.notification-table-v130 .btn[href*="page=journal-input"]{background:#eef6ff;border-color:#bfdbfe;color:#1d4ed8}


/* V1.3.0 notification UI polish: separated read rows, modal view, checkbox pickers */
.notification-list-table-v130{border-collapse:separate!important;border-spacing:0 7px!important}
.notification-list-table-v130 tbody tr:not(.notification-row-modal-holder-v130) td{border-top:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;background:#fff}
.notification-list-table-v130 tbody tr:not(.notification-row-modal-holder-v130) td:first-child{border-left:1px solid #e5e7eb;border-radius:12px 0 0 12px}
.notification-list-table-v130 tbody tr:not(.notification-row-modal-holder-v130) td:last-child{border-right:1px solid #e5e7eb;border-radius:0 12px 12px 0}
.notification-list-table-v130 tr.is-unread td{background:#eff6ff!important;border-color:#bfdbfe!important}
.notification-list-table-v130 tr.is-read td{background:#fff!important}
.notification-list-table-v130 tr.is-read:hover td{background:#f8fafc!important}
.notification-row-modal-holder-v130{display:none!important}
.notification-popup-list-v130{display:flex;flex-direction:column;gap:7px}
.notification-popup-item-v130{margin-bottom:0!important;border:1px solid #e5e7eb!important;background:#fff!important;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.notification-popup-item-v130.is-read{background:#fff!important}
.notification-popup-item-v130.is-unread{background:#eff6ff!important;border-color:#bfdbfe!important}
.notification-popup-item-v130 + .notification-popup-item-v130{position:relative}
.notification-popup-line-v130{margin-bottom:7px!important;border-color:#e5e7eb!important;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.notification-popup-line-v130 + .notification-popup-line-v130{margin-top:0!important}
.notification-popup-card-v130 p.notification-popup-line-v130{border-bottom:1px solid #e5e7eb!important}
.notification-field-wide-v130{grid-column:span 2}
.notification-picker-v130{border:1px solid #dbe3ef;border-radius:14px;padding:10px;background:#f8fafc}
.notification-choice-grid-v130{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:180px;overflow:auto;padding:2px}
.notification-choice-v130{display:flex!important;align-items:center;gap:7px;border:1px solid #dbe3ef;border-radius:10px;background:#fff;padding:8px 10px;cursor:pointer;font-weight:700;color:#334155}
.notification-choice-v130:hover{border-color:#93c5fd;background:#eff6ff}
.notification-choice-v130 input{width:auto!important;min-height:auto!important}
.notification-choice-v130:has(input:checked){border-color:#2563eb;background:#dbeafe;color:#1d4ed8}
.notification-view-modal-v130[hidden]{display:none!important}
.notification-view-modal-v130{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:18px}
.notification-view-backdrop-v130{position:absolute;inset:0;background:rgba(15,23,42,.45)}
.notification-view-dialog-v130{position:relative;width:min(560px,96vw);max-height:calc(100vh - 36px);overflow:auto;background:#fff;border-radius:18px;box-shadow:0 24px 80px rgba(15,23,42,.35);padding:18px;border:1px solid #e2e8f0}
.notification-view-close-v130{position:absolute;right:12px;top:10px;border:0;background:#f1f5f9;border-radius:999px;width:38px;height:38px;font-size:24px;font-weight:900;cursor:pointer}
.notification-view-dialog-v130 h3{margin:0 44px 8px 0;color:#0f172a}
.notification-view-meta-v130{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px;color:#64748b;font-weight:700;font-size:12px}
.notification-view-meta-v130 span{background:#f1f5f9;border-radius:999px;padding:5px 9px}
.notification-view-dialog-v130 p{white-space:pre-wrap;line-height:1.5;color:#1e293b;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:12px}
.notification-view-actions-v130{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin-top:12px}
@media(max-width:800px){.notification-field-wide-v130{grid-column:span 1}.notification-choice-grid-v130{grid-template-columns:1fr}.notification-view-modal-v130{align-items:flex-start;padding:10px}.notification-view-dialog-v130{max-height:calc(100vh - 20px);padding-top:54px}}

/* V1.3.0 notification overflow + action polish fix */
.notification-dropdown-v130{max-height:min(72vh,520px);overflow:hidden;display:flex;flex-direction:column}
.notification-popup-list-v130{max-height:min(48vh,300px);overflow-y:auto;padding-right:4px}
.notification-popup-item-v130{padding:10px 12px!important}
.notification-popup-item-v130.is-read{background:#fff!important;border-color:#e5e7eb!important}
.notification-popup-item-v130.is-read + .notification-popup-item-v130.is-read{border-top:1px solid #e5e7eb!important}
.notification-row-actions-v130,.notification-list-table-v130 .action-group{display:flex!important;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;min-width:180px}
.notification-row-actions-v130 form{display:inline-flex!important;margin:0!important}
.notification-row-actions-v130 .btn{margin:0!important;white-space:nowrap}
.notification-title-link-v130,.notification-content-link-v130{color:inherit;text-decoration:none;display:block}
.notification-title-link-v130:hover,.notification-content-link-v130:hover{color:#1d4ed8;text-decoration:underline}
.notification-view-modal-v130{display:none!important}
.notification-popup-card-v130{max-height:min(70vh,520px);overflow:auto}
.notification-popup-line-v130{background:#fff!important}
.notification-popup-line-v130 + .notification-popup-line-v130{border-top:1px solid #e5e7eb!important}
@media(max-width:800px){.notification-dropdown-v130{position:fixed;left:8px;right:8px;top:58px;width:auto;max-height:calc(100vh - 76px);z-index:130}.notification-popup-list-v130{max-height:calc(100vh - 190px)}.notification-row-actions-v130{justify-content:flex-start;min-width:160px}}

/* V1.3.0 notification final behavior/layout fix */
.notification-popup-list-v130[hidden]{display:none!important}
.notification-popup-tabs-v130{display:flex;gap:8px;flex-shrink:0;border-bottom:1px solid #e5e7eb;padding-bottom:8px;margin-bottom:8px}
.notification-popup-list-v130{display:flex;flex-direction:column;gap:7px!important;min-height:0}
.notification-popup-item-form-v130,.notification-popup-line-form-v130{display:block;margin:0!important;padding:0!important}
.notification-popup-item-form-v130 button.notification-popup-item-v130,.notification-popup-line-form-v130 button.notification-popup-line-v130{width:100%;text-align:left;font:inherit;border:1px solid #e5e7eb;background:#fff;cursor:pointer}
.notification-popup-item-v130 p,.notification-popup-line-v130 span{white-space:pre-line;line-height:1.45}
.notification-popup-line-v130 strong{display:block;margin-bottom:5px;color:#0f172a}
.notification-dropdown-v130{box-sizing:border-box;max-height:min(70vh,520px)!important;overflow:hidden!important}
.notification-popup-list-v130{max-height:min(46vh,300px)!important;overflow-y:auto!important;overflow-x:hidden!important}
.notification-view-all-v130{flex-shrink:0}
.notification-list-table-v130{border-collapse:separate!important;border-spacing:0 7px!important;background:transparent!important}
.notification-list-table-v130 th{vertical-align:middle!important;text-align:center!important;line-height:1.25!important;border:0!important}
.notification-list-table-v130 td{vertical-align:middle!important;line-height:1.45!important;border-top:1px solid #bfdbfe!important;border-bottom:1px solid #bfdbfe!important;border-left:0!important;border-right:0!important;padding:9px 8px!important;background:#fff!important}
.notification-list-table-v130 tr.is-unread td{background:#eff6ff!important}
.notification-list-table-v130 td:first-child{border-left:1px solid #bfdbfe!important;border-radius:12px 0 0 12px!important}
.notification-list-table-v130 td:last-child{border-right:1px solid #bfdbfe!important;border-radius:0 12px 12px 0!important}
.notification-list-table-v130 a:not(.btn){color:inherit!important;text-decoration:none!important;pointer-events:none!important}
.notification-row-actions-v130{gap:7px!important;vertical-align:middle!important}
@media(max-width:800px){.notification-popup-card-v130{max-height:calc(100vh - 32px)!important;overflow:auto!important}.notification-popup-line-v130{font-size:14px}.notification-dropdown-v130{max-height:calc(100vh - 76px)!important}.notification-popup-list-v130{max-height:calc(100vh - 200px)!important}}


/* V1.3.0 final notification layout logic fixes */
.notification-tabs-v130{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.notification-tabs-v130 a{border:1px solid #bfdbfe;border-radius:10px;padding:8px 12px;text-decoration:none;font-weight:800;background:#fff;color:#1d4ed8}
.notification-tabs-v130 a.active{background:#2563eb;color:#fff;border-color:#2563eb}
.notification-list-table-v130{width:100%;table-layout:fixed;border-collapse:separate!important;border-spacing:0 8px!important;background:transparent!important}
.notification-list-table-v130 th{height:34px;vertical-align:middle!important;text-align:center!important;border:0!important;padding:8px!important;line-height:1.25!important}
.notification-list-table-v130 td{vertical-align:middle!important;line-height:1.45!important;border-top:1px solid #bfdbfe!important;border-bottom:1px solid #bfdbfe!important;border-left:0!important;border-right:0!important;padding:10px 9px!important;background:#fff!important}
.notification-list-table-v130 tr.is-unread td{background:#eff6ff!important}
.notification-list-table-v130 tr.is-read td{background:#fff!important}
.notification-list-table-v130 td:first-child{border-left:1px solid #bfdbfe!important;border-radius:12px 0 0 12px!important}
.notification-list-table-v130 td:last-child{border-right:1px solid #bfdbfe!important;border-radius:0 12px 12px 0!important}
.notification-center-col-v130{text-align:center!important;vertical-align:middle!important}
.notification-content-cell-v130{vertical-align:middle!important}
.notification-bullet-v130{margin:0!important;padding-left:18px!important;list-style:disc!important}
.notification-bullet-v130 li{margin:0 0 3px 0!important;line-height:1.35!important}
.notification-row-actions-v130,.notification-list-table-v130 .action-group{display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;flex-wrap:wrap!important;min-width:170px!important;height:100%!important}
.notification-row-actions-v130 form{display:inline-flex!important;margin:0!important;align-items:center!important}
.notification-row-actions-v130 .btn{margin:0!important;white-space:nowrap!important}
.notification-dropdown-v130{max-height:min(70vh,520px)!important;overflow:hidden!important;box-sizing:border-box!important}
.notification-popup-tabs-v130{display:flex!important;gap:8px!important;border-bottom:1px solid #e5e7eb!important;padding-bottom:8px!important;margin-bottom:8px!important}
.notification-popup-tabs-v130 button{border:1px solid #bfdbfe;background:#fff;border-radius:10px;padding:7px 10px;font-weight:800;cursor:pointer}
.notification-popup-tabs-v130 button.active{background:#2563eb;color:#fff;border-color:#2563eb}
.notification-popup-list-v130{display:flex!important;flex-direction:column!important;gap:7px!important;max-height:min(46vh,300px)!important;overflow-y:auto!important;overflow-x:hidden!important;padding-right:4px!important}
.notification-popup-list-v130[hidden]{display:none!important}
.notification-popup-item-v130{display:block!important;width:100%!important;margin:0!important;border:1px solid #e5e7eb!important;border-radius:12px!important;padding:10px 12px!important;text-align:left!important;text-decoration:none!important;color:inherit!important;box-shadow:0 1px 2px rgba(15,23,42,.04)!important}
.notification-popup-item-v130.is-unread{background:#eff6ff!important;border-color:#bfdbfe!important}
.notification-popup-item-v130.is-read{background:#fff!important;border-color:#e5e7eb!important}
.notification-popup-item-v130 p{white-space:pre-line!important;line-height:1.45!important;margin:6px 0!important}
.notification-popup-item-form-v130{margin:0!important;padding:0!important;display:block!important}
.notification-table-v130 td.center-cell input[type="checkbox"]{width:18px!important;height:18px!important;min-height:auto!important}
@media(max-width:800px){.notification-list-table-v130{table-layout:auto}.notification-dropdown-v130{position:fixed!important;left:8px!important;right:8px!important;top:58px!important;width:auto!important;max-height:calc(100vh - 76px)!important;z-index:130!important}.notification-popup-list-v130{max-height:calc(100vh - 200px)!important}.notification-row-actions-v130{min-width:150px!important}}

/* V1.3.0 user fix: Máy dừng failure suggestion and compact action cell */
.notification-failure-suggest-cell-v130 input{min-width:260px}
.notification-alert-actions-v130{display:inline-flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-width:105px!important;white-space:nowrap!important}
.notification-alert-actions-v130 input[type="checkbox"]{margin:0!important;flex:0 0 auto!important}
.notification-alert-actions-v130 .btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;margin:0!important;flex:0 0 auto!important}
.notification-table-v130 td.center-cell.notification-alert-actions-v130{vertical-align:middle!important}


/* V1.3.0 notification visual alignment final fix */
.notification-list-table-v130{table-layout:fixed!important;border-collapse:separate!important;border-spacing:0 8px!important}
.notification-list-table-v130 th:nth-child(1){width:70px}.notification-list-table-v130 th:nth-child(2){width:130px}.notification-list-table-v130 th:nth-child(4){width:110px}.notification-list-table-v130 th:nth-child(5){width:140px}.notification-list-table-v130 th:nth-child(6){width:120px}.notification-list-table-v130 th:nth-child(7){width:120px}.notification-list-table-v130 th:nth-child(8){width:210px}
.notification-list-table-v130 td{vertical-align:middle!important;box-sizing:border-box!important}
.notification-list-table-v130 td.notification-row-actions-v130{display:table-cell!important;text-align:center!important;vertical-align:middle!important;white-space:normal!important;min-width:0!important;height:auto!important;padding:8px 10px!important}
.notification-row-actions-inner-v130{display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;flex-wrap:wrap!important;width:100%!important;min-height:34px!important}
.notification-row-actions-inner-v130 form{display:inline-flex!important;margin:0!important;align-items:center!important}.notification-row-actions-inner-v130 .btn{margin:0!important;white-space:nowrap!important}
.notification-list-table-v130 tr td:last-child{border-left:0!important;border-right:1px solid #bfdbfe!important;border-radius:0 12px 12px 0!important}
.notification-list-table-v130 tr td:nth-last-child(2){border-right:0!important}
.notification-dropdown-v130{position:fixed!important;right:14px!important;left:auto!important;top:60px!important;width:min(420px,calc(100vw - 28px))!important;max-height:min(70vh,520px)!important;overflow:hidden!important}
.notification-popup-tabs-v130{border-bottom:0!important;margin-bottom:10px!important;padding-bottom:0!important}
.notification-popup-tabs-v130 button{border-radius:999px!important;padding:8px 14px!important;font-size:15px!important;font-weight:800!important;line-height:1.1!important}
.notification-popup-tabs-v130 button.active{background:#2563eb!important;color:#fff!important;border-color:#2563eb!important;box-shadow:0 3px 8px rgba(37,99,235,.2)!important}
.notification-popup-item-v130{padding:10px 12px!important;border-radius:12px!important}
.notification-popup-item-v130 strong{font-size:15px!important;line-height:1.25!important;margin-bottom:6px!important}
.notification-popup-content-v130{margin:0!important;padding:0!important;color:#334155!important}.notification-popup-bullets-v130{margin:0!important;padding-left:18px!important;list-style:disc!important}.notification-popup-bullets-v130 li{margin:0 0 2px 0!important;line-height:1.28!important}.notification-popup-item-v130 small{display:block;margin-top:6px!important}
@media(max-width:800px){.notification-dropdown-v130{right:8px!important;left:auto!important;top:58px!important;width:min(420px,calc(100vw - 16px))!important}.notification-popup-list-v130{max-height:calc(100vh - 200px)!important}.notification-popup-tabs-v130 button{font-size:14px!important;padding:8px 13px!important}}


/* V1.3.0 popup config and alert-action alignment final */
.notification-settings-form-v130,.notification-card-v130{max-width:100%;box-sizing:border-box}
.notification-settings-scroll-box-v130{max-height:360px;overflow:auto}
.notification-popup-setting-grid-v130{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)!important;gap:14px!important;margin-bottom:18px!important;align-items:start!important}
.notification-popup-setting-box-v130{min-width:0!important;border:1px solid #dbeafe!important;border-radius:14px!important;background:#f8fafc!important;padding:12px!important;box-sizing:border-box!important}
.notification-popup-setting-box-v130 h4{margin:0 0 10px!important;color:#0f172a!important;font-size:15px!important;font-weight:800!important;line-height:1.25!important}
.notification-popup-setting-table-v130{width:100%!important;table-layout:auto!important;border-collapse:collapse!important}
.notification-popup-setting-table-v130 th,.notification-popup-setting-table-v130 td{vertical-align:middle!important;box-sizing:border-box!important}
.notification-popup-setting-table-v130 input[type="number"]{width:82px!important;min-height:32px!important}
.notification-inline-check-v130{display:flex!important;align-items:center!important;gap:8px!important;font-weight:700!important;color:#334155!important;margin:0!important}
.notification-inline-check-v130 input{width:18px!important;height:18px!important;min-height:auto!important;flex:0 0 auto!important}
.notification-alert-table-v130{width:100%!important;table-layout:fixed!important}
.notification-alert-table-v130 th:nth-child(1),.notification-alert-table-v130 td:nth-child(1){width:34%!important}
.notification-alert-table-v130 th:nth-child(2),.notification-alert-table-v130 td:nth-child(2){width:46%!important}
.notification-alert-table-v130 th:nth-child(3),.notification-alert-table-v130 td:nth-child(3){width:20%!important;min-width:138px!important}
.notification-alert-actions-v130{display:table-cell!important;text-align:center!important;vertical-align:middle!important;padding:8px!important;white-space:nowrap!important;min-width:138px!important}
.notification-alert-actions-inner-v130{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;flex-wrap:nowrap!important;white-space:nowrap!important;width:auto!important;min-height:34px!important}
.notification-alert-actions-inner-v130 input[type="checkbox"]{width:18px!important;height:18px!important;min-height:18px!important;margin:0!important;flex:0 0 auto!important}
.notification-alert-actions-inner-v130 .btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;margin:0!important;white-space:nowrap!important;flex:0 0 auto!important}
.notification-table-v130 td.center-cell.notification-alert-actions-v130{display:table-cell!important;vertical-align:middle!important;text-align:center!important}
@media(max-width:900px){.notification-popup-setting-grid-v130{grid-template-columns:1fr!important}.notification-settings-scroll-box-v130{max-height:320px}.notification-alert-table-v130 th:nth-child(1),.notification-alert-table-v130 td:nth-child(1),.notification-alert-table-v130 th:nth-child(2),.notification-alert-table-v130 td:nth-child(2),.notification-alert-table-v130 th:nth-child(3),.notification-alert-table-v130 td:nth-child(3){width:auto!important}}


/* V1.3.0 notification real scroll/settings behavior fix */
.notification-card-v130{overflow:hidden}
.notification-list-scroll-v130{max-height:460px;overflow:auto;border:1px solid #bfdbfe;border-radius:12px;background:#f8fbff;padding:0 6px 6px 6px}
.notification-list-scroll-v130 .notification-list-table-v130{min-width:1180px;width:100%;border-collapse:separate!important;border-spacing:0 7px!important}
.notification-list-scroll-v130 thead th{position:sticky;top:0;z-index:2;background:#8bb8df!important;vertical-align:middle!important;text-align:center!important}
.notification-list-footer-v130{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 4px 0;color:#475569;font-weight:700}
.notification-pagination-v130{display:flex;gap:6px;flex-wrap:wrap}
.notification-pagination-v130 a{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;border:1px solid #bfdbfe;border-radius:9px;background:#fff;color:#1d4ed8;text-decoration:none;font-weight:800}
.notification-pagination-v130 a.active{background:#2563eb;color:#fff;border-color:#2563eb}
.notification-settings-outer-scroll-v130{max-height:calc(100vh - 150px);overflow:auto;padding-right:10px}
.notification-settings-outer-scroll-v130 .table-wrap{overflow:auto;max-width:100%}
.notification-popup-setting-grid-v130{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:start}
.notification-popup-setting-box-v130{min-width:0;border:1px solid #bfdbfe;border-radius:12px;background:#f8fbff;padding:10px}
.notification-popup-setting-box-v130 h4{margin:0 0 10px;color:#0f172a;font-size:15px;font-weight:900}
.notification-settings-scroll-box-v130 .table-wrap{max-height:340px;overflow:auto}
.notification-popup-setting-table-v130{min-width:520px;border-collapse:separate!important;border-spacing:0!important}
.notification-popup-setting-table-v130 th{position:sticky;top:0;z-index:2;background:#8bb8df!important;text-align:center!important;vertical-align:middle!important}
.notification-alert-table-v130{width:100%!important;table-layout:fixed!important}
.notification-alert-table-v130 th:nth-child(1){width:32%}.notification-alert-table-v130 th:nth-child(2){width:50%}.notification-alert-table-v130 th:nth-child(3){width:18%}
.notification-alert-actions-v130{white-space:nowrap!important;vertical-align:middle!important;text-align:center!important}
.notification-alert-actions-inner-v130,.notification-action-nowrap-v130{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;flex-wrap:nowrap!important;min-width:0!important;width:auto!important}
.notification-alert-actions-inner-v130 input[type="checkbox"]{margin:0!important;flex:0 0 auto!important;width:18px!important;height:18px!important}
.notification-alert-actions-inner-v130 .btn{margin:0!important;white-space:nowrap!important;flex:0 0 auto!important}
.notification-table-v130 td,.notification-table-v130 th{vertical-align:middle!important;box-sizing:border-box!important}
.pc-center-notification-popup-v130{position:fixed!important;inset:0!important;z-index:180!important;display:flex;align-items:center!important;justify-content:center!important;background:rgba(15,23,42,.18)!important;padding:18px!important}
.pc-center-notification-popup-v130[hidden],.pc-center-notification-popup-v130.is-closed-v130{display:none!important}
.pc-center-notification-popup-v130 .notification-popup-card-v130{width:min(760px,calc(100vw - 48px))!important;max-height:min(78vh,680px)!important;overflow:auto!important;border-radius:20px!important;box-shadow:0 24px 90px rgba(15,23,42,.32)!important}
.notification-popup-bullets-v130{margin:6px 0 0 0!important;padding-left:17px!important;line-height:1.35!important}
.notification-popup-bullets-v130 li{margin:2px 0!important;padding:0!important}
@media(max-width:900px){.notification-popup-setting-grid-v130{grid-template-columns:1fr}.notification-list-footer-v130{align-items:flex-start;flex-direction:column}.notification-settings-outer-scroll-v130{max-height:calc(100vh - 110px)}}


/* V1.3.0 final correction: one outer config scrollbar, compact popups, mobile safe area */
.notification-settings-outer-scroll-v130{
  max-height:calc(100dvh - 130px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding-right:8px!important;
}
.notification-settings-scroll-box-v130,
.notification-popup-setting-box-v130{
  overflow:visible!important;
  max-height:none!important;
}
.notification-settings-scroll-box-v130 .table-wrap,
.notification-popup-setting-box-v130 .table-wrap{
  overflow:visible!important;
  max-height:none!important;
}
.notification-popup-setting-table-v130{width:100%!important;min-width:0!important;}
.pc-center-notification-popup-v130{align-items:center!important;justify-content:center!important;padding:18px!important;}
.pc-center-notification-popup-v130 .notification-popup-card-v130{
  width:min(80vw,760px)!important;
  max-width:80vw!important;
  max-height:min(88dvh,820px)!important;
  overflow:hidden!important;
}
.pc-center-notification-popup-v130 .notification-popup-list-v130{
  max-height:calc(88dvh - 90px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding-right:8px!important;
}
.notification-popup-bullets-v130{margin:3px 0 0!important;padding-left:18px!important;line-height:1.22!important;list-style:disc!important;}
.notification-popup-bullets-v130 li{margin:0 0 1px 0!important;padding:0!important;}
.notification-popup-item-v130,.notification-popup-line-v130{line-height:1.22!important;}
.notification-popup-item-v130 strong,.notification-popup-line-v130 strong{display:block;margin-bottom:4px!important;line-height:1.2!important;}
.qr-maintenance-notification-v130{
  align-items:flex-start!important;
  justify-content:center!important;
  padding:10px 8px calc(96px + env(safe-area-inset-bottom))!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  box-sizing:border-box!important;
}
.qr-maintenance-notification-v130 .notification-popup-card-v130{
  width:calc(100vw - 18px)!important;
  max-width:520px!important;
  max-height:calc(100dvh - 130px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:42px 12px 72px!important;
  margin-bottom:calc(78px + env(safe-area-inset-bottom))!important;
  box-sizing:border-box!important;
}
.qr-maintenance-notification-v130 .notification-popup-line-v130{
  display:block!important;
  margin-bottom:8px!important;
  padding:10px 12px!important;
}
.qr-maintenance-notification-v130 .notification-popup-bullets-v130{
  font-size:14px!important;
  line-height:1.22!important;
  padding-left:18px!important;
}
.qr-maintenance-notification-v130 .notification-popup-bullets-v130 li{margin-bottom:1px!important;}
.qr-maintenance-notification-v130 .notification-close-bottom-v130{margin-bottom:10px!important;}
@media(max-width:800px){
  .pc-center-notification-popup-v130 .notification-popup-card-v130{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;}
}


/* V1.3.0 real fix: mobile notification bullets, compact rows, screen-2 route target */
.notification-popup-content-v130{margin-top:4px!important;line-height:1.25!important}
.notification-popup-bullets-v130{margin:4px 0 0 0!important;padding-left:17px!important;line-height:1.22!important}
.notification-popup-bullets-v130 li{margin:1px 0!important;padding:0!important;line-height:1.22!important}
.qr-maintenance-notification-v130 .notification-popup-card-v130{max-height:calc(100dvh - 92px)!important;overflow:auto!important;padding-bottom:14px!important}
.qr-maintenance-notification-v130 .notification-popup-line-v130{margin-bottom:7px!important;padding:8px 10px!important;line-height:1.25!important}
.qr-maintenance-notification-v130 .notification-popup-line-v130 strong{display:block!important;margin-bottom:3px!important;line-height:1.2!important}
@media(max-width:800px){
  .qr-maintenance-notification-v130{padding:12px 10px calc(72px + env(safe-area-inset-bottom,0px))!important;align-items:flex-start!important;justify-content:center!important}
  .qr-maintenance-notification-v130 .notification-popup-card-v130{width:min(94vw,430px)!important;max-height:calc(100dvh - 104px - env(safe-area-inset-bottom,0px))!important}
  .qr-maintenance-notification-v130 .notification-popup-bullets-v130{font-size:13px!important}
}


/* V1.3.0 real final: remove old right popup, restore PC setting inner scroll, compact mobile notice */
/* Old Dash 1 right popup is removed in PHP; keep this as safety. */
.dash1-notification-popup-v130:not(.pc-center-notification-popup-v130){display:none!important;}
/* Cấu hình thông báo trên máy tính: có lại thanh cuộn riêng trong bảng PC, vẫn giữ thanh cuộn ngoài cùng cho toàn trang cấu hình. */
.notification-settings-outer-scroll-v130{max-height:calc(100dvh - 130px)!important;overflow-y:auto!important;overflow-x:hidden!important;padding-right:8px!important;}
.notification-settings-scroll-box-v130{max-height:360px!important;overflow-y:auto!important;overflow-x:hidden!important;border:1px solid #bfdbfe!important;border-radius:12px!important;background:#f8fbff!important;}
.notification-settings-scroll-box-v130 .table-wrap{max-height:none!important;overflow:visible!important;}
.notification-popup-setting-box-v130{overflow:visible!important;}
.notification-popup-setting-table-v130 th{position:sticky!important;top:0!important;z-index:3!important;background:#8bb8df!important;}
/* Popup PC chính giữa: chỉ dùng bản topbar, rộng 80%, cao đủ 4 thông báo. */
.pc-center-notification-popup-v130{align-items:center!important;justify-content:center!important;padding:18px!important;}
.pc-center-notification-popup-v130 .notification-popup-card-v130{width:min(80vw,760px)!important;max-width:80vw!important;max-height:min(88dvh,820px)!important;overflow:hidden!important;}
.pc-center-notification-popup-v130 .notification-popup-list-v130{max-height:calc(88dvh - 90px)!important;overflow-y:auto!important;overflow-x:hidden!important;padding-right:8px!important;}
/* Mobile popup: không bị che footer, dòng gọn và có gạch đầu dòng rõ ràng. */
.qr-maintenance-notification-v130{align-items:flex-start!important;justify-content:center!important;padding:8px 8px calc(120px + env(safe-area-inset-bottom))!important;overflow-y:auto!important;overflow-x:hidden!important;box-sizing:border-box!important;}
.qr-maintenance-notification-v130 .notification-popup-card-v130{width:calc(100vw - 18px)!important;max-width:520px!important;max-height:calc(100dvh - 150px)!important;overflow-y:auto!important;overflow-x:hidden!important;padding:42px 12px calc(110px + env(safe-area-inset-bottom))!important;margin-bottom:calc(96px + env(safe-area-inset-bottom))!important;box-sizing:border-box!important;}
.notification-popup-content-v130{margin-top:4px!important;line-height:1.18!important;}
.notification-popup-bullets-v130{margin:4px 0 0 0!important;padding-left:18px!important;line-height:1.18!important;list-style:disc!important;}
.notification-popup-bullets-v130 li{margin:0!important;padding:0!important;line-height:1.18!important;}
.qr-maintenance-notification-v130 .notification-popup-line-v130{display:block!important;margin-bottom:7px!important;padding:9px 11px!important;line-height:1.18!important;}
.qr-maintenance-notification-v130 .notification-popup-line-v130 strong{margin-bottom:3px!important;}

/* V1.3.0 real patch 2: stable popup config scroll + mobile QR route UI */
.notification-popup-setting-grid-v130{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:14px!important;
  align-items:start!important;
  overflow:visible!important;
}
.notification-popup-setting-box-v130,
.notification-settings-scroll-box-v130{
  min-width:0!important;
  overflow:hidden!important;
  max-height:none!important;
  box-sizing:border-box!important;
}
.notification-popup-setting-box-v130 > .table-wrap,
.notification-settings-scroll-box-v130 > .table-wrap{
  max-height:330px!important;
  overflow-y:auto!important;
  overflow-x:auto!important;
  border:1px solid #bfdbfe!important;
  border-radius:12px!important;
  background:#fff!important;
}
.notification-popup-setting-table-v130{
  min-width:620px!important;
  width:100%!important;
  table-layout:auto!important;
  border-collapse:collapse!important;
}
.notification-popup-setting-table-v130 th,
.notification-popup-setting-table-v130 td{
  white-space:nowrap!important;
  vertical-align:middle!important;
}
.notification-settings-outer-scroll-v130{
  max-height:calc(100dvh - 138px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding-right:8px!important;
}
@media(max-width:900px){
  .notification-popup-setting-grid-v130{grid-template-columns:1fr!important;}
  .notification-popup-setting-box-v130 > .table-wrap,
  .notification-settings-scroll-box-v130 > .table-wrap{max-height:300px!important;}
}
.qr-maintenance-notification-v130 .notification-popup-content-v130{line-height:1.16!important;}
.qr-maintenance-notification-v130 .notification-popup-bullets-v130{display:block!important;list-style:disc!important;margin:3px 0 0!important;padding-left:18px!important;line-height:1.16!important;}
.qr-maintenance-notification-v130 .notification-popup-bullets-v130 li{display:list-item!important;margin:0 0 1px!important;padding:0!important;line-height:1.16!important;}
.qr-mobile-maintenance-notice-v130{cursor:pointer!important;touch-action:manipulation!important;}


/* V1.3.0 mobile notice view button + edit ticket alignment */
.qr-maintenance-notification-v130 .notification-popup-line-v130.qr-mobile-maintenance-notice-v130{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:8px!important;
  cursor:default!important;
}
.qr-mobile-notice-body-v130{flex:1 1 auto!important;min-width:0!important;}
.qr-mobile-notice-view-btn-v130{
  flex:0 0 auto!important;
  align-self:flex-start!important;
  margin-top:0!important;
  border:0!important;
  border-radius:8px!important;
  background:#4338ca!important;
  color:#fff!important;
  font-weight:800!important;
  font-size:12px!important;
  line-height:1!important;
  padding:7px 9px!important;
  text-decoration:none!important;
  box-shadow:0 1px 2px rgba(15,23,42,.16)!important;
  touch-action:manipulation!important;
}
.qr-mobile-notice-view-btn-v130:active{transform:translateY(1px)!important;}
.qr-edit-ticket-item{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:10px!important;}
.qr-edit-ticket-text{flex:1 1 auto!important;min-width:0!important;}
.qr-edit-ticket-action{flex:0 0 auto!important;align-self:flex-start!important;margin-top:0!important;padding-top:0!important;display:flex!important;align-items:flex-start!important;justify-content:flex-end!important;}
.qr-edit-ticket-action .btn{margin-top:0!important;white-space:nowrap!important;}
@media(max-width:520px){
  .qr-mobile-notice-view-btn-v130{font-size:11px!important;padding:7px 8px!important;}
  .qr-edit-ticket-item{align-items:flex-start!important;}
}

/* ===== DASH 2 - Nhật ký hàng ngày redesigned ===== */
body.page-dash2 .topbar-action-primary,
body.page-dash2 .topbar-action-link.topbar-action-primary{
  background:#0b78d1!important;
  border-color:#0b78d1!important;
  color:#fff!important;
}
body.page-dash2 .topbar-action-primary:hover,
body.page-dash2 .topbar-action-link.topbar-action-primary:hover{
  background:#0967b2!important;
  border-color:#0967b2!important;
  color:#fff!important;
}
body.page-dash2 .card,
body.page-dash2 label,
body.page-dash2 input,
body.page-dash2 select,
body.page-dash2 table,
body.page-dash2 th,
body.page-dash2 td{font-weight:400!important;}
.dash2-filter-card{padding:8px 12px!important;margin-bottom:8px!important;}
.dash2-filter-grid{
  display:grid;
  grid-template-columns:.72fr .62fr .62fr 1.1fr 1.45fr 1.9fr 1.1fr 1.35fr;
  gap:8px;
  align-items:end;
}
.dash2-filter-grid > div{min-width:0;}
.dash2-filter-grid label{display:block;font-size:10px;color:#61728b;margin-bottom:2px;white-space:nowrap;}
.dash2-filter-grid input,.dash2-filter-grid select{width:100%;height:30px;min-height:30px;border:1px solid #c8d6e6;border-radius:7px;padding:0 8px;font-size:12px;background:#fff;}
.dash2-device-card{padding:10px 14px 12px!important;margin-bottom:8px!important;}
.dash2-print-title{text-align:center;font-size:18px;letter-spacing:.2px;color:#0f2f4c;margin-bottom:10px;text-transform:uppercase;font-weight:600!important;}
.dash2-info-grid{display:grid;grid-template-columns:1fr 1.25fr 1fr 178px 178px;grid-template-rows:repeat(3,54px);gap:7px;align-items:stretch;}
.dash2-output{border:1px solid #cdd9e8;border-radius:9px;background:#fbfdff;padding:6px 10px;min-width:0;display:flex;flex-direction:column;justify-content:center;}
.dash2-output label{display:block;font-size:10px;color:#65758a;margin:0 0 3px;line-height:1.15;font-weight:500!important;}
.dash2-output div{font-size:13px;color:#162b42;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.2;font-weight:400!important;}
.dash2-media{border:1px solid #cdd9e8;border-radius:9px;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:7px;aspect-ratio:1/1;}
.dash2-device-image{grid-column:4;grid-row:1 / span 3;min-width:178px;}
.dash2-device-qr{grid-column:5;grid-row:1 / span 3;min-width:178px;}
.dash2-media img{max-width:100%;max-height:100%;object-fit:contain;display:block;}
.dash2-separator{display:none!important;}
.dash2-journal-shell{padding:0!important;overflow:hidden!important;margin-top:8px!important;display:flex;flex-direction:column;flex:1 1 auto;height:calc(100vh - 382px);min-height:230px;max-height:calc(100vh - 382px);}
.dash2-table-head{overflow:hidden;border-radius:10px 10px 0 0;flex:0 0 auto;}
.dash2-table-body{overflow:auto!important;-webkit-overflow-scrolling:touch;border-left:1px solid #dbe5f0;border-right:1px solid #dbe5f0;flex:1 1 auto;min-height:72px;max-height:none;}
.dash2-table-foot{border-radius:0 0 10px 10px;overflow:visible;flex:0 0 auto;background:#fff;border:1px solid #dbe5f0;border-top:0;position:relative;z-index:5;min-height:36px;}
.dash2-journal-table{width:100%;border-collapse:collapse;table-layout:fixed;}
.dash2-journal-table th{background:#8db4db;color:#102a43;text-align:center;font-size:12px;border:1px solid #729ec8;padding:8px 6px;font-weight:600!important;}
.dash2-journal-table td{border:1px solid #dbe5f0;padding:7px 6px;font-size:12px;vertical-align:middle;background:#fff;font-weight:400!important;}
.dash2-journal-table th:nth-child(1),.dash2-journal-table td:nth-child(1){width:52px;text-align:center;}
.dash2-journal-table th:nth-child(2),.dash2-journal-table td:nth-child(2){width:12%;}
.dash2-journal-table th:nth-child(3),.dash2-journal-table td:nth-child(3){width:21%;}
.dash2-journal-table th:nth-child(4),.dash2-journal-table td:nth-child(4){width:21%;}
.dash2-journal-table th:nth-child(5),.dash2-journal-table td:nth-child(5){width:11%;text-align:center;}
.dash2-journal-table th:nth-child(6),.dash2-journal-table td:nth-child(6){width:13%;}
.dash2-journal-table th:nth-child(7),.dash2-journal-table td:nth-child(7){width:13%;}
.dash2-journal-table th:nth-child(8),.dash2-journal-table td:nth-child(8){width:12%;}
@media (max-width:1280px){
  .dash2-filter-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
  .dash2-info-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto;}
  .dash2-device-image,.dash2-device-qr{grid-column:auto;grid-row:auto;min-height:180px;min-width:0;width:100%;}
  .dash2-journal-shell{height:auto;max-height:none;min-height:260px;}
  .dash2-table-body{height:clamp(170px, calc(100vh - 510px), 340px);max-height:340px;}
}
@media (max-width:760px){
  .dash2-filter-grid{grid-template-columns:1fr 1fr;}
  .dash2-info-grid{grid-template-columns:1fr;}
  .dash2-output div{white-space:normal;}
  .dash2-journal-shell{height:auto;min-height:240px;}
  .dash2-table-body{height:38vh;max-height:none;}
}

/* V1.3.1 DASH 2 footer visibility: three blocks header/body/footer */
body.page-dash2 .page-body{display:flex;flex-direction:column;min-height:0;overflow:hidden!important;padding-top:1px;padding-bottom:8px;}
body.page-dash2 .dash2-filter-card,body.page-dash2 .dash2-device-card{flex:0 0 auto;}
body.page-dash2 .dash2-table-head{flex:0 0 auto;}
body.page-dash2 .dash2-table-body{flex:1 1 auto;min-height:80px;overflow:auto!important;}
body.page-dash2 .dash2-table-foot{flex:0 0 auto;display:block!important;}
body.page-dash2 .dash2-table-foot .table-footer-bar{margin:0!important;border:0!important;border-radius:0 0 7px 7px!important;min-height:36px!important;padding:4px 8px!important;}
body.page-dash2 .dash2-table-foot .table-footer-left,body.page-dash2 .dash2-table-foot .table-footer-center,body.page-dash2 .dash2-table-foot .table-footer-right{font-size:11px!important;}
@media (max-height:760px){body.page-dash2 .dash2-device-card{padding-top:6px!important;padding-bottom:6px!important;margin-bottom:6px!important}.dash2-info-grid{grid-template-rows:repeat(3,44px);gap:5px}.dash2-print-title{font-size:16px;margin-bottom:6px}.dash2-output{padding:4px 8px}.dash2-journal-shell{height:calc(100vh - 318px);max-height:calc(100vh - 318px);min-height:190px}}
@media (max-width:1280px){.dash2-journal-shell{height:auto;max-height:none;min-height:260px}.dash2-table-body{height:clamp(170px, calc(100vh - 510px), 340px);max-height:340px}}

/* V1.3.2 workday notification settings save/status list fix */
.notification-workday-config-v132{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:10px;align-items:end;margin:10px 0 14px;padding:12px;border:1px solid #bfdbfe;border-radius:14px;background:#f8fbff}
.notification-workday-config-v132 label{display:flex;flex-direction:column;gap:5px;font-weight:700;color:#334155}
.notification-workday-config-v132 .notification-inline-check-v130{flex-direction:row!important;align-items:center!important;min-height:38px}
.notification-workday-config-v132 select,.notification-workday-config-v132 input[type="time"],.workday-time-select-v132{width:100%;min-height:36px;border:1px solid #dbe3ef;border-radius:10px;padding:6px 9px;background:#fff}
.notification-workday-note-v132{grid-column:1/-1;line-height:1.35}
@media(max-width:1100px){.notification-workday-config-v132{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.notification-workday-config-v132{grid-template-columns:1fr}}
/* V1.3.3 - thêm thông báo bảo trì dạng một dòng phía trên bảng */
.notification-alert-add-row-v133{display:grid!important;grid-template-columns:1.35fr 1.25fr .9fr 1.35fr .9fr 1.25fr auto auto auto auto;gap:10px;align-items:end;margin:8px 0 14px;padding:12px;border:1px solid #dbe7f3;border-radius:14px;background:#f8fbff}
.notification-alert-add-row-v133 label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700;color:#334155;min-width:0}
.notification-alert-add-row-v133 .notification-inline-check-v130{flex-direction:row!important;align-items:center!important;justify-content:center!important;min-height:38px;white-space:nowrap}
.notification-alert-add-row-v133 input:not([type="checkbox"]),.notification-alert-add-row-v133 select{width:100%;min-height:38px;border:1px solid #dbe3ef;border-radius:10px;padding:6px 9px;background:#fff;box-sizing:border-box}
.notification-alert-add-btn-v133{min-height:38px;white-space:nowrap;align-self:end}
@media(max-width:1280px){.notification-alert-add-row-v133{grid-template-columns:repeat(4,minmax(0,1fr))}.notification-alert-add-btn-v133{width:100%}}
@media(max-width:760px){.notification-alert-add-row-v133{grid-template-columns:1fr}}


/* V1.3.12 - Daily input/mobile maintenance failure-content lists and Dash 2 spacing/scroll */
body.page-dash2 .dash2-journal-shell{
  margin-top:22px!important;
}
body.page-dash2 .dash2-output{
  min-height:0;
}
body.page-dash2 .dash2-output div{
  white-space:normal!important;
  overflow:auto!important;
  text-overflow:clip!important;
  max-height:38px;
  padding-right:3px;
  -webkit-overflow-scrolling:touch;
}
body.page-dash2 .dash2-output div::-webkit-scrollbar{width:5px;height:5px;}
@media (max-height:760px){
  body.page-dash2 .dash2-journal-shell{margin-top:16px!important;}
  body.page-dash2 .dash2-output div{max-height:32px;}
}
@media (max-width:760px){
  body.page-dash2 .dash2-journal-shell{margin-top:16px!important;}
  body.page-dash2 .dash2-output div{max-height:80px;}
}

/* V1.3.3 - Dash 2 filter option popup */
body.page-dash2 .dash2-filter-grid{
  grid-template-columns:repeat(var(--dash2-filter-cols,7), minmax(110px,1fr))!important;
}
body.page-dash2 .dash2-filter-grid > [data-dash2-filter-field]{min-width:0;}
.dash2-option-modal{display:none;position:fixed;inset:0;z-index:10000;align-items:center;justify-content:center;padding:18px;}
.dash2-option-modal.show{display:flex;}
.dash2-option-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.38);}
.dash2-option-panel{position:relative;width:min(760px,96vw);max-height:86vh;overflow:auto;background:#fff;border-radius:16px;box-shadow:0 20px 55px rgba(15,23,42,.25);border:1px solid #dbe7f3;padding:14px;}
.dash2-option-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px;color:#0f2f4c;font-size:16px;}
.dash2-option-close{border:0;background:#eef5fc;border-radius:10px;width:32px;height:32px;font-size:22px;line-height:1;cursor:pointer;color:#334155;}
.dash2-option-note{font-size:12px;color:#64748b;margin-bottom:12px;}
.dash2-option-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
.dash2-option-check{display:flex!important;align-items:center;gap:8px;border:1px solid #dbe7f3;border-radius:10px;background:#f8fbff;padding:8px 10px;font-size:12px;color:#1f3349;cursor:pointer;}
.dash2-option-check input{width:auto!important;height:auto!important;min-height:0!important;}
.dash2-option-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px;}
@media(max-width:1280px){body.page-dash2 .dash2-filter-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;}.dash2-option-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:640px){.dash2-option-grid{grid-template-columns:1fr;}}

/* V1.3.4 - Dash 2 daily journal responsive height and full-row links */
body.page-dash2 .page-body{
  min-height:calc(100vh - 78px)!important;
  height:calc(100vh - 78px)!important;
  overflow:hidden!important;
}
body.page-dash2 .dash2-filter-card{flex:0 0 auto!important;}
body.page-dash2 .dash2-journal-shell{
  flex:1 1 auto!important;
  height:auto!important;
  max-height:none!important;
  min-height:0!important;
  margin-top:8px!important;
}
body.page-dash2 .dash2-table-body{
  flex:1 1 auto!important;
  height:auto!important;
  max-height:none!important;
  min-height:0!important;
}
body.page-dash2 .dash2-journal-table td a{
  display:block;
  width:100%;
  min-height:100%;
  color:inherit;
  text-decoration:none;
  white-space:normal;
  word-break:break-word;
}
body.page-dash2 .dash2-edit-row{cursor:pointer;}
body.page-dash2 .dash2-edit-row:hover td{background:#f4f9ff!important;}
body.page-dash2 .dash2-journal-table th:nth-child(1),body.page-dash2 .dash2-journal-table td:nth-child(1){width:48px;text-align:center;}
body.page-dash2 .dash2-journal-table th:nth-child(2),body.page-dash2 .dash2-journal-table td:nth-child(2){width:12%;}
body.page-dash2 .dash2-journal-table th:nth-child(3),body.page-dash2 .dash2-journal-table td:nth-child(3){width:20%;}
body.page-dash2 .dash2-journal-table th:nth-child(4),body.page-dash2 .dash2-journal-table td:nth-child(4){width:20%;}
body.page-dash2 .dash2-journal-table th:nth-child(5),body.page-dash2 .dash2-journal-table td:nth-child(5){width:10%;text-align:center;}
body.page-dash2 .dash2-journal-table th:nth-child(6),body.page-dash2 .dash2-journal-table td:nth-child(6){width:14%;}
body.page-dash2 .dash2-journal-table th:nth-child(7),body.page-dash2 .dash2-journal-table td:nth-child(7){width:14%;}
body.page-dash2 .dash2-journal-table th:nth-child(8),body.page-dash2 .dash2-journal-table td:nth-child(8){width:10%;}
@media (max-width:1280px){
  body.page-dash2 .page-body{height:auto!important;min-height:0!important;overflow:visible!important;}
  body.page-dash2 .dash2-journal-shell{min-height:520px!important;}
  body.page-dash2 .dash2-table-body{height:60vh!important;max-height:none!important;}
}
@media (max-width:760px){
  body.page-dash2 .dash2-table-head,body.page-dash2 .dash2-table-body{overflow:auto!important;}
  body.page-dash2 .dash2-journal-table{min-width:980px;}
  body.page-dash2 .dash2-journal-shell{min-height:70vh!important;}
  body.page-dash2 .dash2-table-body{height:62vh!important;}
}

/* V1.3.6 - Dash 2 add device column and keep widths aligned */
body.page-dash2 .dash2-journal-table th:nth-child(1),body.page-dash2 .dash2-journal-table td:nth-child(1){width:44px!important;text-align:center;}
body.page-dash2 .dash2-journal-table th:nth-child(2),body.page-dash2 .dash2-journal-table td:nth-child(2){width:15%!important;}
body.page-dash2 .dash2-journal-table th:nth-child(3),body.page-dash2 .dash2-journal-table td:nth-child(3){width:10%!important;}
body.page-dash2 .dash2-journal-table th:nth-child(4),body.page-dash2 .dash2-journal-table td:nth-child(4){width:17%!important;}
body.page-dash2 .dash2-journal-table th:nth-child(5),body.page-dash2 .dash2-journal-table td:nth-child(5){width:17%!important;}
body.page-dash2 .dash2-journal-table th:nth-child(6),body.page-dash2 .dash2-journal-table td:nth-child(6){width:9%!important;text-align:center;}
body.page-dash2 .dash2-journal-table th:nth-child(7),body.page-dash2 .dash2-journal-table td:nth-child(7){width:12%!important;}
body.page-dash2 .dash2-journal-table th:nth-child(8),body.page-dash2 .dash2-journal-table td:nth-child(8){width:12%!important;}
body.page-dash2 .dash2-journal-table th:nth-child(9),body.page-dash2 .dash2-journal-table td:nth-child(9){width:8%!important;}
@media (max-width:760px){body.page-dash2 .dash2-journal-table{min-width:1120px;}}

/* V1.3.7 - Dash 2 journal table visual fix: one real table, sticky header, compact rows */
body.page-dash2 .dash2-table-head{display:none!important;}
body.page-dash2 .dash2-table-body{
  border-left:0!important;
  border-right:0!important;
  overflow:auto!important;
  scrollbar-gutter:stable;
}
body.page-dash2 .dash2-journal-table{
  width:100%!important;
  min-width:1280px;
  table-layout:fixed!important;
  border-collapse:separate!important;
  border-spacing:0!important;
}
body.page-dash2 .dash2-journal-table thead th{
  position:sticky;
  top:0;
  z-index:4;
  height:34px!important;
  padding:6px 8px!important;
  line-height:1.15!important;
  vertical-align:middle!important;
  white-space:normal!important;
  text-align:center!important;
  box-sizing:border-box!important;
  border-top:0!important;
}
body.page-dash2 .dash2-journal-table tbody tr{height:auto!important;}
body.page-dash2 .dash2-journal-table td{
  height:44px!important;
  max-height:44px!important;
  padding:5px 8px!important;
  line-height:1.25!important;
  vertical-align:middle!important;
  box-sizing:border-box!important;
}
body.page-dash2 .dash2-journal-table td a{
  min-height:0!important;
  height:auto!important;
  max-height:34px!important;
  overflow:hidden!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  line-height:1.25!important;
}
body.page-dash2 .dash2-journal-table th:nth-child(1),body.page-dash2 .dash2-journal-table td:nth-child(1){width:50px!important;min-width:50px!important;text-align:center!important;}
body.page-dash2 .dash2-journal-table th:nth-child(2),body.page-dash2 .dash2-journal-table td:nth-child(2){width:105px!important;}
body.page-dash2 .dash2-journal-table th:nth-child(3),body.page-dash2 .dash2-journal-table td:nth-child(3){width:170px!important;}
body.page-dash2 .dash2-journal-table th:nth-child(4),body.page-dash2 .dash2-journal-table td:nth-child(4){width:135px!important;}
body.page-dash2 .dash2-journal-table th:nth-child(5),body.page-dash2 .dash2-journal-table td:nth-child(5){width:200px!important;}
body.page-dash2 .dash2-journal-table th:nth-child(6),body.page-dash2 .dash2-journal-table td:nth-child(6){width:200px!important;}
body.page-dash2 .dash2-journal-table th:nth-child(7),body.page-dash2 .dash2-journal-table td:nth-child(7){width:110px!important;text-align:center!important;}
body.page-dash2 .dash2-journal-table th:nth-child(8),body.page-dash2 .dash2-journal-table td:nth-child(8){width:145px!important;}
body.page-dash2 .dash2-journal-table th:nth-child(9),body.page-dash2 .dash2-journal-table td:nth-child(9){width:160px!important;}
body.page-dash2 .dash2-journal-table th:nth-child(10),body.page-dash2 .dash2-journal-table td:nth-child(10){width:140px!important;}
body.page-dash2 .dash2-journal-shell{border-radius:9px!important;}
body.page-dash2 .dash2-table-foot{border-left:1px solid #dbe5f0!important;border-right:1px solid #dbe5f0!important;}
@media (max-width:760px){body.page-dash2 .dash2-journal-table{min-width:1380px!important;}}
/* V1.3.22 Dash2: table column chooser in Options popup */
.dash2-option-section-title{font-size:12px;font-weight:700;color:#0f2f4c;margin:12px 0 8px;padding-top:8px;border-top:1px solid #e5edf6;}
.dash2-option-section-title:first-of-type{border-top:0;margin-top:0;padding-top:0;}
body.page-dash2 .dash2-journal-table [data-dash2-col]{transition:none;}

/* V1.3.29 - Dash 2 smart filter labels/all-state fix
   Dash 2 must show real labels and the default "Tất cả" value immediately.
   The global floating-label UI hides empty select text until hover; that broke
   cấp 2+ default-all filters. Override it only inside the Dash 2 filter bar. */
body.page-dash2 .dash2-filter-grid .form-floating-ui-field > label:not(.check-inline):not(.center-check):not(.table-active-check):not(.spare-active-check){
  position:static!important;
  display:block!important;
  opacity:1!important;
  top:auto!important;
  left:auto!important;
  transform:none!important;
  z-index:auto!important;
  margin:0 0 2px!important;
  padding:0!important;
  max-width:100%!important;
  background:transparent!important;
  color:#61728b!important;
  font-size:10px!important;
  font-weight:400!important;
  line-height:1.15!important;
  pointer-events:auto!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body.page-dash2 .dash2-filter-grid .form-floating-ui-field > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]),
body.page-dash2 .dash2-filter-grid .form-floating-ui-field > select,
body.page-dash2 .dash2-filter-grid .form-floating-ui-field.floating-select > select{
  width:100%!important;
  height:30px!important;
  min-height:30px!important;
  line-height:30px!important;
  padding:0 8px!important;
  color:#172033!important;
  background:#fff!important;
}
body.page-dash2 .dash2-filter-grid .form-floating-ui-field.is-empty-select:not(:hover):not(:focus-within) > select,
body.page-dash2 .dash2-filter-grid .form-floating-ui-field.floating-select.is-empty-select:not(:hover):not(:focus-within) > select,
body.page-dash2 .dash2-filter-grid select.dash2-filter-input{
  color:#172033!important;
}


/* V1.3.3.1 inherited fix - Daily journal fills the remaining viewport.
   Header is a separate green block; only the table body scrolls. */
body.page-dash2 .dash2-journal-shell{
  display:flex!important;
  flex-direction:column!important;
  height:calc(100dvh - 165px)!important;
  max-height:calc(100dvh - 165px)!important;
  min-height:430px!important;
  overflow:hidden!important;
  padding:0!important;
  border-radius:9px!important;
}
body.page-dash2 .dash2-table-head{
  flex:0 0 auto!important;
  display:block!important;
  overflow:hidden!important;
  background:#8db4db!important;
  border:1px solid #7da7cf!important;
  border-bottom:0!important;
  border-radius:9px 9px 0 0!important;
  scrollbar-gutter:stable!important;
}
body.page-dash2 .dash2-journal-head-table th{
  position:static!important;
  background:#8db4db!important;
  color:#0f2238!important;
  font-weight:900!important;
  text-align:center!important;
  height:36px!important;
  padding:7px 8px!important;
  border:1px solid #729ec8!important;
  white-space:normal!important;
}
body.page-dash2 .dash2-table-body{
  flex:1 1 auto!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  overflow:auto!important;
  background:#fff!important;
  border:1px solid #dbe5f0!important;
  border-top:0!important;
  border-radius:0!important;
  scrollbar-gutter:stable!important;
}
body.page-dash2 .dash2-table-foot{
  flex:0 0 auto!important;
  background:#fff!important;
  border:1px solid #dbe5f0!important;
  border-top:0!important;
  border-radius:0 0 9px 9px!important;
}
body.page-dash2 .dash2-journal-table{
  width:100%!important;
  min-width:1280px!important;
  table-layout:fixed!important;
  border-collapse:collapse!important;
  margin:0!important;
}
body.page-dash2 .dash2-journal-body-table td{
  background:#fff!important;
  height:44px!important;
  padding:5px 8px!important;
  border:1px solid #dbe5f0!important;
}
body.page-dash2 .dash2-journal-body-table tr:hover td{background:#eef7ff!important;}
body.page-dash2 .dash2-journal-table col.d2-col-stt{width:50px!important;}
body.page-dash2 .dash2-journal-table col.d2-col-hs{width:105px!important;}
body.page-dash2 .dash2-journal-table col.d2-col-device{width:170px!important;}
body.page-dash2 .dash2-journal-table col.d2-col-work{width:135px!important;}
body.page-dash2 .dash2-journal-table col.d2-col-failure{width:200px!important;}
body.page-dash2 .dash2-journal-table col.d2-col-action{width:200px!important;}
body.page-dash2 .dash2-journal-table col.d2-col-time{width:110px!important;}
body.page-dash2 .dash2-journal-table col.d2-col-other{width:145px!important;}
body.page-dash2 .dash2-journal-table col.d2-col-spare{width:160px!important;}
body.page-dash2 .dash2-journal-table col.d2-col-note{width:140px!important;}
@media (max-height:760px){
  body.page-dash2 .dash2-journal-shell{height:calc(100dvh - 145px)!important;max-height:calc(100dvh - 145px)!important;min-height:310px!important;}
}
@media (max-width:760px){
  body.page-dash2 .dash2-journal-shell{height:72dvh!important;max-height:none!important;min-height:320px!important;}
  body.page-dash2 .dash2-journal-table{min-width:1380px!important;}
}

/* V1.3.32: Nhật ký hàng ngày - thêm Xác nhận/Tình trạng, dời Giờ sau Loại bảo trì */
body.page-dash2 .dash2-journal-table{min-width:1640px!important;}
body.page-dash2 .dash2-journal-table col.d2-col-stt{width:50px!important;}
body.page-dash2 .dash2-journal-table col.d2-col-hs{width:105px!important;}
body.page-dash2 .dash2-journal-table col.d2-col-device{width:170px!important;}
body.page-dash2 .dash2-journal-table col.d2-col-work{width:135px!important;}
body.page-dash2 .dash2-journal-table col.d2-col-time{width:110px!important;}
body.page-dash2 .dash2-journal-table col.d2-col-confirm{width:145px!important;}
body.page-dash2 .dash2-journal-table col.d2-col-status{width:130px!important;}
body.page-dash2 .dash2-journal-table col.d2-col-failure{width:200px!important;}
body.page-dash2 .dash2-journal-table col.d2-col-action{width:200px!important;}
body.page-dash2 .dash2-journal-table col.d2-col-other{width:145px!important;}
body.page-dash2 .dash2-journal-table col.d2-col-spare{width:160px!important;}
body.page-dash2 .dash2-journal-table col.d2-col-note{width:140px!important;}
body.page-dash2 .dash2-journal-table [data-dash2-col="time"],
body.page-dash2 .dash2-journal-table [data-dash2-col="status"]{text-align:center!important;}
@media (max-width:760px){body.page-dash2 .dash2-journal-table{min-width:1640px!important;}}


/* package-name-only fix: compact double-click tables */
body.page-dash2 .dash2-journal-table,
body.page-journal-input .maintenance-log-table,
body.page-maintenance .maintenance-log-table{table-layout:fixed!important;}
body.page-dash2 .dash2-journal-table th,
body.page-dash2 .dash2-journal-table td,
body.page-journal-input .maintenance-log-table th,
body.page-journal-input .maintenance-log-table td,
body.page-maintenance .maintenance-log-table th,
body.page-maintenance .maintenance-log-table td{height:28px!important;max-height:28px!important;padding:3px 6px!important;line-height:1.25!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;vertical-align:middle!important;}
body.page-dash2 .dash2-edit-row,
body.page-dash3 .dash3-stop-row,
body.page-journal-input .maintenance-edit-row,
body.page-maintenance .maintenance-edit-row{cursor:pointer;}
body.page-dash2 .dash2-edit-row span,
body.page-dash3 .dash3-stop-row span,
body.page-journal-input .maintenance-edit-row td,
body.page-maintenance .maintenance-edit-row td{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
body.page-dash2 .dash2-journal-table col.d2-col-hs{width:105px!important;}
body.page-dash2 .dash2-journal-table col.d2-col-device{width:190px!important;}
body.page-dash2 .dash2-journal-table col.d2-col-time{width:100px!important;}
body.page-dash2 .dash2-journal-table col.d2-col-status{width:120px!important;}
body.page-dash2 .dash2-journal-table col.d2-col-failure,
body.page-dash2 .dash2-journal-table col.d2-col-action{width:210px!important;}
body.page-dash2 .dash2-journal-table col.d2-col-note{width:150px!important;}
body.page-journal-input .maintenance-log-table col.ml-col-hs,
body.page-maintenance .maintenance-log-table col.ml-col-hs{width:105px!important;}
body.page-journal-input .maintenance-log-table col.ml-col-time,
body.page-maintenance .maintenance-log-table col.ml-col-time{width:105px!important;}
body.page-journal-input .maintenance-log-table col.ml-col-content,
body.page-journal-input .maintenance-log-table col.ml-col-action,
body.page-maintenance .maintenance-log-table col.ml-col-content,
body.page-maintenance .maintenance-log-table col.ml-col-action{width:210px!important;}
body.page-journal-input .maintenance-log-table col.ml-col-note,
body.page-maintenance .maintenance-log-table col.ml-col-note{width:150px!important;}


/* Maintenance_V1_3_3_13 package fix: keep QR screen 2 maintenance buttons in two stable columns on all mobile browsers. */
body.page-qr-maintenance .qr-maintenance-main-actions{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:stretch!important;
  justify-content:space-between!important;
  gap:10px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  margin-top:10px!important;
}
body.page-qr-maintenance .qr-maintenance-main-actions > .qr-maintenance-start-col,
body.page-qr-maintenance .qr-maintenance-main-actions > .qr-maintenance-finish-col{
  flex:1 1 0!important;
  width:calc(50% - 5px)!important;
  max-width:calc(50% - 5px)!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
body.page-qr-maintenance .qr-maintenance-main-actions > .qr-maintenance-start-col .qr-option-card,
body.page-qr-maintenance .qr-maintenance-main-actions > .qr-maintenance-finish-col{
  width:100%!important;
  height:100%!important;
  min-height:104px!important;
  box-sizing:border-box!important;
}
body.page-qr-maintenance .qr-maintenance-main-actions .qr-option-card h4,
body.page-qr-maintenance .qr-maintenance-main-actions .qr-option-card p{
  overflow-wrap:normal!important;
  word-break:normal!important;
}
@media(max-width:360px){
  body.page-qr-maintenance .qr-maintenance-main-actions{gap:8px!important;}
  body.page-qr-maintenance .qr-maintenance-main-actions > .qr-maintenance-start-col,
  body.page-qr-maintenance .qr-maintenance-main-actions > .qr-maintenance-finish-col{
    width:calc(50% - 4px)!important;
    max-width:calc(50% - 4px)!important;
  }
  body.page-qr-maintenance .qr-maintenance-main-actions .qr-option-card{padding:10px!important;}
  body.page-qr-maintenance .qr-maintenance-main-actions .qr-option-card h4{font-size:14px!important;}
  body.page-qr-maintenance .qr-maintenance-main-actions .qr-option-card p{font-size:11px!important;}
}

/* Maintenance_V1_3_3_14 package fix: equalize QR screen 2 start/finish maintenance cards. */
body.page-qr-maintenance .qr-maintenance-main-actions{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  grid-auto-rows:1fr!important;
  align-items:stretch!important;
  gap:10px!important;
}
body.page-qr-maintenance .qr-maintenance-main-actions > .qr-maintenance-start-col,
body.page-qr-maintenance .qr-maintenance-main-actions > .qr-maintenance-finish-col{
  display:flex!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  height:100%!important;
  align-self:stretch!important;
  box-sizing:border-box!important;
}
body.page-qr-maintenance .qr-maintenance-main-actions > .qr-maintenance-start-col .qr-option-card,
body.page-qr-maintenance .qr-maintenance-main-actions > .qr-maintenance-finish-col{
  flex:1 1 auto!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:center!important;
  width:100%!important;
  height:100%!important;
  min-height:106px!important;
  box-sizing:border-box!important;
}
body.page-qr-maintenance .qr-maintenance-main-actions .qr-option-card h4{margin-top:0!important;}
body.page-qr-maintenance .qr-maintenance-main-actions .qr-option-card p{margin-bottom:0!important;}
@media(max-width:360px){
  body.page-qr-maintenance .qr-maintenance-main-actions{gap:8px!important;}
  body.page-qr-maintenance .qr-maintenance-main-actions > .qr-maintenance-start-col,
  body.page-qr-maintenance .qr-maintenance-main-actions > .qr-maintenance-finish-col{width:auto!important;max-width:none!important;}
  body.page-qr-maintenance .qr-maintenance-main-actions > .qr-maintenance-start-col .qr-option-card,
  body.page-qr-maintenance .qr-maintenance-main-actions > .qr-maintenance-finish-col{min-height:101px!important;}
}


/* Maintenance_V1_3_3_16 package fix: restore QR screen 2 maintenance button colors and center both cards. */
body.page-qr-maintenance .qr-maintenance-main-actions .qr-option-card{
  text-align:center!important;
  align-items:center!important;
  justify-content:center!important;
}
body.page-qr-maintenance .qr-maintenance-main-actions .qr-option-card h4,
body.page-qr-maintenance .qr-maintenance-main-actions .qr-option-card p{
  width:100%!important;
  text-align:center!important;
}
body.page-qr-maintenance .qr-maintenance-main-actions .qr-maintenance-start-ready{
  background:#0f766e!important;
  border-color:#0f766e!important;
  color:#fff!important;
}
body.page-qr-maintenance .qr-maintenance-main-actions .qr-maintenance-start-ready h4,
body.page-qr-maintenance .qr-maintenance-main-actions .qr-maintenance-start-ready p{
  color:#fff!important;
}
body.page-qr-maintenance .qr-maintenance-main-actions .qr-maintenance-start-active,
body.page-qr-maintenance .qr-maintenance-main-actions .qr-maintenance-start-active:disabled{
  background:#dc2626!important;
  border-color:#dc2626!important;
  color:#fff!important;
  opacity:.62!important;
  filter:grayscale(.15)!important;
  cursor:not-allowed!important;
  pointer-events:none!important;
  box-shadow:none!important;
}
body.page-qr-maintenance .qr-maintenance-main-actions .qr-maintenance-start-active h4,
body.page-qr-maintenance .qr-maintenance-main-actions .qr-maintenance-start-active p{
  color:#fff!important;
}
body.page-qr-maintenance .qr-maintenance-main-actions .qr-maintenance-finish-ready{
  background:#2563eb!important;
  border-color:#2563eb!important;
  color:#fff!important;
}
body.page-qr-maintenance .qr-maintenance-main-actions .qr-maintenance-finish-ready h4,
body.page-qr-maintenance .qr-maintenance-main-actions .qr-maintenance-finish-ready p{
  color:#fff!important;
}
body.page-qr-maintenance .qr-maintenance-main-actions .qr-maintenance-finish-disabled{
  background:#e5e7eb!important;
  border-color:#cbd5e1!important;
  color:#64748b!important;
  cursor:not-allowed!important;
  box-shadow:none!important;
  pointer-events:none!important;
}
body.page-qr-maintenance .qr-maintenance-main-actions .qr-maintenance-finish-disabled h4,
body.page-qr-maintenance .qr-maintenance-main-actions .qr-maintenance-finish-disabled p{
  color:#64748b!important;
}


/* Maintenance_V1_3_3_86 package fix: dash3 downtime stats popup. */
body.page-dash3 .dash3-stats-modal{display:none;position:fixed;inset:0;z-index:5000;align-items:center;justify-content:center;padding:24px;box-sizing:border-box;}
body.page-dash3 .dash3-stats-modal.show{display:flex;}
body.page-dash3 .dash3-stats-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.42);}
body.page-dash3 .dash3-stats-box{position:relative;width:min(1280px,96vw);max-height:88vh;background:#fff;border:1px solid #b7c9de;border-radius:12px;box-shadow:0 18px 48px rgba(15,23,42,.24);display:flex;flex-direction:column;overflow:hidden;}
body.page-dash3 .dash3-stats-head{display:flex;align-items:center;justify-content:center;min-height:48px;padding:10px 52px;border-bottom:1px solid #c8d7e7;background:#f8fbff;}
body.page-dash3 .dash3-stats-head h2{margin:0;color:#003b76;font-size:16px;font-weight:700;letter-spacing:.2px;text-align:center;}
body.page-dash3 .dash3-stats-close{position:absolute;right:12px;top:8px;width:32px;height:32px;border:1px solid #b9cbe0;border-radius:8px;background:#fff;color:#003b76;font-size:22px;line-height:1;cursor:pointer;}
body.page-dash3 .dash3-stats-table-wrap{overflow:auto;padding:12px;}
body.page-dash3 .dash3-stats-table{width:100%;border-collapse:collapse;min-width:920px;font-size:13px;color:#08233f;}
body.page-dash3 .dash3-stats-table th{background:#2f75b5;color:#fff;border:1px solid #95b5d5;padding:8px 10px;text-align:center;font-weight:600;white-space:nowrap;}
body.page-dash3 .dash3-stats-table td{border:1px solid #bfd0e2;padding:7px 10px;background:#fff;white-space:nowrap;}
body.page-dash3 .dash3-stats-table td.num{text-align:right;font-variant-numeric:tabular-nums;}
body.page-dash3 .dash3-stats-total-row td{background:#eef6ff;font-weight:600;}

/* V1.3.3.87 dash3 working-time setting popup */
body.page-dash3 .dash3-worktime-modal{display:none;position:fixed;inset:0;z-index:5100;align-items:center;justify-content:center;padding:18px;box-sizing:border-box;}
body.page-dash3 .dash3-worktime-modal.show{display:flex;}
body.page-dash3 .dash3-worktime-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.42);}
body.page-dash3 .dash3-worktime-box{position:relative;width:min(1480px,98vw);max-height:92vh;background:#fff;border:1px solid #b7c9de;border-radius:12px;box-shadow:0 18px 48px rgba(15,23,42,.24);display:flex;flex-direction:column;overflow:hidden;}
body.page-dash3 .dash3-worktime-head{display:grid;grid-template-columns:1fr auto 36px;align-items:center;gap:10px;min-height:48px;padding:10px 12px 10px 18px;border-bottom:1px solid #c8d7e7;background:#f8fbff;}
body.page-dash3 .dash3-worktime-head h2{margin:0;color:#003b76;font-size:16px;font-weight:700;letter-spacing:.2px;text-align:center;}
body.page-dash3 .dash3-worktime-month-tools{display:flex;align-items:center;gap:6px;color:#003b76;font-size:13px;font-weight:600;white-space:nowrap;}
body.page-dash3 .dash3-worktime-month-tools button{width:26px;height:26px;border:1px solid #b9cbe0;border-radius:7px;background:#fff;color:#003b76;cursor:pointer;font-size:18px;line-height:1;}
body.page-dash3 .dash3-worktime-close{width:32px;height:32px;border:1px solid #b9cbe0;border-radius:8px;background:#fff;color:#003b76;font-size:22px;line-height:1;cursor:pointer;}
body.page-dash3 .dash3-worktime-body{display:grid;grid-template-columns:1fr 1fr;gap:12px;overflow:auto;padding:12px;background:#eef4fa;}
body.page-dash3 .dash3-worktime-pane{background:#fff;border:1px solid #cbd9e8;border-radius:10px;padding:10px;min-width:0;}
body.page-dash3 .dash3-worktime-pane h3{margin:0 0 8px;color:#0a4275;font-size:14px;font-weight:600;text-align:center;}
body.page-dash3 .dash3-worktime-calendar{border:1px solid #d3dfec;border-radius:8px;overflow:visible;background:#fff;}
body.page-dash3 .dash3-worktime-week-head{display:grid;grid-template-columns:repeat(7,1fr);background:#2f75b5;color:#fff;font-size:11px;}
body.page-dash3 .dash3-worktime-week-head span{padding:5px 3px;text-align:center;border-right:1px solid rgba(255,255,255,.28);}
body.page-dash3 .dash3-worktime-days{display:grid;grid-template-columns:repeat(7,1fr);overflow:visible;}
body.page-dash3 .dash3-worktime-day{position:relative;min-height:44px;border-right:1px solid #dbe5ef;border-top:1px solid #dbe5ef;background:#fff;}
body.page-dash3 .dash3-worktime-day.is-empty{background:#f6f8fb;}
body.page-dash3 .dash3-worktime-day summary{list-style:none;cursor:pointer;padding:4px 5px;min-height:44px;box-sizing:border-box;}
body.page-dash3 .dash3-worktime-day summary::-webkit-details-marker{display:none;}
body.page-dash3 .dash3-worktime-day-num{display:block;font-size:11px;color:#003b76;font-weight:600;margin-bottom:2px;}
body.page-dash3 .dash3-worktime-day-text{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#334257;font-size:10px;line-height:1.2;}
body.page-dash3 .dash3-worktime-day-list{display:none;position:absolute;left:4px;top:42px;width:150px;z-index:20;background:#fff;border:1px solid #b8cbe0;border-radius:8px;box-shadow:0 10px 24px rgba(15,23,42,.18);padding:5px;}
body.page-dash3 .dash3-worktime-day[open] .dash3-worktime-day-list{display:block;}
body.page-dash3 .dash3-worktime-day-list label{display:flex;align-items:center;gap:5px;padding:4px 3px;font-size:11px;color:#0b2d4f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.page-dash3 .dash3-worktime-day-list input{width:13px;height:13px;flex:0 0 auto;}
body.page-dash3 .dash3-worktime-input-title{margin:10px 0 5px;color:#0a4275;font-size:12px;font-weight:600;}
body.page-dash3 .dash3-worktime-input-table{width:100%;border-collapse:collapse;font-size:11px;table-layout:fixed;}
body.page-dash3 .dash3-worktime-input-table th,body.page-dash3 .dash3-worktime-input-table td{border:1px solid #cbd9e8;padding:4px;text-align:center;}
body.page-dash3 .dash3-worktime-input-table th{background:#e8f2fc;color:#0a4275;font-weight:600;}
body.page-dash3 .dash3-worktime-input-table td:first-child{color:#0b2d4f;text-align:left;white-space:nowrap;}
body.page-dash3 .dash3-worktime-input-table input{width:100%;height:24px;border:1px solid #bdcde0;border-radius:6px;padding:2px 4px;font-size:11px;box-sizing:border-box;}
body.page-dash3 .dash3-worktime-actions{display:flex;justify-content:flex-end;gap:8px;padding:10px 12px;border-top:1px solid #c8d7e7;background:#f8fbff;}
@media (max-width:1100px){body.page-dash3 .dash3-worktime-body{grid-template-columns:1fr;}body.page-dash3 .dash3-worktime-box{max-height:94vh;}}


/* V1.3.3.91 dash3 line workday selection and stats color columns */
body.page-dash3 .dash3-worktime-day-list{max-height:280px;overflow:auto;width:185px;}
body.page-dash3 .dash3-worktime-day-list-title{margin:3px 2px 2px;padding-top:2px;border-top:1px solid #e1ebf5;color:#0a4275;font-size:10px;font-weight:600;line-height:1.2;}
body.page-dash3 .dash3-worktime-day-list-title:first-child{border-top:0;margin-top:0;padding-top:0;}
body.page-dash3 .dash3-worktime-line-title{margin-top:5px;}
body.page-dash3 .dash3-worktime-storage-line{opacity:.55;cursor:not-allowed;}
body.page-dash3 .dash3-stats-table th:nth-last-child(4),
body.page-dash3 .dash3-stats-table td.dash3-stats-total-col{background:#d9ecff;color:#003b76;font-weight:600;}
body.page-dash3 .dash3-stats-table th:last-child,
body.page-dash3 .dash3-stats-table td.dash3-stats-percent-col{background:#fff2cc;color:#7a4a00;font-weight:600;}
body.page-dash3 .dash3-stats-table th:nth-last-child(4),
body.page-dash3 .dash3-stats-table th:last-child{color:#fff;background:#1f6fb5;}
body.page-dash3 .dash3-stats-table .dash3-stats-total-row td.dash3-stats-total-col{background:#c7e2ff;}
body.page-dash3 .dash3-stats-table .dash3-stats-total-row td.dash3-stats-percent-col{background:#ffe8a3;}

/* Maintenance_V1_3_3_94 package fix: dash3 activity stats columns and month picker. */
body.page-dash3 .dash3-stats-head{gap:12px;flex-wrap:wrap;padding-right:52px;}
body.page-dash3 .dash3-stats-month-tools{display:flex;align-items:center;gap:6px;color:#003b76;font-size:13px;font-weight:600;white-space:nowrap;}
body.page-dash3 .dash3-stats-month-tools button{width:26px;height:26px;border:1px solid #b9cbe0;border-radius:7px;background:#fff;color:#003b76;cursor:pointer;font-size:18px;line-height:1;}
body.page-dash3 .dash3-stats-table{min-width:1120px;}
body.page-dash3 .dash3-stats-table th:nth-last-child(6),
body.page-dash3 .dash3-stats-table td.dash3-stats-total-col{background:#d9ecff;color:#003b76;font-weight:600;}
body.page-dash3 .dash3-stats-table th:nth-last-child(3),
body.page-dash3 .dash3-stats-table td.dash3-stats-percent-col{background:#fff2cc;color:#7a4a00;font-weight:600;}
body.page-dash3 .dash3-stats-table th:nth-last-child(2),
body.page-dash3 .dash3-stats-table td.dash3-stats-active-col{background:#e2f0d9;color:#215e18;font-weight:600;}
body.page-dash3 .dash3-stats-table th:last-child,
body.page-dash3 .dash3-stats-table td.dash3-stats-active-percent-col{background:#d9ead3;color:#215e18;font-weight:600;}
body.page-dash3 .dash3-stats-table th:nth-last-child(6),
body.page-dash3 .dash3-stats-table th:nth-last-child(3),
body.page-dash3 .dash3-stats-table th:nth-last-child(2),
body.page-dash3 .dash3-stats-table th:last-child{color:#fff;background:#1f6fb5;}
body.page-dash3 .dash3-stats-table .dash3-stats-total-row td.dash3-stats-total-col{background:#c7e2ff;}
body.page-dash3 .dash3-stats-table .dash3-stats-total-row td.dash3-stats-percent-col{background:#ffe8a3;}
body.page-dash3 .dash3-stats-table .dash3-stats-total-row td.dash3-stats-active-col{background:#d5e8ce;}
body.page-dash3 .dash3-stats-table .dash3-stats-total-row td.dash3-stats-active-percent-col{background:#cfe6c8;}

/* V1.3.4.6 - Devices table width tune: shrink voltage/power, widen line */
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:14%!important;}
body.page-devices .devices-grid-table col.dev-col-kind{width:10%!important;}
body.page-devices .devices-grid-table col.dev-col-type{width:5%!important;}
body.page-devices .devices-grid-table col.dev-col-line{width:5%!important;}
body.page-devices .devices-grid-table col.dev-col-status{width:20%!important;}
body.page-devices .devices-grid-table col.dev-col-actions{width:19%!important;}

/* SD Media Device V1.0.0 */
.sd-brand{display:flex;align-items:center;gap:10px;padding:14px 12px}.sd-brand img{max-height:42px;object-fit:contain}.sd-brand-title{display:flex;flex-direction:column;line-height:1.15}.sd-brand-title strong{font-size:14px;letter-spacing:.08em;color:#e0f2fe}.sd-brand-title span{font-size:11px;color:#93c5fd}.sd-topbar .topbar-action-link{white-space:nowrap}.sd-kicker{text-transform:uppercase;letter-spacing:.12em;font-weight:800;color:#2563eb;font-size:12px;margin-bottom:6px}.sd-hero-card{border:0;border-radius:24px;padding:24px;display:flex;justify-content:space-between;gap:20px;align-items:center;background:linear-gradient(135deg,#eef6ff,#ffffff 45%,#eff6ff);box-shadow:0 18px 46px rgba(15,23,42,.08);margin-bottom:16px}.sd-hero-card h2{font-size:28px;margin:0 0 8px;color:#0f172a}.sd-hero-card p{margin:0;color:#64748b;max-width:760px}.sd-flow-mini{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #dbeafe;border-radius:999px;padding:10px 14px;box-shadow:0 10px 24px rgba(37,99,235,.08);white-space:nowrap}.sd-flow-mini span{font-weight:800;color:#1d4ed8}.sd-flow-mini b{color:#94a3b8}.sd-stat-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:16px}.sd-stat-card{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:16px;box-shadow:0 10px 24px rgba(15,23,42,.05);min-height:108px;display:flex;flex-direction:column;justify-content:space-between}.sd-stat-card span{color:#64748b;font-weight:700;font-size:12px}.sd-stat-card strong{font-size:30px;color:#0f172a;line-height:1}.sd-stat-card em{font-style:normal;color:#2563eb;font-size:12px;font-weight:700}.sd-stat-accent{background:linear-gradient(135deg,#1d4ed8,#0f766e);border:0}.sd-stat-accent span,.sd-stat-accent strong,.sd-stat-accent em{color:#fff}.sd-dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}.sd-card-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.sd-card-title h3{margin:0;font-size:17px;color:#0f172a}.sd-card-title span{font-size:12px;color:#64748b;font-weight:700}.sd-chart-card,.sd-table-card,.sd-filter-card,.sd-form-card,.sd-upload-card,.sd-gallery-card,.sd-info-card,.sd-tabs,.sd-detail-hero{border-radius:20px;border:1px solid #e2e8f0;box-shadow:0 10px 30px rgba(15,23,42,.05)}.sd-bars{display:flex;flex-direction:column;gap:14px}.sd-bar-label{display:flex;justify-content:space-between;font-weight:800;font-size:13px;color:#334155;margin-bottom:6px}.sd-bar-track{height:12px;border-radius:999px;background:#e2e8f0;overflow:hidden}.sd-bar-track i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#2563eb,#14b8a6)}.sd-rank-list{display:flex;flex-direction:column;gap:8px}.sd-rank-item{display:flex;justify-content:space-between;gap:10px;align-items:center;border:1px solid #e2e8f0;border-radius:14px;padding:10px 12px;background:#f8fafc}.sd-rank-item strong{color:#0f172a}.sd-rank-item span{color:#64748b;font-size:12px;font-weight:700}.sd-filter-row{display:flex;gap:8px;align-items:end;flex-wrap:wrap}.sd-filter-row input,.sd-filter-row select{height:38px}.sd-search-input{min-width:360px}.sd-device-form .col-12{grid-column:span 12}.sd-check-field{display:flex;align-items:end}.sd-form-actions{display:flex;gap:10px;justify-content:flex-end}.sd-table-head{background:#0f70bd;border-radius:14px 14px 0 0;overflow:hidden}.sd-table-head table,.sd-table-body table{width:100%;border-collapse:collapse;table-layout:fixed}.sd-table-head th{background:#0f70bd;color:#fff;padding:10px 12px;font-size:13px;text-align:left;border-color:#0f70bd}.sd-table-body{max-height:470px;overflow:auto;border-left:1px solid #dbeafe;border-right:1px solid #dbeafe}.sd-table-body td{padding:10px 12px;border-bottom:1px solid #e2e8f0;background:#fff;vertical-align:middle}.sd-table-body tr:hover td{background:#eff6ff}.sd-table-body tr{cursor:pointer}.sd-table-foot,.list-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#eaf4ff;border:1px solid #bfdbfe;border-top:0;border-radius:0 0 14px 14px;padding:9px 12px;color:#1e40af;font-weight:800}.sd-table-thumb{width:54px;height:42px;object-fit:cover;border-radius:10px;border:1px solid #cbd5e1;background:#f8fafc}.sd-empty-thumb{width:54px;height:42px;border-radius:10px;border:1px dashed #cbd5e1;background:#f8fafc;color:#94a3b8;font-weight:800;font-size:11px;display:flex;align-items:center;justify-content:center}.sd-count-pill{display:inline-flex;background:#dbeafe;color:#1d4ed8;border-radius:999px;padding:3px 8px;font-weight:800;font-size:12px;margin-right:4px}.sd-device-list-card small{color:#64748b;font-weight:700}.sd-detail-hero{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px;background:linear-gradient(135deg,#fff,#f8fbff)}.sd-detail-main{display:flex;gap:16px;align-items:center}.sd-detail-photo{width:150px;height:112px;border-radius:18px;background:#e2e8f0;overflow:hidden;display:flex;align-items:center;justify-content:center;color:#64748b;font-weight:900}.sd-detail-photo img{width:100%;height:100%;object-fit:cover}.sd-detail-main h2{margin:0 0 6px;font-size:24px}.sd-detail-main p{margin:0;color:#64748b}.sd-chip-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.sd-chip-row span{background:#e0f2fe;color:#075985;border-radius:999px;padding:5px 10px;font-weight:800;font-size:12px}.sd-detail-actions{display:flex;gap:8px;align-items:center}.sd-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:10px;margin-bottom:12px}.sd-tabs a{padding:9px 12px;border-radius:999px;text-decoration:none;background:#f1f5f9;color:#334155;font-weight:800}.sd-tabs a.active{background:#1d4ed8;color:#fff}.sd-tabs b{display:inline-flex;margin-left:4px;background:rgba(255,255,255,.25);border-radius:999px;padding:0 6px}.sd-info-list{display:grid;grid-template-columns:150px 1fr;gap:9px 12px;margin:0}.sd-info-list dt{font-weight:800;color:#64748b}.sd-info-list dd{margin:0;color:#0f172a;font-weight:700}.sd-upload-form{display:grid;grid-template-columns:1.2fr 1fr 1fr auto;gap:8px;align-items:end}.sd-upload-form input{height:38px}.sd-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}.sd-image-card{border:1px solid #e2e8f0;border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.05)}.sd-image-preview{position:relative;display:block;height:180px;background:#f1f5f9}.sd-image-preview img{width:100%;height:100%;object-fit:cover;display:block}.sd-main-badge{position:absolute;top:10px;left:10px;background:#16a34a;color:#fff;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:900}.sd-image-body{padding:12px}.sd-image-body strong{display:block;color:#0f172a}.sd-image-body p{min-height:20px;margin:4px 0;color:#475569}.sd-image-body small{color:#64748b}.sd-copy-row{display:flex;gap:6px;padding:0 12px 12px}.sd-copy-row input{min-width:0;flex:1;height:34px;font-size:12px}.sd-image-edit{border-top:1px solid #e2e8f0;padding:10px 12px}.sd-image-edit summary{font-weight:800;color:#2563eb;cursor:pointer}.sd-image-edit-form{display:grid;gap:6px;margin-top:8px}.sd-image-edit-form input{height:34px}.sd-image-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.sd-image-actions form{display:inline}.sd-empty-gallery{grid-column:1/-1;padding:20px;text-align:center}.muted{color:#64748b}.danger-btn{color:#b91c1c!important;border-color:#fecaca!important;background:#fff5f5!important}
@media (max-width:1100px){.sd-stat-grid{grid-template-columns:repeat(3,1fr)}.sd-dashboard-grid{grid-template-columns:1fr}.sd-upload-form{grid-template-columns:1fr 1fr}.sd-hero-card{flex-direction:column;align-items:flex-start}.sd-search-input{min-width:240px}}
@media (max-width:720px){.sd-stat-grid{grid-template-columns:repeat(2,1fr)}.sd-filter-row{display:grid;grid-template-columns:1fr 1fr}.sd-filter-row .sd-search-input{grid-column:1/-1;min-width:0}.sd-upload-form{grid-template-columns:1fr}.sd-detail-hero,.sd-detail-main{flex-direction:column;align-items:flex-start}.sd-detail-photo{width:100%;height:180px}.sd-table-body{max-height:420px}.sd-flow-mini{overflow:auto;max-width:100%}}
