/*
 * modern.css — CSS-only design improvements for eSociala
 * Loaded after style.css — only overrides, never breaks functionality
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after {
  font-family: 'Inter', Arial, Helvetica, sans-serif !important;
}

/* ─── Variables ─────────────────────────────────────────── */
:root {
  --primary:   #c04e33;
  --primary-h: #a33e26;
  --bg:        #f5f5f5;
  --white:     #ffffff;
  --border:    #d0d0d0;
  --text:      #333333;
  --label:     #555555;
  --radius:    5px;
  --shadow:    0 1px 4px rgba(0,0,0,.10);
}

/* ─── Global base ────────────────────────────────────────── */
body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11pt;
  color: var(--text);
  background: radial-gradient(circle at top, #fff7f1 0%, #f5f5f5 38%, #eceae6 100%);
  background-attachment: fixed;
  background-image: radial-gradient(circle at top, #fff7f1 0%, #f5f5f5 38%, #eceae6 100%) !important;
}

/* ─── All text inputs, passwords, selects, textareas ──────── */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
select,
textarea {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11pt !important;
  color: var(--text) !important;
  background-color: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius);
  padding: 5px 8px;
  box-sizing: border-box;
  outline: none;
  transition: border-color .15s;
  width: auto;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px rgba(192,78,51,.15);
}

/* ─── .input_style123 (login page inputs) ─────────────────── */
.input_style123 {
  background-color: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius);
  font-size: 13pt !important;
  color: var(--text) !important;
  padding: 5px 10px;
  width: 200px;
}

/* ─── .input_pass (container td with old bg image) ────────── */
.input_pass {
  background-image: none !important;
  background-color: transparent !important;
  border: none !important;
  height: auto !important;
  padding: 2px 0 !important;
  width: auto !important;
}

/* ─── Labels ──────────────────────────────────────────────── */
.various_fields {
  color: var(--label) !important;
  font-size: 11pt !important;
  font-weight: bold;
  vertical-align: middle;
  padding-right: 8px;
}
.form_st {
  font-size: 10pt !important;
  color: var(--label) !important;
  font-weight: bold;
  vertical-align: middle;
  padding-right: 8px;
}

/* ─── Submit buttons ──────────────────────────────────────── */
input[type="submit"],
input[type="button"],
.submit_b,
.butt_form_sub {
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 10pt !important;
  font-weight: bold;
  color: var(--white) !important;
  background-color: var(--primary) !important;
  border: none !important;
  border-radius: var(--radius);
  padding: 6px 18px;
  cursor: pointer;
  transition: background-color .15s;
}
input[type="submit"]:hover,
input[type="button"]:hover,
.submit_b:hover,
.butt_form_sub:hover {
  background-color: var(--primary-h) !important;
}

/* ─── butt_frame_c — the container td for butt_form_sub ───── */
.butt_frame_c {
  background-image: none !important;
  background-color: transparent !important;
  border: none !important;
  padding: 4px 0 !important;
}
.butt_frame_l,
.butt_frame_r {
  display: none !important;
}

/* ─── fg-button (jQuery UI buttons) ──────────────────────── */
.fg-button,
a.fg-button,
button.fg-button,
.fg-button.ui-state-default,
.fg-button.ui-state-loading,
.fg-button.ui-widget,
.ui-widget-content .fg-button {
  font-size: 9pt !important;
  padding: 4px 12px !important;
  background: var(--primary) !important;
  background-image: none !important;
  color: var(--white) !important;
  border: 1px solid var(--primary-h) !important;
  border-radius: var(--radius);
  cursor: pointer;
  text-shadow: none !important;
}
.fg-button:hover,
a.fg-button:hover,
.fg-button.ui-state-hover,
.fg-button.ui-state-default:hover {
  background: var(--primary-h) !important;
  background-image: none !important;
  color: var(--white) !important;
  border-color: var(--primary-h) !important;
}

/* ─── Frame boxes (replace bg-image border with CSS border) ── */
.frame_top,
.frame_bottom {
  background-image: none !important;
  height: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  padding: 0 !important;
}
.frame_left,
.frame_right {
  background-image: none !important;
  width: 0 !important;
  font-size: 0 !important;
  padding: 0 !important;
}
/* The actual content wrapper inside the frame */
table.basic {
  font-size: 10pt !important;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--white);
  box-shadow: var(--shadow);
}

/* ─── Statistic frame boxes ───────────────────────────────── */
.frame_top_s,
.frame_bottom_s {
  background-image: none !important;
  height: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  padding: 0 !important;
}
.frame_left_s,
.frame_right_s {
  background-image: none !important;
  width: 0 !important;
  font-size: 0 !important;
  padding: 0 !important;
}

/* ─── .hid_su (tiny font fix) ────────────────────────────── */
.hid_su {
  font-size: 10pt !important;
}

/* ─── Login page centering ────────────────────────────────── */
#ln2 {
  margin: 60px auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px 32px;
  min-width: 320px;
}

/* ─── Notices / error bar ─────────────────────────────────── */
.upper_notices {
  font-size: 10pt !important;
}
.notices {
  font-size: 10pt;
  margin: 6px 0;
}
.notices-feedback {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 11pt;
  font-weight: 600;
  margin: 10px auto;
}
.notices-success {
  background: #eafaf1;
  color: #1e7e34;
  border: 1px solid #b7dfca;
}
.notices-error {
  background: #fdf2f2;
  color: #c0392b;
  border: 1px solid #f0b8b8;
}

