/* SAK-ACC v9.0.9 - Verifikationer */
.v9-voucher-loading{padding:42px;text-align:center;color:#6b8298}.v9-voucher-page{display:grid;gap:16px}.v9-voucher-head{margin-bottom:0}.v9-voucher-kicker{font-size:10px;font-weight:900;letter-spacing:.13em;color:#a36d00}.v9-voucher-actions{display:flex;gap:9px}.v9-voucher-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) minmax(210px,1.35fr);gap:12px}.v9-voucher-kpi{min-height:105px;padding:16px 18px;background:#fff;border:1px solid var(--v9-line,#dbe5ee);border-radius:14px;display:flex;flex-direction:column;justify-content:center}.v9-voucher-kpi small{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#70869c;font-weight:800}.v9-voucher-kpi strong{font-size:24px;color:#0d3556;margin-top:6px}.v9-voucher-kpi span{font-size:10px;color:#7a8fa3;margin-top:3px}.v9-voucher-engine{font-size:9px;font-weight:900;letter-spacing:.08em;color:#3c7895;background:#edf7fb;border-radius:999px;padding:5px 9px}.v9-voucher-toolbar{display:flex;align-items:center;gap:14px;padding:12px 16px;border-top:1px solid var(--v9-line-soft,#edf2f6);border-bottom:1px solid var(--v9-line-soft,#edf2f6)}.v9-voucher-status-tabs{display:flex;gap:4px}.v9-voucher-status-tabs button{height:34px;padding:0 11px;border:0;border-radius:8px;background:transparent;color:#67809a;font-weight:800;cursor:pointer}.v9-voucher-status-tabs button.active{background:#fff2cc;color:#5d4714}.v9-voucher-toolbar input{margin-left:auto;min-width:320px;height:36px;border:1px solid #ccd9e4;border-radius:8px;padding:0 11px}.v9-voucher-table-wrap{overflow:auto}.v9-voucher-table{width:100%;border-collapse:collapse}.v9-voucher-table th,.v9-voucher-table td{padding:12px 16px;border-bottom:1px solid var(--v9-line-soft,#edf2f6);text-align:left;font-size:11px}.v9-voucher-table th{font-size:9px;text-transform:uppercase;letter-spacing:.05em;color:#75899c;background:#fbfcfd}.v9-voucher-table td strong{display:block;color:#173b58}.v9-voucher-table td small{display:block;color:#8496a6;margin-top:3px}.v9-voucher-table .num{text-align:right;white-space:nowrap}.v9-voucher-status{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:900}.v9-voucher-status.booked{background:#e9f8ee;color:#14844a}.v9-voucher-status.draft{background:#fff3d8;color:#8b650e}.v9-voucher-modal{position:fixed;inset:0;z-index:9999;background:rgba(6,24,39,.53);display:grid;place-items:center;padding:24px}.v9-voucher-dialog{width:min(100%,980px);max-height:92vh;overflow:auto;background:#fff;border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.28)}.v9-voucher-dialog.detail{width:min(100%,900px)}.v9-voucher-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px;border-bottom:1px solid #e7edf2}.v9-voucher-modal-head small{font-size:9px;font-weight:900;letter-spacing:.12em;color:#9a6e18}.v9-voucher-modal-head h2{margin:4px 0 3px;color:#123a5a;font-size:22px}.v9-voucher-modal-head p{margin:0;color:#70869b;font-size:11px}.v9-voucher-close,.v9-voucher-remove{border:0;background:transparent;color:#63798d;cursor:pointer}.v9-voucher-close{font-size:27px;line-height:1}.v9-voucher-form-top{display:grid;grid-template-columns:160px 110px minmax(0,1fr);gap:12px;padding:18px 24px}.v9-voucher-form-top label{display:grid;gap:6px;font-size:10px;font-weight:800;color:#5b7288}.v9-voucher-form-top input{height:40px;border:1px solid #ccd9e4;border-radius:8px;padding:0 10px}.v9-voucher-line{display:grid;grid-template-columns:220px minmax(220px,1fr) 145px 145px 30px;gap:8px;align-items:center;padding:6px 24px}.v9-voucher-line.header{padding-top:10px;padding-bottom:7px;background:#f8fafc;color:#72869a;font-size:9px;font-weight:900;text-transform:uppercase}.v9-voucher-line input,.v9-voucher-line select{height:38px;border:1px solid #d2dde6;border-radius:7px;padding:0 9px;min-width:0}.v9-voucher-line input[type=number]{text-align:right}.v9-voucher-remove{font-size:20px}.v9-voucher-editor-foot{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 24px;border-top:1px solid #edf2f5}.v9-voucher-balance{display:flex;gap:18px;align-items:center;font-size:11px}.v9-voucher-balance strong{color:#173c5b}.v9-voucher-balance .ok{color:#16894d;font-weight:900}.v9-voucher-balance .bad{color:#b34343;font-weight:900}.v9-voucher-modal-actions{display:flex;justify-content:flex-end;gap:9px;padding:16px 24px;border-top:1px solid #e7edf2;background:#fbfcfd}.v9-btn-danger{background:#fff;border:1px solid #e4b7b7;color:#a43a3a}.v9-voucher-line.read{min-height:44px;font-size:11px}.v9-voucher-line.read span:nth-child(3),.v9-voucher-line.read span:nth-child(4){text-align:right}.v9-voucher-detail-total{display:flex;justify-content:flex-end;gap:24px;padding:14px 76px 18px;font-size:12px}.v9-voucher-correction-note{margin:16px 24px 4px;padding:10px 12px;border-radius:8px;background:#fff5dc;color:#76591a;font-size:11px}@media(max-width:1100px){.v9-voucher-kpis{grid-template-columns:repeat(3,1fr)}.v9-voucher-kpi.wide{grid-column:span 2}.v9-voucher-line{grid-template-columns:160px minmax(180px,1fr) 120px 120px 26px}}@media(max-width:760px){.v9-voucher-kpis{grid-template-columns:1fr 1fr}.v9-voucher-toolbar,.v9-voucher-editor-foot,.v9-voucher-balance{align-items:stretch;flex-direction:column}.v9-voucher-toolbar input{min-width:0;width:100%;margin-left:0}.v9-voucher-form-top{grid-template-columns:1fr}.v9-voucher-line{grid-template-columns:1fr}.v9-voucher-line.header{display:none}.v9-voucher-line.read span:nth-child(3),.v9-voucher-line.read span:nth-child(4){text-align:left}}


/* v9.0.9a - show account name without changing voucher line text */
.v9-voucher-account-cell{display:flex;flex-direction:column;gap:4px;min-width:0}
.v9-voucher-account-cell select{width:100%}
.v9-voucher-account-name,.v9-voucher-account-read small{display:block;font-size:11px;line-height:1.25;color:#667085;white-space:normal}
.v9-voucher-account-read{display:flex;flex-direction:column;gap:3px;min-width:0}

/* v9.0.9c - clearer voucher/detail typography, same renderer and data model */
.v9-voucher-dialog.detail .v9-voucher-modal-head small{
  font-size:11px;
  letter-spacing:.11em;
}
.v9-voucher-dialog.detail .v9-voucher-modal-head h2{
  font-size:27px;
  line-height:1.18;
}
.v9-voucher-dialog.detail .v9-voucher-modal-head p{
  font-size:13px;
  color:#5e7488;
}
.v9-voucher-dialog.detail .v9-voucher-line.header{
  font-size:11px;
  color:#536b81;
  letter-spacing:.055em;
  padding-top:12px;
  padding-bottom:10px;
}
.v9-voucher-dialog.detail .v9-voucher-line.read{
  min-height:58px;
  font-size:14px;
  line-height:1.35;
  padding-top:10px;
  padding-bottom:10px;
}
.v9-voucher-dialog.detail .v9-voucher-account-read strong{
  font-size:14px;
  line-height:1.2;
  color:#0d3b60;
  font-weight:900;
}
.v9-voucher-dialog.detail .v9-voucher-account-read small{
  margin-top:4px;
  font-size:13px;
  line-height:1.32;
  color:#405a72;
  font-weight:600;
}
.v9-voucher-dialog.detail .v9-voucher-line.read > span:nth-child(2){
  font-size:14px;
  color:#314b63;
  font-weight:600;
}
.v9-voucher-dialog.detail .v9-voucher-line.read > span:nth-child(3),
.v9-voucher-dialog.detail .v9-voucher-line.read > span:nth-child(4){
  font-size:14px;
  color:#173f61;
  font-variant-numeric:tabular-nums;
}
.v9-voucher-dialog.detail .v9-voucher-detail-total{
  font-size:14px;
  color:#27445e;
  padding-top:17px;
  padding-bottom:20px;
}
.v9-voucher-dialog.detail .v9-voucher-detail-total strong{
  font-size:15px;
  color:#0d3556;
}
.v9-voucher-dialog.detail .v9-voucher-modal-actions .v9-btn{
  min-height:42px;
  padding-left:16px;
  padding-right:16px;
  font-size:13px;
  font-weight:800;
}
.v9-voucher-account-name{
  font-size:12.5px;
  line-height:1.35;
  color:#405a72;
  font-weight:600;
}


/* v9.0.9d - account name under Text + Enter-driven keyboard flow */
.v9-voucher-text-cell{display:flex;flex-direction:column;gap:4px;min-width:0}
.v9-voucher-text-cell input{width:100%}
.v9-voucher-text-cell .v9-voucher-account-name{display:block;margin:0 2px;font-size:12.5px;line-height:1.35;color:#405a72;font-weight:600;white-space:normal}
.v9-voucher-text-read{display:flex;flex-direction:column;gap:4px;min-width:0}
.v9-voucher-text-read>span{font-size:14px;color:#314b63;font-weight:600}
.v9-voucher-text-read>small{display:block;font-size:13px;line-height:1.32;color:#405a72;font-weight:600;white-space:normal}
.v9-voucher-dialog.detail .v9-voucher-account-read small{display:none}
.v9-voucher-line select:focus,.v9-voucher-line input:focus{outline:2px solid rgba(24,104,169,.22);border-color:#4c8cbd;box-shadow:0 0 0 3px rgba(24,104,169,.08)}

/* v9.0.9f - exact column alignment + clearer voucher register */
.v9-voucher-dialog.editor,
.v9-voucher-dialog.detail{
  width:min(1120px,calc(100vw - 48px));
}

.v9-voucher-line{
  grid-template-columns:minmax(190px,1.05fr) minmax(360px,2.15fr) minmax(135px,.8fr) minmax(135px,.8fr) 30px;
  column-gap:16px;
  align-items:start;
  padding-left:30px;
  padding-right:30px;
}

.v9-voucher-line.header{
  min-height:46px;
  align-items:center;
  padding-top:12px;
  padding-bottom:12px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.055em;
  color:#526b82;
  background:#f5f8fb;
  border-top:1px solid #e4ebf1;
  border-bottom:1px solid #e4ebf1;
}

.v9-voucher-line.header > span:nth-child(3),
.v9-voucher-line.header > span:nth-child(4){
  text-align:right;
  padding-right:2px;
}

.v9-voucher-line.read{
  min-height:62px;
  align-items:center;
  border-bottom:1px solid #edf2f6;
}

.v9-voucher-line.read > span:nth-child(3),
.v9-voucher-line.read > span:nth-child(4){
  width:100%;
  text-align:right;
  font-size:15px;
  line-height:1.25;
  color:#163d5f;
  font-weight:600;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}

.v9-voucher-account-read strong{
  font-size:15px !important;
  font-weight:900 !important;
  color:#0d3b60 !important;
}

.v9-voucher-text-read{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
}

.v9-voucher-text-read > span:empty{
  display:none;
}

.v9-voucher-text-read > small{
  margin:0 !important;
  font-size:14px !important;
  line-height:1.35 !important;
  color:#314f69 !important;
  font-weight:700 !important;
}

.v9-voucher-detail-lines{
  margin:0 0 2px;
}

.v9-voucher-detail-total{
  display:grid;
  grid-template-columns:minmax(190px,1.05fr) minmax(360px,2.15fr) minmax(135px,.8fr) minmax(135px,.8fr) 30px;
  column-gap:16px;
  align-items:center;
  padding:18px 30px 20px;
  border-top:1px solid #e7edf2;
  font-size:14px;
}

.v9-voucher-detail-total span:first-child{grid-column:3;text-align:right}
.v9-voucher-detail-total span:last-child{grid-column:4;text-align:right}
.v9-voucher-detail-total strong{font-size:15px;color:#0c3557}

/* Register: clearer headings and card-like voucher rows */
.v9-voucher-list-card{
  overflow:hidden;
}

.v9-voucher-list-card .v9-card-head{
  padding:18px 20px;
}

.v9-voucher-list-card .v9-card-head h3{
  font-size:17px;
  line-height:1.25;
  color:#0e3556;
}

.v9-voucher-list-card .v9-muted{
  margin-top:4px;
  font-size:12px;
}

.v9-voucher-toolbar{
  padding:14px 18px;
  background:#fff;
}

.v9-voucher-status-tabs button{
  min-height:38px;
  padding:0 14px;
  font-size:14px;
}

.v9-voucher-toolbar input{
  min-width:360px;
  height:42px;
  font-size:14px;
  padding:0 14px;
}

.v9-voucher-table-wrap{
  padding:0 14px 14px;
  background:#f7fafc;
}

.v9-voucher-table{
  border-collapse:separate;
  border-spacing:0 10px;
  table-layout:fixed;
}

.v9-voucher-table thead th{
  padding:10px 14px 8px;
  border:0;
  background:transparent;
  font-size:11px;
  font-weight:900;
  letter-spacing:.055em;
  color:#5b7186;
}

.v9-voucher-table thead th:nth-child(1){width:12%}
.v9-voucher-table thead th:nth-child(2){width:15%}
.v9-voucher-table thead th:nth-child(3){width:25%}
.v9-voucher-table thead th:nth-child(4){width:14%}
.v9-voucher-table thead th:nth-child(5){width:12%}
.v9-voucher-table thead th:nth-child(6){width:12%}
.v9-voucher-table thead th:nth-child(7){width:10%}

.v9-voucher-table tbody tr{
  background:#fff;
  box-shadow:0 2px 9px rgba(18,52,80,.055);
}

.v9-voucher-table tbody td{
  padding:16px 14px;
  border-top:1px solid #dfe8ef;
  border-bottom:1px solid #dfe8ef;
  font-size:13px;
  line-height:1.3;
  color:#27465f;
  vertical-align:middle;
}

.v9-voucher-table tbody td:first-child{
  border-left:1px solid #dfe8ef;
  border-radius:12px 0 0 12px;
}

.v9-voucher-table tbody td:last-child{
  border-right:1px solid #dfe8ef;
  border-radius:0 12px 12px 0;
  text-align:right;
}

.v9-voucher-table tbody td strong{
  font-size:14px;
  color:#0f3555;
  font-weight:900;
}

.v9-voucher-table tbody td small{
  margin-top:4px;
  font-size:11px;
  color:#72879a;
}

.v9-voucher-table .num{
  text-align:right;
  font-size:13.5px;
  font-weight:650;
  color:#153f61;
  font-variant-numeric:tabular-nums;
}

.v9-voucher-status{
  padding:6px 10px;
  font-size:11px;
}

.v9-voucher-table .v9-link-btn{
  min-height:36px;
  padding:0 12px;
  border:1px solid #c9d9e6;
  border-radius:9px;
  background:#fff;
  color:#0d4b81;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}

.v9-voucher-table .v9-link-btn:hover{
  background:#f2f7fb;
  border-color:#8fb4d0;
}

@media(max-width:900px){
  .v9-voucher-line,
  .v9-voucher-detail-total{
    grid-template-columns:minmax(150px,1fr) minmax(240px,1.7fr) 115px 115px 26px;
    column-gap:10px;
    padding-left:18px;
    padding-right:18px;
  }
  .v9-voucher-table-wrap{overflow:auto}
  .v9-voucher-table{min-width:860px}
}

/* v9.0.9g - clearer editor labels and field typography */
.v9-voucher-form-top{
  grid-template-columns:172px 118px minmax(0,1fr);
  gap:14px;
  padding:20px 28px;
  align-items:end;
}
.v9-voucher-form-top label{
  gap:8px;
  font-size:13px;
  line-height:1.3;
  font-weight:900;
  color:#4b647b;
  letter-spacing:.015em;
}
.v9-voucher-form-top input{
  height:46px;
  padding:0 13px;
  border-radius:9px;
  font-size:16px;
  line-height:1.2;
  font-weight:700;
  color:#173b58;
}
.v9-voucher-form-top input::placeholder{
  font-size:14px;
  font-weight:650;
  color:#708499;
  opacity:1;
}
.v9-voucher-line.header{
  font-size:12px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.055em;
  color:#51697f;
}
.v9-voucher-line input,
.v9-voucher-line select{
  height:44px;
  padding:0 11px;
  font-size:15px;
  line-height:1.25;
  font-weight:650;
  color:#173b58;
}
.v9-voucher-line input::placeholder{
  font-size:14px;
  color:#7a8ea2;
  opacity:1;
}
.v9-voucher-text-cell .v9-voucher-account-name{
  margin-top:1px;
  font-size:13px;
  line-height:1.4;
  font-weight:700;
  color:#405a72;
}
.v9-voucher-editor-foot{
  padding:16px 28px;
}
.v9-voucher-balance{
  font-size:13px;
}
.v9-voucher-balance strong{
  font-size:14px;
}
@media(max-width:760px){
  .v9-voucher-form-top{grid-template-columns:1fr;padding:18px}
}
