/*
 * Power Dynamic WMS modern interface layer
 * Compatibility target: PHP 5.6, Bootstrap 4-era markup and existing HTML fragments.
 * Brand red sampled from logo_firma.png: var(--pd-theme-accent, #ab2139).
 */

:root {
  --pd-red: var(--pd-theme-accent, #ab2139);
  --pd-red-dark: var(--pd-theme-accent-dark, #89172c);
  --pd-red-soft: var(--pd-theme-accent-soft, #f8e9ec);
  --pd-charcoal: #17191e;
  --pd-charcoal-2: #20232a;
  --pd-ink: #20242b;
  --pd-muted: #69717d;
  --pd-border: #dfe3e8;
  --pd-border-strong: #cbd1d8;
  --pd-surface: #ffffff;
  --pd-canvas: #f4f5f7;
  --pd-success: #237a55;
  --pd-warning: #9b6415;
  --pd-danger: var(--pd-theme-accent, #ab2139);
  --pd-radius: 9px;
  --pd-radius-sm: 6px;
  --pd-shadow: 0 8px 24px rgba(24, 28, 34, 0.07);
  --pd-shadow-lg: 0 24px 64px rgba(10, 12, 16, 0.18);
}

html {
  background: var(--pd-canvas);
}

body {
  color: var(--pd-ink);
  background: var(--pd-canvas);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--pd-red);
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

a:hover,
a:focus {
  color: var(--pd-red-dark);
}

::selection {
  color: #fff;
  background: var(--pd-red);
}

/* Application shell */
.topbar {
  min-height: 72px;
  border-bottom: 1px solid var(--pd-border);
  background: var(--pd-surface);
  box-shadow: 0 2px 12px rgba(20, 24, 30, 0.05);
}

.topbar .topbar-left {
  width: 250px;
  height: 72px;
  background: #fff;
  border-right: 1px solid var(--pd-border);
  border-bottom: 3px solid var(--pd-red);
}

.topbar .topbar-left .logo {
  display: flex;
  height: 72px;
  align-items: center;
  justify-content: center;
  line-height: normal;
}

#top_logo,
.topbar-left .logo img {
  width: auto;
  max-width: 198px;
  max-height: 54px !important;
  object-fit: contain;
}

.navbar-custom {
  min-height: 72px;
  margin-left: 250px;
  padding: 0 20px;
  background: #fff;
  box-shadow: none;
}

.navbar-custom .nav-link {
  color: var(--pd-ink);
  line-height: 72px;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus,
.navbar-custom .nav-link[aria-expanded="true"] {
  color: var(--pd-red);
}

/* style.css colors notification icons white for the legacy dark header.
   The modern vertical header is white, so the icon itself needs an explicit color. */
.topbar .navbar-custom .notification-list .noti-icon {
  color: var(--pd-ink);
  transition: color 0.16s ease;
}

.topbar .navbar-custom .notification-list .nav-link:hover .noti-icon,
.topbar .navbar-custom .notification-list .nav-link:focus .noti-icon,
.topbar .navbar-custom .notification-list .nav-link[aria-expanded="true"] .noti-icon {
  color: var(--pd-red);
}

.topbar .navbar-custom .notification-list .noti-icon-badge {
  border-color: #fff;
}

.pd-birthday-header .nav-link {
  position: relative;
}

.pd-birthday-header .noti-icon {
  transform-origin: 50% 88%;
}

.pd-birthday-header.is-celebrating .noti-icon {
  color: var(--pd-red) !important;
  animation: pd-birthday-celebrate 1.8s ease-in-out infinite;
}

.pd-birthday-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(171, 33, 57, 0.38);
  border-radius: 50%;
  animation: pd-birthday-pulse 1.8s ease-out infinite;
  pointer-events: none;
}

.pd-birthday-menu {
  width: 280px;
}

.pd-birthday-menu__title {
  color: #fff;
  background: var(--pd-red) !important;
}

.pd-birthday-menu__title h5 {
  margin: 0;
  color: #fff;
}

.pd-birthday-menu__person {
  height: auto;
  min-height: 62px;
  white-space: normal;
  cursor: default;
}

.pd-birthday-menu__name,
.pd-birthday-menu__role {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-birthday-menu__name {
  color: #161616;
  font-size: 11px;
  font-weight: 800;
}

.pd-birthday-menu__role {
  margin-top: 3px;
  color: #4f5661;
  font-size: 11px;
}

.pd-birthday-menu__person small {
  display: block;
  margin-top: 3px;
  color: #8a9099;
}

.pd-birthday-menu__empty {
  padding: 18px;
  color: #777;
  font-size: 12px;
  text-align: center;
}

.pd-birthday-menu__footer {
  color: var(--pd-muted);
  font-size: 11px;
  text-align: center;
  cursor: default;
}

@keyframes pd-birthday-celebrate {
  0%, 62%, 100% { transform: rotate(0deg) scale(1); }
  70% { transform: rotate(-12deg) scale(1.12); }
  78% { transform: rotate(11deg) scale(1.12); }
  86% { transform: rotate(-7deg) scale(1.08); }
  94% { transform: rotate(5deg) scale(1.04); }
}

@keyframes pd-birthday-pulse {
  0%, 62% { opacity: 0; transform: translate(-50%, -50%) scale(.65); }
  72% { opacity: .65; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
}

@media (prefers-reduced-motion: reduce) {
  .pd-birthday-header.is-celebrating .noti-icon,
  .pd-birthday-pulse {
    animation: none;
  }
}

.pd-reminder-header .nav-link { position: relative; }
.pd-reminder-header.has-reminders .noti-icon {
  color: var(--pd-red) !important;
  transform-origin: 50% 8%;
  animation: pd-reminder-ring 2.35s ease-in-out infinite;
}
.pd-reminder-alert-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(189,23,55,.34);
  border-radius: 50%;
  pointer-events: none;
  animation: pd-reminder-pulse 2.35s ease-out infinite;
}
.pd-reminder-count-badge {
  position: absolute;
  z-index: 2;
  top: 17px;
  right: 4px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 10px;
  color: #fff;
  background: var(--pd-red);
  font-size: 8px;
  line-height: 1;
  font-weight: 800;
}
.pd-reminder-topbar { width: 334px; overflow: hidden; border: 0; border-radius: 13px; box-shadow: 0 18px 48px rgba(18,20,25,.18); }
.pd-reminder-topbar__title { color: #fff; background: linear-gradient(115deg, #a61230, #cf2646) !important; }
.pd-reminder-topbar__title h5 { margin: 0; color: #fff; }
.pd-reminder-topbar__title .label { color: #fff; background: rgba(255,255,255,.18); }
.pd-reminder-topbar__sections { max-height: 430px; overflow-y: auto; overscroll-behavior: contain; background: #fff; }
.pd-reminder-topbar__section + .pd-reminder-topbar__section { border-top: 5px solid #f3f5f7; }
.pd-reminder-topbar__section-title { display: flex; min-height: 34px; padding: 8px 12px; align-items: center; justify-content: space-between; border-bottom: 1px solid #edf0f3; color: #626a75; background: #fafbfc; font-size: 9px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.pd-reminder-topbar__section-title span { display: inline-flex; align-items: center; gap: 6px; }
.pd-reminder-topbar__section-title i { color: var(--pd-red); font-size: 11px; }
.pd-reminder-topbar__section-title b { display: inline-grid; min-width: 20px; height: 20px; padding: 0 5px; place-items: center; border-radius: 10px; color: var(--pd-red); background: #fdecef; font-size: 9px; }
.pd-reminder-topbar__list { overflow: visible; }
.pd-reminder-topbar__item { display: grid; grid-template-columns: minmax(0,1fr) auto; min-height: 70px; border-bottom: 1px solid #edf0f3; background: #fff; }
.pd-reminder-topbar__copy { display: grid; grid-template-columns: 35px minmax(0,1fr); align-items: center; gap: 9px; min-width: 0; padding: 11px 8px 11px 12px; color: inherit !important; }
.pd-reminder-topbar__copy > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.pd-reminder-topbar__copy strong, .pd-reminder-topbar__copy small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pd-reminder-topbar__copy strong { color: #20252e; font-size: 10px; font-weight: 800; }
.pd-reminder-topbar__copy small { margin-top: 5px; color: #9298a3; font-size: 9px; }
.pd-reminder-topbar__details { display: block; min-width: 0; color: inherit !important; }
.pd-reminder-topbar__ticket { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; padding: 2px 5px; border-radius: 5px; color: var(--pd-red) !important; background: #fdecef; font-weight: 800; white-space: nowrap; }
.pd-reminder-topbar__ticket:hover, .pd-reminder-topbar__ticket:focus { color: #fff !important; background: var(--pd-red); outline: 0; }
.pd-reminder-topbar__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #2877bd; background: #eaf4fe; }
.pd-reminder-topbar__item.is-important .pd-reminder-topbar__icon { color: var(--pd-red); background: #fdecef; }
.pd-reminder-topbar__dismiss { display: flex; width: 62px; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; border-left: 1px solid #edf0f3; color: #9298a3; background: #fafbfc; font-size: 8px; font-weight: 800; cursor: pointer; transition: .16s ease; }
.pd-reminder-topbar__dismiss i { font-size: 10px; }
.pd-reminder-topbar__dismiss:hover, .pd-reminder-topbar__dismiss:focus { color: #fff; background: #23835d; outline: 0; }
.pd-reminder-topbar__dismiss.is-loading { pointer-events: none; opacity: .55; }
.pd-reminder-topbar__empty { display: flex; min-height: 130px; padding: 20px; flex-direction: column; align-items: center; justify-content: center; color: #9aa0aa; text-align: center; }
.pd-reminder-topbar__empty i { margin-bottom: 8px; color: #3aa979; font-size: 24px; }
.pd-reminder-topbar__empty strong { color: #59616c; font-size: 10px; }
.pd-reminder-topbar__empty span { margin-top: 4px; font-size: 9px; }
.pd-reminder-topbar__empty.is-compact { min-height: 64px; padding: 13px; flex-direction: row; gap: 7px; }
.pd-reminder-topbar__empty.is-compact i { margin: 0; font-size: 16px; }
.pd-reminder-topbar__empty.is-compact span { margin: 0; }
.pd-reminder-topbar__chat-item { display: grid; grid-template-columns: 38px minmax(0,1fr) 12px; min-height: 62px; padding: 9px 11px; align-items: center; gap: 9px; border-bottom: 1px solid #edf0f3; color: #20252e !important; background: #fff; transition: .16s ease; }
.pd-reminder-topbar__chat-item:hover, .pd-reminder-topbar__chat-item:focus { color: #20252e !important; background: #fff7f8; outline: 0; }
.pd-reminder-topbar__chat-avatar { position: relative; display: grid; width: 38px; height: 38px; place-items: center; overflow: visible; border-radius: 50%; color: #fff; background: linear-gradient(135deg,#c32845,#8f172d); font-size: 10px; font-weight: 800; }
.pd-reminder-topbar__chat-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.pd-reminder-topbar__chat-avatar i { position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: var(--pd-red); }
.pd-reminder-topbar__chat-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.pd-reminder-topbar__chat-copy > span { display: flex; min-width: 0; align-items: center; gap: 8px; }
.pd-reminder-topbar__chat-copy strong { overflow: hidden; flex: 1; color: #20252e; font-size: 10px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.pd-reminder-topbar__chat-copy time { color: var(--pd-red); font-size: 8px; font-weight: 800; }
.pd-reminder-topbar__chat-copy small { overflow: hidden; color: #777f8b; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.pd-reminder-topbar__chat-arrow { color: #b6bbc3; font-size: 14px; }
.pd-reminder-topbar__chat-empty { display: flex; min-height: 64px; align-items: center; justify-content: center; gap: 7px; color: #8d949e; font-size: 9px; }
.pd-reminder-topbar__chat-empty i { color: #3aa979; font-size: 16px; }
.pd-reminder-topbar__footer { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #e7eaee; background: #f7f8fa; }
.pd-reminder-topbar__footer a { display: flex; min-height: 42px; padding: 9px 10px; align-items: center; justify-content: center; gap: 7px; color: var(--pd-red) !important; font-size: 11px; line-height: 1.2; font-weight: 800; text-align: center; }
.pd-reminder-topbar__footer a i { font-size: 12px; }
.pd-reminder-topbar__footer a + a { border-left: 1px solid #e1e5e9; }
.pd-reminder-topbar__footer a:hover, .pd-reminder-topbar__footer a:focus { background: #fdecef; outline: 0; }

@keyframes pd-reminder-ring {
  0%, 66%, 100% { transform: rotate(0deg); }
  71% { transform: rotate(14deg); }
  77% { transform: rotate(-12deg); }
  83% { transform: rotate(9deg); }
  89% { transform: rotate(-6deg); }
  95% { transform: rotate(3deg); }
}
@keyframes pd-reminder-pulse {
  0%, 66% { opacity: 0; transform: translate(-50%,-50%) scale(.68); }
  76% { opacity: .7; }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(1.35); }
}

@media (prefers-reduced-motion: reduce) {
  .pd-reminder-header.has-reminders .noti-icon,
  .pd-reminder-alert-ring { animation: none; }
}

.pd-webmail-header-notice {
  position: relative;
}

.pd-webmail-login-bubble[hidden] {
  display: none !important;
}

.pd-webmail-login-bubble {
  position: absolute;
  z-index: 1090;
  top: 62px;
  right: -12px;
  width: 310px;
  padding: 6px;
  color: var(--pd-ink);
  line-height: 1.35;
  white-space: normal;
  background: #fff;
  border: 1px solid rgba(171, 33, 57, 0.2);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(18, 20, 25, 0.2);
  opacity: 0;
  transform: translateY(-7px) scale(0.98);
  transform-origin: calc(100% - 24px) top;
  transition: opacity 180ms ease, transform 180ms ease;
}

.pd-webmail-login-bubble.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pd-webmail-login-bubble::before,
.pd-webmail-login-bubble::after {
  position: absolute;
  right: 26px;
  bottom: 100%;
  width: 0;
  height: 0;
  content: "";
  border-right: 9px solid transparent;
  border-bottom: 10px solid rgba(171, 33, 57, 0.2);
  border-left: 9px solid transparent;
}

.pd-webmail-login-bubble::after {
  right: 27px;
  border-right-width: 8px;
  border-bottom: 9px solid #fff;
  border-left-width: 8px;
}

.pd-webmail-login-bubble__link {
  display: flex;
  min-height: 66px;
  padding: 11px 36px 11px 11px;
  align-items: center;
  color: var(--pd-ink);
  text-decoration: none;
  border-radius: 8px;
}

.pd-webmail-login-bubble__link:hover,
.pd-webmail-login-bubble__link:focus {
  color: var(--pd-ink);
  text-decoration: none;
  background: var(--pd-red-soft);
  outline: none;
}

.pd-webmail-login-bubble__icon {
  display: flex;
  width: 40px;
  height: 40px;
  margin-right: 12px;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  background: var(--pd-red);
  border-radius: 10px;
}

.pd-webmail-login-bubble__copy {
  display: block;
  min-width: 0;
}

.pd-webmail-login-bubble__copy strong,
.pd-webmail-login-bubble__copy small {
  display: block;
}

.pd-webmail-login-bubble__copy strong {
  color: var(--pd-charcoal);
  font-size: 14px;
  font-weight: 700;
}

.pd-webmail-login-bubble__copy small {
  margin-top: 3px;
  color: var(--pd-muted);
  font-size: 12px;
}

.pd-webmail-login-bubble__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--pd-muted);
  font-size: 20px;
  line-height: 26px;
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}

.pd-webmail-login-bubble__close:hover,
.pd-webmail-login-bubble__close:focus {
  color: var(--pd-red);
  background: var(--pd-red-soft);
  outline: none;
}

.navbar-custom .menu-left {
  display: flex;
  min-height: 72px;
  align-items: center;
  overflow: visible;
}

.button-menu-mobile {
  min-width: 44px;
  min-height: 44px;
  margin: 14px 14px 14px 0;
  padding: 0 12px;
  color: var(--pd-ink);
  line-height: 44px;
  border-radius: var(--pd-radius-sm);
}

.button-menu-mobile:hover,
.button-menu-mobile:focus {
  color: var(--pd-red);
  background: var(--pd-red-soft);
  outline: 2px solid rgba(171, 33, 57, 0.22) !important;
  outline-offset: 1px;
}

.app-search {
  position: relative;
  margin-top: 0;
  padding-top: 0;
}

.app-search .pd-quick-search-form {
  position: relative;
  display: block;
  width: 300px;
  max-width: 100%;
  height: 38px;
  margin: 0;
}

.app-search .form-control,
.app-search .form-control:focus {
  display: block;
  box-sizing: border-box;
  width: 300px;
  height: 38px;
  padding: 8px 42px 8px 14px;
  color: var(--pd-ink);
  font-size: 14px;
  background: #f7f8f9;
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-sm);
}

.app-search .form-control:focus {
  background: #fff;
  border-color: var(--pd-red);
  box-shadow: 0 0 0 3px rgba(171, 33, 57, 0.12);
}

.app-search a,
.app-search a:hover {
  color: var(--pd-muted);
}

.app-search .pd-quick-search-submit {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: 42px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--pd-muted);
  background: transparent;
  border: 0;
  border-radius: 0 var(--pd-radius-sm) var(--pd-radius-sm) 0;
  cursor: pointer;
  font-size: 14px;
}

.app-search .pd-quick-search-submit:hover,
.app-search .pd-quick-search-submit:focus {
  color: var(--pd-red);
  background: var(--pd-red-soft);
  outline: 0;
}

.app-search .pd-quick-search-submit:focus-visible {
  outline: 2px solid rgba(171, 33, 57, 0.4);
  outline-offset: -2px;
}

#quick_shearc_table {
	position: fixed;
	top: 62px;
	right: auto;
	left: 0;
	z-index: 10050;
	box-sizing: border-box;
	width: min(560px, calc(100vw - 24px));
	height: auto !important;
	min-height: 0;
	max-height: calc(100vh - 74px);
	overflow: hidden;
	padding: 0;
	font-family: inherit;
	font-size: 13px;
	background: #fff;
	border: 1px solid #dfe3e8;
	border-top: 3px solid var(--pd-red);
	border-radius: 0 0 8px 8px;
	box-shadow: 0 14px 34px rgba(20, 24, 30, 0.16);
}

#quick_shearc_table .pd-search-panel__header {
	display: flex;
	height: 38px;
	align-items: center;
	justify-content: space-between;
	padding: 0 8px 0 12px;
	color: var(--pd-ink);
	background: #fbfcfd;
	border-bottom: 1px solid #edf0f3;
}

#quick_shearc_table .pd-search-panel__header strong {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0;
}

#quick_shearc_table .pd-search-close {
	display: inline-flex;
	width: 28px;
	height: 28px;
	align-items: center;
	justify-content: center;
	padding: 0;
	color: #68717d;
	background: transparent;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	line-height: 1;
}

#quick_shearc_table .pd-search-close svg {
	display: block;
	width: 16px;
	height: 16px;
}

#quick_shearc_table .pd-search-close:hover,
#quick_shearc_table .pd-search-close:focus {
	color: var(--pd-red);
	background: var(--pd-red-soft);
	outline: 0;
}

#quick_shearc_table .pd-search-close:focus-visible {
	outline: 2px solid rgba(171, 33, 57, 0.35);
	outline-offset: 1px;
}

#quick_shearc_table .pd-search-panel__body {
	box-sizing: border-box;
	height: auto !important;
	min-height: 0;
	max-height: calc(100vh - 114px);
	overflow-y: auto;
	padding: 6px;
	scrollbar-color: #c9ced5 transparent;
	scrollbar-width: thin;
}

#quick_shearc_table .pd-search-results-host,
#quick_shearc_table .pd-search-results-list {
	display: block;
	width: 100%;
	height: auto;
	min-height: 0;
}

#quick_shearc_table .pd-search-loading,
#quick_shearc_table .pd-search-empty,
#quick_shearc_table .pd-search-error {
	display: flex;
	min-height: 112px;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 24px;
	color: #4f5966;
	text-align: left;
}

#quick_shearc_table .pd-search-loading strong,
#quick_shearc_table .pd-search-empty strong,
#quick_shearc_table .pd-search-error strong {
	display: block;
	margin-bottom: 3px;
	color: var(--pd-ink);
	font-size: 14px;
	font-weight: 700;
}

#quick_shearc_table .pd-search-loading small,
#quick_shearc_table .pd-search-empty small,
#quick_shearc_table .pd-search-error small {
	display: block;
	color: #7a8491;
	font-size: 12px;
	line-height: 1.45;
}

#quick_shearc_table .pd-search-spinner {
	box-sizing: border-box;
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	border: 3px solid rgba(171, 33, 57, 0.16);
	border-top-color: var(--pd-red);
	border-radius: 50%;
	animation: pd-search-spin 700ms linear infinite;
}

@keyframes pd-search-spin {
	to { transform: rotate(360deg); }
}

#quick_shearc_table .pd-search-state-icon {
	display: inline-flex;
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	align-items: center;
	justify-content: center;
	color: #737d89;
	background: #f2f4f6;
	border-radius: 50%;
	font-size: 16px;
}

#quick_shearc_table .pd-search-error .pd-search-state-icon {
	color: #b4233a;
	background: #fff0f2;
}

#quick_shearc_table .pd-search-results-list {
	display: block;
}

#quick_shearc_table .pd-search-result {
	display: grid;
	box-sizing: border-box;
	grid-template-columns: 44px minmax(0, 1fr) 20px;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 68px;
	padding: 9px 8px;
	color: var(--pd-ink);
	background: #fff;
	border: 0;
	border-bottom: 1px solid #edf0f3;
	border-radius: 5px;
	text-decoration: none;
	transition: background 140ms ease;
}

#quick_shearc_table .pd-search-result:last-child {
	border-bottom-color: transparent;
}

#quick_shearc_table a.pd-search-result:hover,
#quick_shearc_table a.pd-search-result:focus {
	color: var(--pd-ink);
	background: #f8f5f6;
	outline: 0;
	text-decoration: none;
}

#quick_shearc_table a.pd-search-result:focus-visible {
	box-shadow: 0 0 0 2px rgba(171, 33, 57, 0.22);
}

#quick_shearc_table .pd-search-result__visual {
	display: inline-flex;
	box-sizing: border-box;
	width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	color: #4f5966;
	background: #fff;
	border: 1px solid #e5e9ed;
	border-radius: 8px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

#quick_shearc_table .pd-search-result__visual img {
	display: block;
	max-width: 34px;
	max-height: 34px;
	object-fit: contain;
}

#quick_shearc_table .pd-search-result__initials {
	max-width: 36px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#quick_shearc_table .pd-search-result__content {
	display: block;
	min-width: 0;
}

#quick_shearc_table .pd-search-result__topline {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 7px;
	margin-bottom: 4px;
}

#quick_shearc_table .pd-search-result__kind,
#quick_shearc_table .pd-search-result__status {
	display: inline-flex;
	min-width: 0;
	align-items: center;
	padding: 3px 7px;
	border-radius: 3px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
	text-transform: uppercase;
}

#quick_shearc_table .pd-search-result__kind {
	color: #8f2639;
	background: #fff0f2;
}

#quick_shearc_table .pd-search-result__kind--green {
	color: #176b4d;
	background: #eaf8f1;
}

#quick_shearc_table .pd-search-result__kind--blue {
	color: #285f94;
	background: #edf5fc;
}

#quick_shearc_table .pd-search-result__kind--amber {
	color: #8a5b08;
	background: #fff7e5;
}

