.twe-racuni {
  color: #002f36;
  margin: 0 20px 0 0;
}

.twe-racuni h1 {
  font-weight: 700;
}

.twe-app-nav {
  display: flex;
  gap: 0;
  align-items: center;
  min-height: 42px;
  margin: 0 0 14px;
  padding: 0 4px;
  border-bottom: 1px solid #dbe2e8;
  background: #fff;
}

.twe-app-nav a {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 13px;
  color: #003c43;
  text-decoration: none;
  font-weight: 500;
}

.twe-app-nav a:hover,
.twe-app-nav a:focus {
  color: #002f36;
  box-shadow: inset 0 -2px 0 #00d78f;
}

.twe-page-head h1 {
  margin: 0 0 10px;
  font-size: 21px;
  color: #002f36;
}

.twe-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.twe-panel {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  padding: 18px;
  margin: 16px 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.twe-panel h2 {
  margin-top: 0;
}

.twe-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 14px 18px;
}

.twe-racuni label {
  display: block;
  margin-bottom: 12px;
}

.twe-racuni label span {
  display: block;
  margin-bottom: 5px;
  font-weight: 700;
  color: #003c43;
}

.twe-logo-field {
  margin-bottom: 18px;
}

.twe-logo-field > span {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #003c43;
}

.twe-logo-preview {
  width: 120px;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  background: #f6f7f7;
}

.twe-logo-preview img {
  max-width: 100%;
  max-height: 60px;
  display: block;
}

.twe-racuni input[type="text"],
.twe-racuni input[type="email"],
.twe-racuni input[type="number"],
.twe-racuni input[type="date"],
.twe-racuni select,
.twe-racuni textarea {
  width: 100%;
  max-width: 100%;
  border-color: #c9d1d9;
  border-radius: 4px;
}

.twe-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.twe-card {
  background: #fff;
  border: 1px solid #dcdcde;
  border-left: 4px solid #00d78f;
  border-radius: 6px;
  padding: 14px 16px;
}

.twe-card span {
  display: block;
  color: #59727b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.twe-card strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  color: #002f36;
}

.twe-chart {
  height: 230px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  align-items: end;
  border-bottom: 1px solid #dcdcde;
  padding: 18px 10px 0;
}

.twe-bar-wrap {
  min-width: 0;
  text-align: center;
  color: #59727b;
  font-size: 11px;
}

.twe-bar {
  width: 24px;
  margin: 0 auto 6px;
  border-radius: 4px 4px 0 0;
  background: #00e692;
}

