/*
 * It is advised not to edit the smartadmin_production.css
 * as this will override any changes you make in the
 * later versions of this theme.
 *
 * We advise that you use use this CSS to override
 * SmartAdmin styles.
 *
 * Rename the stylesheet to whatever your liking so it will stay
 * unique to you with each update of SmartAdmin.
 */

/*
 * INDEX
 *
 * - HTML
 * - BODY
 * - CUSTOM STYLES
 */

/* Product management specific styles */
/* Koskee vain Ant Designin taulukon sisällä olevia soluja */
.product-management-table .edited-cell,
.product-management-table .edited-cell .ant-select-selector {
    background-color: #ffe58f; /* keltainen */
}
.product-management-table .edited-cell {
    background-color: #ffe58f; /* keltainen */
}
.product-management-table .ant-table-cell {
    position:relative; /* keltainen */
}

.product-management-table .new-product-row {
    background-color: #d9f7be !important; /* vihreä, jos uusi rivi */
}

.product-management-table .editable-cell-content {
    /*padding: 8px 4px;*/
    height: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-management-table .editable-cell-content.edit-mode {
    white-space: pre-wrap; /* sallii rivinvaihdot muokkaustilassa */
}
.product-management-table .error-cell {
    background-color: #ffd6d6; /* vaaleanpunainen/punainen korostus */
}
.product-management-table mark {
    padding:0 !important;
    background-color: #ff0 !important; /* vaaleanpunainen/punainen korostus */
}


/* NESTED TABLES */
.custom-nested-table .sub-row {
    position: relative;
}

.custom-nested-table .sub-row::after {
    content: "";
    position: absolute;
    left: -26px; /* Adjust based on your layout */
    top: 0; /* Adjust based on your layout */
    width: 26px; /* Size of the quarter-circle */
    height: 20px; /* Size of the quarter-circle */
    background-color: transparent;
    border: 2px solid transparent; /* Ensures uniform border thickness */
    border-bottom: 2px solid #999; /* Visible bottom border */
    border-left: 2px solid #999; /* Visible left border */
    border-bottom-left-radius: 26px; /* Adjust to match width/height for full curve */
}

.custom-nested-table .sub-table {
    position: relative;
    padding-bottom: 10px
}

.custom-nested-table .sub-table::after {
    content: "";
    position: absolute;
    left: 14px;
    height: calc(100% - 30px);
    bottom: 38px;
    width: 2px;
    background-color: #999;
}

.custom-nested-table th.ant-table-cell {
    height: 10px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    font-size: 12px;
}

.ant-empty-description {
    display: none;
}

.custom-nested-table .sub-column-right {
    text-align: right !important;
}
.custom-nested-table .sub-table-level-0-padding {
    padding-right: 50px !important;
}
.custom-nested-table .sub-table-level-1-padding {
    padding-right: 30px !important;
}
.custom-nested-table .sub-table-level-2-padding {
    padding-right: 10px !important;
}
.custom-nested-table .sub-table-indent-last {
    padding-left: 40px !important;
}

.ant-table-title {
    background: #f4f4f4;
}

.ant-table-wrapper {
    margin-bottom: 20px;
    overflow: auto;
}

.ant-table-summary > tr > td {
    border-top: 1px solid #000;
    padding: 2px 8px !important;
    border-bottom: none !important;
}
.ant-table-summary > tr > td:first-child {
    color: #ccc;
}
.ant-table-summary > tr > td:not(:first-of-type){
    font-weight: bold
}

/*Limit modal height so that actions are always visible and just content scrolls*/
.modal-body {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    position: relative;
    max-height: calc(80vh);
}

/*SEARCH BAR*/
.searchBar {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    background: #f9f9f9;
    margin: 0 0 10px;
    display: flex;
    flex-direction: column;
}

.searchBarMainRow {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    padding: 0 0 5px;
    position: relative;

}
.searchBarRow {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 30px 10px 0;
    position: relative;

}

.searchBarRowTitle {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 10px;
    text-align: right;
    font-size: 12px;
    color: #ccc;
    border-bottom: 1px solid #ddd;
}

.visibleDataToggleBar {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 4px 4px 0;
    margin: 10px 0 0 20px;
}

.hourlyReportTable th:first-of-type,
.hourlyReportTable td:first-of-type{
    width: 80px !important;
    background: #fafafa;
    padding:0 !important;
    text-align: left !important;
    font-family: monospace;

}
.hourlyReportTable th{
    font-size: 1em !important;
    border-right: 0px transparent !important;
}
.hourlyReportTable th,
.hourlyReportTable td{
    font-size: 0.9em;
    padding:2px 1px !important;
    text-align: center !important;
    border-right: 0px solid #f0f0f0;
}

.hourlyReportTable td div{
    width: 100% !important;
}


/* HIGHLIGHT */
span.hl {
    background: orange !important;
}
/* CUSTOM COMBINED BUTTON */
.ant-select.combined .ant-select-selector {
    margin-left: 5px;
    min-width: 120px;
    border-radius: 6px 0 0 6px !important;
}
.ant-select.combinedMiddle .ant-select-selector {
    min-width: 120px;
    border-radius: 0 !important;
}
button.combinedButton {
    min-width: 100px;
    border-radius: 0 6px 6px 0 !important;
}

.adColumnSubtitle {
    color: #848484;
    position: absolute;
    font-size: 9px;
    bottom: -5px;
    line-height: 8px;
    height: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    left: 0;
    right:0;
    /*text-align: left;*/
}

.adTableWrapper {
    position: relative;
}
.adTableWrapper tbody td{
    vertical-align: top !important;
}

.adSelectColumnsToTable{
    position: absolute;
    top: -30px;
    right:0;
    border: 0px;
}
.adColumnSelectMenu {
    opacity: 0.9
}
.adColumnSelectMenu li{
    padding: 0!important;
}
.adColumnSelectMenu li > span div{
    padding: 4px 10px;
}


.adTableWrapper .dayName {
    display: inline-block;
    width: 30px !important;
}

.adTableWrapper .dayDate {
    display: inline-block;
    width: 40px !important;
}

/*HOTFIXES*/
header#header .pull-right > *{
    float: right;
}


