/* =========================================================================
   TELMET NATIVE OPS APPS — 1:1 PLEK-JIPLEK APPSHEET UI (TOB-TOM NOC & TS)
   Exact AppSheet Deck, Table, Single-Column Detail, Inline QuickEdit,
   Single-Column Form, Segmented Enums, Overlay FABs, & Bottom Navigation
   ========================================================================= */

.ops-app-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #12161f;
  color: #e8edf5;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: relative;
  overflow: hidden;
  --ops-accent: #38bdf8;
  --ops-accent-bg: rgba(56, 189, 248, 0.14);
}

.ops-app-shell.mode-ts {
  --ops-accent: #f59e0b;
  --ops-accent-bg: rgba(245, 158, 11, 0.14);
}

/* AppSheet-style App Bar */
.ops-appbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 6px 12px;
  background: #181e2a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.ops-appbar-title {
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  margin-right: 4px;
}

.ops-search-box {
  flex: 1 1 160px;
  max-width: 420px;
  position: relative;
  display: flex;
  align-items: center;
}

.ops-search-box input {
  width: 100%;
  padding: 7px 30px 7px 11px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0f131b;
  color: #f8fafc;
  font-size: 13px;
  outline: none;
}

.ops-search-box input:focus {
  border-color: var(--ops-accent);
}

.ops-search-clear {
  position: absolute;
  right: 6px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 5px;
}

.ops-appbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.ops-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #202838;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.ops-icon-btn:hover {
  background: #293347;
}

.ops-icon-btn.push-on {
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
}

.ops-subbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 5px 12px;
  background: #141923;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: #94a3b8;
  flex-shrink: 0;
}

.ops-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ops-accent-bg);
  border: 1px solid var(--ops-accent);
  color: var(--ops-accent);
  font-weight: 700;
  cursor: pointer;
}

/* Main Content Area */
.ops-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 0 68px;
  -webkit-overflow-scrolling: touch;
}

.ops-center-col {
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
}

/* =========================================================================
   EXACT APPSHEET DECK VIEW (Single-Column Vertical List Grouped by Domain)
   ========================================================================= */
.ops-deck-group-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 6px;
  background: #161b26;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 700;
  color: var(--ops-accent);
  position: sticky;
  top: 0;
  z-index: 3;
}

.ops-deck-row {
  display: flex;
  flex-direction: column;
  padding: 11px 14px;
  background: #12161f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.12s ease;
}

.ops-deck-row:hover {
  background: #1a2130;
}

.ops-deck-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ops-deck-sqimg {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  background: #1c2331;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
}

.ops-deck-sqimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ops-deck-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ops-deck-primary {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ops-deck-secondary {
  font-size: 13px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ops-deck-summary {
  margin-left: 10px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
}

.ops-deck-track-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  cursor: pointer;
  white-space: nowrap;
}
.ops-deck-track-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
}

/* Compact Detail Header Blocks (ss1 exact dense layout) */
.ops-compact-row {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ops-compact-split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ops-compact-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ops-compact-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}

.ops-compact-val {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: #f8fafc;
}

.ops-compact-sep {
  color: #475569;
  font-weight: 400;
}

.ops-compact-sn {
  font-size: 12.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #94a3b8;
  letter-spacing: 0.2px;
}

.ops-compact-ticketno {
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ops-svg-ico {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.ops-nav-btn .ops-svg-ico {
  width: 18px;
  height: 18px;
}

.ops-deck-actionbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ops-deck-action-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ops-accent);
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 4px;
}

.ops-deck-action-link:hover {
  background: var(--ops-accent-bg);
}

/* Status Summary Text / Pill */
.ops-st-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.ops-st-OPEN {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.ops-st-RESOLVE {
  background: rgba(245, 158, 11, 0.22);
  color: #fcd34d;
}

.ops-st-RE-OPEN {
  background: rgba(168, 85, 247, 0.22);
  color: #d8b4fe;
}

.ops-st-CLOSE {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.ops-st-DISMANTLE {
  background: rgba(100, 116, 139, 0.25);
  color: #cbd5e1;
}

.ops-st-RE-ASSIGN {
  background: rgba(14, 165, 233, 0.22);
  color: #7dd3fc;
}

/* Exact AppSheet Format Rules for Status Unit */
.ops-unit-inzone {
  color: #22c55e;
  font-weight: 800;
  text-transform: uppercase;
}

.ops-unit-outzone {
  color: #f97316;
  font-weight: 800;
  text-transform: uppercase;
}

.ops-unit-inactive {
  color: #ef4444;
  font-weight: 800;
  font-style: italic;
  text-decoration: line-through;
  text-transform: uppercase;
}

/* =========================================================================
   EXACT APPSHEET DATA TABLE VIEW (NOC Data — All 5,435 Rows, 31 Columns)
   ========================================================================= */
.ops-table-wrap {
  width: 100%;
  overflow: auto;
  height: calc(100vh - 185px);
  background: #12161f;
}

.ops-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  white-space: nowrap;
}

.ops-data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #181e2a;
  color: #94a3b8;
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  text-align: left;
  cursor: pointer;
}

