:root {
  --ink: #071d3b;
  --muted: #68778b;
  --line: #e4e8ef;
  --paper: #f6f7fa;
  --white: #fff;
  --green: #0b396d;
  --lime: #d7aa3d;
  --red: #c44e45;
  --amber: #9a6b13;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.5 Segoe UI,
    Arial,
    sans-serif;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  background: var(--ink);
  color: #e7edf6;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #294b74 transparent;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 4px 3px 12px;
  text-decoration: none;
  border-bottom: 1px solid #294b74;
}
.brand img {
  display: block;
  width: 154px;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 5px;
}
nav {
  margin-top: 32px;
  display: grid;
  gap: 8px;
}
nav a {
  display: flex;
  align-items: center;
  padding: 13px 15px;
  border-radius: 8px;
  color: #aebbd0;
  text-decoration: none;
}
nav a:hover,
nav a:first-child {
  background: #123d70;
  color: #fff;
}
.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 4px;
  border-top: 1px solid #294b74;
  padding: 18px 8px;
}
.sidebar-bottom small {
  color: #91a4bf;
}
.logout {
  color: var(--lime);
  text-decoration: none;
  margin-top: 13px;
}
.shell {
  margin-left: 250px;
  padding: 32px 5vw;
  max-width: 1500px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}