/* ─── Radio inputs — remove span overlay, show native ─────── */
span.radio {
  display: none !important;
}
input[type="radio"].styled {
  display: inline !important;
  opacity: 1 !important;
  width: auto !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* ─── Autocomplete suggestion anchor fix ──────────────────── */
/* td.var_a_u had position:absolute (inline) as anchor for suggestionsBox.
   Change to relative so td flows normally but still anchors the dropdown. */
td.var_a_u {
  position: relative !important;
}
select.styled {
  opacity: 1 !important;
  filter: none !important;
  position: static !important;
  width: auto !important;
  min-width: 120px;
}
span.select {
  display: none !important;
}

/* ─── select.styled (admin dropdowns) ────────────────────── */
select.styled {
  min-width: 120px;
}

/* ─── Checkboxes — keep them visible ─────────────────────── */
input[type="checkbox"] {
  width: auto !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* ─── Autocomplete keyboard navigation highlight ─────────── */
.suggestionList li.kb-active {
  background-color: var(--primary) !important;
  color: var(--white) !important;
}

/* ═══════════════════════════════════════════════════════════
   WEB 2.0 REFRESH
   Palette:
     page bg  #f4f6f9
     nav bg   #ffffff   (shadow bottom)
     info bar #fdf6f4   (very light warm)
     primary  #c04e33   (brand red)
     accent   #ffe8e2   (light red tint)
     text     #333333
     muted    #777777
   ═══════════════════════════════════════════════════════════ */

/* ─── Page background ───────────────────────────────────── */
body {
  background-color: #f4f6f9 !important;
  background-image: none !important;
}

/* ─── Info bar (top strip: hitri skok + user) ───────────── */
table[style*="height:24px"] {
  background: #fdf6f4 !important;
  background-image: none !important;
}
.upper_notices_if_log {
  background: transparent !important;
  color: #777 !important;
  font-size: 9pt !important;
  padding: 2px 12px;
}
.upper_notices_if_log a { color: var(--primary) !important; text-decoration: none; font-weight: bold; }
.upper_notices_if_log a:hover { color: var(--primary-h) !important; text-decoration: underline; }
.upper_notices_if_log b { color: #444 !important; }

/* ─── Nav bar (logo + menu) ─────────────────────────────── */
.menu_table {
  background: transparent !important;
}
.menu_table td { padding: 0 2px !important; vertical-align: middle !important; }
.menu_spacer { display: none !important; }

.menu_item_unselected,
.menu_item_unselected_a {
  display: inline-block;
  padding: 8px 16px !important;
  color: #555 !important;
  font-size: 10pt !important;
  font-weight: 600;
  text-decoration: none;
  border-radius: 20px;
  transition: background .2s, color .2s;
}
.menu_item_unselected:hover,
.menu_item_unselected_a:hover {
  background: #ffe8e2 !important;
  color: var(--primary) !important;
}
.menu_item_selected,
.menu_item_selected_a {
  display: inline-block;
  padding: 8px 16px !important;
  font-size: 10pt !important;
  font-weight: 700;
  color: #fff !important;
  background: var(--primary) !important;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(192,78,51,.30);
}

/* ─── Banner area (bg_titler.jpg) — collapse & replace ──── */
table[style*="bg_titler.jpg"],
table[style*="bg_titler"] {
  background: transparent !important;
  background-image: none !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  margin: 0 auto 12px auto !important;
}
table[style*="bg_titler.jpg"] td,
table[style*="bg_titler"] td {
  height: auto !important;
  padding: 0 !important;
  font-size: inherit !important;
  line-height: inherit !important;
}
img[src*="main_banner"] { display: none !important; }

/* ─── Sub-nav bar (main_banner_blank tables) ────────────── */
table[style*="main_banner_blank"] {
  background: #ffffff !important;
  background-image: none !important;
  height: auto !important;
  border-bottom: 2px solid #ffe8e2 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.06) !important;
}

.desc_table table[style*="main_banner_blank"] {
  width: calc(100% - 36px) !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  border: 1px solid #ddd !important;
  border-radius: 14px !important;
  border-bottom: 3px solid #c0392b !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.08) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f2f2f2 100%) !important;
}

.desc_table table[style*="main_banner_blank"] > tbody > tr > td {
  padding: 10px 18px !important;
}

.desc_table table[style*="main_banner_blank"] img[src*="rk_logo"] {
  height: 82px !important;
  width: auto !important;
}

/* ─── Welcome / notices area ────────────────────────────── */
td.notices {
  font-size: 11pt !important;
  color: #666 !important;
  padding: 8px 0 4px 0 !important;
}

/* ─── Footer ────────────────────────────────────────────── */
.footer {
  background-image: none !important;
  background: #fdf6f4 !important;
  height: 40px !important;
  padding: 10px 24px !important;
  color: #aaa !important;
  font-size: 9pt !important;
  border-top: 2px solid #ffe8e2 !important;
}
.footer img { display: none !important; }

/* ─── Panel cards (table.basic / border:1px solid #ccc) ─── */
table.basic,
table[style*="border:1px solid #ccc"] {
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.08) !important;
  border: 1px solid #e8e8e8 !important;
  background: #fff !important;
}
td[style*="background-color:#b03315"] {
  background-color: var(--primary) !important;
  font-size: 10pt !important;
  letter-spacing: .3px;
  border-radius: 0 !important;
}

/* ─── table.adminlist (data grids) ─────────────────────── */
table.adminlist {
  border-collapse: collapse !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.07) !important;
  font-size: 9.5pt !important;
  background: #fff !important;
}
table.adminlist thead th {
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 9pt !important;
  border-bottom: 2px solid #a33e26 !important;
  border-left: 1px solid rgba(255,255,255,.15) !important;
  padding: 8px 10px !important;
  text-transform: uppercase;
  letter-spacing: .5px;
}
table.adminlist thead th a { color: #fff !important; }
table.adminlist tbody tr td {
  background: #fff !important;
  border-bottom: 1px solid #f2f2f2 !important;
  padding: 7px 10px !important;
}
table.adminlist tbody tr.row1 td {
  background: #fdf9f8 !important;
}
table.adminlist tbody tr:hover td {
  background: #fff3f0 !important;
}
table.adminlist tfoot td,
table.adminlist tfoot th {
  background: #f9f9f9 !important;
  border-top: 1px solid #e8e8e8 !important;
  padding: 6px 10px !important;
  color: #666 !important;
}
table.adminlist thead th.headerSortUp::after  { content: " ▲"; font-size: 8pt; opacity: .7; }
table.adminlist thead th.headerSortDown::after { content: " ▼"; font-size: 8pt; opacity: .7; }

/* ─── Tablesorter filter row ────────────────────────────── */
.tablesorter-filter-row td,
tr.tablesorter-filter-row td {
  background: #fdf9f8 !important;
  padding: 4px 4px !important;
}
.tablesorter-filter-row input,
tr.tablesorter-filter-row input[type="text"] {
  width: 90% !important;
  font-size: 8.5pt !important;
  padding: 3px 5px !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
}

/* ─── .desc_table (outer wrapper) ──────────────────────── */
.desc_table {
  background-image: none !important;
  background-color: transparent !important;
}

/* ─── Fieldsets ─────────────────────────────────────────── */
fieldset {
  border: 1px solid #e8e8e8 !important;
  border-radius: 8px !important;
  padding: 16px 20px !important;
  background: #fff !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  margin-bottom: 14px !important;
}
legend {
  font-weight: 700;
  color: var(--primary) !important;
  font-size: 10pt !important;
  padding: 0 8px !important;
}

/* ─── Info / error div ──────────────────────────────────── */
div.info {
  border-radius: 8px !important;
  border: 1px solid #90c4e4 !important;
  background: #e8f4fd !important;
  color: #1a5f8a !important;
  background-image: none !important;
}

/* ─── Quick-jump (Hitri skok) dropdown links ────────────── */
.hid_su li a {
  font-size: 10pt !important;
  color: #444 !important;
  padding: 5px 14px !important;
}
.hid_su li a:hover { background: #ffe8e2 !important; color: var(--primary) !important; }

/* ─── fg-button ─────────────────────────────────────────── */
#flyout.fg-button { font-size: 9pt !important; padding: 5px 12px !important; }

/* ─── Links ─────────────────────────────────────────────── */
a { color: var(--primary); }
a:hover { color: var(--primary-h); }

/* ─── Pagination ────────────────────────────────────────── */
.pagination a,
.pagination span {
  display: inline-block;
  padding: 3px 8px;
  margin: 1px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 9pt;
  color: var(--primary);
  text-decoration: none;
}
.pagination a:hover { background: #ffe8e2; }
.pagination span.current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ─── Page title (menu_item_titler) ────────────────────── */
.menu_item_titler {
  background-image: none !important;
  background-color: transparent !important;
  width: auto !important;
  max-width: 1100px;
  margin: 10px auto 4px auto !important;
  padding: 10px 20px 10px 20px !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px;

  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 13pt !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  letter-spacing: .5px;

  border-left: 4px solid var(--primary) !important;
  border-radius: 0 6px 6px 0 !important;
  background: linear-gradient(90deg, #fff5f3 0%, #f4f6f9 100%) !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.07) !important;
}
.menu_item_titler::before {
  content: "▸";
  color: var(--primary);
  font-size: 11pt;
  opacity: .7;
}

.menu_item_titler_color {
  background-image: none !important;
  background-color: transparent !important;
  background: linear-gradient(90deg, #fff5f3 0%, #f4f6f9 100%) !important;
  border-left: 4px solid #888 !important;
  border-radius: 0 6px 6px 0 !important;
  width: auto !important;
  margin: 10px auto 4px auto !important;
  padding: 10px 20px !important;
  height: auto !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 13pt !important;
  font-weight: 700 !important;
  color: #555 !important;
}

/* ─── .desc_table wrapper (removes opis_bg.jpg) ─────────── */
.desc_table {
  background-image: none !important;
  background-color: transparent !important;
}

/* ─── .titler_sm (sub-nav links) ────────────────────────── */
.titler_sm {
  color: var(--primary) !important;
  font-weight: 600 !important;
  font-size: 10pt !important;
  text-decoration: none !important;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background .15s;
}
.titler_sm:hover {
  color: var(--primary-h) !important;
  background: #ffe8e2 !important;
}

/* ─── Full-width layout ─────────────────────────────────── */
html, body {
  width: 100% !important;
  box-sizing: border-box;
}
body {
  padding: 0 24px !important;
}

table[style*="1155px"],
table[style*="1010px"],
table[style*="1000px"] {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Menu row: logo left, nav right */
table[style*="1155px"] > tbody > tr > td:first-child {
  width: 220px !important;
}

/* ─── Hide "Hitri skok" ─────────────────────────────────── */
#flyout,
#news-items { display: none !important; }

/* ─── fg-menu dropdown: no-wrap, clean look ────────────── */
.fg-menu-container {
  z-index: 50000 !important;
  min-width: 200px !important;
  padding: 4px !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.15) !important;
  border: 1px solid #e8e8e8 !important;
  background: #fff !important;
}
.fg-menu li { width: auto !important; float: none !important; }
.fg-menu a,
.fg-menu a:link,
.fg-menu a:visited,
.fg-menu a:hover {
  float: none !important;
  display: block !important;
  width: auto !important;
  white-space: nowrap !important;
  padding: 7px 14px !important;
  border-radius: 5px !important;
  font-size: 10pt !important;
  color: #333 !important;
  text-decoration: none !important;
  border: none !important;
}
.fg-menu a:hover,
.fg-menu a.ui-state-hover {
  background: #ffe8e2 !important;
  color: var(--primary) !important;
}

/* ─── hid_su (quick-jump lists inside fg-menu) ──────────── */
.hid_su a {
  white-space: nowrap !important;
  display: block !important;
  padding: 7px 14px !important;
  font-size: 10pt !important;
  color: #333 !important;
  text-decoration: none !important;
  border-radius: 5px !important;
}
.hid_su a:hover {
  background: #ffe8e2 !important;
  color: var(--primary) !important;
}

.desc_table .fg-button.ui-widget,
.desc_table a.fg-button.ui-widget {
  background: linear-gradient(180deg, #ffffff 0%, #e8e8e8 100%) !important;
  border: 1px solid #ccc !important;
  border-radius: 6px !important;
  padding: 6px 14px 6px 10px !important;
  font-size: 9.5pt !important;
  font-weight: 600 !important;
  color: #333 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.8) !important;
  letter-spacing: 0.2px !important;
}

.desc_table .fg-button.ui-widget:hover,
.desc_table .fg-button.ui-state-active {
  background: linear-gradient(180deg, #c0392b 0%, #922b21 100%) !important;
  border-color: #7b241c !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(192,57,43,0.5), inset 0 1px 0 rgba(255,255,255,0.15) !important;
}

.desc_table .fg-button .ui-icon {
  opacity: 0.75 !important;
}

.desc_table .fg-button:hover .ui-icon,
.desc_table .fg-button.ui-state-active .ui-icon {
  opacity: 1 !important;
}

.legacy-page-pad {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px 28px;
  box-sizing: border-box;
}

/* ─── Hide Administracija from main nav ─────────────────── */
a[href*="page=administration"].menu_item_selected,
a[href*="page=administration"].menu_item_unselected,
a[href*="page=administration"].menu_item_selected_a,
a[href*="page=administration"].menu_item_unselected_a {
  display: none !important;
}

/* ─── .var_a_u form label cells ─────────────────────────── */
.var_a_u {
  font-size: 10pt !important;
  background-color: #f5f5f5 !important;
  padding: 5px 8px !important;
}

/* ─── suggestionsBox — autocomplete dropdown ────────────── */
.suggestionsBox {
  position: absolute !important;
  z-index: 9999 !important;
  background: #fff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.15) !important;
  min-width: 260px !important;
  width: auto !important;
  max-height: 320px;
  overflow-y: auto;
  padding: 4px 0 !important;
  margin: 4px 0 0 0 !important;
  color: #333 !important;
}

.suggestionList {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.suggestionList li {
  padding: 8px 14px !important;
  margin: 0 !important;
  font-size: 10pt !important;
  color: #333 !important;
  cursor: pointer !important;
  border-bottom: 1px solid #f5f5f5 !important;
  white-space: nowrap;
  line-height: 1.4;
}
.suggestionList li:last-child { border-bottom: none !important; }

.suggestionList li:hover,
.suggestionList li.kb-active {
  background: #fff3f0 !important;
  color: var(--primary) !important;
}

/* span inside li (extra info row) */
.suggestionList li span {
  display: block !important;
  font-size: 8.5pt !important;
  color: #888 !important;
  background: transparent !important;
  margin-top: 2px;
  white-space: normal;
}

/* ─── table.basic — panel text style ────────────────────── */
table.basic {
  font-size: 10pt !important;
  color: #333 !important;
  font-family: Arial, Helvetica, sans-serif !important;
}

/* ═══════════════════════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════════════════════ */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #c0392b 100%);
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
}

.login-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  padding: 40px 48px 36px;
  width: 340px;
  max-width: 95vw;
}

.login-card .login-brand {
  text-align: center;
  margin-bottom: 28px;
}

.login-card .login-brand h1 {
  font-size: 22pt;
  font-weight: 700;
  color: #c0392b;
  letter-spacing: 1px;
  margin: 0 0 4px 0;
}

.login-card .login-brand p {
  font-size: 9pt;
  color: #888;
  margin: 0;
}

.login-notice {
  background: #fff3f0;
  border-left: 3px solid #c0392b;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 9pt;
  color: #c0392b;
  margin-bottom: 20px;
  text-align: center;
  word-break: break-word;
}

.login-field {
  margin-bottom: 18px;
}

.login-field label {
  display: block;
  font-size: 8.5pt;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-field input[type="text"],
.login-field input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1.5px solid #ddd;
  border-radius: 7px;
  font-size: 10.5pt;
  color: #333;
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.login-field input[type="text"]:focus,
.login-field input[type="password"]:focus {
  border-color: #c0392b;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.12);
}

.login-btn {
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 11pt;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: opacity 0.2s, transform 0.1s;
  margin-top: 6px;
}

.login-btn:hover  { opacity: 0.92; }
.login-btn:active { transform: scale(0.98); }

/* ═══════════════════════════════════════════════════════════
   DESC-NAV — replaces gnezdene tabele v menu_*.tpl
   ═══════════════════════════════════════════════════════════ */
nav.desc-nav {
  width: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
  border-top: 1px solid #ddd;
  border-bottom: 3px solid #c0392b;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  margin-bottom: 20px;
  padding: 0;
}

.desc-nav-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.desc-nav-items .nav-item {
  position: relative;
}

/* fg-button pills inside desc-nav */
.desc-nav-items .fg-button.ui-widget {
  background: linear-gradient(180deg, #ffffff 0%, #e8e8e8 100%) !important;
  border: 1px solid #ccc !important;
  border-radius: 6px !important;
  padding: 6px 14px 6px 10px !important;
  font-size: 9.5pt !important;
  font-weight: 600 !important;
  color: #333 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.8) !important;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s !important;
  cursor: pointer !important;
  letter-spacing: 0.2px !important;
  text-shadow: none !important;
}

.desc-nav-items .fg-button.ui-widget:hover,
.desc-nav-items .fg-button.ui-state-active {
  background: linear-gradient(180deg, #c0392b 0%, #922b21 100%) !important;
  border-color: #7b241c !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(192,57,43,0.5), inset 0 1px 0 rgba(255,255,255,0.15) !important;
}

.desc-nav-items .fg-button .ui-icon {
  float: left !important;
  margin-right: 2px !important;
  opacity: 0.7 !important;
}

.desc-nav-items .fg-button:hover .ui-icon,
.desc-nav-items .fg-button.ui-state-active .ui-icon {
  opacity: 1 !important;
}

/* ═══════════════════════════════════════════════════════════
   APP SHELL — topbar, navbar, welcome, footer
   ═══════════════════════════════════════════════════════════ */

/* ── base body ── */
body {
  background: #f4f5f7 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: Arial, Helvetica, sans-serif !important;
}

/* ── slim top bar ── */
.app-topbar {
  background: linear-gradient(135deg, #1a1a2e 0%, #2c1a2e 100%);
  width: 100%;
  height: 34px;
  display: flex;
  align-items: center;
}

.app-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  box-sizing: border-box;
}

.topbar-left .fg-button {
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  color: #fff !important;
  font-size: 8pt !important;
  padding: 3px 10px !important;
  border-radius: 4px !important;
}

.topbar-left .fg-button:hover {
  background: rgba(255,255,255,0.22) !important;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 8pt;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}

.topbar-right b { color: #fff; }

.topbar-sep { color: rgba(255,255,255,0.35); }

.topbar-link {
  color: rgba(255,255,255,0.85) !important;
  text-decoration: none !important;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.topbar-link:hover { color: #fff !important; }

.topbar-logout {
  color: #e88 !important;
  text-decoration: none !important;
  font-weight: 700;
  transition: color 0.15s;
}

.topbar-logout:hover { color: #f66 !important; }

/* ── main navbar ── */
.app-navbar {
  background: #fff;
  border-bottom: 2px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  width: 100%;
}

.app-navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 16px;
  box-sizing: border-box;
}

.app-logo img {
  display: block;
  height: 60px;
  width: auto;
}

nav.app-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

/* override old table-based menu classes */
.menu_item_unselected,
.menu_item_unselected_a {
  display: inline-block !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  font-size: 10pt !important;
  font-weight: 600 !important;
  color: #555 !important;
  text-decoration: none !important;
  letter-spacing: 0.3px !important;
  transition: background 0.15s, color 0.15s !important;
  border: 1px solid transparent !important;
}

.menu_item_unselected:hover,
.menu_item_unselected_a:hover {
  background: #fff3f0 !important;
  color: #c0392b !important;
}

.menu_item_selected,
.menu_item_selected_a {
  display: inline-block !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  font-size: 10pt !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
  color: #fff !important;
  text-decoration: none !important;
  letter-spacing: 0.3px !important;
  border: 1px solid transparent !important;
  box-shadow: 0 2px 6px rgba(192,57,43,0.3) !important;
}

.menu_spacer { display: none !important; }

/* ── welcome bar ── */
.app-welcome-bar {
  background: linear-gradient(90deg, #c0392b 0%, #922b21 100%);
  width: 100%;
  padding: 10px 0;
}

.app-welcome-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 9.5pt;
  box-sizing: border-box;
}

.welcome-greeting { font-weight: normal; }
.welcome-greeting b { font-size: 10pt; }
.welcome-sep { color: rgba(255,255,255,0.5); font-size: 11pt; }
.welcome-unit { font-weight: 700; font-size: 10pt; letter-spacing: 0.3px; }

/* ── app notices ── */
.app-notice {
  max-width: 900px;
  margin: 12px auto;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 9.5pt;
  position: relative;
}

.app-notice-info {
  background: #e8f4fd;
  border: 1px solid #90c4e4;
  color: #1a5f8a;
}

.app-notice .notice-close {
  margin-left: 8px;
  font-weight: 600;
  color: #c0392b !important;
  text-decoration: underline !important;
  cursor: pointer;
}

/* ── page title bar (.menu_item_titler) ── */
.menu_item_titler,
.menu_item_titler_color {
  background: none !important;
  background-image: none !important;
  background-color: transparent !important;
  height: auto !important;
  width: auto !important;
  max-width: 1200px !important;
  margin: 0 auto 20px auto !important;
  padding: 18px 24px 14px !important;
  font-size: 13pt !important;
  font-weight: 700 !important;
  color: #c0392b !important;
  text-align: left !important;
  letter-spacing: 0.3px !important;
  border-bottom: 2px solid #e8e8e8 !important;
  display: block !important;
}

/* ── footer ── */
.app-footer {
  background: #1a1a2e;
  width: 100%;
  padding: 14px 0;
  margin-top: 24px;
}

.app-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.55);
  font-size: 8.5pt;
  box-sizing: border-box;
}

.app-footer-inner img {
  filter: brightness(0) invert(1);
  opacity: 0.5;
}

.app-footer-version {
  margin-left: auto;
  font-size: 7.5pt;
  opacity: 0.4;
  letter-spacing: 0.03em;
}

/* ── dashboard homepages ── */
.dashboard-shell {
  max-width: 1180px;
  margin: 22px auto 36px;
  padding: 0 18px;
  box-sizing: border-box;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 24px;
}

.dashboard-hero-copy,
.dashboard-summary,
.dashboard-panel,
.dashboard-card {
  border-radius: 22px;
  box-sizing: border-box;
}

.dashboard-hero-copy {
  padding: 28px 30px 30px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,246,239,0.88)),
    linear-gradient(120deg, #f6d8c2, #f8f4ee);
  border: 1px solid rgba(192, 78, 51, 0.16);
  box-shadow: 0 18px 40px rgba(91, 56, 45, 0.12);
  position: relative;
  overflow: hidden;
}

.dashboard-hero-copy:before {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(192,78,51,0.18) 0%, rgba(192,78,51,0) 68%);
}

.dashboard-hero-warehouse .dashboard-hero-copy {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.95), rgba(239,247,244,0.9)),
    linear-gradient(120deg, #d6e8dc, #f4f7f2);
}

.dashboard-hero-rks .dashboard-hero-copy {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(242,245,249,0.9)),
    linear-gradient(120deg, #d9e0ea, #f6f5f1);
}

.dashboard-eyebrow {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(46, 34, 30, 0.08);
  color: #74473c;
  font-size: 8.5pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
}

.dashboard-title {
  margin: 16px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26pt;
  line-height: 1.05;
  color: #2c1d17;
}

.dashboard-lead {
  margin: 0;
  max-width: 640px;
  color: #574740;
  font-size: 11.2pt;
  line-height: 1.7;
}

.dashboard-summary {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(180deg, #2d2523 0%, #171312 100%);
  box-shadow: 0 18px 40px rgba(25, 19, 18, 0.2);
}

.summary-tile {
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
}

.summary-label {
  display: block;
  color: rgba(255,255,255,0.72);
  font-size: 8.7pt;
  text-transform: uppercase;
  letter-spacing: 0.9px;
}

.summary-value {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 16pt;
  font-weight: 700;
  line-height: 1.2;
}

.dashboard-section {
  margin-bottom: 24px;
}

.dashboard-section-head {
  margin-bottom: 14px;
}

.dashboard-section-head h2,
.dashboard-panel h3 {
  margin: 0 0 6px;
  color: #2e2623;
  font-size: 16pt;
}

.dashboard-section-head p,
.dashboard-panel p {
  margin: 0;
  color: #6b5b54;
  line-height: 1.7;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-card {
  display: block;
  min-height: 174px;
  padding: 20px 20px 18px;
  text-decoration: none !important;
  color: #2f2723 !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,244,240,0.9));
  border: 1px solid rgba(121, 92, 81, 0.14);
  box-shadow: 0 14px 28px rgba(98, 70, 57, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 34px rgba(98, 70, 57, 0.14);
  border-color: rgba(192, 78, 51, 0.28);
}

.dashboard-card-accent {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.06)),
    linear-gradient(135deg, #c04e33, #8e2f1d);
  color: #fff !important;
}

.dashboard-card-accent .card-kicker,
.dashboard-card-accent p,
.dashboard-card-accent strong {
  color: #fff !important;
}

.card-kicker {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(192, 78, 51, 0.1);
  color: #91533e;
  font-size: 8.3pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
}

.dashboard-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 14pt;
  line-height: 1.25;
}

.dashboard-card p {
  color: #6a5952;
  line-height: 1.6;
}

.dashboard-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
}

.dashboard-panel {
  padding: 22px 24px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(121, 92, 81, 0.12);
  box-shadow: 0 16px 30px rgba(98, 70, 57, 0.08);
}

.dashboard-panel-soft {
  background: linear-gradient(180deg, rgba(250,246,241,0.95), rgba(242,238,232,0.92));
}

.panel-alert {
  margin-bottom: 14px !important;
  color: #9a3d2b !important;
  font-weight: 700;
}

.dashboard-link {
  display: inline-block;
  margin-top: 16px;
  color: #b5452c !important;
  font-weight: 700;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(181, 69, 44, 0.25);
}

.dashboard-link:hover {
  border-bottom-color: rgba(181, 69, 44, 0.7);
}

.flow-list {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.flow-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.flow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2f2926, #65564f);
  color: #fff;
  font-size: 12pt;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(47, 41, 38, 0.2);
}

.flow-item strong {
  display: block;
  margin-bottom: 4px;
  color: #302824;
  font-size: 11.5pt;
}

.dashboard-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.dashboard-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #efe4db;
  color: #84503d;
  font-size: 8.7pt;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.dashboard-mini-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-mini-stat {
  min-height: 104px;
  padding: 16px 18px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(121, 92, 81, 0.12);
  box-shadow: 0 10px 24px rgba(98, 70, 57, 0.06);
}

.dashboard-mini-stat-attention {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,247,237,0.94));
  border-color: rgba(192, 78, 51, 0.22);
}

.dashboard-mini-stat-pickup {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(239,247,241,0.94));
  border-color: rgba(68, 132, 94, 0.24);
}

.dashboard-mini-label {
  display: block;
  color: #7a685f;
  font-size: 8.5pt;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  overflow-wrap: anywhere;
}

.dashboard-mini-stat strong {
  display: block;
  margin-top: 10px;
  color: #2d241f;
  font-size: 19pt;
  line-height: 1.1;
}

.dashboard-table-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-table-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(121, 92, 81, 0.12);
  box-shadow: 0 12px 28px rgba(98, 70, 57, 0.07);
}

.dashboard-table-card-attention {
  border-color: rgba(192, 78, 51, 0.18);
}

.dashboard-table-card-pickup {
  border-color: rgba(68, 132, 94, 0.2);
}

.dashboard-table-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 14px;
  background: linear-gradient(180deg, rgba(250,246,241,0.9), rgba(255,255,255,0.6));
  border-bottom: 1px solid rgba(121, 92, 81, 0.1);
}

.dashboard-table-head h3 {
  margin: 0;
  color: #302824;
  font-size: 11.5pt;
  line-height: 1.35;
}

.dashboard-table-head strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #2f2926;
  color: #fff;
  font-size: 12pt;
}

.dashboard-table-wrap {
  overflow-x: auto;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9pt;
}

.dashboard-table th,
.dashboard-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(121, 92, 81, 0.09);
  color: #3b312c;
  text-align: left;
  vertical-align: middle;
}

.dashboard-table th {
  color: #7a685f;
  font-size: 8pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: rgba(248,244,240,0.55);
}

.dashboard-table tr:last-child td {
  border-bottom: 0;
}

.dashboard-table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(192, 78, 51, 0.1);
  color: #974432 !important;
  font-size: 8pt;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
}

