/* HDM modern responsive UI v18
   Visual-only layer. No fiscal/business logic is changed here. */
:root {
  --hdm-primary: #0f4c5c;
  --hdm-primary-strong: #0a3540;
  --hdm-accent: #0ea5a4;
  --hdm-accent-soft: #dff7f5;
  --hdm-success: #16865c;
  --hdm-danger: #c43d4d;
  --hdm-warning: #b86b12;
  --hdm-bg: #f5f7fa;
  --hdm-surface: #ffffff;
  --hdm-border: #dfe5ec;
  --hdm-text: #1f2937;
  --hdm-muted: #64748b;
  --hdm-radius: 14px;
  --hdm-shadow: 0 10px 28px rgba(15, 76, 92, .08);
  --hdm-shadow-sm: 0 4px 14px rgba(15, 76, 92, .07);
}

html { background: var(--hdm-bg); }
body {
  background: var(--hdm-bg) !important;
  color: var(--hdm-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Armenian", Arial, sans-serif;
}

/* Top navigation */
.navbar.bg-primary,
.bg-primary {
  background: linear-gradient(135deg, var(--hdm-primary-strong), var(--hdm-primary)) !important;
}
.navbar {
  min-height: 64px;
  box-shadow: 0 4px 18px rgba(15, 53, 64, .18) !important;
  padding-left: 18px;
  padding-right: 18px;
}
.navbar-brand { font-weight: 700; letter-spacing: .2px; }
.navbar-dark .navbar-nav .nav-link {
  color: rgba(255,255,255,.92) !important;
  border-radius: 10px;
  padding: .55rem .8rem;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  background: rgba(255,255,255,.11);
  color: #fff !important;
}

/* Sidebar */
#sidebar-container {
  background: var(--hdm-surface) !important;
  border-right: 1px solid var(--hdm-border);
  box-shadow: 5px 0 20px rgba(15,76,92,.035);
}
#sidebar-container .list-group { padding: 10px 8px 18px; }
#sidebar-container .list-group a.bg-dark,
#sidebar-container .list-group a {
  color: var(--hdm-text) !important;
  background: transparent !important;
  border-radius: 10px !important;
  margin: 2px 0;
  min-height: 48px;
  display: flex;
  align-items: center;
}
#sidebar-container .list-group a:hover {
  background: #eef4f5 !important;
  color: var(--hdm-primary) !important;
}
#sidebar-container .list-group a.this-page,
#sidebar-container .list-group a.active {
  background: var(--hdm-accent-soft) !important;
  color: var(--hdm-primary-strong) !important;
  font-weight: 650;
}
#sidebar-container .fa { color: var(--hdm-primary); }

/* Main surfaces */
.main-content-container { background: var(--hdm-bg) !important; }
.card,
.item-m-first,
.item-m-second,
.item-m-fourth,
.grid-table-container,
.grid-report-container,
.modal-content {
  background: var(--hdm-surface);
  border: 1px solid var(--hdm-border) !important;
  border-radius: var(--hdm-radius) !important;
  box-shadow: var(--hdm-shadow-sm);
}
.item-m-first,
.item-m-second,
.item-m-fourth { padding: 16px; }

