/* Regnskap controls override the marketing shell's link-only button styles. */
.admin-shell .btn,.admin-shell .brreg-btn-compat,.admin-shell .inv-line-remove,.admin-shell .detail-close-btn {
 display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:44px;padding:.6rem .9rem;
 border:1px solid transparent;border-radius:10px;background:#4338ca;color:#fff;font-weight:600;
 font-family:inherit;font-size:.9rem;line-height:1.3;cursor:pointer;text-decoration:none;box-sizing:border-box;
}
.admin-shell .btn-secondary{background:var(--card-bg,#fff);border-color:#64748b;color:var(--text-color,#1f2937)}
.admin-shell button:disabled{opacity:.55;cursor:wait}
.admin-shell :focus-visible{outline:3px solid #818cf8;outline-offset:3px}
.accounting-nav{display:flex;gap:.6rem;flex-wrap:wrap;margin:1rem 0}
@media (min-width:1025px){.admin-topbar-row{gap:.45rem;padding:.7rem 1rem}.admin-tabbar{gap:.1rem}.admin-tab{padding:0 .65rem;font-size:.86rem}}
@media (max-width:1024px){.admin-topbar-row .admin-tab-item[data-nav-section] .admin-tab-menu{display:none}.admin-topbar-row .admin-tab-item[data-nav-section].is-open .admin-tab-menu{display:grid}}
@media (max-width:1024px){.admin-shell #main-content,.admin-shell main{padding-top:4.5rem}}
.accounting-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:1rem}
.accounting-card{padding:1.25rem;border:1px solid #94a3b8;border-radius:14px;background:var(--card-bg,#fff);color:var(--text-color,#1f2937);margin:1rem 0;min-width:0}
.accounting-card label{display:flex;flex-direction:column;gap:.35rem;margin:.7rem 0}
.accounting-card input,.accounting-card select,.accounting-card textarea{min-height:44px;padding:.6rem;border:1px solid #64748b;border-radius:8px;background:var(--card-bg,#fff);color:inherit;font:inherit;box-sizing:border-box;width:100%}
.accounting-card input[type=checkbox]{width:24px;min-height:24px}
.accounting-table-wrap{overflow-x:auto;max-width:100%}
.accounting-card table{width:100%;border-collapse:collapse}
.accounting-card th,.accounting-card td{padding:.7rem;text-align:left;border-bottom:1px solid #94a3b8;vertical-align:top}
.accounting-note{border-left:4px solid #4338ca;padding:.8rem 1rem;background:var(--card-bg,#eef2ff);color:var(--text-color,#1f2937)}
.admin-shell .inv-table{display:block;overflow-x:auto;max-width:100%}
.admin-shell .inv-line-row{min-width:0}
.admin-shell .inv-line-row input,.admin-shell .inv-line-row select{min-width:0;box-sizing:border-box}
@media(max-width:700px){.admin-shell .inv-line-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.admin-shell .inv-line-desc{grid-column:1/-1}.admin-shell .orders-detail-panel{min-width:0}.admin-shell .inv-create-form{min-width:0}}
.invoice-document{max-width:850px;margin:auto;font-family:Arial,sans-serif;color:#111;background:#fff;padding:24px;line-height:1.5}
.invoice-document table{width:100%;border-collapse:collapse}.invoice-document th,.invoice-document td{padding:8px;text-align:left;border-bottom:1px solid #ddd}
@media print{.invoice-document{padding:0}.invoice-document header{break-inside:avoid}}

html[data-theme="dark"] .accounting-card,html[data-theme="dark"] .accounting-note,html[data-theme="dark"] .admin-shell .btn-secondary,html[data-theme="dark"] .accounting-card input,html[data-theme="dark"] .accounting-card select {background:#182235;color:#f1f5f9}
.admin-shell [hidden]{display:none!important}

.admin-shell .btn{width:auto;max-width:100%;white-space:normal}

.admin-shell .inv-line-type{grid-column:1/-1;min-height:40px;border:1px solid #64748b;border-radius:8px;background:var(--card-bg,#fff);color:var(--text-color,#1f2937);padding:.4rem}
.admin-shell .inv-newcust-grid input{min-width:0}
.accounting-report-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem}
.accounting-table-wrap th,.accounting-table-wrap td{white-space:nowrap}
