:root {
  --app-bg: #efefef;
  --app-panel: #ffffff;
  --app-ink: #111111;
  --app-muted: #6a6a6a;
  --app-line: #d3d3d3;
  --app-accent: #2563EB;
  --app-accent-dark: #1d4ed8;
  --sidebar-bg: #171717;
  --sidebar-ink: #f2f2f2;
  --sidebar-muted: #b5b5b5;
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.08);
}

body {
  background: linear-gradient(180deg, #f7f7f7 0%, var(--app-bg) 100%);
  color: var(--app-ink);
  min-height: 100vh;
}

.app-layout {
  min-height: 100vh;
}

.text-muted {
  color: var(--app-muted) !important;
}

@media (max-width: 992px) {
  body.sidebar-lock-scroll {
    overflow: hidden;
    touch-action: none;
  }
}
.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 272px;
  background: linear-gradient(180deg, #222222 0%, var(--sidebar-bg) 100%);
  color: var(--sidebar-ink);
  border-right: 1px solid #2d2d2d;
  z-index: 1030;
  padding: 1.25rem 0.85rem;
  transition: transform 220ms ease;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  z-index: 1025;
  transition: opacity 180ms ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  padding: 0 0.45rem;
}

.sidebar-title {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0;
}

.sidebar-subtitle {
  color: var(--sidebar-muted);
  font-size: 0.8rem;
  margin: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1rem;
}

.sidebar-link {
  color: var(--sidebar-ink);
  text-decoration: none;
  padding: 0.62rem 0.72rem;
  border-radius: 0.55rem;
  border: 1px solid transparent;
  transition: all 160ms ease;
  font-weight: 500;
}

.sidebar-link:hover {
  color: #ffffff;
  border-color: #3f3f3f;
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-link.active {
  color: #ffffff;
  border-color: #4f4f4f;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.38) 0%, rgba(37, 99, 235, 0.08) 100%);
}

.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.2rem 0 0.4rem;
}

.sidebar-group-title {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.72rem 0.1rem;
}

.sidebar-subnav {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  padding-left: 0.65rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  margin-left: 0.72rem;
}

.sidebar-sublink {
  color: var(--sidebar-muted);
  text-decoration: none;
  padding: 0.48rem 0.68rem;
  border-radius: 0.5rem;
  font-size: 0.92rem;
  transition: all 160ms ease;
}

.sidebar-sublink:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-sublink.active {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(37, 99, 235, 0.35);
}

body.sidebar-collapsed .app-sidebar {
  transform: translateX(-100%);
}

@media (max-width: 992px) {
  .app-sidebar {
    transform: translateX(-100%);
  }
  body.sidebar-mobile-open .app-sidebar {
    transform: translateX(0);
    box-shadow: 14px 0 25px rgba(0, 0, 0, 0.25);
  }
  body.sidebar-mobile-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
}
.app-main {
  margin-left: 272px;
  transition: margin-left 220ms ease;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(245, 245, 245, 0.9);
  border-bottom: 1px solid var(--app-line);
  backdrop-filter: blur(6px);
  padding: 0.8rem 1rem;
}

.app-topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  justify-content: space-between;
}

.topbar-heading {
  margin: 0;
  font-size: 1.03rem;
  letter-spacing: 0.02em;
  font-weight: 650;
}

.topbar-meta {
  color: var(--app-muted);
  font-size: 0.82rem;
}

.topbar-search-form {
  position: relative;
  min-width: 280px;
}

.topbar-search-form .form-control {
  background: #fff;
}

.topbar-search-suggestions {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 1090;
  background: #fff;
  border: 1px solid #d7d7d7;
  border-radius: 0.6rem;
  box-shadow: 0 0.65rem 1.25rem rgba(0, 0, 0, 0.12);
  max-height: min(22rem, 55vh);
  overflow-y: auto;
}

.topbar-search-suggestion {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.6rem 0.7rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #ededed;
}

.topbar-search-suggestion:last-child {
  border-bottom: 0;
}

