﻿.k-grid .k-state-selected {
    background: #9b4b5a;
    color: white;
}

.k-item .k-state-selected .k-state-focused {
    background: #9b4b5a;
}

.modal-content {
    margin: 0 auto;
}

.k-grid {
    overflow: scroll;
    height: auto;
    width: 100%;
}

.k-grid-top {
    background-color: #9b4b5a !important;
}

.modal-footer {
    margin: 0 auto !important;
}

.buttons {
    float: right;
    margin-right: 4em;
}

    .buttons button {
        background-color: #9b4b5a !important;
    }

.headerContent > div {
    min-height: 60px !important;
    /*background-color:#fff59d !important;*/
}

    .headerContent > div > div:first-child {
        padding-bottom: 10px !important;
    }

.k-radio-label:before {
    width: 13px !important;
    height: 13px !important;
}

textarea[class="k-textbox"] {
    padding: 5px !important;
}

.k-button {
    background-color: #9b4b5a !important;
    color: white !important;
}

.textarearow {
    min-height: 50px !important;
}

input[data-role="datetimepicker"] {
    height: 2em !important;
}

textarea {
    padding: inherit !important;
}

input[data-role="datepicker"] {
    height: 2em !important;
}

span.k-datepicker {
    background-color: white !important;
}

.k-radio-label:before {
    border-color: #c4c4c4;
    border-radius: 50%;
    background-color: #ffffff;
    border-width: 1px;
    box-sizing: unset;
    -webkit-box-sizing: unset;
}

.modal-header {
    padding: 15px !important;
    height: 45px;
}

    .modal-header > .close {
        opacity: 1;
        float: right;
        width: 20px;
        font-size: 20px;
        height: 20px;
        line-height: 20px;
        background-color: #7e3d4a;
        justify-content: center;
        align-items: center;
        border-radius: 100%;
        text-align: center;
        color: white;
        display: inline-block;
        color: #fff;
        font-weight: 700;
        text-shadow: 0 0px 0 #fff;
        margin-top: 0px !important;
    }

    .modal-header > .btn-close {
        opacity: 1;
        float: right;
        width: 20px;
        font-size: 20px;
        height: 20px;
        line-height: 20px;
        background-color: #7e3d4a;
        justify-content: center;
        align-items: center;
        border-radius: 100%;
        text-align: center;
        color: white;
        display: inline-block;
        color: #fff;
        font-weight: 700;
        text-shadow: 0 0px 0 #fff;
        margin-top: 0px !important;
        background: url("../Content/Assets/images/close.svg") !important;
        width: 5px !important;
        height: 5px !important;
    }

    .modal-header > h3 {
        font-size: 17px !important;
        font-weight: 600 !important;
        color: #fff !important;
        letter-spacing: -0.8px;
        word-spacing: 0.8px;
        text-decoration: none;
        /*font-style: italic;*/
        font-variant: small-caps;
        text-transform: capitalize;
    }

    .modal-header > .close:hover {
    }

.tab-header {
    font-weight: 700 !important;
    text-align: center;
    color: #e18062;
    background-color: white;
    border-radius: 50%;
    padding: 0 9px;
}

.modal {
    position: fixed !important;
    top: 0px !important;
}

.checkbox {
    padding-left: 0px !important;
}

.modal-header {
    background-color: #9b4b5a;
}

.modal-body {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.grid-header a {
    color: #ffffff;
}


input[type="checkbox"] {
    background: #9b4b5a !important;
    background-color: #9b4b5a !important;
}

.grid-header a:hover {
    color: #9b4b5a;
}

.gridtoolbar {
    float: right;
    background-color: #9b4b5a;
    color: white;
    font-weight: bold;
}

tr.k-footer-template td {
    background-color: #9b4b5a;
}

.k-grid tbody tr {
    height: 10px;
}

tr.k-group-footer td {
    background-color: #9b4b5a;
}

strong {
    color: black;
}

.received-grid {
    background-color: #ffe44d;
    color: black;
    font-weight: bold;
}

.completed-grid {
    background-color: #959595;
    color: black;
    font-weight: bold;
}

.unread-grid {
    font-weight: bold;
}

.locked-grid {
    background-color: #e18062;
    color: black;
    font-weight: bold;
}

.modal-dialog {
    max-height: 85%;
    margin-top: 50px;
    margin-bottom: 50px;
    max-width: 90%;
}

.default-row {
    color: black;
    background-color: white;
}

.grid-service {
    background-color: #8bcbfa;
    color: black;
}

.ui-tabs-anchor label {
    margin-bottom: 0;
    margin-left: 5px;
}

/*  CUSTOM MEDIA  */
@media (min-width: 768px) {
    .modal-dialog {
        min-width: 600px;
        margin: 30px auto;
    }
}

@media screen and (min-height:550px) and (max-height:768px) {
    body {
        zoom: 0.85 !important;
    }
}

@media screen and (min-height:907px) and (max-height:1050px) {
    body {
        zoom: 0.91 !important;
    }
}

@media screen and (min-height:937px) and (max-height:1050px) {
    body {
        zoom: 0 !important;
    }
}

@media screen and (min-height:757px) and (max-height:900px) {
    body {
        zoom: 0.81 !important;
    }
}

@media screen and (min-resolution: 120dpi) {
    body {
        zoom: 0.8;
    }
}

@media screen and (min-resolution: 140dpi) {
    body {
        zoom: 0.65;
    }
}

.no-padding {
    padding: 2px;
}

.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
    letter-spacing: 0px;
    word-spacing: 0.8px;
    color: #000000;
    font-weight: 500 !important;
    text-decoration: none;
    font-variant: small-caps;
    text-transform: capitalize;
    color: #3e3e3e;
}

