*{box-sizing:border-box}body{margin:0;font-family:Arial,sans-serif;background:#f5f6fa;color:#0f172a}.center{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.card{background:white;border-radius:24px;box-shadow:0 12px 35px rgba(15,23,42,.12);padding:32px}.login-card{width:100%;max-width:430px}.logo-login{height:90px;object-fit:contain;margin:0 auto 22px;display:block}.text-center{text-align:center}.muted{color:#64748b;font-size:14px}.field{display:block;margin-bottom:14px}.field span{display:block;font-size:13px;font-weight:700;color:#475569;margin-bottom:6px}input,select,textarea{width:100%;border:1px solid #cbd5e1;border-radius:12px;padding:10px 12px;font-size:14px;background:white}textarea{min-height:80px;resize:vertical}.btn{border:0;border-radius:12px;background:#0f172a;color:white;padding:11px 16px;font-weight:700;cursor:pointer}.btn:hover{background:#334155}.btn-blue{background:#3b82f6}.btn-green{background:#059669}.btn-light{background:white;color:#334155;border:1px solid #cbd5e1}.btn-red{background:#ef4444}.link-btn{border:0;background:transparent;color:#475569;font-weight:700;cursor:pointer;margin-top:10px;width:100%}.error{background:#fee2e2;color:#b91c1c;border-radius:12px;padding:12px;margin:10px 0;font-size:14px;font-weight:700}.success{background:#dcfce7;color:#166534;border-radius:12px;padding:12px;margin:10px 0;font-size:14px;font-weight:700}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.container{padding:32px}.main{max-width:1200px;margin:0 auto}.table-wrap{background:white;border:1px solid #e2e8f0;border-radius:22px;overflow:hidden;box-shadow:0 6px 16px rgba(15,23,42,.05)}table{width:100%;border-collapse:collapse}th{background:#f8fafc;color:#64748b;font-size:12px;text-transform:uppercase;text-align:left;padding:14px}td{padding:14px;border-top:1px solid #e2e8f0;font-size:14px}.right{text-align:right}.status{border:0;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:800;cursor:pointer}.paid{background:#dcfce7;color:#166534}.unpaid{background:#fee2e2;color:#b91c1c}.late-row{background:#fff1f2}.late{background:#fee2e2;color:#b91c1c;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:800;margin-left:6px}.invoice-screen{background:#e5e7eb;min-height:100vh;padding:24px}.toolbar{max-width:1000px;margin:0 auto 20px}.toolbar-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.invoice-page{width:210mm;min-height:297mm;background:white;margin:0 auto;padding:16mm;box-shadow:0 12px 30px rgba(0,0,0,.18)}.invoice-header{position:relative;min-height:90px;margin-bottom:34px}.invoice-logo{position:absolute;left:0;top:0;max-height:75px;max-width:140px;object-fit:contain}.invoice-title{text-align:center}.invoice-title h2{font-size:18px;margin:0 0 18px;font-weight:900}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:70px;font-size:11px;line-height:1.35;margin-bottom:26px}.small-title{font-weight:900;margin-bottom:6px}.inline-field{display:grid;grid-template-columns:auto 1fr;gap:4px;align-items:center;margin-bottom:2px}.inline-field input{padding:4px;border-radius:6px;font-size:11px}.items{font-size:10px;margin-top:10px}.items th{font-size:10px;padding:8px 4px;background:white;color:#111;border-bottom:2px solid #000;text-transform:none}.items td{padding:6px 4px;border-top:0;border-bottom:1px solid #111;font-size:10px;vertical-align:top}.items input,.items select{font-size:10px;border-radius:5px;padding:4px}.summary{display:flex;justify-content:flex-end;margin-top:-28px;margin-bottom:24px;font-size:10px}.summary-box{width:230px}.summary-line{display:flex;justify-content:space-between;font-weight:900;line-height:1.5}.bottom-text{font-size:10px;line-height:2.4}.settings{max-width:1000px;margin:24px auto 0;display:grid;gap:18px}.settings .card{padding:20px}.product-grid{display:grid;grid-template-columns:1fr 150px 150px auto;gap:10px;align-items:end}.chips{margin-top:10px;display:flex;flex-wrap:wrap;gap:8px}.chip{background:#f1f5f9;border-radius:999px;padding:7px 10px;font-size:13px}.chip button{border:0;background:transparent;color:#ef4444;margin-left:8px;cursor:pointer}.print-only{display:none}.amount-negative{color:#ef4444}@media(max-width:900px){.topbar,.toolbar-row{align-items:flex-start}.actions{width:100%}.actions input{width:100%!important}.invoice-page{width:100%;min-height:auto}.two-col{grid-template-columns:1fr;gap:20px}.product-grid{grid-template-columns:1fr}}
@media print{@page{size:A4;margin:14mm 16mm 12mm 16mm}html,body{width:210mm!important;min-height:297mm!important;margin:0!important;padding:0!important;background:#fff!important;overflow:visible!important}body *{visibility:hidden!important}.invoice-page,.invoice-page *{visibility:visible!important}.invoice-screen{background:#fff!important;padding:0!important}.invoice-page{position:static!important;width:184mm!important;min-height:271mm!important;margin:0 auto!important;padding:0!important;box-shadow:none!important;background:#fff!important;color:#000!important;font-family:Arial,sans-serif!important;font-size:11px!important}.toolbar,.settings,.no-print,.print-hide,button,input[type=file],textarea,.items select,.items .edit-product{display:none!important;visibility:hidden!important}.invoice-header{position:relative!important;min-height:38mm!important;margin-bottom:8mm!important}.invoice-logo{position:absolute!important;left:6mm!important;top:1mm!important;max-width:34mm!important;max-height:24mm!important;object-fit:contain!important}.invoice-title{text-align:center!important;padding-top:3mm!important}.invoice-title h2{font-size:24px!important;line-height:1.1!important;font-weight:900!important;margin:0 0 6mm 0!important}.invoice-title div{font-size:11px!important;line-height:1.5!important;font-weight:600!important}.two-col{display:grid!important;grid-template-columns:1fr 1fr!important;gap:28mm!important;margin:0 0 12mm 0!important;font-size:11px!important;line-height:1.4!important}.small-title{display:block!important;font-size:12px!important;font-weight:900!important;margin-bottom:4mm!important}.inline-field{display:block!important;margin:0!important;padding:0!important;line-height:1.4!important}.inline-field.empty{display:none!important}.inline-field span{display:none!important}.inline-field input{display:block!important;width:100%!important;height:auto!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;color:#000!important;font-family:Arial,sans-serif!important;font-size:11px!important;font-weight:600!important;line-height:1.55!important;appearance:none!important}.items{width:100%!important;margin:0 0 2mm 0!important;border-collapse:collapse!important;table-layout:fixed!important;font-size:11px!important}.items th{background:#fff!important;color:#000!important;border-bottom:1.4px solid #000!important;padding:2mm 2mm 2mm 0!important;font-size:11px!important;font-weight:900!important;text-align:left!important;text-transform:none!important;white-space:nowrap!important}.items th:nth-child(n+2),.items td:nth-child(n+2){text-align:right!important}.items td{border-top:0!important;border-bottom:1px solid #000!important;padding:2mm 2mm 2mm 0!important;font-size:11px!important;line-height:1.2!important;vertical-align:top!important}.items td input{display:inline!important;width:auto!important;max-width:100%!important;border:0!important;padding:0!important;margin:0!important;background:transparent!important;font-size:11px!important;line-height:1.2!important;text-align:inherit!important;color:#000!important;appearance:none!important}.print-only,.print-name{display:inline!important;visibility:visible!important}.summary{display:flex!important;justify-content:flex-end!important;margin-top:3mm!important;margin-bottom:15mm!important;font-size:12px!important}.summary-box{width:43mm!important}.summary-line{display:flex!important;justify-content:space-between!important;gap:5mm!important;font-weight:900!important;line-height:2!important}.bottom-text{font-size:11px!important;line-height:3!important;margin-top:0!important}.bottom-text>div:first-child{margin-top:0!important;margin-bottom:8mm!important}.amount-negative{color:#000!important}}

/* --- Mobile responsive layout --- */
@media screen and (max-width: 768px) {
  body {
    background: #f5f6fa;
  }

  .center {
    align-items: flex-start;
    padding: 14px;
  }

  .card {
    border-radius: 18px;
    padding: 22px;
  }

  .login-card {
    max-width: 100%;
  }

  .logo-login {
    height: 68px;
    margin-bottom: 16px;
  }

  .container {
    padding: 14px;
  }

  .topbar {
    display: block;
  }

  .topbar h1 {
    font-size: 24px;
    margin-bottom: 4px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 16px;
  }

  .actions input,
  .actions select,
  .actions button {
    width: 100% !important;
  }

  .table-wrap {
    border-radius: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrap table {
    min-width: 760px;
  }

  th,
  td {
    padding: 10px;
    font-size: 13px;
  }

  .invoice-screen {
    padding: 10px;
  }

  .toolbar {
    margin-bottom: 12px;
  }

  .toolbar-row {
    display: block;
  }

  .toolbar-row h2 {
    font-size: 22px;
    margin: 12px 0;
  }

  .toolbar .actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .toolbar .actions input,
  .toolbar .actions select,
  .toolbar .actions button {
    width: 100% !important;
  }

  .invoice-page {
    width: 100%;
    min-height: auto;
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
  }

  .invoice-header {
    min-height: auto;
    margin-bottom: 24px;
    padding-top: 70px;
  }

  .invoice-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-height: 58px;
    max-width: 150px;
  }

  .invoice-title h2 {
    font-size: 17px;
    line-height: 1.25;
  }

  .two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    font-size: 12px;
  }

  .inline-field {
    display: block;
    margin-bottom: 8px;
  }

  .inline-field span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 3px;
  }

  .inline-field input {
    width: 100%;
    font-size: 14px;
    padding: 9px 10px;
  }

  .items {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .items table,
  .items thead,
  .items tbody,
  .items tr {
    width: 100%;
  }

  .items th,
  .items td {
    font-size: 12px;
    min-width: 90px;
  }

  .items th:first-child,
  .items td:first-child {
    min-width: 190px;
  }

  .summary {
    margin-top: 18px;
    justify-content: stretch;
  }

  .summary-box {
    width: 100%;
  }

  .bottom-text {
    font-size: 12px;
  }

  .settings {
    margin-top: 14px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .chips {
    display: grid;
    grid-template-columns: 1fr;
  }

  .chip {
    width: 100%;
    border-radius: 12px;
    line-height: 1.4;
  }
}

@media screen and (max-width: 420px) {
  .invoice-page {
    padding: 14px;
  }

  .invoice-title h2 {
    font-size: 15px;
  }

  .btn {
    padding: 11px 12px;
  }
}

/* Search/filter usability */
#invoice-search {
  min-width: 280px;
}

@media screen and (max-width: 768px) {
  #invoice-search {
    min-width: 0;
  }
}

.row-product-select {
  margin-bottom: 4px;
}

@media print {
  .row-product-select {
    display: none !important;
    visibility: hidden !important;
  }
}

/* date number restore */
.toolbar .actions select,
.toolbar .actions input {
  min-height: 42px;
}
@media screen and (max-width: 768px) {
  .toolbar .actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}


/* Mobile buttons fix */
.action-buttons{
  white-space:nowrap;
}

.mobile-action-btn{
  margin-left:6px;
}

@media screen and (max-width:768px){

  .table-wrap{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  .table-wrap table{
    min-width:980px;
  }

  .action-buttons{
    min-width:220px;
  }

  .mobile-action-btn{
    min-width:95px;
    font-size:12px;
    padding:9px 10px;
  }
}


/* Pagination and document filter */
.pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  margin-top:18px;
  flex-wrap:wrap;
}

.page-btn{
  border:1px solid #cbd5e1;
  background:#fff;
  color:#334155;
  border-radius:10px;
  min-width:38px;
  height:38px;
  padding:0 10px;
  font-weight:700;
  cursor:pointer;
}

.page-btn.active{
  background:#0f172a;
  color:#fff;
  border-color:#0f172a;
}

.page-btn:disabled{
  opacity:.4;
  cursor:not-allowed;
}

@media screen and (max-width:768px){
  .pagination{
    justify-content:flex-start;
    overflow-x:auto;
    padding-bottom:6px;
  }

  .page-btn{
    min-width:42px;
  }
}


/* FINAL SAFE PATCHES */
.hidden{display:none}
.number-settings-toggle{margin-top:18px}

/* Long product names wrap */
.items td:first-child,
.items td:first-child input,
.print-name{
  white-space:normal!important;
  word-break:break-word!important;
  overflow-wrap:anywhere!important;
  line-height:1.35!important;
  max-width:260px!important;
}

/* Bigger screen text */
.invoice-page{font-size:16px}
.invoice-title h2{font-size:34px!important}
.invoice-title div{font-size:17px!important}
.two-col{font-size:15px!important}
.small-title{font-size:17px!important}
.inline-field input{font-size:15px!important}
.items th{font-size:14px!important}
.items td,.items td input{font-size:14px!important}
.summary{font-size:16px!important}
.bottom-text{font-size:15px!important}

/* Pagination */
.pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  margin-top:18px;
  flex-wrap:wrap;
}
.page-btn{
  border:1px solid #cbd5e1;
  background:#fff;
  color:#334155;
  border-radius:10px;
  min-width:38px;
  height:38px;
  padding:0 10px;
  font-weight:700;
  cursor:pointer;
}
.page-btn.active{
  background:#0f172a;
  color:#fff;
  border-color:#0f172a;
}
.page-btn:disabled{opacity:.4;cursor:not-allowed}

