@import url('https://cdnjs.cloudflare.com/ajax/libs/select2/3.4.8/select2.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/select2/3.4.8/select2-bootstrap.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.3.0/css/datepicker.min.css');

@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: normal;
    src: url("../fonts/SourceSansPro/SourceSansPro-Regular.eot") format('embedded-opentype'), url("../fonts/SourceSansPro/SourceSansPro-Regular.woff") format('woff');
}


@font-face {
    font-family: 'Gill Sans MT';
    src: url("../fonts/GillSansMT/gillsansmt.eot") format('embedded-opentype'), url("../fonts/GillSansMT/gillsansmt.woff") format('woff');
}


@-ms-viewport {
    width: device-width;
}
/*
 * Style tweaks
 * --------------------------------------------------
 */

.ad {
    visibility: hidden !important;
}

@media (max-width: 1200px) {
    .table-responsive {
        width: 100%;
        margin-bottom: 15px;
        overflow-x: scroll;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: -ms-autohiding-scrollbar;
        border: 1px solid #ddd;
    }
}

@media screen and (max-width: 767px) {

    #nav-main .nav a {
        color: #428BCA !important;
    }

        #nav-main .nav a.current {
            background: #005bbb;
            color: #eee !important;
        }

    .row-offcanvas {
        position: relative;
        -webkit-transition: all 0.25s ease-out;
        -moz-transition: all 0.25s ease-out;
        transition: all 0.25s ease-out;
    }

    .row-offcanvas-right
    .sidebar-offcanvas {
        right: -50%; /* 6 columns */
    }

    .row-offcanvas-left
    .sidebar-offcanvas {
        left: -50%; /* 6 columns */
    }

    .row-offcanvas-right.active {
        right: 50%; /* 6 columns */
    }

    .row-offcanvas-left.active {
        left: 50%; /* 6 columns */
    }

    .sidebar-offcanvas {
        position: absolute;
        top: 0;
        width: 50%; /* 6 columns */
    }
}

@media screen and (max-width: 480px) {

    .row-offcanvas {
        position: relative;
        -webkit-transition: all 0.25s ease-out;
        -moz-transition: all 0.25s ease-out;
        transition: all 0.25s ease-out;
    }

    .row-offcanvas-right
    .sidebar-offcanvas {
        right: -25%; /* 3 columns */
    }

    .row-offcanvas-left
    .sidebar-offcanvas {
        left: -75%; /* 9 columns */
    }

    .row-offcanvas-right.active {
        right: 25%; /* 3 columns */
    }

    .row-offcanvas-left.active {
        left: 75%; /* 9 columns */
    }

    .sidebar-offcanvas {
        position: absolute;
        top: 0;
        width: 75%; /* 9 columns */
    }

    #nav-main .nav a {
        padding: 3px 5px !important;
        margin-left: 13px !important;
    }
}



/*
---- Typography ----
*/
html, body {
    font-family: 'Source Sans Pro', 'Arial', sans-serif;
    font-size: 15px;
    /*overflow-x: hidden;*/ /* Prevent scroll on narrow devices */
}

a {
    text-decoration: underline;
    color: #005bbb
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Gill Sans MT','Arial', sans-serif;
}

h1 {
    font-size: 235%;
    /*font-size i bootstrapt 260%*/
}

h2 {
    font-size: 190%;
    /*font-size i bootstrapt 215%*/
}

h3 {
    font-size: 155%;
    /*font-size i bootstrapt 170%*/
}

h4 {
    font-size: 120%;
    /*font-size i bootstrapt 125%*/
}

.lead {
    font-size: 17px !important;
    font-weight: 600;
}

/*
---- Body ----
*/
body {
    background: #333;
}

/*
---- Page building blocks ----
*/
#toolbar {
    color: #fff;
    padding: 5px;
    margin-bottom: 5px;
}

#header {
    background: #fff;
    margin-bottom: 10px;
    margin-top: 40px;
}

#logotype {
    padding: 20px 0 20px 16px;
}

#english-link {
    padding: 15px;
    margin-top: 7px;
}

#loggingmenu {
    background: #333;
    color: #fff;
    margin-bottom: 10px;
    padding-right: 0px;
}

#leftlogininfo {
    position: relative;
    top: 7px;
    padding-left: 20px;
    color: #fff;
}

#menyknapp {
    margin-left: 5px;
}

#rightlogininfo {
    position: relative;
    top: 2px;
}

#glyphButton {
    margin-right: 10px;
    margin-left: 10px;
}

