:root {
  --background: #f9fafb;
  --surface: #ffffff;
  --surface-muted: #f9fafb;
  --border: #e5e7eb;
  --border-strong: #d1d5dc;
  --text: #101828;
  --text-secondary: #364153;
  --text-muted: #6a7282;
  --brand: #000000;
  --brand-dark: #111827;
  --link: #111827;
  --danger: #fb2c36;
  --success: #10b981;
  --warning: #f59e0b;
  --radius: 10px;
  --sidebar-width: 224px;
  --header-height: 64px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.1);
  --font-sans: "Inter", "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--text);
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.login-body {
  min-height: 100vh;
}

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--background);
}

.login-card {
  width: 100%;
  max-width: 448px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.08);
  padding: 32px;
}

.login-card__header {
  text-align: center;
  margin-bottom: 32px;
}

.login-card__header h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.2;
}

.login-card__header p,
.login-card__note,
.login-card__actions a {
  font-size: 14px;
  color: var(--text-muted);
}

.login-card__actions {
  text-align: center;
  margin-top: 16px;
}

.login-card__actions a {
  color: var(--link);
}

.login-card__note {
  margin: 24px 0 0;
  text-align: center;
  font-size: 12px;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #fef2f2;
  color: var(--danger);
  font-size: 14px;
  font-weight: 600;
}

.login-error--success {
  background: #ecfdf3;
  color: #087443;
}

.field {
  display: grid;
  gap: 8px;
}

.field__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.field__required {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  color: var(--danger);
  font-size: 10px;
  font-weight: 700;
}

.field__required::before {
  content: none;
}

.system-inline-crud {
  display: inline-flex;
}

.field__hint {
  font-size: 12px;
  color: var(--text-muted);
}

.field__input {
  width: 100%;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-secondary);
}

.field__input--readonly {
  background: #f3f4f6;
}

.field__textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-secondary);
  resize: vertical;
}

.field__input::placeholder,
.field__textarea::placeholder {
  color: #99a1af;
}

