.xway-ops{--xway-ink:#17202b;--xway-muted:#5d6b7b;--xway-line:#d9e0e8;--xway-blue:#145da0;--xway-bg:#f5f7fa;color:var(--xway-ink);font:15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;max-width:1200px;margin:1.5rem auto;padding:1rem;background:var(--xway-bg);border-radius:14px}.xway-ops *{box-sizing:border-box}.xway-ops h1,.xway-ops h2,.xway-ops h3{margin:.15rem 0 .65rem;line-height:1.25}.xway-ops h1{font-size:1.8rem}.xway-ops h2{font-size:1.25rem}.xway-ops p{margin:.35rem 0 .8rem}.xway-ops small,.xway-ops .muted{color:var(--xway-muted)}.xway-ops-header,.xway-ops-toolbar,.xway-ops-row,.xway-ops-actions{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}.xway-ops-header{padding:.25rem .25rem 1rem}.xway-ops-brand{font-size:1.05rem;font-weight:750}.xway-ops-nav{display:flex;gap:.45rem;flex-wrap:wrap;padding:.6rem;background:#e8edf3;border-radius:10px;margin-bottom:1rem}.xway-ops-nav button{border:0;background:transparent;color:#26384a;padding:.55rem .85rem;border-radius:8px;font:inherit;cursor:pointer}.xway-ops-nav button.active{background:#fff;color:var(--xway-blue);font-weight:700;box-shadow:0 1px 3px #0001}.xway-ops-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem}.xway-ops-card{background:#fff;border:1px solid var(--xway-line);border-radius:12px;padding:1rem;margin:.8rem 0;box-shadow:0 1px 2px #00000008}.xway-ops-callout{padding:.75rem 1rem;border-radius:9px;background:#e8f2fb;border:1px solid #bfd9ef;margin:.7rem 0}.xway-ops-warning{background:#fff4df;border-color:#f0d295}.xway-ops-success{background:#e8f6ed;border-color:#b5dfc2}.xway-ops-error{background:#fff0ef;border-color:#ecc0bd;color:#852e27}.xway-ops-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.75rem;align-items:end}.xway-ops-field{display:flex;flex-direction:column;gap:.25rem}.xway-ops-field label{font-weight:650;font-size:.88rem}.xway-ops input,.xway-ops select,.xway-ops textarea{font:inherit;color:inherit;border:1px solid #bfcbd7;border-radius:7px;background:#fff;padding:.58rem .65rem;max-width:100%;width:100%}.xway-ops textarea{min-height:74px;resize:vertical}.xway-ops button,.xway-ops-button{font:inherit;cursor:pointer;border:1px solid #bfcbd7;background:#fff;border-radius:7px;padding:.52rem .8rem;color:var(--xway-ink);text-decoration:none;display:inline-block}.xway-ops button.primary,.xway-ops-button{background:var(--xway-blue);border-color:var(--xway-blue);color:#fff;font-weight:650}.xway-ops button.danger{color:#9b2720;border-color:#d9aaa6}.xway-ops button:disabled{opacity:.48;cursor:not-allowed}.xway-ops-table-wrap{overflow-x:auto}.xway-ops table{border-collapse:collapse;width:100%;background:#fff}.xway-ops th,.xway-ops td{text-align:left;padding:.62rem .55rem;border-bottom:1px solid #e4e9ef;vertical-align:top}.xway-ops th{font-size:.84rem;color:#536273;background:#f8fafc}.xway-ops details{border:1px solid var(--xway-line);border-radius:8px;padding:.7rem;margin:.45rem 0;background:#fff}.xway-ops summary{cursor:pointer;font-weight:650}.xway-ops-status{display:inline-block;padding:.14rem .48rem;border-radius:999px;background:#e8edf3;font-size:.78rem;font-weight:650}.xway-ops-status.open,.xway-ops-status.ordered{background:#e8f6ed;color:#17643a}.xway-ops-status.completed,.xway-ops-status.partial{background:#e8f2fb;color:#145da0}.xway-ops-status.closed,.xway-ops-status.received{background:#edf0f3;color:#475462}.xway-ops-timer{font-variant-numeric:tabular-nums;font-weight:750;font-size:1.25rem}.xway-ops-section{margin:1rem 0}.xway-ops-access-card{display:grid;grid-template-columns:minmax(180px,1fr) repeat(3,minmax(90px,.5fr));align-items:center;gap:.6rem;padding:.7rem;border-bottom:1px solid #e6ebf0}.xway-ops-checkbox{width:auto!important}.xway-ops-login{max-width:550px;margin:2rem auto;padding:2rem;border:1px solid #d9e0e8;border-radius:12px;background:#fff;text-align:center}.xway-ops-toast{position:sticky;top:8px;z-index:2}.xway-ops-footer{font-size:.8rem;color:var(--xway-muted);margin-top:1rem}@media(max-width:640px){.xway-ops{padding:.7rem;margin:.5rem}.xway-ops-access-card{grid-template-columns:1fr 1fr}.xway-ops-access-card>strong{grid-column:1/-1}}
.xway-ops-running{padding:.25rem .75rem}.xway-ops-running-button{width:100%;display:flex!important;align-items:center;justify-content:space-between;gap:.75rem;border:0!important;background:transparent!important;color:inherit!important;text-align:left;padding:.35rem!important}.xway-ops-running-button:focus-visible{outline:2px solid #145da0;outline-offset:2px}

/* Scoped dark theme for the Operations workspace only. */
.xway-ops{--xway-ink:#e6edf3;--xway-muted:#a1adba;--xway-line:#343d49;--xway-blue:#58a6ff;--xway-bg:#0d1117;color-scheme:dark;background:var(--xway-bg);color:var(--xway-ink);border:1px solid #29313b;box-shadow:0 12px 36px #0005}
.xway-ops h1,.xway-ops h2,.xway-ops h3,.xway-ops strong,.xway-ops label,.xway-ops summary{color:var(--xway-ink)}
.xway-ops a{color:#79c0ff}
.xway-ops .xway-ops-nav{background:#161b22;border:1px solid #303944}
.xway-ops .xway-ops-nav button{color:#c9d1d9}
.xway-ops .xway-ops-nav button.active{background:#263243;color:#79c0ff;box-shadow:inset 0 0 0 1px #3c536c}
.xway-ops .xway-ops-card,.xway-ops details,.xway-ops-login{background:#161b22;border-color:#343d49;color:var(--xway-ink);box-shadow:0 2px 8px #0003}
.xway-ops .xway-ops-callout{background:#172536;border-color:#284b6c;color:#d7e8f8}
.xway-ops .xway-ops-warning{background:#332817;border-color:#705523;color:#ffe3a3}
.xway-ops .xway-ops-success{background:#14291f;border-color:#275b3d;color:#c9f1d5}
.xway-ops .xway-ops-error{background:#321d1d;border-color:#713636;color:#ffd6d2}
.xway-ops input,.xway-ops select,.xway-ops textarea{background:#0d1117;color:#e6edf3;border-color:#46515f;color-scheme:dark}
.xway-ops input::placeholder,.xway-ops textarea::placeholder{color:#8793a1}
.xway-ops button,.xway-ops-button{background:#212833;color:#e6edf3;border-color:#46515f}
.xway-ops button:hover,.xway-ops-button:hover{background:#2a3542;color:#fff}
.xway-ops button.primary,.xway-ops-button{background:#1769aa;border-color:#3182c4;color:#fff}
.xway-ops button.primary:hover,.xway-ops-button:hover{background:#1c79c2}
.xway-ops button.danger{background:#321d1d;color:#ffb4ab;border-color:#713636}
.xway-ops table{background:#161b22;color:var(--xway-ink)}
.xway-ops th{background:#202833;color:#c9d1d9}
.xway-ops th,.xway-ops td{border-bottom-color:#343d49}
.xway-ops .xway-ops-status{background:#28313c;color:#d4dde6}
.xway-ops .xway-ops-status.open,.xway-ops .xway-ops-status.ordered{background:#173522;color:#9be9a8}
.xway-ops .xway-ops-status.completed,.xway-ops .xway-ops-status.partial{background:#172f48;color:#9ecbff}
.xway-ops .xway-ops-status.closed,.xway-ops .xway-ops-status.received{background:#303741;color:#c9d1d9}
.xway-ops .xway-ops-access-card{border-bottom-color:#343d49}
.xway-ops .xway-ops-footer{color:var(--xway-muted)}
.xway-ops :focus-visible,.xway-ops-login a:focus-visible{outline:2px solid #79c0ff;outline-offset:2px}

/* Darken the complete WordPress page only when it contains the Operations shortcode. */
body.xway-operations-page,body.xway-operations-page .wp-site-blocks,body.xway-operations-page #page,body.xway-operations-page .site{background:#0d1117!important;color:#e6edf3!important}
body.xway-operations-page header,body.xway-operations-page main,body.xway-operations-page footer,body.xway-operations-page .site-header,body.xway-operations-page .site-content,body.xway-operations-page .site-main,body.xway-operations-page .site-footer,body.xway-operations-page .wp-block-template-part,body.xway-operations-page .wp-block-post-content,body.xway-operations-page .wp-site-blocks>*,body.xway-operations-page #page>*,body.xway-operations-page .wp-block-group:not(.xway-ops),body.xway-operations-page .wp-block-columns,body.xway-operations-page .wp-block-column{background-color:transparent!important;color:#e6edf3}
body.xway-operations-page .wp-block-post-title,body.xway-operations-page .entry-title,body.xway-operations-page .page-title{color:#e6edf3!important}
body.xway-operations-page a{color:#79c0ff}
body.xway-operations-page .wp-block-site-title,body.xway-operations-page .wp-block-navigation a,body.xway-operations-page .wp-block-site-tagline,body.xway-operations-page .wp-block-page-list a{color:#c9d1d9}
.xway-ops .xway-ops-unread-badge{display:inline-flex;align-items:center;justify-content:center;min-width:1.4rem;height:1.4rem;padding:0 .35rem;border-radius:999px;background:#b42318;color:#fff;font-size:.75rem;font-weight:750;line-height:1}
.xway-ops-message{padding:.9rem 0;border-bottom:1px solid var(--xway-line)}
.xway-ops-message:last-child{border-bottom:0}
.xway-ops-message.unread{border-left:3px solid #58a6ff;padding-left:.85rem}
.xway-ops-message h2{font-size:1.05rem;margin:0}
.xway-ops-message time{color:var(--xway-muted);font-size:.85rem}

/* Branded front-end authentication: no WordPress login form is shown to staff. */
body.xway-operations-page .xway-auth-shell{min-height:65vh;display:flex;align-items:center;justify-content:center;padding:2rem 1rem}
body.xway-operations-page .xway-auth-card{width:min(100%,440px);padding:2rem;border:1px solid #343d49;border-radius:18px;background:#161b22;color:#e6edf3;box-shadow:0 20px 60px #0008}
body.xway-operations-page .xway-auth-brand{font-size:1.15rem;font-weight:800;letter-spacing:.02em;color:#f0f6fc;margin-bottom:1.7rem}
body.xway-operations-page .xway-auth-brand span{display:block;font-size:.77rem;letter-spacing:.18em;text-transform:uppercase;color:#79c0ff;margin-top:.15rem}
body.xway-operations-page .xway-auth-card h1{font-size:1.65rem;margin:0 0 .5rem;color:#f0f6fc}
body.xway-operations-page .xway-auth-muted{color:#a1adba;margin:.2rem 0 1.25rem}
body.xway-operations-page .xway-auth-company{display:inline-block;padding:.35rem .7rem;margin:0 0 .9rem;border:1px solid #315274;border-radius:999px;background:#172536;color:#9ecbff;font-weight:700}
body.xway-operations-page .xway-auth-form{display:grid;gap:.9rem;margin-top:1rem}
body.xway-operations-page .xway-auth-form label{display:grid;gap:.35rem;color:#d7e0e8;font-weight:650;font-size:.9rem}
body.xway-operations-page .xway-auth-form input:not([type=checkbox]){width:100%;padding:.78rem .8rem;border:1px solid #46515f;border-radius:8px;background:#0d1117;color:#e6edf3;font:inherit;color-scheme:dark}
body.xway-operations-page .xway-auth-remember{display:flex!important;align-items:center;grid-template-columns:auto 1fr;font-weight:500!important}
body.xway-operations-page .xway-auth-remember input{width:auto}
body.xway-operations-page .xway-auth-primary{width:100%;padding:.78rem 1rem;border:1px solid #3182c4;border-radius:8px;background:#1769aa;color:#fff;font:inherit;font-weight:750;cursor:pointer}
body.xway-operations-page .xway-auth-primary:hover{background:#1c79c2}
body.xway-operations-page .xway-auth-button{display:block;text-align:center;text-decoration:none}
body.xway-operations-page .xway-auth-link{display:inline-block;margin-top:1rem;color:#79c0ff}
body.xway-operations-page .xway-auth-alert{margin:.7rem 0;padding:.75rem .85rem;border:1px solid #713636;border-radius:8px;background:#321d1d;color:#ffd6d2}
body.xway-operations-page .xway-auth-foot{margin-top:1.7rem;padding-top:1rem;border-top:1px solid #343d49;color:#8793a1;font-size:.8rem;text-align:center}
.xway-ops-signout{white-space:nowrap}

.xway-ops .xway-ops-time-status{margin:.55rem 0 .55rem .8rem;border-color:#46515f}.xway-ops .xway-ops-time-status>summary{font-size:.94rem}

/* Notices float above the workspace: they never occupy document flow or move controls. */
.xway-ops-toast-host{position:fixed;top:16px;right:16px;z-index:1000000;width:min(420px,calc(100vw - 32px));pointer-events:none}
body.admin-bar .xway-ops-toast-host{top:48px}
.xway-ops-toast-host .xway-ops-toast{position:static;top:auto;z-index:auto;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0;padding:12px 14px;border:1px solid #275b3d;border-radius:9px;background:#14291f;color:#c9f1d5;box-shadow:0 8px 28px #0008;pointer-events:auto}
.xway-ops-toast-host .xway-ops-toast.xway-ops-error{background:#321d1d;border-color:#713636;color:#ffd6d2}
.xway-ops-toast-host .xway-ops-toast-dismiss{flex:0 0 auto;padding:3px 8px;border:1px solid currentColor;border-radius:6px;background:transparent;color:inherit;font:inherit;font-size:.82rem;cursor:pointer}
@media(max-width:782px){body.admin-bar .xway-ops-toast-host{top:62px}.xway-ops-toast-host{right:10px;width:calc(100vw - 20px)}}
.xway-ops .xway-ops-wo-edit{margin-top:.45rem;min-width:15rem}.xway-ops .xway-ops-wo-edit>details{margin-top:.65rem}.xway-ops .xway-ops-audit-row{border-top:1px solid rgba(148,163,184,.28);padding:.6rem 0}.xway-ops .xway-ops-audit-row strong{display:block;margin-bottom:.25rem}


/* Consistent row-level action menus for editable/removable records. */
.xway-ops .xway-ops-row-menu{display:inline-block;position:relative;margin:0;padding:0;border:0;background:transparent;box-shadow:none;vertical-align:top}
.xway-ops .xway-ops-row-menu>summary{display:flex;align-items:center;justify-content:center;list-style:none;width:2.15rem;height:2.15rem;padding:0;border:1px solid #46515f;border-radius:8px;background:#212833;color:#e6edf3;font-size:1.4rem;line-height:1;cursor:pointer}
.xway-ops .xway-ops-row-menu>summary::-webkit-details-marker{display:none}
.xway-ops .xway-ops-row-menu>summary:hover,.xway-ops .xway-ops-row-menu[open]>summary{background:#2a3542}
.xway-ops .xway-ops-row-menu-items{position:absolute;left:0;top:calc(100% + 4px);z-index:1000;display:grid;gap:.2rem;min-width:154px;padding:.35rem;border:1px solid #343d49;border-radius:9px;background:#161b22;box-shadow:0 8px 24px #0007}
.xway-ops .xway-ops-row-menu-items button{display:block;width:100%;border:0;background:transparent;text-align:left;padding:.48rem .6rem}
.xway-ops .xway-ops-row-menu-items button:hover{background:#28313c}
.xway-ops .xway-ops-row-menu-items button.danger{color:#ffb4ab}
.xway-ops .xway-ops-edit-panel{margin:.55rem 0;min-width:14rem}
.xway-ops .xway-ops-edit-panel>summary{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
.xway-ops .xway-ops-edit-panel:not([open]){display:none}
.xway-ops .xway-ops-wo-status-label{display:grid;gap:.25rem;margin:.5rem 0;font-weight:650}
.xway-ops .xway-ops-table-wrap{overflow:visible}
@media(max-width:900px){.xway-ops .xway-ops-table-wrap{overflow-x:auto}.xway-ops .xway-ops-row-menu-items{position:static;margin-top:.3rem;min-width:0}}

/* The hamburger menu is the visible entry point for row editors. */

/* Closed editors are fully hidden; opening them from the row menu reveals the panel. */
