

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


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

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

.sv-text-portlet-content table caption {
  font-size: 2.8rem;
  line-height: 1.4;
  margin: 0 0 1rem;
}

.sv-text-portlet-content table th {
  background-color: #f5f4f1;
  border-bottom: 1px solid #bdbdbd;
  border-right: 1px solid #bdbdbd;
  padding: 15px 15px;
}

body .sv-text-portlet-content table.sv-standard p {
  line-height: 1.5;
}

.sv-text-portlet-content table.sv-standard th p {
  font-family: 'open sans', Arial, Helvetica, sans-serif;
  font-size: 1.7rem;
  font-weight: 600;
}

.sv-text-portlet-content table td {
  border: 0;
  border-bottom: 1px solid #bdbdbd;
  border-right: 1px solid #bdbdbd;
  padding: 10px 15px;
}

.sv-text-portlet-content table tr:nth-child(even) td {
  background-color: #fffae8;
}
.sv-text-portlet table.sv-standard th:first-child,
.sv-text-portlet table.sv-standard td:first-child {
  border-left: 1px solid #bdbdbd;
}

.sv-text-portlet table.sv-standard tr:first-child th,
.sv-text-portlet-content table caption + tbody tr:first-child td {
  border-top: 1px solid #bdbdbd;
}

table tr:first-child th:last-child,
.sv-text-portlet-content table caption + tbody tr:first-child td:last-child {
  border-top-right-radius: 4px;
}

table tr:first-child th:first-child {
  border-top-left-radius: 4px;
}

table tr:last-child td:first-child,
.sv-text-portlet-content table caption + tbody tr:last-child th,
.sv-text-portlet-content table.sv-standard thead + tbody tr:last-child th {
  border-bottom-left-radius: 4px;
}

table tr:last-child td:last-child {
  border-bottom-right-radius: 4px;
}

.sv-text-portlet-content table.sv-standard thead + tbody tr th:first-child {
  border-top: 0;
  border-top-left-radius: 0;
}

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