/* License: MIT (see ../license.txt); alternatively GPL v3.0. (c) 2026 ISSP Software und Service GmbH */
/* Data grid: view tabs, editor-style cell controls, lookup cells, notes, compact sidebar for short screens (iPad). */
.view-tabs-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 18px;margin-bottom:14px}
.view-tabs{background:var(--soft);display:flex;gap:4px;border-bottom:2px solid var(--line);flex:1 1 auto;overflow-x:auto}
.view-tab{border:0;border-bottom:3px solid transparent;margin-bottom:-2px;background:none;color:var(--muted);padding:10px 16px;font:600 14px inherit;cursor:pointer;white-space:nowrap}
.view-tab:hover{color:var(--ink)}
.view-tab[aria-selected=true]{color:var(--blue);border-bottom-color:var(--blue)}
:root[data-theme="dark"] .view-tab[aria-selected=true],:root[data-theme="contrast"] .view-tab[aria-selected=true]{color:var(--brand-accent);border-bottom-color:var(--brand-accent)}
.native-toggle{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);cursor:pointer}
.native-toggle input{width:16px;height:16px}
.table-scroll{overflow-x:auto}
.table-scroll table{min-width:880px}
td.num,th.num,.cell-input.num{text-align:right}
.cell-input{width:100%;min-width:0;border:1px solid var(--line);border-radius:8px;padding:9px 10px;background:var(--input-bg);color:var(--ink);font:inherit}
.cell-input:focus{outline:0;border-color:var(--blue);box-shadow:0 0 0 3px #3269e826}
.cell-input:focus-visible{outline:3px solid var(--focus);outline-offset:1px}
.cell-lookup{min-width:200px}
.cell-lookup .ic-field{padding:0 4px 0 8px}
.cell-lookup .ic-input{padding:8px 0!important}
.ic-list.is-floating{z-index:1500}
.cell-edit{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:36px;border:1px solid transparent;border-radius:8px;background:none;color:inherit;font:inherit;text-align:left;padding:6px 10px;cursor:pointer}
.cell-edit:hover{border-color:var(--line);background:var(--hover-bg)}
.cell-caret{color:var(--muted);font-size:12px}
.cell-slot{display:block}
/* switch for boolean cells */
.switch{appearance:none;-webkit-appearance:none;position:relative;width:40px;height:22px;margin:0;border-radius:999px;background:var(--line);border:1px solid var(--muted);cursor:pointer;transition:background .15s}
.switch::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:var(--surface);border:1px solid var(--muted);transition:transform .15s}
.switch:checked{background:var(--blue);border-color:var(--blue)}
.switch:checked::after{transform:translateX(18px);border-color:var(--on-blue)}
.switch:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
:root[data-theme="contrast"] .switch:checked::after{background:#000}
.gridjs-td{vertical-align:middle}
tfoot th,tfoot td{font-weight:700}
/* notes */
.notes{display:grid;gap:18px;max-width:900px}
.notes .panel{margin:0}
.notes h2{margin:0 0 10px;font-size:19px}
.notes .lead{font-size:17px;line-height:1.5;margin-top:0}
.notes p,.notes li{line-height:1.6}
.notes a{color:var(--blue);font-weight:600}
:root[data-theme="dark"] .notes a,:root[data-theme="contrast"] .notes a{color:var(--brand-accent)}
/* Vertical space: compact sidebar on short screens such as iPad landscape */
@media(min-width:801px) and (max-height:900px){
  .sidebar{padding:18px 14px}
  .tagline{margin-bottom:14px}
  nav a{padding:8px 12px;margin:1px 0;font-size:13.5px}
  .nav-about{margin-top:8px!important;padding-top:9px!important}
  .side-bottom{gap:9px!important;padding-top:8px}
  .switchbox-label{margin-bottom:4px}
  .zoom-btn{padding:4px 0}
}
@media(min-width:801px) and (max-height:760px){
  .brand{font-size:23px}.tagline{display:none}
  nav a{padding:6px 12px}
}
#positionTable td:nth-child(1){min-width:210px}
#positionTable td:nth-child(2){min-width:110px;width:120px}
#positionTable td:nth-child(6){width:1%}
.thanks-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px 24px;margin-top:6px}
.thanks-grid h3{font-size:14px;margin:0 0 6px}
.city-list{list-style:none;display:flex;flex-wrap:wrap;gap:6px;padding:0}
.city-list li{background:var(--tag-bg);color:var(--tag-ink);border-radius:999px;padding:3px 11px;font-size:13px;line-height:1.5}
