/* ============================================================
   ULTIMATECH WMS — Deep Ocean Theme  v2.0
   Replaces: ultimaStyle.css + ultimagrid.css (nav/body sections)
   Font: Outfit (Google Fonts — loaded in header_v2.php)
   Brand: navy #0d1b3e | blue #1a4fba | orange #f5820d | cyan #00b0d7
   ============================================================ */

/* ---- RESET ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---- ROOT VARS ---- */
:root {
  --navy:    #0d1b3e;
  --blue:    #1a4fba;
  --orange:  #f5820d;
  --cyan:    #00b0d7;
  --red:     #e53935;
  --green:   #4caf50;

  --bg-page: #f4f6fb;
  --bg-card: #ffffff;
  --bg-row:  #fafbfe;

  --border:  #e8ecf2;
  --border-light: #f0f2f8;

  --text-primary:   #0d1b3e;
  --text-secondary: #555e6e;
  --text-muted:     #9aa0ac;

  --font: 'Outfit', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;

  --header-h: 72px;
  --subbar-h: 40px;
  --nav-total: 94px; /* header + subbar */
}

/* ---- BASE ---- */
html, body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-page);
  min-height: 100vh;
}

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ============================================================
   NAVIGATION — HEADER + SUBBAR
   The <menu> element in header.php contains both rows.
   ============================================================ */

menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
}

/* Primary header bar */
.ut-header {
  height: var(--header-h);
  background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 100%);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
}

/* Logo area */
.ut-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 22px;
  border-right: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
  text-decoration: none;
}
.ut-logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.ut-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Top-level nav links (desktop) */
.ut-nav {
  display: flex;
  gap: 2px;
}
.ut-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.ut-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}
.ut-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.15);
}

/* Header right side */
.ut-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Header search input */
.ut-search {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: 7px 14px;
  font-size: 13px;
  color: #fff;
  outline: none;
  font-family: var(--font);
  width: 220px;
  transition: border-color 0.15s;
}
.ut-search::placeholder {
  color: rgba(255,255,255,0.4);
}
.ut-search:focus {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.18);
}

/* Add SKU button in header */
.ut-btn-primary {
  background: var(--orange);
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
  transition: background 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ut-btn-primary:hover {
  background: #e0730a;
  text-decoration: none;
  color: #fff;
}

/* User avatar */
.ut-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
}
.ut-avatar:hover {
  background: rgba(255,255,255,0.3);
  text-decoration: none;
}

/* Secondary sub-tab bar */
.ut-subbar {
  height: var(--subbar-h);
  background: var(--navy);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  overflow-x: auto;
  scrollbar-width: none;
}
.ut-subbar::-webkit-scrollbar {
  display: none;
}

.ut-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  height: 100%;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.15s;
  flex-shrink: 0;
}
.ut-tab:hover {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}
.ut-tab.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.ut-tab-count {
  background: rgba(0,176,215,0.2);
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
}
.ut-tab-count.warn {
  background: rgba(245,130,13,0.2);
  color: var(--orange);
}
.ut-tab-count.danger {
  background: rgba(229,57,53,0.2);
  color: var(--red);
}

/* ============================================================
   PAGE BODY — pushes content below fixed nav
   ============================================================ */
body {
  padding-top: var(--nav-total);
}