.topbar-search-suggestion:hover,
.topbar-search-suggestion.is-active {
  background: rgba(37, 99, 235, 0.08);
}

.topbar-search-suggestion-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar-search-suggestion-main strong {
  font-size: 0.88rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-search-suggestion-main small {
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-search-suggestion-empty {
  padding: 0.65rem 0.75rem;
  color: #666;
  font-size: 0.88rem;
}

.quick-actions-panel {
  position: static;
}

.quick-actions-panel .card-body .btn {
  justify-content: flex-start;
}

@media (min-width: 1200px) {
  .quick-actions-panel {
    position: sticky;
    top: 5.6rem;
  }
}
.app-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.2rem 1rem 2rem;
}

body.sidebar-collapsed .app-main {
  margin-left: 0;
}

@media (max-width: 992px) {
  .app-main {
    margin-left: 0;
  }
  .topbar-search-form {
    min-width: 170px;
    max-width: 220px;
  }
}
.surface-card {
  background: var(--app-panel);
  border: 1px solid var(--app-line);
  border-radius: 0.8rem;
  box-shadow: var(--shadow-soft);
}

.surface-card .card-header {
  background: #f9f9f9;
  border-bottom: 1px solid var(--app-line);
  font-weight: 600;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.23rem 0.58rem;
  font-size: 0.76rem;
  border: 1px solid #d1d1d1;
  background: #f6f6f6;
  color: #2c2c2c;
}

.btn-accent {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--app-accent);
  --bs-btn-border-color: var(--app-accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--app-accent-dark);
  --bs-btn-hover-border-color: var(--app-accent-dark);
  --bs-btn-focus-shadow-rgb: 37, 99, 235;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--app-accent-dark);
  --bs-btn-active-border-color: var(--app-accent-dark);
}

.btn-outline-ink {
  --bs-btn-color: #242424;
  --bs-btn-border-color: #575757;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #242424;
  --bs-btn-hover-border-color: #242424;
  --bs-btn-active-bg: #242424;
  --bs-btn-active-border-color: #242424;
}

@media (max-width: 768px) {
  .btn.btn-sm {
    min-height: 2.75rem;
    min-width: 2.75rem;
    padding: 0.48rem 0.72rem;
  }
  .btn.btn-sm > i:only-child {
    font-size: 1.1rem;
  }
  .card-header .btn.btn-sm,
  .list-group-item .btn.btn-sm,
  .table .btn.btn-sm,
  .pwa-install-prompt .btn.btn-sm {
    min-height: 2.75rem;
    min-width: 2.75rem;
  }
  .d-flex.gap-2:has(> .btn),
  .d-inline-flex.gap-2:has(> .btn) {
    gap: 0.6rem !important;
  }
}
.table {
  --bs-table-bg: #ffffff;
  --bs-table-border-color: var(--app-line);
  --bs-table-striped-bg: #f7f7f7;
  --bs-table-hover-bg: #ececec;
  margin-bottom: 0;
}

.table a:not(.btn) {
  color: var(--app-accent);
  font-weight: 600;
  text-decoration: none;
}

.table a:not(.btn):hover {
  color: var(--app-accent-dark);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .table-responsive {
    overflow: visible;
  }
  .table-mobile-cards {
    border-collapse: separate;
    border-spacing: 0;
  }
  .table-mobile-cards thead {
    display: none;
  }
  .table-mobile-cards tbody,
  .table-mobile-cards tr,
  .table-mobile-cards td {
    display: block;
    width: 100%;
  }
  .table-mobile-cards tr {
    margin-bottom: 0.7rem;
    padding: 0.82rem 0.95rem;
    border: 1px solid var(--app-line);
    border-radius: 0.72rem;
    background: #fff;
  }
  .table-mobile-cards.table-striped > tbody > tr:nth-of-type(odd) {
    background: #f5f5f5;
  }
  .table-mobile-cards td {
    border: 0;
    padding: 0.5rem 0.2rem;
    text-align: left !important;
    display: grid;
    grid-template-columns: minmax(5.8rem, 7.2rem) minmax(0, 1fr);
    align-items: start;
    gap: 0.65rem;
  }
  .table-mobile-cards td::before {
    content: attr(data-label);
    color: var(--app-muted);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    flex-shrink: 0;
    min-width: 6.5rem;
  }
  .table-mobile-cards td[data-label=""]::before {
    display: none;
  }
  .table-mobile-cards td[data-label=""] {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.65rem;
  }
  .table-mobile-cards.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: transparent;
    background-color: transparent;
  }
}
.surface-card a[href^="mailto:"],
.surface-card a[href^="tel:"] {
  color: var(--app-accent);
  font-weight: 600;
  text-decoration: none;
}

