:root {
    --lc-blue: #00263e;
    --lc-red: #830d29;
    --lc-blue-hover: #003d61;
    --lc-red-hover: #9a1031;
}

html,
body {
    padding: 0;
    margin: 0;
    font-size: 14px;
    font-family: "Titillium Web", "Segoe UI", sans-serif;
}

/* Header istituzionale Lazio Crea */
.lc-site-header {
    width: 100%;
}

.lc-header-top {
    background-color: var(--lc-red);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 12px 0;
}

.lc-header-main {
    background-color: var(--lc-blue);
    padding: 20px 0;
}

.lc-header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.lc-logo {
    display: inline-block;
    line-height: 0;
    background-color: var(--lc-blue);
}

.lc-logo img {
    max-height: 72px;
    width: auto;
    display: block;
}

.lc-guide-title .guide-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.lc-guide-title .guide-version {
    color: #d0dde6;
    font-size: 13px;
    margin: 4px 0 0;
}

#ig-viewer {
    position: relative;
    height: 100%;
}

#ig-viewer .ig-view-content {
    overflow: hidden;
    min-height: 100%;
    position: relative;
    height: auto !important;
    margin-bottom: -155px;
    padding-bottom: 155px;
    background: #fcfcfc;
}

#ig-viewer .ig-view-content #ig-view-twolevelmenu .header {
    background: var(--lc-blue);
    border-bottom: 3px solid var(--lc-red);
    color: white;
    padding: 0;
    margin: 0;
}

#ig-viewer .ig-view-content #ig-view-twolevelmenu .header .navbar {
    background-color: var(--lc-blue) !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    min-height: 52px;
    color: white;
}

#ig-viewer .ig-view-content #ig-view-twolevelmenu .header .navbar .container,
#ig-viewer .ig-view-content #ig-view-twolevelmenu .header .navbar .container-fluid {
    background-color: var(--lc-blue) !important;
    padding-left: 15px;
    padding-right: 15px;
}

#ig-viewer .ig-view-content #ig-view-twolevelmenu .header .navbar-header {
    margin-bottom: 0;
    color: white;
    background-color: var(--lc-blue);
}

#ig-viewer .ig-view-content #ig-view-twolevelmenu .header .navbar-collapse {
    padding-right: 0;
    padding-left: 0;
    color: white;
    background-color: var(--lc-blue);
    border: none;
    box-shadow: none;
}

#ig-viewer .ig-view-content #ig-view-twolevelmenu .header .navbar-toggle {
    border-color: rgba(255, 255, 255, 0.5);
    margin-top: 10px;
    margin-bottom: 10px;
}

#ig-viewer .ig-view-content #ig-view-twolevelmenu .header .navbar-toggle .icon-bar {
    background-color: #fff;
}

/* Change menu bar font color (title, menu & submenu) */
#ig-viewer .ig-view-content #ig-view-twolevelmenu .header .navbar a {
    background-color: var(--lc-blue) !important;
    color: white;
    font-family: "Titillium Web", "Segoe UI", sans-serif !important;
    font-size: 1.2em;
}

/* Change menu bar font color (only menu) */
#ig-viewer .ig-view-content #ig-view-twolevelmenu .header .navbar-nav>li>a {
    margin-left: 0px;
}

/* Change menu bar item background color and font color (only menu) */
#ig-viewer .ig-view-content #ig-view-twolevelmenu .header .navbar-nav>li>a:hover {
    background-color: var(--lc-red);
    color: white;
}

/* Change menu bar font color (only submenu) */
#ig-viewer .ig-view-content #ig-view-twolevelmenu .header .navbar .dropdown-menu a {
    color: white;
}

#ig-viewer .ig-view-content #ig-view-twolevelmenu .header .navbar .dropdown-menu a:hover {
    background-color: var(--lc-red);
    color: white;
}

