.brand-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #2d2d2d; /* dark shield background */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.brand-circle i {
  font-size: 2rem;
  color: #f5f5f5; /* light icon for contrast */
}


/* Bigger exclamation on the chat unread badge */
#chatUnreadBadge.badge-loud {
  font-size: 1.2rem; /* bigger mark */
  font-weight: 700;
  line-height: 1; /* tighten vertical rhythm */
  padding: 0 0.5rem; /* keep pill shape tidy */
  border-radius: 9999px;
  transform: translateY(-1px); /* optical centering with text */
}

@font-face {
  font-family: "Hasti";
  src: url("/fonts/Hasti.woff") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "koodak";
  src: url("/fonts/koodak.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "titr";
  src: url("/fonts/titr.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "ordibehesht";
  src: url("/fonts/ordibehesht.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "GOTHICB";
  src: url("/fonts/GOTHICB.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Stencil";
  src: url("/fonts/Allerta Stencil Regular.woff2") format("truetype");
  font-weight: normal;
  font-style: normal;
}

.Stencil {
  font-family: "Stencil";
}

@font-face {
  font-family: "calibri";
  src: url("/fonts/calibri.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

.calibri {
  font-family: "calibri";
}

.GOTHICB {
  font-family: "GOTHICB";
}

.Hasti {
  font-family: "Hasti";
}

.ordibehesht {
  font-family: "ordibehesht", sans-serif;
}

.koodak {
  font-family: "koodak";
}

.titr {
  font-family: "titr";
}

:root {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f6f7fb;
  color: #222;
}
.auth-container {
  max-width: 360px;
  margin: 10vh auto;
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.auth-container h1 {
  margin-top: 0;
}
label {
  display: block;
  margin: 12px 0;
}
input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
}
button {
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  background: #111827;
  color: #fff;
  font-weight: 600;
}
button:hover {
  opacity: 0.95;
}
.muted {
  color: #666;
  font-size: 0.9rem;
}
.error {
  color: #b20a0a;
  margin-top: 10px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #111827;
  color: #fff;
}
.page {
  max-width: 960px;
  margin: 24px auto;
  padding: 0 16px;
}

:root {
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.25);
}


/* Minimalistic light gray background */
.bg-gradient-sleek-light {
  background: radial-gradient(
      800px 400px at top left,
      rgba(0, 0, 0, 0.05) 0%,
      transparent 70%
    ),
    radial-gradient(
      600px 300px at bottom right,
      rgba(0, 0, 0, 0.03) 0%,
      transparent 70%
    ),
    linear-gradient(135deg, #f7f7f7, #e5e5e5);
  min-height: 100vh;
  color: #222; /* darker text for contrast */
}

/* Background gradients */
.bg-gradient-aurora {
  background: radial-gradient(
      1200px 600px at -10% -10%,
      #3b82f6 0%,
      transparent 60%
    ),
    radial-gradient(1000px 500px at 110% 10%, #a855f7 0%, transparent 60%),
    radial-gradient(900px 600px at 50% 120%, #10b981 0%, transparent 60%),
    #0b1020;
  min-height: 100vh;
}

.bg-subtle {
  background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
}

/* Glassmorphism card */
.card-glass {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.06)
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}



/* Buttons hover “lift” */
.lift {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Heros */
.hero {
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.05)
  );
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.user-hero {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
}
.admin-hero {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

/* Form tweaks */
.form-control,
.form-select {
  border-radius: 12px;
}

.form-floating > label > i {
  opacity: 0.7;
}

/* Subtle shadows */
.shadow-sm {
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.06) !important;
}
.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Autocomplete menus inside the client lookup modal */
#clientLookupModal .dropdown-menu {
  position: absolute;
  top: calc(100% + 0.25rem);
  inset-inline-start: auto; /* was 0 */
  inset-inline-end: 0; /* keep this */
  max-height: 280px;
  overflow: auto;
  z-index: 2000;
  display: none;
}

/* Show state */
#clientLookupModal .dropdown-menu.show {
  display: block;
}

/* Ensure the container doesn’t clip the menu */
#clientLookupModal .position-relative {
  overflow: visible !important;
}

.rtl-modal {
  direction: rtl;
  text-align: right;
}

/* smaller paddings for inputs */
.rtl-modal .form-control,
.rtl-modal textarea {
  padding: 0.35rem 0.5rem;
  font-size: 0.9rem;
}

/* slightly reduce bottom margin for form labels */
.rtl-modal .form-label {
  margin-bottom: 0.2rem !important;
}

.dark-header {
  border-radius: 0 !important;
  background-color: #1e2124; /* darker than Bootstrap dark */
  padding: 0.75rem 1rem;
  color: #f8f9fa; /* ensures text stays visible */
}

/* 🔹 remove rounded corners globally inside this card */
.no-radius,
.no-radius * {
  border-radius: 0 !important;
}

/* 🔹 tighten spacing between labels & inputs */
.form-label {
  margin-bottom: 0.2rem !important;
}

.mb-3 {
  margin-bottom: 0.5rem !important;
}

/* 🔹 adjust input size */
.form-control,
.form-select {
  padding: 0.35rem 0.5rem;
  font-size: 0.9rem;
}

/* Sharp corners everywhere inside this modal */
#clientLookupModal.no-radius,
#clientLookupModal .no-radius,
#clientLookupModal .no-radius * {
  border-radius: 0 !important;
}

/* Tighten form spacing */
#clientLookupModal .form-label {
  margin-bottom: 0.2rem !important;
}
#clientLookupModal .form-control,
#clientLookupModal .form-select,
#clientLookupModal .dropdown-menu {
  padding: 0.35rem 0.5rem;
  font-size: 0.9rem;
}

/* Header bar (flat) */
#clientLookupModal .modal-header {
  background-color: #343a40;
  color: #fff;
  border-bottom: 2px solid #212529;
  padding: 0.6rem 1rem;
}