#quick_shearc_table .pd-search-result__kind--purple {
	color: #68448e;
	background: #f4effa;
}

#quick_shearc_table .pd-search-result__status {
	max-width: 58%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#quick_shearc_table .pd-search-result__status--success {
	color: #176b4d;
	background: #eaf8f1;
}

#quick_shearc_table .pd-search-result__status--danger {
	color: #a32338;
	background: #fff0f2;
}

#quick_shearc_table .pd-search-result__status--warning {
	color: #8a5b08;
	background: #fff7e5;
}

#quick_shearc_table .pd-search-result__status--info {
	color: #285f94;
	background: #edf5fc;
}

#quick_shearc_table .pd-search-result__status--neutral {
	color: #5d6671;
	background: #f0f2f4;
}

#quick_shearc_table .pd-search-result__title {
	display: block;
	overflow: hidden;
	color: #323944;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#quick_shearc_table .pd-search-result__meta {
	display: flex;
	min-width: 0;
	gap: 13px;
	margin-top: 3px;
	overflow: hidden;
	color: #7b8591;
	font-size: 11px;
	line-height: 1.3;
	white-space: nowrap;
}

#quick_shearc_table .pd-search-result__meta span {
	position: relative;
	overflow: hidden;
	text-overflow: ellipsis;
}