/* Change menu background color (only submenu) */
#ig-viewer .ig-view-content #ig-view-twolevelmenu .header .navbar .dropdown-menu {
    background-color: var(--lc-blue);
    color: white;
    font-size: 14px;
    border: 1px solid var(--lc-blue-hover);
}

#ig-viewer .ig-view-content #ig-view-twolevelmenu .header .navbar .navbar-nav>li>a {
    padding-top: 16px;
    padding-bottom: 16px;
    color: white;
    border-radius: 0;
}

#ig-viewer .ig-view-content #ig-view-twolevelmenu .content .nav-pills>li>a {
    overflow: hidden;
    text-overflow: ellipsis;
}

#ig-viewer .ig-view-content #ig-view-twolevelmenu .content .nav-pills>li>a:hover {
    color: var(--lc-red);
}

#ig-viewer .ig-view-footer {
    background-color: var(--lc-blue);
    color: #eee;
    height: 115px;
    margin-top: 40px;
    padding-top: 40px;
    position: relative;
}

.roundbox {
    border: 2px solid #bdbdbd;
    border-radius: 20px;
    padding: 20px;
    background-color: #fafafa;
    list-style-position: inside;
    /* outline: black solid 5px;*/
    /* outline-offset: 5px;*/
}

blockquote ol:last-child,
blockquote p:last-child,
blockquote ul:last-child,
ol ol,
ol ul,
ul ol,
ul ul {
    margin-bottom: 5px;
}

/* numbered table of context, e.g:
     1.
      1.1 
      1.1.1 ect. /*/
ol {
    list-style-type: none;
    counter-reset: item;
    margin: 0;
    padding: 0;
}

ol>li {
    display: table;
    counter-increment: item;
    margin-bottom: 0.6em;
}

ol>li:before {
    content: counters(item, ".") ". ";
    display: table-cell;
    padding-right: 0.6em;
}

li ol>li {
    margin: 0;
}

li ol>li:before {
    content: counters(item, ".") " ";
}

/* numbered table headers that correspond with table of context */
#preview-content h1[id*="profiling-guidelines"] {
    counter-reset: h2counter;
}

#preview-content h1[id*="profiling-guidelines"]~h2 {
    counter-reset: h3counter;
}

#preview-content h1[id*="profiling-guidelines"]~h3 {
    counter-reset: h4counter;
}

#preview-content h1[id*="profiling-guidelines"]~h4 {
    counter-reset: h5counter;
}

#preview-content h1[id*="profiling-guidelines"]~h5 {
    counter-reset: h6counter;
}

#preview-content h1[id*="profiling-guidelines"]~h2:before {
    counter-increment: h2counter;
    content: counter(h2counter) ".\0000a0\0000a0";
}

#preview-content h1[id*="profiling-guidelines"]~h3:before {
    counter-increment: h3counter;
    content: counter(h2counter) "." counter(h3counter) ".\0000a0\0000a0";
}

#preview-content h1[id*="profiling-guidelines"]~h4:before {
    counter-increment: h4counter;
    content: counter(h2counter) "." counter(h3counter) "." counter(h4counter) ".\0000a0\0000a0";
}

#preview-content h1[id*="profiling-guidelines"]~h5:before {
    counter-increment: h5counter;
    content: counter(h2counter) "." counter(h3counter) "." counter(h4counter) "."
        counter(h5counter) ".\0000a0\0000a0";
}

a {
    color: var(--lc-blue);
}

a:hover {
    color: var(--lc-red);
}

p {
    margin: 0 0 5px;
}

.highlight {
    color: blue;
    font-family: "Courier New" Courier monospace;
}

h1 {
    color: var(--lc-blue);
    font-family: "Titillium Web", "Segoe UI", sans-serif;
    background-color: #ededed;
    border-left: 4px solid var(--lc-red);
    font-weight: bold;
    padding: 0.5em;
    font-size: 22px;
}

h2 {
    color: var(--lc-blue);
    font-family: "Titillium Web", "Segoe UI", sans-serif;
    font-weight: bolder;
    font-size: 20px;
}

