/* Shared portrait/tablet fixes, loaded after the existing theme. */
.operations-page{max-width:1440px;margin-inline:auto;min-width:0;padding:1rem}.operation-panel{border:1px solid var(--neutral-stroke-rest,#66737c);border-radius:8px;margin:1rem 0;padding:1rem}.operation-panel>summary{font-weight:650;cursor:pointer;padding:.4rem;color:var(--accent-fill-rest,#ffd35a)}.operation-fields,.operation-line,.operation-summary{display:flex;align-items:end;gap:.75rem;flex-wrap:wrap;margin:.75rem 0}.operation-fields>label,.operation-line>label{flex:1 1 155px;min-width:0;display:flex;flex-direction:column;gap:.25rem}.operation-line{padding:.75rem;border-block-end:1px solid #66737c}.operation-line>label:first-child{flex:3 1 260px}.operation-summary{align-items:center;padding:.75rem;border-inline-start:4px solid #ffd35a;background:var(--neutral-layer-2,#27323b)}.operations-page fieldset{min-width:0;border:0;padding:0}.operations-page input:not([type=checkbox]),.operations-page select,.operations-page textarea{width:100%;max-width:100%;min-height:42px;border:1px solid #8595a1;border-radius:5px;background:var(--neutral-layer-1,#1b252d);color:inherit;padding:.5rem}.operations-page button{min-height:40px;border:1px solid #8c9aa5;border-radius:5px;margin:.2rem;padding:.45rem .75rem;background:var(--neutral-layer-2,#29343c);color:inherit}.operations-page .primary{background:#ffd35a;color:#15191b;border-color:#ffd35a;font-weight:650}.foundation-table tbody tr:nth-child(even){background:color-mix(in srgb,currentColor 5%,transparent)}.foundation-table th,.foundation-table td{border-block-end:1px solid #64717a;padding:.55rem .7rem}.record-type-tabs{display:flex;gap:.4rem;flex-wrap:wrap;align-items:center;margin:.65rem 0}.record-type-tabs>*{padding:.45rem .7rem;white-space:normal;border:1px solid #71808a;border-radius:5px;min-height:40px}.foundation-tools,.place-tools{flex-wrap:wrap;min-width:0}.foundation-scroll{max-width:100%;overflow:auto;overscroll-behavior-inline:contain}.operation-panel .record-fields dd{overflow-wrap:anywhere}.operations-page [role=status]{overflow-wrap:anywhere}.foundation-modal{position:fixed;inset:8vh 5vw;z-index:1500;max-height:84vh;overflow:auto}.foundation-modal iframe{width:100%;height:65vh}
@media(max-width:1100px){main,.content,.body-content,.main-content,.record-workbench{min-width:0;max-width:100%}.record-type-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}.record-type-tabs>*{text-align:center;min-width:0}.record-ribbon{flex-wrap:wrap}.foundation-tools>label,.place-tools>label{flex:1 1 160px;min-width:0}.foundation-tools input,.foundation-tools select,.place-tools input,.place-tools select{max-width:100%}.record-fields{grid-template-columns:minmax(100px,1fr) minmax(0,2fr)}.record-fields dd{overflow-wrap:anywhere}.foundation-modal{inset:5vh 3vw;max-height:90vh}}
@media(max-width:760px){.operations-page{padding:.55rem}.operation-panel{padding:.65rem}.operation-fields,.operation-line{display:grid;grid-template-columns:minmax(0,1fr)}.operation-fields>*,.operation-line>*{min-width:0}.operation-summary{display:grid;grid-template-columns:minmax(0,1fr)}.record-type-tabs{grid-template-columns:repeat(2,minmax(0,1fr));font-size:.9rem}.record-ribbon{gap:.35rem}.record-ribbon details{max-width:100%;flex:1 1 135px}.record-ribbon details[open]{flex-basis:100%}.record-ribbon details>div,.record-ribbon details>section,.record-ribbon .ribbon-panel{position:static!important;max-width:100%;width:auto;max-height:60vh;overflow:auto}.record-fields{display:block}.record-fields dt{margin-top:.65rem}.foundation-modal{inset:2vh 2vw;max-height:96vh}.foundation-table{font-size:.9rem}.place-form{grid-template-columns:minmax(0,1fr)!important}.place-actions{display:flex;flex-direction:column;gap:.6rem}.room-plan{min-height:330px}.foundation-tools>label,.place-tools>label{flex-basis:100%}.workflow-tabs,.transaction-tabs{display:flex;flex-wrap:wrap;gap:.35rem}.workflow-tabs>*,.transaction-tabs>*{flex:1 1 120px;white-space:normal}}
@media print{.operations-page nav,.operations-page button{display:none}}

.responsive-tabs{margin:1rem 0}.responsive-tabs-wide{display:flex;flex-wrap:wrap;gap:.4rem}.responsive-tabs-compact{display:none}.responsive-tabs [aria-current=page]{border-bottom:3px solid #ffd35a}.responsive-tabs-compact summary{padding:.7rem;border:1px solid #8b99a3;border-radius:6px;cursor:pointer}.responsive-tabs-compact>div{display:grid;gap:.35rem;padding:.6rem}.responsive-tabs button{white-space:normal}
@media(max-width:1000px){.responsive-tabs-wide{display:none}.responsive-tabs-compact{display:block}.record-toolbar{display:flex;flex-wrap:wrap}.record-toolbar details{max-width:100%}.record-toolbar details[open]{flex-basis:100%}.record-toolbar .record-popover{position:static!important;inset:auto;min-width:0;width:100%;max-width:100%;max-height:60vh;box-shadow:none;margin-top:.5rem}.record-toolbar summary{min-height:42px}.record-search label{min-width:0;flex-basis:100%}.foundation-grid{grid-template-columns:minmax(0,1fr)}}

html[data-shipscan-theme=light] .operations-page input,html[data-shipscan-theme=light] .operations-page select,html[data-shipscan-theme=light] .operations-page textarea{background:#fff;color:#17242f}html[data-shipscan-theme=light] .operations-page button{background:#edf1f5;color:#17242f}html[data-shipscan-theme=light] .operations-page button.primary{background:#ffd35a}html[data-shipscan-theme=light] .operation-summary{background:#eef2f5;color:#17242f}html[data-shipscan-theme=light] .operation-panel>summary{color:#7b3c00}