#quick_shearc_table .pd-search-result__meta span + span::before {
	position: absolute;
	top: 0;
	left: -8px;
	content: "·";
}

#quick_shearc_table .pd-search-result__value {
	margin-left: auto;
	flex: 0 0 auto;
	color: #606a76;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
}

#quick_shearc_table .pd-search-result__arrow {
	display: inline-flex;
	width: 20px;
	height: 20px;
	align-items: center;
	justify-content: center;
	color: #a0a7b0;
}

#quick_shearc_table .pd-search-result__arrow svg {
	display: block;
	width: 18px;
	height: 18px;
}

#quick_shearc_table a.pd-search-result:hover .pd-search-result__arrow {
	color: var(--pd-red);
}

@media (prefers-reduced-motion: reduce) {
	#quick_shearc_table .pd-search-spinner {
		animation-duration: 1400ms;
	}

	#quick_shearc_table .pd-search-result {
		transition: none;
	}
}

@media (max-width: 640px) {
	#quick_shearc_table {
		max-height: calc(100vh - 82px);
	}

	#quick_shearc_table .pd-search-panel__body {
		max-height: calc(100vh - 130px);
	}

	#quick_shearc_table .pd-search-result {
		grid-template-columns: 42px minmax(0, 1fr) 18px;
		gap: 9px;
		padding-right: 7px;
	}

	#quick_shearc_table .pd-search-result__status {
		max-width: 48%;
	}
}

.side-menu,
.side-menu.left,
body.fixed-left .side-menu.left {
  top: 72px;
  bottom: 0;
  width: 250px;
  padding-bottom: 24px;
  background: var(--pd-charcoal);
  box-shadow: 10px 0 30px rgba(12, 14, 18, 0.08);
}

.sidebar-inner {
  background: var(--pd-charcoal);
}

#sidebar-menu {
  padding: 16px 10px 30px;
}

#sidebar-menu > ul > li {
  margin: 2px 0;
}

#sidebar-menu > ul > li > a {
  min-height: 46px;
  padding: 13px 14px;
  color: #d5d8de;
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid transparent;
  border-radius: 0 var(--pd-radius-sm) var(--pd-radius-sm) 0;
}

#sidebar-menu > ul > li > a:hover,
#sidebar-menu > ul > li > a:focus,
#sidebar-menu > ul > li > a.subdrop {
  color: #fff !important;
  background: #252830;
  border-left-color: rgba(171, 33, 57, 0.72);
}