.twe-bar-wrap small {
  display: block;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.twe-actions {
  white-space: nowrap;
}

.twe-product-add {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.twe-product-add select {
  width: min(460px, 100%);
}

.twe-inline {
  display: inline;
}

.twe-status {
  display: inline-block;
  min-width: 62px;
  padding: 4px 12px;
  border-radius: 999px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.twe-status-paid {
  background: #d7f5df;
  color: #136b2e;
}

.twe-status-issued,
.twe-status-draft {
  background: #d7eaff;
  color: #1d5797;
}

.twe-status-overdue {
  background: #ffe2d7;
  color: #9b3417;
}

.twe-status-cancelled {
  background: #eee;
  color: #555;
}

.twe-items textarea {
  min-width: 280px;
}

.twe-items input[type="number"],
.twe-items input[type="date"],
.twe-items input[type="text"] {
  min-width: 96px;
}

@media (max-width: 1100px) {
  .twe-grid,
  .twe-form-grid,
  .twe-cards {
    grid-template-columns: 1fr;
  }
}

.twe-split {
  display: grid;
  grid-template-columns: minmax(720px, 56%) minmax(420px, 1fr);
  gap: 20px;
  align-items: stretch;
  min-height: calc(100vh - 135px);
}

.twe-list-pane,
.twe-preview-pane {
  background: #fff;
  border: 1px solid #dfe5eb;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 31, 41, .06);
}

.twe-list-pane {
  overflow: hidden;
}

.twe-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 16px 16px;
}

.twe-title-dropdown {
  font-size: 18px;
  font-weight: 700;
  color: #002f36;
}

.twe-title-dropdown span {
  display: inline-block;
  margin-left: 5px;
  width: 7px;
  height: 7px;
  border-right: 1px solid #69818a;
  border-bottom: 1px solid #69818a;
  transform: rotate(45deg) translateY(-3px);
}

.twe-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.twe-search {
  position: relative;
  margin: 0;
}

.twe-search span {
  position: absolute;
  top: 7px;
  left: 8px;
  color: #6c7f8a;
}

.twe-search input[type="search"] {
  width: 190px;
  min-height: 31px;
  padding-left: 32px;
  border: 1px solid #cfd8df;
  border-radius: 3px;
  font-size: 12px;
  box-shadow: none;
}

.twe-green-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 18px;
  border-radius: 18px;
  background: #003c35;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
}

.twe-green-btn:hover {
  background: #005348;
}

.twe-tabs {
  display: flex;
  gap: 28px;
  padding: 0 16px 16px;
}

.twe-tabs a {
  color: #002f36;
  text-decoration: underline;
  font-weight: 700;
  font-size: 13px;
}

.twe-tabs a.active {
  color: #00b978;
  text-decoration: none;
}

.twe-zervant-table {
  width: 100%;
  border-collapse: collapse;
  color: #003c43;
  font-size: 12px;
}

.twe-zervant-table thead th {
  padding: 14px 12px;
  border-bottom: 1px solid #dbe2e8;
  color: #003c43;
  font-size: 11px;
  text-align: left;
  text-transform: uppercase;
}

.twe-zervant-table th:nth-child(3),
.twe-zervant-table th:nth-child(4),
.twe-zervant-table th:nth-child(5),
.twe-zervant-table th:nth-child(6),
.twe-zervant-table td:nth-child(3),
.twe-zervant-table td:nth-child(4),
.twe-zervant-table td:nth-child(5),
.twe-zervant-table td:nth-child(6) {
  text-align: right;
}

.twe-zervant-table tbody td {
  padding: 13px 12px;
  border-bottom: 1px solid #e4e9ee;
  vertical-align: middle;
}

.twe-invoice-row:hover {
  background: #f7fafb;
}

.twe-invoice-row {
  cursor: pointer;
}

.twe-invoice-row.selected {
  background: #f2f7ff;
}

.twe-month-row td {
  padding: 15px 12px !important;
  background: #f0f3f7;
  border-bottom: 1px solid #dfe5eb;
  font-weight: 700;
  color: #003c43;
}

.twe-month-total td {
  padding: 10px 12px !important;
  background: #f0f3f7;
  border-bottom: 1px solid #dfe5eb;
  font-weight: 700;
}

.twe-row-menu {
  min-width: 145px;
  font-size: 12px;
}

.twe-row-menu a {
  color: #006c7a;
  text-decoration: none;
}

.twe-row-menu a:hover {
  text-decoration: underline;
}

.twe-row-menu .button-link-delete {
  margin-left: 6px;
}

.twe-preview-pane {
  position: sticky;
  top: 46px;
  min-height: calc(100vh - 145px);
  padding: 0;
  overflow: visible;
}

.twe-preview-empty {
  padding: 34px 30px;
}

.twe-preview-pane h2 {
  margin: 0 0 8px;
  color: #002f36;
  font-size: 22px;
}

.twe-preview-pane p {
  margin: 0;
  color: #45606c;
  font-size: 13px;
}

.twe-empty-illustration {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 72px;
  height: 92px;
  transform: translate(-50%, -50%);
  border: 2px solid #63758e;
  border-radius: 3px;
  color: #35627a;
  font-size: 11px;
}

.twe-empty-illustration div {
  padding: 12px 0 0 12px;
  font-weight: 700;
}

.twe-empty-illustration:before,
.twe-empty-illustration:after {
  content: "";
  position: absolute;
  left: 12px;
  width: 36px;
  height: 1px;
  background: #63758e;
}

.twe-empty-illustration:before {
  top: 40px;
}

.twe-empty-illustration:after {
  top: 51px;
}

.twe-empty-illustration span {
  position: absolute;
  top: 19px;
  right: -25px;
  width: 28px;
  height: 28px;
  border: 2px solid #63758e;
  border-radius: 50%;
  background: #fff;
}

.twe-empty-illustration span:after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -7px;
  width: 16px;
  height: 2px;
  background: #63758e;
  transform: rotate(45deg);
}