.surface-card a[href^="mailto:"]:hover,
.surface-card a[href^="tel:"]:hover {
  color: var(--app-accent-dark);
  text-decoration: underline;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
  margin-bottom: 0;
}

.pagination .page-link {
  border-radius: 0.5rem;
  border: 1px solid #b8b8b8;
  color: #262626;
  background: #ffffff;
  min-width: 2.2rem;
  text-align: center;
}

.pagination .page-link:hover {
  color: #ffffff;
  background: #2f2f2f;
  border-color: #2f2f2f;
}

.pagination .page-item.active .page-link {
  color: #ffffff;
  background: var(--app-accent);
  border-color: var(--app-accent);
}

.pagination .page-item.disabled .page-link {
  color: #8e8e8e;
  background: #f2f2f2;
  border-color: #d3d3d3;
}

.pagination > li > a,
.pagination > li > span {
  display: inline-block;
  border-radius: 0.5rem;
  border: 1px solid #b8b8b8;
  color: #262626;
  background: #ffffff;
  min-width: 2.2rem;
  text-align: center;
  text-decoration: none;
  padding: 0.35rem 0.7rem;
}

.pagination > li > a:hover {
  color: #ffffff;
  background: #2f2f2f;
  border-color: #2f2f2f;
  text-decoration: none;
}

.pagination > li.active > a,
.pagination > li.active > span {
  color: #ffffff;
  background: var(--app-accent);
  border-color: var(--app-accent);
}

.app-form p {
  margin-bottom: 1rem;
}

.app-form label {
  font-weight: 600;
  margin-bottom: 0.35rem;
  display: block;
}

.form-control,
.form-select {
  border-color: #bcbcbc;
  border-radius: 0.6rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #6b96f5;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.filter-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.filter-reset-link {
  color: var(--app-accent);
  text-decoration: none;
  font-weight: 600;
}

.filter-reset-link:hover {
  color: var(--app-accent-dark);
  text-decoration: underline;
}

.filter-panel {
  border-radius: 0.7rem;
}

.filter-label {
  margin-bottom: 0.3rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #555555;
}

.filter-panel .form-control,
.filter-panel .form-select {
  min-height: 2.25rem;
  font-size: 0.93rem;
}

.filter-panel .form-control:focus,
.filter-panel .form-select:focus {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-top: 0.25rem;
}

.app-form .app-field-invalid .form-control,
.app-form .app-field-invalid .form-select,
.app-form .app-field-invalid .form-check-input {
  border-color: #b02a37;
}

.app-form .app-field-invalid .form-control:focus,
.app-form .app-field-invalid .form-select:focus,
.app-form .app-field-invalid .form-check-input:focus {
  border-color: #b02a37;
  box-shadow: 0 0 0 0.2rem rgba(176, 42, 55, 0.15);
}

.app-form-errors {
  border-left: 0.25rem solid #b02a37;
}

.sticky-board {
  position: relative;
  min-height: 680px;
  border: 1px dashed #b9b9b9;
  border-radius: 0.85rem;
  background-color: #fcfcfc;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow: auto;
  padding: 0.75rem;
  resize: vertical;
  max-height: 85vh;
}