#sidebar-menu > ul > li > a.active,
#sidebar-menu > ul > li.active > a {
  color: #fff !important;
  background: #2b2d34;
  border-left-color: var(--pd-red);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

#sidebar-menu ul li a i {
  width: 24px;
  margin: 0 13px 0 0;
  color: #b7bdc7;
  font-size: 19px;
}

#sidebar-menu ul li a:hover i,
#sidebar-menu ul li a:focus i,
#sidebar-menu ul li a.active i,
#sidebar-menu ul li.active > a i {
  color: #fff;
}

#sidebar-menu ul ul {
  margin: 4px 0 8px;
  padding: 5px 0;
  background: #121419;
  border-left: 1px solid #343740;
  border-radius: var(--pd-radius-sm);
}

#sidebar-menu ul ul a {
  padding: 9px 16px 9px 50px;
  color: #aeb4bf;
  font-size: 13px;
}

#sidebar-menu ul ul a:hover,
#sidebar-menu ul ul li.active a {
  color: #fff;
  background: rgba(171, 33, 57, 0.12);
}

#sidebar-menu .label {
  background: var(--pd-red) !important;
}

.content-page {
  margin-left: 250px;
  background: var(--pd-canvas);
}

.content-page > .content,
.content-page .content {
  margin-top: 72px;
  padding: 24px 24px 30px;
}

.footer {
  left: 250px;
  padding: 16px 24px;
  color: var(--pd-muted);
  background: #fff;
  border-color: var(--pd-border);
}

/* Page headers and content containers */
.page-title-box {
  margin: -24px -24px 22px;
  padding: 20px 24px;
  background: #fff;
  border-bottom: 1px solid var(--pd-border);
  box-shadow: none;
}

.page-title-box .page-title,
.page-title,
.header-title {
  color: var(--pd-ink);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-transform: none;
}

.page-title-box .page-title {
  font-size: 22px;
  line-height: 32px;
}

.page-title-box .page-title > i,
.header-title > i {
  margin-right: 8px;
  color: var(--pd-red);
}

.breadcrumb {
  gap: 4px;
  margin: 0;
  background: transparent !important;
}

.breadcrumb-item,
.breadcrumb-item a,
.header_link {
  color: var(--pd-muted);
  font-size: 13px;
  font-weight: 600;
}

.breadcrumb-item a,
.header_link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: var(--pd-radius-sm);
}

.breadcrumb-item a:hover,
.header_link:hover {
  color: var(--pd-red);
  background: var(--pd-red-soft);
  text-decoration: none;
}

.card-box,
.card,
.panel,
.tilebox-one {
  color: var(--pd-ink);
  background: #fff;
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius);
  box-shadow: var(--pd-shadow);
}

.card-box {
  padding: 20px;
  margin-bottom: 22px;
}

.card-header,
.panel-heading,
.modal-header {
  color: var(--pd-ink);
  background: #fff;
  border-color: var(--pd-border);
}

.card-body,
.panel-body {
  padding: 20px;
}

hr {
  border-color: var(--pd-border);
}

/* Forms */
label,
.control-label,
.col-form-label,
.form-control-label {
  color: #353a42;
  font-size: 13px;
  font-weight: 650;
}

.form-group {
  margin-bottom: 16px;
}

.form-control,
select.form-control,
textarea.form-control,
.custom-select,
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
  min-height: 40px;
  color: var(--pd-ink);
  font-size: 14px;
  background-color: #fff;
  border: 1px solid var(--pd-border-strong);
  border-radius: var(--pd-radius-sm);
  box-shadow: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

textarea.form-control {
  min-height: 92px;
  resize: vertical;
}

.form-control:hover,
select.form-control:hover,
textarea.form-control:hover {
  border-color: #aeb5be;
}

.form-control:focus,
select.form-control:focus,
textarea.form-control:focus,
.custom-select:focus,
.select2-container--focus .select2-selection {
  color: var(--pd-ink);
  background: #fff;
  border-color: var(--pd-red) !important;
  box-shadow: 0 0 0 3px rgba(171, 33, 57, 0.12) !important;
  outline: 0;
}

.form-control::placeholder {
  color: #9aa1ab;
  opacity: 1;
}

.form-control:disabled,
.form-control[readonly] {
  color: #6c737e;
  background: #f2f3f5;
}

.input-group-addon,
.input-group-text {
  min-width: 42px;
  color: var(--pd-muted);
  background: #f6f7f8;
  border-color: var(--pd-border-strong);
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--pd-red);
}

/* Buttons */
.btn {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  border-radius: var(--pd-radius-sm);
  box-shadow: none;
  transition: transform 120ms ease, color 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus,
.btn.focus,
button:focus,
a.btn:focus {
  outline: 2px solid rgba(171, 33, 57, 0.28) !important;
  outline-offset: 2px;
  box-shadow: none !important;
}

.btn-success,
.btn-primary,
.btn-custom,
.btn-danger {
  color: #fff !important;
  background: var(--pd-red) !important;
  border-color: var(--pd-red) !important;
}

.btn-success:hover,
.btn-primary:hover,
.btn-custom:hover,
.btn-danger:hover,
.btn-success:focus,
.btn-primary:focus,
.btn-custom:focus,
.btn-danger:focus {
  color: #fff !important;
  background: var(--pd-red-dark) !important;
  border-color: var(--pd-red-dark) !important;
}

.btn-secondary,
.btn-default,
.btn-light {
  color: var(--pd-ink) !important;
  background: #fff !important;
  border-color: var(--pd-border-strong) !important;
}

.btn-secondary:hover,
.btn-default:hover,
.btn-light:hover {
  color: var(--pd-red) !important;
  background: #fafafa !important;
  border-color: var(--pd-red) !important;
}

.btn-link {
  color: var(--pd-red);
}

.btn-rounded {
  border-radius: var(--pd-radius-sm) !important;
}

.cauta_modifica {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  margin: 2px;
  color: var(--pd-muted);
  background: #fff;
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-sm);
}

.cauta_modifica:hover,
.cauta_modifica:focus {
  color: #fff;
  background: var(--pd-red);
  border-color: var(--pd-red);
  text-decoration: none;
}

/* Dense operational tables */
.table-responsive {
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius-sm);
  overflow-x: auto;
}

.table {
  width: 100%;
  margin-bottom: 0;
  color: var(--pd-ink);
  background: #fff;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.table thead th,
.table .thead-default th,
.table .thead-dark th {
  height: 44px;
  padding: 10px 12px;
  color: #454b55;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.01em;
  vertical-align: middle;
  background: #f7f8f9 !important;
  border-top: 0;
  border-bottom: 1px solid var(--pd-border-strong);
}

.table td,
.table th {
  padding: 10px 12px;
  vertical-align: middle;
  border-color: var(--pd-border);
}

.table tbody tr {
  transition: background-color 120ms ease, box-shadow 120ms ease;
}

.table tbody tr:hover,
.table-hover tbody tr:hover {
  background: #fbf3f5 !important;
}

.table-striped tbody tr:nth-of-type(odd) {
  background: #fafbfc;
}

.table-bordered,
.table-bordered td,
.table-bordered th {
  border-color: var(--pd-border);
}

.table tbody tr[style*="cursor:pointer"]:hover,
.table tbody tr[style*="cursor: pointer"]:hover {
  box-shadow: inset 3px 0 0 var(--pd-red);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  min-height: 36px;
  border: 1px solid var(--pd-border-strong);
  border-radius: var(--pd-radius-sm);
}

.dataTables_wrapper .dataTables_paginate .paginate_button,
.pagination .page-link {
  min-width: 34px;
  min-height: 34px;
  margin: 0 2px;
  color: var(--pd-ink) !important;
  background: #fff !important;
  border: 1px solid var(--pd-border) !important;
  border-radius: var(--pd-radius-sm) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
.pagination .page-item.active .page-link {
  color: #fff !important;
  background: var(--pd-red) !important;
  border-color: var(--pd-red) !important;
}

/* Status, alerts and navigation */
.label,
.badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.015em;
  border-radius: 4px;
}

.label-success,
.badge-success {
  color: #176341 !important;
  background: #e5f4ec !important;
}

.label-danger,
.badge-danger,
.label-primary,
.badge-primary {
  color: var(--pd-red-dark) !important;
  background: var(--pd-red-soft) !important;
}

/* Keep the main-menu counters readable on the dark navigation surface. */
#sidebar-menu > ul > li > a#menu_ticket > .label-primary,
#sidebar-menu > ul > li > a#menu_achizitii > .label-primary {
  color: #4f5864 !important;
  background: #f3f4f6 !important;
  box-shadow: inset 0 0 0 1px rgba(79, 88, 100, 0.08);
}

.label-warning,
.badge-warning {
  color: #7a4b0c !important;
  background: #fff1d8 !important;
}

.label-default,
.badge-secondary,
.label-info,
.badge-info {
  color: #4f5864 !important;
  background: #edf0f3 !important;
}

.alert {
  color: var(--pd-ink);
  border: 1px solid transparent;
  border-left-width: 4px;
  border-radius: var(--pd-radius-sm);
  box-shadow: none;
}

