:root {
  --ink: #243b32;
  --muted: #6b7770;
  --line: #dce5df;
  --green: #87aa93;
  --canvas: #f6f8f5;
  --red: #cf5b54;
}
* {
  box-sizing: border-box;
}
html {
  overflow-x: hidden;
}
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font:
    14px Arial,
    sans-serif;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
.week b {
  display: grid;
  gap: 3px;
  place-items: center;
}
.week-title {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.week b small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  white-space: nowrap;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 220px;
  background: linear-gradient(150deg, #f9fcf9, #edf4ee);
  border-right: 1px solid var(--line);
  padding: 25px 16px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  flex-direction: column;
  padding: 0 10px 28px;
}
.brand b {
  font-size: 24px;
  color: #245438;
}
.brand small {
  color: var(--muted);
}
.brand hr {
  width: 42px;
  margin: 14px 0 9px;
  border: 0;
  border-top: 1px solid #789d84;
}
nav {
  display: grid;
  gap: 6px;
}
nav button {
  border: 0;
  background: none;
  padding: 12px;
  border-radius: 9px;
  text-align: left;
  cursor: pointer;
}
nav button.active,
nav button:hover {
  background: #dcebdd;
}
nav i {
  float: right;
  background: #acd2b4;
  border-radius: 10px;
  padding: 2px 7px;
  font-style: normal;
}
.mobile-day {
  display: contents;
}
.mobile-day > span,
.mobile-month-label,
#mobile-more-button,
#mobile-more-panel {
  display: none;
}
.account {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 16px 6px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.account > strong,
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: #cfe1d2;
  display: grid;
  place-items: center;
}
.account div {
  display: grid;
}
.account small {
  font-size: 10px;
  color: var(--muted);
}
main {
  margin-left: 220px;
}
header {
  height: 78px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 26px;
  position: sticky;
  top: 0;
  z-index: 5;
}
header small {
  color: var(--muted);
  font-size: 10px;
}
h1 {
  margin: 2px 0 0;
  font-size: 25px;
}
header label {
  margin-left: auto;
  margin-right: 12px;
  width: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}
header input {
  border: 0;
  outline: 0;
  width: 90%;
}
.content {
  max-width: 100%;
  overflow-x: hidden;
  padding: 18px 24px;
}
.toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
}
.filters,
.week {
  display: flex;
  gap: 7px;
}
.planning-mode {
  display: grid;
  gap: 2px;
  min-width: 150px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}
