.ta-app,
.ta-login {
  --blue: #0700ea;
  --orange: #ff9202;
  --ink: #17233a;
  --muted: #5b6880;
  --line: #dce2ef;
  --bg: #f3f6fc;
  font:
    15px/1.55 system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  color: var(--ink);
  box-sizing: border-box;
}
.ta-app *,
.ta-login * {
  box-sizing: border-box;
}
.ta-app {
  display: flex;
  background: var(--bg);
  min-height: 850px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}
.ta-sidebar {
  width: 245px;
  flex-shrink: 0;
  background: var(--blue);
  color: white;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
}
.ta-brand {
  display: grid;
  gap: 6px;
  text-align: center;
  margin-bottom: 24px;
}
.ta-brand img {
  width: 110px;
  margin: auto;
  border-radius: 12px;
}
.ta-brand small {
  color: #fff;
  opacity: 0.9;
}
.ta-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ta-app button,
.ta-btn {
  font: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 9px;
  padding: 10px 14px;
  background: var(--blue);
  color: white;
  text-decoration: none;
  display: inline-block;
}
.ta-sidebar button {
  background: transparent;
  text-align: left;
  color: white;
  padding: 9px 12px;
  font-size: 13px;
}
.ta-sidebar button:hover,
.ta-sidebar button.active {
  background: var(--orange);
  color: #14223a;
  font-weight: 650;
}
.ta-logout {
  margin-top: 24px;
  color: #fff !important;
  text-align: center;
  font-weight: 600;
}
.ta-main {
  flex: 1;
  min-width: 0;
  padding: 24px;
}
.ta-top {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 22px;
}
.ta-top h1 {
  font-size: 26px;
  line-height: 1.3;
  color: var(--ink);
  margin: 4px 0;
}
.ta-top small {
  font-size: 11px;
  letter-spacing: 0.09em;
  color: var(--muted);
}
.ta-top span {
  font-size: 13px;
}
.ta-app .ta-mobile {
  display: none;
}
.ta-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.ta-app .ta-card {
  background: white;
  text-align: left;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 20px;
  box-shadow: 0 5px 15px #17233a05;
}
.ta-card strong {
  display: block;
  font-size: 23px;
  line-height: 1.3;
  margin-top: 10px;
  color: var(--blue);
}
.ta-card span {
  font-size: 12px;
  color: var(--muted);
}
.ta-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin-top: 18px;
}
.ta-panel h2 {
  font-size: 19px;
  margin: 0 0 16px;
}
.ta-panel h3 {
  font-size: 16px;
}
.ta-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.ta-app .ta-secondary {
  background: #e9edfb;
  color: var(--blue);
}
.ta-app .ta-orange {
  background: var(--orange);
  color: #14223a;
}
.ta-app .ta-danger {
  background: #ffe5e5;
  color: #9f1818;
}
.ta-app button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.ta-filters {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.ta-filters label {
  flex: 1;
  min-width: 125px;
  font-size: 12px;
}
.ta-app input,
.ta-app select,
.ta-app textarea {
  font: inherit;
  color: var(--ink);
  background: white;
  border: 1px solid #bac5d8;
  border-radius: 8px;
  padding: 9px 11px;
  width: 100%;
  min-width: 0;
}
.ta-app input:focus,
.ta-app select:focus,
.ta-app textarea:focus {
  outline: 2px solid #0700ea50;
  outline-offset: 1px;
}
.ta-app input[type="file"] {
  font-size: 12px;
}
.ta-app textarea {
  min-height: 90px;
  resize: vertical;
}
.ta-table-wrap {
  overflow: auto;
  margin-top: 18px;
}
.ta-app table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ta-app th,
.ta-app td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  vertical-align: top;
}
.ta-app th {
  background: #f6f8fe;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ta-app td .ta-secondary {
  padding: 5px 9px;
  font-size: 12px;
}
.ta-status {
  background: #e9edfb;
  color: var(--blue);
  border-radius: 20px;
  padding: 4px 8px;
  font-size: 11px;
  display: inline-block;
}
.ta-empty {
  text-align: center;
  padding: 35px 15px;
  color: var(--muted);
  background: #f7f9fd;
  border: 1px dashed #c6d0e5;
  border-radius: 10px;
  margin: 18px 0;
}
.ta-note {
  font-size: 13px;
  color: var(--muted);
}
.ta-message:not(:empty) {
  padding: 12px;
  margin-bottom: 15px;
  background: #fff1dc;
  border-left: 4px solid var(--orange);
  border-radius: 6px;
}
.ta-dialog {
  border: 0;
  border-radius: 16px;
  padding: 0;
  max-width: 900px;
  width: 92%;
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 20px 80px #17233a55;
}
.ta-dialog::backdrop {
  background: #07132b88;
}
.ta-dialog-body {
  padding: 26px;
  overflow: auto;
  max-height: 90vh;
}
.ta-dialog h2 {
  margin: 0 0 16px;
  font-size: 22px;
}
.ta-dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ta-dialog header button {
  background: #edf1fa;
  color: var(--ink);
}
.ta-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ta-form-grid label {
  display: block;
  font-size: 13px;
  font-weight: 550;
}
.ta-wide {
  grid-column: 1/-1;
}
.ta-form-grid label small {
  font-weight: 400;
  color: var(--muted);
  display: block;
}
.ta-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ta-details div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.ta-details small {
  display: block;
  color: var(--muted);
}
.ta-notices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.ta-notices button {
  width: 100%;
  text-align: left;
  background: #fff5e6;
  color: var(--ink);
  font-size: 13px;
}
.ta-chart-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 8px;
  margin: 14px 0;
  align-items: center;
  font-size: 12px;
}
.ta-chart-bars {
  display: grid;
  gap: 3px;
}
.ta-chart-bars i {
  display: block;
  height: 13px;
  background: var(--blue);
  min-width: 0;
  border-radius: 3px;
}
.ta-chart-bars i.cost {
  background: var(--orange);
}
.ta-legend span {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
}
.ta-legend span:first-child {
  color: var(--blue);
}
.ta-legend span:last-child {
  color: #905000;
}
.ta-login {
  max-width: 440px;
  margin: 35px auto;
  padding: 30px;
  background: white;
  border: 1px solid #dce2ef;
  border-radius: 18px;
  box-shadow: 0 12px 35px #17233a11;
}
.ta-login img {
  width: 100px;
  display: block;
  margin: auto;
}
.ta-login h2 {
  text-align: center;
  font-size: 23px;
}
.ta-login label {
  display: block;
  margin-bottom: 5px;
}
.ta-login input {
  width: 100%;
  padding: 11px;
  border: 1px solid #bbc6da;
  border-radius: 8px;
}
.ta-login input[type="submit"] {
  border: 0;
  background: var(--blue);
  color: white;
  cursor: pointer;
}
.ta-items {
  display: grid;
  gap: 8px;
}
.ta-item-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 40px;
  gap: 5px;
}
.ta-journal-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 40px;
  gap: 5px;
}
.ta-app a {
  color: var(--blue);
}
.ta-app .ta-logout {
  color: #fff;
}
.ta-pagination {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 15px;
  font-size: 12px;
}
@media (max-width: 1000px) {
  .ta-sidebar {
    width: 200px;
  }
  .ta-main {
    padding: 18px;
  }
  .ta-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  .ta-app {
    border-radius: 10px;
    min-height: 650px;
  }
  .ta-sidebar {
    display: none;
    position: absolute;
    z-index: 3;
    left: 0;
    top: 0;
    bottom: 0;
    overflow: auto;
    width: 245px;
  }
  .ta-app.menu-open .ta-sidebar {
    display: flex;
  }
  .ta-main {
    padding: 15px;
  }
  .ta-app .ta-mobile {
    display: block;
    background: #e9edfb !important;
    color: var(--blue) !important;
  }
  .ta-top {
    gap: 8px;
  }
  .ta-top h1 {
    font-size: 20px;
  }
  .ta-top span {
    display: none;
  }
  .ta-top small {
    font-size: 9px;
  }
  .ta-card strong {
    font-size: 18px;
  }
  .ta-card {
    padding: 14px !important;
  }
  .ta-cards {
    gap: 9px;
  }
  .ta-panel {
    padding: 15px;
  }
  .ta-form-grid,
  .ta-details {
    grid-template-columns: 1fr;
  }
  .ta-item-row,
  .ta-journal-row {
    grid-template-columns: 1fr 1fr;
  }
  .ta-item-row input:first-child,
  .ta-journal-row select {
    grid-column: 1/-1;
  }
  .ta-dialog-body {
    padding: 18px;
  }
}
@media print {
  .ta-sidebar,
  .ta-actions,
  .ta-filters,
  .ta-top button {
    display: none;
  }
  .ta-app {
    border: 0;
  }
  .ta-main {
    padding: 0;
  }
  .ta-panel {
    break-inside: avoid;
  }
  .ta-table-wrap {
    overflow: visible;
  }
}