.old-flow-layout-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    border: 1px solid #ddd;
    font-size: 1em;
    margin: 4px;
}

.old-flow-layout-table td {
    padding: 0;
    vertical-align: top;
    clear: both;
    padding: 2px 2px 1px;
    border: 1px solid;
    height: 80px;
}

.old-flow-layout-empty {
    width: 100%;
    font-size: 12px;
}

.old-flow-layout-button {
    width: 100%;
    font-size: 12px;
    height: 100%;
    text-align: center;
}

.placeholder-tendersales {
    height: 386px;
}

pre.json {
    outline: 1px solid #ccc;
    padding: 5px;
    margin: 5px;
}

pre.json .string {
    color: green;
}

pre.json .number {
    color: darkorange;
}

pre.json .boolean {
    color: blue;
}

pre.json .null {
    color: magenta;
}

pre.json .key {
    color: red;
}

.tablechartrow {
    height: 28px;
}

.tablechart {
    position: relative;
    background: rgba(248, 166, 58, 50); /* #F8A63A */
    overflow-x: visible;
    white-space: nowrap;
}

.tablechartbar {
    position: relative;
    white-space: nowrap;
}

.has_datepicker {
    z-index: 3;
}

.receiptText {
    font-family: "Courier New", Courier, monospace;
}

.dataTables_empty {
    display: none;
}

.colorpicker {
    z-index: 1100;
}

#receipt_table {
    height: 500px;
    overflow-y: auto;
}

/* receipt text editing */

.receipt_text {
    display: block;
    border: 1px solid #ddd;
    font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
    font-size: 16px;
    outline: 0;
    outline: thin dotted \9;
    /* IE6-9 */
    margin: 0;
    width: 100%;
    padding: 10px;
    border-top: 1px dashed #ddd;
    border-bottom: 1px dashed #ddd;
    border-radius: 0;
    box-shadow: none;
    background: #eeeeee;
    white-space: pre;
}

.receipt_text:focus {
    box-shadow: none;
    background: #fff;
}

.hourlysales {

}

.hourlysales .hour {
    width: 30px;
}

.hourlysales .day {
    width: 14%;
    text-align: center;
}

#hourlyheader div {
    display: inline;
}

.workData {
    width: 100%;
}

.workData span {
    display: inline-block;
}

.workData .day {
    padding-right: 20px;
}

.workData .fromTime {
    text-align: right;
}

.workData .toTime {
    padding-right: 20px;
}

.ui-multiselect {
    padding: 2px 0 2px 4px;
    text-align: left
}

.ui-multiselect span.ui-icon {
    float: right
}

.ui-multiselect-single .ui-multiselect-checkboxes input {
    left: -9999px;
    position: absolute !important;
    top: auto !important;
}

.ui-multiselect-single .ui-multiselect-checkboxes label {
    padding: 5px !important
}

.ui-multiselect-header {
    margin-bottom: 3px;
    padding: 3px 0 3px 4px;
}

.ui-multiselect-header ul {
    font-size: 0.9em
}

.ui-multiselect-header ul li {
    float: left;
    padding: 0 10px 0 0;
}

