/* src/styles.css */
:root {
  --bg: #f3f1ec;
  --surface: #ffffff;
  --surface-2: #f2efe9;
  --border: #dedbd5;
  --border-strong: #cfccc4;
  --text: #29251f;
  --text-2: #5f594f;
  --text-3: #8a8378;
  --brand: #5c1d24;
  --brand-soft: #f2e6e7;
  --brand-strong: #43141a;
  --accent: #3898ec;
  --accent-soft: #e6f1fc;
  --secondary: #0050bd;
  --secondary-soft: #e4eefb;
  --green: #18a957;
  --green-soft: #e7f7ee;
  --amber: #d9870a;
  --amber-soft: #fdf2dd;
  --red: #e03b3b;
  --red-soft: #fdeaea;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow: 0 4px 16px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.1);
  --sidebar-w: 252px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}
body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.5;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family:
    "Playfair Display",
    Georgia,
    "Times New Roman",
    serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
input,
select,
textarea {
  font-family: inherit;
  font-size: 14px;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 22px 16px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 8px 22px;
}
.sidebar nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background:
    linear-gradient(
      135deg,
      var(--brand),
      var(--brand-strong));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 19px;
  box-shadow: 0 4px 12px rgba(92, 29, 36, 0.32);
}
.brand-name {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-sub {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
}
.nav-group-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-3);
  font-weight: 700;
  padding: 16px 12px 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-weight: 500;
  font-size: 13.5px;
  margin-bottom: 2px;
  transition: all 0.14s ease;
  cursor: pointer;
}
.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.nav-item:hover {
  background: var(--surface-2);
  color: var(--text);
}
.nav-item.active {
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 600;
}
.nav-badge {
  margin-left: auto;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 19px;
  height: 19px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  padding: 0 5px;
}
.sidebar-footer {
  margin-top: auto;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}
