/* IT Helpdesk V15 — Reusable enterprise components */

/* Typography and utilities */
.text-muted { color: var(--ui-text-muted) !important; }
.text-secondary { color: var(--ui-text-soft) !important; }
.text-center { text-align: center; }
.text-xs { font-size: 11px; }
.text-sm { font-size: 12.5px; }
.fw-bold { font-weight: 750; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 14px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.fade-in { animation: ui-fade-in .25s var(--ui-ease) both; }
@keyframes ui-fade-in { from { opacity: 0; transform: translateY(5px); } }

/* Cards */
.card,
.v15-card {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  color: var(--ui-text);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-xs);
}
.card { padding: 18px; }
.card:hover { border-color: #d8e0e9; }
.card-header,
.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.card-title { margin: 0; color: var(--ui-text-strong); font-family: "Space Grotesk", sans-serif; font-size: 15px; font-weight: 700; letter-spacing: -.015em; }
.card-title i { margin-right: 7px; color: var(--ui-brand); }
.card-subtitle { margin: 3px 0 0; color: var(--ui-text-muted); font-size: 11.5px; }
.ui-card-flush { padding: 0; overflow: hidden; }
.section-title { margin: 0 0 14px; color: var(--ui-text-strong); font-family: "Space Grotesk", sans-serif; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }

/* Grid */
.grid-2, .grid-3, .stats-grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Buttons */
.btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: var(--ui-radius-sm);
  font-size: 12px;
  font-weight: 720;
  line-height: 1;
  letter-spacing: .005em;
  cursor: pointer;
  transition: color var(--ui-transition), background var(--ui-transition), border-color var(--ui-transition), box-shadow var(--ui-transition), transform var(--ui-transition);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn i { font-size: 12px; }
.btn-primary { color: #fff; background: var(--ui-brand); border-color: var(--ui-brand); box-shadow: 0 7px 16px rgba(229,85,47,.17); }
.btn-primary:hover { color: #fff; background: var(--ui-brand-hover); border-color: var(--ui-brand-hover); box-shadow: 0 9px 20px rgba(229,85,47,.22); }
.btn-secondary { color: var(--ui-text-soft); background: #fff; border-color: var(--ui-border); box-shadow: var(--ui-shadow-xs); }
.btn-secondary:hover { color: var(--ui-text-strong); border-color: var(--ui-border-strong); background: var(--ui-surface-muted); }
.btn-ghost { color: var(--ui-text-soft); background: transparent; border-color: transparent; }
.btn-ghost:hover { color: var(--ui-brand); background: var(--ui-brand-soft); }
.btn-danger { color: #fff; background: var(--ui-danger); border-color: var(--ui-danger); }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }
.btn-success { color: #fff; background: var(--ui-success); border-color: var(--ui-success); }
.btn-warning { color: #fff; background: var(--ui-warning); border-color: var(--ui-warning); }
.btn-sm { min-height: 34px; padding: 7px 11px; font-size: 11px; }
.btn-xs { min-height: 29px; padding: 5px 8px; font-size: 10px; }
.btn-full { width: 100%; }
.ui-icon-button { min-width: 38px; min-height: 38px; padding: 0; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label,
.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ui-text-soft);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: .01em;
}
.form-group label .required { color: var(--ui-danger); }
.form-control,
.control {
  width: 100%;
  min-height: var(--ui-control-h);
  padding: 10px 13px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  outline: none;
  color: var(--ui-text);
  background: #fff;
  font-size: 12.5px;
  transition: border-color var(--ui-transition), box-shadow var(--ui-transition), background var(--ui-transition);
}
.form-control:hover,
.control:hover { border-color: var(--ui-border-strong); }
.form-control:focus,
.control:focus { border-color: var(--ui-brand); box-shadow: var(--ui-focus); }
.form-control::placeholder,
.control::placeholder { color: #a1acba; }
.form-control:disabled,
.form-control[readonly],
.control:disabled,
.control.readonly { color: var(--ui-text-muted); background: #f4f7fa; }
select.form-control,
select.control {
  padding-right: 38px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
textarea.form-control,
textarea.control { min-height: 96px; resize: vertical; line-height: 1.55; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ui-brand); }
.pw-input-wrap { position: relative; }
.pw-input-wrap .form-control { padding-right: 46px; }
.pw-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: var(--ui-text-muted);
  background: transparent;
  cursor: pointer;
}
.pw-toggle:hover { color: var(--ui-brand); background: var(--ui-brand-soft); }
.form-help { margin-top: 6px; color: var(--ui-text-muted); font-size: 10.5px; }

/* Filters and search */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  background: #fff;
  box-shadow: var(--ui-shadow-xs);
}
.filter-bar .form-control { width: auto; min-width: 150px; }
.search-input { position: relative; min-width: 240px; flex: 1 1 260px; }
.search-input > i { position: absolute; top: 50%; left: 13px; z-index: 1; color: var(--ui-text-muted); transform: translateY(-50%); pointer-events: none; }
.search-input .form-control { width: 100%; padding-left: 38px; }

/* Tables */
.table-wrapper {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  background: #fff;
  box-shadow: var(--ui-shadow-xs);
}
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.data-table th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--ui-border);
  color: var(--ui-text-muted);
  background: #f8fafc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .045em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.data-table td { padding: 13px 14px; border-bottom: 1px solid var(--ui-divider); color: var(--ui-text-soft); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background var(--ui-transition); }
.data-table tbody tr:hover { background: #fbfcfe; }
.data-table strong, .data-table b { color: var(--ui-text-strong); }
.data-table caption { padding: 12px 14px; color: var(--ui-text-soft); font-weight: 700; text-align: left; }
.ui-state-cell { padding: 42px 16px !important; color: var(--ui-text-muted) !important; text-align: center !important; }

/* Badges */
.badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: var(--ui-radius-pill);
  color: var(--ui-text-soft);
  background: #f1f5f9;
  font-size: 10px;
  font-weight: 780;
  line-height: 1;
  white-space: nowrap;
}
.badge-open, .badge-info { color: #1d4ed8; background: #eff6ff; border-color: #dbeafe; }
.badge-in_progress, .badge-progress { color: #0369a1; background: #ecfeff; border-color: #cffafe; }
.badge-resolved, .badge-closed, .badge-success { color: #047857; background: #ecfdf5; border-color: #d1fae5; }
.badge-pending, .badge-warning, .badge-waiting_order, .badge-waiting_vendor { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.badge-critical, .badge-danger { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }

/* Status / statistics cards */
.stats-grid { margin-bottom: 18px; }
.stat-card {
  position: relative;
  min-height: 126px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  background: #fff;
  box-shadow: var(--ui-shadow-xs);
  transition: border-color var(--ui-transition), box-shadow var(--ui-transition), transform var(--ui-transition);
}
.stat-card:hover { border-color: #d7dfe8; box-shadow: var(--ui-shadow-sm); transform: translateY(-2px); }
.stat-card .stat-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: var(--ui-info);
  background: var(--ui-info-soft);
  font-size: 15px;
}
.stat-card .stat-value { margin-top: 14px; color: var(--ui-text-strong); font-family: "Space Grotesk", sans-serif; font-size: 27px; font-weight: 750; line-height: 1; letter-spacing: -.035em; }
.stat-card .stat-label { margin-top: 7px; color: var(--ui-text-muted); font-size: 10.5px; font-weight: 650; }
.stat-glow { display: none; }
.stat-card.success .stat-icon { color: var(--ui-success); background: var(--ui-success-soft); }
.stat-card.warning .stat-icon { color: var(--ui-warning); background: var(--ui-warning-soft); }
.stat-card.danger .stat-icon { color: var(--ui-danger); background: var(--ui-danger-soft); }

/* Tabs */
.tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--ui-border);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--ui-shadow-xs);
}
.tab-btn {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  border: 0;
  border-radius: 9px;
  color: var(--ui-text-muted);
  background: transparent;
  font-size: 11px;
  font-weight: 720;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--ui-transition), background var(--ui-transition), box-shadow var(--ui-transition);
}
.tab-btn:hover { color: var(--ui-text-strong); background: var(--ui-surface-muted); }
.tab-btn.active { color: var(--ui-text-strong); background: #fff; box-shadow: 0 3px 10px rgba(15,23,42,.08), inset 0 0 0 1px var(--ui-border); }
.tab-btn.active::after { content: ""; width: 5px; height: 5px; margin-left: 2px; border-radius: 50%; background: var(--ui-brand); }

/* Alerts */
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border: 1px solid var(--ui-border); border-radius: var(--ui-radius-md); color: var(--ui-text-soft); background: #fff; font-size: 12px; }
.alert-warning { border-color: #fde68a; color: #92400e; background: var(--ui-warning-soft); }
.alert-danger { border-color: #fecaca; color: #991b1b; background: var(--ui-danger-soft); }
.alert-success { border-color: #bbf7d0; color: #065f46; background: var(--ui-success-soft); }

/* Empty / loading states */
.empty-state,
.ui-page-state { display: grid; min-height: 240px; place-items: center; padding: 36px 20px; color: var(--ui-text-muted); text-align: center; }
.empty-state i { display: grid; width: 52px; height: 52px; margin: 0 auto 12px; place-items: center; border-radius: 16px; color: var(--ui-text-muted); background: #f1f5f9; font-size: 18px; }
.empty-state p { margin: 0; }
.ui-page-state__panel { display: grid; width: min(100%, 520px); justify-items: center; gap: 12px; padding: 28px; border: 1px solid var(--ui-border); border-radius: var(--ui-radius-xl); background: #fff; box-shadow: var(--ui-shadow-sm); }
.ui-page-state__icon { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 16px; color: var(--ui-brand); background: var(--ui-brand-soft); font-size: 18px; }
.ui-page-state h2 { margin: 0; font-size: 17px; }
.ui-page-state p { max-width: 420px; margin: 0; color: var(--ui-text-soft); font-size: 12px; }
.ui-page-state__actions { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; justify-content: center; }
.ui-skeleton { width: 100%; height: 11px; overflow: hidden; border-radius: 999px; background: #edf1f5; }
.ui-skeleton::after { content: ""; display: block; width: 42%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent); animation: ui-shimmer 1.1s linear infinite; }
.ui-skeleton:nth-child(2) { width: 82%; }
.ui-skeleton:nth-child(3) { width: 66%; }
@keyframes ui-shimmer { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
.loading { color: var(--ui-text-muted); }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  background: rgba(15, 23, 42, .56);
  backdrop-filter: blur(8px);
  transition: opacity var(--ui-transition), visibility var(--ui-transition);
}
.modal-overlay.show,
.modal-overlay[aria-hidden="false"] { visibility: visible; opacity: 1; }
.modal-overlay[aria-hidden="true"] { pointer-events: none; }
.modal-overlay[aria-hidden="false"] { pointer-events: auto; }
.modal {
  width: min(100%, 620px);
  max-height: min(88vh, 900px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--ui-shadow-lg);
  transform: translateY(14px) scale(.985);
  transition: transform 210ms var(--ui-ease);
}
.modal-overlay.show .modal,
.modal-overlay[aria-hidden="false"] .modal { transform: translateY(0) scale(1); }
.modal-lg { width: min(100%, 860px); }
.modal-xl { width: min(100%, 1140px); }
.modal-header {
  display: flex;
  min-height: 68px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--ui-divider);
  background: #fff;
}
.modal-header h1,
.modal-header h2,
.modal-header h3 { margin: 0; color: var(--ui-text-strong); font-family: "Space Grotesk", sans-serif; font-size: 17px; font-weight: 720; letter-spacing: -.02em; }
.modal-header h3 i { margin-right: 8px; color: var(--ui-brand); }
.modal-header p { margin: 4px 0 0; color: var(--ui-text-muted); font-size: 11px; }
.modal-close {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 1px solid var(--ui-border);
  border-radius: 11px;
  color: var(--ui-text-muted);
  background: #fff;
  cursor: pointer;
  transition: color var(--ui-transition), border-color var(--ui-transition), background var(--ui-transition);
}
.modal-close:hover { color: var(--ui-danger); border-color: #fecaca; background: var(--ui-danger-soft); }
.modal-body { max-height: calc(min(88vh, 900px) - 136px); padding: 20px; overflow: auto; }
.modal-footer,
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 14px 20px; border-top: 1px solid var(--ui-divider); background: #fbfcfe; }
.modal-footer .btn { min-width: 96px; }

/* Toasts */
.toast-container {
  position: fixed;
  top: 86px;
  right: 18px;
  z-index: 2600;
  display: grid;
  width: min(390px, calc(100vw - 36px));
  gap: 10px;
  pointer-events: none;
}
.toast {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 28px;
  align-items: start;
  gap: 10px;
  overflow: hidden;
  padding: 13px;
  border: 1px solid var(--ui-border);
  border-radius: 15px;
  background: rgba(255,255,255,.97);
  box-shadow: var(--ui-shadow-md);
  pointer-events: auto;
  animation: ui-toast-in .24s var(--ui-ease) both;
}
.toast::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--toast-color, var(--ui-info)); transform-origin: left; animation: ui-toast-life 4s linear both; }
.toast.removing { animation: ui-toast-out .22s var(--ui-ease) both; }
@keyframes ui-toast-in { from { opacity: 0; transform: translateX(16px) scale(.98); } }
@keyframes ui-toast-out { to { opacity: 0; transform: translateX(18px) scale(.98); } }
@keyframes ui-toast-life { to { transform: scaleX(0); } }
.toast-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: var(--toast-color, var(--ui-info)); background: var(--toast-soft, var(--ui-info-soft)); font-size: 15px; }
.toast-content { min-width: 0; padding-top: 1px; }
.toast-title { color: var(--ui-text-strong); font-size: 12px; font-weight: 780; }
.toast-message { margin-top: 3px; color: var(--ui-text-soft); font-size: 11px; line-height: 1.45; }
.toast-close { display: grid; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 8px; color: var(--ui-text-muted); background: transparent; cursor: pointer; }
.toast-close:hover { color: var(--ui-text-strong); background: #f1f5f9; }
.toast-success { --toast-color: var(--ui-success); --toast-soft: var(--ui-success-soft); }
.toast-error { --toast-color: var(--ui-danger); --toast-soft: var(--ui-danger-soft); }
.toast-warning { --toast-color: var(--ui-warning); --toast-soft: var(--ui-warning-soft); }
.toast-info { --toast-color: var(--ui-info); --toast-soft: var(--ui-info-soft); }

/* Floating notification / reminder popups */
.notif-popup,
.reminder-toast {
  position: fixed;
  top: 86px;
  right: 18px;
  z-index: 2500;
  width: min(390px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: var(--ui-shadow-lg);
  animation: ui-toast-in .26s var(--ui-ease) both;
}
.notif-popup.hiding,
.reminder-toast.hiding { animation: ui-toast-out .22s var(--ui-ease) both; }
.np-alert-ribbon { display: flex; align-items: center; gap: 7px; padding: 8px 14px; color: #9a3412; background: #fff7ed; border-bottom: 1px solid #fed7aa; font-size: 9px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.np-alert-ribbon.warning { color: #92400e; background: #fffbeb; border-bottom-color: #fde68a; }
.np-header, .rt-header { display: flex; align-items: center; gap: 11px; padding: 14px 15px 8px; }
.np-icon, .rt-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 13px; color: var(--ui-brand); background: var(--ui-brand-soft); }
.np-title, .rt-title { color: var(--ui-text-strong); font-size: 13px; font-weight: 780; }
.np-time, .rt-time { margin-top: 2px; color: var(--ui-text-muted); font-size: 10px; }
.np-body, .rt-body { padding: 7px 15px 15px; color: var(--ui-text-soft); font-size: 11.5px; line-height: 1.55; }
.np-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 15px; border-top: 1px solid var(--ui-divider); background: #fbfcfe; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 14px; }
.pagination button { display: grid; min-width: 34px; height: 34px; place-items: center; border: 1px solid var(--ui-border); border-radius: 9px; color: var(--ui-text-soft); background: #fff; cursor: pointer; }
.pagination button:hover, .pagination button.active { color: #fff; border-color: var(--ui-brand); background: var(--ui-brand); }

/* Timeline */
.timeline { position: relative; display: grid; gap: 12px; }
.timeline::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: 6px; width: 1px; background: var(--ui-border); }
.timeline-item { position: relative; padding-left: 24px; }
.timeline-item::before { content: ""; position: absolute; top: 6px; left: 2px; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: var(--ui-brand); box-shadow: 0 0 0 1px var(--ui-border); }
.tl-time { color: var(--ui-text-muted); font-size: 10px; }
.tl-status { color: var(--ui-text-strong); font-size: 12px; font-weight: 730; }
.tl-by, .tl-note { color: var(--ui-text-soft); font-size: 11px; }

/* Tags and progress */
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { display: inline-flex; align-items: center; gap: 6px; min-height: 29px; padding: 5px 9px; border: 1px solid var(--ui-border); border-radius: 9px; color: var(--ui-text-soft); background: #f8fafc; font-size: 10.5px; }
.tag-remove { color: var(--ui-text-muted); cursor: pointer; }
.tag-remove:hover { color: var(--ui-danger); }
.progress-bar { width: 100%; height: 7px; overflow: hidden; border-radius: 999px; background: #edf1f5; }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ui-brand), #ff9a76); transition: width .35s var(--ui-ease); }

/* Notification center */
.nc-head p { margin: 4px 0 0; color: var(--ui-text-muted); font-size: 11px; }
.nc-modal-body { padding-top: 16px; }
.nc-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.nc-summary > div { padding: 12px; border: 1px solid var(--ui-border); border-radius: 12px; background: #f8fafc; }
.nc-summary span { display: block; color: var(--ui-text-muted); font-size: 9.5px; text-transform: uppercase; letter-spacing: .04em; }
.nc-summary b { display: block; margin-top: 5px; color: var(--ui-text-strong); font-size: 20px; }
.nc-filters { display: flex; gap: 7px; margin-bottom: 12px; overflow-x: auto; padding-bottom: 2px; }
.nc-filter { min-height: 32px; padding: 6px 10px; border: 1px solid var(--ui-border); border-radius: 999px; color: var(--ui-text-soft); background: #fff; font-size: 10px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.nc-filter.active { color: #fff; border-color: var(--ui-navy); background: var(--ui-navy); }
.nc-list { display: grid; gap: 8px; }
.nc-item { display: grid; grid-template-columns: 38px minmax(0,1fr) 32px; align-items: start; gap: 10px; padding: 11px; border: 1px solid var(--ui-border); border-radius: 13px; background: #fff; cursor: pointer; }
.nc-item:hover { border-color: var(--ui-border-strong); background: #fbfcfe; }
.nc-item.is-unread { border-left: 3px solid var(--ui-brand); }
.nc-item-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: var(--ui-info); background: var(--ui-info-soft); }
.nc-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nc-item-top b { color: var(--ui-text-strong); font-size: 11px; }
.nc-item-top span { color: var(--ui-text-muted); font-size: 9px; }
.nc-item p { margin: 4px 0 0; color: var(--ui-text-soft); font-size: 10.5px; line-height: 1.4; }
.nc-item-delete { display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 9px; color: var(--ui-text-muted); background: transparent; cursor: pointer; }
.nc-item-delete:hover { color: var(--ui-danger); background: var(--ui-danger-soft); }

/* Asset detail and compact key/value rows */
.asset-detail-row, .mai-row { display: grid; grid-template-columns: minmax(120px, .7fr) minmax(0, 1.3fr); gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--ui-divider); }
.asset-detail-row:last-child, .mai-row:last-child { border-bottom: 0; }
.adr-label, .mai-label { color: var(--ui-text-muted); font-size: 10.5px; font-weight: 650; }
.adr-value, .mai-val { color: var(--ui-text-strong); font-size: 12px; font-weight: 650; word-break: break-word; }

/* Basic checklist cards */
.checklist-header-card { margin-bottom: 16px; padding: 22px; border: 1px solid var(--ui-border); border-radius: var(--ui-radius-xl); background: linear-gradient(145deg, #fff, #fff8f5); box-shadow: var(--ui-shadow-xs); text-align: center; }
.checklist-header-card .ch-icon { display: grid; width: 52px; height: 52px; margin: 0 auto 10px; place-items: center; border-radius: 15px; color: #fff; background: var(--ui-brand); box-shadow: 0 12px 22px rgba(229,85,47,.20); }
.checklist-header-card h3 { margin: 0; color: var(--ui-text-strong); font-family: "Space Grotesk", sans-serif; }
.checklist-header-card .ch-date { margin-top: 4px; color: var(--ui-text-muted); font-size: 11px; }
.checklist-progress { height: 8px; margin-top: 14px; overflow: hidden; border-radius: 999px; background: #edf1f5; }
.cp-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ui-brand), #ff9a76); }
.cp-text { margin-top: 6px; color: var(--ui-text-muted); font-size: 10px; text-align: right; }
.cl-item { margin-bottom: 9px; padding: 13px; border: 1px solid var(--ui-border); border-radius: 13px; background: #fff; box-shadow: var(--ui-shadow-xs); }
.cl-item.cl-done { border-color: #bbf7d0; background: #fbfffd; }
.cl-top { display: flex; align-items: center; gap: 10px; }
.cl-checkbox { display: grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; border: 1.5px solid var(--ui-border-strong); border-radius: 8px; color: #fff; background: #fff; cursor: pointer; }
.cl-done .cl-checkbox { border-color: var(--ui-success); background: var(--ui-success); }
.cl-name { min-width: 0; flex: 1; color: var(--ui-text-strong); font-size: 12px; font-weight: 720; }
.cl-time { color: var(--ui-text-muted); font-size: 10px; }
.cl-actions, .cl-photos { display: flex; gap: 7px; margin-top: 9px; flex-wrap: wrap; }
.cl-photo-thumb { position: relative; width: 74px; height: 74px; overflow: hidden; border: 1px solid var(--ui-border); border-radius: 11px; }
.cl-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cl-photo-remove { position: absolute; top: 4px; right: 4px; display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; color: #fff; background: var(--ui-danger); }
.cl-note-text { margin-top: 8px; padding: 9px 10px; border-radius: 10px; color: var(--ui-text-soft); background: #f8fafc; font-size: 11px; }

.net-secret-mask { color: var(--ui-text-muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em; }
.form-help { display: flex; align-items: flex-start; gap: 6px; line-height: 1.45; }
.form-help i { margin-top: 2px; color: var(--ui-success); }


/* V15.2 profile identity and secure checklist share */
.v15-welcome-wrap{display:flex;align-items:center;gap:15px;min-width:0}
.v15-dashboard-avatar{position:relative;width:66px;height:66px;border:0;border-radius:20px;padding:0;overflow:hidden;flex:0 0 auto;background:linear-gradient(135deg,#fde7d7,#ffe8b8);box-shadow:0 12px 28px rgba(31,41,55,.12);cursor:pointer;color:#182230;font-family:inherit;font-size:22px;font-weight:800}
.v15-dashboard-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.v15-dashboard-avatar>span{width:100%;height:100%;display:grid;place-items:center}
.v15-dashboard-avatar>i{position:absolute;right:5px;bottom:5px;width:20px;height:20px;border-radius:7px;background:rgba(17,24,39,.78);color:#fff;display:grid;place-items:center;font-size:8px;opacity:0;transform:translateY(3px);transition:.18s ease}
.v15-dashboard-avatar:hover>i{opacity:1;transform:none}
.v15-profile-role{color:var(--text-primary);font-weight:700}
.sidebar .avatar.has-photo{padding:0;overflow:hidden;background:transparent}
.sidebar .avatar img{width:100%;height:100%;object-fit:cover;display:block}
.v15-share-banner{display:flex;align-items:flex-start;gap:12px;padding:13px 14px;margin-bottom:16px;border:1px solid rgba(14,159,110,.18);background:#eefaf5;border-radius:15px;color:#087a54}
.v15-share-banner>i{width:34px;height:34px;border-radius:11px;background:#fff;display:grid;place-items:center;flex:0 0 auto}
.v15-share-banner b,.v15-share-banner span{display:block}
.v15-share-banner b{font-size:12px}.v15-share-banner span{font-size:10px;line-height:1.45;margin-top:2px}
.v15-share-link{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.v15-share-link input{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10.5px}
.v15-share-note{display:flex;gap:9px;align-items:flex-start;padding:11px 12px;border:1px solid var(--border-light);border-radius:13px;background:var(--bg-secondary);font-size:10.5px;color:var(--text-secondary);line-height:1.5}
.v15-share-note i{color:var(--accent);margin-top:2px}
@media(max-width:760px){.v15-welcome-wrap{align-items:flex-start}.v15-dashboard-avatar{width:54px;height:54px;border-radius:17px}.v15-share-link{grid-template-columns:1fr}.v15-share-link .btn{width:100%}}

/* ==================== V15.2 PERMANENT CHECKLIST LOCATION LINKS ==================== */
.v152-location-link-list{display:grid;gap:14px;margin-top:16px}
.v152-location-link-card{display:grid;grid-template-columns:48px minmax(0,1fr);gap:14px;padding:16px;border:1px solid var(--border);border-radius:18px;background:linear-gradient(145deg,var(--bg-card),rgba(255,255,255,.72));box-shadow:0 12px 30px rgba(15,23,42,.05)}
.v152-location-link-icon{width:48px;height:48px;border-radius:15px;display:flex;align-items:center;justify-content:center;background:rgba(244,83,46,.12);color:var(--accent);font-size:18px}
.v152-location-link-main{min-width:0}
.v152-location-link-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.v152-location-link-title>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.v152-location-link-title b{font-size:14px;color:var(--text-primary)}
.v152-location-link-title span{font-size:11px;color:var(--text-muted)}
.v152-location-link-title span i{margin-right:4px;color:var(--success)}
.v152-location-link-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:9px}
.v152-location-link-card .v15-share-link input{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px}

/* ==================== V15.2 CALENDAR DAY POPUP ==================== */
.v152-calendar-popup-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;margin-bottom:14px;border:1px solid var(--border);border-radius:16px;background:var(--bg-soft)}
.v152-calendar-popup-summary>div:first-child{display:flex;flex-direction:column;gap:2px}
.v152-calendar-popup-summary>div:first-child span{font-size:11px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em}
.v152-calendar-popup-summary>div:first-child b{font-size:24px;color:var(--text-primary)}
.v152-calendar-popup-chips{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.v152-calendar-chip{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:999px;background:var(--bg-card);border:1px solid var(--border);font-size:11px;color:var(--text-secondary)}
.v152-calendar-chip b{color:var(--text-primary)}
.v152-calendar-event-icon{width:34px;height:34px;border-radius:11px;display:flex;align-items:center;justify-content:center;background:rgba(244,83,46,.1);color:var(--accent);flex:0 0 auto}

@media(max-width:720px){
  .v152-location-link-card{grid-template-columns:1fr}
  .v152-location-link-icon{width:42px;height:42px}
  .v152-location-link-title{align-items:center}
  .v152-location-link-card .v15-share-link{display:grid;grid-template-columns:1fr}
  .v152-location-link-card .v15-share-link .btn{width:100%}
  .v152-calendar-popup-summary{align-items:flex-start;flex-direction:column}
  .v152-calendar-popup-chips{justify-content:flex-start}
}

/* V15.2 — report filters */
.v152-report-filters{
  display:grid;
  grid-template-columns:minmax(160px,1fr) minmax(160px,1fr) minmax(210px,1.25fr) auto;
  gap:14px;
  align-items:end;
}
.v152-report-filters .form-group{margin:0;min-width:0}
.v152-report-filters .form-group label{display:block;margin:0 0 7px;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--text-muted)}
.v152-report-filter-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;padding-bottom:1px}
@media(max-width:900px){
  .v152-report-filters{grid-template-columns:1fr 1fr}
  .v152-report-filter-actions{grid-column:1/-1;justify-content:stretch}
  .v152-report-filter-actions .btn{flex:1}
}
@media(max-width:560px){.v152-report-filters{grid-template-columns:1fr}}
.v152-preventive-filters{display:grid;grid-template-columns:minmax(180px,1.35fr) repeat(3,minmax(145px,1fr)) repeat(2,minmax(140px,.9fr));gap:12px;align-items:end}
.v152-preventive-filters .form-group{margin:0;min-width:0}
@media(max-width:1180px){.v152-preventive-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.v152-preventive-filters{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.v152-preventive-filters{grid-template-columns:1fr}}