.ui-multiselect-header a {
    text-decoration: none;
}

.ui-multiselect-header a:hover {
    text-decoration: underline;
}

.ui-multiselect-header span.ui-icon {
    float: left;
}

.ui-multiselect-header .ui-multiselect-close {
    float: right;
    padding-right: 0;
    text-align: right;
}

.ui-multiselect-menu {
    display: none;
    padding: 3px;
    position: absolute;
    text-align: left;
    z-index: 3;
}

.ui-multiselect-checkboxes {
    overflow-y: auto;
    position: relative;
}

.ui-multiselect-checkboxes label {
    border: 1px solid transparent;
    cursor: default;
    display: block;
    padding: 3px 1px;
}

.ui-multiselect-checkboxes label input {
    position: relative;
    top: 1px
}

.ui-multiselect-checkboxes li {
    clear: both;
    font-size: 0.9em;
    list-style: none;
    padding-right: 3px;
}

.ui-multiselect-checkboxes .ui-multiselect-optgroup {
    padding: 3px;
}

.ui-multiselect-columns {
    display: inline-block;
    vertical-align: top;
}

.ui-multiselect-checkboxes .ui-multiselect-optgroup a {
    border-bottom: 1px solid;
    cursor: pointer;
    display: block;
    font-weight: bold;
    margin: 1px 0;
    padding: 3px;
    text-align: center;
    text-decoration: none;
}

@media print {
    .ui-multiselect-menu {
        display: none;
    }
}

.no-transition {
    -webkit-transition: none;
    transition: none;
}

.tablemarker {
    position: relative;
}

.tablemarker:after { /* Magic Happens Here!!! */
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    display: block;
    border-left: 6px solid transparent;
    border-bottom: 6px solid transparent;

    border-top: 6px solid #f00;
}

#receipttable td {
    padding-bottom: 2px;
}

.eventLog {
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    color: #0d0f12;
}

.eventLogDebug {
    color: #0d0f12;
}

.eventLogInfo {
    color: #0d0f12;
}

.eventLogWarn {
    color: #ffaa59;
}

.eventLogError {
    color: #c7254e;
}

.eventLogFatal {
    color: #ff0007
}

#pos {
    border: 1px solid black;
}

.gridster-item {
    /*border: 1px solid black;*/
}

.flow-layout-button {
    position: relative;
    overflow: hidden;
}

.gridster-handle {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 20px 0 0;
    border-color: #6d737a transparent transparent transparent;
    position: absolute;
}

.gridster-item div {
    text-align: center;
}

.timesheet_day_name {
    width: 25%;
}

.timesheet_day_hours {
    width: 25%;
}

.timesheet_day_duration {
    width: 25%;
}

.timesheet_day_clocked {
    width: 25%;
}

.editButtonDialog .col {
    padding-left: 0;
    padding-right: 0;
}

.editButtonDialog .row > .col {
    padding-left: 4px;
    padding-right: 4px;

}

.editButtonDialog .row {
    margin: 0;
    margin-bottom: 10px;
    background: #f5f5f5;
    padding:10px;
}

.editButtonDialog label,
.editButtonDialog label.label
{
    padding: 0;
    margin-bottom: 0;
}

.editButtonDialog .form-group {
    margin-bottom: 0;
}

/* pricetag */

.d-block {
    display: inline-block;
    margin-right: 2px;
}

.borderless-form-control {
    border: none;
    color: #3276b1;
    background: transparent;
}

.inline {
    display: inline;
}

.inline-block {
    display: inline-block;
}

.strikethrough {
    text-decoration: line-through;
}

/* Documentation markdown */

#markdown img {
    width: 60%;
    margin-left: 50px;
    padding: 5px;
    border: solid 2px #CCC;
    box-shadow: inset 2px 2px 1px rgba(0,0,0,.05);
}

#markdown img[alt="small"] {
    width: 25%;
    margin-left: 100px;
    padding: 5px;
    border: solid 2px #CCC;
    box-shadow: inset 2px 2px 1px rgba(0,0,0,.05);
}

#markdown img[alt="xs"] {
    width: 10%;
    margin-left: 100px;
    padding: 5px;
    border: solid 2px #CCC;
    box-shadow: inset 2px 2px 1px rgba(0,0,0,.05);
}

#markdown img[alt="full"] {
    width: 90%;
    margin-left: 20px;
    padding: 5px;
    border: solid 2px #CCC;
    box-shadow: inset 2px 2px 1px rgba(0,0,0,.05);
}

#markdown table {
    width: 75%;
    margin-left: 50px;
}

/* report2 */