.ui-tabs-anchor {
    font-weight: 700 !important;
}

.cursorSpan {
    cursor: pointer;
}

#formatPage .disabled-text-box {
    background-color: #f2f2f2 !important;
    color: #666 !important;
}

#formatPage .format-tip {
    position: relative;
    left: 20px;
}

#formatPage .format-name-info {
    display: contents;
}

#formatPage .format-tip-txt {
    position: fixed;
    display: block;
    background: #333;
    padding: 10px;
    font-size: 12px;
    border-radius: 3px;
    color: #fff;
    transition: .5s ease-in-out;
    box-sizing: border-box;
    text-align: left;
    display: none;
    z-index: 1070;
}

#formatPage .fa {
    font-size: 16px;
    transition: .5s ease-in-out;
}

#formatPage .format-name-info:hover .format-tip-txt {
    display: block;
}

.ouriban::placeholder,
.counteriban::placeholder {
    color: #999;
    opacity: 0.7;
}
.modal-footer .row {
    width: 100%;
    margin: 0;
    display: flex;
}

.modal-footer .col-sm-3 {
    flex: 0 0 auto;
    width: auto;
    padding: 0 5px;
    display: flex;
}

.modal-footer .btn {
    padding: 6px 12px;
    font-size: 10px;
    font-weight: bold !important;
    line-height: 1.42857143;
    border-radius: 4px;
    min-width: 100px;
    width: auto !important;
    margin: 1%;
}

.badge {
    display: inline-block;
    min-width: 10px;
    padding: 3px 7px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    background-color: #999 !important;
    border-radius: 10px
}

.panel-footer {
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-top: 1px solid #dddddd;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
}

.panel-heading {
    padding: 10px 15px;
    border-bottom: 1px solid transparent;
    border-top-right-radius: 3px;
    border-top-left-radius: 3px;
}

.panel-default > .panel-heading {
    color: #333333;
    background-color: #f5f5f5;
    border-color: #dddddd;
    background-image: -webkit-gradient(linear, left 0%, left 100%, from(#f5f5f5), to(#e8e8e8));
    background-image: -webkit-linear-gradient(top, #f5f5f5, 0%, #e8e8e8, 100%);
    background-image: -moz-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
    background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);
}

.btn-add-status {
    background: #f5f5f5;
    border: 1px solid #d0d0d0;
    color: #444;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all .2s ease;
    margin-left: 5px;
    height: 32px;
    width: 32px;
    display: inline-grid;
    align-items: center;
    justify-content: center;
}

    .btn-add-status:hover {
        background: #e0e0e0;
        border-color: #b5b5b5;
        color: #000;
        box-shadow: 0px 0px 4px rgba(0,0,0,0.15);
    }

    .btn-add-status:active {
        background: #d6d6d6;
        transform: scale(0.96);
    }

.btn-delete-status {
    background: #f5f5f5;
    border: 1px solid #d0d0d0;
    color: #444;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all .2s ease;
    margin-left: 5px;
    height: 32px;
    width: 32px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    display: inline-grid;
    align-items: center;
    justify-content: center;
}

    .btn-delete-status:hover {
        background: #e0e0e0;
        border-color: #b5b5b5;
        box-shadow: 0px 0px 4px rgba(0,0,0,0.15);
    }

    .btn-delete-status:active {
        background: #d6d6d6;
        transform: scale(0.96);
    }

.sweet-alert.violation-action-swal {
    width: min(560px, calc(100vw - 30px));
    max-width: calc(100vw - 30px);
    max-height: calc(100vh - 40px);
    box-sizing: border-box;
    padding: 16px 18px 20px;
    overflow: hidden;
}

.sweet-alert.violation-action-swal p {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.violation-action-swal-content {
    max-height: min(50vh, 360px);
    overflow-y: auto;
    overflow-x: hidden;
    text-align: center;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.45;
    padding: 4px 2px;
    box-sizing: border-box;
}

.violation-action-summary {
    margin-bottom: 4px;
    color: #575757;
    text-align: center;
}

.violation-action-failure-group {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #ececec;
    text-align: center;
}

.violation-action-failure-single {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.violation-action-failure-single .violation-action-failure-reason {
    font-weight: 400;
}

.violation-action-failure-reason {
    font-weight: 600;
    color: #575757;
    margin-bottom: 8px;
    text-align: center;
}

.violation-action-failure-ids {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.violation-action-failure-id {
    display: inline-block;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 3px 8px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.3;
    color: #333;
    user-select: all;
}

@media (max-width: 540px) {
    .sweet-alert.violation-action-swal {
        width: auto;
        left: 15px;
        right: 15px;
        margin-left: 0;
        max-height: calc(100vh - 24px);
    }

    .violation-action-swal-content {
        max-height: min(55vh, 280px);
        font-size: 14px;
    }

    .violation-action-failure-id {
        font-size: 11px;
        padding: 2px 6px;
    }
}