.field__input:focus,
.field__textarea:focus,
.field__input--select:focus {
  outline: 0;
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.field__input--select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #6a7282 50%), linear-gradient(135deg, #6a7282 50%, transparent 50%);
  background-position: calc(100% - 18px) 18px, calc(100% - 12px) 18px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.button {
  height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.button--block {
  width: 100%;
}

.button--primary {
  background: var(--brand-dark);
  color: #fff;
}

.button--primary:hover {
  background: #000;
}

.button--secondary {
  background: #fff;
  border-color: var(--border-strong);
  color: var(--text-secondary);
}

.button--secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.button--muted {
  background: var(--brand-dark);
  color: #fff;
}

.button--muted:hover {
  background: #000;
}

.button--blue {
  background: var(--link);
  color: #fff;
}

.button--blue:hover {
  background: #000;
}

.button--success {
  background: #49b980;
  color: #fff;
}

.button--success:hover {
  background: #2f9f69;
}

.button--orange-outline {
  background: #fff;
  border-color: #fbbf24;
  color: #d97706;
}

.button--orange-outline:hover {
  background: #fffbeb;
  border-color: #f59e0b;
}

.button--danger-outline {
  background: #fff;
  border-color: #fca5a5;
  color: #dc2626;
}

.button--danger-outline:hover {
  background: #fef2f2;
  border-color: #ef4444;
}

.button--danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.button--danger:hover {
  background: #dc2626;
  border-color: #dc2626;
}

.button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  flex: 0 0 var(--sidebar-width);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.sidebar__header {
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  overflow: hidden;
}

.sidebar__brand {
  width: 74px;
  height: 53px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar__brand img {
  width: 74px;
  height: auto;
  max-width: none;
  max-height: none;
  display: block;
  object-fit: contain;
}

.sidebar__nav {
  padding: 12px;
  display: grid;
  gap: 4px;
  overflow-y: auto;
}

.sidebar__item {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.sidebar__item:hover {
  background: #f3f4f6;
}

.sidebar__item.is-active {
  background: #f3f4f6;
  color: #111827;
}

.sidebar__icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  color: #9ca3af;
}

.sidebar__icon svg {
  width: 20px;
  height: 20px;
}

.sidebar__item:hover .sidebar__icon {
  color: #6b7280;
}

.sidebar__item.is-active .sidebar__icon {
  color: #64748b;
}

.app-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: var(--header-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar__date {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #4a5565;
}

.icon-button {
  position: relative;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-button:hover,
.user-button:hover {
  background: #f3f4f6;
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.icon-button__dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--danger);
}

.dropdown {
  position: relative;
}

.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 288px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
  z-index: 50;
}

.menu.is-open {
  display: block;
}

.menu--notifications {
  width: 320px;
}

.menu__title,
.menu__section,
.menu__footer {
  padding: 12px 16px;
}

.menu__section + .menu__section,
.menu__title,
.menu__footer {
  border-top: 1px solid var(--border);
}

.menu__caption {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.menu__title--actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.menu__title-action {
  border: 0;
  background: transparent;
  color: var(--link);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.menu__title-action:hover {
  color: var(--brand-dark);
}

.menu__link {
  min-height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  color: var(--text-secondary);
  font-size: 14px;
}

.menu__link:hover {
  background: var(--surface-muted);
}

.menu__link.is-danger {
  color: var(--danger);
}

.menu__badge {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  background: var(--brand-dark);
  color: #fff;
  font-size: 11px;
}

.menu__badge--danger {
  background: var(--danger);
}

.notification-item {
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-top: 1px solid var(--border);
}

.notification-item:hover {
  background: var(--surface-muted);
}

.notification-item__marker {
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: transparent;
}

.notification-item__marker.is-unread {
  background: var(--danger);
}

.notification-item__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.notification-item__title {
  font-size: 14px;
  color: var(--text);
}

.notification-item__badge {
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #344054;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
}

.notification-item__text {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 18px;
}

.notification-item__title.is-muted,
.notification-item__time,
.menu__footer a {
  font-size: 12px;
  color: var(--text-muted);
}

.notification-detail {
  max-width: 880px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.notification-detail__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.notification-detail__pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: 12px;
}

.notification-detail h2 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.45;
}

.notification-detail__body {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.9;
  white-space: normal;
}

.user-button {
  height: 40px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.user-button__avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--brand-dark);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  overflow: hidden;
}

.user-button__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-button__name {
  font-size: 14px;
  font-weight: 500;
}

.user-button__chevron {
  width: 16px;
  height: 16px;
}

.page-content {
  padding: 24px 39px 56px 24px;
  overflow: auto;
  flex: 1 1 auto;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.page-head__title {
  margin: 0 0 4px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

.page-head__meta {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.page-head__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-head__actions form,
.list-card__actions form,
.todo-card__actions form {
  margin: 0;
}

.button--has-badge {
  position: relative;
}

.page-head__badge {
  position: absolute;
  top: -8px;
  right: -8px;
}

.dashboard-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f3f4f6;
}

.dashboard-tab {
  position: relative;
  min-height: 46px;
  flex: 1 1 0;
  padding: 7px 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  display: grid;
  gap: 1px;
  align-content: center;
}

.dashboard-tab strong {
  font-size: 14px;
  text-align: center;
  color: #4b5563;
}

.dashboard-tab span {
  font-size: 12px;
  text-align: center;
  color: var(--text-muted);
}

.dashboard-tab:hover {
  background: rgba(255, 255, 255, 0.62);
}

.dashboard-tab.is-active {
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.dashboard-tab.is-active strong {
  color: var(--text);
}

.dashboard-tab.is-active span {
  color: var(--text-secondary);
}

.toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.toolbar--between {
  justify-content: space-between;
  align-items: center;
}

.subtabs {
  display: flex;
  gap: 8px;
}

.subtab {
  min-height: 42px;
  padding: 10px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
}

.subtab.is-active {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.08);
}

.subtab:not(.is-active):hover {
  background: #f8fafc;
}

.filter-panel,
.panel,
.metric-card,
.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.filter-panel {
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: end;
  gap: 14px;
}

.filter-panel[hidden] {
  display: none;
}

.filter-grid,
.card-grid,
.chart-grid {
  display: grid;
  gap: 16px;
}

.filter-grid {
  flex: 1 1 auto;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
}

.filter-panel .field {
  gap: 6px;
}

.filter-panel .field__label {
  font-size: 12px;
}

.filter-panel .field__input {
  min-height: 40px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 0;
  flex: 0 0 auto;
}

.filter-actions .button {
  min-height: 40px;
  padding: 0 16px;
}

.card-grid {
  margin-bottom: 24px;
}

.card-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
  padding: 20px 20px 18px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.metric-card__label {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.metric-card__value {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

.metric-card__change {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
}

.metric-card__change.is-up {
  color: var(--success);
}

.metric-card__change.is-down {
  color: var(--danger);
}

.chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 24px;
}

.dashboard-profit-chart-grid {
  grid-template-columns: minmax(0, 1fr);
}

.chart-card {
  padding: 24px;
}

.chart-card h3,
.panel__header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.chart-card__canvas {
  height: 200px;
  margin-top: 16px;
  border-radius: var(--radius);
  background: var(--surface-muted);
  padding: 18px 18px 14px;
  color: var(--text);
  font-size: 12px;
}

.dashboard-bar-chart-wrap {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
}

.dashboard-chart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-chart-summary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-bar-chart {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
}

.dashboard-bar-chart__item {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 6px;
  height: 100%;
  text-align: center;
}

.dashboard-bar-chart__track {
  min-height: 108px;
  display: flex;
  align-items: end;
  justify-content: center;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
}

.dashboard-bar-chart__track span {
  width: 100%;
  min-height: 4px;
  border-radius: 999px 999px 0 0;
  background: #2563eb;
}

.dashboard-bar-chart__label {
  color: #667085;
  font-size: 11px;
  font-weight: 700;
}

.dashboard-line-chart {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
}

.dashboard-line-chart svg {
  width: 100%;
  height: 142px;
}

.dashboard-line-chart__grid {
  fill: none;
  stroke: #e5e7eb;
  stroke-width: 1;
}

.dashboard-line-chart__line {
  fill: none;
  stroke: #16a34a;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.dashboard-line-chart__point {
  fill: #fff;
  stroke: #16a34a;
  stroke-width: 2;
}

.dashboard-line-chart__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-line-chart__summary strong {
  color: #111827;
  font-size: 16px;
}

.panel {
  overflow: hidden;
}

.panel__header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.goal-list {
  display: grid;
  gap: 12px;
  padding: 0 24px 24px;
}

.goal-item {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.goal-item h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.goal-item p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.goal-item__edit {
  min-height: 34px;
  padding: 0 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.pill--success {
  background: #d1fae5;
  color: #065f46;
}

.pill--warning {
  background: #fef3c7;
  color: #92400e;
}

.pill--danger {
  background: #fee2e2;
  color: #991b1b;
}

.table-wrap {
  overflow: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background: var(--surface-muted);
}

.data-table th,
.data-table td {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}

.data-table th {
  border-top: 0;
  color: var(--text-secondary);
  font-weight: 600;
}

.data-table td {
  color: #4a5565;
}

.data-table tbody tr:hover {
  background: var(--surface-muted);
}

.project-index-table th:first-child,
.project-index-table td:first-child {
  white-space: nowrap;
}

.project-index-table .project-table-area {
  min-width: 72px;
  white-space: nowrap;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.search-bar__field {
  position: relative;
  flex: 1 1 auto;
}

.search-bar__field .field__input {
  height: 40px;
  padding-left: 40px;
}

.search-bar__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: inline-flex;
}

.search-bar__icon svg {
  width: 20px;
  height: 20px;
}

.search-bar__submit {
  min-width: 96px;
  white-space: nowrap;
}

.customer-cell,
.contact-stack {
  display: grid;
  gap: 4px;
}

.customer-cell strong {
  color: var(--text);
}

.customer-cell span,
.contact-stack span {
  font-size: 12px;
  color: var(--text-muted);
}

.customer-detail-page {
  padding: 24px 32px 40px;
  background: #f7f8fa;
}

.customer-detail-back-link {
  margin-bottom: 18px;
  color: #3b82f6;
}

.customer-detail-search {
  width: 430px;
  max-width: 100%;
  height: 46px;
  margin: 0 0 40px;
  padding: 0 16px;
  border: 1px solid #d9dee7;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #98a2b3;
}

.customer-detail-search svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.customer-detail-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #344054;
  font-size: 15px;
  line-height: 22px;
}

.customer-detail-search input::placeholder {
  color: #98a2b3;
}

.customer-detail-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.customer-detail-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.customer-detail-title-row h1 {
  margin: 0;
  color: #101828;
  font-size: 26px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: 0;
}

.customer-detail-meta {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.customer-detail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.customer-detail-tabs {
  margin-bottom: 24px;
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f3f4f6;
}

.customer-detail-tabs a {
  position: relative;
  flex: 1 1 0;
  min-height: 40px;
  padding: 10px 14px;
  border: 0;
  border-radius: 7px;
  color: #4b5563;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.customer-detail-tabs a:hover {
  background: rgba(255, 255, 255, 0.62);
}

.customer-detail-tabs a.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.customer-detail-card {
  padding: 0;
  margin-bottom: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.customer-detail-card h2 {
  min-height: 56px;
  margin: 0;
  padding: 16px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #101828;
  font-size: 17px;
  line-height: 24px;
  font-weight: 800;
}

.customer-detail-card h2 svg {
  width: 20px;
  height: 20px;
  color: #0b84ee;
  flex: 0 0 auto;
}

.customer-detail-grid {
  padding: 22px 24px 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.customer-detail-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.customer-detail-field {
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid #eef2f6;
  border-radius: 8px;
  background: #fff;
  display: grid;
  align-content: start;
  gap: 6px;
}

.customer-detail-field--full {
  grid-column: 1 / -1;
}

.customer-detail-field > span {
  color: #667085;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

.customer-detail-field strong {
  color: #374151;
  font-size: 14px;
  line-height: 22px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.customer-detail-field a {
  color: #3b82f6;
  text-decoration: none;
}

.customer-detail-inline-icon {
  margin-right: 10px;
  color: #667085;
  font-size: 19px;
}

.customer-detail-empty {
  padding: 28px;
  border-radius: 10px;
  background: #f8fafc;
  color: #667085;
  font-size: 15px;
  font-weight: 700;
}

.customer-projects-panel {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.customer-projects-head {
  min-height: 64px;
  padding: 14px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.customer-projects-head h2 {
  margin: 0;
  color: #101828;
  font-size: 17px;
  line-height: 24px;
  font-weight: 800;
}

.customer-project-add {
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  background: #45bd79;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 20px;
  font-weight: 800;
  text-decoration: none;
}

.customer-project-list {
  display: grid;
  gap: 12px;
  padding: 18px 24px 24px;
}

.customer-project-card {
  padding: 16px;
  border: 1px solid #eef2f6;
  border-radius: 8px;
  background: #fff;
}

.customer-project-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.customer-project-card h3 {
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #101828;
  font-size: 16px;
  line-height: 24px;
  font-weight: 800;
}

.customer-project-card p {
  margin: 0;
  color: #667085;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
}

.customer-project-card__top > a {
  color: #007aff;
  font-size: 13px;
  line-height: 20px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.customer-project-status {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 800;
}

.customer-project-status--active {
  background: #d7ebff;
  color: #007aff;
}

.customer-project-status--estimate {
  background: #fff0c2;
  color: #b45309;
}

.customer-project-status--done {
  background: #d1fae5;
  color: #059669;
}

.customer-project-card__metrics {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.customer-project-card__metrics div {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #eef2f6;
  border-radius: 8px;
  background: #fbfcfe;
  display: grid;
  align-content: start;
  gap: 4px;
}

.customer-project-card__metrics span {
  color: #667085;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
}

.customer-project-card__metrics strong {
  color: #374151;
  font-size: 14px;
  line-height: 22px;
  font-weight: 800;
}

.customer-project-progress {
  height: 8px;
  border-radius: 999px;
  background: #e1e5eb;
  overflow: hidden;
}

.customer-project-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #007aff;
}

.customer-contracts-panel {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.customer-contracts-panel h2 {
  margin: 0;
  min-height: 64px;
  padding: 18px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #101828;
  font-size: 17px;
  line-height: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
}

.customer-contract-table-wrap {
  margin: 18px 24px 24px;
  border: 1px solid #eef2f6;
  border-radius: 8px;
  background: #fff;
  overflow-x: auto;
}

.customer-contract-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  table-layout: fixed;
}

.customer-contract-table th,
.customer-contract-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #eef0f3;
  color: #1f2937;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  text-align: left;
}

.customer-contract-table th {
  padding-top: 16px;
  padding-bottom: 16px;
  background: #f8fafc;
  color: #667085;
  font-size: 12px;
  line-height: 18px;
  font-weight: 800;
}

.customer-contract-table tbody tr:last-child td {
  border-bottom: 0;
}

.customer-contract-table td strong {
  font-weight: 800;
}

.customer-contract-table td a {
  color: #007aff;
  font-size: 13px;
  line-height: 20px;
  font-weight: 800;
  text-decoration: none;
}

.customer-contract-status {
  min-width: 64px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 18px;
  font-weight: 800;
}

.customer-contract-status--active {
  background: #d1fae5;
  color: #059669;
}

.customer-contract-status--expired {
  background: #fee2e2;
  color: #ef233c;
}

.customer-history-panel {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.customer-history-panel h2 {
  margin: 0;
  min-height: 64px;
  padding: 18px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #101828;
  font-size: 17px;
  line-height: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
}

.customer-history-list {
  margin: 18px 24px 24px;
  border: 1px solid #eef2f6;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.customer-history-item {
  min-height: 88px;
  padding: 16px;
  border-bottom: 1px solid #eef2f6;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.customer-history-item:last-child {
  border-bottom: 0;
}

.customer-history-item__icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #eef6ff;
  color: #0b84ee;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
}

.customer-history-item h3 {
  margin: 0 0 6px;
  color: #1f2937;
  font-size: 15px;
  line-height: 22px;
  font-weight: 800;
}

.customer-history-item p {
  margin: 0 0 4px;
  color: #4b5563;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
}

.customer-history-item time {
  color: #667085;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.customer-project-create-modal {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.customer-project-create-modal__header {
  min-height: 98px;
  padding: 0 30px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.customer-project-create-modal__header h2 {
  margin: 0;
  color: #101828;
  font-size: 30px;
  line-height: 40px;
  font-weight: 800;
}

.customer-project-create-modal__close {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #667085;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.customer-project-create-modal__body {
  padding: 30px;
  overflow-y: auto;
}

.customer-project-create-alert {
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid #b7d7ff;
  border-radius: 10px;
  background: #eef8ff;
  color: #1d4ed8;
  font-size: 19px;
  line-height: 28px;
  font-weight: 700;
}

.customer-project-create-form {
  display: grid;
  gap: 24px;
}

.customer-project-create-field {
  display: grid;
  gap: 10px;
}

.customer-project-create-field span {
  color: #344054;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
}

.customer-project-create-field b {
  margin-left: 4px;
  color: #ef233c;
}

.customer-project-create-field input,
.customer-project-create-field select {
  width: 100%;
  height: 54px;
  padding: 0 20px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
  color: #101828;
  font-size: 18px;
  line-height: 26px;
  font-weight: 500;
}

.customer-project-create-field select {
  background-color: #f3f4f6;
  color: #667085;
}

.customer-project-create-field input::placeholder {
  color: #98a2b3;
}

.customer-project-create-field small {
  margin-top: -4px;
  color: #667085;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
}

.customer-project-create-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.customer-project-create-modal__footer {
  min-height: 94px;
  padding: 20px 30px;
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.customer-project-create-cancel,
.customer-project-create-submit {
  min-width: 128px;
  height: 54px;
  border-radius: 10px;
  font-size: 19px;
  line-height: 28px;
  font-weight: 700;
  cursor: pointer;
}

.customer-project-create-cancel {
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #344054;
}

.customer-project-create-submit {
  border: 0;
  background: #4f83ff;
  color: #fff;
}

.customer-edit-modal {
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.customer-edit-modal__header {
  min-height: 94px;
  padding: 0 30px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.customer-edit-modal__header h2 {
  margin: 0;
  color: #101828;
  font-size: 30px;
  line-height: 40px;
  font-weight: 800;
}

.customer-edit-modal__close {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #667085;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.customer-edit-modal__body {
  padding: 30px;
  overflow-y: auto;
}

.customer-edit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
}

.customer-edit-field {
  display: grid;
  gap: 10px;
}

.customer-edit-field--full {
  grid-column: 1 / -1;
}

.customer-edit-field span {
  color: #344054;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
}

.customer-edit-field input,
.customer-edit-field select,
.customer-edit-field textarea {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
  color: #101828;
  font-size: 18px;
  line-height: 26px;
  font-weight: 500;
}

.customer-edit-field input,
.customer-edit-field select {
  height: 54px;
  padding: 0 20px;
}

.customer-edit-field select {
  background-color: #f3f4f6;
}

.customer-edit-field textarea {
  min-height: 128px;
  padding: 16px 20px;
  resize: vertical;
}

.customer-edit-modal__footer {
  min-height: 94px;
  padding: 20px 30px;
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.customer-edit-cancel,
.customer-edit-submit {
  min-width: 128px;
  height: 54px;
  border-radius: 10px;
  font-size: 19px;
  line-height: 28px;
  font-weight: 700;
  cursor: pointer;
}

.customer-edit-cancel {
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #344054;
}

.customer-edit-submit {
  border: 0;
  background: #4f83ff;
  color: #fff;
}

.customer-registration-modal {
  width: 688px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  border-radius: 6px;
  overflow: hidden;
}

.customer-registration-modal .modal-card__header {
  min-height: 68px;
  padding: 0 20px;
  border-bottom: 1px solid #e5e7eb;
}

.customer-registration-modal .modal-card__header h2 {
  color: #101828;
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
  letter-spacing: 0;
}

.customer-registration-modal .modal-card__close {
  width: 36px;
  height: 36px;
  color: #667085;
  font-size: 24px;
  line-height: 1;
}

.customer-registration-modal > .modal-card__body {
  padding: 19px 20px 18px;
}

.customer-registration-modal__body {
  padding: 19px 20px 18px;
  overflow-y: auto;
}

.customer-registration-modal .modal-card__lead {
  margin-bottom: 16px;
}

.customer-registration-modal .choice-grid {
  gap: 13px;
  margin-bottom: 0;
}

.customer-registration-modal .choice-card {
  padding: 18px;
  border-width: 1px;
  border-radius: 8px;
  gap: 8px;
}

.customer-registration-modal .choice-card strong {
  font-size: 15px;
}

.customer-registration-modal .choice-card span:last-child {
  font-size: 12px;
}

.customer-registration-modal .choice-card__icon {
  width: 44px;
  height: 44px;
  font-size: 18px;
}

.customer-registration-modal .modal-form {
  display: grid;
  gap: 18px;
}

.customer-registration-modal .modal-form__section {
  margin: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid #e5e7eb;
}

.customer-registration-modal .modal-form__section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.customer-registration-modal .modal-form__section h3 {
  margin: 0 0 12px;
  color: #101828;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.customer-registration-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.customer-registration-grid .form-grid__full {
  grid-column: 1 / -1;
}

.customer-registration-modal .field {
  gap: 7px;
}

.customer-registration-modal .field__label {
  color: #364153;
  font-size: 12px;
  line-height: 17px;
  font-weight: 600;
}

.customer-registration-modal .field__required {
  margin-left: 3px;
  color: #ef233c;
  font-size: 10px;
  font-weight: 800;
}

.customer-registration-modal .field__input,
.customer-registration-modal .field__textarea {
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  color: #364153;
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
}

.customer-registration-modal .field__input {
  height: 34px;
  padding: 0 13px;
}

.customer-registration-modal .field__textarea {
  min-height: 92px;
  padding: 10px 13px;
  resize: vertical;
}

.customer-registration-modal .field__input::placeholder,
.customer-registration-modal .field__textarea::placeholder {
  color: #98a2b3;
}

.customer-registration-modal .field__input--select {
  background-color: #f3f4f6;
  border-color: #f3f4f6;
  color: #8c96a3;
  background-position: calc(100% - 17px) 14px, calc(100% - 11px) 14px;
}

.customer-segment {
  display: grid;
  gap: 8px;
}

.customer-segment--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-segment--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.customer-segment__button {
  height: 34px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.customer-segment__button.is-active {
  border-color: #3b82f6;
  background: #eff6ff;
  color: #3b82f6;
}

.customer-registration-modal .modal-card__footer {
  min-height: 76px;
  padding: 16px 20px;
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
}

.customer-registration-modal .modal-card__footer .button {
  min-width: 96px;
  font-weight: 700;
}

.customer-registration-page {
  padding-top: 18px;
}

.customer-registration-page > .back-link,
.customer-registration-page-card {
  margin-left: auto;
  margin-right: auto;
}

.customer-registration-page > .back-link {
  width: 1120px;
  max-width: 100%;
}

.customer-registration-page-card {
  width: 1120px;
  max-width: 100%;
  max-height: none;
  margin-top: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.customer-registration-page-card__head {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.customer-registration-page-card__head h1 {
  margin: 0 0 4px;
  color: #101828;
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
}

.customer-registration-page-card__head p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
}

.master-register-usage-links {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  color: #667085;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
}

.master-register-usage-links a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 700;
}

.master-register-usage-links a:hover {
  text-decoration: underline;
}

.customer-registration-page-card__footer {
  min-height: auto;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid #e5e7eb;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.customer-registration-page-card__footer .button {
  min-width: 96px;
  font-weight: 700;
}

.dashboard-goal-form {
  display: block;
}

.dashboard-goal-form__body {
  display: grid;
  gap: 24px;
}

.dashboard-goal-section {
  display: grid;
  gap: 14px;
}

.dashboard-goal-section + .dashboard-goal-section {
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.dashboard-goal-section h3 {
  margin: 0;
  color: #101828;
  font-size: 15px;
  line-height: 22px;
  font-weight: 700;
}

.dashboard-goal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.dashboard-goal-grid .field {
  min-width: 0;
}

.dashboard-goal-grid .customer-form-field--full {
  grid-column: 1 / -1;
}

.performance-coefficients-list {
  width: 1120px;
  max-width: 100%;
  margin: 24px auto 0;
  padding: 18px;
}

.project-activity-form {
  display: block;
}

.project-activity-form__body {
  display: grid;
  gap: 12px;
}

.project-activity-form__field {
  display: grid;
  gap: 12px;
}

.project-activity-form__textarea {
  min-height: 260px;
  height: auto;
  padding: 18px;
  resize: vertical;
  line-height: 1.7;
}

.project-activity-form__note {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
}

.table-link {
  color: var(--link);
  font-size: 14px;
}

.table-link:hover,
.back-link:hover {
  color: #2563eb;
}

.pill--neutral {
  background: #e5e7eb;
  color: #364153;
}

.pill--info {
  background: #dbeafe;
  color: #1e40af;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}

.modal-card {
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(209, 213, 220, 0.8);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.modal-card--wide {
  max-width: 720px;
}

.modal-card--project {
  width: 688px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  border-radius: 6px;
}

.modal-card--project .modal-card__header {
  min-height: 68px;
  padding: 0 20px;
}

.modal-card--project .modal-card__header h2 {
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
  color: #101828;
}

.modal-card--project .modal-card__close {
  width: 36px;
  height: 36px;
  font-size: 24px;
  color: #6a7282;
}

.modal-card--project .modal-card__body {
  padding: 19px 20px 18px;
}

.modal-card--project .modal-form__section {
  margin: 0;
}

.modal-card--project .form-grid {
  grid-template-columns: 1fr;
  gap: 13px;
}

.modal-card--project .form-grid__full {
  grid-column: auto;
}

.modal-card--project .field {
  gap: 7px;
}

.modal-card--project .field__label {
  font-size: 12px;
  line-height: 17px;
  font-weight: 600;
  color: #364153;
}

.modal-card--project .field__required {
  margin-left: 3px;
  font-size: 10px;
}

.modal-card--project .field__input {
  height: 34px;
  padding: 0 13px;
  border-radius: 8px;
  border-color: #e5e7eb;
  color: #364153;
  font-size: 13px;
  line-height: 20px;
}

.modal-card--project .field__textarea {
  min-height: 92px;
  padding: 10px 13px;
  border-radius: 8px;
  border-color: #e5e7eb;
  color: #364153;
  font-size: 13px;
  line-height: 20px;
}

.modal-card--project .field__input::placeholder,
.modal-card--project .field__textarea::placeholder {
  color: #8c96a3;
}

.modal-card--project .field__input--select {
  background-color: #f3f4f6;
  border-color: #f3f4f6;
  color: #8c96a3;
  background-position: calc(100% - 17px) 14px, calc(100% - 11px) 14px;
}

.modal-card--project input[type="file"].field__input {
  padding: 6px 13px;
}

.modal-card--project .modal-card__footer {
  min-height: 76px;
  padding: 16px 20px;
  background: #f8fafc;
}

.modal-card--project .modal-card__footer .button {
  min-width: 96px;
}

.modal-card--lost-reason {
  max-width: 560px;
}

.modal-card__header,
.modal-card__footer {
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.modal-card__footer {
  border-top: 1px solid var(--border);
  border-bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-card__header h2 {
  margin: 0;
  font-size: 20px;
}

.modal-card__close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.modal-card__close:hover {
  background: #f3f4f6;
}

.modal-card__body {
  padding: 24px 32px 32px;
  overflow: auto;
}

.modal-card__lead {
  margin: 0 0 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.choice-grid,
.form-grid,
.detail-grid {
  display: grid;
  gap: 16px;
}

.choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 24px;
}

.choice-card {
  padding: 24px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  display: grid;
  justify-items: center;
  gap: 12px;
  cursor: pointer;
}

.choice-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.choice-card strong {
  font-size: 18px;
}

.choice-card span:last-child {
  font-size: 14px;
  color: var(--text-muted);
}

.choice-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.choice-card__icon--blue {
  background: #dbeafe;
  color: var(--link);
}

.choice-card__icon--green {
  background: #dcfce7;
  color: var(--success);
}

.modal-form__section h3 {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
}

.form-section--padded {
  padding: 0 24px 24px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid__full {
  grid-column: 1 / -1;
}

.back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  color: var(--link);
  font-size: 14px;
  font-weight: 500;
}

.detail-panel {
  padding-bottom: 24px;
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 24px;
}

.detail-grid div {
  display: grid;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.detail-grid strong {
  font-size: 13px;
  color: var(--text-muted);
}

.detail-grid span {
  font-size: 14px;
  color: var(--text);
}

.project-detail-page {
  padding-top: 24px;
}

.project-detail-back {
  margin-bottom: 18px;
  color: #3b82f6;
}

.project-detail-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.project-detail-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.project-detail-title-row h1 {
  margin: 0;
  color: #111827;
  font-size: 26px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: 0;
}

.project-detail-meta {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
}

.project-detail-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.project-detail-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f3f4f6;
}

.project-detail-tabs a {
  position: relative;
  flex: 1 1 0;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 7px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.project-detail-tabs a:hover {
  background: rgba(255, 255, 255, 0.62);
}

.project-detail-tabs a.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.quote-detail-tabs {
  max-width: 420px;
}

.quote-duplicate-form {
  display: inline-flex;
  margin: 0;
}

.quote-pdf-preview {
  position: relative;
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 0 24px 24px;
  cursor: zoom-in;
}

.quote-pdf-preview iframe {
  width: 100%;
  height: min(1180px, calc(100vw * 1.36));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f8fafc;
  pointer-events: none;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
}

.quote-pdf-preview__hint {
  position: absolute;
  right: 44px;
  bottom: 44px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.86);
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  pointer-events: none;
}

.detail-section {
  padding: 24px;
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.detail-section h2 {
  margin: 0 0 20px;
  color: #111827;
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
}

.project-detail-page .detail-section {
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.project-detail-page .detail-section h2 {
  min-height: 56px;
  margin: 0;
  padding: 16px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #101828;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  line-height: 24px;
  font-weight: 800;
}

.project-detail-page .detail-section h2::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 999px;
  background: #0b84ee;
  flex: 0 0 auto;
}

.detail-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.detail-section__head h2 {
  margin-bottom: 0;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 80px;
  row-gap: 16px;
}

.project-detail-page .project-detail-grid {
  padding: 22px 24px 24px;
  gap: 14px;
}

.detail-field {
  min-height: 42px;
  display: grid;
  align-content: start;
  gap: 6px;
}

.project-detail-page .detail-field {
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid #eef2f6;
  border-radius: 8px;
  background: #fff;
}

.detail-field--wide {
  grid-column: 1 / -1;
}

.detail-field--empty {
  display: block;
}

.project-detail-page .detail-field--empty {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.detail-field span {
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
}

.detail-field strong {
  color: #374151;
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
}

.detail-value-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-value-with-icon svg {
  width: 16px;
  height: 16px;
  color: #6b7280;
  flex: 0 0 auto;
}

.project-detail-link {
  color: #3b82f6;
  font-size: 14px;
  font-weight: 600;
}

.activity-section {
  margin-bottom: 0;
}

.activity-history-panel {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.activity-history-panel__header {
  min-height: 64px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.activity-history-panel__header h2 {
  margin: 0;
  color: #111827;
  font-size: 17px;
  line-height: 24px;
  font-weight: 800;
}

.activity-history-list {
  display: grid;
  margin: 18px 24px 24px;
  border: 1px solid #eef2f6;
  border-radius: 8px;
  overflow: hidden;
}

.activity-history-item {
  min-height: 88px;
  padding: 16px;
  border-bottom: 1px solid #eef2f6;
  background: #fff;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
}

.activity-history-empty {
  padding: 24px;
  background: #fff;
  color: #667085;
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
  text-align: center;
}

.activity-history-item:last-child {
  border-bottom: 0;
}

.activity-history-item__icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.activity-history-item__icon svg {
  width: 18px;
  height: 18px;
}

.activity-history-item__icon.is-memo {
  background: #dbeafe;
  color: #3b82f6;
}

.activity-history-item__icon.is-update {
  background: #e5e7eb;
  color: #6b7280;
}

.activity-history-item__body {
  min-width: 0;
  padding-top: 2px;
}

.activity-history-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.activity-history-item__meta strong {
  color: #374151;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.activity-history-item__meta time {
  color: #6b7280;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
}

.activity-history-item__meta span {
  min-height: 22px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #dbeafe;
  color: #3b82f6;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
}

.activity-history-item__title {
  margin: 0 0 4px;
  color: #374151;
  font-size: 14px;
  line-height: 22px;
  font-weight: 700;
}

.activity-history-item__text {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  white-space: pre-line;
}

.document-panel {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.document-panel__header {
  min-height: 64px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.document-panel__header h2 {
  margin: 0;
  color: #111827;
  font-size: 17px;
  line-height: 24px;
  font-weight: 800;
}

.document-list {
  display: grid;
  margin: 18px 24px 24px;
  border: 1px solid #eef2f6;
  border-radius: 8px;
  overflow: hidden;
}

.document-item {
  min-height: 64px;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid #eef2f6;
  border-radius: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.document-item:last-child {
  border-bottom: 0;
}

.document-item__body {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.document-item__icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #eef6ff;
  align-items: center;
  justify-content: center;
  display: inline-flex;
  color: #0b84ee;
  flex: 0 0 auto;
}

.document-item__icon svg {
  width: 18px;
  height: 18px;
}

.document-item strong {
  display: block;
  color: #4b5563;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.document-item p {
  margin: 2px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}

.document-item__download {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  color: #3b82f6;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.document-item__download:disabled {
  color: #9ca3af;
  cursor: not-allowed;
}

.project-edit-page {
  padding-top: 18px;
}

.project-edit-page > .back-link,
.project-edit-head,
.project-edit-card {
  width: 1120px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.project-edit-head {
  margin-bottom: 16px;
}

.project-edit-head h1 {
  margin: 0 0 4px;
  color: #111827;
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
}

.project-edit-head p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
}

.project-edit-card {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.project-edit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.project-edit-form > .form-grid__full,
.project-edit-form > .project-edit-split,
.project-edit-form > .profit-ratio-box {
  grid-column: 1 / -1;
}

.project-edit-field {
  gap: 7px;
}

.project-edit-field .field__label {
  color: #364153;
  font-size: 12px;
  line-height: 17px;
  font-weight: 600;
}

.project-edit-field .field__input {
  height: 34px;
  padding: 0 13px;
  border-radius: 8px;
  border-color: #e5e7eb;
  color: #364153;
  font-size: 13px;
  line-height: 20px;
}

.project-edit-field .field__input::placeholder {
  color: #8c96a3;
}

.project-edit-field .field__input--select {
  background-color: #f3f4f6;
  border-color: #f3f4f6;
  color: #364153;
  background-position: calc(100% - 17px) 14px, calc(100% - 11px) 14px;
}

.project-edit-required {
  color: var(--danger);
}

.project-edit-hint {
  color: #6b7280;
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
}

.project-edit-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.profit-ratio-box {
  margin-top: 0;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f9fafb;
}

.profit-ratio-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.profit-ratio-box__head h2 {
  margin: 0;
  color: #111827;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.profit-ratio-box__head span {
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
}

.profit-ratio-box p {
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
}

.profit-ratio-box a {
  display: inline-flex;
  margin-top: 10px;
  color: #3b82f6;
  font-size: 12px;
  font-weight: 700;
}

.profit-ratio-box small {
  display: block;
  margin-top: 10px;
  color: #6b7280;
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
}

.project-edit-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.quote-create-overlay {
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.42);
}

.quote-create-modal {
  width: 688px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  border-radius: 6px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.quote-create-page,
.contract-create-page {
  padding-top: 18px;
}

.advertising-application-page {
  padding-top: 18px;
}

.quote-create-page > .back-link,
.contract-create-page > .back-link,
.advertising-application-page > .back-link,
.quote-create-modal--page,
.contract-create-modal--page,
.advertising-application-modal--page {
  margin-left: auto;
  margin-right: auto;
}

.quote-create-page > .back-link,
.contract-create-page > .back-link,
.advertising-application-page > .back-link {
  width: 1120px;
  max-width: 100%;
}

.quote-create-modal--page {
  width: 1120px;
  max-width: 100%;
  max-height: none;
  margin-top: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.quote-create-modal--page .quote-create-modal__body {
  overflow: visible;
}

.quote-create-modal--page .quote-create-modal__header {
  min-height: auto;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--border);
}

.quote-create-modal--page .quote-create-modal__header h2,
.contract-create-modal--page .contract-create-modal__header h2,
.advertising-application-modal--page .advertising-application-modal__header h2 {
  color: #101828;
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
}

.quote-create-modal--page .quote-create-modal__body {
  padding: 18px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.quote-create-modal--page .quote-project-select,
.quote-create-modal--page .quote-create-split,
.quote-create-modal--page .quote-create-divider,
.quote-create-modal--page .quote-amount-section,
.quote-create-modal--page .quote-create-field:has(.quote-create-textarea) {
  grid-column: 1 / -1;
}

.quote-create-modal--page .quote-create-modal__footer {
  min-height: auto;
  padding: 16px 0 0;
  background: transparent;
}

.quote-create-modal__header {
  min-height: 68px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.quote-create-modal__header h2 {
  margin: 0;
  color: #101828;
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
}

.quote-create-modal__close {
  width: 36px;
  height: 36px;
  color: #6a7282;
  font-size: 24px;
  line-height: 1;
}

.quote-create-modal__body {
  padding: 19px 20px 18px;
  overflow-y: auto;
  display: grid;
  gap: 13px;
}

.quote-auto-box {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f9fafb;
}

.quote-auto-box h3 {
  margin: 0 0 16px;
  color: #374151;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.quote-auto-box__row {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.quote-auto-box__row span,
.quote-create-field .field__label {
  color: #364153;
  font-size: 12px;
  line-height: 17px;
  font-weight: 600;
}

.quote-auto-box__row strong {
  color: #374151;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.quote-required {
  color: var(--danger);
}

.quote-create-field {
  gap: 7px;
}

.quote-create-field .field__input {
  height: 34px;
  padding: 0 13px;
  border-radius: 8px;
  color: #364153;
  font-size: 13px;
  line-height: 20px;
}

.quote-create-field .field__input,
.quote-create-field .field__textarea {
  border-color: #e5e7eb;
}

.quote-create-field .field__input::placeholder,
.quote-create-field .field__textarea::placeholder {
  color: #8c96a3;
}

.quote-create-field .field__input--select {
  background-color: #f3f4f6;
  border-color: #f3f4f6;
  color: #8c96a3;
  background-position: calc(100% - 17px) 14px, calc(100% - 11px) 14px;
}

.quote-create-hint {
  color: #6b7280;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
}

.quote-total-box {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f9fafb;
}

.quote-total-box div {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}

.quote-total-box div:last-child {
  border-bottom: 0;
}

.quote-total-box span,
.quote-total-box strong {
  color: #374151;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.quote-total-box__grand span {
  font-size: 18px;
  font-weight: 800;
}

.quote-total-box__grand strong {
  color: #2f49b8;
  font-size: 28px;
  line-height: 36px;
  font-weight: 800;
}

.quote-create-textarea {
  min-height: 92px;
  padding: 10px 13px;
  border-radius: 8px;
  color: #364153;
  font-size: 13px;
  line-height: 20px;
}

.quote-file-control {
  position: relative;
  min-height: 34px;
  padding: 4px 6px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.quote-file-control input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.quote-file-button {
  min-height: 26px;
  padding: 0 12px;
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  background: #fff;
}

.quote-file-name {
  color: #667085;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
}

.quote-create-modal__footer {
  min-height: 76px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.quote-create-cancel,
.quote-create-submit {
  min-width: 96px;
  border-radius: var(--radius);
  font-size: 14px;
}

.quote-create-modal--list .quote-create-modal__body {
  gap: 13px;
}

.quote-project-select {
  padding: 12px 13px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  display: grid;
  gap: 8px;
}

.quote-project-select p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
}

.quote-create-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.quote-create-divider {
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--border);
}

.quote-amount-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.quote-amount-section h3 {
  grid-column: 1 / -1;
  margin: 0;
  color: #111827;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.quote-simple-total {
  grid-column: 1 / -1;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.quote-simple-total span {
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.quote-simple-total strong {
  color: #3b82f6;
  font-size: 16px;
  line-height: 24px;
  font-weight: 800;
}

.advertising-application-overlay {
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.42);
}

.advertising-application-modal {
  width: min(1120px, calc(100vw - 96px));
  max-height: calc(100vh - 76px);
  border-radius: var(--radius);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.advertising-application-modal__header {
  min-height: 84px;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.advertising-application-modal__header h2 {
  margin: 0;
  color: #111827;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

.advertising-application-modal__close {
  width: 36px;
  height: 36px;
  color: #6b7280;
  font-size: 32px;
  line-height: 1;
}

.advertising-application-modal__body {
  padding: 32px;
  overflow-y: auto;
  display: grid;
  gap: 28px;
}

.ad-application-section {
  display: grid;
  gap: 20px;
}

.ad-application-section + .ad-application-section {
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.ad-application-section h3 {
  margin: 0;
  color: #111827;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}

.ad-application-grid {
  display: grid;
  gap: 24px;
}

.ad-application-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ad-application-field {
  gap: 8px;
}

.ad-application-field .field__label {
  color: #374151;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.ad-application-field .field__input {
  height: 42px;
  color: #111827;
  font-size: 14px;
}

.ad-application-hint {
  color: #6b7280;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
}

.ad-file-control {
  position: relative;
  min-height: 56px;
  padding: 8px 10px;
  border: 1px solid #cfd6e2;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}

.ad-file-control input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.ad-file-button {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: #3b82f6;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.ad-file-name {
  color: #111827;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.ad-size-control {
  display: grid;
  grid-template-columns: minmax(80px, 144px) auto minmax(80px, 144px) auto;
  align-items: center;
  gap: 12px;
}

.ad-size-control span {
  color: #6b7280;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.ad-application-half {
  max-width: calc(50% - 12px);
}

.advertising-application-modal__footer {
  min-height: 82px;
  padding: 20px 32px;
  border-top: 1px solid var(--border);
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.ad-application-cancel,
.ad-application-submit {
  height: 42px;
  min-width: 104px;
  border-radius: var(--radius);
  font-size: 14px;
}

.contract-create-overlay {
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.42);
}

.contract-detail-page {
  padding-top: 24px;
}

.contract-detail-back {
  margin-bottom: 18px;
  color: #3b82f6;
}

.contract-detail-hero {
  min-height: 96px;
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.contract-detail-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.contract-detail-code {
  color: #667085;
  font-size: 14px;
  line-height: 20px;
  font-weight: 900;
}

.contract-detail-hero h1 {
  margin: 0;
  color: #101828;
  font-size: 22px;
  line-height: 30px;
  font-weight: 900;
}

.contract-detail-hero p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 22px;
  font-weight: 700;
}

.contract-detail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.contract-detail-tabs {
  margin-bottom: 28px;
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f3f4f6;
}

.contract-detail-tabs a {
  position: relative;
  flex: 1 1 0;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 7px;
  color: #4b5563;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.contract-detail-tabs a:hover {
  background: rgba(255, 255, 255, 0.62);
}

.contract-detail-tabs a.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.contract-detail-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.contract-detail-card h2 {
  min-height: 64px;
  margin: 0;
  padding: 18px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #101828;
  display: flex;
  align-items: center;
  font-size: 18px;
  line-height: 26px;
  font-weight: 900;
}

.contract-detail-grid {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 80px;
}

.contract-detail-field {
  display: grid;
  gap: 8px;
}

.contract-detail-field--full {
  grid-column: 1 / -1;
}

.contract-detail-field span {
  color: #667085;
  font-size: 14px;
  line-height: 20px;
  font-weight: 800;
}

.contract-detail-field strong {
  color: #101828;
  font-size: 16px;
  line-height: 24px;
  font-weight: 800;
}

.contract-detail-note,
.contract-detail-empty {
  padding: 18px 20px;
  border-radius: 8px;
  background: #f8fafc;
  display: block;
}

.contract-detail-empty {
  margin: 24px;
  color: #667085;
  font-size: 14px;
  line-height: 22px;
  font-weight: 700;
}

.contract-application-detail-list {
  padding: 24px;
  border-bottom: 1px solid #e5e7eb;
  display: grid;
  gap: 12px;
}

.contract-application-detail-list__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

.contract-application-detail-item {
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 18px;
}

.contract-application-detail-item__top {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.contract-application-detail-item__top strong {
  color: #101828;
  font-size: 15px;
  line-height: 22px;
  font-weight: 800;
}

.contract-application-detail-item__main p,
.contract-application-detail-item__main small {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
}

.contract-application-detail-item__main small {
  display: block;
  margin-top: 6px;
  color: #344054;
}

.contract-application-detail-item__meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.contract-application-detail-item__meta div {
  display: grid;
  gap: 2px;
}

.contract-application-detail-item__meta dt,
.contract-application-detail-item__meta dd {
  margin: 0;
}

.contract-application-detail-item__meta dt {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.contract-application-detail-item__meta dd {
  color: #101828;
  font-size: 13px;
  font-weight: 800;
}

.contract-application-type-choice {
  padding: 24px;
  border-bottom: 1px solid #e5e7eb;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contract-application-type-choice a {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #344054;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.contract-application-type-choice a:hover {
  border-color: #3b82f6;
  background: #eff6ff;
  color: #0b84ff;
}

.contract-application-edit-form {
  padding: 24px;
}

.contract-application-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.contract-application-edit-full {
  grid-column: 1 / -1;
}

.contract-application-type-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.contract-application-edit-actions {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
}

.contract-application-page__textarea {
  min-height: 170px;
}

.contract-application-page__textarea--short {
  min-height: 138px;
}

.contract-history-list,
.contract-file-list {
  margin: 18px 24px 24px;
  border: 1px solid #eef2f6;
  border-radius: 8px;
  overflow: hidden;
}

.contract-history-item,
.contract-file-item {
  min-height: 72px;
  padding: 14px 16px;
  border-bottom: 1px solid #eef2f6;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.contract-history-item:last-child,
.contract-file-item:last-child {
  border-bottom: 0;
}

.contract-history-item strong,
.contract-file-item strong {
  display: block;
  color: #1f2937;
  font-size: 14px;
  line-height: 22px;
  font-weight: 800;
}

.contract-history-item p,
.contract-file-item p {
  margin: 4px 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
}

.contract-history-item span,
.contract-history-item time,
.contract-file-item a {
  color: #667085;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.contract-file-item a {
  color: #0b84ee;
  text-decoration: none;
}

.contract-file-manager__header {
  min-height: 88px;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.contract-file-manager__header h2 {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #101828;
  display: block;
  font-size: 18px;
  line-height: 26px;
  font-weight: 900;
}

.contract-file-manager__header p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
}

.contract-file-upload-button input,
.contract-file-dropzone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.contract-file-upload-button,
.contract-file-dropzone {
  position: relative;
}

.contract-file-upload-button label {
  cursor: pointer;
}

.contract-file-dropzone {
  margin: 24px 24px 18px;
}

.contract-file-dropzone label {
  min-height: 150px;
  padding: 28px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #344054;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.contract-file-dropzone label:hover {
  border-color: #0b84ee;
  background: #f0f7ff;
}

.contract-file-dropzone__icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #e8f2ff;
  color: #0b84ee;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.contract-file-dropzone strong {
  color: #101828;
  font-size: 16px;
  line-height: 24px;
  font-weight: 900;
}

.contract-file-dropzone small {
  color: #667085;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
}

.contract-file-summary {
  margin: 0 24px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.contract-file-summary button {
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #667085;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  line-height: 18px;
  font-weight: 800;
  cursor: pointer;
}

.contract-file-summary button.is-active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #0b84ee;
}

.contract-file-filter-empty {
  margin: 0;
  border-radius: 0;
}

.contract-file-manager .contract-file-list {
  margin-top: 0;
}

.contract-file-manager .contract-file-item {
  align-items: center;
}

.contract-file-item__main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.contract-file-item__main > div {
  min-width: 0;
}

.contract-file-item__main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract-file-item__main p {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.contract-file-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 16px;
  font-weight: 900;
}

.contract-file-item__icon.is-pdf {
  background: #fef2f2;
  color: #dc2626;
}

.contract-file-item__icon.is-image {
  background: #ecfdf3;
  color: #039855;
}

.contract-file-item__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.contract-file-item__actions a {
  font-size: 13px;
  line-height: 20px;
  font-weight: 800;
}

.contract-create-modal {
  width: min(1120px, calc(100vw - 96px));
  max-height: calc(100vh - 76px);
  border-radius: var(--radius);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.contract-create-modal--page {
  width: 1120px;
  max-width: 100%;
  max-height: none;
  margin-top: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.contract-create-modal--page .contract-create-modal__body {
  overflow: visible;
}

.advertising-application-modal--page {
  width: 1120px;
  max-width: 100%;
  max-height: none;
  margin-top: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.advertising-application-modal--page .advertising-application-modal__body {
  overflow: visible;
}

.contract-create-modal--page .contract-create-modal__header,
.advertising-application-modal--page .advertising-application-modal__header {
  min-height: auto;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--border);
}

.contract-create-modal--page .contract-create-modal__body,
.advertising-application-modal--page .advertising-application-modal__body {
  padding: 18px 0;
}

.contract-create-modal--page .contract-create-modal__footer,
.advertising-application-modal--page .advertising-application-modal__footer {
  min-height: auto;
  padding: 16px 0 0;
  background: transparent;
}

.contract-create-modal__header {
  min-height: 92px;
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contract-create-modal__header h2 {
  margin: 0;
  color: #111827;
  font-size: 28px;
  line-height: 36px;
  font-weight: 800;
}

.contract-create-modal__close {
  width: 36px;
  height: 36px;
  color: #6b7280;
  font-size: 34px;
  line-height: 1;
}

.contract-create-modal__body {
  padding: 32px;
  overflow-y: auto;
  display: grid;
  gap: 28px;
}

.contract-quote-select {
  padding: 24px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  background: #eff6ff;
  display: grid;
  gap: 12px;
}

.contract-quote-select p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
}

.contract-create-section {
  display: grid;
  gap: 20px;
}

.contract-create-section + .contract-create-section {
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.contract-create-section h3 {
  margin: 0;
  color: #111827;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}

.contract-create-grid {
  display: grid;
  gap: 24px;
}

.contract-create-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contract-type-fields {
  display: grid;
  gap: 20px;
}

.contract-create-field--wide {
  grid-column: 1 / -1;
}

.contract-create-field {
  gap: 8px;
}

.contract-create-field .field__label {
  color: #374151;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.contract-create-field .field__input {
  height: 42px;
  color: #111827;
  font-size: 14px;
}

.contract-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #374151;
  font-size: 16px;
  font-weight: 600;
}

.contract-checkbox input {
  width: 22px;
  height: 22px;
  accent-color: #4b5563;
}

.contract-currency-input {
  position: relative;
  display: block;
}

.contract-currency-input span {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
  z-index: 1;
}

.contract-currency-input .field__input {
  padding-left: 42px;
}

.contract-create-textarea {
  min-height: 132px;
}

.contract-create-textarea--short {
  min-height: 96px;
}

.contract-upload-area {
  position: relative;
  min-height: 190px;
  border: 2px dashed #cfd6e2;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #6b7280;
  text-align: center;
  cursor: pointer;
}

.contract-upload-area input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.contract-upload-area svg {
  width: 42px;
  height: 42px;
  color: #9ca3af;
}

.contract-upload-area strong {
  color: #374151;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.contract-upload-area span {
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
}

.contract-create-modal__footer {
  min-height: 82px;
  padding: 20px 32px;
  border-top: 1px solid var(--border);
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.contract-create-cancel,
.contract-create-submit {
  height: 42px;
  min-width: 104px;
  border-radius: var(--radius);
  font-size: 14px;
}

.contract-create-modal--page .contract-create-modal__header {
  min-height: auto;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--border);
}

.contract-create-modal--page .contract-create-modal__header h2 {
  color: #101828;
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
}

.contract-create-modal--page .contract-create-modal__body {
  padding: 18px 0;
  overflow: visible;
}

.contract-create-modal--page .contract-create-modal__footer {
  min-height: auto;
  padding: 16px 0 0;
  background: transparent;
}

.contract-inbox-page {
  padding-top: 0;
}

.contract-inbox-top-search {
  max-width: 460px;
  margin-bottom: 36px;
}

.contract-inbox-top-search .field__input {
  height: 44px;
  background: #fff;
}

.contract-inbox-back {
  margin-top: 24px;
  margin-bottom: 24px;
}

.contract-inbox-head {
  margin-bottom: 24px;
}

.contract-inbox-head h1 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 28px;
  line-height: 36px;
  font-weight: 800;
}

.contract-inbox-head p {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
}

.contract-inbox-notice {
  margin-bottom: 24px;
}

.contract-inbox-tabs {
  display: flex;
  gap: 28px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.contract-inbox-tabs a {
  position: relative;
  padding: 0 0 14px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
}

.contract-inbox-tabs a.is-active {
  color: #0b84ff;
}

.contract-inbox-tabs a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #0b84ff;
}

.contract-inbox-list-panel {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contract-inbox-list-search {
  margin-bottom: 16px;
}

.contract-inbox-list-search .field__input {
  height: 42px;
}

.contract-application-list {
  display: grid;
  gap: 12px;
}

.contract-application-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  column-gap: 24px;
  row-gap: 16px;
}

.contract-application-card__main {
  min-width: 0;
}

.contract-application-card__id {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.contract-application-card__id strong {
  color: #6b7280;
  font-size: 14px;
  font-weight: 800;
}

.priority-badge {
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.priority-badge.is-high {
  background: #fee2e2;
  color: #ef4444;
}

.priority-badge.is-medium {
  background: #fef3c7;
  color: #d97706;
}

.priority-badge.is-low {
  background: #e0f2fe;
  color: #0369a1;
}

.contract-application-card h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 26px;
  font-weight: 800;
}

.contract-application-card p {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
}

.contract-application-card__amount {
  justify-self: end;
  text-align: right;
}

.contract-application-card__amount strong {
  display: block;
  color: #111827;
  font-size: 22px;
  line-height: 30px;
  font-weight: 800;
}

.contract-application-card__amount time {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.contract-application-card__footer {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.contract-application-card__footer span {
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.contract-application-card__footer a {
  margin-left: auto;
  color: #0b84ff;
  font-size: 14px;
  font-weight: 800;
}

.advertising-page {
  padding-top: 24px;
}

.advertising-head {
  margin-bottom: 24px;
}

.advertising-head h1 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 28px;
  line-height: 36px;
  font-weight: 800;
}

.advertising-head p {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
}

.advertising-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f3f4f6;
}

.advertising-tabs a {
  position: relative;
  flex: 1 1 0;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 7px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.advertising-tabs a:hover {
  background: rgba(255, 255, 255, 0.62);
}

.advertising-tabs a.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.advertising-filter-panel {
  padding: 16px;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px auto;
  gap: 16px;
  align-items: center;
}

.advertising-search .field__input,
.advertising-status-filter .field__input {
  height: 42px;
}

.advertising-table-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.advertising-table th,
.advertising-table td {
  padding: 18px 24px;
  white-space: nowrap;
}

.advertising-table th {
  color: #6b7280;
  font-size: 13px;
}

.advertising-table td {
  color: #4b5563;
  font-size: 14px;
}

.advertising-table td strong {
  color: #374151;
  font-weight: 800;
}

.ad-status-pill {
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  line-height: 18px;
  font-weight: 800;
}

.ad-status-pill.is-pending {
  background: #fef3c7;
  color: #c2410c;
}

.ad-status-pill.is-approved {
  background: #dcfce7;
  color: #15803d;
}

.ad-status-pill.is-returned {
  background: #fee2e2;
  color: #ef4444;
}

.ad-detail-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.ad-detail-button svg {
  width: 16px;
  height: 16px;
}

.ad-template-filter-panel {
  padding: 16px;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px auto;
  gap: 16px;
  align-items: center;
}

.ad-template-filter-panel .field__input,
.ad-template-new-button {
  height: 42px;
}

.ad-template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.ad-template-card {
  min-height: 316px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 20px;
}

.ad-template-card h2 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 18px;
  line-height: 26px;
  font-weight: 800;
}

.ad-template-category {
  min-height: 26px;
  margin-bottom: 18px;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  background: #dbeafe;
  color: #0b84ff;
  font-size: 12px;
  line-height: 18px;
  font-weight: 800;
}

.ad-template-card p {
  margin: 0 0 18px;
  color: #6b7280;
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
}

.ad-template-meta {
  display: grid;
  gap: 8px;
  margin: 0;
}

.ad-template-meta div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ad-template-meta dt,
.ad-template-meta dd {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
}

.ad-template-meta dd {
  color: #4b5563;
}

.ad-template-card__actions {
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr 40px;
  gap: 8px;
}

.ad-template-card__actions .button {
  height: 36px;
}

.ad-template-create-overlay {
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.42);
}

.ad-template-create-modal {
  width: min(700px, calc(100vw - 64px));
  max-height: calc(100vh - 76px);
  border-radius: var(--radius);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.ad-template-create-modal__header {
  min-height: 92px;
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ad-template-create-modal__header h2 {
  margin: 0;
  color: #111827;
  font-size: 28px;
  line-height: 36px;
  font-weight: 800;
}

.ad-template-create-modal__close {
  width: 36px;
  height: 36px;
  color: #6b7280;
  font-size: 34px;
  line-height: 1;
}

.ad-template-create-modal__body {
  padding: 32px;
  overflow-y: auto;
  display: grid;
  gap: 24px;
}

.ad-template-create-field {
  gap: 10px;
}

.ad-template-create-field .field__label {
  color: #374151;
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
}

.ad-template-create-field .field__input {
  height: 56px;
  color: #111827;
  font-size: 16px;
}

.ad-template-create-textarea {
  min-height: 120px;
}

.ad-template-upload-area {
  position: relative;
  min-height: 190px;
  border: 2px dashed #cfd6e2;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: #6b7280;
  text-align: center;
  cursor: pointer;
}

.ad-template-upload-area input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.ad-template-upload-area svg {
  width: 42px;
  height: 42px;
  color: #6b7280;
}

.ad-template-upload-area strong {
  color: #374151;
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
}

.ad-template-upload-area span {
  color: #6b7280;
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
}

.ad-template-create-modal__footer {
  min-height: 92px;
  padding: 20px 32px;
  border-top: 1px solid var(--border);
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.ad-template-create-cancel,
.ad-template-create-submit {
  height: 52px;
  min-width: 128px;
  border-radius: var(--radius);
  font-size: 18px;
}

.profit-page {
  padding-top: 24px;
}

.profit-head {
  margin-bottom: 24px;
}

.profit-head h1 {
  margin-bottom: 4px;
}

.profit-head p {
  margin: 0;
}

.profit-report-button {
  margin-top: 0;
}

.profit-tabs {
  width: 100%;
}

.profit-tabs a {
  text-decoration: none;
}

.profit-period-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.profit-date-button,
.profit-period-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.profit-date-form {
  min-height: 42px;
  padding: 6px 8px 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #4b5563;
}

.profit-date-form__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  color: #4b5563;
}

.profit-date-form__icon svg {
  width: 18px;
  height: 18px;
}

.profit-date-form label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.profit-date-form input {
  height: 30px;
  min-width: 136px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0 8px;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.profit-date-form button {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: var(--link);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.profit-date-button svg {
  width: 18px;
  height: 18px;
}

.profit-period-button.is-active {
  border-color: var(--link);
  background: var(--link);
  color: #fff;
}

.profit-period-button {
  text-decoration: none;
}

.profit-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.profit-kpi-card {
  min-height: 132px;
  padding: 20px;
}

.profit-kpi-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.profit-kpi-card__head span {
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
}

.profit-kpi-card__head em {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f3f4f6;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 18px;
  font-weight: 800;
}

.profit-kpi-card strong {
  display: block;
  color: #111827;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

.profit-kpi-card p {
  margin: 8px 0 0;
  color: #16a34a;
  font-size: 13px;
  font-weight: 800;
}

.profit-year-summary {
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid #93c5fd;
  border-radius: var(--radius);
  background: #eff6ff;
}

.profit-year-summary h2 {
  margin: 0 0 18px;
  color: #111827;
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
}

.profit-year-summary > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.profit-year-summary article span {
  display: block;
  margin-bottom: 8px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.profit-year-summary article strong {
  color: #3b82f6;
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
}

.profit-chart-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.profit-chart-card h2 {
  margin: 0 0 20px;
  color: #111827;
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
}

.profit-chart {
  padding: 0 8px;
  overflow-x: auto;
}

.profit-chart__plot {
  position: relative;
  height: 330px;
  padding-left: 72px;
  border-bottom: 1px solid #e5e7eb;
  display: grid;
  grid-template-columns: repeat(12, minmax(48px, 1fr));
  align-items: end;
  gap: 18px;
  background-image: linear-gradient(to bottom, #e5e7eb 1px, transparent 1px);
  background-size: calc(100% - 72px) 68px;
  background-position: 72px 0;
  background-repeat: repeat-y;
}

.profit-chart__y {
  position: absolute;
  left: 8px;
  width: 48px;
  color: #6b7280;
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.profit-chart__y.y4 { top: 0; }
.profit-chart__y.y3 { top: 76px; }
.profit-chart__y.y2 { top: 152px; }
.profit-chart__y.y1 { top: 228px; }
.profit-chart__y.y0 { bottom: -6px; }

.profit-chart__group {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 4px;
  position: relative;
}

.profit-chart__bar {
  min-height: 8px;
  border-radius: 4px 4px 0 0;
}

.profit-chart__bar.is-sales,
.profit-chart__legend i.is-sales {
  background: #9ca3af;
}

.profit-chart__bar.is-gross,
.profit-chart__legend i.is-gross {
  background: #6b7280;
}

.profit-chart__bar.is-net,
.profit-chart__legend i.is-net {
  background: #4f7df3;
}

.profit-chart__group strong {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -28px;
  color: #6b7280;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.profit-chart__legend {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  gap: 14px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
}

.profit-chart__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profit-chart__legend i {
  width: 14px;
  height: 14px;
  display: inline-block;
}

.profit-annual-chart {
  position: relative;
  padding: 0 8px;
  overflow-x: auto;
}

.profit-annual-chart svg {
  width: 100%;
  min-width: 1040px;
  height: 320px;
  display: block;
  overflow: visible;
}

.profit-annual-grid line {
  stroke: #e5e7eb;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.profit-annual-axis text {
  fill: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.profit-annual-line {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profit-annual-line.is-sales {
  stroke: #9ca3af;
}

.profit-annual-line.is-gross {
  stroke: #6b7280;
}

.profit-annual-line.is-net {
  stroke: #0b84ff;
}

.profit-annual-points circle {
  fill: #fff;
  stroke-width: 2.2;
}

.profit-annual-points circle.is-sales {
  stroke: #9ca3af;
}

.profit-annual-points circle.is-gross {
  stroke: #6b7280;
}

.profit-annual-points circle.is-net {
  stroke: #0b84ff;
}

.profit-annual-tooltip {
  position: absolute;
  top: 10px;
  left: 30%;
  width: 150px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  display: grid;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
}

.profit-annual-tooltip strong {
  color: #1f2937;
  font-size: 16px;
  font-weight: 800;
}

.profit-annual-tooltip span:last-child {
  color: #0b84ff;
}

.profit-breakdown-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.profit-status-dropdown {
  position: relative;
}

.profit-status-select {
  min-width: 142px;
  height: 42px;
  padding: 0 14px 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  font-weight: 700;
}

.profit-status-select__chevron {
  color: #6b7280;
  font-size: 18px;
  line-height: 1;
}

.profit-status-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  width: 244px;
  padding: 12px 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 18px;
  background: rgba(74, 74, 72, 0.92);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  display: none;
  overflow: hidden;
  z-index: 80;
}

.profit-status-menu.is-open {
  display: block;
}

.profit-status-menu button {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.profit-status-menu button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.profit-status-menu button span {
  width: 18px;
  flex: 0 0 18px;
  font-size: 22px;
  line-height: 1;
}

.profit-breakdown-table-wrap {
  overflow-x: auto;
}

.profit-breakdown-table {
  width: 100%;
  min-width: 1200px;
  border-collapse: collapse;
  table-layout: fixed;
}

.profit-breakdown-table th,
.profit-breakdown-table td {
  padding: 18px 16px;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.profit-breakdown-table th {
  color: #6b7280;
  font-size: 13px;
}

.profit-breakdown-table th,
.profit-breakdown-table td {
  width: 12.5%;
}

.profit-breakdown-table td:nth-child(2) {
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profit-breakdown-table td:nth-child(3) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.profit-breakdown-table a {
  color: #0b84ff;
  font-weight: 800;
}

.profit-breakdown-table .is-number {
  text-align: right;
}

.profit-breakdown-table .is-muted {
  color: #6b7280;
}

.profit-breakdown-table .is-strong {
  color: #111827;
  font-weight: 800;
}

.profit-breakdown-table .is-cost {
  color: #ff3b45;
}

.profit-breakdown-table .is-profit {
  color: #00a65a;
}

.profit-breakdown-table .is-rate {
  color: #0b84ff;
}

.profit-status-badge {
  min-width: 58px;
  min-height: 26px;
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.profit-status-badge--progress {
  background: #dbeafe;
  color: #2563eb;
}

.profit-status-badge--done {
  background: #bbf7d0;
  color: #059669;
}

.profit-breakdown-table__total td {
  border-bottom: 0;
  background: #f9fafb;
  color: #111827;
  font-weight: 800;
}

.profit-breakdown-table__total .is-cost {
  color: #ff3b45;
}

.profit-breakdown-table__total .is-profit {
  color: #00a65a;
}

.profit-breakdown-table__total .is-rate {
  color: #0b84ff;
}

.land-ledger-page {
  padding-top: 24px;
}

.land-ledger-head {
  margin-bottom: 24px;
}

.land-ledger-head h1 {
  margin-bottom: 4px;
}

.land-ledger-head p {
  margin: 0;
}

.land-ledger-primary {
  margin-top: 0;
}

.land-ledger-primary span {
  font-size: 18px;
  line-height: 1;
}

.land-ledger-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.land-ledger-stats article {
  min-height: 104px;
}

.land-ledger-stats span {
  display: block;
  margin-bottom: 8px;
}

.land-ledger-stats strong {
  display: block;
}

.land-ledger-filter {
  margin-bottom: 24px;
}

.land-ledger-search,
.land-ledger-tool-button {
  height: 42px;
}

.land-ledger-search {
  gap: 10px;
  flex: 1 1 auto;
}

.land-ledger-tool-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.land-ledger-search .field__input {
  font-weight: 600;
}

.land-ledger-search .field__input::placeholder {
  color: #9ca3af;
}

.land-ledger-tool-button {
  min-width: 82px;
}

.land-ledger-list {
  display: grid;
  gap: 16px;
}

.land-property-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.land-property-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.land-property-card__top > div:first-child {
  min-width: 0;
}

.land-property-card h2 {
  margin: 0;
  color: #111827;
  display: inline;
  font-size: 16px;
  line-height: 24px;
  font-weight: 800;
}

.land-property-badges {
  margin-left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: 2px;
}

.land-badge {
  min-height: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
}

.land-badge--gray {
  background: #f3f4f6;
  color: #9ca3af;
}

.land-badge--blue {
  background: #dbeafe;
  color: #3b82f6;
}

.land-badge--green {
  background: #dcfce7;
  color: #22c55e;
}

.land-badge--purple {
  background: #ede9fe;
  color: #8b5cf6;
}

.land-badge--yellow {
  background: #fef3c7;
  color: #f59e0b;
}

.land-badge--pink {
  background: #fce7f3;
  color: #ec4899;
}

.land-property-location {
  margin: 8px 0 0;
  color: #6b7280;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
}

.land-property-location svg {
  width: 16px;
  height: 16px;
}

.land-property-detail {
  height: 36px;
  min-width: 118px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.land-property-detail svg {
  width: 16px;
  height: 16px;
}

.land-property-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1.25fr 1.15fr 1.25fr;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.land-property-grid div,
.land-property-period {
  display: grid;
  gap: 6px;
}

.land-property-grid span,
.land-property-period span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
}

.land-property-grid strong,
.land-property-period strong {
  color: #111827;
  font-size: 14px;
  line-height: 20px;
  font-weight: 800;
}

.land-property-period {
  margin-top: 16px;
  width: fit-content;
}

.modal-open {
  overflow: hidden;
}

.land-register-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  padding: 38px;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
}

.land-register-overlay.is-open {
  display: flex;
}

.land-register-choice-modal,
.land-register-modal {
  width: min(100%, 1120px);
  max-height: calc(100vh - 76px);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.land-register-choice-modal {
  width: min(100%, 1000px);
}

.land-register-modal__header {
  min-height: 88px;
  padding: 28px 30px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.land-register-modal__header h2 {
  margin: 0;
  color: #111827;
  font-size: 28px;
  line-height: 36px;
  font-weight: 800;
}

.land-register-close {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #4b5563;
  font-size: 34px;
  line-height: 1;
}

.land-register-choice-modal__body {
  padding: 46px 36px 42px;
}

.land-register-choice-modal__body > p {
  margin: 0 0 38px;
  color: #374151;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
}

.land-register-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.land-register-choice-card {
  min-height: 244px;
  padding: 34px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
}

.land-register-choice-card:hover {
  border-color: #93c5fd;
}

.land-register-choice-icon {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.land-register-choice-icon svg {
  width: 42px;
  height: 42px;
}

.land-register-choice-icon--office {
  background: #dbeafe;
  color: #0b84ff;
}

.land-register-choice-icon--sales {
  background: #bbf7d0;
  color: #059669;
}

.land-register-choice-card strong {
  font-size: 24px;
  line-height: 32px;
  font-weight: 800;
}

.land-register-choice-card small {
  color: #6b7280;
  font-size: 15px;
  font-weight: 700;
}

.land-register-form {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 164px);
}

.land-register-modal__body {
  padding: 36px 30px 42px;
  overflow-y: auto;
}

.land-register-modal__body h3 {
  margin: 28px 0 22px;
  color: #111827;
  font-size: 24px;
  line-height: 32px;
  font-weight: 800;
}

.land-register-modal__body h3:first-child {
  margin-top: 0;
}

.land-register-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
}

.land-register-grid label,
.land-register-radio {
  min-width: 0;
  color: #374151;
  display: grid;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
}

.land-register-grid input,
.land-register-grid select,
.land-register-grid textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 18px;
  font-weight: 500;
}

.land-register-grid textarea {
  min-height: 104px;
  padding-top: 14px;
  resize: vertical;
  line-height: 1.5;
}

.land-register-grid input::placeholder,
.land-register-grid textarea::placeholder {
  color: #9ca3af;
}

.land-register-full {
  grid-column: 1 / -1;
}

.land-register-label-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}

.land-register-label-text em {
  color: #ef4444;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.land-register-label-text em::before {
  content: none;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #ef4444;
}

.land-register-radio {
  border: 0;
  padding: 0;
  margin: 0;
}

.land-register-radio legend {
  margin-bottom: 14px;
}

.land-register-radio label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 20px;
  font-size: 16px;
}

.land-register-radio input {
  width: 18px;
  height: 18px;
  accent-color: #3b82f6;
}

.land-register-upload {
  min-height: 224px;
  padding: 34px;
  border: 2px dashed #d1d5db;
  border-radius: 10px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  color: #6b7280;
  text-align: center;
}

.land-register-upload svg {
  width: 50px;
  height: 50px;
  color: #9ca3af;
}

.land-register-upload strong {
  color: #111827;
  font-size: 18px;
  font-weight: 700;
}

.land-register-upload span {
  font-size: 14px;
  font-weight: 700;
}

.land-register-upload button {
  min-height: 48px;
  margin-top: 4px;
  padding: 0 28px;
  border: 0;
  border-radius: 10px;
  background: #f3f4f6;
  color: #374151;
  font-size: 16px;
  font-weight: 700;
}

.land-register-sales-pdf {
  min-height: 124px;
  margin-top: 10px;
  padding: 22px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 12px;
}

.land-register-sales-pdf button {
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  background: #f3f4f6;
  color: #374151;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
}

.land-register-sales-pdf svg {
  width: 20px;
  height: 20px;
}

.land-register-sales-pdf span {
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
}

.land-register-modal__footer {
  min-height: 90px;
  padding: 20px 30px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.land-register-cancel,
.land-register-submit {
  height: 52px;
  min-width: 136px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 800;
}

.land-register-cancel {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
}

.land-register-submit {
  border: 0;
  background: #9ca3af;
  color: #fff;
}

.land-register-page {
  padding-top: 18px;
}

.land-register-page > .back-link,
.land-register-page-card {
  width: 1120px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.land-register-page-card {
  max-height: none;
  margin-top: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.land-register-page-head {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.land-register-page-head h1 {
  margin: 0 0 4px;
  color: #101828;
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
}

.land-register-page-head p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
}

.land-register-page-card .land-register-modal__body {
  padding: 0;
  overflow: visible;
  display: grid;
  gap: 18px;
}

.land-register-page-card .land-register-modal__body h3 {
  margin: 0 0 -5px;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
  color: #101828;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.land-register-page-card .land-register-modal__body h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.land-register-page-card .land-register-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.land-register-page-card .land-register-grid label,
.land-register-page-card .land-register-radio {
  gap: 7px;
  color: #364153;
  font-size: 12px;
  line-height: 17px;
  font-weight: 600;
}

.land-register-page-card .land-register-grid input,
.land-register-page-card .land-register-grid select,
.land-register-page-card .land-register-grid textarea {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  color: #364153;
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
}

.land-register-page-card .land-register-grid textarea {
  min-height: 92px;
  padding-top: 10px;
  resize: vertical;
}

.land-register-page-card .land-register-grid input::placeholder,
.land-register-page-card .land-register-grid textarea::placeholder {
  color: #98a2b3;
}

.land-register-page-card .land-register-grid select {
  background-color: #f3f4f6;
  border-color: #f3f4f6;
  color: #8c96a3;
}

.land-register-page-card .land-register-label-text em {
  margin-left: 3px;
  color: #ef233c;
  font-size: 10px;
  font-weight: 800;
}

.land-register-page-card .land-register-radio {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.land-register-page-card .land-register-radio legend {
  margin-bottom: 7px;
  color: #364153;
  font-size: 12px;
  line-height: 17px;
  font-weight: 600;
}

.land-register-page-card .land-register-radio label {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
}

.land-register-page-card .land-register-upload {
  min-height: 160px;
  padding: 24px;
  border-color: #d0d5dd;
  border-radius: 8px;
  background: #fff;
}

.land-register-page-card .land-register-modal__footer {
  min-height: auto;
  margin-top: 18px;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
  background: transparent;
}

.land-register-page-card .land-register-cancel,
.land-register-page-card .land-register-submit {
  min-height: 40px;
  height: 40px;
  min-width: 112px;
  border-radius: 8px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.daily-report-page {
  padding-top: 24px;
}

.daily-report-head {
  margin-bottom: 24px;
}

.daily-report-head h1 {
  margin-bottom: 4px;
}

.daily-report-head p {
  margin: 0;
}

.daily-report-tabs {
  width: 100%;
}

.daily-report-tabs a {
  text-decoration: none;
}

.daily-report-panel {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.daily-report-panel h2 {
  margin: 0 0 18px;
  color: #111827;
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
}

.daily-report-list {
  display: grid;
  gap: 10px;
}

.daily-report-card {
  position: relative;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  background: #fff;
}

.daily-report-filter {
  display: grid;
  grid-template-columns: 180px 180px 180px auto auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.daily-report-filter .field__input {
  min-height: 42px;
}

.daily-report-card__main {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
  align-items: center;
}

.daily-report-card__status {
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.daily-report-card__content {
  min-width: 0;
}

.daily-report-card__side {
  min-width: 0;
  display: grid;
  gap: 8px;
  justify-items: end;
}

.daily-report-card__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.daily-report-card__top,
.daily-report-card__body,
.daily-report-card__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.daily-report-card__top {
  margin-bottom: 6px;
}

.daily-report-card__body {
  align-items: stretch;
  flex-direction: column;
  gap: 6px;
}

.daily-report-card__actions {
  justify-content: flex-end;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.daily-report-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.daily-report-card__title strong {
  color: #111827;
  font-size: 16px;
  line-height: 24px;
  font-weight: 800;
}

.daily-report-card__primary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.daily-report-type {
  min-height: 20px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.daily-report-type--blue {
  background: #dbeafe;
  color: #3b82f6;
}

.daily-report-type--yellow {
  background: #fef3c7;
  color: #f59e0b;
}

.daily-report-staff,
.daily-report-counts,
.daily-report-sections span,
.daily-report-readers span {
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.daily-report-staff {
  min-width: 76px;
  margin: 0;
  white-space: nowrap;
}

.daily-report-counts {
  min-width: 118px;
  margin: 0;
  white-space: nowrap;
}

.daily-report-counts strong {
  color: #111827;
  font-size: 15px;
  font-weight: 800;
}

.daily-report-sections {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-bottom: 0;
  overflow: hidden;
}

.daily-report-sections span {
  display: inline;
  margin: 0 4px 0 0;
}

.daily-report-sections p {
  max-width: 220px;
  margin: 0;
  color: #111827;
  display: inline-block;
  vertical-align: bottom;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-report-comment {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
}

.daily-report-comment span {
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
}

.daily-report-comment svg,
.daily-report-readers svg {
  width: 16px;
  height: 16px;
}

.daily-report-comment p {
  margin: 6px 0 0;
  color: #111827;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
}

.daily-report-add-comment {
  min-height: 30px;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.daily-report-readers {
  min-width: 0;
  margin-bottom: 0;
}

.daily-report-readers span {
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f8fafc;
  display: inline-flex;
  align-items: center;
  margin-bottom: 0;
  white-space: nowrap;
}

.daily-report-readers p {
  margin: 0;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}

.daily-report-detail {
  min-height: 30px;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #374151;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.daily-comment-card {
  max-width: 1120px;
}

.daily-comment-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.daily-comment-summary div {
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid #e1e6ee;
  border-radius: 8px;
  background: #f8fafc;
}

.daily-comment-summary span {
  display: block;
  margin-bottom: 6px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.daily-comment-summary strong {
  color: #111827;
  font-size: 15px;
  line-height: 22px;
  font-weight: 800;
}

.daily-comment-summary__wide {
  grid-column: 1 / -1;
}

.contract-cost-card {
  max-width: 1120px;
}

.contract-cost-form .modal-form__section {
  border-bottom: 1px solid #e5e7eb;
}

.contract-cost-rate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

.contract-cost-rate-grid .field__input {
  text-align: right;
}

.contract-cost-check {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

.contract-cost-check input {
  width: 18px;
  height: 18px;
}

.contract-cost-rule {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f8fafc;
  color: #475467;
  font-size: 13px;
  font-weight: 800;
}

.contract-cost-total {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  margin-top: 22px;
  padding: 18px 22px;
  border: 1px solid #ef4444;
  border-radius: 8px;
  background: #fff1f2;
  color: #ef4444;
}

.contract-cost-total span,
.contract-cost-total strong {
  font-size: 18px;
  font-weight: 800;
}

.contract-cost-total small {
  grid-column: 1 / -1;
  font-size: 14px;
  font-weight: 700;
}

.contract-cost-total.is-valid {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #15803d;
}

.daily-sales-layout {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.daily-sales-form-card,
.daily-sales-submitted {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.daily-sales-form-card h2,
.daily-sales-submitted h2 {
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  color: #111827;
  font-size: 22px;
  line-height: 30px;
  font-weight: 800;
}

.daily-sales-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.daily-sales-form label {
  min-width: 0;
  color: #374151;
  display: grid;
  gap: 7px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

.daily-sales-form label span em {
  color: #ef4444;
  font-style: normal;
}

.daily-sales-form input,
.daily-sales-form textarea,
.daily-sales-date {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.daily-sales-form input,
.daily-sales-form textarea {
  padding: 0 13px;
}

.daily-sales-form textarea {
  min-height: 92px;
  padding-top: 10px;
  resize: vertical;
}

.daily-sales-form input::placeholder,
.daily-sales-form textarea::placeholder {
  color: #9ca3af;
}

.daily-sales-date {
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.daily-sales-date svg {
  width: 17px;
  height: 17px;
  color: #6b7280;
}

.daily-sales-date input {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
}

.daily-sales-full {
  grid-column: 1 / -1;
}

.daily-sales-checks {
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.daily-sales-checks label {
  min-height: 38px;
  border-bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-size: 13px;
}

.daily-sales-checks input {
  width: 16px;
  height: 16px;
  min-height: auto;
  padding: 0;
  accent-color: #374151;
}

.daily-sales-actions {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.daily-sales-draft,
.daily-sales-submit {
  min-width: 124px;
  height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}

.daily-sales-draft {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
}

.daily-sales-submit {
  border: 0;
  background: var(--link);
  color: #fff;
}

.daily-sales-draft svg {
  width: 18px;
  height: 18px;
}

.daily-report-list--compact {
  gap: 16px;
}

.daily-report-card--compact {
  padding-top: 18px;
}

.daily-report-card--compact .daily-report-card__main {
  min-height: 0;
}

.daily-draft-card {
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  background: #fff;
}

.daily-draft-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.daily-draft-status {
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fef3c7;
  color: #f59e0b;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.daily-draft-card__body {
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
}

.daily-draft-card__body span {
  display: block;
  margin-bottom: 6px;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.daily-draft-card__body p {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
}

.daily-draft-card__foot {
  min-height: 48px;
  margin-top: 16px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.daily-draft-card__foot > span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.daily-draft-card__foot div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.daily-draft-edit,
.daily-draft-delete {
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.daily-draft-edit {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
}

.daily-draft-delete {
  border: 1px solid #fecaca;
  background: #fff;
  color: #ef4444;
}

.master-management-page {
  padding-top: 24px;
}

.master-management-head {
  margin-bottom: 24px;
}

.master-management-head h1 {
  margin-bottom: 4px;
}

.master-management-head p {
  margin: 0;
}

.master-management-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.master-management-card {
  min-height: 142px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  display: flex;
  flex-direction: column;
}

.master-management-card h2 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 16px;
  line-height: 24px;
  font-weight: 800;
}

.master-management-card p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
}

.master-management-actions {
  margin-top: 18px;
  display: flex;
}

.master-management-create,
.master-management-edit,
.master-management-manage {
  width: 100%;
}

.master-management-create {
  background: #9ca3af;
}

.master-management-edit {
  background: #4b5563;
}

.master-management-manage {
  background: #fff;
}

.master-register-modal {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.master-register-modal__header {
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
}

.master-register-modal__header h2 {
  margin: 0;
  color: #101828;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}

.master-register-modal__close {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #667085;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.master-register-modal__body {
  padding: 24px;
  overflow: auto;
}

.master-register-category {
  margin: 0 0 18px;
  color: #667085;
  font-size: 14px;
  font-weight: 700;
}

.master-register-section-title {
  margin: 0 0 14px;
  color: #101828;
  font-size: 16px;
  font-weight: 800;
}

.master-register-modal__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.master-register-modal__row--single {
  grid-template-columns: 1fr;
}

.master-register-field {
  display: grid;
  gap: 14px;
}

.master-register-field__label {
  color: #344054;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.master-register-field__label b {
  margin-left: 8px;
  color: #f04438;
  font-size: 14px;
  line-height: 1;
}

.master-register-field__input {
  width: 100%;
  height: 44px;
  padding: 0 18px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
  color: #101828;
  font-size: 15px;
  line-height: 22px;
}

.master-register-field__input::placeholder {
  color: #98a2b3;
}

.master-register-add {
  margin-top: 30px;
  border: 0;
  background: transparent;
  color: #007aff;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.master-register-list {
  margin-top: 30px;
  display: grid;
  gap: 12px;
}

.master-register-list__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

.master-register-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed #d0d5dd;
  border-radius: 10px;
  color: #667085;
  font-size: 14px;
  font-weight: 600;
}

.master-register-item {
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.master-register-item__name {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
  color: #101828;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.master-register-item__actions {
  display: inline-flex;
  gap: 8px;
}

.master-register-delete {
  height: 42px;
  min-width: 72px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.master-register-delete {
  border: 1px solid #fecaca;
  background: #fff;
  color: #ef4444;
}

.master-register-modal__footer {
  min-height: 76px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
}

.master-register-cancel,
.master-register-submit {
  min-width: 118px;
  height: 42px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  cursor: pointer;
}

.master-register-cancel {
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #344054;
}

.master-register-submit {
  border: 0;
  background: #007aff;
  color: #fff;
}

.memo-list {
  display: grid;
  gap: 12px;
}

.memo-item {
  min-height: 72px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f9fafb;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.memo-item strong {
  display: block;
  margin-bottom: 8px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
}

.memo-item p {
  margin: 0;
  color: #374151;
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
}

.memo-item time {
  flex: 0 0 auto;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
}

.project-list {
  display: grid;
  gap: 16px;
}

.project-list-panel {
  overflow: hidden;
}

.project-index-table {
  min-width: 1180px;
}

.project-index-table td {
  vertical-align: middle;
}

.project-index-table th:nth-child(4),
.project-index-table td:nth-child(4) {
  width: 88px;
  min-width: 88px;
  white-space: nowrap;
}

.project-table-lost {
  color: var(--danger) !important;
  font-weight: 700;
}

.project-table-actions .project-table-link-button {
  color: var(--danger);
}

.project-table-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.project-table-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  column-gap: 24px;
  row-gap: 12px;
}

.project-card__main {
  min-width: 0;
}

.project-card__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.project-card__title-row h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.project-card__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  font-size: 14px;
}

.project-card__meta div {
  display: grid;
  gap: 4px;
}

.project-card__meta span,
.project-card__updated,
.project-card__rep span {
  color: var(--text-muted);
  font-size: 12px;
}

.project-card__meta strong,
.project-card__rep strong {
  color: var(--text-secondary);
  font-size: 14px;
}

.project-card__side {
  width: 100%;
  display: grid;
  gap: 6px;
  justify-items: stretch;
  align-self: start;
}

.project-card__side .field {
  gap: 0;
}

.project-card__updated {
  margin: 0 0 4px;
  text-align: right;
}

.project-card__button {
  justify-content: center;
  display: inline-flex;
  align-items: center;
  width: 100%;
}

.project-card__footer {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  grid-column: 1 / -1;
}

.project-status-form {
  display: block;
}

.project-status-form--table {
  width: 150px;
}

.project-status-form__select {
  min-height: 36px;
  height: 36px;
  font-size: 13px;
  width: 100%;
}

.project-card__lost {
  color: var(--danger);
  font-size: 12px;
  font-weight: 500;
}

.info-box,
.amount-box {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.info-box {
  background: #f0f9ff;
  border-color: #bfdbfe;
}

.info-box p {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.amount-box {
  background: #fff;
}

.amount-box h3 {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
}

.amount-box__total {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.amount-box__total span {
  font-size: 14px;
  font-weight: 600;
}

.amount-box__total strong {
  color: var(--link);
  font-size: 18px;
}

.action-grid {
  max-width: 960px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.action-card {
  padding: 24px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  display: grid;
  gap: 8px;
  cursor: pointer;
}

.action-card:hover {
  box-shadow: var(--shadow);
}

.action-card strong {
  font-size: 16px;
}

.action-card span {
  font-size: 14px;
  color: var(--text-muted);
}

.history-list {
  padding: 0 24px 24px;
  display: grid;
  gap: 16px;
}

.history-item {
  border-left: 4px solid #8b5cf6;
  padding: 8px 0 8px 16px;
}

.history-item p {
  margin: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.history-item__top,
.history-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.history-item__top strong {
  color: #8b5cf6;
}

.history-item__top span,
.history-item__bottom span {
  font-size: 14px;
  color: var(--text-muted);
}

.template-list {
  display: grid;
}

.template-item {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
}

.template-item:first-child {
  border-top: 0;
}

.template-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.template-item span {
  font-size: 14px;
  color: var(--text-muted);
}

.notice-card {
  padding: 16px;
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.notice-card__icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #dbeafe;
  color: var(--link);
  font-size: 14px;
  font-weight: 700;
}

.notice-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.notice-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.tab-strip {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  background: #f3f4f6;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.tab-strip__item {
  flex: 1 1 0;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 7px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.tab-strip__item:hover {
  background: rgba(255, 255, 255, 0.62);
}

.tab-strip__item.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.tab-line {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.tab-line__item {
  padding: 12px 24px;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.tab-line__item span {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e5e7eb;
  font-size: 11px;
}

.tab-line__item.is-active {
  border-bottom-color: var(--brand-dark);
  color: var(--text);
}

.stack-list {
  display: grid;
  gap: 12px;
}

.list-card,
.todo-card,
.settings-card,
.master-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.list-card {
  padding: 24px;
  display: flex;
  gap: 16px;
}

.list-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  flex: 0 0 48px;
  background: #f3f4f6;
}

.list-card__icon.is-approval { background: #dbeafe; }
.list-card__icon.is-success { background: #d1fae5; }
.list-card__icon.is-alert { background: #fee2e2; }
.list-card__icon.is-info { background: #f3f4f6; }

.list-card__body,
.todo-card__body {
  flex: 1 1 auto;
}

.list-card__head,
.list-card__foot,
.todo-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.list-card__head h3,
.todo-card h3,
.settings-card h2,
.master-card strong {
  margin: 0;
  font-size: 16px;
  color: var(--text);
}

.list-card p,
.settings-row p,
.master-card span {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.list-card__foot {
  margin-top: 12px;
}

.list-card__foot span,
.todo-card__meta span,
.profile-help,
.master-card__meta span {
  font-size: 12px;
  color: var(--text-muted);
}

.list-card__actions,
.todo-card__actions,
.todo-card__labels,
.master-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.button--sm {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.button--icon {
  width: 32px;
  padding: 0;
  justify-content: center;
}

.button--ghost-danger {
  background: transparent;
  color: var(--danger);
  border: 0;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--danger);
}

.todo-card {
  padding: 24px;
}

.todo-card__meta {
  margin-top: 12px;
}

.profile-panel {
  overflow: visible;
  padding: 32px;
  margin-bottom: 32px;
}

.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: var(--brand-dark);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  overflow: hidden;
}

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

.profile-avatar-upload {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.profile-avatar-upload .button {
  cursor: pointer;
}

.profile-avatar-upload__input {
  display: none;
}

.profile-panel__footer {
  margin: 32px -32px -32px;
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.settings-stack {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.settings-card {
  padding: 24px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.settings-row:first-of-type {
  border-top: 0;
}

.settings-row strong {
  font-size: 14px;
}

.switch {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-flex;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d1d5dc;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
}

.switch input:checked + span {
  background: var(--brand-dark);
}

.switch input:checked + span::after {
  transform: translateX(20px);
}

.master-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.master-card {
  padding: 24px;
  display: grid;
  gap: 8px;
  text-align: left;
}

.master-card--static {
  cursor: default;
}

@media (max-width: 1100px) {
  .card-grid--four,
  .card-grid--three,
  .dashboard-tabs,
  .filter-grid,
  .chart-grid,
  .choice-grid,
  .form-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .page-content {
    padding-right: 24px;
  }

  .page-head,
  .page-head__actions,
  .customer-detail-hero,
  .customer-detail-actions,
  .search-bar,
  .project-detail-hero,
  .project-card__main,
  .project-card__footer,
  .tab-strip,
  .tab-line,
  .list-card,
  .list-card__foot,
  .todo-card,
  .profile-avatar-row,
  .settings-row {
    flex-direction: column;
    align-items: stretch;
  }

  .project-card__meta,
  .project-detail-grid,
  .action-grid,
  .master-grid {
    grid-template-columns: 1fr;
  }

  .project-detail-actions,
  .detail-section__head,
  .activity-history-panel__header,
  .document-panel__header,
  .document-item,
  .profit-ratio-box__head,
  .project-edit-footer,
  .memo-item {
    align-items: stretch;
    flex-direction: column;
  }

  .activity-history-item {
    grid-template-columns: 1fr;
  }

  .project-edit-split {
    grid-template-columns: 1fr;
  }

  .quote-create-modal {
    width: calc(100vw - 32px);
  }

  .advertising-application-modal {
    width: calc(100vw - 32px);
  }

  .contract-create-modal {
    width: calc(100vw - 32px);
  }

  .customer-registration-modal {
    width: calc(100vw - 32px);
  }

  .quote-create-modal__header,
  .quote-create-modal__body,
  .quote-create-modal__footer,
  .advertising-application-modal__header,
  .advertising-application-modal__body,
  .advertising-application-modal__footer,
  .contract-create-modal__header,
  .contract-create-modal__body,
  .contract-create-modal__footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .quote-create-modal__header,
  .quote-create-modal__body,
  .quote-create-modal__footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .quote-create-modal__header h2 {
    font-size: 18px;
    line-height: 26px;
  }

  .quote-create-modal__footer,
  .quote-file-control,
  .quote-total-box div,
  .advertising-application-modal__footer,
  .ad-file-control,
  .contract-create-modal__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .ad-application-grid--two,
  .project-edit-form,
  .quote-create-modal--page .quote-create-modal__body,
  .quote-amount-section,
  .quote-create-split,
  .contract-create-grid--two,
  .contract-application-detail-item,
  .contract-application-type-choice,
  .contract-application-type-fields,
  .contract-application-edit-grid,
  .ad-size-control,
  .customer-detail-grid,
  .customer-detail-grid--three,
  .customer-project-card__metrics,
  .customer-registration-grid,
  .dashboard-goal-grid,
  .customer-segment--two,
  .customer-segment--three {
    grid-template-columns: 1fr;
  }

  .contract-application-card {
    grid-template-columns: 1fr;
  }

  .contract-application-detail-item__meta {
    grid-template-columns: 1fr;
  }

  .contract-application-card__amount {
    justify-self: stretch;
    text-align: left;
  }

  .contract-application-card__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .contract-application-card__footer a {
    margin-left: 0;
  }

  .advertising-filter-panel {
    grid-template-columns: 1fr;
  }

  .ad-template-filter-panel,
  .ad-template-grid {
    grid-template-columns: 1fr;
  }

  .ad-template-create-modal {
    width: calc(100vw - 32px);
  }

  .ad-template-create-modal__header,
  .ad-template-create-modal__body,
  .ad-template-create-modal__footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .ad-template-create-modal__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .profit-head,
  .profit-period-row,
  .profit-chart__legend {
    align-items: stretch;
    flex-direction: column;
  }

  .profit-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .profit-tabs a {
    white-space: nowrap;
  }

  .profit-kpi-grid,
  .profit-year-summary > div {
    grid-template-columns: 1fr;
  }

  .profit-chart {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .profit-chart__plot {
    min-width: 980px;
  }

  .profit-status-dropdown,
  .profit-status-select {
    width: 100%;
  }

  .profit-status-menu {
    width: 100%;
  }

  .land-ledger-head,
  .land-property-card__top {
    align-items: stretch;
    flex-direction: column;
  }

  .land-ledger-stats,
  .land-ledger-filter,
  .land-property-grid {
    grid-template-columns: 1fr;
  }

  .land-property-badges {
    margin: 8px 0 0;
    display: flex;
  }

  .land-register-overlay {
    padding: 16px;
  }

  .land-register-choice-grid,
  .land-register-grid {
    grid-template-columns: 1fr;
  }

  .land-register-modal__header,
  .land-register-modal__body,
  .land-register-modal__footer,
  .land-register-choice-modal__body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .land-register-modal__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .daily-report-tabs {
    align-items: stretch;
    flex-direction: column;
  }

  .daily-report-tabs a {
    width: 100%;
  }

  .daily-report-filter {
    grid-template-columns: 1fr;
  }

  .daily-report-card__main {
    grid-template-columns: 1fr;
  }

  .daily-report-card__side {
    min-width: 0;
    justify-items: start;
  }

  .daily-report-card__meta {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .daily-report-card__top,
  .daily-report-card__body {
    align-items: stretch;
    flex-direction: column;
  }

  .daily-report-card__primary,
  .daily-report-sections {
    align-items: stretch;
    flex-direction: column;
  }

  .daily-report-card__actions {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .daily-report-staff,
  .daily-report-counts,
  .daily-report-readers {
    min-width: 0;
  }

  .daily-report-sections p {
    white-space: normal;
  }

  .daily-comment-summary {
    grid-template-columns: 1fr;
  }

  .contract-cost-rate-grid,
  .contract-cost-total {
    grid-template-columns: 1fr;
  }

  .daily-sales-layout,
  .daily-sales-form,
  .daily-sales-checks {
    grid-template-columns: 1fr;
  }

  .daily-sales-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .daily-sales-draft,
  .daily-sales-submit {
    width: 100%;
  }

  .daily-draft-card__head,
  .daily-draft-card__foot,
  .daily-draft-card__foot div {
    align-items: stretch;
    flex-direction: column;
  }

  .master-management-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ad-application-half {
    max-width: none;
  }

  .detail-field--wide {
    grid-column: auto;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-card__side {
    width: 100%;
  }

  .project-card__updated {
    text-align: left;
  }
}

.password-layout,
.two-factor-grid,
.settings-overview,
.report-layout,
.registry-layout {
  display: grid;
  gap: 24px;
}

.password-layout {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}

.password-checklist,
.security-card,
.settings-summary,
.report-card,
.registry-summary,
.registry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.password-rules,
.security-list,
.backup-codes,
.report-meta-list,
.registry-contacts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.password-rules li,
.security-list li,
.backup-codes li,
.report-meta-list li,
.registry-contacts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.password-rules li::before,
.security-list li::before,
.backup-codes li::before,
.report-meta-list li::before,
.registry-contacts li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--success);
  flex: 0 0 8px;
}

.security-card h3,
.settings-card h3,
.report-card h3,
.registry-card h3,
.registry-summary h3,
.password-checklist h3 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
}

.security-card p,
.settings-summary p,
.report-card p,
.registry-card p,
.registry-summary p,
.password-checklist p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.backup-codes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.two-factor-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
}

.security-stack,
.report-stack,
.registry-stack {
  display: grid;
  gap: 16px;
}

.security-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #027a48;
  font-size: 13px;
  font-weight: 600;
}

.security-status.is-warning {
  background: #fffaeb;
  color: #b54708;
}

.settings-overview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
}

.settings-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 32px;
}

.settings-summary,
.kpi-box,
.template-card {
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.settings-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.settings-tab {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.settings-tab.is-active {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.settings-tab:not(.is-active):hover {
  background: #f8fafc;
}

.settings-radio-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.settings-radio {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.settings-radio input {
  margin: 0;
}

.system-settings-page {
  padding: 24px 39px 56px 24px;
}

.system-settings-head {
  margin-bottom: 24px;
}

.system-settings-head h1 {
  margin-bottom: 4px;
}

.system-settings-head p {
  margin: 0;
}

.system-settings-tabs {
  width: 100%;
  overflow-x: auto;
}

.system-settings-tab {
  flex: 0 0 auto;
  gap: 8px;
  min-width: 132px;
  white-space: nowrap;
  text-decoration: none;
}

.system-settings-tab svg {
  width: 18px;
  height: 18px;
}

.system-user-panel {
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.system-user-panel__head {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.system-user-panel__head h2 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
}

.system-user-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.system-user-button {
  height: 42px;
  padding: 0 16px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.system-user-button svg {
  width: 18px;
  height: 18px;
}

.system-user-button--outline {
  border: 1px solid #d9dee7;
  background: #fff;
  color: #344054;
}

.system-user-button--primary {
  border: 0;
  background: var(--link);
  color: #fff;
}

.system-user-filter {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.system-user-search {
  width: auto;
  flex: 1 1 420px;
  max-width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #d9dee7;
  border-radius: 9px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #98a2b3;
}

.system-user-search svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.system-user-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #344054;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.system-user-search input::placeholder {
  color: #98a2b3;
}

.system-user-filter-button {
  height: 42px;
  padding: 0 16px;
  border: 1px solid #d9dee7;
  border-radius: 9px;
  background: #fff;
  color: #344054;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.system-user-filter-button svg {
  width: 18px;
  height: 18px;
}

.system-user-filter-button span {
  color: #667085;
  font-size: 17px;
  line-height: 1;
}

.system-user-filter-button.is-open span {
  transform: rotate(180deg);
}

.system-user-filter-panel {
  margin: -6px 0 18px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f8fafc;
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr)) auto;
  align-items: end;
  gap: 12px;
}

.system-user-filter-panel[hidden] {
  display: none;
}

.system-user-filter-panel label {
  display: grid;
  gap: 6px;
}

.system-user-filter-panel label span {
  color: #344054;
  font-size: 12px;
  line-height: 18px;
  font-weight: 800;
}

.system-user-filter-panel select {
  width: 100%;
  min-height: 40px;
  padding: 0 36px 0 12px;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.system-user-filter-reset {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.system-user-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.system-user-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  table-layout: fixed;
}

.system-user-table th,
.system-user-table td {
  height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid #eef0f3;
  color: #344054;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
  vertical-align: middle;
  font-weight: 700;
}

.system-user-table th {
  height: 44px;
  background: #f8fafc;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.system-user-table tbody tr:last-child td {
  border-bottom: 0;
}

.system-user-empty-row td {
  height: 84px;
  text-align: center;
  color: #667085;
}

.system-user-role,
.system-user-status {
  min-height: 22px;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 16px;
  font-weight: 800;
}

.system-user-role {
  background: #f0f2f5;
  color: #667085;
}

.system-user-status--active {
  background: #d1fadf;
  color: #039855;
}

.system-user-status--paused {
  background: #f0f2f5;
  color: #344054;
}

.system-user-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.system-user-icons button {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #667085;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.system-user-icons svg {
  width: 18px;
  height: 18px;
}

.system-user-create-page .settings-radio-group {
  gap: 8px;
}

.system-user-create-page .settings-radio {
  min-height: 34px;
  padding: 0 13px;
  border-color: #d0d5dd;
  border-radius: 8px;
  color: #344054;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
}

.system-audit-panel {
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.system-audit-panel__head {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.system-audit-panel__head--actions {
  justify-content: flex-end;
}

.system-audit-panel__head h2 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
}

.system-audit-search {
  width: auto;
  flex: 1 1 420px;
  max-width: 100%;
  height: 42px;
  margin-bottom: 0;
  padding: 0 14px;
  border: 1px solid #d9dee7;
  border-radius: 9px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #98a2b3;
}

.system-audit-search svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.system-audit-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #344054;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.system-audit-search input::placeholder {
  color: #98a2b3;
}

.system-audit-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.system-audit-table {
  width: 100%;
  min-width: 1260px;
  border-collapse: collapse;
  table-layout: fixed;
}

.system-audit-table th,
.system-audit-table td {
  height: 58px;
  padding: 10px 14px;
  border-bottom: 1px solid #eef0f3;
  color: #344054;
  font-size: 13px;
  line-height: 20px;
  text-align: left;
  vertical-align: middle;
  font-weight: 700;
  white-space: nowrap;
}

.system-audit-table th {
  height: 44px;
  background: #f8fafc;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.system-audit-table tbody tr:last-child td {
  border-bottom: 0;
}

.system-audit-table th:nth-child(1),
.system-audit-table td:nth-child(1) {
  width: 86px;
}

.system-audit-table th:nth-child(2),
.system-audit-table td:nth-child(2) {
  width: 142px;
}

.system-audit-table th:nth-child(3),
.system-audit-table td:nth-child(3) {
  width: 110px;
}

.system-audit-table th:nth-child(4),
.system-audit-table td:nth-child(4) {
  width: 92px;
}

.system-audit-table th:nth-child(5),
.system-audit-table td:nth-child(5) {
  width: 132px;
}

.system-audit-table th:nth-child(6),
.system-audit-table td:nth-child(6) {
  width: auto;
}

.system-audit-table th:nth-child(7),
.system-audit-table td:nth-child(7) {
  width: 132px;
}

.system-audit-table th:nth-child(8),
.system-audit-table td:nth-child(8) {
  width: 96px;
}

.system-audit-id,
.system-audit-target {
  max-width: 100%;
  display: inline-block;
  vertical-align: middle;
  white-space: nowrap;
}

.system-audit-id {
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #344054;
  font-size: 12px;
  line-height: 16px;
  font-weight: 900;
}

.system-audit-date {
  display: inline-block;
  color: #475467;
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
}

.system-audit-status {
  min-height: 22px;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 16px;
  font-weight: 800;
}

.system-audit-status--success {
  background: #d1fadf;
  color: #039855;
}

.system-audit-status--failed {
  background: #fee4e2;
  color: #d92d20;
}

.system-audit-pagination {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.system-audit-pagination__buttons {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.system-audit-page-button {
  min-width: 68px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.system-audit-page-button.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}

.system-notice-panel {
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.system-notice-panel__head {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.system-notice-panel__head--actions {
  justify-content: flex-end;
}

.system-notice-panel__head h2 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
}

.system-notice-search {
  width: auto;
  flex: 1 1 420px;
  max-width: 100%;
  height: 42px;
  margin-bottom: 0;
  padding: 0 14px;
  border: 1px solid #d9dee7;
  border-radius: 9px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #98a2b3;
}

.system-notice-search svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.system-notice-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #344054;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.system-notice-search input::placeholder {
  color: #98a2b3;
}

.system-notice-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.system-notice-table {
  width: 100%;
  min-width: 1220px;
  border-collapse: collapse;
  table-layout: fixed;
}

.system-notice-table th,
.system-notice-table td {
  height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid #eef0f3;
  color: #344054;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
  vertical-align: middle;
  font-weight: 700;
}

.system-notice-table th {
  height: 44px;
  background: #f8fafc;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.system-notice-table tbody tr:last-child td {
  border-bottom: 0;
}

.system-notice-table th:nth-child(1),
.system-notice-table td:nth-child(1) {
  width: 92px;
  white-space: nowrap;
}

.system-notice-table th:nth-child(2),
.system-notice-table td:nth-child(2) {
  width: 120px;
  white-space: nowrap;
}

.system-notice-table th:nth-child(3),
.system-notice-table td:nth-child(3) {
  width: 150px;
}

.system-notice-table th:nth-child(4),
.system-notice-table td:nth-child(4) {
  width: 250px;
}

.system-notice-table th:nth-child(6),
.system-notice-table td:nth-child(6),
.system-notice-table th:nth-child(7),
.system-notice-table td:nth-child(7) {
  width: 95px;
}

.system-notice-table th:nth-child(8),
.system-notice-table td:nth-child(8) {
  width: 85px;
}

.system-notice-type,
.system-notice-priority,
.system-notice-status {
  min-height: 22px;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.system-notice-type {
  background: #f0f2f5;
  color: #667085;
}

.system-notice-priority--high {
  background: #fee4e2;
  color: #d92d20;
}

.system-notice-priority--middle {
  background: #fef0c7;
  color: #b54708;
}

.system-notice-priority--low {
  background: #dbeafe;
  color: #2563eb;
}

.system-notice-status {
  background: #d1fadf;
  color: #039855;
}

.system-notice-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.system-notice-icons button {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #667085;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.system-notice-icons svg {
  width: 18px;
  height: 18px;
}

.system-csv-panel {
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.system-csv-import {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f8fafc;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 240px) minmax(240px, 1.2fr) auto;
  align-items: end;
  gap: 14px;
}

.system-csv-import h2 {
  margin: 0 0 4px;
  color: #111827;
  font-size: 16px;
  line-height: 24px;
  font-weight: 800;
}

.system-csv-import p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
}

.system-csv-import label {
  display: grid;
  gap: 6px;
}

.system-csv-import label span {
  color: #344054;
  font-size: 12px;
  line-height: 18px;
  font-weight: 800;
}

.system-csv-import select,
.system-csv-import input[type="file"] {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.system-csv-panel__head {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.system-csv-panel__head h2 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
}

.system-csv-search {
  width: auto;
  flex: 1 1 420px;
  max-width: 100%;
  height: 42px;
  margin-bottom: 0;
  padding: 0 14px;
  border: 1px solid #d9dee7;
  border-radius: 9px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #98a2b3;
}

.system-csv-search svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.system-csv-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #344054;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.system-csv-search input::placeholder {
  color: #98a2b3;
}

.system-csv-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.system-csv-table {
  width: 100%;
  min-width: 1220px;
  border-collapse: collapse;
  table-layout: fixed;
}

.system-csv-table th,
.system-csv-table td {
  height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid #eef0f3;
  color: #344054;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
  vertical-align: middle;
  font-weight: 700;
}

.system-csv-table th {
  height: 44px;
  background: #f8fafc;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.system-csv-table tbody tr:last-child td {
  border-bottom: 0;
}

.system-csv-table th:nth-child(1),
.system-csv-table td:nth-child(1) {
  width: 110px;
}

.system-csv-table th:nth-child(2),
.system-csv-table td:nth-child(2) {
  width: 210px;
}

.system-csv-table th:nth-child(3),
.system-csv-table td:nth-child(3) {
  width: 120px;
}

.system-csv-table th:nth-child(4),
.system-csv-table td:nth-child(4),
.system-csv-table th:nth-child(5),
.system-csv-table td:nth-child(5) {
  width: 150px;
}

.system-csv-table th:nth-child(7),
.system-csv-table td:nth-child(7) {
  width: 80px;
}

.system-csv-table th:nth-child(8),
.system-csv-table td:nth-child(8) {
  width: 120px;
}

.system-csv-status {
  min-height: 22px;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 16px;
  font-weight: 800;
}

.system-csv-status--success {
  background: #d1fadf;
  color: #039855;
}

.system-csv-status--failed {
  background: #fee4e2;
  color: #d92d20;
}

.system-goals-panel {
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.system-goals-panel__head {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.system-goals-panel__head h2 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
}

.system-goals-panel__head p {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.system-goals-list {
  display: grid;
  gap: 16px;
}

.system-goal-card {
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f8fafc;
}

.system-goal-card h3 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 16px;
  line-height: 24px;
  font-weight: 800;
}

.system-goal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.system-goal-field {
  display: grid;
  gap: 10px;
}

.system-goal-field span {
  color: #344054;
  font-size: 14px;
  line-height: 20px;
  font-weight: 800;
}

.system-goal-field b {
  margin-left: 4px;
  color: #ef233c;
}

.system-goal-field input {
  width: 100%;
  height: 42px;
  padding: 0 18px;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.system-goal-input {
  position: relative;
}

.system-goal-input input {
  padding-right: 52px;
}

.system-goal-input em {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  color: #667085;
  font-size: 14px;
  line-height: 20px;
  font-style: normal;
  font-weight: 800;
}

.system-goals-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.system-goals-cancel,
.system-goals-save {
  min-width: 94px;
  height: 42px;
  border-radius: 9px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 800;
  cursor: pointer;
}

.system-goals-cancel {
  border: 1px solid #d9dee7;
  background: #fff;
  color: #344054;
}

.system-goals-save {
  border: 0;
  background: var(--link);
  color: #fff;
}

.system-permission-overlay {
  padding: 32px;
  z-index: 130;
}

.system-permission-modal {
  width: min(1640px, calc(100vw - 64px));
  max-height: calc(100vh - 64px);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.system-permission-modal__header {
  min-height: 132px;
  padding: 30px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.system-permission-modal__header h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 24px;
  line-height: 32px;
  font-weight: 900;
}

.system-permission-modal__header p {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.system-permission-modal__close {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #667085;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  line-height: 1;
  font-weight: 300;
  text-decoration: none;
}

.system-permission-panel {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.system-permission-panel__head {
  padding: 18px 22px;
  border-bottom: 1px solid #e5e7eb;
}

.system-permission-panel__head p {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.system-permission-panel .system-permission-modal__tools {
  padding: 16px 22px;
}

.system-permission-panel .system-permission-modal__body {
  max-height: none;
  padding: 22px;
  overflow: auto;
}

.system-permission-panel .system-permission-modal__footer {
  min-height: 76px;
  padding: 16px 22px;
}

.system-permission-modal__tools {
  padding: 16px 22px;
  border-bottom: 1px solid #e5e7eb;
  display: block;
}

.system-permission-toolbar {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.system-permission-reset {
  height: 40px;
  padding: 0 18px;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  line-height: 20px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.system-permission-roles__note {
  color: #667085;
  font-size: 13px;
  line-height: 20px;
  font-weight: 800;
}

.system-permission-role {
  min-height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 18px;
  font-weight: 900;
}

.system-permission-role--all {
  background: #f2f4f7;
  color: #344054;
}

.system-permission-role--admin {
  background: #ffe4e8;
  color: #d92d20;
}

.system-permission-role--executive {
  background: #f3e8ff;
  color: #7c3aed;
}

.system-permission-role--manager {
  background: #dbeafe;
  color: #2563eb;
}

.system-permission-role--office {
  background: #d1fadf;
  color: #039855;
}

.system-permission-role--sales {
  background: #ffedd5;
  color: #ea580c;
}

.system-permission-modal__body {
  padding: 22px;
  overflow: auto;
  background: #f8fafc;
}

.system-permission-table-wrap {
  min-width: 100%;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.system-permission-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0;
}

.system-permission-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 52px;
  padding: 12px 14px;
  border-bottom: 1px solid #d9dee7;
  background: #f3f4f6;
  color: #344054;
  text-align: left;
  font-size: 12px;
  line-height: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.system-permission-table td {
  min-height: 58px;
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f6;
  color: #344054;
  vertical-align: middle;
  font-size: 13px;
  line-height: 19px;
  font-weight: 700;
}

.system-permission-table tbody tr:last-child td {
  border-bottom: 0;
}

.system-permission-table tbody tr:hover td {
  background: #f8fafc;
}

.system-permission-table__category {
  width: 150px;
}

.system-permission-table__feature {
  width: 260px;
}

.system-permission-table__note {
  min-width: 280px;
}

.system-permission-table__role {
  width: 92px;
  text-align: center !important;
  white-space: normal !important;
}

.system-permission-table__category-cell {
  width: 150px;
  border-right: 1px solid #eef2f6;
  background: #fbfcfe;
  color: #101828 !important;
  vertical-align: top !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 900 !important;
}

.system-permission-table__feature-cell {
  width: 260px;
}

.system-permission-table__feature-cell strong {
  display: block;
  color: #101828;
  font-size: 14px;
  line-height: 20px;
  font-weight: 900;
}

.system-permission-table__feature-cell span {
  display: block;
  margin-top: 2px;
  color: #98a2b3;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
}

.system-permission-table__note-cell {
  color: #667085 !important;
}

.system-permission-table__check-cell {
  width: 92px;
  text-align: center;
}

.system-permission-check {
  width: 32px;
  height: 32px;
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  background: #fff;
  color: transparent;
  display: inline-grid;
  place-items: center;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
}

.system-permission-check.is-checked {
  border-color: #0b84ee;
  background: #0b84ee;
  color: #fff;
}

.system-permission-modal__footer {
  min-height: 96px;
  padding: 18px 30px;
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.system-permission-modal__footer > span {
  color: #667085;
  font-size: 15px;
  line-height: 22px;
  font-weight: 800;
}

.system-permission-modal__footer > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.system-permission-cancel,
.system-permission-save {
  min-width: 112px;
  height: 52px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 22px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.system-permission-cancel {
  border: 1px solid #d9dee7;
  background: #fff;
  color: #344054;
}

.system-permission-save {
  border: 0;
  background: #0b84ee;
  color: #fff;
}

.stack-table {
  width: 100%;
  border-collapse: collapse;
}

.stack-table th,
.stack-table td {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}

.stack-table th {
  border-top: 0;
  color: var(--text-secondary);
  background: var(--surface-muted);
}

.stack-table tbody tr:hover {
  background: var(--surface-muted);
}

.report-layout {
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  align-items: start;
}

.report-card__head,
.registry-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.report-card__head h3,
.registry-card__head h3 {
  margin-bottom: 6px;
}

.report-card__grid,
.registry-card__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.report-card__grid div,
.registry-card__grid div {
  display: grid;
  gap: 6px;
}

.report-card__grid span,
.registry-card__grid span,
.report-block span {
  font-size: 12px;
  color: var(--text-muted);
}

.report-card__grid strong,
.registry-card__grid strong,
.report-block strong {
  font-size: 14px;
  color: var(--text-secondary);
}

.report-block {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-muted);
}

.report-comments {
  display: grid;
  gap: 12px;
}

.comment-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.comment-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.comment-card__head strong {
  font-size: 14px;
}

.comment-card__head span,
.comment-card p {
  font-size: 13px;
  color: var(--text-muted);
}

.registry-layout {
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr);
  align-items: start;
}

.registry-summary {
  display: grid;
  gap: 16px;
}

.land-registry-map-panel {
  overflow: hidden;
}

.land-registry-map {
  height: 360px;
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
}

.land-registry-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.land-registry-map__address {
  margin: 0;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}

.registry-summary__hero {
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #bfdbfe;
}

.registry-summary__hero strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 32px;
}

.registry-card__foot {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.registry-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.registry-form-grid .form-grid__full {
  grid-column: 1 / -1;
}

@media (max-width: 1100px) {
  .password-layout,
  .two-factor-grid,
  .settings-overview,
  .report-layout,
  .registry-layout,
  .report-card__grid,
  .registry-card__grid {
    grid-template-columns: 1fr;
  }

  .performance-report-head,
  .performance-report-filters,
  .performance-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .performance-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .backup-codes,
  .registry-form-grid {
    grid-template-columns: 1fr;
  }

  .settings-tabs {
    flex-wrap: wrap;
  }

  .system-settings-page {
    padding: 24px 16px 36px;
  }

  .system-user-panel {
    padding: 18px;
  }

  .system-audit-panel {
    padding: 18px;
  }

  .system-notice-panel {
    padding: 18px;
  }

  .system-csv-panel {
    padding: 18px;
  }

  .system-goals-panel {
    padding: 18px;
  }

  .system-permission-overlay {
    padding: 12px;
  }

  .system-permission-modal {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .system-permission-modal__header {
    min-height: auto;
    padding: 22px;
    align-items: flex-start;
  }

  .system-permission-modal__tools,
  .system-permission-modal__body,
  .system-permission-modal__footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .system-permission-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .system-permission-reset {
    width: 100%;
  }

  .system-permission-table {
    min-width: 900px;
  }

  .system-permission-table__category {
    width: 120px;
  }

  .system-permission-table__feature {
    width: 220px;
  }

  .system-permission-table__note {
    min-width: 240px;
  }

  .system-permission-modal__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .system-permission-modal__footer > div,
  .system-permission-cancel,
  .system-permission-save {
    width: 100%;
  }

  .system-user-panel__head,
  .system-user-filter,
  .system-audit-panel__head,
  .system-notice-panel__head,
  .system-csv-panel__head,
  .system-goals-panel__head {
    align-items: stretch;
    flex-direction: column;
  }

  .system-user-actions,
  .system-user-button,
  .system-user-filter-button {
    width: 100%;
  }

  .system-user-search {
    width: 100%;
  }

  .system-user-filter-panel {
    grid-template-columns: 1fr;
  }

  .system-user-filter-reset {
    width: 100%;
  }

  .system-audit-search {
    width: 100%;
  }

  .system-audit-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .system-audit-pagination__buttons {
    justify-content: space-between;
    width: 100%;
  }

  .system-notice-search {
    width: 100%;
  }

  .system-csv-search {
    width: 100%;
  }

  .system-csv-import {
    grid-template-columns: 1fr;
  }

  .system-goal-card {
    padding: 20px;
  }

  .system-goal-grid {
    grid-template-columns: 1fr;
  }

  .customer-detail-page {
    padding: 18px 16px 32px;
  }

  .customer-detail-tabs {
    gap: 18px;
    overflow-x: auto;
  }

  .customer-detail-tabs a {
    white-space: nowrap;
  }

  .customer-detail-card {
    padding: 0;
  }

  .customer-projects-head,
  .customer-project-card__top {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-history-item {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .customer-project-create-modal__header,
  .customer-project-create-modal__body,
  .customer-project-create-modal__footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .customer-project-create-split {
    grid-template-columns: 1fr;
  }

  .customer-edit-modal__header,
  .customer-edit-modal__body,
  .customer-edit-modal__footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .customer-edit-form {
    grid-template-columns: 1fr;
  }

  .customer-project-card {
    padding: 16px;
  }

  .customer-project-card h3 {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .master-management-grid {
    grid-template-columns: 1fr;
  }

  .master-register-modal__header,
  .master-register-modal__body,
  .master-register-modal__footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .master-register-modal__row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .master-register-add {
    margin-top: 0;
    justify-self: start;
  }

  .master-register-item {
    grid-template-columns: 1fr;
  }

  .master-register-item__actions {
    width: 100%;
  }

  .master-register-delete {
    flex: 1;
  }

  .customer-registration-modal .modal-card__header,
  .customer-registration-modal__body,
  .customer-registration-modal .modal-card__footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .customer-registration-modal .modal-card__header h2 {
    font-size: 22px;
    line-height: 30px;
  }

  .customer-registration-modal .field__label,
  .customer-registration-modal .field__input,
  .customer-registration-modal .field__textarea,
  .customer-segment__button,
  .customer-registration-modal .modal-card__footer .button {
    font-size: 15px;
    line-height: 22px;
  }

  .customer-registration-modal .field__input,
  .customer-segment__button,
  .customer-registration-modal .modal-card__footer .button {
    height: 44px;
  }

  .performance-summary-grid {
    grid-template-columns: 1fr;
  }

  .performance-cancel-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .performance-cancel-amount {
    text-align: left;
  }
}

.performance-report-page {
  padding: 28px 28px 32px;
  background: #f7f8fa;
}

.performance-global-search {
  width: 430px;
  max-width: 100%;
  height: 42px;
  margin-bottom: 28px;
  padding: 0 14px;
  border: 1px solid #d9dee7;
  border-radius: 9px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #98a2b3;
}

.performance-global-search svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.performance-global-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #344054;
  font-size: 14px;
  line-height: 20px;
}

.performance-global-search input::placeholder {
  color: #98a2b3;
}

.performance-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.performance-report-head h1 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 24px;
  line-height: 32px;
  font-weight: 800;
}

.performance-report-head p {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.performance-report-setting {
  height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.performance-search-bar {
  margin-bottom: 12px;
}

.performance-period-field {
  min-width: 180px;
  margin: 0;
  flex: 0 0 180px;
}

.performance-score-note {
  margin: 0 0 20px;
  color: #4b5563;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
}

.performance-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.performance-ranking-panel,
.performance-cancel-panel {
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.performance-ranking-panel {
  margin-bottom: 24px;
}

.performance-panel-head {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.performance-panel-head h2,
.performance-cancel-head h2 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 26px;
  font-weight: 800;
}

.performance-panel-head span {
  color: #667085;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
}

.performance-ranking-table-wrap {
  overflow-x: auto;
}

.performance-ranking-table {
  width: 100%;
  min-width: 1050px;
  border-collapse: collapse;
  table-layout: fixed;
}

.performance-ranking-table th,
.performance-ranking-table td {
  padding: 18px 14px;
  border-bottom: 1px solid #eef0f3;
  color: #374151;
  font-size: 13px;
  line-height: 20px;
  text-align: left;
}

.performance-ranking-table th {
  color: #7c8796;
  font-size: 12px;
  font-weight: 800;
}

.performance-ranking-table tbody tr:last-child td {
  border-bottom: 0;
}

.performance-rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.performance-rank-badge--gold {
  background: #f2b91f;
}

.performance-rank-badge--silver {
  background: #d0d5dd;
}

.performance-rank-badge--bronze {
  background: #f59e0b;
}

.performance-rank-badge--plain {
  background: #f0f2f5;
  color: #98a2b3;
}

.performance-negative,
.performance-cancel-item b,
.performance-cancel-amount strong {
  color: #f04438;
  font-weight: 800;
}

.performance-score {
  color: #4f83ff;
  font-size: 15px;
  font-weight: 800;
}

.performance-cancel-head {
  margin-bottom: 16px;
}

.performance-cancel-head p {
  margin: 8px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
}

.performance-cancel-list {
  display: grid;
  gap: 12px;
}

.performance-cancel-item {
  min-height: 90px;
  padding: 16px 18px;
  border-radius: 8px;
  background: #fff1f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.performance-cancel-item h3 {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #111827;
  font-size: 14px;
  line-height: 20px;
  font-weight: 800;
}

.performance-cancel-item h3 span {
  padding: 3px 8px;
  border-radius: 5px;
  background: #f04438;
  color: #fff;
  font-size: 11px;
  line-height: 14px;
}

.performance-cancel-item p {
  margin: 0 0 5px;
  color: #4b5563;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
}

.performance-cancel-amount {
  text-align: right;
  display: grid;
  gap: 4px;
  white-space: nowrap;
}

.performance-cancel-amount strong {
  font-size: 18px;
  line-height: 24px;
}

.performance-cancel-amount span {
  color: #667085;
  font-size: 11px;
  font-weight: 700;
}

.ops-layout,
.finance-layout,
.performance-layout {
  display: grid;
  gap: 24px;
  align-items: start;
}

.ops-layout,
.finance-layout {
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr);
}

.performance-layout {
  grid-template-columns: minmax(0, 1fr);
}

.ops-card,
.finance-card,
.performance-card,
.template-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.ops-stack,
.finance-stack,
.performance-stack,
.template-stack {
  display: grid;
  gap: 16px;
}

.ops-card__head,
.finance-card__head,
.performance-card__head,
.template-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.ops-card__head h3,
.finance-card__head h3,
.performance-card__head h3,
.template-card__head h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.ops-card__head p,
.finance-card__head p,
.performance-card__head p,
.template-card__head p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.ops-meta,
.finance-meta,
.performance-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ops-meta div,
.finance-meta div,
.performance-meta div {
  display: grid;
  gap: 6px;
}

.ops-meta span,
.finance-meta span,
.performance-meta span,
.split-box span,
.leaderboard-card span {
  font-size: 12px;
  color: var(--text-muted);
}

.ops-meta strong,
.finance-meta strong,
.performance-meta strong,
.split-box strong,
.leaderboard-card strong {
  font-size: 14px;
  color: var(--text-secondary);
}

.ops-history,
.template-listing,
.leaderboard-list {
  display: grid;
  gap: 12px;
}

.ops-history__item,
.template-listing__item,
.leaderboard-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.ops-history__item strong,
.template-listing__item strong,
.leaderboard-card strong {
  display: block;
  margin-bottom: 4px;
}

.ops-history__item p,
.template-listing__item p,
.leaderboard-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.split-grid,
.kpi-grid,
.leaderboard-grid {
  display: grid;
  gap: 16px;
}

.split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
}

.leaderboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split-box,
.kpi-box {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.kpi-box strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 32px;
}

.kpi-box p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.template-card {
  padding: 0;
  overflow: hidden;
}

.template-card__section {
  padding: 24px;
  border-top: 1px solid var(--border);
}

.template-card__section:first-child {
  border-top: 0;
}

.system-cost-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 8px 0 28px;
}

.system-cost-edit-button {
  min-width: 84px;
  height: 44px;
  border: 0;
  border-radius: 9px;
  background: #98a2b3;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.system-cost-stack {
  display: grid;
  gap: 26px;
}

.system-cost-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px;
}

.system-cost-panel h2 {
  margin: 0 0 28px;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}

.system-cost-target-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.system-cost-target-box {
  min-height: 142px;
  padding: 22px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.system-cost-target-box h3 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
}

.system-cost-check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.system-cost-check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
}

.system-cost-check {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 999px;
  background: #4f83f1;
}

.system-cost-check::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 5px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.system-cost-table-wrap {
  overflow-x: auto;
}

.system-cost-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  table-layout: fixed;
}

.system-cost-table th,
.system-cost-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  color: var(--text-secondary);
  font-size: 14px;
}

.system-cost-table th {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.system-cost-table td {
  font-weight: 700;
}

.system-cost-table td:nth-child(3),
.system-cost-table td:nth-child(4),
.system-cost-table th:nth-child(3),
.system-cost-table th:nth-child(4) {
  text-align: right;
}

.system-cost-input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 600;
}

.system-cost-input--rate {
  max-width: 110px;
  text-align: right;
}

.system-cost-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.system-cost-note {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.system-cost-formula {
  display: grid;
  gap: 14px;
}

.system-cost-formula__group {
  display: grid;
  gap: 8px;
  padding: 20px 22px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.system-cost-formula__group h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 15px;
  line-height: 22px;
  font-weight: 800;
}

.system-cost-formula p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 22px;
  font-weight: 700;
}

.system-cost-formula p strong {
  color: var(--text);
  font-weight: 800;
}

.system-cost-formula p span {
  color: var(--text-muted);
  font-weight: 700;
}

.system-cost-note-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 20px 22px 20px 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 22px;
  font-weight: 700;
}

.flash-stack {
  position: fixed;
  top: 78px;
  right: 24px;
  z-index: 1100;
  display: grid;
  gap: 10px;
  max-width: 420px;
}

.flash-message {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
}

.flash-message--success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.flash-message--error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.quote-status-filter {
  flex: 0 0 210px;
  width: 210px;
}

@media (max-width: 1100px) {
  .ops-layout,
  .finance-layout,
  .ops-meta,
  .finance-meta,
  .performance-meta,
  .split-grid,
  .kpi-grid,
  .leaderboard-grid {
    grid-template-columns: 1fr;
  }

  .system-cost-target-grid {
    grid-template-columns: 1fr;
  }

  .quote-status-filter {
    flex-basis: 100%;
    width: 100%;
  }
}