/* Footer spacing */
#clientLookupModal .modal-footer {
  padding: 0.6rem 1rem;
}

/* Ensure Persian body font, keep buttons titr as you wanted */
#clientLookupModal.koodak,
#clientLookupModal .koodak {
  font-family: koodak, sans-serif;
}
#clientLookupModal .titr {
  font-family: titr, sans-serif;
}

/* Sharp corners everywhere in this modal */
#prevOrdersModal.no-radius,
#prevOrdersModal .no-radius,
#prevOrdersModal .no-radius * {
  border-radius: 0 !important;
}

/* Fonts: koodak base, titr for buttons/header if needed */
#prevOrdersModal.koodak,
#prevOrdersModal .koodak {
  font-family: koodak, sans-serif;
}
#prevOrdersModal .titr {
  font-family: titr, sans-serif;
}

/* Flat, dark header */
#prevOrdersModal .dark-header {
  background-color: #343a40;
  color: #fff;
  border-bottom: 2px solid #212529;
  padding: 0.6rem 1rem;
}

/* Compact spacing */
#prevOrdersModal .modal-body {
  padding: 0.75rem 1rem;
}
#prevOrdersModal .modal-footer {
  padding: 0.6rem 1rem;
}
#prevOrdersModal .table th,
#prevOrdersModal .table td {
  padding: 0.35rem 0.5rem; /* tighter rows */
  font-size: 0.9rem;
  vertical-align: middle;
  white-space: nowrap; /* keep cells compact; scroll container will handle overflow */
}
#prevOrdersModal .mb-2 {
  margin-bottom: 0.5rem !important;
}
#prevOrdersModal .mb-1 {
  margin-bottom: 0.25rem !important;
}

/* Make table headers visually light and compact */
#prevOrdersModal thead.table-light th {
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  font-weight: 600;
}

.jdp-container,
.jdp-container * {
  font-family: "koodak", Tahoma, sans-serif !important;
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

#masterHint.blink {
  animation: blink 0.7s step-start 3; /* blink 3 times */
  color: green;
}
/* entrance + base badge look */
.client-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 9999px; /* pill */
  background-color: #198754; /* green */
  color: #fff;
  cursor: pointer;

  /* animation + transitions */
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.4s ease, transform 0.4s ease,
    background-color 0.35s ease, box-shadow 0.35s ease;
}

.client-badge.show {
  opacity: 1;
  transform: translateY(0);
}

.client-badge:hover {
  background-color: #dc3545; /* red on hover */
  box-shadow: 0 0 8px rgba(220, 53, 69, 0.35);
}

/* tighter spacing */
#subordersRangeTable td,
#subordersRangeTable th {
  padding: 0.35rem 0.5rem;
  white-space: nowrap;
  font-size: 0.92rem;
}

/* smaller font just for نوع سند */
#subordersRangeTable td.cell-doc-type {
  font-size: 0.82rem; /* smaller than others */
  opacity: 0.95;
}