/* Form controls */
label {
  color: #475569;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-control,
.custom-select,
select.form-control {
  min-height: 42px;
  border: 1px solid #cfd8e3;
  border-radius: 9px;
  background: #fff;
  color: var(--hdm-text);
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.form-control:focus,
.custom-select:focus,
select.form-control:focus {
  border-color: var(--hdm-accent);
  box-shadow: 0 0 0 3px rgba(14,165,164,.14);
}
.form-control:disabled,
.form-control[readonly] {
  background: #f1f5f9;
  color: #475569;
  opacity: 1;
}

/* Buttons */
.btn,
input[type="button"].form-control,
button.form-control {
  border-radius: 9px !important;
  min-height: 42px;
  font-weight: 650;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary,
#mobile-emark-camera-btn,
#hdm_ktron:not(:disabled),
#avelacnel {
  background: var(--hdm-primary) !important;
  border-color: var(--hdm-primary) !important;
  color: #fff !important;
}
.btn-primary:hover,
#mobile-emark-camera-btn:hover,
#hdm_ktron:not(:disabled):hover,
#avelacnel:hover {
  background: var(--hdm-primary-strong) !important;
  box-shadow: 0 5px 14px rgba(15,76,92,.22);
}
.btn-danger { background: var(--hdm-danger); border-color: var(--hdm-danger); }
.btn-success { background: var(--hdm-success); border-color: var(--hdm-success); }
.veradardzi_ktron,
.kanxavchari_ktron {
  background: #fff !important;
  border: 1px solid #bfd0d4 !important;
  color: var(--hdm-primary) !important;
}
.veradardzi_ktron:hover,
.kanxavchari_ktron:hover { background: #edf7f7 !important; }

/* eMark area */
.imark-comment {
  background: #fbfdfd;
  border: 1px dashed #b9cbd0;
  border-radius: 10px;
  min-height: 110px;
  padding: 8px;
}
.imark-span {
  background: #eef8f7;
  border: 1px solid #cce9e7;
  color: #12343b;
  border-radius: 8px;
  padding: 7px 9px;
  margin: 5px 0;
  overflow-wrap: anywhere;
}
.remove-imark-icon { color: var(--hdm-danger); cursor: pointer; margin-right: 7px; }

/* Payment panel */
.item-m-fourth .form-inline { border-bottom: 1px solid #edf1f5; padding-bottom: 7px; }
.item-m-fourth .form-inline:last-child { border-bottom: 0; }
#yndameny,
#vcharman_entaka { font-size: 1.05rem; color: var(--hdm-primary-strong); }
.payment-method-img { border-radius: 6px; max-height: 32px; }

/* Tables */
.table {
  color: var(--hdm-text);
  background: #fff;
  margin-bottom: 0;
}
.table thead th {
  background: #eef4f5;
  color: #24464d;
  border-bottom: 1px solid #cfdce0 !important;
  font-weight: 700;
  vertical-align: middle;
}
.table td { vertical-align: middle; border-color: #edf1f5; }
.table-striped tbody tr:nth-of-type(odd) { background: #fbfcfd; }
.table-striped tbody tr:hover { background: #f0f8f8 !important; }
.table-responsive,
.grid-table-container { border-radius: var(--hdm-radius); }
.dataTables_filter input,
.dataTables_length select { border-radius: 8px; border: 1px solid #cfd8e3; }

/* Modals */
.modal-content { overflow: hidden; }
.modal-header {
  background: #f8fafc;
  border-bottom: 1px solid var(--hdm-border);
  align-items: center;
}
.modal-footer { background: #fbfcfd; border-top: 1px solid var(--hdm-border); }
.modal-title { color: #173d46; font-weight: 700; }

/* Scanner modal: safe across phones/tablets, portrait/landscape. */
.mobile-emark-camera-modal {
  padding-top: max(8px, env(safe-area-inset-top)) !important;
  padding-right: max(8px, env(safe-area-inset-right)) !important;
  padding-bottom: max(8px, env(safe-area-inset-bottom)) !important;
  padding-left: max(8px, env(safe-area-inset-left)) !important;
}
.mobile-emark-camera-box {
  width: min(100%, 680px) !important;
  max-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom))) !important;
  border-radius: 16px !important;
  display: flex !important;
  flex-direction: column !important;
}
.mobile-emark-camera-header { flex: 0 0 auto; min-height: 52px; }
.mobile-emark-video-wrap {
  flex: 1 1 auto !important;
  min-height: 220px !important;
  height: clamp(260px, 58dvh, 650px) !important;
  aspect-ratio: auto;
  overflow: hidden !important;
}
#mobile-emark-camera-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}
.mobile-emark-camera-target {
  left: 7% !important;
  width: 86% !important;
  top: 50% !important;
  height: min(43%, 330px) !important;
  transform: translateY(-50%) !important;
}
.mobile-emark-camera-status {
  flex: 0 0 auto;
  min-height: 46px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px !important;
  font-weight: 600;
}
.mobile-emark-stop-btn {
  flex: 0 0 auto;
  min-height: 46px !important;
  margin-bottom: max(12px, env(safe-area-inset-bottom)) !important;
}
#mobile-emark-html5-reader { width: 100% !important; overflow: hidden !important; }
#mobile-emark-html5-reader video,
#mobile-emark-html5-reader canvas { width: 100% !important; height: auto !important; object-fit: cover !important; }

/* Login */
body > main.container .card { box-shadow: var(--hdm-shadow); }
body > main.container .card-body { padding: 28px; }

/* Mobile and tablet */
@media (max-width: 991.98px) {
  .navbar { min-height: 58px; padding: 8px 12px; }
  .navbar-collapse { padding: 10px 0 4px; }
  .navbar-nav .nav-item { margin: 2px 0; }
  .main-content-container { padding: 12px !important; }
  .card-body { padding: 16px; }
}

@media (max-width: 767.98px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  body { font-size: 14px; }
  #body-row { display: block !important; margin: 0 !important; }
  .main-content-container {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px !important;
  }

  .grid-main-container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .grid-main-container > *, .item-m-first, .item-m-second, .item-m-fourth {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 12px !important;
  }
  .grid-main-container > .item-m:not(.item-m-first):not(.item-m-second):not(.item-m-fourth) { display: none !important; }

  /* Never squeeze sale fields into unreadable narrow columns. */
  .item-m-first .row { margin-left: -5px !important; margin-right: -5px !important; flex-wrap: wrap !important; }
  .item-m-first .row > .col,
  .item-m-first .row > [class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
    margin-bottom: 7px;
  }
  .item-m-first .row:first-child > .open_kod_uniq { flex: 1 1 calc(100% - 58px) !important; width: calc(100% - 58px) !important; max-width: calc(100% - 58px) !important; }
  .item-m-first .row:first-child > .open_prod_btn { flex: 0 0 52px !important; width: 52px !important; max-width: 52px !important; }
  .item-m-first .row:first-child > .anvanum { order: 3; flex-basis: 100% !important; width: 100% !important; max-width: 100% !important; }

  .form-control, .btn, button, input, select { min-height: 44px; }
  .mobile-emark-scan-actions { display: block !important; }
  #mobile-emark-camera-btn { width: 100% !important; }

  .item-m-fourth .form-inline {
    display: grid !important;
    grid-template-columns: minmax(112px, 40%) minmax(0, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    padding-top: 8px !important;
  }
  .item-m-fourth .form-inline > label { margin: 0 !important; white-space: normal !important; }
  .item-m-fourth .form-inline > input,
  .item-m-fourth .form-inline > .form-control,
  .item-m-fourth .form-inline > select { width: 100% !important; max-width: none !important; margin: 0 !important; }
  .item-m-fourth #dropdown-menu-block { margin: 0 !important; }
  .item-m-fourth .dropdown.form-inline label[for*="gnordi"] {
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: minmax(112px, 40%) minmax(0, 1fr) !important;
    gap: 8px;
    width: 100%;
  }
  #gnordi_hvhh_id { width: 100% !important; max-width: none !important; margin: 0 !important; }
  .hdm_ktron { margin-top: 8px !important; flex: 0 0 100% !important; width: 100% !important; max-width: 100% !important; }

  .grid-top-of-table-container {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 10px 0 !important;
  }
  .grid-top-of-table-container > * { margin: 0 !important; min-width: 0 !important; }
  .grid-top-of-table-container .btn { width: 100% !important; min-height: 46px; white-space: normal; }
  .grid-top-of-table-container > :last-child { grid-column: 1 / -1; text-align: left !important; }
  .virtual_hdm_name { display: flex !important; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px solid var(--hdm-border); border-radius: 10px; background: #fff; }

  /* Tables: keep the information intact; swipe horizontally instead of crushing columns. */
  .table-responsive { width: 100% !important; max-width: 100% !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch; border-radius: 12px; }
  .table-responsive > #table_wrapper,
  .table-responsive > #table1_wrapper,
  .table-responsive > #tableVirtual_wrapper,
  .dataTables_wrapper { min-width: 680px; }
  .dataTables_filter, .dataTables_length { float: none !important; text-align: left !important; margin-bottom: 8px; }

  .grid-report-container,
  .grid-report-print-btn,
  .grid-table-container,
  .grid-gandzapah-container { grid-template-columns: minmax(0,1fr) !important; width: 100% !important; gap: 10px !important; }

  .modal-dialog { width: auto !important; max-width: calc(100vw - 12px) !important; margin: 6px auto !important; }
  .modal-body { padding: 14px; }
  #masnaki_return { max-height: 48dvh !important; overflow-y: auto; overflow-x: hidden; }

  .mobile-emark-camera-box { width: 100% !important; max-width: 100% !important; }
  .mobile-emark-video-wrap { height: clamp(240px, 54dvh, 620px) !important; }
  .mobile-emark-camera-target { left: 7% !important; width: 86% !important; height: min(42%, 300px) !important; }
}

@media (max-width: 430px) {
  .grid-top-of-table-container { grid-template-columns: minmax(0,1fr) !important; }
  .item-m-fourth .form-inline,
  .item-m-fourth .dropdown.form-inline label[for*="gnordi"] { grid-template-columns: minmax(96px, 42%) minmax(0,1fr) !important; }
  .navbar-brand .menu-collapsed { font-size: 15px; }
  .mobile-emark-video-wrap { height: clamp(230px, 50dvh, 520px) !important; }
}

@media (orientation: landscape) and (max-height: 600px) {
  .mobile-emark-camera-box { max-width: min(820px, calc(100vw - 16px)) !important; }
  .mobile-emark-video-wrap { height: clamp(190px, 60dvh, 410px) !important; }
  .mobile-emark-camera-target { left: 14% !important; width: 72% !important; height: 58% !important; }
}

/* v27: scanned eMarks are a bounded scroll list on desktop, phones, tablets and terminals. */
#imark_shtrix_scan.imark-comment {
  display: block;
  width: 100%;
  min-height: 110px;
  max-height: clamp(140px, 28vh, 340px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  box-sizing: border-box;
}
#imark_shtrix_scan .imark-span {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: break-word;
}
#imark_shtrix_scan .imark-span > span:last-child {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  #imark_shtrix_scan.imark-comment {
    min-height: 120px;
    max-height: min(32dvh, 300px);
  }
}


/* v30: hard override for scanned eMarks list. Old css/style.css has viewport-specific
   max-height/min-height rules, so use an explicit bounded scroll viewport here. */
#imark_shtrix_scan.imark-comment {
  display: block !important;
  width: 100% !important;
  height: clamp(180px, 30vh, 360px) !important;
  min-height: 180px !important;
  max-height: 360px !important;
  overflow-y: scroll !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  scrollbar-gutter: stable both-edges;
  contain: layout paint;
}
#imark_shtrix_scan > * { max-width: 100% !important; }
#imark_shtrix_scan .imark-span {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  flex-wrap: nowrap !important;
}
@media (max-width: 991.98px), (hover: none) and (pointer: coarse) {
  #imark_shtrix_scan.imark-comment {
    height: clamp(160px, 28dvh, 300px) !important;
    min-height: 160px !important;
    max-height: 300px !important;
  }
}
@media (max-width: 480px) {
  #imark_shtrix_scan.imark-comment {
    height: clamp(150px, 26dvh, 250px) !important;
    min-height: 150px !important;
    max-height: 250px !important;
  }
}

/* v35 polished shell: brand system, calmer visuals, homepage shortcuts, login refinements. */
body {
  background-image:
    radial-gradient(circle at top right, rgba(20,184,166,.08), transparent 28%),
    radial-gradient(circle at top left, rgba(15,76,129,.06), transparent 24%);
  background-attachment: fixed;
}
body[style*="overflow: hidden"] { overflow-x: hidden !important; }
.main-content-container[style*="a90png"] { background-image: none !important; }

.hdm-brand {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  color: #fff !important;
  text-decoration: none !important;
  min-width: 0;
}
.hdm-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255,255,255,.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 10px 20px rgba(2,8,23,.18);
  flex: 0 0 42px;
}
.hdm-brand-mark img {
  width: 28px;
  height: 28px;
  display: block;
}
.hdm-brand-copy {
  min-width: 0;
  display: grid;
  line-height: 1.08;
}
.hdm-brand-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .01em;
}
.hdm-brand-company {
  font-size: .76rem;
  color: rgba(255,255,255,.82);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(44vw, 280px);
}
.hdm-user-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.12);
}
.hdm-user-chip .fa { font-size: 1rem; }
.hdm-user-label {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.navbar .nav-item.active:last-child .nav-link#log_out,
.navbar #log_out {
  border: 1px solid rgba(255,255,255,.16);
}
#sidebar-container .list-group {
  padding-top: 14px;
  position: sticky;
  top: 0;
}
#sidebar-container .list-group::before {
  content: 'Գլխավոր բաժիններ';
  display: block;
  padding: 4px 12px 10px;
  font-size: .73rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #78909c;
  font-weight: 800;
}
#sidebar-container .list-group-item {
  border: 1px solid transparent !important;
}
#sidebar-container .list-group a:hover {
  border-color: #d8e6eb !important;
  transform: translateX(1px);
}
#sidebar-container .list-group a.this-page,
#sidebar-container .list-group a.active,
#sidebar-container .list-group a.this-page-mobile {
  box-shadow: 0 8px 20px rgba(14,165,164,.12);
  border-color: #bde5df !important;
}
.main-content-container {
  min-height: calc(100vh - 64px);
}
.card,
.item-m-first,
.item-m-second,
.item-m-fourth,
.grid-table-container,
.grid-report-container,
.modal-content,
.table-responsive,
.virtual_hdm_name {
  box-shadow: 0 10px 30px rgba(15,76,92,.08) !important;
}
.table-responsive {
  border: 1px solid var(--hdm-border);
  background: #fff;
}
.table td, .table th { white-space: normal; }
.alert {
  border-radius: 14px;
  box-shadow: var(--hdm-shadow-sm);
}
.dropdown-menu {
  border-radius: 12px;
  border: 1px solid var(--hdm-border);
  box-shadow: var(--hdm-shadow);
}
.dropdown-item:active,
.dropdown-item:focus,
.dropdown-item:hover {
  background: #eef7f7;
  color: var(--hdm-primary-strong);
}
.form-inline label { font-weight: 600; }