.ops-data-table td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ops-data-table tbody tr {
  cursor: pointer;
}

.ops-data-table tbody tr:hover {
  background: rgba(56, 189, 248, 0.1);
}

.ops-pager-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #181e2a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #94a3b8;
}

/* =========================================================================
   EXACT APPSHEET CHARTS (Status Histogram & Domain Pie / Histogram)
   ========================================================================= */
.ops-chart-wrap {
  max-width: 720px;
  margin: 14px auto;
  padding: 16px;
  background: #181e2a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.ops-chart-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ops-chart-hdr h3 {
  margin: 0;
  font-size: 15px;
  color: #f8fafc;
}

.ops-hist-row {
  margin-bottom: 12px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}

.ops-hist-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.ops-hist-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
}

.ops-hist-track {
  height: 18px;
  border-radius: 4px;
  background: #0f131b;
  overflow: hidden;
}

.ops-hist-fill {
  height: 100%;
  border-radius: 4px;
}

.ops-pie-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.ops-pie-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
}

.ops-pie-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  border-radius: 6px;
  background: #12161f;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.ops-pie-row:hover {
  background: #202838;
}

.ops-dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* =========================================================================
   EXACT APPSHEET SINGLE-COLUMN DETAIL VIEW + INLINE QUICKEDIT + OVERLAY FABs
   ========================================================================= */
.ops-screen {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: #12161f;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ops-screen-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 6px 12px;
  background: #181e2a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.ops-back-btn {
  background: transparent;
  border: none;
  color: #f8fafc;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.ops-back-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ops-screen-title {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ops-screen-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 0 96px;
  -webkit-overflow-scrolling: touch;
}

.ops-detail-list {
  max-width: 720px;
  margin: 0 auto;
  background: #12161f;
}

.ops-detail-field {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ops-detail-field.is-quickedit {
  background: rgba(245, 158, 11, 0.04);
  border-left: 3px solid var(--ops-accent);
}

.ops-detail-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ops-detail-rowval {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14.5px;
  color: #f8fafc;
  word-break: break-word;
}

.ops-detail-img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  background: #0b0e14;
  border-radius: 6px;
  margin-top: 4px;
  cursor: zoom-in;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ops-inline-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ops-inline-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
  cursor: pointer;
}

.ops-inline-btn.wa {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

.ops-inline-btn.track {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}
.ops-inline-btn.track:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
}

/* AppSheet Floating Overlay FAB Stack (Bottom-Right) */
.ops-fab-stack {
  position: absolute;
  right: 18px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.ops-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 54px;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
  transition: transform 0.12s ease;
}

.ops-fab:active {
  transform: scale(0.95);
}

.ops-fab.edit {
  background: #0ea5e9;
  color: #fff;
}

.mode-ts .ops-fab.edit {
  background: #f59e0b;
  color: #0f172a;
}

.ops-fab.resolve {
  background: #10b981;
  color: #fff;
}

.ops-fab.reopen {
  background: #a855f7;
  color: #fff;
}

/* =========================================================================
   EXACT APPSHEET SINGLE-COLUMN FORM + SEGMENTED ENUM BUTTONS + BOTTOM FOOTER
   ========================================================================= */
.ops-form-list {
  max-width: 720px;
  margin: 0 auto;
  padding: 6px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ops-form-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ops-form-item label {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}

.ops-form-item input,
.ops-form-item select,
.ops-form-item textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0f131b;
  color: #f8fafc;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.ops-form-item input:focus,
.ops-form-item select:focus,
.ops-form-item textarea:focus {
  border-color: var(--ops-accent);
}

.ops-form-item input[readonly] {
  background: #181e2a;
  color: #94a3b8;
  border-color: rgba(255, 255, 255, 0.08);
}

/* AppSheet Segmented Enum Buttons & Multi-Select Chips */
.ops-enum-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ops-enum-btn {
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #181e2a;
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.ops-enum-btn.active {
  background: var(--ops-accent);
  border-color: var(--ops-accent);
  color: #0b0e14;
}

.ops-close-banner {
  padding: 12px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
  font-weight: 800;
  font-size: 14px;
  text-align: center;
}

/* Sticky AppSheet Form Footer (Cancel left | Save right) */
.ops-form-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  padding: 0 16px;
  background: #181e2a;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 40;
}

.ops-footer-cancel {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 14px;
}

.ops-footer-save {
  background: var(--ops-accent);
  color: #0b0e14;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  padding: 9px 24px;
  cursor: pointer;
}

.ops-footer-save:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Bottom Navigation Bar (Exact AppSheet Positions) */
.ops-bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  background: #181e2a;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 15;
}