/* order_no badge palette (soft bg + subtle border) */
.ono-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 0.5rem;
  line-height: 1.1;
  border: 1px solid transparent;
  font-weight: 600;
}
.ono-0 {
  background: #eef2ff;
  border-color: #c7d2fe;
} /* indigo-50/200 */
.ono-1 {
  background: #fef3c7;
  border-color: #fde68a;
} /* amber-100/300 */
.ono-2 {
  background: #dcfce7;
  border-color: #86efac;
} /* green-100/300 */
.ono-3 {
  background: #cffafe;
  border-color: #67e8f9;
} /* cyan-100/300 */
.ono-4 {
  background: #ffe4e6;
  border-color: #fda4af;
} /* rose-100/300 */

/* translator select flash (unchanged) */
.flash-success {
  animation: flashGreen 2s ease-out;
}
.flash-error {
  animation: flashRed 1.2s ease-out;
}
@keyframes flashGreen {
  0% {
    background: #d1fae5;
  }
  100% {
    background: #fff;
  }
}
@keyframes flashRed {
  0% {
    background: #fee2e2;
  }
  100% {
    background: #fff;
  }
}

/* Keep: min width + compact selects */
#subordersRangeTable td.cell-select {
  min-width: 9.5rem;
}
#subordersRangeTable td.cell-select .mini-select {
  padding: 0.15rem 0.35rem;
  height: calc(1.6rem + 2px);
  font-size: 0.92rem;
}

/* Icon-only cells */
#subordersRangeTable th:last-child,
#subordersRangeTable th:nth-last-child(2),
#subordersRangeTable td.icon-cell {
  width: 2.4rem;
  text-align: center;
  white-space: nowrap;
}
.file-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0.95rem;
}
.file-btn.disabled {
  pointer-events: none;
  opacity: 0.35;
}

/* ① Move Bootstrap's caret to the LEFT (RTL-friendly) */
.mini-select.arrow-left {
  direction: rtl; /* text stays RTL */
  background-position: left 0.5rem center !important; /* move caret */
  padding-left: 1.6rem !important; /* space for caret on left */
  padding-right: 0.35rem !important; /* tighter on the right */
  background-repeat: no-repeat;
  background-size: 16px 12px; /* match Bootstrap default */
}

/* ② Hide the caret entirely (optional toggle) */
.mini-select.no-arrow {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: none !important;
}
.mini-select.no-arrow::-ms-expand {
  display: none;
} /* old IE/Edge */

/* Optional: truncate long option text nicely */
#subordersRangeTable td.cell-select .mini-select {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

[dir="rtl"] .pagination {
  direction: ltr;
} /* keep arrows visual order sane */

/* Filter badge chips */
.filter-badge {
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.86rem;
}
.filter-badge .badge-label {
  margin-inline: 0.35rem;
}
.filter-badge .btn-close {
  opacity: 0.6;
  transform: scale(0.9);
}
.filter-badge .btn-close:hover {
  opacity: 0.9;
}

/* Compact, modern pills */
.pager-group .btn {
  border-radius: 999px !important;
}
.pager-btn {
  width: 2rem; /* perfect circle-ish */
  aspect-ratio: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.pager-btn i {
  font-size: 0.95rem;
}

/* Info chip stays steady width to avoid jitter */
.pager-info {
  min-width: 5.2rem;
  pointer-events: none;
  border-color: rgba(0, 0, 0, 0.12);
}

/* Subtle hover/focus polish */
.pager-btn:hover {
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}
.pager-btn:disabled {
  opacity: 0.45;
  box-shadow: none;
  cursor: not-allowed;
}

#clientDropzone.dragover {
  background-color: #eef6ff;
  border-color: #3b82f6;
}
.list-group-item .remove-btn {
  visibility: hidden;
}
.list-group-item:hover .remove-btn {
  visibility: visible;
}

/* ultra-compact sidebar metrics */
.metrics-compact .section-title {
  font-size: 0.8rem;
  color: #6c757d;
  margin: 0.25rem 0 0.35rem;
}

/* icon grid */
.metrics-compact .icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
}

.metrics-compact .icon-btn {
  /* full-width row button */
  width: 100%;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #e9ecef;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between; /* RTL: icon on right, badge on left */
  padding: 0 0.6rem;
  cursor: pointer;
}