.hdm-home-dashboard {
  display: block;
  padding: 26px !important;
}
.hdm-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .9fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}
.hdm-home-hero-copy,
.hdm-home-summary {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.92));
  border: 1px solid rgba(207,216,227,.95);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(15,76,92,.10);
}
.hdm-home-hero-copy {
  padding: 28px;
}
.hdm-home-hero-copy h1 {
  margin: 0 0 12px;
  color: #103945;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 800;
}
.hdm-home-hero-copy p {
  margin: 0;
  max-width: 640px;
  font-size: 1rem;
  color: #526273;
  line-height: 1.65;
}
.hdm-eyebrow,
.hdm-login-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #edf8f7;
  color: #0f6b73;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  margin-bottom: 16px;
}
.hdm-home-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.hdm-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f6fafb;
  border: 1px solid #d8e7eb;
  color: #23424a;
  font-size: .88rem;
  font-weight: 600;
}
.hdm-home-summary {
  padding: 18px;
  display: grid;
  gap: 12px;
}
.hdm-stat-card {
  border-radius: 18px;
  background: linear-gradient(180deg, #f7fbfb, #fff);
  border: 1px solid #dfecef;
  padding: 16px 18px;
}
.hdm-stat-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1.05;
  color: #0f4c5c;
  margin: 8px 0 4px;
}
.hdm-stat-card small,
.hdm-stat-label {
  display: block;
  color: #64748b;
}
.hdm-stat-label { font-size: .82rem; font-weight: 700; }
.hdm-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.hdm-shortcut-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(207,216,227,.95);
  color: inherit !important;
  text-decoration: none !important;
  box-shadow: 0 12px 30px rgba(15,76,92,.08);
  transition: transform .16s ease, box-shadow .18s ease, border-color .18s ease;
}
.hdm-shortcut-card:hover {
  transform: translateY(-2px);
  border-color: #bfe6e0;
  box-shadow: 0 16px 30px rgba(14,165,164,.11);
}
.hdm-shortcut-card h3 {
  margin: 2px 0 8px;
  font-size: 1.04rem;
  color: #103945;
  font-weight: 750;
}
.hdm-shortcut-card p {
  margin: 0;
  color: #64748b;
  font-size: .92rem;
  line-height: 1.55;
}
.hdm-shortcut-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f4c5c;
  background: linear-gradient(180deg, #eef8f7, #f9fcfc);
  border: 1px solid #d6ece9;
}
.hdm-shortcut-icon svg { width: 28px; height: 28px; }

.hdm-login-shell .card {
  border-radius: 22px;
  border: 1px solid rgba(207,216,227,.95);
}
.hdm-login-shell .card-body { padding: 34px; }
.hdm-login-body .navbar { box-shadow: 0 10px 26px rgba(15,53,64,.18) !important; }

@media (max-width: 1199.98px) {
  .hdm-shortcut-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 991.98px) {
  .hdm-brand-company { max-width: 180px; }
  .hdm-home-dashboard { padding: 14px !important; }
  .hdm-home-hero { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  .hdm-brand-mark { width: 38px; height: 38px; border-radius: 12px; flex-basis: 38px; }
  .hdm-brand-mark img { width: 24px; height: 24px; }
  .hdm-brand-title { font-size: .95rem; }
  .hdm-brand-company { max-width: 56vw; font-size: .72rem; }
  .hdm-user-label { max-width: 68vw; }
  .hdm-home-hero-copy,
  .hdm-home-summary,
  .hdm-shortcut-card { border-radius: 18px; }
  .hdm-home-hero-copy { padding: 20px; }
  .hdm-shortcut-grid { grid-template-columns: 1fr; gap: 12px; }
  .hdm-login-shell .card-body { padding: 24px 18px; }
}
