﻿body {
    /*padding-top: 50px;*/
    padding-bottom: 20px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

/*
#
#
#
#
*/

body {
    background-color: #fafafa;
}

.oneco-system-message-toolbar {
    padding-top: 1em;
    /*color: red;*/
}

#oneco-service-announcement-popup {
    display: none;
    position: absolute;
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    /*white-space: nowrap;*/
    /*max-width: 260px;*/ /* 👈 limits width */
    white-space: normal; /* 👈 allow wrapping */
    word-wrap: break-word; /* 👈 break long words */
    overflow-wrap: break-word;

    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    z-index: 9999;
}
#oneco-red-status {
    color: red;
    cursor: pointer;
}

#oneco-green-status {
    color: #5cb85c;
    cursor: pointer;
}

.pk-app .container:nth-of-type(1) {
    /*margin-left: 4em;
    max-width: 90%;*/
    padding-top: 1em;
}

.pk-mobile input {
    padding-left: 1px;
    padding-right: 1px;
}
.pk-mobile .col-xs-2 {
    padding-left: 2px;
    padding-right: 2px;
}

@media only screen and (max-width: 580px) {
    .mini-timesheet {
        display: inline;
    }
    .large-timesheet {
        display: none;
    }
}
@media only screen and (min-width: 580px) {
    .mini-timesheet {
        display: none;
    }
    .large-timesheet {
        display: inline;
    }
}

.vertical-text {    
	transform: rotate(90deg);
	transform-origin: left top 0;
    height: 100%;
}
.hours-vertical {
	transform: rotate(90deg);
	transform-origin: left top 0;
    height: 7em;
}
.pk-col-text {
    width:1px;
    word-wrap: break-word;
    font-family: monospace; /* this is just for good looks */
    white-space:pre-wrap; 
}

.side-nav li a {
    padding-top: 0.4em;
    padding-bottom: 0.4em;
    /*border-top: 1px solid;*/
}

.side-nav > li {
    border-top: 1px solid;
}

    .side-nav > li:last-child {
        border-bottom: 4px solid;
    }
    

text-right{
    text-align: right;
}
text-center{
    text-align: center;
}


.textarea-h8, textarea.form-control.textaea-h8 {
    height: 8em !important;
}

.menu-items .row {
    padding: 2px;
}

.modal-content-wide {
    width: 900px;
    margin-left: -150px;
}


/* 
#
#    Layout
#
*/
div.fill {
    margin: 0;
    padding: 0;
}
.container .pk-app {
    height: 100%;
    background-color: white;
}

.main-container {
    width: 95%;
    margin-left: 5%;
    height: 100%;
    background-color: white;
}

.component {
    margin-top: 0px;
}

.pk-scroll {
    overflow: auto;
    padding: 0;
    margin: 0;
    /*overflow-x: scroll; 
    max-height: 400px; 
    overflow-y: scroll;*/
}

.pk-scroll-sm {
    max-height: 7em;
}

.pk-scroll-md {
    max-height: 14em;
}

.pk-scroll-mdx {
    max-height: 20em;
}

.pk-scroll-lg {
    max-height: 32em;
}

.pk-scroll-xl {
    max-height: 50em;
}

.order-returned {
    background-color: orangered;
}

.post-textarea {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
    min-width: 100%;
}

input.wide {
    min-width: 100%;
}

.ordered {
    color: red;
}

.unused-th {
    background-color: darkgray;
}
.unused-td {
    background-color: #E5E4E2;
}

.pk-container .pk-app .panel-heading {
    padding: 4px 15px 4px 15px;
}

/* 
#
#    Javascript helper.js
#
*/
.table-td {
    table-layout: fixed;
    width: 100%;
    border: 0;
    padding: 0;
    margin: 0;
}

.table-td tbody > tr > td {
    border: 0;
    padding: 0;
    margin: 0;
}

.single-line-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


input.input-kr {
    text-align: right;
}
/* 
#
#    Table
#
*/

table.table-data tbody tr td.kr::before, table.table-data tfoot tr td.kr::before {
    float: left;
    content: "Kr";
}

table.table-data tbody tr td.kr, table.table-data tfoot tr td.kr {
    text-align: right;
    content: "Kr";
}


table.table-data tbody tr td.unit, table.table-data tfoot tr td.unit, table.table-data thead th.unit {
    text-align: right;
}

