body:has(.saas-v2) #adminTopNav.top-nav button[data-nav="urgent_dossiers"],
body:has(.saas-v2) #adminTopNav.top-nav button[data-nav="urgent_dossiers"].active {
  background: #b52139 !important; color: #fff !important; border: 1px solid #921729 !important;
  box-shadow: inset 4px 0 #ffd05e !important; min-height: 54px !important;
  padding: 11px 12px !important; font-weight: 750 !important; margin: 4px 0 9px !important;
  border-radius: 6px !important; gap: 8px !important; line-height: 1.35 !important;
}
body:has(.saas-v2) #adminTopNav.top-nav button[data-nav="urgent_dossiers"]:hover { background: #961c30 !important; }
body:has(.saas-v2) #adminTopNav.top-nav button[data-nav="urgent_dossiers"] > .ti { color: #ffdf7e !important; font-size: 21px !important; }
body:has(.saas-v2) #adminTopNav.top-nav button[data-nav="urgent_dossiers"] > span:not(.ud-nav-count) { flex: 1; white-space: normal !important; }
.ud-nav-count { flex: 0 0 auto; min-width: 24px; padding: 3px 6px; text-align: center; color: #741324; background: #fff; border-radius: 5px; font-size: 12px; }
.ud-page { color: #263b47; max-width: 1440px; margin: 0 auto; padding-bottom: 30px; }
.ud-page *, .ud-modal-form * { box-sizing: border-box; letter-spacing: 0; }
.ud-page [hidden], .ud-modal-form [hidden], .ud-nav-count[hidden] { display: none !important; }
.ud-header { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 10px 0 22px; border-bottom: 2px solid #b52139; }
.ud-header h2 { font-size: 27px; line-height: 1.2; margin: 7px 0; color: #263b47; }
.ud-header p { margin: 0; color: #60717b; font-size: 14px; }
.ud-toolbar, .ud-row-actions, .ud-order-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ud-page .btn, .ud-modal-form .btn { border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: normal; min-height: 40px; padding: 9px 13px; font-size: 13px; }
.ud-page .btn .ti, .ud-modal-form .btn .ti { font-size: 19px; flex: 0 0 auto; }
.ud-page .ud-primary, .ud-modal-form .ud-primary, .link-grid .ud-ticket-add { background: #b52139; color: #fff; border: 1px solid #921729; }
.ud-page .ud-primary:hover, .ud-modal-form .ud-primary:hover, .link-grid .ud-ticket-add:hover { background: #961c30; }
.ud-page .btn:disabled { opacity: .48; cursor: not-allowed; }
.ud-page button:focus-visible, .ud-modal-form button:focus-visible { outline: 3px solid #178578; outline-offset: 3px; }
.ud-error { color: #a21f34; font-size: 14px; padding: 10px 0; white-space: pre-wrap; }
.ud-error:empty { display: none; }
.ud-changed { margin: 15px 0; background: #fff4d9; border-left: 4px solid #b1780c; padding: 12px; font-size: 14px; }
.ud-changed .btn { margin-left: 12px; }
.ud-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 22px 0; padding: 16px 0; background: #fff; border-bottom: 1px solid #d6e1e7; }
.ud-stats > div { display: flex; align-items: center; gap: 12px; padding: 0 20px; border-right: 1px solid #d6e1e7; }
.ud-stats > div:last-child { border: 0; }
.ud-stats strong { font-size: 30px; line-height: 1; font-weight: 750; }
.ud-stats span { font-size: 13px; line-height: 1.4; }
.ud-stat-late strong { color: #b52139; }
.ud-stat-done strong { color: #13786c; }
.ud-list { padding: 0; margin: 0; list-style: none; display: grid; gap: 12px; }
.ud-row { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; padding: 20px; background: #fff; border: 1px solid #d6e1e7; border-radius: 6px; }
.ud-first { border: 2px solid #b52139; }
.ud-late { border-left: 5px solid #b52139; }
.ud-rank { width: 42px; height: 42px; display: grid; place-items: center; background: #edf2f5; color: #405865; font-weight: 800; font-size: 20px; border-radius: 5px; }
.ud-first .ud-rank { background: #b52139; color: #fff; }
.ud-row-main { min-width: 0; }
.ud-row-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.ud-row-heading > div { min-width: 0; }
.ud-reference { font-size: 12px; font-weight: 750; color: #7b4250; }
.ud-row h3 { margin: 5px 0; font-size: 18px; line-height: 1.4; overflow-wrap: anywhere; }
.ud-client { margin: 0; font-size: 14px; color: #4d6572; overflow-wrap: anywhere; }
.ud-state { flex: 0 1 auto; font-size: 12px; color: #356254; background: #e7f4ee; padding: 6px 9px; border-radius: 4px; font-weight: 700; text-align: center; }
.ud-overdue { color: #a51d33; background: #fff0f2; }
.ud-reason { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; background: #f8fafb; border-left: 3px solid #d9a32e; padding: 10px 12px; margin: 15px 0 10px; font-size: 14px; line-height: 1.6; }
.ud-reason span { overflow-wrap: anywhere; white-space: pre-wrap; }
.ud-meta { display: flex; gap: 7px 18px; flex-wrap: wrap; margin-bottom: 15px; font-size: 12px; color: #5a707c; }
.ud-order-tools { margin-left: auto; flex-wrap: nowrap; }
.ud-order-tools .btn, .ud-remove { width: 40px; height: 40px; padding: 0 !important; }
.ud-assigned { font-size: 13px; color: #755518; }
.ud-decision-form { display: grid; grid-template-columns: minmax(210px, .85fr) minmax(240px, 1.5fr); align-items: start; gap: 14px; margin-top: 20px; padding-top: 18px; border-top: 1px solid #e8ccd1; }
.ud-decision-form label, .ud-modal-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 650; }
.ud-decision-form select, .ud-decision-form textarea, .ud-modal-form input, .ud-modal-form select, .ud-modal-form textarea { width: 100%; min-width: 0; border: 1px solid #bacbd4; background: #fff; color: #263b47; border-radius: 5px; padding: 10px; font-family: inherit; font-size: 14px; line-height: 1.5; }
.ud-decision-form select, .ud-modal-form select { min-height: 44px; }
.ud-decision-form textarea, .ud-modal-form textarea { resize: vertical; min-height: 85px; }
.ud-decision-form > button { justify-self: end; grid-column: 1 / -1; }
.ud-empty { text-align: center; padding: 55px 15px; color: #60717b; }
.ud-empty > .ti { font-size: 40px; color: #13786c; }
.ud-empty h3 { color: #263b47; margin: 14px 0 8px; font-size: 20px; }
.ud-empty p { font-size: 14px; }
.ud-history { margin-top: 26px; padding: 18px 0; border-top: 1px solid #d6e1e7; }
.ud-history summary { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 650; font-size: 14px; }
.ud-history summary span { margin-left: auto; color: #60717b; }
.ud-history-list article { padding: 16px 0; border-bottom: 1px solid #d6e1e7; }
.ud-history-list article > div { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.ud-history-list article b { color: #13786c; margin-left: auto; }
.ud-history-list p { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ud-history-list small { color: #60717b; }
.ud-modal-form { display: grid; gap: 18px; padding: 20px 24px; }
.ud-modal-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ud-search-results:empty { display: none; }
.ud-search-results { display: grid; gap: 6px; max-height: 270px; overflow: auto; font-size: 14px; }
.ud-search-result { display: grid; gap: 4px; border: 1px solid #d6e1e7; border-radius: 4px; background: #fff; text-align: left; padding: 11px; cursor: pointer; color: #263b47; font-family: inherit; }
.ud-search-result span { font-size: 13px; overflow-wrap: anywhere; }
.ud-search-result:hover { background: #edf7f3; }
.ud-search-result:disabled { opacity: .55; cursor: not-allowed; }
.ud-selected { display: flex; gap: 12px; padding: 13px; border-left: 4px solid #13786c; background: #edf7f3; font-size: 14px; overflow-wrap: anywhere; }
.ud-selected .ti { font-size: 23px; }
.ud-selected p { margin: 5px 0 0; }
.ud-modal-date { display: flex; gap: 9px; align-items: center; color: #9f2436; font-size: 13px; }
@media (max-width: 760px) {
  .ud-header { flex-direction: column; align-items: stretch; gap: 15px; }
  .ud-header h2 { font-size: 23px; }
  .ud-toolbar { justify-content: space-between; }
  .ud-stats > div { flex-direction: column; align-items: flex-start; padding: 0 12px; gap: 8px; }
  .ud-stats strong { font-size: 25px; }
  .ud-row { grid-template-columns: 30px minmax(0, 1fr); padding: 13px; gap: 10px; }
  .ud-rank { width: 30px; height: 34px; font-size: 17px; }
  .ud-row-heading { flex-direction: column; gap: 10px; }
  .ud-row h3 { font-size: 16px; }
  .ud-client { font-size: 13px; }
  .ud-row-actions .btn:not(.ud-remove), .ud-order-tools { margin-left: 0; }
  .ud-decision-form, .ud-modal-columns { grid-template-columns: minmax(0, 1fr); }
  .ud-decision-form > button { justify-self: stretch; }
  .ud-modal-form { padding: 18px 12px; }
  .ud-history-list article b { margin-left: 0; }
  .ud-changed .btn { margin: 10px 0 0; }
}