#logout-button {
    margin-left: 10px;
    margin-right: 10px;
}

#nav-transport {
    margin: 0;
    padding: 0;
}

#vag, #sjofart, #luftfart, #jarnvag {
    text-align: center;
    padding: 10px 0 5px 0;
    height: 100%;
}

.vagtrafik {
    color: #e98300;
}

.sjofart {
    color: #cf0072;
}

.luftfart {
    color: #00a1de;
}

.jarnvag {
    color: #b6bf00;
}

.label-vagtrafik {
    background-color: #e98300;
}

.label-sjofart {
    background-color: #cf0072;
}

.label-luftfart {
    background-color: #00a1de;
}

.label-jarnvag {
    background-color: #b6bf00;
}

#vag:hover, #vag.current {
    border-top: 5px solid #e98300;
    padding: 5px 0 5px 0;
}

#sjofart:hover, #sjofart.current {
    border-top: 5px solid #cf0072;
    padding: 5px 0 5px 0;
}

#luftfart:hover, #luftfart.current {
    border-top: 5px solid #00a1de;
    padding: 5px 0 5px 0;
}

#jarnvag:hover, #jarnvag.current {
    border-top: 5px solid #b6bf00;
    padding: 5px 0 5px 0;
}

#search {
    margin-left: auto;
    margin-right: auto;
    padding: 10px;
}

    #search button {
        background: #666;
        color: #fff;
    }

#banner {
    margin-bottom: 10px;
    background-image: url('http://www.transportstyrelsen.se/Global/Bilder/vgdummy2013fgzj.jpg');
    background-size: 100% auto;
    background-repeat: no-repeat;
}

#crisis {
    margin-bottom: 10px;
}

#services {
    background: #e98300;
    color: #fff;
}

#service-top {
    padding: 10px;
    margin-bottom: 10px;
}

#nav-services {
    padding: 10px;
}

#shortcuts {
    background: #005;
    color: #fff;
    margin-bottom: 10px;
}

#topics {
    margin-bottom: 10px;
}

#news {
    background: #005;
    color: #fff;
    margin-bottom: 10px;
}

#more-news {
    margin: 10px 0;
    text-align: right;
}

#main {
    background: #fff;
    padding: 10px 0;
    margin-bottom: 10px;
    margin-top: 10px;
}

#content-primary {
    margin-bottom: 10px;
    margin-top: -17px;
    min-height: 360px;
}

#footer {
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

    #footer a {
        color: #fff;
    }

#toolbar a {
    color: #fff;
}
/*
---- Menus and navigation ----
*/
#nav-main .nav li a {
    padding: 3px 5px;
    margin: 2px 0;
}

#nav-main .nav li.active > a {
    color: white;
}

#nav-main .nav a {
    color: #666;
}

    #nav-main .nav a:hover {
        text-decoration: underline !important;
    }

    #nav-main .nav a.current {
        background: #0F6CB5;
        color: #eee;
    }

        #nav-main .nav a.current:hover {
            background: #0043a3;
        }

.nav-level-1 a {
    text-transform: uppercase;
}

.nav-level-2 a {
    text-transform: none;
}

.nav-level-2 {
    padding-left: 3px;
    margin-left: 6px;
}

.nav-level-3, .nav-level-4, .nav-level-5, .nav-level-6, .nav-level-7 {
    padding-left: 3px;
    margin-left: 6px;
    border-left-style: solid;
    border-color: #0F6CB5;
}

.nav-sub-current {
    font-size: 85%;
}

.nav-sort {
    margin-bottom: 10px;
}

.ts-chevron {
    color: #BCBCBC;
}

#ts-info-sign {
    color: #31708F;
    top: 2px;
}

.ts-warning-sign {
    top: 2px;
    color: #F0AD4E;
    left: 3px;
}

/*
---- General styles (classes) ----
*/

.crisis-danger {
    background: #f2dede;
    color: #b94a48;
    border: 1px solid #ebccd1;
}

    .crisis-danger a, .crisis-danger a:hover {
        background: #f2dede;
        color: #b94a48;
        font-weight: bold;
    }

.crisis-info {
    background: #d9edf7;
    color: #3a87ad;
    border: 1px solid #bce8f1;
}

    .crisis-info a, .crisis-info a:hover {
        background: #d9edf7;
        color: #3a87ad;
        font-weight: bold;
    }

.label, .badge {
    font-weight: 600;
    margin-right: 5px;
}

