/* Sigmanex CMMS v1.3.1 - Operator Pre-start Maintenance History
   UI only, complements sky-blue / blue / yellow theme from v1.2.7. */
.sxwf-btn.sxph-history-button{background:#fffdf0!important;border:1px solid #f5cf59!important;color:#805600!important;font-weight:800!important;white-space:normal}
.sxwf-btn.sxph-history-button:hover{background:#fff3b9!important;border-color:#e3af23!important;color:#704b00!important}
#sxwf-modal .sxph-current{background:linear-gradient(120deg,#eff9ff 0%,#f8fcff 65%,#fff9de 100%);border:1px solid #cbe7f8;border-radius:16px;padding:17px 19px;margin-bottom:17px}
#sxwf-modal .sxph-current-head{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:13px}
#sxwf-modal .sxph-current-head span{font-size:10px;letter-spacing:.11em;font-weight:900;color:#277dab}
#sxwf-modal .sxph-current-head strong{font-size:11px;padding:6px 10px;background:#e5f4ff;border:1px solid #c8e4f9;border-radius:999px;color:#11669c}
#sxwf-modal .sxph-current-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 22px}
#sxwf-modal .sxph-current-grid>div{display:flex;flex-direction:column;gap:4px;min-width:0}
#sxwf-modal .sxph-current-grid small{font-size:11px;color:#6b8298;font-weight:680}
#sxwf-modal .sxph-current-grid b{font-size:13px;line-height:1.4;color:#1b3851;overflow-wrap:anywhere}
#sxwf-modal .sxph-current p{font-size:12px;line-height:1.6;margin:11px 0 0;color:#465e73}
#sxwf-modal .sxph-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;align-items:stretch;margin-bottom:15px}
#sxwf-modal .sxph-counter{display:flex;align-items:center;gap:11px;border:1px solid #d8eaf7;border-radius:13px;padding:13px;background:#fff}
#sxwf-modal .sxph-counter strong{font-weight:860;font-size:24px;letter-spacing:-.04em;color:#176da9;line-height:1}
#sxwf-modal .sxph-counter span{color:#54718b;font-weight:720;font-size:11px}
#sxwf-modal .sxph-overview p{grid-column:1/-1;font-size:11px;color:#778b9f;margin:0 1px;line-height:1.5}
#sxwf-modal .sxph-notice{padding:11px 14px;border:1px solid #f5dfa0;border-radius:11px;color:#86600e;background:#fff9e4;font-size:12px;line-height:1.6;margin-bottom:13px}
#sxwf-modal .sxph-notice.sxph-error{background:#fff3f1;border-color:#ffcfca;color:#a02b26}
#sxwf-modal .sxph-notice p{margin:4px 0 0}
#sxwf-modal .sxph-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}
#sxwf-modal .sxph-tabs{display:inline-flex;align-items:center;gap:4px;padding:4px;border-radius:12px;background:#edf6fb;border:1px solid #d4e8f8}
#sxwf-modal .sxph-tabs button{cursor:pointer;font-size:12px;font-weight:780;color:#466f8c;padding:8px 12px;border:0;background:transparent;border-radius:9px;white-space:nowrap}
#sxwf-modal .sxph-tabs button.active{background:#fff;border:1px solid #b9ddf4;box-shadow:0 4px 10px rgba(14,100,170,.08);color:#106daa}
#sxwf-modal .sxph-tabs button:disabled{cursor:not-allowed;opacity:.4}
#sxwf-modal .sxph-tabs b{display:inline-block;background:#e4f3fd;color:#18699c;border-radius:6px;font-size:10px;margin-left:4px;padding:3px 6px}
#sxwf-modal .sxph-type-control{display:flex;gap:8px;align-items:center;font-size:12px;font-weight:760;color:#506f85}
#sxwf-modal .sxph-type-control select{color:#1d5e8c;border:1px solid #cde5f5;border-radius:10px;background:#fff;padding:8px 12px;font-size:12px;outline-offset:2px}
#sxwf-modal .sxph-records{display:flex;flex-direction:column;gap:10px}
#sxwf-modal .sxph-entry{border:1px solid #dbe9f2;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 5px 16px rgba(23,81,119,.028)}
#sxwf-modal .sxph-entry[open]{border-color:#9bd1ef;box-shadow:0 10px 25px rgba(18,110,171,.08)}
#sxwf-modal .sxph-entry summary{display:flex;align-items:center;gap:13px;padding:13px 14px;cursor:pointer;list-style:none}
#sxwf-modal .sxph-entry summary::-webkit-details-marker{display:none}
#sxwf-modal .sxph-entry summary:focus-visible{outline:2px solid #1178be;outline-offset:-3px}
#sxwf-modal .sxph-entry-mark{width:35px;height:35px;min-width:35px;display:grid;place-items:center;border-radius:10px;background:#eaf5ff;color:#197cc4;font-size:15px;font-weight:950}
#sxwf-modal .sxph-entry-mark.corrective{color:#ad7710;background:#fff3ce}
#sxwf-modal .sxph-entry-title{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
#sxwf-modal .sxph-entry-title strong{font-size:12px;color:#1e3850;line-height:1.4}
#sxwf-modal .sxph-entry-title>span{font-size:11px;color:#6d8294}
#sxwf-modal .sxph-entry-title small{color:#415c75;font-size:11px;overflow-wrap:anywhere}
#sxwf-modal .sxph-kind{display:inline-block;color:#317eaa;background:#eaf8ff;padding:3px 6px;border-radius:6px;font-size:10px;margin-left:5px}
#sxwf-modal .sxph-open-hint{font-size:11px;color:#388dbd;white-space:nowrap}
#sxwf-modal .sxph-entry-content{padding:2px 15px 16px;border-top:1px solid #e9f1f7}
#sxwf-modal .sxph-meta{display:flex;gap:8px 19px;flex-wrap:wrap;margin:13px 0;color:#50687f;font-size:11px;line-height:1.6}
#sxwf-modal .sxph-meta b{color:#28475d}
#sxwf-modal .sxph-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#sxwf-modal .sxph-field{background:#f7fbfd;border:1px solid #e7f0f5;border-radius:10px;padding:10px 11px;overflow-wrap:anywhere}
#sxwf-modal .sxph-field span{font-size:10px;letter-spacing:.018em;color:#65869a;font-weight:750;display:block;margin-bottom:5px}
#sxwf-modal .sxph-field strong{font-size:12px;font-weight:650;line-height:1.65;color:#263f52;white-space:pre-wrap}
#sxwf-modal .sxph-photo-label{margin:16px 0 9px;font-size:11px;font-weight:900;color:#38789c;text-transform:uppercase;letter-spacing:.05em}
#sxwf-modal .sxph-photos{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}
#sxwf-modal .sxph-photos a{display:block;overflow:hidden;border-radius:10px;border:1px solid #d8e8f2;background:#fff;color:#406785;text-decoration:none}
#sxwf-modal .sxph-photos img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;background:#e5eff5}
#sxwf-modal .sxph-photos span{display:block;font-size:10px;font-weight:760;padding:6px 8px}
#sxwf-modal .sxph-no-photo{color:#8998a5;font-size:11px;margin:0}
#sxwf-modal .sxph-empty{background:linear-gradient(135deg,#f8fcff,#fffdf1);border:1px dashed #cadeea;border-radius:12px;padding:24px 17px;text-align:center;display:flex;gap:8px;flex-direction:column}
#sxwf-modal .sxph-empty strong{font-size:13px;color:#28445b}
#sxwf-modal .sxph-empty span{color:#738ca0;font-size:11px;line-height:1.5}
#sxwf-modal .sxph-loading{color:#5382a1;font-size:12px;padding:30px 12px;display:flex;align-items:center;justify-content:center;gap:12px}
#sxwf-modal .sxph-loader{width:16px;height:16px;border:2px solid #d8ebf8;border-top-color:#168de3;border-radius:50%;display:inline-block;animation:sxph-spin .7s linear infinite}
@keyframes sxph-spin{to{transform:rotate(360deg)}}
#sxwf-modal .sxwf-btn.sxph-start{background:linear-gradient(100deg,#179ce3,#1076d7)!important;color:#fff!important;border:none!important;font-weight:820!important}
#sxwf-modal .sxwf-btn.sxph-start:hover{filter:brightness(1.04)}
@media(max-width:730px){#sxwf-modal .sxph-photos{grid-template-columns:repeat(3,minmax(0,1fr))}#sxwf-modal .sxph-detail-grid{grid-template-columns:1fr}#sxwf-modal .sxph-open-hint{display:none}}
@media(max-width:510px){#sxwf-modal .sxph-current{padding:14px}#sxwf-modal .sxph-current-grid{grid-template-columns:1fr}#sxwf-modal .sxph-tabs{width:100%}#sxwf-modal .sxph-tabs button{flex:1;padding:8px 6px;font-size:11px}#sxwf-modal .sxph-type-control{width:100%;justify-content:space-between}#sxwf-modal .sxph-photos{grid-template-columns:repeat(2,minmax(0,1fr))}#sxwf-modal .sxph-entry summary{padding:12px 10px;gap:9px}#sxwf-modal .sxph-overview{gap:8px}#sxwf-modal .sxph-counter{padding:10px;gap:7px}#sxwf-modal .sxph-counter strong{font-size:20px}}
@media(prefers-reduced-motion:reduce){#sxwf-modal .sxph-loader{animation:none}}