h3 {
    color: var(--lc-blue);
    font-family: "Titillium Web", "Segoe UI", sans-serif;
    font-weight: bolder;
    font-size: 18px;
}

h4 {
    color: var(--lc-blue);
    font-family: "Titillium Web", "Segoe UI", sans-serif;
    font-weight: bold;
    font-size: 16px;
}

h5 {
    color: black;
    font-family: "Titillium Web", "Segoe UI", sans-serif;
    font-size: 16;
    font-weight: bold;
}

/*standard table class for tables in html code*/
table.standard-html {
    table-layout: fixed;
    width: 100%;
}

/*standard table class for cells in tables in html code*/
th.standard-html,
td.standard-html,
tr.standard-html {
    border-style: solid;
    /*border-width: 1.5px 0.5px 1.5px;*/
    border-width: 0.5px 0.5px 0.5px;
    border-color: #eeecec; 
    font-size: 14;
    padding: 0.5em;
    /*w3-hoverable*/
}

/*standard table class for tables in markdown*/
.standard table {
    table-layout: auto;
    width: 100%;
}

/*fitcontent table class for tables in markdown*/
.fitcontent table {
    table-layout: auto;
    white-space: nowrap;
}

/*fitcontent table class for cells in tables in html code*/
th.fitcontent,
td.fitcontent,
tr.fitcontent {
    border-style: solid;
    border-width: 1.5px 0.5px 1.5px;
    border-color: #eeecec;
    font-size: 14;
    padding: 0.5em;
    /*w3-hoverable*/
}

th {
    background-color: #fafafa;
}

pre {
    background-color: #eee9e2;
    font-family: "Courier New" Courier monospace;
}

/*background of {{render */
.stu3-treetable {
    background-color: #fcfcfc;
}

/*text color of {{render */
/*
  .stu3-treetable .treetable-wrapper.hybrid a:not(.constraints), .stu3-treetable .treetable-wrapper.hybrid span:not(.constraints) {
      color: #4D4D4D;
  }
  */

.scrollbalk {
    max-height: 450px;
    overflow: auto;
}

.content.container {
    padding-left: 2%;
    padding-right: 6%;
}

/* Style for the box with snapshot/diff/example view */
.tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
}

/* Style the buttons inside the tab */
.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 8px 10px;
    transition: 0.3s;
}

/* Change background color of buttons on hover */
.tab button:hover {
    background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
    background-color: var(--lc-blue);
    color: #fff;
}

/* Style the tab content */
.tabcontent {
    display: none;
    padding: 6px 12px;
    border: 1px solid dimgrey;
    border-top: none;
}

/* back to top button - renders when scrolling */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    display: none;
}

/* remove the padding on pages under the header */
#preview-content {
    padding-top: 0px !important;
}

/* bootstrap overrides */
.btn-fhir {
    background: var(--lc-blue);
    color: #fff;
}

.btn-fhir:hover {
    background: var(--lc-red);
    color: #fff;
}

body {
    background: no-repeat top left;
    background-size: cover;
    clear: both;
    padding: 0px;
    margin: 0px;
}

.ig-view-footer a {
    color: #fff;
}

/* Tabelle scorrevoli orizzontalmente */
table{
    display: block;
    overflow-x: auto;
    white-space: normal;
    border-collapse: collapse;
}

/* bordi tabelle*/
table, td, th {
    border: 0.5px solid #ccc;
}

.no-border{
    border: none
}

/* Padding celle tabelle*/
th, td {
  padding: 7px;
}

/* Intestazione tabelle */
th{
    min-width: fit-content;
    background-color: var(--lc-blue);
    color: white;
    font-weight: bold;
}


/* Per allargare colonna "Descrizione" nella tabella dei profili*/
/*td>p{
    min-width: 240px;
}
*/


/* Colonne dispari delle tabelle di colore diverso*/
tr:nth-child(even){
    background-color: #f2f2f2;
}