.sticky-note {
  position: absolute;
  width: 260px;
  min-height: 170px;
  background: var(--note-bg, #ffe08b);
  border: 1px solid #d4b35f;
  border-radius: 0.6rem;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.15);
  padding: 0.62rem 0.62rem 0.55rem;
  cursor: grab;
  user-select: none;
  transition: box-shadow 120ms ease;
}

.sticky-note:active {
  cursor: grabbing;
}

.sticky-note.is-dragging {
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
  z-index: 5;
}

.sticky-note__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: #5f4b22;
  font-size: 0.74rem;
  font-weight: 600;
}

.sticky-note__body {
  color: #252018;
  font-size: 0.92rem;
  line-height: 1.35;
  margin-bottom: 0.6rem;
  max-height: 4.1em;
  overflow: hidden;
  position: relative;
}

.sticky-note__body::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5em;
  background: linear-gradient(transparent, var(--note-bg, #ffe08b));
  pointer-events: none;
}

.sticky-note.is-expanded .sticky-note__body {
  max-height: none;
  overflow: visible;
}

.sticky-note.is-expanded .sticky-note__body::after {
  display: none;
}

.sticky-note__body p:last-child {
  margin-bottom: 0;
}

.sticky-note__body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.35rem;
}

.sticky-note__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}

.mobile-notes-list {
  display: grid;
  gap: 0.7rem;
}

.mobile-note-card {
  border: 1px solid #d4b35f;
  border-radius: 0.7rem;
  background: var(--note-bg, #ffe08b);
  padding: 0.7rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.mobile-note-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  color: #5f4b22;
  font-size: 0.76rem;
  font-weight: 600;
}

.mobile-note-card__body {
  color: #252018;
  font-size: 0.92rem;
  line-height: 1.4;
  margin-bottom: 0.6rem;
}

.mobile-note-card__body p:last-child {
  margin-bottom: 0;
}

.mobile-note-card__body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.35rem;
}

.mobile-note-card__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}

.notes-view-toggle {
  display: flex;
  gap: 0.2rem;
  margin-right: 0.5rem;
}
.notes-view-toggle .btn {
  padding: 0.15rem 0.42rem;
  font-size: 0.82rem;
  line-height: 1.4;
}

.notes-list-view table {
  width: 100%;
  border-collapse: collapse;
}
.notes-list-view th {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.45rem 0.75rem;
  border-bottom: 2px solid #dee2e6;
  text-align: left;
  white-space: nowrap;
}
.notes-list-view td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #eee;
  font-size: 0.88rem;
  vertical-align: middle;
}
.notes-list-view tr:hover {
  background-color: #f8f9fa;
}

.notes-list__color {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.15);
  vertical-align: middle;
}

.notes-list__text {
  color: #252018;
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #2a2a2a;
  background: linear-gradient(150deg, #121212 0%, #232323 45%, #1e3a8a 100%);
  color: #f6f6f6;
  padding: 1.2rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
}

.dashboard-hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 38%), radial-gradient(circle at 88% 80%, rgba(37, 99, 235, 0.35) 0%, transparent 48%);
  pointer-events: none;
}

.dashboard-hero__content,
.dashboard-hero__actions {
  position: relative;
  z-index: 1;
}

.dashboard-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-self: start;
}

.dashboard-hero__btn-secondary {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: rgba(255, 255, 255, 0.18);
  --bs-btn-border-color: rgba(255, 255, 255, 0.45);
  --bs-btn-hover-color: #111111;
  --bs-btn-hover-bg: #ffffff;
  --bs-btn-hover-border-color: #ffffff;
  --bs-btn-active-color: #111111;
  --bs-btn-active-bg: #ffffff;
  --bs-btn-active-border-color: #ffffff;
  --bs-btn-focus-shadow-rgb: 255, 255, 255;
  backdrop-filter: blur(2px);
}

.dashboard-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  color: #dbdbdb;
}