.location-select {
    /*background: #fff;*/
    /*cursor: pointer;*/
    /*padding: 5px 10px;*/
    /*border: 1px solid #ccc;*/
    /*font-size: 13px;*/
    /*min-height: 18px !important;*/
    width: 100%;
}

.location-select .multiselect-parent {
    width: 100%;
}

.location-select .multiselect-parent div {
    width: 100%;
}

.location-select .multiselect-parent .btn {
    width: 100%;
}

.report-element {
    min-height: 500px;
    display: flex;
    flex-flow: column;
    margin: 0px;
}

.report-element header {
    flex: 0 1 auto;
}

.report-element section {
    flex: 1 1 auto;

}

.report-element-btns button {
    margin-right: 3px;
}

.report-element-btns div {
    margin-right: 3px;
}

.report-element.fullscreen {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    overflow-y: scroll;
    /*transition:all 0.5s ease-in-out;*/
}

.report-filter {
    display: inline;
}

.report-filter button {
    background: #fff;
    cursor: pointer;
    padding: 5px 10px;
    border: 1px solid #ccc;
    font-size: 12px;
    line-height: 1.5;
    min-height: 32px !important;
    height: 32px !important;
    margin: 0 0 0 0;
}

.report-loader {
    text-align: center;
    margin-top: 50px;
    font-size: 64px;
    color: #783409
}

.report-area {
    position: relative;
    /*min-height:  800px;*/
}

.report-full {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 10;
}

#company_menu {
}

@media (min-width: 650px) {
    #company_menu {
        columns: 2;
        width: 650px;
    }
}

.companymando_item {
    float: left;
    display: block;
    width: 100%;
}

.companymando_header {
    display: block;
    width: 100%;
    background-color: #ccc;
    color: #448;
    font-weight: bold;
}

.companymando_title {
    break-inside: avoid-column;
    -webkit-column-break-inside: avoid;
    display: block;
    color: #555;
    padding-top: 1px;
    padding-bottom: 1px;
    font-size: 12px;
}

.companymando_title span.label{
    margin-left: 5px;
    font-size: 8px;
}

.companymando_title span.inactive{
    text-decoration: black solid line-through;
}
.companymando_title:hover {
    background-color: #ccc;
    border-radius: 4px;
}

.companylist_item {
    break-inside: avoid-column;
    -webkit-column-break-inside: avoid;
    display: inline-block;
    width: 100%;
}

.companylist_name {
    font-size: 10px;
    color: #888;
}

.companylist_title {
    display: inline-block;
    width: 100%;
    font-size: 16px;
    padding-left: 10px;
    padding-top: 2px;
    padding-bottom: 10px;
    color:  #555;
}

.companylist_title:hover {
    background-color: #ccc;
    border-radius: 4px;
}

.table-row-selected {
    background: #adc376;
}

/* table map editor */

/* Moderni (4:3) + fallback */
#editableArea {
    position: relative;
    width: 100%;
}

/* Fallback to ratio */
#editableArea::before {
    content: "";
    display: block;
    padding-bottom: 56.25%; /* 16:9 */
}

/* Moderni tapa */
@supports (aspect-ratio: 1 / 1) {
    #editableArea {
        aspect-ratio: 16 / 9;   /* <-- 4:3 */
    }
    #editableArea::before {
        display: none;
    }
}

/* Sisäkanvas täyttää laatikon */
#editableArea > div {
    position: absolute;
    inset: 0;       /* top:0; right:0; bottom:0; left:0; */
    width: 100%;
    height: 100%;
}

.table-map-toolbar {
    display: flex;
    /*justify-content: space-between;*/
    justify-content: flex-start;
    padding: 10px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    border: 1px solid #000;
    border-bottom: 0;
}
.table-map-toolbar button:disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}
#editableArea > .item {
    background: gray;
    user-select: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}
#editableArea > .item.table {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    background-color: lightgray;
    border: 1px solid black;
    border-radius: 4px;
}
#editableArea > .item.element .itemId{
    display:none
}
#editableArea > .item .itemText{
    font-weight: normal;
}

.item.selected {
    z-index: 9;
}
.item.selected::before,
.item.selected::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(0,0,0,0.1);
    user-select: none;
    z-index: -1;
    pointer-events: none;
}

.item.selected::before {
    width: 1000vw;
    /* height: 2px; */
    top: -2px;
    left: -50vw;
    bottom: -2px;
}

.item.selected::after {
    height: 1000vh;
    top: -100vh;
    right: -2px;
    left: -2px;

}

.rotate-handle {
    position: absolute;
    bottom: -20px;
    left: 50%;
    width: 10px;
    height: 10px;
    background-color: blue;
    border-radius: 50%;
    cursor: pointer;
    transform: translateX(-50%);
}