.twe-invoice-detail[hidden] {
  display: none;
}

.twe-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 13px 24px;
  border-bottom: 1px solid #dfe5eb;
}

.twe-status-form {
  position: relative;
  margin: 0;
}

.twe-status-pill-btn {
  min-width: 92px;
  min-height: 28px;
  padding: 0 28px 0 16px;
  border: 0;
  border-radius: 16px;
  background: #cfe7ff;
  color: #1262a4;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  position: relative;
}

.twe-status-pill-btn:after {
  content: "";
  position: absolute;
  right: 12px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-right: 2px solid #1262a4;
  border-bottom: 2px solid #1262a4;
  transform: rotate(45deg);
}

.twe-status-popover {
  position: absolute;
  z-index: 50;
  top: 36px;
  left: 0;
  width: 360px;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid #d6dde5;
  box-shadow: 0 8px 24px rgba(0, 31, 41, .16);
}

.twe-status-popover label {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.twe-status-popover label span {
  margin: 0;
  font-size: 12px;
  color: #002f36;
}

.twe-status-popover select,
.twe-status-popover input[type="date"] {
  min-height: 32px;
}

.twe-save-status {
  display: block;
  margin: 16px 0 0 auto;
  min-width: 110px;
  min-height: 34px;
  border: 0;
  border-radius: 17px;
  background: #003c35;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.twe-detail-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 12px;
  font-weight: 700;
}

.twe-detail-actions a {
  color: #003c43;
  text-decoration: underline;
}

.twe-detail-body {
  padding: 38px 26px;
}

.twe-detail-kicker {
  margin: 0 0 28px;
  color: #607985;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.twe-detail-body h2 {
  margin-bottom: 22px;
}

.twe-amounts,
.twe-dates {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 160px;
  gap: 10px 28px;
  max-width: 520px;
  margin: 0;
  color: #003c43;
}

.twe-amounts dt,
.twe-dates dt {
  font-size: 12px;
  font-weight: 700;
}

.twe-amounts dd,
.twe-dates dd {
  margin: 0;
  text-align: right;
  font-size: 13px;
}

.twe-amounts dd:last-child,
.twe-amounts dt:nth-last-child(2) {
  font-weight: 800;
}

.twe-detail-body hr {
  margin: 28px 0 22px;
  border: 0;
  border-top: 1px solid #dfe5eb;
}

.twe-timeline {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid #dfe5eb;
  color: #003c43;
  font-size: 12px;
}

.twe-timeline strong {
  display: inline-block;
  padding-bottom: 9px;
  border-bottom: 2px solid #00d78f;
}

.twe-timeline p {
  margin-top: 18px;
  color: #003c43;
}

.twe-timeline p span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 18px;
  border-radius: 50%;
  background: #d8d0ff;
}

.twe-racuni .button,
.twe-racuni .button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #c3ced8;
  border-radius: 16px;
  background: #fff;
  color: #003c43;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.twe-racuni .button-primary {
  border-color: #003c35;
  background: #003c35;
  color: #fff;
}

.twe-racuni-front {
  width: min(1760px, calc(100vw - 32px));
  max-width: none;
  margin: 0 auto;
  padding: 0 0 34px;
  color: #002f36;
}

body.twe-racuni-app-page {
  margin: 0;
  background: #f3f6f9;
}

body.twe-racuni-app-page header,
body.twe-racuni-app-page footer,
body.twe-racuni-app-page #masthead,
body.twe-racuni-app-page #colophon,
body.twe-racuni-app-page .site-header,
body.twe-racuni-app-page .site-footer,
body.twe-racuni-app-page .entry-header,
body.twe-racuni-app-page .page-header,
body.twe-racuni-app-page .entry-title,
body.twe-racuni-app-page .page-title,
body.twe-racuni-app-page .wp-block-post-title {
  display: none !important;
}

