/* Simplicity Mina Sidor */
.sms {
    --sms-blue: #1c3fb7;
    --sms-pos: #3a7fd4;
    --sms-neg: #d42a2a;
    --sms-line: #e3e5ea;
    --sms-head: #f6f7f9;
    color: #222;
    max-width: 1100px;
    margin: 0 auto;
}
.sms .sms-title { margin: 0 0 .75rem; }
.sms .sms-intro { max-width: 46rem; margin-bottom: 2rem; line-height: 1.5; }
.sms .sms-section { margin: 2.25rem 0; }
.sms h2 { margin: 0 0 .75rem; }

.sms .sms-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin: 0; }
.sms .sms-table th,
.sms .sms-table td { padding: .45rem .6rem; border: 0; border-bottom: 1px solid var(--sms-line); text-align: left; white-space: nowrap; }
.sms .sms-table thead th { font-weight: 600; background: var(--sms-head); }
.sms .sms-table tfoot td { font-weight: 600; }
.sms .sms-kv { max-width: 42rem; }
.sms .sms-kv th { font-weight: 600; }
.sms .sms-r { text-align: right !important; }
.sms .sms-pos { color: var(--sms-pos); }
.sms .sms-neg { color: var(--sms-neg); }
.sms .sms-tx th:nth-child(1), .sms .sms-tx th:nth-child(2),
.sms .sms-tx td.sms-nw { width: 1%; padding-right: 2rem; }
.sms .sms-tx .sms-fund { width: auto; white-space: normal; }
.sms table.sms-kv { width: 100%; max-width: 42rem; }
.sms .sms-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.sms .sms-btn {
    display: inline-block; background: var(--sms-blue); color: #fff; border: 0; border-radius: 3px;
    padding: .8rem 1.8rem; font-size: 1.05rem; font-weight: 600; cursor: pointer; text-decoration: none;
}
.sms .sms-btn:hover { filter: brightness(1.12); color: #fff; }
.sms .sms-btn:disabled { opacity: .6; cursor: wait; }
.sms .sms-btn-sm { padding: .35rem .8rem; font-size: .9rem; }
.sms .sms-btn-ghost { background: transparent; color: var(--sms-blue); border: 1px solid var(--sms-blue); }
.sms .sms-btn-ghost:hover { color: var(--sms-blue); }
.sms .sms-toolbar { display: flex; gap: .5rem; justify-content: flex-end; }
.sms .sms-center { text-align: center; margin-top: 1rem; }

/* Inloggning */
.sms-login { max-width: 380px; }
.sms-login form { display: flex; flex-direction: column; gap: .35rem; }
.sms-login label { font-weight: 600; margin-top: .6rem; }
.sms-login input[type=text],
.sms-login input[type=password] { padding: .65rem; border: 1px solid #bbb; border-radius: 3px; font-size: 1rem; }
.sms-login .sms-btn { margin-top: 1rem; }
.sms-login .sms-help { font-size: .9rem; margin-top: 1.25rem; }
.sms .sms-alert { background: #fdecec; border-left: 4px solid var(--sms-neg); padding: .7rem .9rem; margin-bottom: 1rem; }

@media (max-width: 640px) {
    .sms .sms-table th, .sms .sms-table td { padding: .4rem .45rem; font-size: .9rem; }
    .sms .sms-btn { width: 100%; }
    .sms .sms-toolbar .sms-btn { width: auto; }
}

/* Utskrift: visa bara portalen */
@media print {
    body * { visibility: hidden; }
    #sms-portal, #sms-portal * { visibility: visible; }
    #sms-portal { position: absolute; left: 0; top: 0; width: 100%; max-width: none; }
    #sms-portal .sms-toolbar, #sms-portal #sms-more { display: none; }
    #sms-portal .sms-pos, #sms-portal .sms-neg { color: #000; }
    #sms-portal .sms-scroll { overflow: visible; }
}