.ops-nav-btn {
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
}

.ops-nav-btn.active {
  color: var(--ops-accent);
}

.ops-nav-btn.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2.5px;
  background: var(--ops-accent);
}

.ops-sla-hint {
  font-size: 11.5px;
  padding: 6px 14px;
  background: #181e2a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ops-empty {
  text-align: center;
  padding: 48px 20px;
  color: #94a3b8;
  font-size: 13.5px;
}

.ops-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.ops-lightbox img {
  max-width: 96vw;
  max-height: 82vh;
  border-radius: 6px;
}

/* =========================================================================
   EXACT APPSHEET MULTI-SELECT DROPDOWN (High-specificity — immune to global CSS)
   ========================================================================= */
.ops-app-shell .ops-ms-wrap {
  position: relative;
  width: 100%;
  margin-top: 4px;
}

.ops-app-shell button.ops-ms-trigger {
  width: 100%;
  min-height: 42px;
  padding: 8px 34px 8px 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #14171f;
  color: #f8fafc;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  position: relative;
  box-shadow: none;
}

.ops-app-shell button.ops-ms-trigger:hover,
.ops-app-shell button.ops-ms-trigger.open {
  border-color: #f8fafc;
  background: #181c26;
}

.ops-app-shell .ops-ms-caret {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #cbd5e1;
  font-size: 11px;
  pointer-events: none;
}

.ops-app-shell .ops-ms-placeholder {
  color: #64748b;
}

.ops-app-shell .ops-ms-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
}

.ops-app-shell .ops-ms-menu {
  margin-top: 2px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #2b2d33;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.72);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ops-app-shell .ops-ms-searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #16181d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.ops-app-shell .ops-ms-searchbar input[type="text"] {
  flex: 1;
  width: auto;
  min-width: 0;
  height: 32px;
  margin: 0;
  padding: 4px 6px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: #f8fafc;
  font-size: 13.5px;
  outline: none;
}

.ops-app-shell button.ops-ms-addbtn {
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #f8fafc;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ops-app-shell button.ops-ms-addbtn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.ops-app-shell label.ops-ms-selectall {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 11px 14px;
  background: #3a3d45;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
}

.ops-app-shell .ops-ms-list {
  display: flex;
  flex-direction: column;
  max-height: 240px;
  overflow-y: auto;
  background: #2f3138;
}

.ops-app-shell label.ops-ms-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: #f1f5f9;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.ops-app-shell label.ops-ms-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ops-app-shell .ops-ms-item input[type="checkbox"],
.ops-app-shell .ops-ms-selectall input[type="checkbox"] {
  width: 17px;
  height: 17px;
  min-width: 17px;
  margin: 0;
  padding: 0;
  accent-color: var(--ops-accent);
  cursor: pointer;
  flex-shrink: 0;
}

.ops-app-shell .ops-ms-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #1d2027;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  color: #94a3b8;
}

/* =========================================================================
   EXACT APPSHEET CAMERA / FILE UPLOAD BOX (Replaces ugly browser Choose File)
   ========================================================================= */
.ops-app-shell .ops-photo-picker {
  position: relative;
  width: 100%;
  margin-top: 4px;
}

.ops-app-shell .ops-photo-picker input[type="file"] {
  display: none;
}

.ops-app-shell .ops-photo-drop {
  width: 100%;
  min-height: 76px;
  padding: 14px 16px;
  border-radius: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  background: #141820;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.ops-app-shell .ops-photo-drop:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: #1b212e;
  color: #ffffff;
}

.ops-app-shell .ops-photo-preview-wrap {
  position: relative;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0b0e14;
}

.ops-app-shell .ops-photo-preview-wrap img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  cursor: zoom-in;
}

.ops-app-shell .ops-photo-overlay-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 7px 10px;
  background: rgba(18, 22, 31, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ops-app-shell .ops-photo-act {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #1f2634;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.ops-app-shell .ops-photo-act:hover {
  background: #2b3447;
}
.ops-app-shell .ops-photo-act.danger {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}