body.twe-racuni-app-page #page,
body.twe-racuni-app-page .site,
body.twe-racuni-app-page #content,
body.twe-racuni-app-page .site-content,
body.twe-racuni-app-page .content-area,
body.twe-racuni-app-page .site-main,
body.twe-racuni-app-page main,
body.twe-racuni-app-page article,
body.twe-racuni-app-page .entry-content,
body.twe-racuni-app-page .wp-site-blocks,
body.twe-racuni-app-page .wp-block-group {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.twe-racuni-app-page .entry-content > * {
  max-width: none !important;
}

body.twe-racuni-app-page .twe-racuni-front {
  padding-top: 12px;
}

.twe-racuni-front .twe-app-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 0 18px;
  box-shadow: 0 1px 0 rgba(0, 31, 41, .08);
}

.twe-front-section {
  margin: 0 0 24px;
}

.twe-report-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.twe-report-menu {
  overflow: hidden;
  border: 1px solid #dfe5eb;
  border-radius: 4px;
  background: #fff;
}

.twe-report-menu a {
  display: block;
  padding: 18px 20px;
  border-bottom: 1px solid #e3e8ee;
  color: #003c43;
  text-decoration: none;
}

.twe-report-menu a:last-child {
  border-bottom: 0;
}

.twe-report-menu a.active {
  background: #fff;
}

.twe-report-menu strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.twe-report-menu span {
  display: block;
  color: #56717d;
  font-size: 11px;
  line-height: 1.25;
}

.twe-report-main {
  min-width: 0;
  border: 1px solid #dfe5eb;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 31, 41, .05);
}

.twe-report-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 0 24px;
  background: #003c43;
  color: #fff;
  font-weight: 800;
}

.twe-report-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.twe-report-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) auto auto;
  align-items: stretch;
  border-bottom: 1px solid #e5eaf0;
}

.twe-report-filters label {
  display: block;
  min-height: 58px;
  padding: 13px 24px;
  border-right: 1px solid #e5eaf0;
  margin: 0;
}

.twe-report-filters label:last-child {
  border-right: 0;
}

.twe-report-filters span {
  display: block;
  margin-bottom: 5px;
  color: #003c43;
  font-size: 11px;
  font-weight: 800;
}

.twe-report-filters strong {
  color: #526b78;
  font-size: 12px;
  font-weight: 500;
}

.twe-report-filters select {
  width: 100%;
  min-height: 30px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #526b78;
  box-shadow: none;
  font-size: 12px;
}

.twe-report-apply,
.twe-report-export-submit {
  align-self: center;
  margin: 0 0 0 16px;
  white-space: nowrap;
}

.twe-report-export-submit {
  margin-right: 24px;
}

.twe-report-content {
  padding: 30px 26px 20px;
}

.twe-report-content h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.twe-muted {
  margin: 0 0 22px;
  color: #496879;
  font-size: 12px;
}

.twe-report-chart {
  margin: 20px 0 28px;
  overflow-x: auto;
}

.twe-bar-pair {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 184px;
}

.twe-bar-open {
  background: #d7f2e5;
}

.twe-report-chart .twe-bar-wrap {
  position: relative;
  min-width: 44px;
}

.twe-report-chart .twe-bar-wrap:hover:after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: 222px;
  z-index: 30;
  width: 190px;
  padding: 13px 15px;
  transform: translateX(-50%);
  border: 1px solid #e5eaf0;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 31, 41, .14);
  color: #003c43;
  white-space: normal;
  text-align: left;
  line-height: 1.45;
  font-size: 12px;
}

.twe-report-chart .twe-bar-wrap:hover:before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 214px;
  z-index: 31;
  width: 12px;
  height: 12px;
  transform: translateX(-50%) rotate(45deg);
  background: #fff;
  border-right: 1px solid #e5eaf0;
  border-bottom: 1px solid #e5eaf0;
}

.twe-report-legend {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 14px;
  color: #003c43;
  font-size: 11px;
}

.twe-report-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: #00e692;
}

.twe-report-legend i.open {
  background: #d7f2e5;
}

.twe-report-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 26px;
}

.twe-report-grid h3 {
  margin: 0 0 12px;
  font-size: 14px;
}