.planning-mode select {
  height: 22px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.toolbar button,
.week b {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 10px 13px;
}
.filters .on {
  background: #edf5ef;
  border-color: #8eaf98;
}
.week button {
  font-size: 18px;
}
.primary {
  justify-self: end !important;
  border-color: #629272 !important;
  color: #356348;
  font-weight: bold;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 16px 0;
}
.kpis article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  gap: 13px;
  align-items: center;
}
.kpis article > i {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #dcebdd;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-style: normal;
}
.kpis article div {
  display: grid;
}
.kpis span {
  color: #4b6257;
}
.kpis b {
  font-size: 28px;
}
.kpis small {
  color: var(--muted);
}
.kpis .warn {
  border-color: #df8a83;
}
.kpis .warn i,
.kpis .warn b {
  color: var(--red);
}
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.75fr);
  gap: 16px;
}
.dashboard > * {
  min-width: 0;
}
.dashboard.month-mode {
  grid-template-columns: minmax(0, 1fr);
}
.month-row {
  display: grid;
  grid-template-columns:
    minmax(190px, 1.15fr)
    repeat(var(--month-weeks), minmax(175px, 1fr));
  min-width: calc(190px + var(--month-weeks) * 175px);
}
.month-head {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fff;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.month-head > b,
.month-head > span {
  display: grid;
  place-content: center;
  min-height: 64px;
  padding: 8px;
  border-right: 1px solid var(--line);
}
.month-head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
}
.month-team {
  min-width: calc(190px + var(--month-weeks) * 175px);
}
.month-team .team-title {
  position: sticky;
  left: 0;
  z-index: 2;
}
.month-employee {
  min-height: 112px;
  border-bottom: 2px solid #cbd8cf;
  background: #fff;
}
.month-employee:nth-child(even),
.month-employee:nth-child(even) > .name {
  background: #f3f7f4;
}
.month-employee:hover,
.month-employee:hover > .name {
  background: #eaf2ec;
}
.month-employee > .name {
  position: sticky;
  left: 0;
  z-index: 2;
  padding: 10px 12px;
  background: inherit;
  border-right: 1px solid var(--line);
}
.month-cell {
  display: grid;
  align-content: space-between;
  gap: 7px;
  min-width: 0;
  padding: 10px;
  border-right: 1px solid #d7e0da;
}
.month-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.month-summary span {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #c5d8c9;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
  white-space: normal;
}
.month-summary span.sage { border-color: #a9c9af; background: #dcecdf; color: #244b31; }
.month-summary span.blue { border-color: #abc5df; background: #dceafa; color: #244a6d; }
.month-summary span.violet { border-color: #c5b1dc; background: #e9def4; color: #51366c; }
.month-summary span.amber { border-color: #ddbf7d; background: #f8e7bd; color: #664b14; }
.month-summary span.absence { border-color: #c9cfd2; background: #edf0f1; color: #445159; }
.month-summary small {
  color: var(--muted);
}
.month-cell select {
  width: 100%;
  height: 34px;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-size: 10px;
}
.card,
#data-view {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 3px 13px #263e300b;
}
.planner {
  min-width: 0;
  max-height: 620px;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.row {
  display: grid;
  grid-template-columns: minmax(195px, 1.5fr) repeat(6, minmax(90px, 1fr)) 65px;
  gap: 6px;
  align-items: center;
}
.head {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fff;
}
.head > b:first-child {
  text-align: left;
}
.head small {
  color: var(--muted);
}
#planning {
  max-height: none;
  overflow: visible;
}
.team-title {
  padding: 9px 13px;
  background: #f4f7f4;
  border-bottom: 1px solid var(--line);
}
.team-title i {
  font-style: normal;
  background: #dcebdd;
  border-radius: 10px;
  padding: 2px 7px;
}
.employee {
  min-height: 49px;
  padding: 5px 12px;
  border-bottom: 1px solid #edf1ee;
}
.employee.linked {
  background: #fafcf9;
}
.name {
  display: flex;
  align-items: center;
  gap: 8px;
}
.name > i,
.staff-grid article > i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #dcebdd;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-style: normal;
}
.name span {
  display: grid;
}
.name small {
  font-size: 9px;
  color: var(--muted);
}
select {
  min-width: 0;
  width: 100%;
  height: 32px;
  border: 1px solid #d8e2db;
  border-radius: 8px;
  background: #f8faf8;
  font-size: 10px;
}
.sage {
  background: #e8f2e9;
}
.blue {
  background: #eaf2fb;
}
.violet {
  background: #f0ebf7;
}
.amber {
  background: #fbf1da;
}
.rail {
  display: grid;
  min-width: 0;
  gap: 16px;
}
.rail .card {
  min-width: 0;
  padding: 15px;
}
.card-title {
  display: flex;
  justify-content: space-between;
}
.card-title h2 {
  margin: 3px 0 10px;
  font-size: 17px;
}
.card-title small {
  color: var(--muted);
}
.card-title em {
  font-style: normal;
  background: #dcebdd;
  border-radius: 10px;
  padding: 3px 7px;
}
.card-title button,
.backlog button {
  border: 0;
  background: none;
}
.project-head,
.project-line {
  display: grid;
  grid-template-columns: 1fr 45px 48px 35px;
  min-height: 38px;
  align-items: center;
  border-top: 1px solid #e6ece8;
  font-size: 11px;
}
.project-head {
  font-size: 9px;
  color: var(--muted);
}
.project-line span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-line i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 7px;
}
.project-line i.sage {
  background: #70a57c;
}
.project-line i.blue {
  background: #71a1d7;
}
.project-line i.violet {
  background: #a287ca;
}
.project-line i.amber {
  background: #dfab3f;
}
.red {
  color: var(--red);
}
.green {
  color: #4e8b61;
}
.backlog {
  display: grid;
  grid-template-columns: 28px 1fr auto 15px;
  gap: 7px;
  align-items: center;
  min-height: 52px;
  border-top: 1px solid #e6ece8;
}
.backlog > i {
  background: #eaf1eb;
  border-radius: 7px;
  padding: 6px;
  font-style: normal;
}
.backlog span {
  display: grid;
  min-width: 0;
}
.backlog span b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
}
.backlog small {
  font-size: 9px;
  color: var(--muted);
}
.backlog em {
  font-size: 9px;
  color: var(--red);
  font-style: normal;
}
#data-view {
  padding: 20px;
  min-height: calc(100vh - 118px);
}
.page-title {
  display: flex;
  justify-content: space-between;
}
.page-title h2 {
  margin: 0;
}
.page-title p {
  color: var(--muted);
}
.table {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.projects-table {
  overflow: visible;
}
.tr {
  display: grid;
  grid-template-columns: 2fr 1fr 100px;
  min-height: 50px;
  align-items: center;
  padding: 0 14px;
  border-top: 1px solid var(--line);
}
.th {
  background: #f4f7f4;
  color: var(--muted);
  font-size: 10px;
}
.status {
  background: #dfeee3;
  border-radius: 10px;
  padding: 5px 8px;
  width: max-content;
}
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}
.staff-grid article {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.staff-grid article > i {
  width: 44px;
  height: 44px;
}
.staff-grid article span {
  display: grid;
  min-width: 0;
}
.staff-grid article small {
  color: var(--muted);
}
.staff-team {
  display: grid;
  gap: 4px;
  margin-left: auto;
  min-width: 125px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.staff-team select {
  height: 36px;
  padding: 0 7px;
  font-size: 12px;
  background: #f8faf8;
}
.staff-access {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.staff-access a {
  min-width: 0;
  overflow: hidden;
  color: #356348;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.staff-access button {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid #9ab7a3;
  border-radius: 7px;
  background: #edf5ef;
  color: #315c46;
  font-size: 11px;
  font-weight: 700;
}
.staff-access.muted {
  color: var(--muted);
}
.year-title {
  align-items: center;
  margin-bottom: 16px;
}
.year-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.year-nav button,
.year-nav b {
  min-width: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}
.year-scroll {
  max-width: 100%;
  max-height: calc(100vh - 230px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.year-grid {
  width: max-content;
  min-width: 100%;
}
.year-row {
  display: grid;
  grid-template-columns: 250px repeat(var(--week-count), 44px);
  min-height: 52px;
  border-bottom: 1px solid var(--line);
}
.year-head {
  position: sticky;
  top: 0;
  z-index: 8;
  min-height: 42px;
  background: #f4f7f4;
  color: var(--muted);
  font-size: 10px;
}
.year-head > b,
.year-head > span,
.year-cell {
  display: grid;
  place-items: center;
  border-right: 1px solid #e8eee9;
}
.year-head > b {
  justify-content: start;
  padding-left: 14px;
}
.year-project {
  position: sticky;
  left: 0;
  z-index: 3;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 7px 12px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  text-align: left;
}
.year-head > b {
  position: sticky;
  left: 0;
  z-index: 10;
  background: #f4f7f4;
}
.year-project small {
  color: var(--muted);
  font-size: 9px;
}
.year-cell {
  margin: 7px 2px;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #294839;
  font-size: 10px;
  font-weight: 700;
}
.year-cell.active {
  border-color: #b8cbbd;
}
@media (max-width: 1150px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
  .rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpis {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  aside {
    width: 70px;
    padding: 18px 8px;
  }
  .brand b,
  .brand small,
  .brand hr,
  nav span,
  .account div {
    display: none;
  }
  .brand:after {
    content: "PO";
    font-weight: bold;
    font-size: 18px;
  }
  .account > strong {
    margin: auto;
  }
  main {
    margin-left: 70px;
  }
  .content {
    padding: 12px;
  }
  .toolbar {
    display: flex;
    flex-wrap: wrap;
  }
  .filters {
    width: 100%;
    overflow: auto;
  }
  .kpis {
    grid-template-columns: 1fr;
  }
  .row {
    min-width: 760px;
  }
  .team {
    min-width: 760px;
  }
  header label {
    width: 150px;
  }
  .rail {
    grid-template-columns: 1fr;
  }
}
button {
  cursor: pointer;
}
textarea {
  font: inherit;
  color: inherit;
}
[hidden] {
  display: none !important;
}
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 20% 20%, #dcebdd, #f6f8f5 50%);
}
.login-card {
  width: min(420px, calc(100% - 32px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 20px 70px #2446311c;
  display: grid;
  gap: 14px;
}
.login-card h1 {
  margin: 8px 0 0;
}
.login-card p {
  margin: 0 0 10px;
  color: var(--muted);
}
.login-card label,
.form-grid label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: bold;
}
.login-card input,
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.form-grid select {
  height: 48px;
  min-height: 48px;
  padding: 0 40px 0 12px;
  color: var(--ink);
  font-size: 14px;
  line-height: normal;
}
.form-grid select option {
  color: var(--ink);
  background: #fff;
  font-size: 16px;
}
.login-card .primary {
  width: 100%;
  margin-top: 6px;
}
.login-logo {
  display: flex;
  gap: 8px;
  color: #356348;
  font-size: 19px;
}
.login-logo span {
  color: var(--muted);
}
.error {
  color: var(--red);
  min-height: 16px;
}
.sub-label {
  color: #8a5b1e !important;
  font-weight: 700;
}
.ghost {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 9px;
}
.empty,
.hint {
  color: var(--muted);
  font-size: 12px;
}
.projects-table .tr {
  grid-template-columns: minmax(220px, 2fr) minmax(120px, 0.8fr) minmax(170px, 1.2fr) minmax(105px, 0.6fr) minmax(210px, auto);
  width: 100%;
  text-align: left;
}
.project-row {
  position: relative;
  z-index: 0;
  border-width: 1px 0 0;
  background: #fff;
}
.project-row.menu-open {
  z-index: 25;
}
.project-row:hover {
  background: #f6faf6;
}
.project-name {
  min-width: 0;
  padding: 12px 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-main {
  display: grid;
  min-width: 0;
}
.project-customer,
.project-address,
.project-planning,
.project-staff {
  min-width: 0;
}
.project-customer,
.project-address,
.project-planning small,
.project-staff small {
  color: var(--muted);
  font-size: 11px;
}
.project-customer,
.project-address {
  display: none;
}
.project-planning,
.project-staff {
  display: grid;
  gap: 2px;
}
.project-planning em,
.project-staff em,
.project-customer em,
.project-address em {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
}
.project-open {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #abc9b3;
  border-radius: 8px;
  background: #eef6f0;
  color: #315c46;
  font-weight: 700;
}
.project-menu {
  position: relative;
}
.project-menu summary {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  list-style: none;
}
.project-menu summary::-webkit-details-marker {
  display: none;
}
.project-menu > div {
  position: absolute;
  right: 0;
  z-index: 40;
  display: grid;
  gap: 6px;
  min-width: 158px;
  max-width: min(240px, calc(100vw - 28px));
  margin-top: 5px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 10px 30px #263e3026;
  overflow-wrap: anywhere;
}
.project-menu button {
  white-space: normal;
}
.project-delete {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #ecc9c6;
  border-radius: 8px;
  background: #fff7f6;
  color: var(--red);
  font-size: 13px;
}
.project-delete:hover {
  background: #fbe6e4;
}
.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  overflow: visible;
}
.offer-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}
.offer-filters button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  cursor: pointer;
}
.offer-filters .on {
  border-color: #8eaf98;
  background: #edf5ef;
  font-weight: 700;
}
.offers-table .tr {
  grid-template-columns:
    minmax(180px, 1.35fr)
    minmax(125px, 0.85fr)
    minmax(115px, 0.8fr)
    minmax(105px, 0.7fr)
    minmax(118px, 0.75fr)
    minmax(145px, 0.95fr)
    minmax(72px, 0.45fr)
    minmax(125px, auto);
}
.offer-row {
  align-items: start;
  padding-top: 10px;
  padding-bottom: 10px;
}
.offer-project,
.offer-customer,
.offer-number,
.offer-date,
.offer-amount,
.offer-followup {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.offer-project small,
.offer-number small,
.offer-date small,
.offer-amount small,
.offer-followup small,
.menu-note {
  color: var(--muted);
  font-size: 11px;
}
.offer-project b,
.offer-customer b,
.offer-number b,
.offer-date b,
.offer-amount b,
.offer-followup b {
  overflow-wrap: anywhere;
}
.offer-followup.due b {
  color: #9f2d20;
}
.menu-note {
  padding: 7px 8px;
}
.status-change {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.status-confirm dl,
.status-history {
  grid-column: 1 / -1;
}
.status-confirm dl,
.status-history div {
  display: grid;
  gap: 6px;
}
.status-confirm dt,
.status-history time,
.status-history span,
.status-history small {
  color: var(--muted);
  font-size: 12px;
}
.audit-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.audit-entry {
  display: grid;
  grid-template-columns: 165px 150px minmax(280px, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.audit-entry:first-child {
  border-top: 0;
}
.audit-entry time {
  color: var(--muted);
  font-size: 11px;
}
.audit-entry > span {
  display: grid;
  gap: 3px;
}
.audit-entry small,
.audit-entry p {
  color: var(--muted);
  font-size: 11px;
}
.audit-entry p {
  margin: 5px 0 0;
  line-height: 1.45;
}
.current-version {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
}
.version-history {
  display: grid;
  gap: 13px;
}
.version-entry {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.version-entry.latest {
  border-color: #8eb49a;
  box-shadow: 0 4px 18px #315c4614;
}
.version-marker {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 7px;
}
.version-marker b {
  font-size: 22px;
  color: var(--green);
}
.version-marker span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #dfede2;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}
.version-entry h3 {
  margin: 1px 0 10px;
}
.version-entry ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
  line-height: 1.45;
}
@media (max-width: 760px) {
  .audit-entry {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .version-entry {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 16px;
  }
}
.timesheet-table {
  overflow: auto;
}
.timesheet-table .tr {
  grid-template-columns: 170px 95px minmax(180px, 1fr) 115px 75px 65px 70px;
  min-width: 900px;
}
.timesheet-title {
  align-items: flex-start;
  gap: 18px;
}
.timesheet-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.timesheet-actions label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.timesheet-actions select {
  min-width: 235px;
  padding: 10px 34px 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.timesheet-person {
  margin-bottom: 16px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.timesheet-person-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  background: var(--soft);
}
.timesheet-detail-head,
.timesheet-detail-row {
  display: grid;
  grid-template-columns: 105px minmax(190px, 1fr) 120px 90px 75px 70px;
  gap: 12px;
  min-width: 760px;
  padding: 11px 15px;
  border-top: 1px solid var(--line);
}
.timesheet-detail-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.payroll-company-screen {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
}
.payroll-employee {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.payroll-employee-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 14px;
}
.payroll-employee-heading h2 {
  margin: 3px 0 0;
}
.payroll-employee-heading > div:last-child {
  display: grid;
  gap: 3px;
  text-align: right;
}
.payroll-employee-heading small {
  color: var(--muted);
}
.payroll-employee table {
  width: 100%;
  border-collapse: collapse;
}
.payroll-employee th,
.payroll-employee td {
  padding: 9px 11px;
  border: 1px solid var(--line);
  text-align: left;
}
.payroll-employee thead {
  background: var(--soft);
}
.payroll-employee th:last-child,
.payroll-employee td:last-child {
  width: 190px;
  text-align: right;
}
.payroll-employee tfoot {
  background: #f1f6f2;
}
.payroll-signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  margin-top: 48px;
}
.payroll-signatures span {
  padding-top: 7px;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-size: 11px;
}
.overtime-account {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 2px solid var(--green);
}
.overtime-account h3 {
  margin: 0 0 12px;
  color: var(--green);
}
.overtime-account table {
  margin-top: 10px;
}
.overtime-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
}
.overtime-balance b {
  font-size: 21px;
  white-space: nowrap;
}
.overtime-booking {
  display: grid;
  grid-template-columns: 145px 145px 110px minmax(220px, 1fr) auto;
  gap: 9px;
  align-items: end;
  margin-top: 15px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f7faf8;
}
.overtime-booking label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.overtime-booking input,
.overtime-booking select {
  min-width: 0;
  height: 40px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.print-only {
  display: none;
}
.print-company-logo {
  width: 190px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}
.timesheet-person-head .print-company-logo {
  display: none;
}
.print-heading h1 {
  margin: 0 0 5px;
}
.print-heading p {
  margin: 0 0 18px;
}
@media (max-width: 760px) {
  .timesheet-title,
  .timesheet-actions {
    display: grid;
    width: 100%;
  }
  .timesheet-actions select {
    width: 100%;
  }
  .overtime-booking {
    grid-template-columns: 1fr;
  }
  .overtime-account {
    overflow-x: auto;
  }
  .overtime-account table {
    min-width: 720px;
  }
  .overtime-balance {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }
  body.print-timesheets {
    background: #fff;
  }
  body.print-timesheets aside,
  body.print-timesheets main > header,
  body.print-timesheets .timesheet-title,
  body.print-timesheets #plan-view {
    display: none !important;
  }
  body.print-timesheets main {
    margin: 0;
  }
  body.print-timesheets .content,
  body.print-timesheets #data-view {
    min-height: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
  body.print-timesheets #timesheet-print,
  body.print-timesheets .print-only {
    display: block;
  }
  body.print-timesheets .payroll-company-screen {
    display: none;
  }
  body.print-timesheets .payroll-employee {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    break-before: page;
    page-break-before: always;
  }
  body.print-timesheets .timesheet-person {
    break-before: page;
    page-break-before: always;
    border: 0;
    box-shadow: none;
  }
  body.print-timesheets .timesheet-person:first-child {
    break-before: auto;
    page-break-before: auto;
  }
  body.print-timesheets .timesheet-person-head .print-company-logo {
    display: block;
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }
  body.print-timesheets .payroll-employee-heading {
    padding-bottom: 10px;
    border-bottom: 3px solid #315c46;
  }
  body.print-timesheets .payroll-company-screen + .payroll-employee {
    break-before: auto;
    page-break-before: auto;
  }
  body.print-timesheets .payroll-employee thead {
    display: table-header-group;
  }
  body.print-timesheets .payroll-employee tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  body.print-timesheets .payroll-employee th,
  body.print-timesheets .payroll-employee td {
    padding: 7px 9px;
    border-color: #999;
    font-size: 10pt;
  }
  body.print-timesheets .payroll-signatures {
    break-inside: avoid;
  }
  body.print-timesheets .no-print {
    display: none !important;
  }
  body.print-timesheets .overtime-account {
    break-inside: auto;
  }
  body.print-timesheets .overtime-balance {
    break-inside: avoid;
    color: #000;
    border: 1px solid #555;
    background: #eee !important;
  }
}
@media (max-width: 760px) {
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }
  aside {
    inset: auto 0 0;
    z-index: 20;
    width: 100%;
    min-height: calc(68px + env(safe-area-inset-bottom));
    padding: 6px 8px max(8px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    border-right: 0;
    background: #fff;
  }
  aside .brand,
  aside .account {
    display: none;
  }
  aside nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    width: 100%;
  }
  aside nav button {
    display: none;
    min-width: 0;
    padding: 7px 3px;
    text-align: center;
    font-size: 18px;
  }
  aside nav button[data-view="plan"],
  aside nav button[data-view="projects"],
  aside nav button[data-view="staff"],
  aside nav #mobile-more-button {
    display: grid;
    place-items: center;
    gap: 2px;
  }
  aside nav button span {
    display: block;
    font-size: 9px;
  }
  aside nav button.active {
    background: #dcebdd;
  }
  main {
    margin-left: 0;
  }
  main > header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 9px;
    height: auto;
    padding: 10px 12px;
    align-items: center;
  }
  main > header > div small {
    display: none;
  }
  main > header h1 {
    font-size: 20px;
  }
  main > header .search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin: 0;
  }
  main > header .avatar {
    grid-column: 2;
    grid-row: 1;
  }
  main > header .ghost {
    display: none;
  }
  .content {
    padding: 10px 10px calc(96px + env(safe-area-inset-bottom));
  }
  .toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .filters {
    display: flex;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .filters > button {
    flex: 0 0 auto;
  }
  .planning-mode {
    flex: 0 0 155px;
  }
  .week {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    width: 100%;
  }
  .week b {
    min-width: 0;
  }
  .toolbar.rolling-mobile-month .week {
    grid-template-columns: 1fr;
  }
  .toolbar.rolling-mobile-month .week > button {
    display: none;
  }
  .toolbar > .primary {
    width: 100%;
    justify-self: stretch !important;
  }
  .kpis {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 10px 0;
  }
  .kpis article {
    min-width: 0;
    padding: 10px;
  }
  .kpis article > i {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    font-size: 16px;
  }
  .kpis span {
    font-size: 10px;
  }
  .kpis b {
    font-size: 21px;
  }
  .kpis small {
    display: none;
  }
  .dashboard,
  .dashboard.month-mode {
    display: block;
  }
  .planner {
    max-height: none;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  #planning-head {
    display: none;
  }
  #planning,
  .team,
  .month-team {
    min-width: 0 !important;
    width: 100%;
  }
  .team,
  .month-team {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
  }
  .team-title {
    position: static !important;
  }
  .row.employee {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    min-width: 0;
    padding: 13px;
  }
  .employee > .name {
    padding-bottom: 7px;
    border-bottom: 1px solid var(--line);
  }
  .employee > b {
    display: none;
  }
  .mobile-day {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
  }
  .mobile-day > span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
  }
  .mobile-day select {
    height: 46px;
    padding: 0 10px;
    font-size: 14px;
  }
  .month-row.month-employee {
    display: block;
    min-width: 0;
    padding: 13px;
    border-bottom: 3px solid #b7c8bd;
  }
  .month-employee > .name {
    position: static;
    margin-bottom: 9px;
    padding: 0 0 9px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .month-cell {
    gap: 6px;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
  }
  .month-summary {
    display: grid;
    gap: 7px;
  }
  .month-summary span {
    display: block;
    width: 100%;
    max-width: none;
    overflow: visible;
    padding: 10px 12px;
    border-width: 2px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: clip;
    white-space: normal;
  }
  .month-summary small {
    padding: 2px 0;
    font-size: 14px;
  }
  .mobile-month-label {
    display: block;
    font-size: 11px;
  }
  .month-cell select {
    height: 44px;
    font-size: 13px;
  }
  .mobile-day-planning {
    margin-top: 2px;
    border-top: 1px solid var(--line);
  }
  .mobile-day-planning summary {
    padding: 10px 2px 4px;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
  }
  .mobile-day-planning > div {
    display: grid;
    gap: 7px;
    padding-top: 7px;
  }
  .rail {
    display: none;
  }
  #data-view {
    min-height: 0;
    padding: 0 0 calc(96px + env(safe-area-inset-bottom));
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .page-title {
    align-items: start;
    gap: 10px;
    margin-bottom: 13px;
  }
  .page-title h2 {
    font-size: 20px;
  }
  .page-title p {
    margin: 5px 0;
    font-size: 11px;
  }
  .projects-table {
    display: grid;
    gap: 8px;
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .projects-table .th {
    display: none;
  }
  .projects-table .project-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
    min-height: 0;
    min-width: 0;
    padding: 11px;
    overflow: visible;
    border: 1px solid #d7e1da;
    border-radius: 8px;
    background: #fff;
  }
  .project-row .project-main {
    grid-column: 1 / -1;
    gap: 2px;
    min-width: 0;
    padding-right: 38px;
  }
  .project-row .project-name {
    padding: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .project-row .project-name b {
    font-size: 15px;
    line-height: 1.25;
  }
  .project-customer,
  .project-address {
    display: block;
    overflow-wrap: anywhere;
    line-height: 1.25;
  }
  .project-address {
    display: none;
  }
  .project-row .status {
    grid-column: 1;
    width: fit-content;
    max-width: 100%;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
  }
  .project-row .project-planning,
  .project-row .project-staff {
    grid-column: 1;
    line-height: 1.25;
  }
  .project-row .project-planning b,
  .project-row .project-staff b {
    font-size: 13px;
  }
  .project-row .project-planning small,
  .project-row .project-staff small {
    font-size: 10px;
  }
  .project-row .row-actions {
    grid-column: 1 / -1;
    grid-row: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    gap: 7px;
    align-self: stretch;
    margin-top: 2px;
  }
  .project-open {
    width: 100%;
    min-height: 38px;
  }
  .project-menu {
    justify-self: end;
  }
  .project-menu summary {
    width: 38px;
    height: 38px;
  }
  .project-menu > div {
    right: 0;
    bottom: calc(100% + 5px);
  }
  .project-menu .status-change,
  .project-menu .project-delete {
    width: 100%;
    text-align: left;
  }
  .offer-title {
    align-items: start;
  }
  .offer-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .offer-filters button {
    flex: 0 0 auto;
    padding: 7px 9px;
    font-size: 12px;
  }
  .offers-table .offer-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
  }
  .offer-row .offer-project,
  .offer-row .offer-customer,
  .offer-row .offer-number,
  .offer-row .offer-date,
  .offer-row .offer-amount,
  .offer-row .offer-followup,
  .offer-row .status {
    grid-column: 1 / -1;
  }
  .offer-row .offer-project {
    padding-right: 38px;
  }
  .offer-row .offer-project .project-name {
    padding: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .offer-row .offer-project .project-name b {
    font-size: 15px;
    line-height: 1.25;
  }
  .offer-row .offer-customer b,
  .offer-row .offer-number b,
  .offer-row .offer-date b,
  .offer-row .offer-amount b,
  .offer-row .offer-followup b {
    font-size: 13px;
  }
  .offer-row .row-actions {
    grid-column: 1 / -1;
  }
  .staff-grid {
    grid-template-columns: 1fr;
  }
  .timesheet-person {
    overflow: visible;
  }
  .timesheet-detail-head {
    display: none;
  }
  .timesheet-detail-row {
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 7px 10px;
    min-width: 0;
    padding: 12px;
  }
  .timesheet-person-head {
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .timesheet-person-head span {
    grid-row: 2;
    font-size: 10px;
  }
  .payroll-employee {
    padding: 12px;
  }
  .payroll-employee-heading {
    align-items: start;
  }
  .payroll-employee th,
  .payroll-employee td {
    padding: 7px 5px;
    font-size: 11px;
  }
  .payroll-employee th:last-child,
  .payroll-employee td:last-child {
    width: 115px;
  }
  .payroll-signatures {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  #mobile-more-panel:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: block;
    overflow-y: auto;
    padding: 24px 18px 90px;
    background: #f6f8f5;
  }
  #mobile-more-panel > h2 {
    margin: 20px 0;
  }
  #mobile-more-close {
    float: right;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    font-size: 26px;
  }
  .mobile-more-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    clear: both;
  }
  .mobile-more-grid button {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 92px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    font-size: 18px;
  }
  .mobile-more-grid button span {
    font-size: 12px;
    font-weight: 700;
  }
  .mobile-more-grid #mobile-logout {
    border-color: #e4b7b3;
    color: var(--red);
  }
  dialog {
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }
}

@media (min-width: 761px) {
  .mobile-day-planning {
    display: none;
  }
}
.purple {
  background: #ebe3f5 !important;
}
dialog {
  width: min(680px, calc(100% - 30px));
  max-height: min(760px, calc(100dvh - 24px));
  border: 0;
  border-radius: 15px;
  padding: 0;
  box-shadow: 0 25px 100px #19352655;
}
dialog form {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: inherit;
}
#dialog-body {
  min-height: 0;
  overflow: auto;
}
dialog::backdrop {
  background: #18332766;
}
.dialog-title,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.dialog-title h2 {
  margin: 0;
}
.dialog-actions {
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}
.dialog-actions button,
.close {
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
}
.close {
  border: 0;
  font-size: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 20px;
  overflow: auto;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.form-grid textarea {
  min-height: 80px;
  resize: vertical;
}
#toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  background: #315c46;
  color: #fff;
  border-radius: 9px;
  padding: 12px 18px;
  box-shadow: 0 8px 30px #172c2255;
  transform: translateY(80px);
  opacity: 0;
  transition: 0.2s;
}
#toast.show {
  transform: none;
  opacity: 1;
}
#toast.bad {
  background: #a63f39;
}
@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .wide {
    grid-column: auto;
  }
  .projects-table {
    overflow: visible;
  }
  .projects-table .tr {
    min-width: 0;
  }
  .year-row {
    grid-template-columns: 190px repeat(var(--week-count), 42px);
  }
  .year-scroll {
    max-height: calc(100vh - 180px);
  }
}


