@import url("invoice.css");
[hidden] {
  display: none !important;
}
.sidebar nav {
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
}
:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #213732;
  background: #f6f8f7;
  font-synthesis: none;
  --green: #147d69;
  --muted: #74827c;
  --border: #e2e9e5;
  --ink: #183a30;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
}
a {
  color: var(--green);
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--green);
  color: white;
  padding: 11px 17px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
}
button:hover,
.button:hover {
  filter: brightness(0.96);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.secondary,
.button.secondary {
  background: white;
  border-color: var(--border);
  color: #345048;
}
button.danger {
  background: #b93b3b;
}
.text-button {
  background: none;
  color: var(--green);
  padding: 8px;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d9e3dd;
  border-radius: 7px;
  color: #253e35;
  background: white;
  min-height: 43px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #9ed8c5;
  outline-offset: 1px;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #53655c;
  font-size: 12px;
  font-weight: 600;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
  font-weight: 650;
  margin-bottom: 9px;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 14px;
}
p {
  line-height: 1.65;
  color: var(--muted);
}
small {
  color: var(--muted);
}
.shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  background: white;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 28px 17px;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 750;
  font-size: 27px;
  letter-spacing: -1px;
  color: var(--ink);
  padding: 0 13px 34px;
}
.brand-mark {
  height: 36px;
  width: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  background: var(--green);
  font-size: 24px;
  font-weight: 400;
  box-shadow: 0 4px 10px #147d6920;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 3px;
}
.nav-label {
  font-size: 9px;
  color: #99a39e;
  letter-spacing: 1.6px;
  margin: 16px 15px 12px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #6f7e76;
  padding: 12px 15px;
  border-radius: 7px;
  margin-bottom: 4px;
  font-size: 13px;
}
.nav-link.active {
  background: #e9f5ef;
  color: #137c64;
  font-weight: 650;
}
.nav-icon {
  font-size: 18px;
  width: 21px;
  text-align: center;
}
.sidebar-footer {
  margin-top: auto;
  padding: 20px 12px 0;
  border-top: 1px solid var(--border);
}
.release-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  border: 1px solid #b8dfd1;
  border-radius: 999px;
  background: #eaf7f2;
  color: #116d59;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.topbar .release-pill { margin: 0; }
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #e4eee8;
  display: grid;
  place-items: center;
  font-weight: 650;
  color: var(--green);
}
.profile b {
  font-size: 12px;
}
.profile small {
  font-size: 10px;
  display: block;
  margin-top: 3px;
}
.workspace {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  gap: 15px;
}
.breadcrumb {
  color: #87948b;
  font-size: 12px;
}
.breadcrumb b {
  color: #385548;
  font-weight: 500;
}
.topbar-right {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 12px;
  color: #78877e;
}
.secure-pill {
  color: #48836a;
  background: #f0f7f2;
  padding: 6px 11px;
  border-radius: 20px;
  font-size: 10px;
}
.content {
  padding: 33px 38px 55px;
  max-width: 1660px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  gap: 20px;
}
.page-heading p {
  margin-bottom: 0;
  font-size: 13px;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 22px;
  overflow: hidden;
  box-shadow: 0 2px 3px #1a4d3010;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 24px;
  border-bottom: 1px solid #edf0ee;
  gap: 12px;
}
.card-head h2,
.card-head p {
  margin: 0;
}
.card-body {
  padding: 24px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 23px 0;
}
.stat {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  position: relative;
  min-width: 0;
}
.stat-label {
  color: #77887d;
  font-size: 12px;
  margin-bottom: 20px;
}
.stat-value {
  font-size: 27px;
  letter-spacing: -1px;
  font-weight: 650;
  color: #223e30;
  overflow-wrap: anywhere;
}
.stat-foot {
  font-size: 10px;
  color: #9aa69e;
  margin-top: 12px;
}
.stat-icon {
  position: absolute;
  right: 18px;
  top: 17px;
  padding: 7px 10px;
  background: #eef6f1;
  border-radius: 8px;
  color: #4a916f;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 21px;
}
.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
.mini-metrics b {
  display: block;
  font-size: 19px;
  margin-top: 10px;
}
.welcome-card {
  background: #edf5ef;
  border: 1px solid #dbeadd;
  border-radius: 10px;
  padding: 24px;
  position: relative;
}
.welcome-card h2 {
  color: #31563e;
}
.welcome-card p {
  font-size: 12px;
  max-width: 240px;
}
.welcome-card .button {
  font-size: 12px;
  margin-top: 9px;
}
.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-bar label {
  min-width: 140px;
  flex: 1;
}
.filter-bar input,
.filter-bar select {
  min-height: 39px;
  font-size: 12px;
}
.table-wrap {
  width: 100%;
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #859087;
  background: #fafcfb;
  font-weight: 600;
  padding: 14px 20px;
  white-space: nowrap;
}
td {
  font-size: 12px;
  padding: 17px 20px;
  border-top: 1px solid #eef2ef;
  color: #55705e;
}
td b {
  color: #294b38;
}
tbody tr:hover {
  background: #fbfdfb;
}
.badge {
  border-radius: 5px;
  padding: 5px 8px;
  display: inline-block;
  font-size: 10px;
  background: #eaf6ed;
  color: #3e8b55;
}
.badge.cancelled {
  background: #fceeee;
  color: #b45b5b;
}
.badge.credit {
  background: #fff7e4;
  color: #ac822d;
}
.table-footer {
  padding: 15px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8b988e;
  font-size: 11px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.full {
  grid-column: 1/-1;
}
.section-number {
  border-radius: 6px;
  background: #eaf5ee;
  color: #25805b;
  font-size: 11px;
  padding: 6px 9px;
  margin-right: 10px;
}
.muted {
  color: var(--muted);
}
.hint {
  font-size: 11px;
  line-height: 1.6;
  color: #8b978f;
  margin: 8px 0 0;
}
.empty {
  text-align: center;
  padding: 50px 22px;
  color: #8c9e92;
}
.empty-icon {
  font-size: 33px;
  color: #abc5b3;
  display: block;
  margin-bottom: 12px;
}
.empty h3 {
  color: #5f7768;
  font-size: 15px;
}
.empty p {
  font-size: 12px;
  max-width: 350px;
  margin: 0 auto;
}
.loading {
  padding: 50px;
  text-align: center;
  color: #869c8b;
}
.error-state {
  background: #fff5f2;
  color: #9a4c39;
  border: 1px solid #f1d6cd;
  padding: 22px;
  border-radius: 10px;
}
.error-state p {
  color: inherit;
}
.toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #234d38;
  color: white;
  padding: 15px 21px;
  max-width: 420px;
  border-radius: 10px;
  box-shadow: 0 5px 25px #0002;
  z-index: 100;
  font-size: 13px;
}
.toast.error {
  background: #a44135;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 14px;
  width: min(650px, calc(100vw - 30px));
  max-height: 90vh;
  padding: 28px;
  box-shadow: 0 20px 60px #0002;
}
dialog::backdrop {
  background: #18382d55;
  backdrop-filter: blur(3px);
}
.dialog-close {
  float: right;
  padding: 0;
  width: 34px;
  min-height: 34px;
  font-size: 24px;
  margin: -12px -12px 5px 10px;
}
.initial-loading {
  display: grid;
  place-items: center;
  height: 100vh;
  color: var(--green);
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: white;
}
.login-story {
  background: #edf5ef;
  padding: 60px 12%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-story .brand {
  padding: 0;
  margin-bottom: 65px;
}
.login-story h1 {
  font-size: 45px;
  line-height: 1.18;
  max-width: 440px;
  color: #214c35;
  letter-spacing: -1.8px;
}
.login-story p {
  max-width: 350px;
  font-size: 15px;
}
.login-feature {
  margin-top: 35px;
  padding: 20px;
  border-top: 1px solid #ccdfd1;
  color: #527b5e;
  line-height: 2.4;
  font-size: 13px;
}
.login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-form {
  width: 100%;
  max-width: 350px;
}
.login-form h2 {
  font-size: 27px;
  margin-bottom: 10px;
}
.login-form form {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}
.login-form button[type="submit"] {
  margin-top: 4px;
}
.login-links {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.login-foot {
  font-size: 10px;
  text-align: center;
  margin-top: 35px;
  color: #9ba69f;
}
.item-card {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 18px;
  margin-bottom: 15px;
  background: #fcfdfc;
}
.item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.item-top b {
  font-size: 12px;
  color: #809084;
}
.item-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 13px;
}
.item-grid .wide {
  grid-column: span 2;
}
.item-grid label {
  font-size: 11px;
}
.item-grid input,
.item-grid select {
  padding: 9px 10px;
  font-size: 12px;
}
.remove-item {
  background: none;
  color: #ba7772;
  font-size: 11px;
  padding: 4px 8px;
  min-height: 30px;
}
.invoice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 23px;
}
.summary-panel {
  position: sticky;
  top: 20px;
  align-self: start;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  font-size: 12px;
  color: #6e8274;
}
.summary-total {
  border-top: 1px solid var(--border);
  padding-top: 17px;
  margin-top: 10px;
  font-weight: 700;
  font-size: 19px;
  color: #214e33;
}
.summary-panel button {
  width: 100%;
  margin-top: 16px;
}
.notice {
  padding: 14px 18px;
  background: #f0f6f1;
  border-radius: 8px;
  font-size: 12px;
  color: #587860;
  line-height: 1.6;
  margin-bottom: 20px;
}
.checks {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.gst-mode-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.gst-mode-options .check {
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.gst-mode-options .check:has(input:checked) {
  border-color: var(--green);
  background: #eaf7f1;
}
.check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.check input {
  width: 17px;
  min-height: 17px;
  accent-color: var(--green);
}
.activity-entry {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.activity-entry pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  background: #f5f8f5;
  padding: 12px;
  max-height: 250px;
  overflow: auto;
}
.progress {
  width: 100%;
  height: 14px;
  accent-color: var(--green);
}
.menu-toggle {
  display: none;
}
.export-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.export-option {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 9px;
}
.export-option p {
  font-size: 12px;
  margin-bottom: 0;
}
.export-option label {
  flex-direction: row;
  font-size: 14px;
  color: #345940;
  align-items: center;
}
.export-option input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}
.chart-list {
  display: grid;
  gap: 17px;
}
.chart-row {
  display: grid;
  grid-template-columns: 80px 1fr 100px;
  gap: 12px;
  align-items: center;
  font-size: 11px;
}
.chart-track {
  height: 9px;
  background: #edf3ee;
  border-radius: 5px;
  overflow: hidden;
}
.chart-track progress {
  width: 100%;
  height: 9px;
  accent-color: #5b9c78;
}
.chart-row b {
  text-align: right;
  font-size: 11px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.settings-grid .card {
  margin: 0;
}
.invoice-view .invoice-document {
  border: 0;
}
.invoice-view .invoice-items th {
  white-space: normal;
  text-transform: none;
  letter-spacing: 0;
}
.invoice-view .invoice-items td {
  font-size: 8px;
}
.invoice-view .totals-table td {
  font-size: 10px;
}
.version-tag {
  font-size: 11px;
  color: #8b998f;
}
.footer-note {
  text-align: center;
  font-size: 10px;
  color: #9ca89f;
  margin-top: 22px;
}
.asset-preview {
  display: block;
  max-width: 220px;
  max-height: 110px;
  object-fit: contain;
  padding: 10px;
  margin-bottom: 14px;
  border: 1px solid #d8e4dc;
  border-radius: 8px;
  background: white;
}
.danger-zone {
  margin-top: 22px;
  border-color: #e6b8aa;
}
.danger-zone .card-head {
  background: #fff3ef;
}
.payment-row {
  margin-top: 12px;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 42px;
  }
  .stats {
    gap: 24px;
  }
}
@media (max-width: 1150px) {
  .shell {
    grid-template-columns: 200px 1fr;
  }
  .sidebar {
    width: 200px;
  }
  .content {
    padding: 27px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .invoice-layout {
    grid-template-columns: 1fr;
  }
  .summary-panel {
    position: static;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .item-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .item-grid .wide {
    grid-column: span 3;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    width: 240px;
    transition: transform 0.2s;
    box-shadow: 5px 0 20px #0001;
  }
  .shell.menu-open .sidebar {
    transform: translateX(0);
  }
  .menu-toggle {
    display: inline-flex;
    background: white;
    color: var(--ink);
    border: 1px solid var(--border);
    padding: 7px 10px;
  }
  .topbar {
    height: 65px;
    padding: 0 17px;
  }
  .topbar-right .secure-pill {
    display: none;
  }
  .topbar-right {
    font-size: 10px;
    gap: 8px;
  }
  .breadcrumb {
    display: none;
  }
  .content {
    padding: 23px 16px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .stats {
    gap: 11px;
    margin: 17px 0;
  }
  .stat {
    padding: 17px 14px;
  }
  .stat-value {
    font-size: 22px;
  }
  .stat-label {
    font-size: 11px;
    padding-right: 18px;
  }
  .stat-icon {
    right: 10px;
    top: 12px;
    padding: 4px 7px;
    font-size: 12px;
  }
  .stat-foot {
    font-size: 9px;
  }
  .card-head,
  .card-body {
    padding: 18px;
  }
  .form-grid,
  .form-grid.three {
    grid-template-columns: 1fr;
  }
  .item-grid {
    grid-template-columns: 1fr 1fr;
  }
  .item-grid .wide {
    grid-column: span 2;
  }
  .export-options {
    grid-template-columns: 1fr;
  }
  .login-layout {
    display: block;
  }
  .login-story {
    padding: 30px 25px;
  }
  .login-story .brand {
    margin-bottom: 30px;
  }
  .login-story h1 {
    font-size: 30px;
  }
  .login-feature {
    display: none;
  }
  .login-form-wrap {
    padding: 35px 25px;
  }
  .login-story p {
    margin-bottom: 0;
    font-size: 13px;
  }
  .mini-metrics {
    gap: 8px;
  }
  .mini-metrics b {
    font-size: 16px;
  }
  .filter-bar label {
    min-width: 120px;
  }
  .table-wrap > table > thead {
    display: none;
  }
  .table-wrap > table > tbody > tr {
    display: block;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
  }
  .table-wrap > table > tbody > tr > td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 6px 0;
    border: 0;
    text-align: right;
  }
  .table-wrap > table > tbody > tr > td:before {
    content: attr(data-label);
    font-size: 10px;
    color: #8a998e;
    text-align: left;
  }
  .toast {
    left: 15px;
    right: 15px;
    bottom: 15px;
    max-width: none;
  }
  .invoice-view {
    overflow: auto;
  }
  .invoice-view .invoice-document {
    min-width: 690px;
  }
  .chart-row {
    grid-template-columns: 60px 1fr 90px;
  }
  .table-footer {
    padding: 14px;
    font-size: 10px;
  }
  .topbar-right .workspace-name {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