.btn-file {
    position: relative;
    overflow: hidden;
}

    .btn-file input[type=file] {
        position: absolute;
        top: 0;
        right: 0;
        min-width: 100%;
        min-height: 100%;
        font-size: 100px;
        text-align: right;
        filter: alpha(opacity=0);
        opacity: 0;
        outline: none;
        background: white;
        cursor: inherit;
        display: block;
    }

.ts-forsta-rubrik {
    margin-top: 0;
}

.has-feedback .form-control-feedback {
    top: 0;
}

/*
---- Page specific styles ----
*/
.shortcut {
    padding: 10px;
    text-align: center;
}

.cart-delete-button {
    color: #f00;
}

.cart-list {
    padding: -1px;
    margin: -1px;
}

.cart-item {
    padding: 5px 0;
    margin: 0;
    border-bottom: 1px solid #ccc;
}

.pub-item {
    padding: 10px 0 20px 0;
}

.pub-download {
    min-width: 100px;
    padding-bottom: 5px;
}

.pub-order {
    min-width: 220px;
    padding-bottom: 5px;
}

.pub-input-quantity {
    width: auto !important;
}

.pub-cart-input {
    padding: 0;
}

.roadsign {
    padding: 0 5px 10px 5px;
}

.tsfs-item {
    margin-bottom: 10px;
}

h3.tsfs-regulation-list {
    font-size: 120%;
    padding-top: 0;
    margin-top: 0;
}

.list-group-item-heading {
    font-size: 120%;
    padding-top: 0;
    margin-top: 0;
}

.list-group-item .alert {
    margin-bottom: 12px;
}

.badge-success {
    background: #5cb85c;
}

.badge-danger {
    background: #d9534f;
}

.badge-warning {
    background: #f0ad4e;
}

h3 .label {
    font-weight: normal;
    font-size: 65%;
    font-family: 'Source Sans Pro', 'Arial', sans-serif;
    padding: 0.1em 0.5em 0.15em;
}

.search-result {
    padding: 8px;
    margin: 0;
    border-top: 1px solid #ddd;
}

    .search-result div {
        padding-left: 0;
    }

.search-result-header {
    border-top: 0;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
}

.search-result-header-small {
    font-weight: normal;
}

.search-result-heading {
    margin-top: 0;
}

.ts-glyphicon-alerts {
    font-size: 150%;
}

/*---- Element specific styles ----*/
#nav-transport img {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5px;
}

#nav-xs img {
    margin-right: 10px;
}

#service-top h2 {
    font-size: 135%;
}

.heading-start {
    margin-left: -20px;
}

.heading-label-road {
    padding: 5px 10px;
    background: #e98300;
    color: #000;
}

/* h3.media-heading {
  padding-top: 2px;
  border-bottom: 1px solid #ff6103;
} */

img.share-icon {
    margin-left: 5px;
}

img.tool-icon {
    margin-right: 5px;
}

[class*='-primary'] {
    background-color: #0F6CB5;
    color: #f0f0f0;
}

.ts-h2-mobil {
    font-size: 130%;
    padding: 0;
    margin: 0;
}

.ts-h2 {
    font-size: 150%;
}

@media screen and (max-width: 480px) {
    .ts-h1 {
        font-size: 155%;
    }

    .ts-h2 {
        font-size: 135%;
    }

    .ts-h3 {
        font-size: 105%
    }

    .ts-h4 {
        font-size: 100%
    }

    .help-block {
        margin-bottom: 0px;
    }
}

.content-secondary {
    top: -10px;
}

.ts-lista {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.bs-example {
    position: relative;
    padding: 0px 15px 15px;
    margin: 0 -15px 15px;
    border-color: #e5e5e5 #eee #eee;
    border-style: solid;
    border-width: 1px 0;
    -webkit-box-shadow: inset 0 3px 6px rgba(0, 0, 0, .05);
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, .05);
}

.bs-example-header {
    font-weight: 500;
    color: #808080;
    margin-bottom: 20px;
}

.bs-example-padded-bottom {
    padding-bottom: 24px;
}

.bs-example + .highlight, .bs-example + .zero-clipboard + .highlight {
    margin: -15px -15px 15px;
    border-width: 0 0 1px;
    border-radius: 0;
}

@media (min-width:768px) {
    .bs-example {
        margin-right: 0;
        margin-left: 0;
        background-color: #fff;
        border-color: #ddd;
        border-width: 1px;
        border-radius: 4px 4px 0 0;
        -webkit-box-shadow: none;
        box-shadow: none;
    }

        .bs-example + .highlight, .bs-example + .zero-clipboard + .highlight {
            margin-top: -16px;
            margin-right: 0;
            margin-left: 0;
            border-width: 1px;
            border-bottom-right-radius: 4px;
            border-bottom-left-radius: 4px;
        }

    .bs-example-standalone {
        border-radius: 4px;
    }
}