.tablemapcontainer {
    width: 100%;
    background: repeating-linear-gradient(
            0deg,
            #DFDEDF,
            #DFDEDF 2px,
            #E7E6E7 2px,
            #E7E6E7 30px
    );
    padding-bottom: 56.25%;
}

#tablemapdiv {
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
}

.attachment-thumb {
    max-width: 90px;
    max-height: 90px;
    width: auto;
    height: auto;
}

.wr-weather {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}
.td-weather {
    margin: 0px;
}

.font-400 {
    font-size: 400% !important;
}

.timesheetrow {
    margin: 8px;
    background-color: #eaeaea;
}

.wagerow {
    display: block;
    width: 100%;
    margin: 1px 4px 4px 24px;
}

.wagerowinner:nth-child(even) {
    background-color: #e2e2e2;
}

.timesheettotal {
    margin-left: 22px;
}

.goals-calendar {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(7, minmax(120px, 1fr));
    grid-template-rows: 50px;
    grid-auto-rows: 120px;
    overflow: auto;
    border: 1px solid rgba(166, 168, 179, 0.12);
}

.calendar-container {
    width: 90%;
    overflow: hidden;
    max-width: 1200px;
}
.calendar-header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(166, 168, 179, 0.12);
}
.calendar-header h1 {
    margin: 0;
    font-size: 18px;
}
.calendar-header p {
    margin: 5px 0 0 0;
    font-size: 13px;
    font-weight: 600;
    color: rgba(33, 33, 33, 0.4);
}
.calendar-header button {
    background: 0;
    border: 0;
    padding: 0;
    color: rgba(81, 86, 93, 0.7);
    cursor: pointer;
    outline: 0;
}

.day {
    border-bottom: 1px solid rgba(166, 168, 179, 0.12);
    border-right: 1px solid rgba(166, 168, 179, 0.12);
    text-align: right;
    padding: 14px 20px;
    letter-spacing: 1px;
    font-size: 12px;
    box-sizing: border-box;
    color: #333;
    position: relative;
    pointer-events: none;
    z-index: 1;
}
.day:nth-of-type(7n + 7) {
    border-right: 0;
}
.day:nth-of-type(n + 1):nth-of-type(-n + 7) {
    grid-row: 2;
}
.day:nth-of-type(n + 8):nth-of-type(-n + 14) {
    grid-row: 3;
}
.day:nth-of-type(n + 15):nth-of-type(-n + 21) {
    grid-row: 4;
}
.day:nth-of-type(n + 22):nth-of-type(-n + 28) {
    grid-row: 5;
}
.day:nth-of-type(n + 29):nth-of-type(-n + 35) {
    grid-row: 6;
}
.day:nth-of-type(7n + 1) {
    grid-column: 1/1;
}
.day:nth-of-type(7n + 2) {
    grid-column: 2/2;
}
.day:nth-of-type(7n + 3) {
    grid-column: 3/3;
}
.day:nth-of-type(7n + 4) {
    grid-column: 4/4;
}
.day:nth-of-type(7n + 5) {
    grid-column: 5/5;
}
.day:nth-of-type(7n + 6) {
    grid-column: 6/6;
}
.day:nth-of-type(7n + 7) {
    grid-column: 7/7;
}
.day-name {
    font-size: 12px;
    text-transform: uppercase;
    color: #99a1a7;
    text-align: center;
    border-bottom: 1px solid rgba(166, 168, 179, 0.12);
    line-height: 50px;
    font-weight: 500;
}
.day--disabled {
    color: rgba(152, 160, 166, 0.6);
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f9f9fa' fill-opacity='1' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    cursor: not-allowed;
}

.goal {
    border: 0;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 10px;
    font-size: 14px;
    position: relative;
}

.goal--warning {
    grid-column: 3 / span 1;
    grid-row: 4;
    background: #fef0db;
    align-self: end;
    color: #fc9b10;
    margin-top: -5px;
    box-shadow: 0 10px 14px rgba(71, 134, 255, 0.4);
}
.goal--danger {
    grid-column: 2 / span 1;
    grid-row: 3;
    margin-top: 15px;
    background: rgba(253, 197, 208, 0.7);
    align-self: end;
    color: #f8254e;
    box-shadow: 0 10px 14px rgba(71, 134, 255, 0.4);
}
.goal--ok {
    grid-column: 6 / span 1;
    grid-row: 5;
    margin-top: 5px;
    background: rgba(218, 255, 231, 0.7);
    align-self: end;
    color: #0aaf2e;
    box-shadow: 0 10px 14px rgba(71, 134, 255, 0.4);
}
.goal--primary {
    background: #4786ff;
    grid-column: 3 / span 1;
    grid-row: 4;
    align-self: center;
    margin-top: -5px;
    color: #fff;
    box-shadow: 0 10px 14px rgba(71, 134, 255, 0.4);
}
.goal--unset {
    margin-top: -5px;
    background: rgba(248, 248, 248, 0.7);
    align-self: center;
    color: #3a3a3a;
    box-shadow: 0 10px 14px rgba(71, 134, 255, 0.4);
}