.twe-report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.twe-report-table th {
  padding: 11px 0;
  border-bottom: 1px solid #dfe5eb;
  color: #003c43;
  text-align: left;
  text-transform: uppercase;
  font-size: 10px;
}

.twe-report-table th[data-sort] {
  cursor: pointer;
}

.twe-report-table th[data-sort]:hover {
  color: #00a86b;
}

.twe-report-table td {
  padding: 12px 0;
  border-bottom: 1px solid #e7edf2;
}

.twe-report-table th:last-child,
.twe-report-table td:last-child {
  text-align: right;
}

@media (max-width: 1300px) {
  .twe-split {
    grid-template-columns: 1fr;
  }

  .twe-preview-pane {
    position: relative;
    top: auto;
    min-height: 320px;
  }
}

@media (max-width: 900px) {
  .twe-racuni-front {
    width: calc(100vw - 18px);
  }

  .twe-app-nav {
    overflow-x: auto;
  }

  .twe-report-shell,
  .twe-report-grid,
  .twe-report-filters {
    grid-template-columns: 1fr;
  }

  .twe-report-menu {
    display: none;
  }

  .twe-report-top {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .twe-list-head,
  .twe-toolbar,
  .twe-tabs {
    align-items: flex-start;
    flex-direction: column;
  }

  .twe-zervant-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Compact invoice editor: closer to Zervant density and scanability. */
.twe-racuni {
  font-size: 12px;
}

.twe-racuni h1 {
  font-size: 20px;
  line-height: 1.25;
}

.twe-racuni .twe-page-head h1 {
  margin-bottom: 8px;
}

.twe-racuni .twe-panel {
  margin: 10px 0;
  padding: 15px 18px;
  border-color: #d9e1e8;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 31, 41, .06);
}

.twe-racuni .twe-panel h2 {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.25;
}

.twe-racuni label {
  margin-bottom: 9px;
}

.twe-racuni label span,
.twe-racuni .twe-logo-field > span {
  margin-bottom: 5px;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 800;
}

.twe-racuni input[type="text"],
.twe-racuni input[type="email"],
.twe-racuni input[type="number"],
.twe-racuni input[type="date"],
.twe-racuni select {
  min-height: 34px;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.35;
}

.twe-racuni textarea {
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.35;
}

.twe-racuni .twe-form-grid {
  gap: 11px 18px;
}

.twe-invoice-form > .twe-panel:first-of-type {
  padding-top: 14px;
  padding-bottom: 14px;
}

.twe-invoice-form .twe-panel:nth-of-type(2) {
  padding-top: 14px;
}

.twe-product-add {
  margin: 0 0 10px;
}

.twe-product-add .button,
.twe-invoice-form .button,
.twe-invoice-form .button-primary {
  min-height: 32px;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.twe-items {
  table-layout: fixed;
  border-color: #d7e0e7;
  font-size: 12px;
}

.twe-items th {
  padding: 8px 9px;
  color: #003c43;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.twe-items td {
  padding: 8px 9px;
  vertical-align: top;
}

.twe-items th:nth-child(1) {
  width: 25%;
}

.twe-items th:nth-child(2) {
  width: 14%;
}

.twe-items th:nth-child(3),
.twe-items th:nth-child(4),
.twe-items th:nth-child(5),
.twe-items th:nth-child(6) {
  width: 13%;
}

.twe-items th:nth-child(7) {
  width: 92px;
}

.twe-items textarea {
  min-width: 0;
  min-height: 38px;
  resize: vertical;
}

.twe-items input[type="number"],
.twe-items input[type="date"],
.twe-items input[type="text"] {
  min-width: 0;
  height: 34px;
}

.twe-invoice-form .twe-panel textarea[name="notes"],
.twe-invoice-form .twe-panel textarea[name="tax_note"] {
  min-height: 72px;
}

.twe-invoice-form .submit {
  margin: 10px 0 0;
  padding: 0;
}

.twe-invoice-form .submit .button-primary {
  min-height: 36px;
  padding: 6px 18px;
}

@media (max-width: 1100px) {
  .twe-items {
    table-layout: auto;
  }
}
