/* Shared company workspace system for projects, money, contracts and team flows. */
.page-view:not(#dashboard) > .page-heading {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 118px;
  gap: 18px;
  overflow: hidden;
  margin: 0 0 18px;
  padding: 20px 22px;
  border: 1px solid rgba(18,61,70,.10);
  border-radius: 18px;
  background: linear-gradient(115deg,#fff 0%,#fff 72%,#faf8f3 100%);
  box-shadow: 0 5px 20px rgba(26,47,49,.035);
}
.page-view:not(#dashboard) > .page-heading::before {
  content: "";
  position: absolute;
  inset-inline-start: -63px;
  bottom: -106px;
  width: 196px;
  height: 196px;
  border: 1px solid rgba(197,164,126,.24);
  border-radius: 50%;
  box-shadow: 0 0 0 17px rgba(197,164,126,.045), 0 0 0 36px rgba(18,61,70,.025);
  pointer-events: none;
}
.page-view:not(#dashboard) > .page-heading > div:first-child {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding-inline-end: 60px;
}
.page-view .workspace-heading-icon {
  position: absolute;
  inset-inline-end: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(18,61,70,.11);
  border-radius: 15px;
  background: linear-gradient(145deg,#f0f4f1,#fbfaf7);
  color: #123D46;
}
.page-view .workspace-heading-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.page-view .page-heading .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #78908d;
  font-size: 11px;
  letter-spacing: 0;
}
.page-view .page-heading .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: #C5A47E;
}
.page-view .page-heading h1 {
  margin: 4px 0;
  color: #123D46;
  font-size: clamp(24px,2.3vw,31px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}
.page-view .page-heading h1::after { width: 38px; height: 2px; margin-top: 5px; }
.page-view .page-heading p { max-width: 760px; margin: 4px 0 0; color: #6C7E82; font-size: 13px; line-height: 1.65; }
.page-view .page-heading > .btn,
.page-view .page-heading > .button-row { position: relative; z-index: 1; flex: 0 0 auto; }
.page-view .page-heading .button-row { flex-wrap: wrap; justify-content: flex-start; }
.page-view .page-heading .btn { min-height: 42px; border-radius: 11px; padding-inline: 15px; font-size: 12px; white-space: nowrap; }
.page-view .page-heading .btn.primary { background: #123D46; border-color: #123D46; box-shadow: 0 5px 14px rgba(18,61,70,.14); }
.page-view .panel, .page-view .task-card, .page-view .approval-card, .page-view .notification-item,
.page-view .contract-list-item, .page-view .project-team {
  border-color: rgba(18,61,70,.10);
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(26,47,49,.035);
}
.page-view .panel-heading { min-height: 72px; gap: 12px; padding: 15px 19px; background: linear-gradient(100deg,#fbfaf7,#fff 62%); }
.page-view .panel-heading h2 { color: #123D46; font-size: 15px; font-weight: 700; }
.page-view .panel-heading p { color: #708186; font-size: 11px; line-height: 1.55; }
.page-view .table-panel { overflow: hidden; }
.page-view .table-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 14px;
  padding: 11px;
  border: 1px solid rgba(18,61,70,.09);
  border-radius: 15px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 4px 14px rgba(26,47,49,.025);
}
.page-view .table-tools input, .page-view .table-tools select {
  min-height: 42px;
  height: auto;
  border-color: rgba(18,61,70,.13);
  border-radius: 10px;
  background: #fff;
  color: #31484d;
  font-size: 12px;
}
.page-view .table-tools input { flex: 1 1 250px; max-width: 440px; }
.page-view .table-tools select { flex: 0 1 190px; }
.page-view .table-wrap { scrollbar-color: #c5d1cd transparent; }
.page-view .table-wrap table { min-width: 760px; }
.page-view .table-wrap th {
  padding: 13px 15px;
  border-bottom-color: rgba(18,61,70,.1);
  background: #f4f6f3;
  color: #63777b;
  font-size: 11px;
}
.page-view .table-wrap td { padding: 13px 15px; color: #35494e; font-size: 12px; line-height: 1.55; }
.page-view .table-wrap tbody tr:hover { background: #f8faf8; }
.page-view .table-note { padding: 12px 16px; color: #718186; font-size: 11px; }
.page-view .project-cell strong { color: #123D46; font-size: 13px; }
.page-view .project-cell small { font-size: 10px; }
.page-view .state-chip { padding: 5px 9px; border-radius: 20px; font-size: 10px; font-weight: 700; }
.page-view .task-card, .page-view .approval-card { padding: 19px; background: linear-gradient(150deg,#fff 0%,#fff 78%,#faf8f3 100%); }
.page-view .task-card h2, .page-view .approval-card h2 { color: #123D46; font-size: 16px; line-height: 1.45; }
.page-view .task-card p, .page-view .approval-card p { color: #61757a; font-size: 12px; line-height: 1.65; }
.page-view .task-meta, .page-view .report-meta { gap: 8px; margin: 14px 0; color: #63767a; font-size: 11px; }
.page-view .task-progress { padding: 12px; border-radius: 12px; background: #f5f7f4; }
.page-view .progress-track { height: 7px; border-radius: 8px; background: #e6ece8; }
.page-view .progress-track span { background: linear-gradient(90deg,#123D46,#587b76); }
.page-view .readiness { padding: 9px 11px; border-radius: 10px; background: #eff6f0; font-size: 11px; }
.page-view .readiness.blocked { background: #fbf4e9; }
.page-view .task-actions, .page-view .approval-actions { gap: 8px; margin-top: 15px; }
.page-view .task-actions .btn, .page-view .approval-actions .btn { min-height: 39px; border-radius: 10px; padding-inline: 13px; font-size: 11px; }
.page-view .invoice-metrics .metric { min-height: 112px; padding: 17px; border-radius: 16px; background: linear-gradient(145deg,#fff,#fbfaf7); }
.page-view .invoice-metrics .metric span { font-size: 12px; }
.page-view .invoice-metrics .metric strong { color: #123D46; font-size: 22px; line-height: 1.35; }
.page-view .contract-list { gap: 9px; padding: 13px; }
.page-view .contract-list-item { padding: 14px; border-radius: 13px; text-align: start; }
.page-view .contract-list-item strong { color: #123D46; font-size: 13px; line-height: 1.5; }
.page-view .contract-list-item span, .page-view .contract-list-item small { font-size: 11px; line-height: 1.55; }
.page-view .contract-list-item.active { border-color: rgba(18,61,70,.28); background: linear-gradient(100deg,#f1f5f1,#fbfaf7); box-shadow: inset -3px 0 #C5A47E; }
.page-view .contract-detail, .page-view .contract-claim-detail { padding: 20px; border-radius: 16px; }
.page-view .contract-detail h2, .page-view .contract-detail h3, .page-view .contract-claim-detail h2, .page-view .contract-claim-detail h3 { color: #123D46; }
.page-view .contract-facts span { padding: 8px 11px; border: 1px solid rgba(18,61,70,.07); border-radius: 10px; background: #f5f7f4; font-size: 11px; }
.page-view .team-form { padding: 21px; border-radius: 16px; }
.page-view .team-form h2 { color: #123D46; font-size: 16px; }
.page-view .team-form label, .page-view .form-grid label, .page-view .delegation-form label { color: #566d72; font-size: 11px; }
.page-view .team-form input, .page-view .team-form select, .page-view .form-grid input, .page-view .form-grid select,
.page-view .form-grid textarea, .page-view .delegation-form select, .page-view .delegation-form input {
  min-height: 42px;
  border-color: rgba(18,61,70,.14);
  border-radius: 10px;
  color: #24373c;
  font-size: 12px;
}
.page-view .team-form .field-help { color: #718186; font-size: 10px; line-height: 1.6; }
.page-view .team-form .btn { min-height: 42px; border-radius: 10px; font-size: 12px; }
.page-view .notification-preferences { margin-bottom: 15px; }
.page-view .notification-preference-grid { gap: 9px; padding: 15px 17px; }
.page-view .notification-preference-grid label { min-height: 43px; padding: 8px 10px; border: 1px solid rgba(18,61,70,.08); border-radius: 10px; background: #fbfcfa; font-size: 11px; line-height: 1.5; }
.page-view .notification-preference-grid input { width: 16px; height: 16px; accent-color: #123D46; }
.page-view .notification-list { gap: 10px; }
.page-view .notification-item { padding: 15px 17px; }
.page-view .notification-item strong { color: #123D46; font-size: 13px; }
.page-view .notification-item p { color: #52676c; font-size: 12px; line-height: 1.65; }
.page-view .notification-item small { font-size: 10px; }
.page-view .notification-item.unread { border-inline-start: 3px solid #C5A47E; border-right-width: 1px; background: linear-gradient(100deg,#fff,#faf8f3); }
.page-view .history-list { padding-top: 11px; }
.page-view .history-item { padding: 6px 0; color: #65797d; font-size: 11px; line-height: 1.65; }
.page-view .empty-state, .page-view .loading { padding: 28px 18px; color: #708186; font-size: 12px; line-height: 1.6; }
.page-view button, .page-view a, .page-view input, .page-view select, .page-view textarea { transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease; }
.page-view button:focus-visible, .page-view a:focus-visible, .page-view input:focus-visible, .page-view select:focus-visible, .page-view textarea:focus-visible { outline: 3px solid rgba(197,164,126,.38); outline-offset: 2px; }
@media (max-width: 980px) {
  .page-view:not(#dashboard) > .page-heading { min-height: 108px; padding: 17px; }
  .page-view .page-heading .button-row { max-width: 350px; }
  .page-view .page-heading .button-row .btn { min-height: 38px; padding-inline: 10px; }
  .page-view .team-layout, .page-view .contracts-layout { grid-template-columns: minmax(0,1fr); }
  .page-view .team-layout > *, .page-view .contracts-layout > * { min-width: 0; }
}
@media (max-width: 620px) {
  .page-view:not(#dashboard) > .page-heading { align-items: flex-start; min-height: 0; flex-direction: column; gap: 13px; margin-bottom: 13px; padding: 15px 13px; border-radius: 15px; }
  .page-view:not(#dashboard) > .page-heading > div:first-child { width: 100%; padding-inline-end: 49px; }
  .page-view .workspace-heading-icon { width: 38px; height: 38px; border-radius: 12px; }
  .page-view .workspace-heading-icon svg { width: 20px; height: 20px; }
  .page-view .page-heading h1 { font-size: 24px; }
  .page-view .page-heading p { font-size: 12px; }
  .page-view .page-heading > .btn, .page-view .page-heading > .button-row { width: 100%; max-width: none; }
  .page-view .page-heading .button-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  .page-view .page-heading .button-row > * { min-width: 0; min-height: 39px; padding-inline: 6px; font-size: 10px; }
  .page-view .table-tools { display: grid; grid-template-columns: minmax(0,1fr) minmax(115px,.7fr); margin-bottom: 10px; padding: 8px; border-radius: 12px; }
  .page-view .table-tools input, .page-view .table-tools select { width: 100%; min-width: 0; max-width: none; min-height: 40px; font-size: 11px; }
  .page-view .table-wrap table { min-width: 780px; }
  .page-view .table-wrap th { padding: 11px; font-size: 10px; }
  .page-view .table-wrap td { padding: 11px; font-size: 11px; }
  .page-view .invoice-metrics { grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
  .page-view .invoice-metrics .metric { min-height: 88px; padding: 12px; }
  .page-view .invoice-metrics .metric span { font-size: 10px; }
  .page-view .invoice-metrics .metric strong { font-size: 16px; }
  .page-view .task-grid, .page-view .approval-grid { grid-template-columns: 1fr; gap: 9px; }
  .page-view .task-card, .page-view .approval-card { padding: 15px; }
  .page-view .task-card h2, .page-view .approval-card h2 { font-size: 14px; }
  .page-view .task-meta, .page-view .report-meta { font-size: 10px; }
  .page-view .notification-preference-grid { grid-template-columns: 1fr 1fr; gap: 7px; padding: 10px; }
  .page-view .notification-preference-grid label { min-height: 48px; padding: 7px; font-size: 10px; }
  .page-view .notification-item { grid-template-columns: minmax(0,1fr); gap: 8px; padding: 13px; }
  .page-view .notification-item .btn { justify-self: start; }
  .page-view .team-form { padding: 16px; }
  .page-view .delegation-form { grid-template-columns: 1fr 1fr; gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-view button, .page-view a, .page-view input, .page-view select, .page-view textarea { transition: none; }
}