.alert-danger {
  color: #6f1727;
  background: #fbebee;
  border-color: #e6aeba;
  border-left-color: var(--pd-red);
}

.alert-warning {
  color: #68440f;
  background: #fff6e6;
  border-color: #f0cd91;
}

.alert-success {
  color: #155e3f;
  background: #eaf6ef;
  border-color: #a9d9bf;
}

.nav-tabs {
  gap: 4px;
  border-bottom: 1px solid var(--pd-border);
}

.nav-tabs .nav-link {
  margin-bottom: -1px;
  padding: 10px 14px;
  color: var(--pd-muted);
  font-size: 13px;
  font-weight: 700;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus,
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
  color: var(--pd-red);
  background: transparent;
  border-color: var(--pd-red);
}

/* Ticket tabs: vizibilitate rapida pentru taburile cu sau fara date. */
.pd-ticket-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 4px 8px;
}

.pd-ticket-tabs .pd-ticket-tab-link {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding-right: 12px;
  padding-left: 12px;
  white-space: nowrap;
}

.pd-ticket-tab-label {
  line-height: 1.2;
}

.pd-ticket-tab-status {
  color: #5c8c75;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.pd-ticket-tab-badge {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  color: #fff;
  background: var(--pd-red);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 20px;
}

.pd-ticket-tabs .pd-ticket-tab--empty,
.pd-ticket-tabs .pd-ticket-tab--empty:hover,
.pd-ticket-tabs .pd-ticket-tab--empty:focus {
  color: #a0a8b2 !important;
  background: #f7f8fa !important;
  border-bottom: 2px dashed #d5dbe1 !important;
  cursor: not-allowed;
  opacity: 0.78;
}

.pd-ticket-tabs .pd-ticket-tab--empty .pd-ticket-tab-badge {
  color: #7f8995;
  background: #e6e9ed;
}

.pd-ticket-tabs .pd-ticket-tab--has-data:not(.active) {
  color: #435061;
}

.pd-ticket-tabs .pd-ticket-tab--has-data:not(.active):hover {
  color: var(--pd-red);
  background: rgba(171, 33, 57, 0.05);
}

.pd-ticket-tabs .pd-ticket-tab--has-data.active .pd-ticket-tab-badge {
  color: var(--pd-red);
  background: var(--pd-red-soft);
}

@media (max-width: 768px) {
  .pd-ticket-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  .pd-ticket-tabs .nav-item {
    flex: 0 0 auto;
  }
}

.dropdown-menu,
.profile-dropdown {
  padding: 6px;
  background: #fff;
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius);
  box-shadow: var(--pd-shadow-lg);
}

.dropdown-item,
.notify-item {
  min-height: 38px;
  color: var(--pd-ink);
  border-radius: var(--pd-radius-sm);
}

.dropdown-item:hover,
.dropdown-item:focus,
.notify-item:hover,
.notify-item:focus {
  color: var(--pd-red) !important;
  background: var(--pd-red-soft) !important;
}

.notification-list .noti-title {
  background: var(--pd-charcoal);
  border-radius: var(--pd-radius-sm);
}

.modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(12, 14, 18, 0.24);
}

.modal-header {
  min-height: 58px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--pd-border);
}

.modal-title {
  font-size: 18px;
  font-weight: 750;
}

.modal-footer {
  padding: 14px 20px;
  background: #fafbfc;
  border-top: 1px solid var(--pd-border);
}

.close {
  color: var(--pd-muted);
  opacity: 1;
}

.close:hover,
.close:focus {
  color: var(--pd-red);
}

.sweet-alert {
  border-radius: 12px;
  box-shadow: var(--pd-shadow-lg);
}

.tooltip-inner {
  background: var(--pd-charcoal);
  border-radius: 5px;
}

/* Horizontal/client navigation variants */
#topnav .topbar-main {
  min-height: 72px;
  background: var(--pd-charcoal) !important;
  border-bottom: 3px solid var(--pd-red) !important;
}

#topnav .topbar-left .logo {
  display: flex;
  height: 72px;
  align-items: center;
}

#topnav .navigation-menu > li > a,
#topnav .navbar-topbar .nav-link {
  color: #e1e4e9;
}

#topnav .navigation-menu > li > a:hover,
#topnav .navigation-menu > li > a:focus,
#topnav .navigation-menu > li.active > a {
  color: #fff;
  background: rgba(171, 33, 57, 0.18);
}

.pd-topnav-spacer {
  height: 147px;
}

.pd-mobile-menu-backdrop {
  display: none;
}

@media (max-width: 991px) {
  #topnav,
  #topnav .topbar-main {
    min-height: 60px;
  }

  #topnav .topbar-main .container {
    display: flex;
    height: 60px;
    max-width: 100%;
    align-items: center;
    padding-right: 8px;
    padding-left: 8px;
  }

  #topnav .topbar-left {
    display: flex;
    width: 136px !important;
    height: 60px;
    flex: 0 0 136px;
    align-items: center;
  }

  #topnav .topbar-left .logo {
    width: 100%;
    height: 60px;
  }

  #topnav .topbar-left .logo img,
  #topnav #top_logo {
    width: auto;
    max-width: 124px !important;
    max-height: 42px !important;
  }

  #topnav .navbar-toggle,
  #topnav .pd-mobile-nav-toggle {
    display: inline-flex !important;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--pd-radius-sm);
  }

  #topnav .navbar-toggle:hover,
  #topnav .navbar-toggle:focus {
    background: rgba(255, 255, 255, 0.1);
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: -2px;
  }

  #topnav .menu-extras {
    min-width: 0;
    margin-left: auto;
  }

  #topnav .navbar-topbar .nav-link {
    height: 60px;
    line-height: 60px;
  }

  #topnav .nav-user {
    max-width: 54px;
    overflow: hidden;
    font-size: 0;
    white-space: nowrap;
  }

  #topnav .navbar-custom {
    min-height: 0;
    padding: 0;
  }

  #topnav #navigation {
    position: fixed;
    top: 60px;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 60px);
    max-height: calc(100dvh - 60px);
    padding: 8px 10px 18px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid var(--pd-border);
    box-shadow: 0 16px 34px rgba(12, 14, 18, 0.2);
    -webkit-overflow-scrolling: touch;
  }

  #topnav #navigation.open {
    display: block;
  }

  #topnav .navigation-menu {
    max-height: none;
  }

  #topnav .navigation-menu > li > a,
  #topnav .navigation-menu > li .submenu li a {
    min-height: 44px;
    padding-top: 12px;
    padding-bottom: 12px;
    line-height: 20px;
    overflow-wrap: anywhere;
  }

  #topnav .navigation-menu > li .submenu {
    padding-left: 12px;
    border-left: 2px solid var(--pd-border);
  }

  #topnav .navigation-menu > li.has-submenu.open > a {
    color: var(--pd-red);
    background: var(--pd-red-soft);
  }

  #topnav .dropdown-menu {
    right: 8px !important;
    left: auto !important;
    width: min(360px, calc(100vw - 16px)) !important;
    max-width: calc(100vw - 16px);
  }

  .pd-topnav-spacer {
    height: 60px;
  }
}

/* Login */
body.pd-login-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #fff;
}

.pd-login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(420px, 56%) minmax(440px, 44%);
  background: #fff;
}

.pd-login-artwork {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background-color: var(--pd-charcoal);
  background-image: url("../images/login-artwork.png");
  background-position: center;
  background-size: cover;
  border-right: 4px solid var(--pd-red);
}

.pd-login-artwork::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent 72%, rgba(10, 11, 14, 0.28) 100%);
}

.pd-login-artwork-copy {
  position: absolute;
  z-index: 1;
  right: 40px;
  bottom: 34px;
  left: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pd-login-artwork-line {
  width: 86px;
  height: 3px;
  margin-bottom: 6px;
  background: var(--pd-red);
}

.pd-login-panel {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 48px clamp(32px, 6vw, 96px);
  background: #fff;
}

.pd-login-content {
  width: 100%;
  max-width: 470px;
}

.pd-login-page .wrapper-page,
.pd-login-page .account-bg {
  width: 100%;
  margin: 0;
}

.pd-login-page .account-bg .card-box {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.pd-login-page .account-bg .p-20 {
  padding: 0 !important;
}

.pd-login-logo {
  display: block;
  width: min(100%, 270px);
  height: auto;
  margin: 0 0 54px;
}

.pd-login-title {
  margin: 0 0 8px;
  color: var(--pd-ink);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 780;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.pd-login-subtitle {
  margin: 0 0 34px;
  color: var(--pd-muted);
  font-size: 16px;
}

.pd-login-form .form-group {
  margin-bottom: 20px;
}

.pd-login-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--pd-ink);
  font-size: 13px;
  font-weight: 720;
}

.pd-login-input-wrap {
  position: relative;
}

.pd-login-input-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 16px;
  color: #747c87;
  font-size: 20px;
  transform: translateY(-50%);
  pointer-events: none;
}

.pd-login-form .form-control {
  height: 52px;
  padding: 12px 48px;
  font-size: 15px;
  border-radius: 7px;
}

.pd-login-password-toggle {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 8px;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--pd-muted);
  background: transparent;
  border: 0;
  border-radius: 5px;
  transform: translateY(-50%);
}