.dashboard-hero__title {
  font-size: clamp(1.25rem, 1.7vw, 1.8rem);
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.dashboard-hero__subtitle {
  color: #d6d6d6;
  max-width: 64ch;
}

.dashboard-hero__today {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.dashboard-hero__today-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  color: #f5f5f5;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  line-height: 1.2;
  text-decoration: none;
}

.dashboard-hero__today-pill:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}

.dashboard-kpi {
  border-radius: 0.85rem;
}

.dashboard-kpi--red {
  background: linear-gradient(170deg, rgba(37, 99, 235, 0.16) 0%, #ffffff 100%);
}

.dashboard-kpi__label {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.72rem;
  font-weight: 700;
  color: #666666;
}

.dashboard-kpi__value {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.1;
  font-weight: 700;
}

.dashboard-feed {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dashboard-feed__item {
  border: 1px solid #dbdbdb;
  border-radius: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: #fafafa;
}

.dashboard-feed__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
}

.dashboard-feed__subject {
  color: #1e1e1e;
  text-decoration: none;
  font-weight: 700;
  display: block;
}

.dashboard-feed__subject:hover {
  color: var(--app-accent);
}

.dashboard-feed__detail {
  color: #646464;
  font-size: 0.85rem;
}

.dashboard-watchdog__summary {
  margin-bottom: 0.85rem;
  color: #646464;
  font-size: 0.92rem;
}

.dashboard-watchdog {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dashboard-watchdog__item {
  border: 1px solid rgba(91, 42, 30, 0.14);
  border-radius: 0.85rem;
  padding: 0.8rem 0.9rem;
  background: linear-gradient(180deg, rgba(255, 250, 247, 0.96) 0%, #ffffff 100%);
}

.dashboard-watchdog__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.dashboard-watchdog__deadline {
  color: #646464;
  font-size: 0.82rem;
  font-weight: 600;
}

.dashboard-watchdog__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.dashboard-watchdog__countdown {
  color: #2563EB;
  font-size: 0.88rem;
  font-weight: 700;
}

.dashboard-quick-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.2;
  padding-top: 0.82rem;
  padding-bottom: 0.82rem;
  text-align: center;
}

.dashboard-quick-actions .btn i {
  font-size: 1.38rem;
}

.dashboard-quick-actions {
  align-content: center;
}

@media (max-width: 992px) {
  .dashboard-hero {
    grid-template-columns: 1fr;
  }
  .dashboard-watchdog__meta,
  .dashboard-watchdog__footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
.crm-calendar {
  min-height: 680px;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.calendar-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: #515151;
}

.calendar-legend__dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  display: inline-block;
}

.calendar-legend__dot--google {
  background: #212529;
}

.calendar-legend__dot--crm {
  background: #2563EB;
}

.calendar-legend__dot--unsynced {
  background: #b98200;
}

.fc .calendar-event-google {
  background: #2f2f2f;
  border-color: #2f2f2f;
  color: #ffffff;
}

.fc .calendar-event-crm {
  background: #2563EB;
  border-color: #2563EB;
  color: #ffffff;
}

.fc .calendar-event-unsynced {
  background: #b98200;
  border-color: #b98200;
  color: #ffffff;
}

.fc .calendar-event-google .fc-event-title,
.fc .calendar-event-crm .fc-event-title,
.fc .calendar-event-unsynced .fc-event-title,
.fc .calendar-event-google .fc-event-time,
.fc .calendar-event-crm .fc-event-time,
.fc .calendar-event-unsynced .fc-event-time {
  color: #ffffff;
}

.fc .calendar-event-google a,
.fc .calendar-event-crm a,
.fc .calendar-event-unsynced a {
  color: #ffffff !important;
  text-decoration: none;
}

.fc .calendar-event-google a:hover,
.fc .calendar-event-crm a:hover,
.fc .calendar-event-unsynced a:hover {
  color: #f3f3f3 !important;
}

.fc .fc-event {
  min-height: 2rem;
}

.fc .fc-daygrid-event,
.fc .fc-timegrid-event,
.fc .fc-list-event {
  padding: 0.25rem 0.42rem;
}

@media (max-width: 991.98px) {
  .crm-calendar {
    min-height: auto;
  }
  .fc .fc-toolbar {
    gap: 0.45rem;
  }
  .fc .fc-toolbar-title {
    font-size: 1rem;
  }
  .fc .fc-button {
    min-height: 2.35rem;
    padding: 0.28rem 0.58rem;
  }
  .fc .fc-daygrid-event,
  .fc .fc-timegrid-event,
  .fc .fc-list-event {
    min-height: 2.5rem;
    padding: 0.45rem 0.62rem;
    line-height: 1.25;
  }
}
.pwa-install-prompt {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1100;
  width: min(27rem, 100vw - 2rem);
}

.pwa-install-prompt__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid var(--app-line);
  box-shadow: var(--shadow-soft);
  background: #ffffff;
  padding: 0.85rem 0.9rem;
}

.pwa-install-prompt__title {
  font-size: 0.92rem;
  font-weight: 700;
}

.pwa-install-prompt__text {
  color: var(--app-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.pwa-install-prompt__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.pwa-network-banner {
  position: fixed;
  right: 1rem;
  left: 1rem;
  bottom: 1rem;
  z-index: 1110;
}

.pwa-network-banner__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid var(--app-line);
  border-radius: 0.85rem;
  box-shadow: var(--shadow-soft);
  background: rgba(255, 255, 255, 0.98);
  padding: 0.8rem 0.9rem;
}

.pwa-network-banner__title {
  font-size: 0.9rem;
  font-weight: 700;
}

.pwa-network-banner__text {
  color: var(--app-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.pwa-network-banner__actions {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .pwa-install-prompt {
    right: 0.65rem;
    left: 0.65rem;
    width: auto;
    bottom: max(0.65rem, env(safe-area-inset-bottom));
  }
  .pwa-install-prompt__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .pwa-install-prompt__actions {
    justify-content: flex-end;
  }
  .pwa-network-banner {
    right: 0.65rem;
    left: 0.65rem;
    bottom: calc(0.65rem + env(safe-area-inset-bottom));
  }
  .pwa-network-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .pwa-network-banner__actions {
    justify-content: flex-end;
  }
}
@media (max-width: 992px) {
  body.has-mobile-action-bar .pwa-network-banner {
    bottom: calc(5.3rem + env(safe-area-inset-bottom));
  }
}
.mobile-action-bar {
  position: fixed;
  right: 0.75rem;
  left: 0.75rem;
  bottom: max(0.65rem, env(safe-area-inset-bottom));
  z-index: 1090;
}

.mobile-action-bar__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  border: 1px solid var(--app-line);
  border-radius: 0.88rem;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-soft);
  padding: 0.55rem;
}

.mobile-action-bar .btn {
  min-height: 2.75rem;
  width: 100%;
}

.mobile-action-bar form {
  margin: 0;
}

@media (max-width: 992px) {
  body.has-mobile-action-bar .app-content {
    padding-bottom: calc(7rem + env(safe-area-inset-bottom));
  }
  body.has-mobile-action-bar .pwa-install-prompt {
    bottom: calc(5.3rem + env(safe-area-inset-bottom));
  }
}
@media (max-width: 575.98px) {
  .modal .modal-dialog.modal-fullscreen-sm-down .modal-content {
    height: 100dvh;
    border-radius: 0;
  }
  .modal .modal-dialog.modal-fullscreen-sm-down .modal-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #ffffff;
  }
  .modal .modal-dialog.modal-fullscreen-sm-down .modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
  }
  .modal .modal-dialog.modal-fullscreen-sm-down .modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: #ffffff;
    border-top: 1px solid var(--app-line);
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  }
}
.crm-tabs {
  gap: 0.35rem;
}