.dashboard-table-action:hover {
  background: rgba(192, 78, 51, 0.17);
}

.dashboard-table-empty {
  padding: 18px !important;
  color: #7a685f !important;
  text-align: center !important;
}

.dashboard-quick-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.dashboard-quick-link {
  display: block;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(121, 92, 81, 0.14);
  color: #3a2f2a !important;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(98, 70, 57, 0.06);
}

.dashboard-quick-link:hover {
  border-color: rgba(192, 78, 51, 0.3);
  transform: translateY(-1px);
}

.dashboard-quick-link-accent {
  background: linear-gradient(135deg, #c04e33, #8e2f1d);
  border-color: transparent;
  color: #fff !important;
}

@media (max-width: 1100px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-mini-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-table-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .dashboard-hero,
  .dashboard-split {
    grid-template-columns: 1fr;
  }

  .dashboard-shell {
    padding: 0 12px;
  }

  .dashboard-title {
    font-size: 21pt;
  }

}

@media (max-width: 560px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-hero-copy,
  .dashboard-summary,
  .dashboard-panel,
  .dashboard-card {
    border-radius: 18px;
  }

  .dashboard-hero-copy,
  .dashboard-panel,
  .dashboard-card {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* ── desc_table background override ── */
.desc_table {
  background-image: none !important;
  background: transparent !important;
}

/* ═══════════════════════════════════════════════════════════
   VIEW PAGE — flex stat cards
   ═══════════════════════════════════════════════════════════ */
.view-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px 32px;
}

.view-section-title {
  font-size: 11pt;
  font-weight: 800;
  color: #c0392b;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 18px 0 10px;
  border-bottom: 2px solid #e8e8e8;
  margin-bottom: 16px;
}

.view-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════════════════
   OZRK usershelpstat
   ═══════════════════════════════════════════════════════════ */
.usershelpstat-layout {
  width: 100% !important;
  max-width: 1100px;
  margin: 0 auto 20px;
  padding-left: 0 !important;
}

.usershelpstat-card {
  width: 100% !important;
}

.usershelpstat-frame {
  padding: 16px 20px 20px;
  background: linear-gradient(180deg, #fffdf9 0%, #fff7ef 100%);
}

.usershelpstat-header {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.usershelpstat-intro {
  padding: 14px 16px !important;
  background: linear-gradient(135deg, #eef7f1 0%, #f8fbf5 100%) !important;
  border: 1px solid #d7e6db;
  border-radius: 14px;
  color: #3d5647;
  line-height: 1.5;
}

.usershelpstat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 16px;
}

.usershelpstat-toolbar-copy {
  font-size: 10pt;
  font-weight: 700;
  color: #6b5046;
}

.usershelpstat-toolbar form {
  margin: 0;
}

.usershelpstat-toolbar select {
  min-width: 160px;
  padding: 9px 12px;
  border: 1px solid #d8c6ba;
  border-radius: 10px;
  background: #fff;
  color: #5a4339;
  box-shadow: 0 6px 20px rgba(125, 76, 49, 0.08);
}

.usershelpstat-content-row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.usershelpstat-visual-column,
.usershelpstat-table-column {
  min-width: 0;
}

.usershelpstat-chart-wrap {
  margin-top: 4px;
  padding: 18px 16px 14px;
  border: 1px solid #eadfd3;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf3 100%);
  box-shadow: 0 18px 40px rgba(116, 82, 51, 0.08);
  overflow-x: auto;
}

.usershelpstat-chart-wrap > table {
  margin: 0 auto;
}

.usershelpstat-chart-wrap table table td[nowrap] {
  white-space: nowrap;
}

.usershelpstat-summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.usershelpstat-stat {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid #eddccf;
  background: #fff;
  box-shadow: 0 10px 26px rgba(116, 82, 51, 0.08);
}

.usershelpstat-stat-label {
  font-size: 8pt;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #ab6c45;
  margin-bottom: 6px;
}

.usershelpstat-stat-value {
  font-size: 20pt;
  line-height: 1.1;
  font-weight: 800;
  color: #5d3d31;
}

.usershelpstat-data-shell {
  width: 100% !important;
  margin-top: 0;
  padding-left: 0 !important;
}

.usershelpstat-table-head {
  margin: 4px 0 12px;
  padding: 14px 16px;
  border: 1px solid #eadfd3;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff8f1 0%, #fffdfb 100%);
}

.usershelpstat-table-eyebrow {
  font-size: 8pt;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #ab6c45;
  margin-bottom: 6px;
}

.usershelpstat-table-copy {
  font-size: 10pt;
  line-height: 1.45;
  color: #6c5447;
}

.usershelpstat-detail-table {
  width: 100% !important;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #ecdccc;
  box-shadow: 0 16px 36px rgba(116, 82, 51, 0.08);
}

.usershelpstat-detail-table thead th {
  background: linear-gradient(180deg, #fff4ec 0%, #f6e8dd 100%);
  color: #6b4437;
  border-bottom: 1px solid #ecdccc;
  padding-top: 12px;
  padding-bottom: 12px;
}

.usershelpstat-detail-table tbody td {
  background: #fff;
  padding-top: 10px;
  padding-bottom: 10px;
}

.usershelpstat-detail-table tbody tr:nth-child(even) td {
  background: #fffaf6;
}

.usershelpstat-detail-table tbody tr:hover td {
  background: #fff1e8;
}

@media (max-width: 1120px) {
  .usershelpstat-content-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .usershelpstat-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .usershelpstat-toolbar select {
    width: 100%;
  }

  .usershelpstat-summary-row {
    grid-template-columns: 1fr;
  }

  .usershelpstat-frame {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* ═══════════════════════════════════════════════════════════
   OZRK usersinsystem
   ═══════════════════════════════════════════════════════════ */
.usersinsystem-layout {
  width: 100% !important;
  max-width: 1100px;
  margin: 0 auto 20px;
  padding-left: 0 !important;
}

.usersinsystem-card {
  width: 100% !important;
}

.usersinsystem-chart-card {
  min-width: 0;
}

.usersinsystem-criteria-card {
  min-width: 0;
}

.usersinsystem-frame {
  padding: 16px 20px 20px;
  background: linear-gradient(180deg, #fffdf9 0%, #fef7f1 100%);
}

.usersinsystem-header {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.usersinsystem-intro {
  padding: 14px 16px !important;
  background: linear-gradient(135deg, #eef7f1 0%, #f8fbf5 100%) !important;
  border: 1px solid #d7e6db;
  border-radius: 14px;
  color: #3d5647;
  line-height: 1.5;
}

.usersinsystem-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 16px;
}

.usersinsystem-toolbar-copy {
  font-size: 10pt;
  font-weight: 700;
  color: #6b5046;
}

.usersinsystem-toolbar form {
  margin: 0;
}

.usersinsystem-toolbar select {
  min-width: 160px;
  padding: 9px 12px;
  border: 1px solid #d8c6ba;
  border-radius: 10px;
  background: #fff;
  color: #5a4339;
  box-shadow: 0 6px 20px rgba(125, 76, 49, 0.08);
}

.usersinsystem-chart-wrap {
  margin-top: 4px;
  padding: 18px 16px 14px;
  border: 1px solid #eadfd3;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf3 100%);
  box-shadow: 0 18px 40px rgba(116, 82, 51, 0.08);
  overflow-x: auto;
}

.usersinsystem-chart-wrap > table {
  margin: 0 auto;
}

.usersinsystem-chart-wrap table table td[nowrap] {
  white-space: nowrap;
}

.usersinsystem-summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.usersinsystem-stat {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid #eddccf;
  background: #fff;
  box-shadow: 0 10px 26px rgba(116, 82, 51, 0.08);
}

.usersinsystem-stat-label {
  font-size: 8pt;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #ab6c45;
  margin-bottom: 6px;
}

.usersinsystem-stat-value {
  font-size: 20pt;
  line-height: 1.1;
  font-weight: 800;
  color: #5d3d31;
}

.usersinsystem-criteria-frame {
  background: linear-gradient(180deg, #fffdfb 0%, #fff8f2 100%);
}

.usersinsystem-criteria-intro {
  background: linear-gradient(135deg, #fff2e7 0%, #fff9f3 100%) !important;
  border-color: #ead7c7;
  color: #6c4d3d;
}

.usersinsystem-criteria-copy {
  margin: 14px 0 12px;
  font-size: 10pt;
  line-height: 1.45;
  color: #6c5447;
}

.usersinsystem-criteria-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #ecdccc;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(116, 82, 51, 0.08);
  background: #fff;
}

.usersinsystem-criteria-table th {
  text-align: left;
  padding: 12px 14px;
  background: linear-gradient(180deg, #fff4ec 0%, #f6e8dd 100%);
  color: #6b4437;
  border-bottom: 1px solid #ecdccc;
}

.usersinsystem-criteria-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f3e6dc;
  vertical-align: top;
}

.usersinsystem-criteria-table tr:last-child td {
  border-bottom: none;
}

.usersinsystem-criteria-row:nth-child(even) td {
  background: #fffaf6;
}

.usersinsystem-criteria-name {
  display: block;
  color: #c04e33;
  margin-bottom: 2px;
}

.usersinsystem-criteria-comment {
  display: block;
  color: #7c675d;
  font-size: 9pt;
  line-height: 1.35;
}

.usersinsystem-criteria-value {
  width: 72px;
  text-align: right;
  color: #5d3d31;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .usersinsystem-layout > tbody > tr > td > table > tbody > tr {
    display: block;
  }

  .usersinsystem-layout > tbody > tr > td > table > tbody > tr > td {
    display: block;
    width: 100% !important;
  }

  .usersinsystem-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .usersinsystem-toolbar select {
    width: 100%;
  }

  .usersinsystem-summary-row {
    grid-template-columns: 1fr;
  }

  .usersinsystem-frame {
    padding-left: 14px;
    padding-right: 14px;
  }

  .usersinsystem-criteria-card {
    margin-top: 16px;
  }
}

/* ── stat card ── */
.stat-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border: 1px solid #ececec;
  overflow: hidden;
  flex: 1 1 280px;
  min-width: 260px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
}

.stat-card-wide {
  flex: 2 1 500px;
  max-width: none;
}

.stat-card-header {
  background: linear-gradient(135deg, #c0392b, #922b21);
  color: #fff;
  font-size: 8.5pt;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 10px 14px;
}

.stat-card-header sup {
  font-size: 7pt;
  opacity: 0.8;
  margin-left: 2px;
}

.stat-card-body {
  padding: 12px 14px;
  flex: 1;
}

/* ── stat row (label + value) ── */
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 9pt;
}

.stat-row:last-child { border-bottom: none; }

.stat-label {
  color: #555;
  flex: 1;
}

.stat-val {
  font-weight: 700;
  color: #1a1a2e;
  white-space: nowrap;
  font-size: 10pt;
  min-width: 30px;
  text-align: right;
}

/* hover rows (po krajih, skladišče) */
.stat-row-hover:hover {
  background: #fff3f0;
  border-radius: 4px;
  padding-left: 4px;
  padding-right: 4px;
}

/* scroll cards */
.stat-card-scroll .stat-card-body { padding: 0; }
.stat-scroll-inner {
  max-height: 240px;
  overflow-y: auto;
  padding: 10px 14px;
  scrollbar-width: thin;
  scrollbar-color: #e0e0e0 transparent;
}

/* lifecycle filter bar */
.stat-filter-bar {
  padding: 8px 14px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 9pt;
  color: #555;
  background: #fafafa;
}

.stat-filter-bar input[type="text"] {
  border: 1.5px solid #ddd;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 9pt;
}

.stat-filter-bar input[type="button"] {
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid #ddd;
  background: #f0f0f0;
  cursor: pointer;
  font-size: 8.5pt;
}

.stat-filter-bar input[type="button"]:hover {
  background: #ffe8e2;
  border-color: #c0392b;
  color: #c0392b;
}

/* lifecycle table */
.stat-table-wrap {
  max-height: 320px;
  overflow-y: auto;
  padding: 0 14px 12px;
  scrollbar-width: thin;
}

table.stat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9pt;
}

table.stat-table thead th {
  background: #f7f7f7;
  color: #666;
  font-size: 8pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 8px;
  border-bottom: 2px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 1;
}

table.stat-table tbody tr:hover { background: #fff3f0; }

table.stat-table tbody td {
  padding: 6px 8px;
  border-bottom: 1px solid #f5f5f5;
  color: #444;
}

table.stat-table tbody tr:last-child td { border-bottom: none; }

/* ═══════════════════════════════════════════════════════════
   TABLESORTER — global modern override
   ═══════════════════════════════════════════════════════════ */
table.tablesorter {
  font-family: inherit !important;
  background: transparent !important;
  border-collapse: collapse !important;
  width: 100% !important;
  font-size: 9pt !important;
  margin: 8px 0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07) !important;
}

/* ── header ── */
table.tablesorter thead tr th,
table.tablesorter tfoot tr th {
  background: linear-gradient(135deg, #c0392b, #922b21) !important;
  color: #fff !important;
  font-size: 8pt !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  padding: 9px 12px !important;
  border: none !important;
  white-space: nowrap !important;
}

/* sort arrows — combine with gradient so .header class doesn't kill the bg */
table.tablesorter thead tr .header {
  background-image: url(../img/updown.gif), linear-gradient(135deg, #c0392b, #922b21) !important;
  background-repeat: no-repeat, repeat !important;
  background-position: right 8px center, center !important;
  background-size: auto, cover !important;
  padding-right: 22px !important;
  cursor: pointer !important;
}

table.tablesorter thead tr .headerSortUp {
  background-image: url(../img/asc.gif), linear-gradient(135deg, #a93226, #7b241c) !important;
  background-repeat: no-repeat, repeat !important;
  background-position: right 8px center, center !important;
  background-size: auto, cover !important;
}

table.tablesorter thead tr .headerSortDown {
  background-image: url(../img/desc.gif), linear-gradient(135deg, #a93226, #7b241c) !important;
  background-repeat: no-repeat, repeat !important;
  background-position: right 8px center, center !important;
  background-size: auto, cover !important;
}

/* ── body cells ── */
table.tablesorter tbody td {
  color: #333 !important;
  padding: 8px 12px !important;
  font-size: 9pt !important;
  background-color: #fff !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #f2f2f2 !important;
}

table.tablesorter tbody tr:last-child td {
  border-bottom: none !important;
}

/* zebra stripe */
table.tablesorter tbody tr.odd td {
  background-color: #fafafa !important;
}

/* hover */
table.tablesorter tbody tr:hover td {
  background-color: #fff3f0 !important;
  transition: background 0.15s ease !important;
}

/* ── links inside cells ── */
table.tablesorter tbody td a {
  color: #c0392b !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

table.tablesorter tbody td a:hover {
  text-decoration: underline !important;
}

/* ── pager bar (tablesorterPager) ── */
#pager_criteria,
.tablesorter-pager {
  /* no display override — let inline style control visibility */
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 4px !important;
  font-size: 9pt !important;
  color: #555 !important;
}

#pager_criteria:not([style*="display:none"]):not([style*="display: none"]) {
  display: flex !important;
}

#pager_criteria img,
.tablesorter-pager img {
  cursor: pointer !important;
  opacity: 0.7 !important;
}

#pager_criteria img:hover,
.tablesorter-pager img:hover {
  opacity: 1 !important;
}

/* ── filter input row (tablesorterFilter) ── */
table.tablesorter tfoot tr td input,
table.tablesorter thead tr td input,
.tablesorter-filter {
  width: 100% !important;
  box-sizing: border-box !important;
  border: 1.5px solid #ddd !important;
  border-radius: 5px !important;
  padding: 5px 8px !important;
  font-size: 8.5pt !important;
  outline: none !important;
}

table.tablesorter tfoot tr td input:focus,
table.tablesorter thead tr td input:focus,
.tablesorter-filter:focus {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 2px rgba(192,57,43,0.12) !important;
}

/* ═══════════════════════════════════════════════════════════
   SEARCH / FILTER BAR above tablesorter tables
   ═══════════════════════════════════════════════════════════ */

/* wrapper td > form with Išči */
table[style*="1010px"] > tbody > tr:first-child > td > form,
table[style*="width: 1010px"] > tbody > tr:first-child > td {
  padding: 0 0 8px 0 !important;
}

/* style the search inputs + buttons inline */
table[style*="1010px"] input[type="text"],
table[style*="1010px"] input[type="search"] {
  border: 1.5px solid #ddd !important;
  border-radius: 6px !important;
  padding: 5px 10px !important;
  font-size: 9pt !important;
  outline: none !important;
  vertical-align: middle !important;
}

table[style*="1010px"] input[type="text"]:focus {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 2px rgba(192,57,43,0.12) !important;
}

table[style*="1010px"] input[type="submit"],
table[style*="1010px"] input[type="button"] {
  background: linear-gradient(135deg, #c0392b, #922b21) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 5px 14px !important;
  font-size: 9pt !important;
  cursor: pointer !important;
  vertical-align: middle !important;
}

table[style*="1010px"] input[type="submit"]:hover,
table[style*="1010px"] input[type="button"]:hover {
  background: linear-gradient(135deg, #a93226, #7b241c) !important;
}

/* server-side image pager (first/prev/next/last img links) */
table[style*="1010px"] a > img[src*="first.png"],
table[style*="1010px"] a > img[src*="prev.png"],
table[style*="1010px"] a > img[src*="next.png"],
table[style*="1010px"] a > img[src*="last.png"] {
  opacity: 0.6 !important;
  vertical-align: middle !important;
  transition: opacity 0.15s !important;
}

table[style*="1010px"] a:hover > img[src*="first.png"],
table[style*="1010px"] a:hover > img[src*="prev.png"],
table[style*="1010px"] a:hover > img[src*="next.png"],
table[style*="1010px"] a:hover > img[src*="last.png"] {
  opacity: 1 !important;
}

/* page display input in server-side pager */
input.pagedisplay {
  border: 1.5px solid #ddd !important;
  border-radius: 5px !important;
  padding: 3px 6px !important;
  font-size: 8.5pt !important;
  text-align: center !important;
  vertical-align: middle !important;
  background: #fafafa !important;
  color: #555 !important;
  width: auto !important;
}

/* ── 2FA login block ── */
.login-2fa-hint {
  text-align: center;
  color: #555;
  font-size: 9.5pt;
  line-height: 1.6;
  margin: 0 0 16px;
  padding: 12px 16px;
  background: #fff8f7;
  border: 1px solid #f5d0cc;
  border-radius: 8px;
}

.login-2fa-input {
  text-align: center !important;
  font-size: 20pt !important;
  letter-spacing: 8px !important;
  font-weight: 700 !important;
}

/* Internal mbox */
.mbox-page {
  width: min(1120px, calc(100% - 32px));
  margin: 22px auto 44px;
  color: #1f2933;
}

.dashboard-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 24px;
  margin-top: 10px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff5f4;
  border: 1px solid #efc8c3;
  color: #8f2e27;
  font-size: 8.5pt;
  font-weight: 800;
}

.mbox-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #eceff3;
  box-shadow: 0 10px 30px rgba(31, 41, 51, 0.08);
}

.mbox-kicker {
  display: block;
  color: #a3362b;
  font-size: 8pt;
  font-weight: 800;
  text-transform: uppercase;
}

.mbox-hero h1 {
  margin: 4px 0 6px;
  font-size: 24pt;
  line-height: 1.15;
  color: #18212b;
}

.mbox-hero p {
  margin: 0;
  color: #667085;
  font-size: 10pt;
}

.mbox-primary,
.mbox-actions button,
.mbox-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 7px;
  border: 0;
  background: #b13a30;
  color: #fff !important;
  font-size: 9pt;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
  padding: 0 14px;
  white-space: nowrap;
}

.mbox-primary:hover,
.mbox-actions button:hover,
.mbox-open:hover {
  background: #912f27;
}

.mbox-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.mbox-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #344054 !important;
  text-decoration: none !important;
  font-weight: 700;
}

.mbox-tabs a.active {
  background: #fff5f4;
  border-color: #efc8c3;
  color: #8f2e27 !important;
}

.mbox-tabs strong {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #b13a30;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8pt;
}

.mbox-alert {
  margin: 12px 0;
  padding: 11px 14px;
  border-radius: 8px;
  background: #eef8f1;
  border: 1px solid #c8ead2;
  color: #24623a;
  font-weight: 700;
}

.mbox-alert-error {
  background: #fff3f1;
  border-color: #f3c7c1;
  color: #9a2f28;
}

.mbox-panel {
  background: #fff;
  border: 1px solid #eceff3;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(31, 41, 51, 0.07);
  overflow: hidden;
}

.mbox-form {
  display: grid;
  gap: 15px;
  padding: 20px;
  overflow: visible;
}

.mbox-form label {
  display: grid;
  gap: 6px;
  margin: 0;
  color: #344054;
  font-size: 9pt;
  font-weight: 800;
}

.mbox-form input[type="text"],
.mbox-form select,
.mbox-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d7dce2;
  border-radius: 7px;
  padding: 10px 11px;
  font-size: 10pt;
  color: #1f2933;
  background: #fff;
}

.mbox-form textarea {
  min-height: 130px;
  resize: vertical;
}

.mbox-form input:focus,
.mbox-form select:focus,
.mbox-form textarea:focus {
  outline: none;
  border-color: #bc4439;
  box-shadow: 0 0 0 3px rgba(177, 58, 48, 0.13);
}

.mbox-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.mbox-actions a {
  color: #667085 !important;
  font-weight: 700;
  text-decoration: none !important;
}

.mbox-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9.5pt;
}

.mbox-table th {
  padding: 12px 14px;
  text-align: left;
  background: #f8fafc;
  color: #475467;
  border-bottom: 1px solid #e5e7eb;
  font-size: 8pt;
  text-transform: uppercase;
}

.mbox-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #eef1f4;
  vertical-align: middle;
}

.mbox-table tr:last-child td {
  border-bottom: 0;
}

.mbox-table small {
  display: block;
  max-width: 420px;
  margin-top: 4px;
  color: #667085;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mbox-unread td {
  background: #fff9f8;
}

.mbox-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 999px;
  background: #b13a30;
}

.mbox-empty {
  text-align: center;
  color: #667085;
  padding: 26px !important;
}

.mbox-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 13px 14px;
  border-top: 1px solid #eef1f4;
  background: #fbfcfd;
}

.mbox-pager a,
.mbox-pager span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 7px;
  font-size: 9pt;
  font-weight: 800;
}

.mbox-pager a {
  padding: 0 11px;
  color: #8f2e27 !important;
  border: 1px solid #efc8c3;
  background: #fff;
  text-decoration: none !important;
}

.mbox-pager span {
  color: #667085;
}

.mbox-pager a.disabled {
  pointer-events: none;
  opacity: 0.45;
}

.mbox-thread-head {
  padding: 18px 20px;
  margin-bottom: 14px;
}

.mbox-thread-head a {
  color: #a3362b !important;
  font-weight: 800;
  text-decoration: none !important;
}

.mbox-thread-head h2 {
  margin: 10px 0 4px;
  font-size: 18pt;
}

.mbox-thread-head p {
  margin: 0;
  color: #667085;
}

.mbox-messages {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.mbox-message {
  max-width: 78%;
  padding: 13px 15px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(31, 41, 51, 0.06);
}

.mbox-message-own {
  justify-self: end;
  background: #fff7f6;
  border-color: #efc8c3;
}

.mbox-message-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #667085;
  font-size: 8.5pt;
  margin-bottom: 8px;
}

.mbox-message-body {
  white-space: pre-wrap;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .mbox-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .mbox-table {
    min-width: 760px;
  }

  .mbox-panel {
    overflow-x: auto;
  }

  .mbox-message {
    max-width: 100%;
  }
}
