/*
 * Replacements for former inline style="" attributes (CSP style-src hardening, VAPT 2026-11-03).
 * The policy no longer allows 'unsafe-inline', so every style that used to sit on an element lives here.
 *
 * Declarations are !important on purpose: an inline style beat every normal stylesheet rule, and the
 * element-specific Bootstrap rules these used to override (e.g. .table > * > *) would otherwise win again.
 * The one exception is .u-hidden: scripts show/hide those elements with el.style.display, and an
 * !important rule here would stop that from ever showing them.
 *
 * Where Bootstrap already has the exact utility (p-0, pe-0, ps-0, mt-3, ms-3, text-white, bg-success,
 * overflow-y-auto) the markup uses it instead of a rule in this file.
 */

.u-hidden { display: none; }

.u-h-40 { height: 40px !important; }
.u-h-75 { height: 75px !important; }
.u-h-100px { height: 100px !important; }
.u-h-400 { height: 400px !important; }
.u-minh-100 { min-height: 100px !important; }
.u-maxh-100vh { max-height: 100vh !important; }

.u-w-48 { width: 48% !important; }
.u-minw-90 { min-width: 90px !important; }
.u-minw-110 { min-width: 110px !important; }
.u-minw-120 { min-width: 120px !important; }
.u-minw-140 { min-width: 140px !important; }
.u-minw-160 { min-width: 160px !important; }

.u-bg-steel { background-color: #5a8eb2 !important; }

.u-link-underline { text-decoration: underline !important; cursor: pointer !important; }

/* Styles formerly written into JS-built markup (map popups, payment modal, request badges) */
.u-row-gap-10 { display: flex !important; align-items: center !important; gap: 10px !important; }
.u-maxh-500 { max-height: 500px !important; }
.u-cursor-pointer { cursor: pointer !important; }

/* Request status badges (requests_management.js getStatusBadge) - paid/pending are light, so dark text */
.u-status-not-paid { background-color: #dc3545 !important; color: #fff !important; }
.u-status-paid { background-color: #ffc107 !important; color: #000 !important; }
.u-status-pending { background-color: #fd7e14 !important; color: #000 !important; }
.u-status-approved { background-color: #28a745 !important; color: #fff !important; }
.u-status-not-approved { background-color: #6c757d !important; color: #fff !important; }
.u-status-expired { background-color: #343a40 !important; color: #fff !important; }

/* stations_viewer.js import flow */
.u-mt-1em { margin-top: 1em !important; }
.u-text-red { color: red !important; }
.u-w-160 { width: 160px !important; }
.u-import-modal { max-width: 90vw; max-height: 80vh; display: flex; flex-direction: column; }
.u-import-modal-head { display: flex; justify-content: flex-end; align-items: center; gap: 1em; background: #fff; border-bottom: 1px solid #eee; padding: 1em 2em; }
.u-import-modal-body { overflow: auto; flex: 1 1 auto; background: #fff; padding: 2em; }
.u-scroll-350 { max-height: 350px !important; overflow-y: auto !important; overflow-x: hidden !important; }
.u-cell-changed { background-color: #ffeb3b !important; font-weight: bold !important; border-left: 5px solid #ff9800 !important; }
.u-textarea-import { min-width: 180px !important; min-height: 2.5em !important; resize: vertical !important; }
.u-import-idcell { vertical-align: top !important; text-align: center !important; width: 60px !important; background: #f8f9fa !important; }

/* stations_viewer.html import-preview modal body / action row */
.u-modal-scroll { min-width: 600px !important; max-width: 90vw !important; max-height: 80vh !important; overflow: auto !important; }
.u-actions-right { text-align: right !important; margin-top: 1em !important; }