.bs-example .container {
    width: auto;
}

.bs-example > .alert:last-child, .bs-example > .form-control:last-child, .bs-example > .jumbotron:last-child, .bs-example > .list-group:last-child, .bs-example > .navbar:last-child, .bs-example > .panel:last-child, .bs-example > .progress:last-child, .bs-example > .table-responsive:last-child > .table, .bs-example > .table:last-child, .bs-example > .well:last-child, .bs-example > blockquote:last-child, .bs-example > ol:last-child, .bs-example > p:last-child, .bs-example > ul:last-child {
    margin-bottom: 0;
}

.bs-example > p > .close {
    float: none;
}

.bs-example-type .table .type-info {
    color: #767676;
    vertical-align: middle;
}

.bs-example-type .table td {
    padding: 15px 0;
    border-color: #eee;
}

.bs-example-type .table tr:first-child td {
    border-top: 0;
}

.bs-example-type h1, .bs-example-type h2, .bs-example-type h3, .bs-example-type h4, .bs-example-type h5, .bs-example-type h6 {
    margin: 0;
}

.bs-example-bg-classes p {
    padding: 15px;
}

.bs-example > .img-circle, .bs-example > .img-rounded, .bs-example > .img-thumbnail {
    margin: 5px;
}

.bs-example > .table-responsive > .table {
    background-color: #fff;
}

.bs-example > .btn, .bs-example > .btn-group {
    margin-top: 5px;
    margin-bottom: 5px;
}

.bs-example > .btn-toolbar + .btn-toolbar {
    margin-top: 10px;
}

.bs-example-control-sizing input[type=text] + input[type=text], .bs-example-control-sizing select {
    margin-top: 10px;
}

.bs-example-form .input-group {
    margin-bottom: 10px;
}

.bs-example > textarea.form-control {
    resize: vertical;
}

.bs-example .navbar:last-child {
    margin-bottom: 0;
}


.ts-row-align > div {
    display: inline-table;
    float: none;
    /* inline-table space fix */
    margin-right: -4px;
}

.ts-break-all {
    word-break: break-all;
}



.glyphicon-chevron-right, .glyphicon-info-sign {
    cursor: pointer;
}

.panel-heading {
    cursor: pointer;
}

.ts-warning-sign {
    top: 2px;
    color: #F0AD4E;
}

.ts-info-sign {
    color: #31708F;
    top: 2px;
}



.ts-chevron {
    color: #BCBCBC;
}

.ts-panel .panel-heading {
    padding: 0;
}

    .ts-panel .panel-heading a {
        display: block;
        padding: 10px 15px;
    }

.ts-forsta-rubrik {
    margin-top: 0px;
}

.ts-datum-grupp {
    width: 150px;
}

#xsAnchor {
    background: #CCCCCC;
    border-radius: 3px 3px 0 0;
    bottom: 0;
    display: none;
    height: 30px;
    padding: 7px 0 12px 15px;
    position: fixed;
    right: 0;
    text-align: left;
    width: 120px;
    z-index: 2000;
    cursor: pointer;
    cursor: hand;
}

.ts-css-pre {
    margin-top: -10px;
}

.btn-file {
    position: relative;
    overflow: hidden;
}

    .btn-file input[type=file] {
        position: absolute;
        top: 0;
        right: 0;
        min-width: 100%;
        min-height: 100%;
        font-size: 100px;
        text-align: right;
        filter: alpha(opacity=0);
        opacity: 0;
        outline: none;
        background: white;
        cursor: inherit;
        display: block;
    }


.ts-tillagda-rubrik {
    margin-left: 0px;
    padding-left: 0px;
    margin-top: 15px;
    margin-bottom: 0px;
}

.ts-filnamn {
    margin-left: 0px;
    padding-left: 0px;
}

.ts-info-popover {
    cursor: pointer;
}

.ts-riktlinje-rubrik {
    margin-top: 20px;
    padding-top: 15px;
}

#ts-inputRegFlynummer {
    width: 200px;
}

#ts-sok {
    max-width: 250px;
}

.margin-b-15 {
    margin-bottom: 15px;
}


.bs-example-header {
    margin-bottom: 5px;
    margin-top: 15px;
}