.receipt-display {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1em;
    width: 100%;
    white-space: pre    ;
}

.receipt-bold {
    font-weight: bold;
}

.receipt-double {
    font-size: 2em;
}

.panel-heading {
    padding: 2px 15px;
    display: flex;
    align-items: baseline;
    justify-content: left;
}

.panel-heading i {
    margin-right: 8px;
    font-size: 16px;
}

.panel-heading .title {
    padding-top: 6px;
}

.panel-heading .panel-toolbar {
    margin-left: auto;
    display: inline-block;
    /* float: right; */
    width: auto;
    /*height: 36px;*/
    /*line-height: 36px;*/
    position: relative;
    border-left: 2px solid rgba(0,0,0,0.09);
    cursor: pointer;
    margin-top: 0px;
    padding-right: 0px;
    padding-left: 8px;
    text-align: center;
    /*flex-wrap: wrap;*/
    /*justify-self: right;*/
    /*align-self: stretch;*/
}

.panel-heading-sm2 {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    padding-right: 0px;
    padding-left: 13px;
    padding-top: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    border-top-right-radius: 1px;
    border-top-left-radius: 1px;
}

.panel-heading-sm2 .panel-toolbar {
    display: inline-block;
    float: right;
    width: auto;
    height: 36px;
    line-height: 36px;
    position: relative;
    border-left: 2px solid rgba(0,0,0,0.09);
    cursor: pointer;
    margin-top: -10px;
    padding-right: 8px;
    padding-left: 8px;
    text-align: center;
}

.panel-heading-tabs .panel-toolbar {
    display: inline-block;
    float: right;
    width: auto;
    height: 36px;
    line-height: 36px;
    position: relative;
    border-left: 2px solid rgba(0,0,0,0.09);
    cursor: pointer;
    margin-top: 0px;
    padding-right: 8px;
    padding-left: 8px;
    text-align: center;
}

/*.panel-toolbar button {*/
/*    margin-top: -3px;*/
/*}*/

.flowpos-toolbar .toolbar-label {
    display: inline;
    padding-top: 5px;
}

.panel-heading-tabs {
    color: #346597;
    background-color: #d6dde7;
    border-color: #9cb4c5;
    padding: 0px;
    border-bottom: 1px solid transparent;
    border-top-right-radius: 1px;
    border-top-left-radius: 1px;
    height: 39px;
}

.panel-body {
    background-color: rgb(250,250,250);
}

.panel-body-grey {
    background-color: rgb(250,250,250);
}

.panel-heading-sm {
    margin-left: -13px;
    margin-top: 0px;
    margin-right: -13px;
    padding-right: 0px;
    padding-left: 13px;
    padding-top: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    border-top-right-radius: 1px;
    border-top-left-radius: 1px;
}

.panel-heading-sm h6 {
    display: inline-block;
    margin-left: 12px;
    margin-top: 3px;
}

.panel-default .panel-heading-sm {
    color: #333;
    background-color: #f5f5f5;
    border-color: #ddd;
}

.panel-info .panel-heading-sm2 {
    color: #346597;
    background-color: #d6dde7;
    border-color: #9cb4c5;
}

/* search */

.header-search .search-popup-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    background-color: #f9f9f9;
}

.header-search .search-popup-wrapper > .message {
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
    color: #868686;
}

.header-search .search-popup-wrapper > .dropdown-menu {
    position: static;
    float: none;
    display: block;
    min-width: 160px;
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* table editor */

.table-edit {
    display: flex;
    flex-direction: row;
}

.table-edit-top {
    display: flex;
    justify-content: center;
}

.table-edit-top a {
    margin-left: 2px;
    margin-right: 2px;
}

.table-edit-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.table-edit-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#tablediagramholder {
    display: flex;
    justify-content: center;
}

.table-edit-bottom {
    display: flex;
    justify-content: center;
}

.table-edit-bottom a {
    margin-left: 2px;
    margin-right: 2px;
}

.receipt-line-editor input {
    font-family: monospace;
    font-size: 14px;
    border: none;
    background-color: white;
    width: 320px;
    line-height: 30px;
}

