

/*
=========================================================
TABLES CSS
=========================================================
 * Innehåller styling av tabeller
 *
 * Copyright (C) Limepark AB.
 * https://limepark.se/licensvillkor
=========================================================*/


/*
---------------------------------------------------------
TABELLER
--------------------------------------------------------- */

.sv-text-portlet-content table {
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0 0 3rem;
  width: 100%;
}

.sv-text-portlet table.sv-standard caption,
.sv-text-portlet table.sv-table-type-bla-kolumner caption {
  font-size: 2.8rem;
  line-height: 1.4;
  margin: 0 0 1rem;
}

.sv-text-portlet-content table.sv-standard th {
  padding: 1.2rem 0;
}

.sv-text-portlet-content table.sv-standard th p,
.sv-text-portlet-content table.sv-table-type-bla-kolumner th p {
  font-weight: bold;
}

body .sv-text-portlet-content table.sv-standard thead th {
  vertical-align: top;
}

.sv-text-portlet-content table td,
.sv-text-portlet-content table th {
  padding: 1.2rem 0;
  vertical-align: top;
}

.sv-text-portlet-content table.sv-standard tr td,
.sv-text-portlet-content table.sv-standard tr th {
  background-color: none;
}

.sv-use-margins table tr td .normal:last-child,
.sv-use-margins table tr th .normal:last-child {
  margin-bottom: 0;
}

.sv-text-portlet-content table.sv-standard tbody tr,
.sv-text-portlet-content table.sv-standard thead tr,
.sv-text-portlet-content table.sv-table-type-bla-kolumner tbody tr,
.sv-text-portlet-content table.sv-table-type-bla-kolumner thead tr {
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

.sv-text-portlet-content table[class*='sv-standard'] td,
.sv-text-portlet-content table[class*='sv-standard'] th {
  vertical-align: top;
} 

/* Header vid stapling av tabell */
.sv-text-portlet-content table th.sv-responsiveTable--stacked__headRow--main {
  background-color: #ccc;
}

.sv-text-portlet-content table .tablesorter-header {
  cursor: pointer;
}

.sv-text-portlet-content table .tablesorter-header:hover {
  text-decoration: underline;
}

/*
---------------------------------------------------------
TABELL MED BLÅ KOLUMNER
--------------------------------------------------------- */

.sv-table-type-bla-kolumner thead th p:not(.sv-table-type-bla-kolumner thead > tr > th:nth-child(1) p,
.sv-table-type-bla-kolumner thead > tr > th:nth-child(2) p) {
  text-align: right;
}

.sv-table-type-bla-kolumner tbody td:not(.sv-table-type-bla-kolumner tbody > tr > td:nth-child(1),
.sv-table-type-bla-kolumner tbody > tr > td:nth-child(2)) {
  background-color: #ccebf9;
  text-align: right;
}

.sv-text-portlet-content .sv-table-type-bla-kolumner td {
  padding: 1.2rem 0.5rem;
}

/*
---------------------------------------------------------
TABELL MED KANTLINJE - INGEN TABELLTYP
--------------------------------------------------------- */

.sv-text-portlet table:not(.sv-standard, .sv-table-type-bla-kolumner) thead tr th,
.sv-text-portlet table:not(.sv-standard, .sv-table-type-bla-kolumner) tbody tr td {
  border: 1px solid #212121;
  padding: 0.7rem;
}