table.table-data {
    /*margin-top: 1em;*/
    /*border: 1px solid #6D1D6C;*/ /*ccc*/
    font-size: smaller;
}

table.table-selection tbody tr {
    cursor: pointer;
    /*background-color: lightyellow;*/
}

    table.table.table-selection tbody tr.selected td, table.table-selection tbody tr.selected tr td {
        /*//background-color: gray;*/
        background-color: lightgray;
    }


.oc-singleline {
    white-space: nowrap; 
    overflow: hidden;    
    text-overflow: ellipsis;
}

/* 
#
#    Hour Registration App 
#
*/

.new-timesheet  div.row > div {
    padding: 2px;
}

.mini-timsheet-div {
    padding: 3px;
    float: left;
    width: 5em;
}

.transaction-sent {
    /*background-color: #aaaaaa;*/
    /*color: red;*/
    background-color: #dff0d8;
}
.hourregistration-approved {
    /*background-color: #aaaaaa;*/
    /*color: green;*/
    background-color: #d9edf7;
}
.hourregistration-sent-in {
    /*background-color: #aaaaaa;*/
    /*color: blue;*/
    background-color: #fcf8e3;
}
.hourregistration-normal {
    background-color: #ffffff;
}
.timesheet-sent {
    background-color: lightgrey;
}

.disabled-table {
    background-color: lightgrey;
}

/* timesheet */
.red-input {
    background-color: #ff0000;
}

table.timesheet > tbody > tr > td {
    padding-top: 0;
    padding-bottom: 0;
    padding-right: 0;
    padding-left: 3px;
    border: 0;
}

table.timesheet > tbody > tr {
    padding: 0;
}

.timesheet input[type=text] {
    /*width: 10em;*/
}

.hour-edit {
    max-width: 5em;
}



.table > tbody > tr > td.mobile-hours-week-sum {
    font-size: 14pt;
    vertical-align: middle;
}
/* Company periods */

.table-row-0 {
    background-color: silver !important;
}
.table-row-1 {
    background-color: cornsilk!important;
}

.table-row-n-0 {
    background-color: palegreen !important;
}
.table-row-n-1 {
    background-color: cornsilk !important;
}
/* 
#
#    New bootstrap column layout
#
*/
.col-header {

}
.col-datafield {

}


/* 
#
#    Other
#
*/
.t-input {
    /*margin-left: 1em;
    margin-right: 1em;*/
}
.oc-td-input {
    /*padding-left: 0.5em;*/
    /*padding-right: 0.5em;*/
    padding-right: 5px;
}

a.white {
    color: white;
}
.filter-folder {
    color: white;
    float:left;
    margin-right:1em;
}
.filter-folder a {
    color:white;
}
.filter-right {
    overflow:hidden;
} 
.oc-flex {
    display: flex;
}
.oc-heading-folder {
    padding-right: 0.5em;
}
.oc-heading-folder > a {
    color: white;
}
.oc-flex-remaining {
    flex: 1;
}
.md-control-first {
    float:left;
}
.md-control {
    float:left;
    margin-left: 2em;
}

/* 
#
#    Accrued Resources App 
#
*/
.accrued-material-post-edit {
    max-width: 5em;
}


/*
    #####################################
*/
.mobile-table tbody tr td {
    margin: 0;
    padding: 3px;
}

/*
    #####################################
*/
.pk-small-panel{
    max-width: 50em;
    /*margin-left: auto;
    margin-right: auto;*/
}
.pk-hour-item {
    width: 4em;
    float:left; 
    display: inline-block;
}
.pk-hour-item-sub {
    /*float:left;*/ 
    /*width: 4em;*/
    /*display: inline-block;*/
}
.pk-hour-item-2 {
    float:left; 
    width: 8em;
    display: inline-block;
}

.pk-row-header {
    background-color: grey;
}

.pk-h-4 {
    height: 4em;
}

.pk-h-6 {
    height: 6em;
}

.pk-h-8::after {
    height: 8em;
}


/* Bootstrap override */
/*.panel > .panel-heading {
    background-image: none;
    background-color: cornflowerblue;
    color: white;
}*/
.btn-vert-margin {
    margin-top: 2px;
    margin-bottom: 2px;
}

