@import '~@angular/material/theming';
@import '~@swimlane/ngx-datatable/release/index.css';
@import '~@swimlane/ngx-datatable/release/themes/material.css';
@import '~@swimlane/ngx-datatable/release/assets/icons.css';
// Plus imports for other components in your app.
// Include theme styles for core and each component used in your app.
// Alternatively, you can import and @include the theme mixins for each component
// that you are using.
//Custom teme po našim komponentama
@mixin custom-theme($theme) {
    .mat-select-value-text {
        color: black;
    }
    .mat-select-placeholder {
        width: 100%;
    }
    .mat-input-element:disabled {
        color: black !important;
    }
    .mat-input-placeholder {
        color: #666666;
    }
    .mat-input-element {
        color: black !important;
        font-size: 15px !important;
    }
    textarea.mat-autosize {
        resize: none;
        min-height: 17px !important;
    }
    .mat-select-disabled {
        color: #666666;
    }
    .mat-select-value {
        color: black; // font-size: 15px !important;
    }
    .mat-select-arrow {
        color: #666666;
    }
    .mat-select-trigger {
        color: #666666;
    }
    .mat-dialog-title {
        margin: 0px 0 0px !important;
        display: block;
    }
    .mat-menu-panel {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        min-width: 120px !important;
        max-width: none !important;
    }
    .mat-dialog-actions {
        padding: 12px 0;
        display: flex;
        flex-wrap: wrap;
        margin-bottom: -17px !important;
    }
    .mat-input-underline {
        background-color: rgba(177, 177, 177, 0.5);
    }
    .mat-toolbar-row {
        justify-content: space-between;
    }
    .mat-row {
        min-height: 26px !important;
    }
    .mat-cell,
    .mat-header-cell {
        flex: none !important;
    }
    .mat-header-row {
        min-height: 26px !important;
        background: #546e7a !important;
        color: #eeeeee !important;
    }
    .mat-header-cell {
        color: #eeeeee !important;
    }
    .mat-header-cell {
        font-size: 15px !important;
    }
    .mat-calendar-body-selected {
        background-color: #A9A9A9;
    }
    .mat-toolbar {
        display: flex;
        height: 54px !important;
        min-height: 48px !important;
        max-height: 56px !important;
    }
    .mat-mini-fab .mat-button-wrapper {
        padding: 4px 0 !important;
        display: inline-block;
        line-height: 24px;
    }
    .mat-dialog-container {
        overflow: hidden !important;
        border-radius: 5px !important;
        padding-top: 5px !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
        padding-bottom: 10px !important;
        // -webkit-user-drag: element;
    }
    .mat-dialog-content {
        margin-left: 0px !important;
        margin-right: 0px !important;
        padding: 0 24px;
        max-height: 87vh !important;
        overflow: auto;
    }
    .cdk-overlay-pane {
        position: absolute;
        pointer-events: auto;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        z-index: 1000;
        max-width: 95vw !important;
    } // .mat-select-trigger {
    //     height: 28px !important;
    //     font-size: 14px !important;
    // }
    .mat-select {
        padding-top: 0px !important;
        min-width: 150px !important;
    } // .mat-select-underline {
    //     position: absolute;
    //     bottom: 2px !important;
    //     left: 0;
    //     right: 0;
    //     height: 1px;
    //     background-color: rgba(177, 177, 177, 0.5);
    // }
    .mat-mini-fab:not([class*=mat-elevation-z]) {
        box-shadow: none !important;
    }
    .mat-form-field-subscript-wrapper {
        font-size: 75%;
        margin-top: 2px !important;
        top: calc(100% - 1.66666667em);
    }
    .mat-form-field-infix {
        padding: 4px 0px !important;
        border-top: 0.84375em solid transparent;
    }
    .mat-ink-bar {
        background-color: #546e7a !important;
    }
    .mat-menu-content {
        padding-top: 0px !important;
        padding-bottom: 4px !important;
    }
    .mat-list-item-content {
        height: 45px !important;
    }
    .mat-menu-item .mat-icon,
    .mat-menu-item-submenu-trigger::after {
        color: #546e7a;
    }
    .mat-subheading-2 {
        margin: 0px !important;
    }
    .mat-tab-nav-bar,
    .mat-tab-header {
        border-bottom: 0px solid rgba(0, 0, 0, 0.12) !important;
    }
    .mat-tab-label {
        background: transparent !important;
    }
    .mat-tab-label-active {
        background: transparent !important;
    }
}