.receipt-line-editor input.center {
    text-align: center;
}
.receipt-line-editor input.right {
    text-align: right;
}
.receipt-line-editor input.bold {
    font-weight: bold;
}
.receipt-line-editor input.dw {
    -webkit-transform: scaleX(2);
    -moz-transform: scaleX(2);
}
.receipt-line-editor input.dh {
    -webkit-transform: scaleX(2) scaleY(2);
    -moz-transform: scaleX(2) scaleY(2);
}

/* tabulator fixes */
.tabulator-menu {
    max-height: 300px !important;
}

.tabulator-row-even.tabulator-row-editing,
.tabulator-row-odd.tabulator-row-editing {
    background: #9cb4c5 !important;
}
.tabulator-row-even {
    background: #f3f4f5 !important;
}
.tabulator-row-odd {
    background: #fff !important;
}
.tabulator-editing {
    box-shadow: 0 0 2px 2px #9cb4c5 inset;
    background: #fff !important;
}
.tabulator-row.tabulator-selectable:not(.tabulator-row-editing):hover {
    background-color: #e5e8ec !important;
}

.tabulator-header-filter input {
    border: 1px solid #babfc7;
    border-radius: 3px;
    font: 400 13.3333px Arial;
    background-color: #f8f8f8;
}

.buttonbg {
    display: inline-block;
    width: 100%;
    height: 100%;
    /*!*margin: 0px 0px 4px 4px;*! // Center the button in grid by removing the margin*/
}


.selectOneItemFromList{
    height: 34px;
}

.optgroup .selected {
    font-weight: bold !important;
}
.optgroup .optgroup-header {
    opacity: .6 !important;
    padding: 0;
}
.optgroup .option {
    padding-left: 15px !important;
}

.gridster-item {
    user-select: none
}
.gridster-item:hover .move-handle,
.gridster-item:hover .remove-button,
.gridster-item:hover .duplicate-button {
    opacity: 1;
}
/* Hide the native size handle*/
.gridster .gridster-item:hover .handle-se {
    border-color: transparent;
}
.remove-button {
    transition: .6s;
    opacity: 0;
    position: absolute;
    right:2px;
    top:2px;
    height: 30px;
    border-radius: 8px;
    border: 0;
    width: 30px;
    color: red;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: none !important;
}
.remove-button:hover {
    background-color: red;
    color: black;
}
.duplicate-button {
    transition: .6s;
    opacity: 0;
    position: absolute;
    right:2px;
    bottom:2px;
    height: 30px;
    border-radius: 8px;
    border: 0;
    width: 30px;
    color: black;
    background-color: lightskyblue;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: none !important;
}
.duplicate-button:hover {
    background-color: blue;
    color: white;
}
.open-button-dialog {
    position: absolute;
    left:2px;
    bottom:2px;
    right:2px;
    top:2px;
}
.move-handle {
    transition: .3s;
    opacity: 0;
    position: absolute;
    left:2px;
    top:60%;
    width: 40px;
    bottom:2px;
    border-radius: 8px;
    border: 0;
    color: #3276b1;
    height: initial;
    background: #3276b138;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: none !important;
    z-index: 5;
    cursor: move; /* fallback if grab cursor is unsupported */
    cursor: grab;
}
.move-handle:active {
    cursor: grabbing;
}

/* external product search */
.external-product-result {
    height: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
}

.external-img-holder {
    margin-right: 10px;
    width: 60px;
    height: 60px;
    object-fit: cover;
    vertical-align: top;
}

.external-data {
    flex-grow: 1;
    margin-left: 70px;
    vertical-align: top;
}

.external-product-name {
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    text-overflow: ellipsis;
}

.external-product-vendor {
    font-size: 12px;
    display: block;
}

.external-product-price {
    font-size: 24px;
    float: right;
}

.external-product-multiplier {
    font-size: 10px;
    float: right;
}

.external-product-result.selected {
    background-color: #0e90d2;
}