.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
}
.topbar {
  height: 64px;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.page {
  padding: 28px 32px 56px;
  max-width: 1320px;
}
.page-title {
  font-size: 23px;
  font-weight: 800;
}
.page-subtitle {
  color: var(--text-2);
  font-size: 13.5px;
  margin-top: 3px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  transition: all 0.14s ease;
}
.btn:hover {
  background: var(--surface-2);
  border-color: var(--text-3);
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(92, 29, 36, 0.26);
}
.btn-primary:hover {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
}
.btn-ghost {
  border-color: transparent;
  background: transparent;
}
.btn-ghost:hover {
  background: var(--surface-2);
}
.btn-sm {
  padding: 6px 11px;
  font-size: 12.5px;
}
.btn-danger {
  color: var(--red);
}
.btn-danger:hover {
  background: var(--red-soft);
  border-color: var(--red);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad {
  padding: 20px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.card-title {
  font-size: 15px;
  font-weight: 700;
}
.grid {
  display: grid;
  gap: 18px;
}
.grid.two {
  grid-template-columns: 1fr 1fr;
}
.grid.split {
  grid-template-columns: 1.6fr 1fr;
}
.grid.split-aside {
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 360px);
}
.grid.split-fixed {
  grid-template-columns: 1fr 300px;
}
.grid.aside-left {
  grid-template-columns: minmax(280px, 360px) 1fr;
}
@media (max-width: 980px) {
  .grid.two,
  .grid.split,
  .grid.split-aside,
  .grid.split-fixed,
  .grid.aside-left {
    grid-template-columns: 1fr;
  }
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
a.stat {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}
a.stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md, 0 6px 18px rgba(17, 24, 39, 0.1));
  border-color: var(--brand, #5c1d24);
}
a.stat:focus-visible {
  outline: 2px solid var(--brand, #5c1d24);
  outline-offset: 2px;
}
a.stat::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--text-3);
  border-right: 2px solid var(--text-3);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
a.stat:hover::after {
  opacity: 1;
  transform: rotate(45deg) translate(2px, -2px);
}
.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.stat-icon svg {
  width: 19px;
  height: 19px;
}
.stat-label {
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
}
.stat-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 2px;
}
.stat-meta {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 5px;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.kpi-label {
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
}
.kpi-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 2px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-green {
  background: var(--green-soft);
  color: var(--green);
}
.badge-amber {
  background: var(--amber-soft);
  color: var(--amber);
}
.badge-red {
  background: var(--red-soft);
  color: var(--red);
}
.badge-blue {
  background: var(--accent-soft);
  color: var(--accent);
}
.badge-gray {
  background: #f1f3f5;
  color: var(--text-2);
}
.badge-brand {
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  font-weight: 700;
  padding: 11px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.table td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text);
}
.table tr:last-child td {
  border-bottom: none;
}
.table tbody tr {
  transition: background 0.12s ease;
}
.table tbody tr:hover {
  background: var(--surface-2);
}
.t-strong {
  font-weight: 600;
}
.t-muted {
  color: var(--text-2);
}
.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}
.input,
.select,
.textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border 0.14s ease, box-shadow 0.14s ease;
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.55;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.42);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px;
  z-index: 100;
  overflow-y: auto;
}
.modal {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  animation: pop 0.16s ease;
}
.modal-lg {
  max-width: 720px;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.modal-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-body {
  padding: 22px 24px;
}
.modal-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-3);
  display: grid;
  place-items: center;
}
.icon-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}
.row {
  display: flex;
  align-items: center;
}
.gap-8 {
  gap: 8px;
}
.gap-12 {
  gap: 12px;
}
.spread {
  justify-content: space-between;
}
.muted {
  color: var(--text-2);
}
.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-3);
}
.empty svg {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  opacity: 0.5;
}
.chart-box {
  position: relative;
  height: 260px;
}
.chart-box-sm {
  position: relative;
  height: 220px;
}
.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 60px auto;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.action-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  transition: all 0.14s ease;
}
.action-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.action-dot {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.action-dot svg {
  width: 17px;
  height: 17px;
}
.action-title {
  font-weight: 600;
  font-size: 13.5px;
}
.action-detail {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 1px;
}
.section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  font-weight: 700;
  margin-bottom: 12px;
}
.pill-tabs {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.pill-tab {
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  border: none;
  background: transparent;
}
.pill-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.ai-box {
  background:
    linear-gradient(
      135deg,
      var(--brand-soft),
      #fff);
  border: 1px solid #ffd9bf;
  border-radius: var(--radius);
  padding: 16px;
}
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
}
.gap-4 {
  gap: 4px;
}
.t-danger {
  color: var(--red);
}
.btn-sm.btn-ghost {
  padding: 6px 11px;
}
.table.compact th {
  padding: 8px 12px;
}
.table.compact td {
  padding: 8px 12px;
  font-size: 13px;
}
.input-sm {
  padding: 6px 9px;
  font-size: 13px;
}
.totals {
  margin-top: 16px;
  margin-left: auto;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.totals .total-row {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 2px;
  font-weight: 800;
  font-size: 16px;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}
.kanban-col {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  min-height: 120px;
}
.kanban-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 12px;
  font-weight: 700;
  font-size: 13.5px;
}
.kanban-count {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 700;
  min-width: 22px;
  height: 20px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  padding: 0 6px;
}
.task-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.14s ease;
}
.task-card:hover {
  box-shadow: var(--shadow);
}
.task-card.overdue {
  border-left: 3px solid var(--red);
}
.kanban-empty {
  text-align: center;
  color: var(--text-3);
  font-size: 12.5px;
  padding: 18px 0;
}
.mini-btn {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-2);
  font-size: 15px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.mini-btn:hover {
  background: var(--brand-soft);
  color: var(--brand-strong);
  border-color: var(--brand);
}
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 25;
}
.hamburger {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
}
.hamburger svg {
  width: 20px;
  height: 20px;
}
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.mobile-brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  background:
    linear-gradient(
      135deg,
      var(--brand),
      var(--brand-strong));
  display: grid;
  place-items: center;
  color: #fff;
}
.mobile-brand-mark svg {
  width: 17px;
  height: 17px;
}
.mobile-brand-name {
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.42);
  z-index: 29;
  opacity: 0;
  transition: opacity 0.2s ease;
}
@media (max-width: 1100px) {
  .stat-grid,
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .kanban {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 860px) {
  .mobile-header {
    display: flex;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    z-index: 30;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }
  .sidebar-backdrop.show {
    display: block;
    opacity: 1;
  }
  .main {
    margin-left: 0;
    padding-top: 56px;
  }
  .topbar {
    top: 56px;
    padding: 10px 16px;
    height: auto;
    min-height: 58px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .page {
    padding: 20px 16px 48px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .card {
    overflow-x: auto;
  }
  .modal-overlay {
    padding: 16px 12px;
  }
}
@media (max-width: 560px) {
  .stat-grid,
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .mobile-brand-name {
    font-size: 13.5px;
  }
}
body.menu-open {
  overflow: hidden;
}
.pw-strength {
  margin-top: 8px;
}
.pw-strength-track {
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.pw-strength-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.2s ease, background-color 0.2s ease;
}
.pw-strength-fill.red {
  background: var(--red);
}
.pw-strength-fill.amber {
  background: var(--amber);
}
.pw-strength-fill.green {
  background: var(--green);
}
.pw-strength-label {
  font-size: 11.5px;
  margin-top: 4px;
  color: var(--text-2);
}
.pw-strength-label .red {
  color: var(--red);
}
.pw-strength-label .amber {
  color: var(--amber);
}
.pw-strength-label .green {
  color: var(--green);
}
.trial-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: #eef4ff;
  border: 1px solid #c7d7fe;
  color: #1e40af;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
}
.trial-banner .trial-cta {
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: none;
  white-space: nowrap;
}
.trial-banner .trial-cta:hover {
  text-decoration: underline;
}

/* angular:styles/global:styles */
/*# sourceMappingURL=styles.css.map */