.pd-login-password-toggle:hover,
.pd-login-password-toggle:focus {
  color: var(--pd-red);
  background: var(--pd-red-soft);
  outline: 2px solid rgba(171, 33, 57, 0.22) !important;
}

.pd-remember-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 26px;
}

.pd-remember-row input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.pd-remember-row label {
  margin: 0;
  color: #555d68;
  font-weight: 550;
  cursor: pointer;
}

.pd-login-submit {
  width: 100%;
  min-height: 52px;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.pd-login-status {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 16px;
  color: var(--pd-muted);
  background: #fafafa;
  border: 1px solid var(--pd-border);
  border-radius: 7px;
}

.pd-login-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #d8dce1;
  border-top-color: var(--pd-red);
  border-radius: 50%;
  animation: pd-spin 700ms linear infinite;
}

.pd-login-alert {
  margin: 0 0 24px;
  padding: 14px 16px;
  color: #721729;
  background: var(--pd-red-soft);
  border: 1px solid #e6afba;
  border-left: 4px solid var(--pd-red);
  border-radius: var(--pd-radius-sm);
}

.pd-login-footer {
  margin-top: 44px;
  padding-top: 20px;
  color: #848b95;
  font-size: 12px;
  line-height: 1.7;
  border-top: 1px solid var(--pd-border);
}

.pd-login-footer a {
  color: var(--pd-muted);
  font-weight: 700;
}

@keyframes pd-spin {
  to { transform: rotate(360deg); }
}

/* Responsive behavior */
@media (max-width: 1100px) {
  .pd-login-shell {
    grid-template-columns: minmax(360px, 48%) minmax(420px, 52%);
  }

  .pd-login-panel {
    padding-right: 48px;
    padding-left: 48px;
  }

  .app-search .pd-quick-search-form,
  .app-search .form-control,
  .app-search .form-control:focus {
    width: 230px;
  }
}

