/* Miligram overrides */
a {
    font-family: "Roboto Condensed", sans-serif;
    color: #404041;
}

/* Utility */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Main */
body {
    padding: 1rem 0;
    background: #f5f7fa;
    font-family: "Roboto Condensed", sans-serif;
    color:#1e1e1e;    
}

body.printer {
    padding: 0rem;
    background: #ffffff;
}

/* Buttons*/
button, .smallbutton {
    font-family: "Roboto Condensed", sans-serif;
}
button, .button, a.button, .smallbutton, a.smallbutton, a.logout {
    margin-left:0.2rem;
    margin-right:0.2rem;
    color: #f0f0f0;
    background-color:  #0071BC;
    font-size: 1.4rem;   
}

.smallbutton, a.smallbutton, .smallbutton:focus {
    font-size: 1.2rem; 
    color: #0f0f0f;
    background-color: #e1e1e1;
}

button:hover, .button:hover, a.button:hover, .smallbutton:hover, a.smallbutton:hover, a.logout:hover {
    background-color: #88c671;
}

a.button-content {
    margin-bottom:0rem;
}

/* Content */
.content {
    padding: 2rem;
    background: #ffffff;
    border-radius: 0.4rem;
    /* Thanks Stripe */
    box-shadow: 0 7px 14px 0 rgba(60, 66, 87, 0.1),
        0 3px 6px 0 rgba(0, 0, 0, 0.07);
}
.content-buttons {
    padding-top:1rem;
    padding-bottom:1rem;
}

.content-actions {
    padding: 1rem;
    background: #ffffff;
    border-radius: 0.4rem;
    /* Thanks Stripe */
    box-shadow: 0 7px 14px 0 rgba(60, 66, 87, 0.1),
        0 3px 6px 0 rgba(0, 0, 0, 0.07);
    margin-bottom:1.5rem;
    }

.content-actions-text {
    font-weight:400;
    font-size:2rem;
}
  
a.content-actions-button {
    padding-left:1.5rem;
    padding-right:1.5rem;
    font-size:1.25rem;
    margin-bottom:0rem;
}

.content-footer {
    background-color: #eee;
    margin-top:1.5rem;
    padding:1rem;
    margin-bottom:2rem;
}

.content-header {
    background-color: #eee;
    margin-top:1.5rem;
    margin-bottom:1.5rem;
    padding:1rem;
    padding-bottom:0rem;
}

.content-copyright {
    display:none;
}

.content-printfooter {
    display:none;
}

td.actions {
    background-color: #f8f8f8;
}
.actions a {
    padding: 0.1rem;
    color:#1e1e1e;
}
th {
    white-space: nowrap;
    border-bottom: #1e1e1e 0.1rem double;
    background-color: #e1e1e1;
    padding: 0.25rem;     
}

th:first-child, 
td:first-child {
    padding-left: 0.5rem;
}

tfoot {
    display:none;
}

tfoot tr td {
    border-top: #1e1e1e 0.1rem double;
    border-bottom: #1e1e1e 0.1rem solid;    
    background-color: #e1e1e1;
    padding: 0.25rem; 
}

td.print-only, th.print-only {
    display:none;
}
div.print-only {
    display:none;
}

td {
    padding:0.25rem;
    font-weight:400;
}
h4.naslov {
    font-weight: bold;
    border-bottom: #404041 0.1rem dotted;
    margin-bottom:1rem;
}

/* header  */

a.naslov {
    font-size:2.5rem;
    font-weight: bold;    
}

/* Nav bar */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 110rem;
    padding: 2rem;
    margin: 0 auto 2rem;
}
.top-nav-title a {
    font-size: 2.4rem;
    color: #d33c43;
}
.top-nav-title span {
    color: #404041;
}
.top-nav-links a {
    margin: 0 0.5rem;
    color: #f0f0f0;
    background-color: #0071BC;
    font-size: 1.4rem;
}

.top-nav-title a,
.top-nav-links a {
    font-weight: bold;
}

.side-nav-item {
    display: block;
    padding: 0.5rem 0;
}