.metrics-compact .icon-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.metrics-compact .icon-badge {
  position: static !important;
  top: auto;
  left: auto;
  font-size: 0.75rem;
  margin-inline-start: 0.5rem; /* logical spacing; works in RTL */
}

/* chips row (status breakdown) */
.metrics-compact .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.metrics-compact .chip {
  font-size: 0.72rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 10rem;
  padding: 0.15rem 0.5rem;
}

/* modal look */
.metrics-modal .list-group-item {
  padding: 0.45rem 0.6rem;
}
.metrics-modal .meta {
  color: #6c757d;
  font-size: 0.8rem;
  display: flex;
  gap: 0.75rem;
}
.metrics-modal .meta i {
  width: 1rem;
  text-align: center;
}

.metrics-compact .icon-btn {
  width: 56px;
  height: 56px;
}

.metrics-compact .icon-btn i {
  font-size: 20px;
}

.metrics-compact .icon-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* === stacked, full-width KPI rows === */
.metrics-compact .icon-stack {
  display: grid;
  grid-template-columns: 1fr; /* single column */
  gap: 0.45rem;
}

/* beat any old 48px sizing with !important + reset */
.metrics-compact .icon-stack .icon-btn {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 auto;
  height: 46px; /* row height */
  border-radius: 12px;
  border: 1px solid #e9ecef;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between; /* RTL: icon on right, badge on left */
  padding: 0 0.65rem;
  box-sizing: border-box;
  cursor: pointer;
}

.metrics-compact .icon-stack .icon-btn i {
  font-size: 20px;
}

/* put the count badge inline (disable absolute from older style) */
.metrics-compact .icon-stack .icon-badge {
  position: static !important;
  top: auto;
  left: auto;
  font-size: 0.75rem;
  margin-inline-start: 0.5rem; /* RTL-friendly spacing */
}

.metrics-compact .icon-stack .icon-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Koodak font for Bootstrap tooltips */
.tooltip.koodak .tooltip-inner {
  font-family: "koodak", inherit; /* your koodak class/font */
  direction: rtl;
  text-align: right;
  font-size: 0.85rem; /* tweak if you want */
  line-height: 1.25;
}

/* Keep forms visible while the table scrolls */
.sticky-sidebar {
  position: sticky;
  top: 1rem;
}

/* Stronger highlight for selection (in addition to .table-active) */
#worksTable tbody tr.table-active,
#worksTable tbody tr.selected {
  outline: 2px solid rgba(13, 110, 253, 0.35);
  background-color: rgba(13, 110, 253, 0.1) !important;
}

/* tiny, neat delete button */
.btn-delete-work i {
  font-size: 1rem;
  vertical-align: -1px;
}

/* put in your main CSS file */
.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}
.navbar-nav .nav-link:hover {
  color: #fff;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link[aria-current="page"] {
  color: #fff !important; /* whiter */
  font-weight: 700; /* bold */
  text-decoration: none;
}

/* Dark minimal navbar — typography */
.nav-dark-min {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial,
    "Helvetica Neue", sans-serif;
  letter-spacing: 0.2px;
}

/* Links: sharp corners, minimal padding */
.nav-dark-min .nav-link {
  color: rgba(255, 255, 255, 0.82);
  padding: 0.5rem 0.6rem;
  border-radius: 0; /* no round corners */
  position: relative;
  transition: color 0.2s ease;
}
.nav-dark-min .nav-link:hover,
.nav-dark-min .nav-link.active {
  color: #fff;
}

/* Underline animation (no background pills) */
.nav-dark-min .nav-link::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-dark-min .nav-link:hover::after,
.nav-dark-min .nav-link.active::after {
  transform: scaleX(1);
}