.datatable2 {
    width: 100%;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

label.checkbox-row {
    position: relative;
    display: block;
    margin-top: 0px;
}

label.checkbox-row input {
    position: absolute;
    margin-left: 0px;
}

.ts-control {
    display: inline-block;
    width: 100%;
}

.stock-plu-input input {
    padding-right: 90px !important;
}

.stock-plu-price input {
    padding-right: 47px !important;
}

/* plutable */

@keyframes fadeToWhite {
    from {background-color:rgba(255, 247, 247, 1);}
    to {background-color:rgba(255, 255, 255, 0);}
}

.changelog dd {
    margin-left: 170px !important;
}

/* user page */
.label-not-inline {
    padding: .2em .6em .3em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
}

ul.purchase-item-list li {
    display: inline;
}

.purchase-item-list li:not(:last-child):after {
    content: " |";
}

.margin-5 {
    margin: 5px;
}

.statistic svg {
    width: 100%;
    height: 50px;
    padding: 0px 15px 8px 15px;
    display: block;
}

.statistic .statlabel {
    position: absolute;
    right: 10px;
    bottom: 2px;
    font-weight: bold;
}

.statistic .growth {
    position: absolute;
    left: 8px;
    bottom: 2px;
    font-size: large;
    font-weight: bold;
}

.statistic .range {
    position: absolute;
    right: 10px;
    top: 2px;
    font-size: small;
}

.customerdisplay-container {
    overflow-x: scroll;
}

.customerdisplay-img {
    display: inline-block;
}

.customerdisplay-drop {
    padding: 5px;
    border: 1px solid black;
    min-height: 150px;
}

.inventory-date {
    background-color: #dfffdf;
}

.company-state {
    vertical-align: top;
    margin-top: 12px;
    display: inline-block;
}

.company-state span {
    padding: 8px;
    font-size: 14px;
}

/* external editing */

.external-title {
    font-size: 22px;
    font-weight: bold;
}

.external-voucher-line {
    padding: 5px;
}

.voucher-line {

}

.voucher-line span {
    font-size: 10px;
    font-weight: bold;
}

.voucher-line .type-select-description {
    display: block !important;
    width: 100% !important;
}

.voucher-line .type-select {
    display: inline-block;
    width: 15%;
    vertical-align: top;
}

.voucher-line .type-select-sign {
    width: 10%;
}

.voucherline-actions {
    display: inline-block;
}

.report-selection-container {
    display: block;
    margin-bottom: 5px;
    vertical-align: top;
}

.report-selection-item {
    display: inline-block;
    /*height: 48px;*/
    vertical-align: top;
}

.report-selection-title {
    display: block;
    font-weight: bold;
    font-size: 10px;
    text-transform: uppercase;
    padding-bottom: 2px;
    padding-left: 4px;
}

.report2-cell-number {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
}

.report2-cell-amount {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
}

.input-group-addon a {
    width: 100%;
    height: 100%;
}

.company-search {
    margin-left: 4px;
    margin-right: 4px;
    margin-bottom: 4px;
}

.outer-search {
    display: inline-block;
    width: 80%;
}

.search-show-all {
    display: inline-block;
    vertical-align: top;
    margin-top: 3px;
}

.search-show-all span{
    display: inline-block;
    margin-left: 4px;
    font-size: 14px;
    vertical-align: top;
    padding-top: 5px;
}

.company-show-all {
    width: 20px;
    height: 20px;
}

/*.company-search .form-control {*/
/*    font-size: smaller;*/
/*    height: 24px;*/
/*}*/

.nowrap {
    white-space: nowrap;
}

.invoice-amount {
    font-size: x-large;
    font-weight: bold;
    color: lightblue;
    text-align: right;
}

.invoice-status-panel .panel-title {
    background-color: lightskyblue;
    color: #fff;
}

/* company list */
.company-info {
    margin: 5px;
    padding: 5px;
    border: #faa 3px solid;
}
.company-info .location-info {
    margin: 5px;
    padding: 5px;
    border: #afa 2px solid;
}

.company-info .pos-info {
    width: 25%;
    display: inline-block;
    margin-top: 30px;
    border: #aaf 1px solid;
    border-radius: 4px;
    background-color: #e6e6ff;
}
.company-info .fa-stack {
    position: relative;
    float: left;
    top: -25px;
    left: 5px;
}
.company-info .pos-info .info-name {
    position: relative;
    font-weight: bold;
    color: #222;
    font-size: 1.2em;
    margin-left: 4px;
}

.company-icon {
    width: 2em;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.table-accountmap {
    height: 500px;
    overflow-y: scroll;
}

form.ng-invalid {
    color: red;
}

.bday-slider {
    background-color: transparent;
    border: 2px #aba9a8 solid;
    border-radius: 4px;
    position: relative;
    margin: 4px 0 16px 0;
    height: 10px;
    width: 100%;
}

.bday-slider-bar {
    background: linear-gradient(to left, #ff7676, #ff0007);
    border-radius: 2px;
    color: #0d0f12;
    display: block;
    height: 100%;
    /*margin-top: -5px;*/
    /*margin-bottom: -5px;*/
    position: absolute;
}

/*.ant-table table { font-size: 14px; }*/

.new-checkbox span {
    position: relative;
    margin-left: 20px;
    margin-top: -10px;
}

#previewdata .receipt-image {
    width: 100%;
}
#previewdata .receipt-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
}

.display-block {
    display: block;
}
.td-wrap {
    max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