@media screen and (max-width: 1366px) {
    .ts-meny-margin {
        margin-bottom: -6px;
        font-size: 85%;
    }

    #ts-meny-ul {
        margin-top: -6px;
    }

    #ts-meny-a-hide {
        display: none;
    }
}

.ts-h2-mobil {
    font-size: 130%;
    padding: 0;
    margin: 0;
}

.ts-meny-margin {
    margin-bottom: -2px;
    font-size: 95%;
    line-height: 125%;
}

.space td {
    padding-right: 10px;
}

pre.prettyprint {
    display: block;
    overflow: auto;
    width: auto;
    white-space: pre;
    word-wrap: normal;
    padding: 10px;
}

pre {
    background-color: white;
    color: #069;
    padding: 0em 1em;
    overflow: auto;
    white-space: pre;
    word-wrap: normal;
    font: bold 12px/1.5em "Consolas","Bitstream Vera Sans Mono","Courier New",Courier,monospace !important;
    position: relative;
    margin: 0 0 1em;
}

    pre .the-num {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        padding: 0 1em;
        color: #999;
        background-color: #eee;
        border-right: 2px solid #ccc;
    }

#ts-skicka-in {
    left: -2px;
}

pre .bracket {
    color: darkblue;
}

pre .tag,
pre .tag .keyword,
pre .tag .attribute {
    color: blue;
}

pre .selector {
    color: blue;
}

pre .attribute,
pre .regexp {
    color: darkorange;
}

pre .str {
    color: green;
}

pre .tag .str {
    color: brown;
}

pre .keyword {
    color: darkred;
}

pre .comment {
    font-style: italic;
    color: #999;
}

pre .num,
pre .hex {
    color: darkviolet;
}

pre .name,
pre .important,
pre .array {
    color: red;
}

pre .important {
    background-color: yellow;
}

body {
    position: relative;
}

.ts-h2-forsta-rubrik {
    font-size: 160%;
    margin-top: 0px;
}

.ts-forklaring li {
    margin-top: 10px;
    margin-bottom: 5px;
}

#pleaseWaitDialog {
    top: 0;
}

#ts-minimera-alla {
    margin-right: 5px;
}

.ts-bakgrund-farg {
    background-color: #f7f7f7;
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 15px;
}

.ts-bakgrund {
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 10px;
}

.input-group input {
    border-top-right-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
}

.skip {
    position: absolute;
    top: -1000px;
    left: -1000px;
    height: 1px;
    width: 1px;
    text-align: left;
    overflow: hidden;
}

a.skip:active,
a.skip:focus,
a.skip:hover {
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    overflow: visible;
    color: #FFFFFF;
    background-color: #005BBB;
}

/* Används för att få rätt marginaler och font när etiketter används i en accordion. */
.xlabel {
    font-weight: normal;
    font-size: 70%;
    margin-right: 5px;
}

.ts-radiocheck-label {
    margin-bottom: 0px;
}

.radioknapp {
    margin-left: 16px;
}

.radioknapp2 {
    margin-left: 24px;
}

.checkruta {
    margin-left: 16px;
}


.marginalUpp {
    padding-top: 15px;
}

.underfragaental {
    margin-left: 16px;
    display: inline-block;
}

.underfragatvatal {
    margin-left: 24px;
    display: inline-block;
}



.ptopbottom {
    padding-top: 0px;
    margin-bottom: -5px;
}

.siffra {
    padding-right: 3px;
    display: table-cell;
    vertical-align: top;
}

.huvudfraga {
    display: table-cell;
    vertical-align: top;
}

.huvudfraga2 {
    padding-left: 16px;
    display: table-cell;
    vertical-align: top;
}

ts-h2-relaterad {
    font-size: 160%;
}

#ts-security-code {
    margin-bottom: 0px;
}

#ts-regknapp {
    left: -44px;
}

.hits {
    margin-top: 5px;
    float: left;
}
/*Ts custom Johan R*/

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

    .alert-danger:hover {
        color: #721c24;
        background-color: #f8d7da;
        border-color: #f5c6cb;
    }

.btn {
    text-decoration: none;
}

    .btn:hover {
        text-decoration: underline;
    }

main {
    color: #333;
    background: #fff;
}

.modal-content {
    color: #333;
    background: #fff;
}

.ts-h1 {
    font-size: 188%;
    margin-bottom: 5px;
}

.ts-h2 {
    margin-top: 0px;
    font-size: 135%;
}

.ts-h3 {
    font-size: 125%;
}

.ts-h4 {
    font-size: 115%;
}