@media (max-width: 768px) {
  .topbar .navbar-custom .pd-topbar-optional-button {
    display: none !important;
  }

  .pd-login-shell {
    display: block;
  }

  .pd-login-artwork {
    min-height: 230px;
    max-height: 32vh;
    background-position: center 46%;
    border-right: 0;
    border-bottom: 4px solid var(--pd-red);
  }

  .pd-login-artwork-copy {
    right: 22px;
    bottom: 18px;
    left: 22px;
  }

  .pd-login-panel {
    min-height: auto;
    padding: 38px 24px 32px;
  }

  .pd-login-logo {
    width: 220px;
    margin-bottom: 34px;
  }

  .pd-login-footer {
    margin-top: 32px;
  }

  /* Shell mobil compact; regulile desktop de 250px raman neschimbate. */
  .topbar {
    min-height: 60px;
    z-index: 1050;
  }

  #wrapper.enlarged .topbar .topbar-left,
  #wrapper:not(.enlarged) .topbar .topbar-left,
  .topbar .topbar-left {
    width: 136px !important;
    height: 60px;
  }

  .topbar .topbar-left .logo {
    height: 60px;
  }

  .topbar .topbar-left .logo img,
  .topbar #top_logo {
    display: block !important;
    width: auto;
    max-width: 124px !important;
    max-height: 42px !important;
  }

  #wrapper.enlarged .navbar-custom,
  #wrapper:not(.enlarged) .navbar-custom,
  .topbar .navbar-custom {
    min-height: 60px;
    margin-left: 136px !important;
    padding: 0 6px;
  }

  .navbar-custom .menu-left {
    min-height: 60px;
  }

  .navbar-custom .nav-link {
    height: 60px;
    line-height: 60px;
  }

  .topbar .nav-user {
    max-width: 52px;
    overflow: hidden;
    font-size: 0;
    white-space: nowrap;
  }

  .button-menu-mobile {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 8px 6px 8px 0;
    padding: 0;
    line-height: 44px;
  }

  #wrapper .left.side-menu,
  body.fixed-left #wrapper .left.side-menu,
  body.fixed-left-void #wrapper .left.side-menu {
    position: fixed !important;
    z-index: 1045 !important;
    top: 60px;
    bottom: 0;
    width: 86vw !important;
    max-width: 320px;
    height: auto;
    margin: 0 !important;
    padding-bottom: 0;
    overflow: hidden;
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  /* The legacy slimScroll code writes overflow:hidden inline when the drawer
     opens. Keep the real menu pane as the native touch-scroll container. */
  #wrapper .left.side-menu > .sidebar-inner,
  #wrapper .left.side-menu > .slimScrollDiv,
  #wrapper .left.side-menu > .slimScrollDiv > .sidebar-inner {
    width: 100% !important;
    height: 100% !important;
    min-height: 0;
  }

  #wrapper .left.side-menu > .sidebar-inner,
  #wrapper .left.side-menu > .slimScrollDiv > .sidebar-inner {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  #wrapper .left.side-menu > .slimScrollDiv {
    overflow: hidden !important;
  }

  #wrapper .left.side-menu > .slimScrollDiv > .slimScrollBar,
  #wrapper .left.side-menu > .slimScrollDiv > .slimScrollRail {
    display: none !important;
  }

  #wrapper.enlarged .left.side-menu,
  #wrapper .left.side-menu {
    width: 86vw !important;
    max-width: 320px;
    margin-left: 0 !important;
    transform: translateX(-105%);
    pointer-events: auto;
  }

  body.pd-mobile-menu-open #wrapper .left.side-menu {
    transform: translateX(0);
    pointer-events: auto;
  }

  #sidebar-menu a[href]:not([href=""]):not([href="#"]):not([href^="javascript:"]) {
    cursor: pointer !important;
    pointer-events: auto !important;
  }

  body.pd-mobile-menu-open .pd-mobile-menu-backdrop {
    position: fixed;
    z-index: 1035;
    top: 60px;
    right: 0;
    bottom: 0;
    left: min(86vw, 320px);
    display: block;
    width: auto;
    height: calc(100vh - 60px);
    padding: 0;
    background: rgba(15, 17, 21, 0.48);
    border: 0;
    pointer-events: none !important;
  }

  body.pd-mobile-menu-open #wrapper .left.side-menu .sidebar-inner,
  body.pd-mobile-menu-open #wrapper .left.side-menu #sidebar-menu {
    position: relative;
    z-index: 2;
    pointer-events: auto !important;
  }

  body.pd-mobile-menu-open {
    overflow: hidden;
  }

  #sidebar-menu {
    padding-top: 10px;
  }

  #sidebar-menu > ul > li > a,
  #sidebar-menu ul ul a {
    min-height: 44px;
    line-height: 20px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .content-page,
  #wrapper.enlarged .content-page {
    width: 100%;
    max-width: 100%;
    margin-left: 0 !important;
    overflow: visible;
  }

  .content-page > .content,
  .content-page .content {
    margin-top: 60px !important;
    padding: 16px 12px 24px;
  }

  .page-title-box {
    margin: -16px -12px 16px;
    padding: 16px 14px;
  }

  .page-title-box .page-title {
    font-size: 19px;
  }

  .card-box {
    padding: 14px;
  }

  .content-page .container,
  .content-page .container-fluid,
  .content-page .row,
  .content-page [class*="col-"],
  .modal-dialog,
  .modal-content {
    max-width: 100%;
  }

  .content-page img,
  .content-page iframe,
  .content-page canvas,
  .modal img,
  .modal iframe {
    max-width: 100%;
    height: auto;
  }

  .content-page .form-control,
  .content-page select,
  .content-page textarea,
  .modal .form-control,
  .modal select,
  .modal textarea {
    max-width: 100%;
    font-size: 16px;
  }

  .content-page .btn,
  .modal .btn,
  .dropdown-menu .dropdown-item {
    min-height: 44px;
  }

  /* Listele operationale raman tabele dense, cu derulare tactila pe orizontala. */
  body:not(.pd-login-page) .table-responsive,
  body:not(.pd-login-page) .dataTables_wrapper,
  .modal .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body:not(.pd-login-page) .content-page table:not(.pd-mobile-table-layout):not(.dataTable),
  body:not(.pd-login-page) .wrapper table:not(.pd-mobile-table-layout):not(.dataTable),
  .modal table.table {
    display: block;
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
  }

  .table td,
  .table th {
    min-width: 112px;
    padding: 10px;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .table th:first-child,
  .table td:first-child {
    min-width: 72px;
  }

  .table .cauta_modifica,
  .cauta_modifica {
    width: 40px;
    height: 40px;
  }

  .content-page ul:not(.nav):not(.pagination):not(.list-inline):not(.list-unstyled),
  .content-page ol,
  .modal ul:not(.nav):not(.pagination):not(.list-inline):not(.list-unstyled),
  .modal ol {
    max-width: 100%;
    padding-left: 24px;
  }

  .content-page li,
  .modal li {
    overflow-wrap: anywhere;
  }

  .breadcrumb {
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .pd-login-artwork {
    min-height: 180px;
  }

  .pd-login-artwork-copy {
    display: none;
  }

  .pd-login-panel {
    padding: 30px 18px 26px;
  }

  .pd-login-title {
    font-size: 30px;
  }

  .pd-login-subtitle {
    margin-bottom: 26px;
    font-size: 14px;
  }

  .pd-login-form .form-control,
  .pd-login-submit {
    min-height: 48px;
    height: 48px;
  }

  .notification-list .nav-user img {
    width: 34px;
    height: 34px;
  }

  .topbar .navbar-custom > ul.float-right > .notification-list:not(:last-child),
  #topnav .menu-extras > ul.float-right > .notification-list:not(:last-child) {
    display: none;
  }

  .content-page .form-group.row > [class*="col-"] {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  .content-page .form-group.row > label[class*="col-"] {
    padding-bottom: 6px;
  }

  .modal-dialog {
    width: auto;
    margin: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .topbar,
  .side-menu,
  .footer,
  .breadcrumb,
  .btn,
  .cauta_modifica {
    display: none !important;
  }

  .content-page {
    margin: 0 !important;
  }

  .content-page > .content,
  .content-page .content {
    margin: 0 !important;
    padding: 0 !important;
  }

  .card-box,
  .card,
  .table {
    box-shadow: none !important;
  }
}

/* Ticket - persoane alocate si avataruri */
.pd-team-person {
  display: inline-flex;
  min-width: 190px;
  align-items: center;
  gap: 11px;
}

.pd-team-avatar {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #7b8490;
  background: #eef1f4;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #d9dee4;
  font-size: 20px;
}

.pd-team-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-team-person__name {
  color: #263244;
  font-weight: 600;
  line-height: 1.3;
}

/* Ticket reports - grouped by teams and locations */
.pd-ticket-report {
  max-width: 1500px;
  margin: 0 auto;
}

.pd-report-hero {
  position: relative;
  min-height: 278px;
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid #e2e6ea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(31, 42, 51, 0.08);
}

.pd-report-hero__copy {
  position: relative;
  z-index: 2;
  width: 47%;
  padding: 56px 0 44px 48px;
}

.pd-report-hero__copy h1 {
  margin: 0 0 13px;
  color: #263244;
  font-size: 34px;
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.7px;
}

.pd-report-hero__copy > p {
  max-width: 520px;
  margin: 0;
  color: #66717f;
  font-size: 15px;
  line-height: 1.65;
}

.pd-report-hero__summary {
  display: flex;
  gap: 26px;
  margin-top: 27px;
  color: #687380;
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.45px;
}

.pd-report-hero__summary span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.pd-report-hero__summary strong {
  color: var(--pd-theme-accent, #ab2139);
  font-size: 23px;
  line-height: 1;
  letter-spacing: -0.4px;
}

.pd-report-hero__art {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: 64%;
  height: 100%;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
}

.pd-report-hero::after {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 38%;
  bottom: 0;
  width: 25%;
  content: "";
  background: linear-gradient(90deg, #fff 12%, rgba(255, 255, 255, 0));
  pointer-events: none;
}

.pd-report-filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid #e2e6ea;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(31, 42, 51, 0.055);
}

.pd-report-filter-field {
  width: 180px;
}

.pd-report-filter-field--centre {
  width: 205px;
}

.pd-team-report-fixed-centre {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid #e0e4e8;
  border-radius: 8px;
  color: #5d6873;
  background: #f7f8f9;
  font-size: 12px;
}

.pd-report-filter-field label {
  display: block;
  margin: 0 0 6px;
  color: #56616e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.pd-report-filters .form-control,
.pd-report-filters .btn {
  height: 40px;
  min-height: 40px;
  font-size: 13px;
}

.pd-report-filters .btn-primary {
  border-color: var(--pd-theme-accent, #ab2139);
  background: var(--pd-theme-accent, #ab2139);
}

.pd-location-report-hint {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: -8px 0 18px;
  padding: 10px 14px;
  border: 1px solid #eadfe1;
  border-radius: 8px;
  color: #68727c;
  background: #fffafb;
  font-size: 11px;
  line-height: 1.45;
}

.pd-location-report-hint > i {
  margin-top: 1px;
  color: var(--pd-theme-accent, #ab2139);
  font-size: 14px;
}

.pd-location-report-hint strong {
  color: #4f5b67;
  font-weight: 750;
}

.pd-report-print {
  margin-left: auto;
}

.pd-urgent-report-actions {
  align-items: flex-end;
}

.pd-urgent-report-actions__links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.pd-urgent-fixed-centre {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid #e0e4e8;
  border-radius: 8px;
  color: #5d6873;
  background: #f7f8f9;
  font-size: 12px;
  font-weight: 700;
}

.pd-urgent-fixed-centre i {
  color: var(--pd-theme-accent, #ab2139);
}

.pd-team-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.pd-person-ticket-card {
  overflow: hidden;
  border: 1px solid #dfe4e8;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(31, 42, 51, 0.065);
}

.pd-person-ticket-card--leader {
  border-top: 3px solid var(--pd-theme-accent, #ab2139);
}

.pd-person-ticket-card__header {
  display: flex;
  min-height: 86px;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid #e8ecef;
  background: #fff;
}

.pd-person-ticket-card--leader .pd-person-ticket-card__header {
  padding-top: 14px;
  background: linear-gradient(90deg, #fff 0%, #fff 72%, #fbf4f5 100%);
}

.pd-report-avatar {
  display: inline-flex;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #7a8490;
  background: #edf0f3;
  box-shadow: 0 0 0 1px #d9dee3;
  font-size: 25px;
}

.pd-person-ticket-card--leader .pd-report-avatar {
  box-shadow: 0 0 0 2px var(--pd-theme-accent, #ab2139);
}

.pd-report-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-person-ticket-card__identity {
  min-width: 0;
  flex: 1 1 auto;
}

.pd-person-ticket-card__name {
  overflow: hidden;
  color: #263244;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-person-ticket-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: #77818c;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.pd-person-ticket-card__meta .zmdi-star {
  color: var(--pd-theme-accent, #ab2139);
}

.pd-person-ticket-card__count,
.pd-location-ticket-group__count {
  display: inline-flex;
  min-width: 34px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid #e0e4e8;
  border-radius: 8px;
  color: #4e5965;
  background: #f7f8f9;
  font-size: 12px;
  font-weight: 750;
}

.pd-person-ticket-card__tickets {
  padding: 0 18px;
}

.pd-person-ticket-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 2px;
  border-bottom: 1px solid #edf0f2;
  color: inherit;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.pd-person-ticket-row:last-child {
  border-bottom: 0;
}

.pd-person-ticket-row:hover,
.pd-person-ticket-row:focus {
  color: inherit;
  background: #fbf7f8;
  transform: translateX(2px);
}

.pd-person-ticket-row__date {
  display: flex;
  width: 90px;
  flex: 0 0 90px;
  flex-direction: column;
  color: #697581;
  font-size: 11px;
  line-height: 1.45;
}

.pd-person-ticket-row__date strong {
  color: var(--pd-theme-accent, #ab2139);
  font-size: 12px;
  font-weight: 750;
}

.pd-person-ticket-row__date small {
  margin-top: 2px;
  color: #394653;
  font-weight: 700;
}

.pd-person-ticket-row__content {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}

.pd-person-ticket-row__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #263244;
  font-size: 13px;
  line-height: 1.3;
}

.pd-person-ticket-row__topline em {
  overflow: hidden;
  color: #7a8490;
  font-size: 10px;
  font-style: normal;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-person-ticket-row__description,
.pd-location-ticket-description {
  display: -webkit-box;
  margin-top: 5px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #4f5b67;
  font-size: 12px;
  line-height: 1.45;
}

.pd-person-ticket-row__context {
  display: block;
  margin-top: 7px;
  color: #89929b;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.pd-person-ticket-row__context i:not(:first-child) {
  margin-left: 10px;
}

.pd-person-ticket-row__arrow {
  color: #b2bac2;
  font-size: 20px;
}

.pd-location-report-list {
  display: block;
}

.pd-location-map-shell {
  overflow: hidden;
  margin: 0 0 22px;
  border: 1px solid #dfe4e8;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(31, 42, 51, 0.06);
}

.pd-location-map-heading {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid #e6eaed;
  background: linear-gradient(90deg, #fff 0%, #fff 72%, #f7f8f9 100%);
}

.pd-location-map-heading > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.pd-location-map-heading__icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: var(--pd-theme-accent, #ab2139);
  background: #f8edef;
  font-size: 17px;
}

.pd-location-map-heading h2 {
  margin: 0;
  color: #263244;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.3;
}

.pd-location-map-heading p {
  margin: 3px 0 0;
  color: #7b858f;
  font-size: 11px;
  line-height: 1.4;
}

.pd-location-map-heading__legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #7b858f;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.pd-location-map-heading__legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pd-theme-accent, #ab2139);
  box-shadow: 0 0 0 4px #f8edef;
}

.pd-location-map {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: #eef1f3;
}

.pd-location-map__loading,
.pd-location-map__fallback {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #7b858f;
  font-size: 12px;
  transform: translate(-50%, -50%);
}

.pd-location-map__loading i {
  color: var(--pd-theme-accent, #ab2139);
}

.pd-location-map__fallback {
  display: none;
  width: min(380px, calc(100% - 40px));
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px;
  border: 1px solid #e2e6ea;
  border-radius: 9px;
  background: rgba(255, 255, 255, .94);
  text-align: center;
  box-shadow: 0 5px 18px rgba(31, 42, 51, .08);
}

.pd-location-map.is-ready .pd-location-map__loading,
.pd-location-map.is-unavailable .pd-location-map__loading {
  display: none;
}

.pd-location-map.is-unavailable .pd-location-map__fallback {
  display: flex;
}

.pd-location-map-info {
  display: flex;
  min-width: 180px;
  flex-direction: column;
  gap: 5px;
  padding: 2px;
  color: #4f5b67;
  font-size: 11px;
}

.pd-location-map-info strong {
  color: #263244;
  font-size: 14px;
}

.pd-location-map-info span {
  color: #7b858f;
}

.pd-location-map-info em {
  color: var(--pd-theme-accent, #ab2139);
  font-style: normal;
  font-weight: 750;
}

.pd-location-map-info a {
  color: var(--pd-theme-accent, #ab2139);
  font-weight: 700;
}

.pd-location-map-badge {
  position: absolute;
  z-index: 2;
  display: flex;
  width: 56px;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 6px 4px;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--pd-theme-accent, #ab2139);
  box-shadow: 0 4px 12px rgba(50, 24, 30, .28), 0 0 0 1px rgba(171, 33, 57, .28);
  cursor: pointer;
  font-family: inherit;
  transform: translateZ(0);
  transition: transform .16s ease, background-color .16s ease;
}

.pd-location-map-badge:hover,
.pd-location-map-badge:focus {
  background: #8f1930;
  outline: 0;
  transform: scale(1.08);
}

.pd-location-map-badge strong {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.pd-location-map-badge span {
  max-width: 48px;
  margin-top: 3px;
  overflow: hidden;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-location-map,
.pd-location-map.leaflet-container {
  width: 100%;
  height: 430px;
}

.pd-location-map .leaflet-container,
.pd-location-map.leaflet-container {
  min-height: 430px;
  width: 100%;
  font-family: inherit;
  background: #e8eef0;
}

.pd-location-map .leaflet-control-attribution {
  color: #66727c;
  font-size: 10px;
}

.pd-location-map .leaflet-control-attribution a {
  color: #4f5f6d;
}

.pd-location-leaflet-marker {
  display: flex;
  width: 48px !important;
  height: 48px !important;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--pd-theme-accent, #ab2139);
  box-shadow: 0 4px 12px rgba(50, 24, 30, .28), 0 0 0 1px rgba(171, 33, 57, .28);
}

.pd-location-leaflet-marker span {
  display: block;
  min-width: 22px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
}

.pd-location-report-card {
  overflow: hidden;
  border: 1px solid #dfe4e8;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(31, 42, 51, 0.06);
}

.pd-location-ticket-group {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.pd-location-ticket-group + .pd-location-ticket-group {
  border-top: 6px solid #eef1f3;
}

.pd-location-ticket-group__header {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid #e6eaed;
  background: linear-gradient(90deg, #fff 0%, #fff 72%, #f7f8f9 100%);
}

.pd-location-ticket-group__icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: var(--pd-theme-accent, #ab2139);
  background: #f8edef;
  font-size: 20px;
}

.pd-location-ticket-group__header > div {
  min-width: 0;
  flex: 1 1 auto;
}

.pd-location-ticket-group__header h2 {
  margin: 0;
  color: #263244;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.35;
}

.pd-location-ticket-group__header p {
  margin: 4px 0 0;
  color: #7b858f;
  font-size: 12px;
  line-height: 1.4;
}

.pd-location-ticket-group__table-wrap {
  overflow-x: auto;
}

.pd-location-ticket-table {
  display: table !important;
  min-width: 1000px;
  margin: 0;
}

.pd-location-ticket-table th {
  border-top: 0 !important;
  border-bottom: 1px solid #e4e8eb !important;
  color: #7a858f;
  background: #fafbfc;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.45px;
}

.pd-location-ticket-table td {
  vertical-align: middle;
  color: #4d5965;
  font-size: 12px;
}

.pd-location-ticket-table th:first-child,
.pd-location-ticket-table td:first-child {
  width: 120px;
}

.pd-location-ticket-table th:nth-child(2) {
  width: 36%;
}

.pd-location-ticket-table th:nth-child(4) {
  width: 23%;
}

.pd-location-ticket-table th:last-child,
.pd-location-ticket-table td:last-child {
  width: 46px;
  min-width: 46px;
  text-align: center;
}

.pd-ticket-number {
  display: block;
  color: var(--pd-theme-accent, #ab2139);
  font-size: 14px;
  font-weight: 800;
}

.pd-ticket-status-text,
.pd-ticket-time {
  display: block;
  margin-top: 4px;
  color: #89929a;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
}

.pd-location-ticket-table td > strong {
  color: #34414d;
  font-size: 12px;
}

.pd-location-ticket-team {
  display: inline-flex;
  max-width: 260px;
  align-items: flex-start;
  gap: 6px;
  color: #4f5b67;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}

.pd-location-ticket-team > i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--pd-theme-accent, #ab2139);
}

.pd-location-ticket-team__empty {
  color: #a0a8af;
  font-style: italic;
  font-weight: 600;
}

.pd-ticket-open {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dfe4e8;
  border-radius: 7px;
  color: #69747f;
  background: #fff;
  font-size: 19px;
}

.pd-ticket-open:hover,
.pd-ticket-open:focus {
  border-color: var(--pd-theme-accent, #ab2139);
  color: #fff;
  background: var(--pd-theme-accent, #ab2139);
}

.pd-report-empty {
  padding: 64px 24px;
  border: 1px dashed #d7dde2;
  border-radius: 11px;
  color: #7d8791;
  background: #fff;
  text-align: center;
}

.pd-report-empty > i {
  color: #c0c6cc;
  font-size: 38px;
}

.pd-report-empty h2 {
  margin: 16px 0 7px;
  color: #3c4854;
  font-size: 18px;
}

.pd-report-empty p {
  margin: 0;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .pd-report-hero__copy {
    width: 55%;
    padding-left: 34px;
  }

  .pd-report-hero__art {
    width: 58%;
    object-position: 58% center;
  }

  .pd-report-hero::after {
    right: 33%;
  }

  .pd-team-report-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .pd-report-hero {
    min-height: 390px;
  }

  .pd-report-hero__copy {
    width: 100%;
    padding: 28px 24px 0;
  }

  .pd-report-hero__copy h1 {
    font-size: 28px;
  }

  .pd-report-hero__art {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 58%;
    object-position: 66% center;
  }

  .pd-report-hero::after {
    top: 38%;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 18%;
    background: linear-gradient(180deg, #fff 8%, rgba(255, 255, 255, 0));
  }

  .pd-report-hero__summary {
    margin-top: 18px;
  }

  .pd-report-filters {
    flex-wrap: wrap;
  }

  .pd-report-filter-field {
    width: calc(50% - 6px);
  }

  .pd-report-filters .btn {
    flex: 1 1 auto;
  }

  .pd-urgent-report-actions__links {
    width: 100%;
    margin-left: 0;
  }

  .pd-urgent-report-actions__links .btn {
    flex: 1 1 0;
  }

  .pd-report-print {
    margin-left: 0;
  }

  .pd-person-ticket-card__header,
  .pd-location-ticket-group__header {
    padding-right: 14px;
    padding-left: 14px;
  }

  .pd-location-map-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .pd-location-map-heading__legend {
    margin-left: 50px;
  }

  .pd-location-map {
    min-height: 340px;
  }

  .pd-person-ticket-card__tickets {
    padding: 0 13px;
  }
}

@media (max-width: 480px) {
  .pd-report-hero {
    min-height: 410px;
  }

  .pd-report-hero__copy {
    padding: 24px 20px 0;
  }

  .pd-report-hero__copy > p {
    font-size: 13px;
  }

  .pd-report-hero__summary {
    gap: 16px;
  }

  .pd-report-filter-field {
    width: 100%;
  }

  .pd-report-filters .btn {
    width: 100%;
  }

  .pd-location-map {
    min-height: 300px;
  }

  .pd-urgent-report-actions__links {
    flex-direction: column;
  }

  .pd-urgent-report-actions__links .btn {
    width: 100%;
  }

  .pd-person-ticket-card__meta {
    flex-wrap: wrap;
  }

  .pd-person-ticket-row {
    align-items: flex-start;
    gap: 10px;
  }

  .pd-person-ticket-row__date {
    width: 76px;
    flex-basis: 76px;
  }

  .pd-person-ticket-row__topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .pd-person-ticket-row__arrow {
    display: none;
  }
}

@media print {
  .pd-report-filters {
    display: none !important;
  }

  .pd-report-hero {
    min-height: auto;
    border: 0;
    box-shadow: none;
  }

  .pd-report-hero__copy {
    width: 100%;
    padding: 0 0 20px;
  }

  .pd-report-hero__art,
  .pd-report-hero::after {
    display: none;
  }

  .pd-team-report-grid {
    display: block;
  }

  .pd-person-ticket-card,
  .pd-location-report-card {
    margin-bottom: 16px;
    break-inside: avoid;
    box-shadow: none;
  }
}