.crm-tabs .nav-link {
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .crm-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    padding-bottom: 0.2rem;
    margin-bottom: 0.2rem;
  }
  .crm-tabs .nav-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
  .crm-tabs .nav-link {
    border-radius: 999px;
    border: 1px solid var(--app-line);
    background: #ffffff;
    padding: 0.44rem 0.78rem;
    font-size: 0.86rem;
    line-height: 1.2;
    min-height: 2.25rem;
    color: var(--app-ink);
  }
  .crm-tabs .nav-link.active {
    background: var(--app-accent);
    border-color: var(--app-accent);
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
  }
}
.project-overview-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-overview-card {
  overflow: hidden;
}

.project-overview-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(34, 34, 34, 0.08);
  margin-bottom: 1rem;
}

.project-overview-card__title {
  margin: 0;
}

.project-overview-card__title a {
  color: var(--ink-900);
  text-decoration: none;
}

.project-overview-card__title a:hover {
  color: var(--accent-700);
}

.project-overview-card__price {
  min-width: 170px;
  text-align: right;
}

.project-overview-card__price-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  margin-bottom: 0.15rem;
}

.project-overview-card__price-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-900);
}

.project-overview-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.project-overview-card__meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--ink-700);
  font-size: 0.82rem;
}

.project-overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.project-overview-section {
  padding: 0.95rem 1rem;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, rgba(244, 241, 237, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid rgba(34, 34, 34, 0.07);
}

.project-overview-section__title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  margin-bottom: 0.65rem;
}