.archive-confirm { padding: 20px; }
.archive-confirm dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.archive-confirm dl div { background: #f7f8f5; border: 1px solid #dde4d8; border-radius: 8px; padding: 10px; }
.archive-confirm dt { color: #667060; font-size: 12px; }
.archive-confirm dd { margin: 3px 0 0; font-weight: 700; }
.archive-confirm input[type="checkbox"] { width: auto; margin-right: 8px; }
.danger, button.danger { background: #9f2d20 !important; color: #fff !important; border-color: #9f2d20 !important; }
.danger-text { color: #9f2d20; }
@media (max-width: 760px) { .archive-confirm dl { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  dialog {
    width: min(430px, calc(100vw - 18px));
    max-height: calc(100dvh - 18px - env(safe-area-inset-bottom));
    border-radius: 12px;
  }
  dialog form {
    max-height: inherit;
    overflow: hidden;
  }
  .dialog-title,
  .dialog-actions {
    padding: 12px;
  }
  .dialog-title h2 {
    min-width: 0;
    font-size: 18px;
    overflow-wrap: anywhere;
  }
  #dialog-body {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .archive-confirm {
    padding: 12px;
  }
  .archive-confirm dl {
    gap: 7px;
    margin: 0;
  }
  .archive-confirm dl div {
    padding: 8px;
    border-radius: 7px;
  }
  .archive-confirm dd {
    overflow-wrap: anywhere;
  }
  .archive-confirm label.wide {
    display: block;
    margin-top: 10px;
  }
  .archive-confirm textarea {
    width: 100%;
    min-height: 88px;
    margin-top: 5px;
  }
  .dialog-actions {
    gap: 7px;
  }
  .dialog-actions button {
    min-height: 38px;
    padding: 8px 10px;
  }
}
.status-change-dialog {
  display: grid;
  gap: 16px;
  padding: 20px;
}
.status-change-dialog dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}
.status-change-dialog dl div,
.status-change-dialog label {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.status-change-dialog dt,
.status-change-dialog label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.status-change-dialog dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
}
.status-change-dialog select,
.status-change-dialog textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.status-change-dialog select {
  min-height: 46px;
  padding: 0 40px 0 12px;
}
.status-change-dialog textarea {
  min-height: 104px;
  padding: 11px;
  resize: vertical;
}
.status-change-dialog .wide,
.status-change-dialog .status-flow,
.status-change-dialog .confirm-line {
  grid-column: 1 / -1;
}
.status-change-dialog .reason-required {
  color: #9f2d20;
  font-weight: 700;
}
.status-change-dialog .confirm-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink);
}
.status-change-dialog .confirm-line input {
  margin-top: 3px;
}
#dialog-save:disabled {
  opacity: .5;
  cursor: not-allowed;
}
@media (max-width: 600px) {
  .status-change-dialog {
    padding: 16px;
  }
  .status-change-dialog dl {
    grid-template-columns: 1fr;
  }
}
.project-detail-dialog {
  align-items: start;
}
.project-detail-dialog > .project-action-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfb;
}
.project-action-section h3 {
  margin: 0 0 10px;
  font-size: 15px;
}
.project-action-section dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}
.project-action-section dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.project-action-section dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.project-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.project-action-buttons button,
.danger-outline {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px 12px;
}
.danger-outline {
  border-color: #e4b7b3;
  color: #9f2d20;
}
.project-detail-dialog .status-change-dialog {
  display: grid;
  gap: 12px;
}
.project-detail-dialog .status-change-dialog dl {
  grid-template-columns: 1fr;
}
@media (max-width: 600px) {
  .project-action-section dl {
    grid-template-columns: 1fr;
  }
  .project-action-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }
}