.panel .btn-panel-add {
    width: 1.6em;
    height: 1.6em;
    margin: 0;
    padding: 0;
    float: right;
}
.panel .btn-panel-action {
    height: 1.6em;
    margin: 0;
    padding: 0;
    float: right;
}


.pk-panel-anchor {
    width: 1.6em;
    height: 1.6em;
    margin: 0;
    padding: 0;
    cursor: pointer;
    color: #333333;
}

.panel-body-fit > div > table,
.panel-body-fit > table, .panel-body-fit > div,
.panel-body-fit .tab-content table,
.panel-body-fit > .tab-content > .tab-pane > .component,
.panel-body-fit .component,
.panel-body-fit .tab-pane {
    /*background-color: red;*/
    margin: 0;
    /*padding: 0;*/
    padding: 0 0 0 0;
    /*border: 10px solid blue;*/
}

/*.panel-body-fit > .tab-content > .tab-pane > .component{
    background-color: red;
    margin: 0;
}*/
.panel-body-fit .tab-content, .panel-body-fit .tab-pane { /* Does not work*/
    padding: 0 !important;
    margin: 0 !important;
}
.panel-body-fit > table {
    border: 0;
}

.panel-body.panel-body-fit {
    padding: 0;
}




.pk-container {
    margin-left: 50px;
    margin-right: 50px;
}

.pk-hidden {
    display: none;
}
.pk-mini-cell {
    padding-left: 2px;
    padding-right: 2px;
}

/*.scrolltable > thead , .scrolltable > tbody{
    display: block;
}*/



/* ########################################*/
/* ########################################*/
/*table.pk-smart-table {
    display: block;
    border-spacing: 0;
    border-collapse: collapse;
    margin: 0;
}

table .pk-smart-thead {
    display:inline-block;
    width: 100%;
    max-height: 30em;
    border-spacing: 0;
    overflow-y: scroll;
    margin: 0;
}
table .pk-smart-tbody {
    display:inline-block;
    width: 100%;
    max-height: 30em;
    border-spacing: 0;
    overflow-y: scroll;
    margin: 0;
}
table .pk-smart-tfoot {
    display:inline-block;
    width: 100%;
    max-height: 30em;
    border-spacing: 0;
    overflow-y: scroll;
    margin: 0;
}

table.pk-smart-table tr {
    display: block;
    width: 100%;
    clear: both;
}*/

/* ########################################*/
/*   Tables */
/* ########################################*/

/*table.pk-smart-table th {    
    float: left;
    display:inline-block;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
}

table.pk-smart-table th.large {
    height: 4em;
}
table.pk-smart-table td.cell-ellipsis {
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
}

table.pk-smart-table td {  
    float: left;
    display: inline-block; 
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
}*/

/* ########################################*/
/*.pk-fixed-table-v2 {
    table-layout:fixed;
    margin: 0 auto; width: 100%;
}*/
/*body {background-color:red;}*/

/*.table.pk-fixed-table-wide > tbody > td, .table.pk-fixed-table-wide > thead > th {
  overflow-wrap: break-word;
  background-color:red;
}*/

.pk-fixed-table-wide {
    table-layout:fixed;
    margin: 0 auto; width: 100%;
}

.pk-fixed-table-wide td {
    overflow-wrap: break-word;
}

.pk-fixed-table-wide th {
    overflow-wrap: break-word;
}

.pk-fixed-table-wide tbody tr td.kr::before, .pk-fixed-table-wide tfoot tr td.kr::before {
    float: left;
    content: "Kr";
}

.pk-fixed-table-wide tbody tr td.kr, .pk-fixed-table-wide tfoot tr td.kr {
    text-align: right;
    content: "Kr";
}

.pk-fixed-table-wide tbody tr td.unit, .pk-fixed-table-wide tfoot tr td.unit, .pk-fixed-table-wide thead th.unit {
    text-align: right;
}

.pk-fixed-table-wide.smaller {
    font-size: smaller;
}

table > tbody > tr.hide-row {
    height: 0px;
    border: 0;
}
table > tbody > tr.hide-row td {
    padding: 0;
    margin: 0;
    height: 0;
    border: 0;
}

/* ########################################*/

input[disabled].default-cursor {
    cursor: default;
}

textarea[disabled].default-cursor {
    cursor: default;
}

.textarea-fullheight {
    height: 100%;
}