.project-overview-list-reset {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.project-overview-item-title {
  font-weight: 600;
  color: var(--ink-900);
  text-decoration: none;
}

.project-overview-item-title:hover {
  color: var(--accent-700);
}

.project-overview-item-meta {
  color: var(--ink-500);
  font-size: 0.86rem;
  margin-top: 0.18rem;
}

.project-overview-customer-line {
  margin-bottom: 0.45rem;
}

.project-overview-customer-label {
  color: var(--ink-500);
  font-size: 0.82rem;
  margin-right: 0.35rem;
}

.project-overview-card__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.project-overview-summary {
  position: sticky;
  bottom: 1rem;
  z-index: 20;
  margin-top: 1.5rem;
}

.project-overview-summary__inner {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid rgba(145, 56, 49, 0.18);
  background: rgba(255, 252, 249, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(34, 34, 34, 0.12);
}

.project-overview-summary__intro {
  min-width: 250px;
  padding-right: 1rem;
  border-right: 1px solid rgba(34, 34, 34, 0.08);
}

.project-overview-summary__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-700);
  margin-bottom: 0.35rem;
}

.project-overview-summary__count {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-900);
}

.project-overview-summary__stats {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.project-overview-summary__stat {
  flex: 1 1 260px;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 241, 237, 0.94) 100%);
  border: 1px solid rgba(34, 34, 34, 0.07);
}

.project-overview-summary__currency {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 0.55rem;
}

.project-overview-summary__metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.project-overview-summary__metric + .project-overview-summary__metric {
  margin-top: 0.45rem;
}

.project-overview-summary__label {
  color: var(--ink-500);
  font-size: 0.82rem;
}

.project-overview-summary__metric strong {
  color: var(--ink-900);
  font-size: 0.98rem;
}

.project-overview-summary__empty {
  display: flex;
  align-items: center;
  min-height: 100%;
  color: var(--ink-500);
}

@media (max-width: 992px) {
  .project-overview-card__header {
    flex-direction: column;
  }
  .project-overview-card__price {
    min-width: 0;
    text-align: left;
  }
  .project-overview-summary {
    bottom: 0.75rem;
  }
  .project-overview-summary__inner {
    flex-direction: column;
  }
  .project-overview-summary__intro {
    min-width: 0;
    padding-right: 0;
    padding-bottom: 0.85rem;
    border-right: 0;
    border-bottom: 1px solid rgba(34, 34, 34, 0.08);
  }
  .project-overview-summary__metric {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
  }
}
#progress-container .step-icon {
  width: 24px;
  text-align: center;
  font-size: 1.1rem;
}
#progress-container .spinner-border-sm {
  width: 16px;
  height: 16px;
}

#result-container .card-footer {
  flex-wrap: wrap;
}
