/* GIR CLIENT TRIAL — only scoped to Gujarat view; no other state modified. */
.gir-staging-view .filters,
.gir-staging-view .legend,
.gir-staging-view .view-note {display:none;}
.gir-card summary {border-bottom:1px solid #e9eee8;}
.gir-pending-label {font-size:12px;font-weight:700;color:#956721;
  background:#fbf2df;border:1px solid #edddb8;border-radius:999px;padding:5px 9px;}
.gir-snapshot-info {margin:13px 18px;padding:13px 15px;border-radius:8px;
  background:#faf6eb;color:#73592c;font-size:13px;line-height:1.7;}
.gir-snapshot-info > strong {display:block;margin-bottom:5px;}
.gir-snapshot-info div {margin-top:5px;}
.gir-table-scroll {overflow-x:auto;overflow-y:hidden;padding:0 18px 12px;
  -webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;}
.gir-table {width:max-content;min-width:100%;border-collapse:collapse;}
.gir-table th,.gir-table td {text-align:center;padding:12px 13px;
  border:1px solid #e8eee7;white-space:nowrap;}
.gir-table thead th {min-width:135px;}
.gir-table .gir-row-label {position:sticky;left:0;z-index:1;text-align:left;
  min-width:160px;background:#f5f8f4;}
.gir-row-label strong {font-size:12px;color:#334b3d;display:block;}
.gir-row-label small {color:#74857b;display:block;margin-top:4px;}
.gir-status {font-size:11px;border-radius:6px;display:inline-block;padding:6px 9px;
  border:1px solid transparent;font-weight:600;}
.gir-vehicle-accepted {color:#3e5a36;background:#ebf2e8;border-color:#cfe3c8;}
.gir-vehicle-unavailable {color:#853f3f;background:#fbeeee;border-color:#edcbcb;}
.gir-not-checked {color:#646a6d;background:#f0f2f2;border-color:#e0e5e6;}
.gir-portal-link {margin:0;padding:14px 19px 21px;font-size:13px;
  color:#5d7265;line-height:1.6;}
.gir-portal-link a {color:#245c42;font-weight:700;}

/* v1.2 - observed official portal text exactly; wrap long message on mobile. */
.gir-table td {min-width:210px; max-width:245px; white-space:normal; vertical-align:middle;}
.gir-table thead th {min-width:210px;}
.gir-portal-original {display:flex;flex-direction:column;gap:6px;align-items:center;}
.gir-portal-words {font-size:11px;line-height:1.4;font-weight:600;color:#a02a2a;
  white-space:normal;overflow-wrap:anywhere;text-align:center;}
.gir-original-book {border:0;border-radius:2px;background:#a47b26;color:#fff;
  padding:8px 13px;display:inline-block;font-weight:700;font-size:12px;min-width:90px;
  opacity:1;pointer-events:none;user-select:none;}
.gir-portal-book-inactive {opacity:.50;filter:grayscale(.25);}
.gir-portal-button-state {display:block;color:#6d756d;font-weight:500;font-size:10px;line-height:1.3;}
@media(max-width:600px) {
  .gir-table td {min-width:192px;max-width:210px;padding:9px;}
  .gir-table thead th {min-width:192px;}
  .gir-portal-words {font-size:10px;}
}
/* Readable grouped Gir observations v7. Counts remain shared, not additive. */
body:has(.gir-card) main{max-width:1440px}
.gir-table-scroll{max-height:70vh;overflow:auto;padding:0 12px 12px}
.gir-table{table-layout:fixed}.gir-table td{min-width:330px;max-width:430px;padding:14px;vertical-align:top}
.gir-table thead th{position:sticky;top:0;z-index:3;min-width:330px;background:#edf4ee;font-size:14px}
.gir-table .gir-row-label{width:115px;min-width:115px;max-width:115px;white-space:normal;vertical-align:middle}
.gir-table thead th:first-child{min-width:115px;left:0;z-index:4}
.gir-row-label strong{font-size:14px;line-height:1.5}
.gir-shared-count{font-size:15px;color:#244e3a}.gir-shared-count strong{font-size:22px}
.gir-shared-note{display:block;font-size:12px;color:#6b6553;margin:6px 0 12px;line-height:1.45}
.gir-vehicle-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.gir-vehicle-option{background:#f5f7f4;border:1px solid #dfe6df;border-radius:10px;padding:10px 7px;min-width:0}
.gir-vehicle-option>strong{font-size:14px;display:block}.gir-vehicle-option>span{display:block;font-size:12px;line-height:1.4;margin:8px 0;color:#59655d}
.gir-vehicle-option.is-enabled{background:#edf5ef;border-color:#cddfd2}.gir-vehicle-option.is-unavailable{background:#faf0ed}
.gir-vehicle-option details summary{display:block;cursor:pointer;min-height:44px;align-content:center;font-size:12px;color:#24563d;padding:5px;border:0}
.gir-vehicle-option .gir-portal-original{margin-top:8px;gap:8px}.gir-portal-words,.gir-portal-button-state,.gir-portal-count-missing{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.gir-original-book{min-width:0;white-space:normal}.gir-snapshot-info{font-size:13px;line-height:1.6}
@media(max-width:700px){.gir-table-scroll{padding:0 8px 8px}.gir-table td,.gir-table thead th:not(:first-child){min-width:270px;max-width:300px;padding:10px}.gir-table .gir-row-label,.gir-table thead th:first-child{min-width:82px;width:82px;max-width:82px;padding:8px}.gir-row-label strong{font-size:12px}.gir-vehicle-options{gap:5px}.gir-vehicle-option{padding:8px 4px}.gir-vehicle-option>strong{font-size:13px}.gir-vehicle-option>span{font-size:12px}.gir-snapshot-info{margin:10px;padding:10px}}
.gir-scan-details>summary{font-size:13px;padding:12px 16px;color:#665634;background:#faf6eb;min-height:44px}
.gir-vehicle-options:has(details[open]){grid-template-columns:1fr}
.gir-vehicle-option:has(details[open]){grid-column:1/-1}
body:has(.gir-card) .results-head,body:has(.raj-card) .results-head{flex-wrap:wrap;gap:10px}
body:has(.gir-card) .results-head .total,body:has(.raj-card) .results-head .total{font-size:13px;line-height:1.5;max-width:100%}
.gir-start-book{display:none}
html[data-ecotrail-app=true] .gir-start-book{display:block;width:100%;min-height:44px;padding:8px 5px;background:#176441;border-radius:7px;color:white;font-size:12px;white-space:normal}
.gir-vehicle-option.is-enabled .gir-start-book { display: inline-block !important; }
