/** Generic overwrites of Bootstrap css */
.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* remove the gap so it doesn't close */
}


/*  TABLES  */

table.dataTable tbody th, table.dataTable tbody td, table.dataTable thead th, table.dataTable thead td {
     padding: 4px; 
}

table {
    font-size: 13px;
    line-height: 18px;
}
.table.small {
    width: 500px;
}
.table.small th, .table td, .table th {
    padding: 3px;
}
.table th, .table td {
    padding: auto;
    line-height: auto;
    text-align: left;
    vertical-align: top;
    border-top: 1px solid #ddd;
}
.table th {
    border-top: 1px solid #fff;
}
th {
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #ddd;
    background-color: #ddd;
}
/*thead {
    border-top: 2px solid #999;
    border-bottom: 2px solid #999;
}*/

.table tr.highlight td { background-color: yellow !important; }

/*  INPUTS  */
textarea, .uneditable-input {
    width: auto;
    height: auto;
    overflow: auto; /* fix IE */
    position: relative; /* fix IE */
}
label, input, button, select, textarea {
    width: auto;
    height: auto;
    font-size: 12px;
    font-weight: normal;
    line-height: 20px;
}

select, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input {
    display: inline-block;
    padding: 2px 4px;
    margin-bottom: 2px;
    font-size: 12px;
    line-height: 20px;
    color: #222;
    vertical-align: middle;
    border-radius: 4px;
}
input[type="radio"], input[type="checkbox"] {
    margin: 2px;
    line-height: normal;
}
select, input[type="file"] {
    height: 26px;
}
textarea {
    resize: vertical;
}
select {
    width: auto;
    margin-bottom: 2px;
}
input[type="text"].required, select.required, input[type="checkbox"].required {
    border-left: 1px solid red;
}

select.select-full {
    width: 100%;
}


/*  BADGES  */
.badge a {
    color: #ffffff;
}

/*  POPOVER  */
.popover-inner {
    width: 600px !important;
}
.popover, .popover h3.title, .popover .content {
    font-size: 12px;
}
/* The max width is dependant on the container (more info below) */
.popover{
    max-width: 100%; /* Max Width of the popover (depending on the container!) */
}

.q.alert.alert-info.collapse, #q {
    padding: 0;
    border: 0;
    margin: 0;
}
.q.alert.alert-info.collapse.in, #q.alert.alert-info.in.collapse {
    padding: 8px 35px 8px 14px;
}


a.btn-info.dropdown-toggle {
    color: #ffffff;
}
#modalBox {
    width: 600px;
    overflow: auto;
    max-height: 550px;
    height: 700px;
}
ol.decimal {
    width: 250px;
}
ol.decimal li {
    list-style-type: decimal !important;
}



.grey-dark,
.grey-medium,
.grey-light {
    background-color: #B2B2B2;
}

/*  CHROME FIX FOR POPOVER on FONTAWESOME icon  */
[rel="popover"] {
    cursor: pointer;
    display: inline-block;
}

/* CAROUSEL override */
.carousel {
    margin-bottom: 0;
}

.breadcrumb {
    font-size: x-small;
}

/* Side notes for calling out things */
.bs-callout {
    margin: 20px 0;
    padding: 15px 30px 15px 15px;
    border-left: 5px solid #eee;
}
.bs-callout h4 {
    margin-top: 0;
}
.bs-callout p:last-child {
    margin-bottom: 0;
}
.bs-callout code,
.bs-callout .highlight {
    background-color: #fff;
}

/* Themes for different contexts */
.bs-callout-danger {
    background-color: #fcf2f2;
    border-color: #dFb5b4;
}
.bs-callout-warning {
    background-color: #fefbed;
    border-color: #f1e7bc;
}
.bs-callout-info {
    background-color: #f0f7fd;
    border-color: #d0e3f0;
}

/* Grid systems */
.row {
    margin-bottom: 10px;
}

/* rel=tooltip overrule z-index */
.tooltip {
  z-index: 2147483647;
}

.tt-dropdown-menu {
    max-height: 500px;
    overflow-y: scroll;
}

.ui-widget-content a {
    color: #337ab7;
}

/* Aktieregel (action row) - center pagination when used alone */
.aktieregel {
    text-align: center;
}

.aktieregel nav {
    display: flex;
    justify-content: center;
}