.topbar h1 {
  margin: 5px 0 0;
  font-size: 25px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--green);
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.notification-menu {
  position: relative;
}
.notification-trigger {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  padding: 5px;
}
.notification-trigger::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background: currentColor;
  clip-path: polygon(
    32% 79%,
    18% 79%,
    18% 70%,
    25% 65%,
    28% 43%,
    34% 26%,
    50% 17%,
    66% 26%,
    72% 43%,
    75% 65%,
    82% 70%,
    82% 79%,
    68% 79%,
    64% 88%,
    36% 88%
  );
}
.notification-trigger::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 3px;
  left: 12px;
  top: 27px;
  background: currentColor;
  border-radius: 0 0 5px 5px;
}
.notification-dot {
  position: absolute;
  top: -4px;
  right: -7px;
  min-width: 17px;
  padding: 2px 4px;
  border-radius: 10px;
  background: var(--lime);
  color: var(--ink);
  font-size: 10px;
  text-align: center;
}
.notification-dropdown {
  display: none;
  position: absolute;
  z-index: 5;
  top: 42px;
  right: 0;
  width: 310px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(7, 29, 59, 0.15);
  overflow: hidden;
}
.notification-menu:hover .notification-dropdown,
.notification-menu:focus-within .notification-dropdown {
  display: block;
}
.dropdown-title {
  padding: 15px 17px;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
}
.dropdown-item {
  display: block;
  padding: 12px 17px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.dropdown-item.unread {
  background: #fbf4df;
}
.dropdown-item b,
.dropdown-item small {
  display: block;
}
.dropdown-item small {
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dropdown-empty {
  display: block;
  padding: 20px 17px;
  color: var(--muted);
}
.dropdown-footer {
  display: block;
  width: 100%;
  padding: 12px 17px;
  border: 0;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.nav-icon {
  width: 24px;
  display: inline-block;
  margin-right: 8px;
  color: var(--lime);
  font-size: 18px;
  text-align: center;
}
.nav-money {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.inline-form {
  display: inline;
}
.text-danger {
  border: 0;
  background: transparent;
  color: var(--red);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.inline-edit {
  display: grid;
  gap: 8px;
  min-width: 230px;
  margin-top: 10px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.panel details summary {
  cursor: pointer;
  list-style: none;
}
.avatar {
  display: grid;
  place-items: center;
  background: var(--lime);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--ink);
}
h2 {
  font-size: 34px;
  line-height: 1.1;
  margin: 8px 0;
}
h3 {
  margin: 0;
  font-size: 19px;
}
.muted,
small {
  color: var(--muted);
}
.page-intro,
.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 28px;
}
.btn {
  border: 0;
  border-radius: 6px;
  padding: 11px 17px;
  text-decoration: none;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}
.primary {
  background: var(--green);
  color: #fff;
}
.dark {
  background: var(--ink);
  color: #fff;
}
.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.danger {
  background: #fff0ed;
  color: var(--red);
}
.wide {
  width: 100%;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}
.stat,
.panel,
.offer {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.stat {
  padding: 22px;
  display: grid;
  gap: 7px;
}
.stat span {
  font-size: 13px;
  color: var(--muted);
}
.stat strong {
  font-size: 32px;
}
.stat small {
  font-size: 12px;
}
.stat.accent {
  background: #f4e6bf;
  border-color: #e6cb82;
}
.stat.accent span,
.stat.accent small {
  color: #735414;
}
.panel {
  padding: 24px;
  margin-bottom: 22px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
th,
td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
td small {
  display: block;
  font-size: 12px;
}
.badge {
  display: inline-block;
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}
.badge.warning {
  background: #f4e6bf;
  color: var(--amber);
}
.badge.info {
  background: #dce8f6;
  color: #0b396d;
}
.badge.success {
  background: #e8eef7;
  color: #315578;
}
.badge.danger {
  background: #ffe1dd;
  color: var(--red);
}
.large {
  font-size: 14px;
}
.text-link,
.back-link {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}
.danger-link {
  color: var(--red);
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  margin-left: 10px;
  padding: 0;
}
.back-link {
  display: inline-block;
  margin-bottom: 22px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.details {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  margin: 0;
}
.details dt {
  color: var(--muted);
}
.details dd {
  margin: 0;
  font-weight: 600;
}
.timeline {
  display: grid;
  gap: 23px;
}
.timeline-item {
  display: flex;
  gap: 14px;
  color: #aab4c2;
}
.timeline-item.done {
  color: var(--ink);
}
.timeline-item i {
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
  margin-top: 5px;
}
.timeline-item.done i {
  background: var(--green);
  border-color: var(--green);
}
.timeline-item small {
  display: block;
}
.offer {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fbf4df;
  border-color: #ead39a;
}
.offer form {
  display: flex;
  gap: 8px;
}
.form-panel {
  max-width: 950px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid label,
.report-filter label,
label {
  display: grid;
  gap: 7px;
  font-weight: 700;
  font-size: 13px;
}
.check-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
  padding: 8px 0 0;
}
.check-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
}
.check-list input {
  width: auto;
  margin: 0;
}
.full {
  grid-column: 1/-1;
}
input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.item-photo {
  display: block;
  width: min(100%, 280px);
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
textarea {
  min-height: 88px;
  resize: vertical;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
.report-filter form {
  display: flex;
  align-items: end;
  gap: 14px;
}
.report-filter label {
  flex: 1;
}
.alert {
  padding: 12px 18px;
  margin-bottom: 20px;
  border-radius: 6px;
  background: #e8eef7;
  color: #315578;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-art {
  background: var(--ink);
  color: #fff;
  padding: 8vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-brand img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
}
.login-brand p {
  max-width: 390px;
  font-size: 28px;
  line-height: 1.2;
}
.art-note {
  color: var(--lime);
}
.login-form {
  max-width: 450px;
  width: 80%;
  margin: auto;
}
.login-form h1 {
  font-size: 45px;
  line-height: 1.05;
  margin: 15px 0;
}
.login-form form {
  display: grid;
  gap: 18px;
  margin-top: 35px;
}
.demo {
  font-size: 12px;
  color: var(--muted);
  margin-top: 25px;
}
.empty-cell {
  text-align: center;
  padding: 35px;
}
.nav-count {
  margin-left: auto;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 12px;
  background: var(--lime);
  color: var(--ink);
  font-size: 11px;
  text-align: center;
}
.notification-list {
  padding: 8px 24px;
}
.notification {
  display: flex;
  gap: 14px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
.notification:last-child {
  border-bottom: 0;
}
.notification-mark {
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 50%;
  background: transparent;
}
.notification.unread .notification-mark {
  background: var(--lime);
}
.notification-meta {
  display: flex;
  gap: 18px;
  justify-content: space-between;
}
.notification p {
  margin: 5px 0 0;
  color: var(--muted);
}
.empty {
  padding: 50px;
}
.form-section {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 850px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 16px;
    gap: 15px;
  }
  .brand img {
    width: 178px;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    margin-top: 15px;
  }
  .sidebar-bottom {
    display: none;
  }
  .shell {
    margin: 0;
    padding: 25px 16px;
  }
  .topbar {
    margin-bottom: 28px;
  }
  .profile {
    font-size: 0;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .detail-grid,
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-art {
    min-height: 280px;
    padding: 30px;
  }
  .login-brand p {
    font-size: 22px;
  }
  .login-form {
    padding: 45px 0;
  }
  .page-intro,
  .detail-head,
  .offer {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }
  .report-filter form {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .report-filter form .btn {
    grid-column: span 1;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
}