.pc-3 {
    width: 3%;
}
.pc-4 {
    width: 4%;
}
.pc-5 {
    width: 5%;
}
.pc-6 {
    width: 6%;
}
.pc-7 {
    width: 7%;
}
.pc-8 {
    width: 8%;
}
.pc-9 {
    width: 9%;
}
.pc-10 {
    width: 10%;
}
.pc-12 {
    width: 12%;
}
.pc-13 {
    width: 13%;
}
.pc-14 {
    width: 14%;
}
.pc-15 {
    width: 15%;
}
.pc-18 {
    width: 18%;
}
.pc-20 {
    width: 20%;
}
.pc-22 {
    width: 22%;
}
.pc-24 {
    width: 24%;
}



.width-80 {
    width: 80px;
}
.width-90 {
    width: 90px;
}
.width-100 {
    width: 100px;
}
.width-110 {
    width: 110px;
}
.width-120 {
    width: 120px;
}

.pwidth-10 {
    width: 10%;
}
.pwidth-15 {
    width: 15%;
}
.pwidth-20 {
    width: 20%;
}
.pwidth-30 {
    width: 30%;
}

.oc-w-50 {
    width: 50%;
}


.pk-color-95 {
    background-color: #f1f1f1;
}

.pk-color-90 {
    background-color: #e0e0e0;
}

.pk-color-85 {
    background-color: #f5f5f5;
}

.pk-color-80 {
    background-color: #eaaee9;
}

.pk-color-75 {
    background-color: #e49ae3;
}

.pk-color-70 {
    background-color: #df86dd;
}

.pk-color-65 {
    background-color: #da72d8;
}

.pk-color-60 {
    background-color: #d45ed2;
}

.pk-color-55 {
    background-color: #cf4acd;
}

.pk-color-50 {
    background-color: #c936c7;
}

.pk-color-45 {
    background-color: #b530b3;
}

.pk-color-40 {
    background-color: #a12b9f;
}

.pk-color-35 {
    background-color: #8d258b;
}

.pk-color-30 {
    background-color: #792077;
}

.pk-color-25 {
    background-color: #651b63;
}

.pk-color-20 {
    background-color: #511550;
}

.pk-color-10 {
    background-color: #280b28;
}

.pk-color-5 {
    background-color: #140514;
}

/*#######################################

    Throw

#########################################*/

/*

.error {
    color: red;
}
.htmlcell {
    width: 80%;
}
.data-table-wrapper {
    max-height: 20em;
    overflow-y: scroll;
    max-width: 90%;
    overflow-x: scroll;
}

.single-line-ellipsis2 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    position: relative;
}

.left-panel, .right-panel {
    float: left;
}

.left-panel {
    / * width: 50%;* /
    max-width: 47.5%;
}

.right-panel {
    margin-left: 2em;
    / *padding-left: 2em;* /
    max-width: 50%;
    min-width: 50%;
}

.inline-edit-m5 {
    max-width: 5em;
}

.inline-edit-m4 {
    max-width: 4em;
}


.gprog-header-unit-cost {
    / *ackground-color: orange;* /
    background-color: dodgerblue;
}

.gprog-header-budget {
    / *background-color: forestgreen;* /
    background-color: cornflowerblue;
}

.gprog-header-produced {
    background-color: skyblue;
}

.pk-scroll-test {
    height: 32em;
}

.production-report-col-sum {
    / *width: 442px;* /
    width: 15%;
}

.gprog-table-post {
    width: 60px;
}

.gprog-table-beskrivelse {
}

.gprog-table-enhet {
    width: 50px;
}

.gprog-table-enhetskost {
    width: 50px;
}

.gprog-table-under-entreprise {
}

.gprog-table-tjenestekjøp {
}

.gprog-table-timekost {
}

.gprog-table-akkord {
}

.gprog-table-enhetspris {
}

.gprog-table-mengde {
}

.gprog-table-eksternkost {
}

.gprog-table-timekost {
}

.gprog-table-verdi {
}

.gprog-table-produsert-mengde {
}

.gprog-table-produsert-verdi {
}

.gprog-table-bestilt-mengde {
}

.gprog-table-bestilt-verdi {
}

.gprog-table-mottatt-mengde {
}

.gprog-table-mottatt-verdi {
}

.gprog-table-filler {
}

*/