// Include the common styles for Angular Material. We include this here so that you only
// have to load a single css file for Angular Material in your app.
// Be sure that you only ever include this mixin once!
@include mat-core();
// Define the palettes for your theme using the Material Design palettes available in palette.scss
// (imported above). For each palette, you can optionally specify a default, lighter, and darker
// hue.
$hbor-primary: mat-palette($mat-blue-grey);
$hbor-accent: mat-palette($mat-blue-grey, 600);
$hbor-warn: mat-palette($mat-red);
$mat-light-theme-background: ( status-bar: map_get($mat-grey, 300), app-bar: map_get($mat-grey, 100), background: map_get($mat-grey, 200), hover: rgba(black, 0.04), card: map_get($mat-grey, 200), dialog: map_get($mat-grey, 200), disabled-button: $black-12-opacity, raised-button: white, focused-button: $black-6-opacity, selected-button: map_get($mat-grey, 300), selected-disabled-button: map_get($mat-grey, 400), disabled-button-toggle: map_get($mat-grey, 200), unselected-chip: map_get($mat-grey, 300), disabled-list-option: map_get($mat-grey, 200), );
// Create the theme object (a Sass map containing all of the palettes).
$hbor-theme: mat-light-theme($hbor-primary, $hbor-accent, $hbor-warn);
@include angular-material-theme($hbor-theme);
@include custom-theme($hbor-theme);
.hbor-red-theme {
    // Define an alternate theme.
    $hbor-red-primary: mat-palette($mat-blue-grey);
    $hbor-red-accent: mat-palette($mat-red, A200, A100, A400);
    $hbor-red-warn: mat-palette($mat-deep-orange);
    $hbor-red-theme: mat-light-theme($hbor-red-primary, $hbor-red-accent, $hbor-red-warn);
    @include angular-material-theme($hbor-red-theme);
    @include custom-theme($hbor-red-theme);
}

.hbor-blue-theme {
    $hbor-blue-primary: mat-palette($mat-blue-grey);
    $hbor-blue-accent: mat-palette($mat-blue, A200, A100, A400);
    $hbor-blue-warn: mat-palette($mat-deep-orange);
    $hbor-blue-theme: mat-light-theme($hbor-blue-primary, $hbor-blue-accent, $hbor-blue-warn);
    @include angular-material-theme($hbor-blue-theme);
    @include custom-theme($hbor-blue-theme);
}

.hbor-green-theme {
    $hbor-green-primary: mat-palette($mat-blue-grey);
    $hbor-green-accent: mat-palette($mat-green, 700);
    $hbor-green-warn: mat-palette($mat-deep-orange);
    $hbor-green-theme: mat-light-theme($hbor-green-primary, $hbor-green-accent, $hbor-green-warn);
    @include angular-material-theme($hbor-green-theme);
    @include custom-theme($hbor-green-theme);
}

//Typography config
// Line-height must be unit-less fraction of the font-size.
//  $font-family:   'Roboto, "Helvetica Neue", sans-serif',
$custom-typography: mat-typography-config( $font-family: 'Roboto, "Helvetica Neue", sans-serif', $display-4: mat-typography-level(112px, 112px, 300), $display-3: mat-typography-level(56px, 56px, 400), $display-2: mat-typography-level(45px, 48px, 400), $display-1: mat-typography-level(34px, 40px, 400), $headline: mat-typography-level(22px, 28px, 400), $title: mat-typography-level(18px, 26px, 500), $subheading-2: mat-typography-level(14px, 28px, 400), $subheading-1: mat-typography-level(12px, 18px, 400), $body-2: mat-typography-level(14px, 24px, 500), $body-1: mat-typography-level(14px, 20px, 400), $caption: mat-typography-level(12px, 20px, 400), $button: mat-typography-level(14px, 14px, 500), $input: mat-typography-level(14px, 1.125, 400));
// Override typography CSS classes (e.g., mat-h1, mat-display-1, mat-typography, etc.).
@include mat-base-typography($custom-typography);
// Override typography for a specific Angular Material components.
// @include mat-checkbox-typography($custom-typography);
// @include mat-select-typography($custom-typography);
// Override typography for all Angular Material, including mat-base-typography and all components.
@include angular-material-typography($custom-typography);
/*****Data Table*****/

.cell-align-right {
    display: table-cell;
    width: 100%;
    vertical-align: middle;
    text-align: right;
    padding-right: 3px;
}

.cell-align-left {
    display: table-cell;
    width: 100%;
    vertical-align: middle;
    text-align: left;
    padding-left: 3px;
}

.cell-align-center {
    display: table-cell;
    width: 100%;
    vertical-align: middle;
    text-align: center;
}

.ngx-datatable.material {
    background: #eeeeee;
}

.ngx-datatable.material.striped .datatable-row-odd {
    background: rgb(255, 255, 255);
}

.datatable-body-cell-label {
    text-align: center;
    display: block;
    -webkit-box-pack: center;
    -webkit-box-align: center;
}

.datatable-checkbox {
    position: relative;
    margin: 0;
    cursor: pointer;
    display: table-cell;
    vertical-align: middle;
    align-items: center;
    display: inline-block;
    box-sizing: border-box;
    padding: 1px 3px;
}

.ngx-datatable.material .empty-row {
    height: 30px;
    text-align: left;
    padding: 2px 4px;
    vertical-align: top;
    border-top: 0;
}

.ngx-datatable.material .datatable-header .datatable-header-cell {
    text-align: center;
    font-weight: 400;
    color: #757575;
}