/* Separate Logout on large screens */
@media (min-width: 992px) {
  .nav-dark-min .border-start {
    border-color: rgba(255, 255, 255, 0.15) !important;
  }
}
@media (max-width: 991.98px) {
  .nav-dark-min .border-start {
    border: 0 !important;
  }
  .logout-cta--dark {
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* Logout CTA — sharp, minimal */
.logout-cta--dark {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
  padding: 0.45rem 0.9rem;
  border-radius: 0; /* no round corners */
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}
.logout-cta--dark:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

/* Chat badge — square + slightly larger "!" */
#chatUnreadBadge {
  background: #e03131; /* deep red */
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.05;
  padding: 0 0.42rem;
  border-radius: 0; /* square badge */
}

/* Make the whole dark bar flatter */
.navbar.bg-dark,
.navbar-dark.bg-dark {
  background-color: #0f0f10 !important; /* slightly richer dark */
}

/* Dark, sleek, no-rounded modal */
.modal-plain-dark .modal-content {
  background: #141416;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0; /* square corners */
}
.modal-plain-dark .modal-header,
.modal-plain-dark .modal-footer {
  border-color: rgba(255, 255, 255, 0.12);
  background: transparent;
}
.modal-plain-dark .btn {
  border-radius: 0; /* square buttons */
}

/* Bigger, crisp badge; works on light/dark navs */
.badge-loud {
  background: #e03131; /* deep red */
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.05;
  padding: 0 0.45rem;
  border-radius: 0; /* square; remove if you prefer pill */
  transform: translateY(-1px);
}

/* Dark minimal hero */
.user-hero--dark {
  background: linear-gradient(180deg, #0f0f10 0%, #0b0b0c 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0; /* sharp corners */
}

/* Typography */
.uh-title {
  font-size: clamp(1.6rem, 1.1rem + 1.5vw, 2.1rem);
  letter-spacing: 0.2px;
}
.uh-sub {
  font-size: 0.95rem;
}

/* Stats: minimalist, grid and separators */
.uh-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem 1.25rem;
  align-items: center;
}
.stat {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0; /* sharp */
}
.stat .label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}
.stat .value {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Make it breathe a bit more on large screens */
@media (min-width: 992px) {
  .uh-stats {
    gap: 0.75rem 1.25rem;
  }
  .stat {
    padding: 0.7rem 0.9rem;
  }
}

.order-badge {
  cursor: pointer;
}

/* flash success */
.flash-ok {
  animation: flashOk 800ms ease-in-out;
}
@keyframes flashOk {
  0%   { background-color: #d1e7dd; } /* Bootstrap success-100-ish */
  100% { background-color: transparent; }
}

/* Tiny icon-only buttons */
#arModal .icon-btn {
  background: transparent;
  border: 0;
  padding: 4px;
  margin: 0 2px;
  font-size: 14px;
  line-height: 1;
  color: #495057;
  cursor: pointer;
}

#arModal .icon-btn {
  background: transparent;
  border: 0;
  padding: 4px;
  margin: 0 2px;
  font-size: 14px;
  line-height: 1;
  color: #495057;
  cursor: pointer;
}

#arModal .icon-btn:hover { color: #0d6efd; }

/* Hide native file input */
#arModal .ar-upload-input {
  display: none;
}

/* File name label */
#arModal .ar-file-name {
  max-width: 200px;
}

/* Make the file control row compact */
#arModal td .file-tools {
  gap: 6px;
}

#arModal .form-select {
  direction: rtl;                    /* ensure RTL fields */
  text-align: right;
  background-position: left .75rem center !important;
  padding-left: 2rem !important;     /* space for the arrow on the left */
  padding-right: .5rem !important;
}


/* --- FINAL OVERRIDES: force RTL + right alignment for workSearchMenu --- */
#workSearchMenu,
#workSearchMenu .dropdown-item {
  direction: rtl !important;
  text-align: right !important;
}

/* Make the whole clickable row full-width and visually right-aligned */
#workSearchMenu .dropdown-item {
  display: block;              /* text-align works on inline content */
  width: 100%;
  white-space: normal;         /* wrap if needed */
}

/* If any child spans/icons try to “start-align”, neutralize them */
#workSearchMenu .dropdown-item * {
  text-align: inherit !important;
  direction: inherit !important;
}

/* Positioning safety net for Popper */
#workSearchMenu.dropdown-menu-end[data-bs-popper] {
  left: auto !important;
  right: 0 !important;
}

/* Optional: match Bootstrap’s dropdown look without left bias */
#workSearchMenu {
  min-width: 100%;
  max-height: 280px;
  overflow: auto;
}

/* RTL-friendly select chevrons inside report modal */
#arReportModal .form-select {
  direction: rtl;
  text-align: right;
  background-position: left .75rem center !important;
  padding-left: 2rem !important;
  padding-right: .5rem !important;
}

/* Tight icon-only action buttons in table */
#arReportModal .icon-btn {
  background: transparent;
  border: 0;
  padding: 4px;
  margin: 0 2px;
  font-size: 14px;
  line-height: 1;
  color: #495057;
  cursor: pointer;
}
#arReportModal .icon-btn:hover { color: #0d6efd; }


