.mytheme .invoice-form-view {
  box-sizing: border-box;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 22px 34px;
}

.mytheme .invoice-page-header {
  box-sizing: border-box;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid #ead8b8;
  border-radius: 12px;
  background: linear-gradient(115deg, #fff7e8, #fffdf8 58%, #fff);
}

.mytheme .v-label.invoice-page-title {
  color: #282828;
  font-size: 27px !important;
  font-weight: 700;
  line-height: 1.25;
}

.mytheme .v-label.invoice-page-subtitle {
  margin-top: 4px;
  color: #666;
  font-size: 13px;
  font-weight: 400;
}

.mytheme .invoice-workspace {
  width: 100%;
}

.mytheme .invoice-form-column > .v-spacing {
  height: 14px;
}

.mytheme .v-panel.invoice-step-card,
.mytheme .v-panel.invoice-summary-card {
  overflow: hidden;
  border: 1px solid #dedede;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.mytheme .v-panel.invoice-step-card {
  border-top: 2px solid rgba(213, 155, 53, 0.62);
}

.mytheme .v-panel.invoice-step-card > .v-panel-content,
.mytheme .v-panel.invoice-summary-card > .v-panel-content {
  border: 0;
  background: transparent;
}

.mytheme .invoice-step-card .v-margin-top {
  padding-top: 17px;
}

.mytheme .invoice-step-card .v-margin-right {
  padding-right: 19px;
}

.mytheme .invoice-step-card .v-margin-bottom {
  padding-bottom: 19px;
}

.mytheme .invoice-step-card .v-margin-left {
  padding-left: 19px;
}

.mytheme .invoice-step-header {
  box-sizing: border-box;
  padding-bottom: 13px;
  border-bottom: 1px solid #e8e8e8;
}

.mytheme .v-label.invoice-step-number {
  box-sizing: border-box;
  width: 34px !important;
  height: 34px;
  padding-top: 6px;
  border-radius: 50%;
  background: #d59b35;
  color: #17130c;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 0 0 4px rgba(213, 155, 53, 0.12);
}

.mytheme .v-label.invoice-step-title,
.mytheme .v-label.invoice-summary-title {
  color: #303030;
  font-size: 18px !important;
  font-weight: 700;
  line-height: 1.3;
}

.mytheme .v-label.invoice-step-description {
  margin-top: 2px;
  color: #6e6e6e;
  font-size: 12px;
  font-weight: 400;
}

.mytheme .v-label.invoice-field-label {
  margin-bottom: 7px;
  color: #555;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.mytheme .v-checkbox.invoice-private-toggle {
  box-sizing: border-box;
  min-width: 310px;
  padding: 8px 12px;
  border: 1px solid #d8d8d8;
  border-radius: 7px;
  background: #fafafa;
}

/* Valo pozycjonuje kwadracik absolutnie względem .v-checkbox, więc przy paddingu
   ramki lądował w jej rogu — kotwiczymy go do labela */
:root .mytheme .v-checkbox.invoice-private-toggle {
  padding-left: 12px;
}

.mytheme .v-checkbox.invoice-private-toggle > label {
  position: relative;
  padding-left: 29px;
}

.mytheme .invoice-id-row {
  margin-top: 2px;
}

.mytheme .invoice-buyer-fields {
  box-sizing: border-box;
  margin-top: 4px;
  padding-top: 15px;
  border-top: 1px dashed #d8d8d8;
}

.mytheme .invoice-payment-row .v-filterselect {
  min-width: 0;
}

.mytheme .invoice-courier-block {
  margin-top: 3px;
}

/* odstęp checkbox → etykieta kwoty; etykieta przy polu jak w pozostałych wierszach */
.mytheme .invoice-courier-block .v-caption {
  padding-top: 16px;
}

.mytheme .v-label.invoice-stock-badge {
  width: auto !important;
  margin-bottom: 3px;
  padding: 7px 12px;
  border-radius: 16px;
  border: 1px solid #e0e0e0;
  background: #f4f4f4;
  color: #565656;
  font-size: 12px;
}

.mytheme .invoice-actions {
  box-sizing: border-box;
  padding-top: 2px;
}

.mytheme .v-button.invoice-save-button {
  height: 46px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
}

.mytheme .v-panel.invoice-summary-card {
  position: sticky;
  top: 14px;
  border-top: 2px solid rgba(213, 155, 53, 0.62);
}

.mytheme .v-label.invoice-summary-eyebrow {
  color: #d59b35;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.mytheme .v-label.invoice-classification {
  box-sizing: border-box;
  padding: 13px 14px;
  border-left: 3px solid #d59b35;
  border-radius: 5px;
  background: #fff8ec;
  color: #3d3d3d;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
}

.mytheme .v-label.invoice-help-title {
  margin-top: 6px;
  padding-top: 15px;
  border-top: 1px solid #e4e4e4;
  color: #3f3f3f;
  font-size: 14px;
  font-weight: 700;
}

.mytheme .v-label.invoice-context-help {
  color: #666;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
}

@media (max-width: 1240px) {
  .mytheme .invoice-form-view {
    padding-right: 14px;
    padding-left: 14px;
  }

  .mytheme .invoice-workspace {
    display: block;
  }

  .mytheme .invoice-workspace > .v-expand > .v-slot,
  .mytheme .invoice-workspace > .v-slot {
    display: block;
    width: 100% !important;
    margin-bottom: 14px;
  }

  .mytheme .v-panel.invoice-summary-card {
    position: static;
    width: 100% !important;
  }
}