.datatable-header-cell.datatable-header-cell.sortable.resizeable {
    text-align: center;
    padding: 3px;
    font-weight: 400;
    color: #666666;
    display: table-cell;
    vertical-align: middle;
    /* margin-right: 5px  */
}

.ngx-datatable.material .datatable-body .datatable-body-row .datatable-body-cell {
    text-align: center;
    padding: 0px;
    font-weight: 400;
    color: #666666;
    display: table-cell;
    vertical-align: middle;
}

.ngx-datatable.fixed-row .datatable-scroll .datatable-body-row .datatable-body-cell {
    text-align: left;
    padding: 0px;
    display: table-cell;
    vertical-align: middle;
    border-top: 0;
    /* margin-right: 5px;  */
    transition: width 0.3s ease;
}

.datatable-body-cell {
    border-left: solid 0px;
    border-right: solid rgba(89, 103, 113, 0.3) 1px;
    border-top: solid rgba(89, 103, 113, 0.3) 1px;
    border-bottom: solid rgba(89, 103, 113, 0.3) 1px;
    /*width:100px; height:50px*/
}

.datatable-body-cell:first-child {
    border-left: solid rgba(89, 103, 113, 0.3) 1px;
    border-right: solid rgba(89, 103, 113, 0.3) 1px;
    border-top: solid rgba(89, 103, 113, 0.3) 1px;
    border-bottom: solid rgba(89, 103, 113, 0.3) 1px;
}

.datatable-body-cell:last-child {
    border-left: solid 0px;
    border-right: solid rgba(89, 103, 113, 0.3) 1px;
    border-top: solid rgba(89, 103, 113, 0.3) 1px;
    border-bottom: solid rgba(89, 103, 113, 0.3) 1px;
}

.ngx-datatable.material:not(.cell-selection) .datatable-body-row:hover .datatable-row-group {
    background-color: #90afc5;
    /*#90AFC5*/
    transition-property: background;
    transition-duration: .3s;
    transition-timing-function: linear;
    cursor: pointer;
}

.ngx-datatable.material.single-selection .datatable-body-row.active {
    background-color: aliceblue !important;
    color: #ffffff !important;
}

.ngx-datatable.material.single-selection .datatable-body-row.active .datatable-row-group {
    background-color: #90afc5;
    /*#90AFC5*/
    transition-property: background;
    transition-duration: .3s;
    transition-timing-function: linear;
}

.ngx-datatable.material.single-selection .datatable-body-row.active:hover {
    background-color: #90afc5;
    /*#90AFC5*/
    transition-property: background;
    transition-duration: .3s;
    transition-timing-function: linear;
    cursor: pointer;
}

.datatable-body-row.active:hover .datatable-row-group {
    background-color: #90afc5;
    /*#90AFC5*/
    transition-property: background;
    transition-duration: .3s;
    transition-timing-function: linear;
}

.ngx-datatable.material.single-selection .datatable-body-row.active:hover {
    background-color: #90afc5;
    /*#90AFC5*/
    transition-property: background;
    transition-duration: .3s;
    transition-timing-function: linear;
}

.ngx-datatable.material.single-selection .datatable-body-row.active:hover {
    background-color: #90afc5;
    /*#90AFC5*/
    transition-property: background;
    transition-duration: .3s;
    transition-timing-function: linear;
}

.ngx-datatable.material.single-selection .datatable-body-row.active:hover .datatable-row-group {
    background-color: #739ebc;
    /*#90AFC5*/
    transition-property: background;
    transition-duration: .3s;
    transition-timing-function: linear
}

.ngx-datatable.material .datatable-body .datatable-body-row .datatable-body-cell {
    font-size: 16px;
    display: block !important;
    -webkit-box-pack: center;
    -webkit-box-align: center;
}

.ngx-datatable.material .datatable-header {
    border-bottom: 0px solid rgba(0, 0, 0, 0.12) !important; // height: auto;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    display: table-cell;
    vertical-align: middle;
    background: #546e7a;
}

.ngx-datatable.material .datatable-header .datatable-header-cell {
    color: rgba(255, 255, 255, 0.87);
    font-size: 14px;
    font-weight: 500;
    line-height: 14px;
    display: -webkit-box;
    -webkit-box-pack: center;
    -webkit-box-align: center;
}

.ngx-datatable .datatable-body .datatable-row-detail {
    overflow-y: auto !important;
}

.ngx-datatable.material .datatable-body .datatable-row-detail {
    background: #f5f5f5;
    padding: 0px !important;
}

.ngx-datatable.material {
    box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);
}

// Droparea custom
.drop-zone {
    margin: auto;
    height: 100px;
    border: 2px dotted #546e7a !important;
    border-radius: 30px;
    .content {
        width: 98% !important;
    }
}

//Custom errors na selektovima
.error-small-text {
    position: relative;
    top: -5px;
    font-size: 12px;
}

.offset-select {
    margin-top: 24px !important;
}

.offset-icon-select {
    margin-top: 35px !important;
}

.offset-submenu-select {
    margin-top: 8px !important;
}

/**********************/