/* Start number settings */
.list-settings{
  margin-top:18px;
  padding:20px;
}
.list-settings h3{margin:0 0 6px 0}
.number-settings-grid{
  display:grid;
  grid-template-columns:1fr 1fr auto;
  align-items:end;
  gap:12px;
  margin-top:14px;
}

/* Mobile */
@media screen and (max-width:768px){
  .actions{display:grid;grid-template-columns:1fr;width:100%;gap:10px}
  .actions input,.actions select,.actions button{width:100%!important}
  .table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .table-wrap table{min-width:980px}
  .action-buttons{min-width:220px;white-space:nowrap}
  .mobile-action-btn{min-width:95px;font-size:12px;padding:9px 10px;margin-left:6px}
  .number-settings-grid{grid-template-columns:1fr}
  .pagination{justify-content:flex-start;overflow-x:auto;padding-bottom:6px}
}

/* Clean print */
@media print{
  @page{size:A4;margin:13mm 15mm 12mm 15mm}
  html,body{background:#fff!important;width:210mm!important;min-height:297mm!important;overflow:visible!important}
  body *{visibility:hidden!important}
  .invoice-page,.invoice-page *{visibility:visible!important}
  .invoice-screen{background:#fff!important;padding:0!important}
  .invoice-page{
    position:static!important;
    width:180mm!important;
    min-height:auto!important;
    margin:0 auto!important;
    padding:0!important;
    box-shadow:none!important;
    font-family:Arial,sans-serif!important;
    color:#000!important;
    font-size:13px!important;
  }
  .toolbar,.settings,.list-settings,.number-settings-toggle,.pagination,.no-print,.print-hide,button,input[type=file],textarea,.items select,.items .edit-product{
    display:none!important;
    visibility:hidden!important;
  }
  .invoice-header{min-height:34mm!important;margin-bottom:10mm!important}
  .invoice-logo{left:7mm!important;top:0!important;max-width:34mm!important;max-height:23mm!important;object-fit:contain!important}
  .invoice-title{text-align:center!important;padding-top:2mm!important}
  .invoice-title h2{font-size:28px!important;line-height:1.15!important;font-weight:900!important;margin:0 0 5mm 0!important}
  .invoice-title div{font-size:13px!important;line-height:1.35!important;font-weight:600!important}
  .two-col{display:grid!important;grid-template-columns:1fr 1fr!important;gap:33mm!important;margin-bottom:10mm!important;font-size:13px!important;line-height:1.35!important}
  .small-title{font-size:14px!important;font-weight:900!important;margin-bottom:2mm!important}
  .inline-field{display:block!important;line-height:1.35!important;margin:0!important}
  .inline-field.empty{display:none!important}
  .inline-field span{display:none!important}
  .inline-field input{
    display:block!important;width:100%!important;border:0!important;padding:0!important;margin:0!important;background:transparent!important;color:#000!important;
    font-size:13px!important;line-height:1.35!important;font-weight:500!important;appearance:none!important;
  }
  .items{width:100%!important;margin-top:0!important;border-collapse:collapse!important;table-layout:fixed!important;font-size:11px!important}
  .items th{background:#fff!important;color:#000!important;border-bottom:1.5px solid #000!important;padding:0 1.8mm 1.5mm 0!important;font-size:11px!important;font-weight:900!important;text-align:left!important;text-transform:none!important;white-space:nowrap!important}
  .items th:first-child{width:34%!important}
  .items th:nth-child(n+2),.items td:nth-child(n+2){text-align:right!important}
  .items td{border-top:0!important;border-bottom:1px solid #000!important;padding:1.6mm 1.8mm 1.6mm 0!important;font-size:11px!important;line-height:1.25!important;vertical-align:top!important}
  .items td input{display:inline!important;width:auto!important;max-width:100%!important;border:0!important;padding:0!important;margin:0!important;background:transparent!important;font-size:11px!important;line-height:1.25!important;text-align:inherit!important;color:#000!important;appearance:none!important}
  .items td:first-child,.items td:first-child input,.print-name{white-space:normal!important;word-break:break-word!important;overflow-wrap:anywhere!important;max-width:65mm!important;line-height:1.3!important}
  .print-only,.print-name{display:inline!important;visibility:visible!important}
  .summary{display:flex!important;justify-content:flex-end!important;align-items:flex-start!important;margin-top:5mm!important;margin-bottom:15mm!important;font-size:13px!important;line-height:1.45!important}
  .summary-box{width:54mm!important}
  .summary-line{display:grid!important;grid-template-columns:1fr auto!important;column-gap:8mm!important;align-items:baseline!important;font-weight:900!important;line-height:1.65!important;white-space:nowrap!important}
  .summary-line span:first-child{text-align:right!important}
  .summary-line span:last-child{min-width:22mm!important;text-align:right!important}
  .bottom-text{clear:both!important;font-size:13px!important;line-height:2.15!important;margin-top:0!important}
  .bottom-text>div:first-child{margin-bottom:8mm!important}
  .amount-negative{color:#000!important}
}

/* CLEAN FINAL APP PATCH */
.hidden{display:none!important}
.number-settings-area{margin-top:18px}
.number-settings-toggle{display:inline-flex!important;margin:18px 0 0 0!important}
.list-settings{margin-top:12px!important;padding:20px!important}
.number-settings-grid{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end}
.pagination{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:18px;flex-wrap:wrap}
.page-btn{border:1px solid #cbd5e1;background:#fff;color:#334155;border-radius:10px;min-width:38px;height:38px;padding:0 10px;font-weight:700;cursor:pointer}
.page-btn.active{background:#0f172a;color:#fff;border-color:#0f172a}
.page-btn:disabled{opacity:.4;cursor:not-allowed}
.action-buttons{white-space:nowrap}
.mobile-action-btn{margin-left:6px}
.row-product-select{margin-bottom:4px}
.invoice-title{padding-left:38mm!important;padding-right:10mm!important}
.invoice-title h2{font-size:24px!important;max-width:125mm!important;margin-left:auto!important;margin-right:auto!important}
.items td:first-child,.items td:first-child input,.print-name{white-space:normal!important;word-break:break-word!important;overflow-wrap:anywhere!important;line-height:1.35!important;max-width:260px!important}

@media screen and (max-width:768px){
  .actions{display:grid;grid-template-columns:1fr;width:100%;gap:10px}
  .actions input,.actions select,.actions button{width:100%!important}
  .table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .table-wrap table{min-width:980px}
  .action-buttons{min-width:220px}
  .mobile-action-btn{min-width:95px;font-size:12px;padding:9px 10px}
  .number-settings-grid{grid-template-columns:1fr}
  .pagination{justify-content:flex-start;overflow-x:auto;padding-bottom:6px}
}

@media print{
  .invoice-title{padding-left:36mm!important;padding-right:8mm!important}
  .invoice-title h2{font-size:18px!important;max-width:115mm!important;line-height:1.15!important}
  .number-settings-area,.number-settings-toggle,.list-settings,.pagination{display:none!important;visibility:hidden!important}
  .row-product-select{display:none!important;visibility:hidden!important}
  .items td:first-child,.items td:first-child input,.print-name{white-space:normal!important;word-break:break-word!important;overflow-wrap:anywhere!important;max-width:65mm!important;line-height:1.3!important}
  .items th:first-child{width:34%!important}
}


/* PRINT SUMMARY/TABLE CLEAN FIX */
@media print {
  .items {
    table-layout: fixed !important;
    width: 100% !important;
  }

  .items th,
  .items td {
    font-size: 9.5px !important;
    line-height: 1.25 !important;
    padding: 1.4mm 1.2mm 1.4mm 0 !important;
    vertical-align: top !important;
  }

  .items th:first-child,
  .items td:first-child {
    width: 31% !important;
    text-align: left !important;
  }

  .items th:nth-child(2),
  .items td:nth-child(2) {
    width: 7% !important;
  }

  .items th:nth-child(3),
  .items td:nth-child(3) {
    width: 7% !important;
  }

  .items th:nth-child(4),
  .items td:nth-child(4) {
    width: 12% !important;
  }

  .items th:nth-child(5),
  .items td:nth-child(5) {
    width: 12% !important;
  }

  .items th:nth-child(6),
  .items td:nth-child(6) {
    width: 11% !important;
  }

  .items th:nth-child(7),
  .items td:nth-child(7) {
    width: 8% !important;
  }

  .items th:nth-child(8),
  .items td:nth-child(8) {
    width: 12% !important;
  }

  .items th:nth-child(n+2),
  .items td:nth-child(n+2) {
    text-align: right !important;
  }

  .items th {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  .summary {
    display: flex !important;
    justify-content: flex-end !important;
    width: 100% !important;
    margin-top: 7mm !important;
    margin-bottom: 15mm !important;
    font-size: 10.5px !important;
    line-height: 1.5 !important;
  }

  .summary-box {
    width: 62mm !important;
    max-width: 62mm !important;
  }

  .summary-line {
    display: grid !important;
    grid-template-columns: 38mm 22mm !important;
    column-gap: 2mm !important;
    align-items: baseline !important;
    font-weight: 900 !important;
    line-height: 1.65 !important;
    white-space: nowrap !important;
  }

  .summary-line span:first-child {
    text-align: right !important;
    white-space: nowrap !important;
  }

  .summary-line span:last-child {
    text-align: right !important;
    white-space: nowrap !important;
  }

  .bottom-text {
    font-size: 10.5px !important;
    line-height: 2.1 !important;
  }

  .bottom-text > div:first-child {
    margin-bottom: 7mm !important;
  }
}


/* Delete invoice button */
.delete-invoice-btn{
  background:#dc2626!important;
  color:#fff!important;
}

.delete-invoice-btn:hover{
  background:#b91c1c!important;
}


/* Manual line price editing */
.line-price-input{
  background:#fff!important;
}

@media screen{
  .line-price-input{
    border:1px solid #cbd5e1!important;
  }
}


/* CLEANER PRINT TABLE */
@media print {

  .items{
    width:100%!important;
    table-layout:fixed!important;
    border-collapse:collapse!important;
  }

  .items th,
  .items td{
    font-size:10px!important;
    padding:2mm 1mm!important;
    line-height:1.35!important;
    vertical-align:middle!important;
    word-break:break-word!important;
  }

  .items th{
    font-weight:700!important;
    border-bottom:1px solid #000!important;
  }

  /* column widths */
  .items th:nth-child(1),
  .items td:nth-child(1){width:30%!important;text-align:left!important;}

  .items th:nth-child(2),
  .items td:nth-child(2){width:7%!important;text-align:center!important;}

  .items th:nth-child(3),
  .items td:nth-child(3){width:7%!important;text-align:center!important;}

  .items th:nth-child(4),
  .items td:nth-child(4){width:12%!important;text-align:right!important;}

  .items th:nth-child(5),
  .items td:nth-child(5){width:12%!important;text-align:right!important;}

  .items th:nth-child(6),
  .items td:nth-child(6){width:11%!important;text-align:right!important;}

  .items th:nth-child(7),
  .items td:nth-child(7){width:9%!important;text-align:right!important;}

  .items th:nth-child(8),
  .items td:nth-child(8){width:5%!important;text-align:center!important;}

  .items th:nth-child(9),
  .items td:nth-child(9){width:12%!important;text-align:right!important;}

  .summary{
    margin-top:10mm!important;
  }
}

/* SFIS */
.number-settings-grid{grid-template-columns:1fr 1fr 1fr auto!important}
@media screen and (max-width:768px){.number-settings-grid{grid-template-columns:1fr!important}}