/* Main content wrapper */
.ut-page {
  padding: 48px 40px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ============================================================
   LEGACY .cont SUPPORT
   All existing pages use .cont as their main wrapper.
   We restyle it to Deep Ocean without breaking structure.
   ============================================================ */
.cont {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
  justify-content: center;
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 14px;
  /* Remove the old margin-top — body padding-top handles it now */
  margin-top: 0 !important;
}

.cont .title {
  grid-column: 1 / -1;
}
.cont .title label {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.cont .bar {
  grid-column: 1 / -1;
  padding-top: 0;
}
.cont .info {
  grid-column: 1 / span 4;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  color: var(--text-primary);
  text-align: left;
  padding: 20px;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.6;
}
.cont .pict {
  grid-column: 5 / span 2;
  text-align: center;
  margin-top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.cont .pict img {
  width: 95%;
  border-radius: var(--radius-md);
}
.cont .desc {
  grid-column: 1 / -1;
  text-align: left;
  margin-top: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}
.cont .obs {
  grid-column: 1 / -1;
  text-align: left;
}
.cont .section {
  grid-column: 2 / -2;
  margin-top: 0;
  font-size: 15px;
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--text-primary);
  background: var(--bg-row);
  border: 1px solid var(--border);
  padding: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.cont .section:hover {
  background: #e8ecf2;
}
.cont .sesion {
  grid-column: 1 / -1;
  grid-row: 2 / 3;
  margin-top: 30px;
  font-size: 36px;
  text-transform: uppercase;
}
.cont .clsesion {
  grid-column: -3 / -1;
  background: var(--orange);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 5px 15px;
  margin-left: 15px;
  font-size: 20px;
  cursor: pointer;
  border: none;
}
.cont .btnSession {
  grid-row: -6 / 1;
}
.cont .inout {
  grid-column: 1 / -1;
}
.cont .inout input {
  padding: 10px;
  margin: 5px;
}
.cont .inout .RefInOut {
  width: 275px;
}
.cont .tblInOut {
  grid-column: 1 / -1;
}
.cont .list {
  grid-column: 1 / -1;
  font-size: 14px;
  column-count: 4;
  text-align: left;
}
.cont .list a:visited,
.cont .list a:link {
  cursor: zoom-in;
  text-decoration: none;
  color: var(--blue);
}
.cont .list a:visited:hover,
.cont .list a:link:hover {
  text-decoration: underline;
}
.cont .list .category {
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
}
.cont .list .subcat {
  color: var(--text-muted);
  font-size: 13px;
}
.cont .sticker {
  width: 800px;
  text-align: left;
}
.cont .bar .barcode {
  width: 50%;
  padding: 4px 0;
}
.cont .bar .qty {
  width: 50px;
  text-align: center;
  padding: 4px 0;
}

/* ============================================================
   CARDS & PANELS
   ============================================================ */
.ut-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.ut-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.ut-card-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ut-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ut-card-title-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}
.ut-card-link {
  font-size: 12px;
  color: var(--blue);
  cursor: pointer;
  text-decoration: none;
}
.ut-card-link:hover {
  text-decoration: underline;
}
.ut-card-body {
  padding: 16px 18px;
}

/* KPI cards */
.ut-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.ut-kpi {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ut-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.ut-kpi-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.ut-kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ut-kpi-icon.navy  { background: #eef2ff; }
.ut-kpi-icon.orange { background: #fff3e0; }
.ut-kpi-icon.red   { background: #fce4ec; }
.ut-kpi-icon.teal  { background: #e0f7fa; }
.ut-kpi-icon.green { background: #e8f5e9; }
.ut-kpi-val {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.ut-kpi-val.orange { color: var(--orange); }
.ut-kpi-val.red    { color: var(--red); }
.ut-kpi-val.teal   { color: var(--cyan); }
.ut-kpi-sub {
  font-size: 11px;
  color: var(--text-muted);
}
.ut-kpi-sub.up   { color: var(--green); }
.ut-kpi-sub.down { color: var(--red); }
.ut-kpi-sub.info { color: var(--blue); }

/* ============================================================
   TABLES
   ============================================================ */
.ut-table-wrap {
  overflow-x: auto;
}
.ut-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ut-table th {
  padding: 10px 18px;
  text-align: left;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  background: var(--bg-row);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.ut-table td {
  padding: 11px 18px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  vertical-align: middle;
}
.ut-table tr:last-child td {
  border-bottom: none;
}
.ut-table tr:hover td {
  background: #f8f9fd;
}

/* Legacy table classes (used across all PHP files) */
.table_gral {
  width: 95%;
  margin-left: auto;
  margin-right: auto;
  border-collapse: collapse;
  font-size: 13px;
}
.table_gral th {
  font-size: 13px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  background: var(--bg-row);
  color: var(--navy);
  font-weight: 600;
}
.table_gral td {
  font-size: 13px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}
.tblCont .table_gral th {
  font-size: 13px;
  border: 1px solid var(--border);
}
.tblCont .table_gral td {
  font-size: 13px;
  padding: 6px 8px;
}
.tblCont .table_gral .phototable {
  width: 100%;
  min-width: 45px;
  max-width: 65px;
  display: block;
  margin: 0 auto;
  font-size: 10px;
}
.phototable {
  height: 100%;
  font-size: 10px;
}
.phototable img {
  width: 100%;
  border-radius: 4px;
}
.phototable_aux {
  height: 100%;
  font-size: 10px;
}
.phototable_aux img {
  width: 100%;
  border-radius: 4px;
}
.tbl_InOut {
  width: 75%;
  text-align: center;
  margin: 0 auto;
  border-collapse: collapse;
}

/* ============================================================
   STATUS BADGES
   ============================================================ */
.ut-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.ut-badge.ok     { background: #e8f5e9; color: #2e7d32; }
.ut-badge.low    { background: #fff3e0; color: #e65100; }
.ut-badge.out    { background: #fce4ec; color: #c62828; }
.ut-badge.info   { background: #e3f2fd; color: #1565c0; }
.ut-badge.neutral { background: var(--bg-row); color: var(--text-secondary); border: 1px solid var(--border); }

/* Stock-low highlight on table row (legacy .stock class) */
.stock {
  background: rgba(229,57,53,0.08) !important;
}

/* UL code chip */
.ut-ul {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue);
  background: #eef3ff;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-block;
}

/* ============================================================
   BUTTONS (global)
   ============================================================ */
.btn {
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 7px 16px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn:hover {
  background: #163fa0;
}
.btn-orange {
  background: var(--orange);
}
.btn-orange:hover {
  background: #e0730a;
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  background: var(--bg-row);
}
.btn-danger {
  background: var(--red);
}
.btn-danger:hover {
  background: #c62828;
}
.btnSave {
  font-size: 18px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s;
}
.btnSave:hover {
  background: #163fa0;
}
.smBtn {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid var(--red);
  background: #fce4ec;
  color: var(--red);
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.SaveBtn {
  width: 36px;
  height: 28px;
  border: 1px solid var(--navy);
  background: #fef9c3;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}
.editBtn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--bg-card);
}

/* ============================================================
   FORM INPUTS
   ============================================================ */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="date"],
select,
textarea {
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  background: var(--bg-card);
  outline: none;
  transition: border-color 0.15s;
}
input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
}
input[type="submit"] {
  font-family: var(--font);
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
input[type="submit"]:hover {
  background: #e0730a;
}
.inpItem {
  width: 98%;
}
.inpNum {
  width: 90px;
}
.selPrnt {
  width: 80px;
}
.qtPrint {
  width: 40px;
}
.tbSave {
  width: 80%;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery .GalleryPic {
  height: 180px;
  margin-top: 10px;
  padding-bottom: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.gallery .GalleryPic img {
  display: block;
  margin: 0 auto;
  height: 100%;
  border-radius: var(--radius-md);
  transition: transform 0.2s;
}
.gallery .GalleryPic:hover img {
  transform: scale(0.96);
}
.gallery .GalleryPic iframe {
  width: 100%;
  height: 170px;
  margin: 0;
}
.gallery .GalleryPic .video {
  width: 100%;
  height: 180px;
}
.gallery .GalleryPic source {
  display: block;
  height: 100%;
  margin-top: 10px;
  border-radius: var(--radius-md);
}

/* ============================================================
   PURCHASE / CONSTRUCTION SECTIONS
   ============================================================ */
.descCont, .picsCont, .purchCont {
  grid-column: 1 / -1;
}
.cont .purch {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: minmax(150px, auto) minmax(150px, auto);
  gap: 10px;
}
.cont .purch table {
  border: 1px solid var(--border);
  width: 100%;
}
.cont .purch table th {
  border: 1px solid var(--border);
  width: 30%;
  font-size: 13px;
  padding: 8px;
  background: var(--bg-row);
  color: var(--navy);
}
.cont .purch table input {
  width: 90%;
  font-size: 12px;
}
.cont .const {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-template-rows: minmax(150px, auto);
  gap: 10px;
}
.cont .const table {
  border: 1px solid var(--border);
  width: 100%;
  font-size: 13px;
}
.cont .const table th {
  border: 1px solid var(--border);
  font-size: 13px;
  padding: 8px;
  background: var(--bg-row);
}
.cont .const table input {
  width: 90%;
  font-size: 12px;
}
.cont .const .parts table {
  font-size: 14px;
}
.cont .const .parts table th {
  font-size: 14px;
}
.cont .const .parts img {
  display: block;
  height: 100px;
  width: auto;
  margin: 0 auto;
}
.imgCons {
  height: 100%;
  width: auto;
  min-width: 45px;
  max-width: 100px;
  display: block;
  font-size: 20px;
}
.imgCons img {
  display: block;
  width: 100%;
  border-radius: 5px;
}
.lngCol {
  width: 80%;
}
.Minimum {
  font-weight: 700;
  font-size: 15px;
}
.tbOut {
  grid-column: 1 / -1;
}
.edtCategories {
  grid-column: 1 / 3;
}
.picCol {
  width: 15%;
}
.trConst {
  height: 5px;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.bdContent {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
}
.login-container {
  width: 100%;
  max-width: 400px;
  text-align: center;
  padding: 0 16px;
}
.login-box {
  background: var(--bg-card);
  padding: 36px 32px;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.login-box img {
  max-width: 100%;
  margin-bottom: 12px;
}
.login-form input[type="text"],
.login-form input[type="password"] {
  display: block;
  width: 100%;
  padding: 11px 14px;
  margin: 10px 0;
  font-size: 14px;
}
.login-form button {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
  margin-top: 4px;
}
.login-form button:hover {
  background: #163fa0;
}
.login-text {
  color: var(--blue);
  font-weight: 600;
}

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.contout {
  background: rgba(71,80,95,0.9);
}
.sesion {
  font-size: 36px;
  text-transform: uppercase;
}
.cont .sesion .inSesion {
  width: 50%;
  font-size: 24px;
  margin-top: 20px;
  text-align: center;
  text-transform: uppercase;
}
.dlgSesion {
  text-transform: uppercase;
}
iframe {
  width: 100%;
  height: 100%;
  margin-top: 10px;
}

/* Page title (index.php legacy) */
.ndxTitle {
  font-size: 22px;
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  padding: 20px 0 10px;
}

/* Index page card grid */
.container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: minmax(50px, auto) minmax(50px, auto) minmax(50px, auto);
  gap: 12px;
  width: 90%;
  max-width: 900px;
  margin: 24px auto;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}
.container > div {
  display: block;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.2s;
  cursor: pointer;
}
.container > div:hover {
  border-color: var(--blue);
  background: #eef3ff;
  color: var(--navy);
}
.container .img {
  height: 90px;
  object-fit: contain;
}
.container .img_menu {
  height: 44px;
  object-fit: contain;
}
.gral {
  border-color: rgba(255,5,74,0);
}


/* In/Out Log table */
.tblCont {
  overflow-x: auto;
  grid-column: 1 / -1;
}

/* ============================================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================================ */
@media screen and (max-width: 768px) {
  :root {
    --nav-total: 94px;
  }

  .ut-search { width: 140px; }
  .ut-nav { display: none; }

  .cont {
    padding: 16px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .cont .title label {
    font-size: 18px;
  }
  .cont .info {
    grid-column: 1 / -1;
  }
  .cont .pict {
    grid-column: 1 / -1;
    margin: 0 auto;
  }
  .cont .list {
    column-count: 3;
  }

  .ut-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ut-cards-row {
    grid-template-columns: 1fr;
  }

  .container {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
    padding: 0 8px;
  }
  .container .img {
    height: 40px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery .GalleryPic {
    height: 150px;
  }
  .gallery .GalleryPic iframe {
    height: 140px;
  }
  .gallery .GalleryPic .video {
    width: 100%;
    height: 150px;
  }

  .cont .purch table,
  .cont .const table {
    font-size: 12px;
    overflow-x: auto;
    display: block;
  }
  .imgCons {
    max-width: 200px;
  }
}

@media screen and (max-width: 480px) {
  .cont .list {
    column-count: 2;
  }
  .ut-search {
    display: none;
  }
  .ut-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
}