/* View action */
.view.content .text {
    margin-top: 1.2rem;
}
.related {
    margin-top: 2rem;
}

/* Flash messages */
.message {
    padding: 1rem;

    background: #eff8ff;
    color: #2779bd;

    border-color: #6cb2eb;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    margin-bottom: 2rem;
}
.message.hidden {
    display: none;
}
.message.success {
    background: #e3fcec;
    color: #1f9d55;
    border-color: #51d88a;
}
.message.error {
    background: #fcebea;
    color: #cc1f1a;
    border-color: #ef5753;
}

/* Forms */
.pregled {
    background-color: transparent;
    border: 0.1rem solid #d1d1d1;
    border-radius: .4rem;
    box-shadow: none;
    box-sizing: inherit;
    height: 3.8rem;
    padding: .6rem 1.0rem;
    width: 100%;
    margin-bottom: 1rem;
}

.pregledtext {
    background-color: transparent;
    border: 0.1rem solid #d1d1d1;
    border-radius: .4rem;
    box-shadow: none;
    box-sizing: inherit;
    min-height: 3.8rem;
    padding: .6rem 1.0rem;
    width: 100%;
    margin-bottom: 1rem;
}

.pregleddisabled {
    background-color: #e1e1e1;
    border: 0.1rem solid #d1d1d1;
    border-radius: .4rem;
    box-shadow: none;
    box-sizing: inherit;
    padding: .6rem 1.0rem;
    width: 100%;
    margin-bottom: 1rem;
}

.pregledslika {
    background-color: transparent;
    border: 0.1rem solid #d1d1d1;
    border-radius: .4rem;
    box-shadow: none;
    box-sizing: inherit;
    padding: .6rem 1.0rem;
    width: 100%;
    margin-bottom: 1rem;
}
.pregledqrkoda {
    background-color: transparent;
    border: 0.1rem solid #d1d1d1;
    border-radius: .4rem;
    box-shadow: none;
    box-sizing: inherit;
    padding: .6rem 1.0rem;
    margin-bottom: 1rem;
}

legend {
    font-size: 1.75rem;
    font-weight:400;
    width:100%;
    border-bottom: #1e1e1e 0.1rem dotted;
    margin-bottom: 0.5rem;
}

label {
    font-size: 1.5rem;
    font-weight:700;
    margin-bottom:0.5rem;
    color:#606c76;
}

input, .input.text {
    font-family: "Roboto Condensed", sans-serif;
    margin-bottom: 0.5rem;
}

.input.radio,
.input.checkbox {
    margin-bottom: 0.5rem;
}
.input.radio input,
.input.checkbox input {
    margin: 0;
}
.input.radio label,
.input.checkbox label {
    margin: 0;
    display: flex;
    align-items: center;
}
.input.radio label > input,
.input.checkbox label > input {
    margin-right: 1.0rem;
}
.input.radio label:first-of-type {
    margin-bottom: 2.0rem;
}

input[type=submit] {
    margin: 0 0.5rem;
    color: #f0f0f0;
    background-color: #0071BC;
    font-size: 1.4rem;    
}
input[type=submit]:hover {
    background-color: #88c671;
}

/* Paginator */
.paginator {
    text-align: right;
    font-weight:400;
}
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}
.pagination li {
    margin: 0 0.5rem;
}
.prev.disabled a,
.next.disabled a {
    cursor: not-allowed;
    color: #606c76;
}
.asc:after {
    content: " \2193";
}
.desc:after {
    content: " \2191";
}

li.active {
    background-color: #cccccc;
    font-weight: bold;
}

/* Error */
.error-container {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: center;
}

@media screen and (max-width: 640px) {
    .top-nav {
        margin: 0 auto;
    }
    .side-nav {
        margin-bottom: 1rem;
    }
    .heading {
        margin-bottom: 1rem;
    }
    .side-nav-item {
        display: inline;
        margin: 0 1.5rem 0 0;
    }
    .asc:after {
        content: " \2192";
    }
    .desc:after {
        content: " \2190";
    }
}
