﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

.page {
    /* This is a wrapper to eat the scrolling, so that SF dialogs will always be 0 based */
    /* NOTE: This would've worked perfectly, but the fixed headers overlap the scroll bar. So instead will do this when the screen is too small*/
    
    height: 100vh;
    overflow-y: auto;
    z-index: 10002;
    
}

.arrivos-body-container {
    margin-top: 20px;
    height: unset; /* Will be set to a viewport height when screen is large enough */
    overflow-y: auto;
}
    .arrivos-body-container:has(.arrivos-page-header) {
        margin-top: 0px; /* This must be the combined height of the Arrivos Page Header and Arrivos top navbar*/
    }

.arrivos-body-container .container-fluid {
    --bs-gutter-x: 0px;
    --bs-gutter-y: 40px;
}

.arrivos-logo {
    width: 100%;
    padding: 10px;
}

/*
.card {
    margin-bottom: 10px;
}*/

.arrivos-page-header {
    height: auto;
    background-color: white;
    z-index: 1000;
    transition: margin-left 300ms;
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 20px;
}

    .arrivos-page-header.sidebar-collapsed {
        margin-left: 0px;
        transition: margin-left 300ms;
    }

@media (min-width: 1138px) {

    .arrivos-body-container .container-fluid {
        --bs-gutter-x: 40px;
        --bs-gutter-y: 40px;
    }

    .arrivos-body-container {
        padding-top: 20px;
        margin-top: 0px;
        height: calc(100vh - 50px);
    }
        .arrivos-body-container:has(.arrivos-page-header) {
            margin-top: 120px; /* This must be the combined height of the Arrivos Page Header and Arrivos top navbar*/
            height: calc(100vh - 120px);
        }

    .arrivos-page-header {
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        margin-left: 280px;
        margin-bottom: 0px;
        height: 70px;
        overflow-y: auto;
    }

    .page {
        height: 100%;
    }
}

.row {
    --bs-gutter-x: 20px;
    --bs-gutter-y: 20px;

    margin-bottom: 20px;
}

.arrivos-form-container .row,
.arrivos-page-header .row,
.arrivos-body-container .arrivos-page-header .container-fluid {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    margin-bottom: 0px;
    padding-top: 0px;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.arrivos-top-navbar-page-title {
    display:flex;
    align-items: center;
    vertical-align: middle;
    padding-left: 20px;
}

.arrivos-top-navbar-page-title h3 {
    margin-bottom: 0;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODM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NGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

body {
    position: absolute;
    top: 0;
    background-color: #f3f3f4;
    height: 100%;
    width: 100%;
}

.card-body {
    overflow: auto;
}

.card-body:has(.e-dialog.e-lib.e-filter-popup.e-popup.e-control.e-popup-open) {        
        overflow: visible;
    }

.e-spinner-pane.e-spin-overlay.e-spin-show {
    position: fixed;
}

.arrivos-top-navbar {
    margin-left: 280px;
    background-color: white; /*rgb(254, 254, 254);*/
    z-index: 1000;
    transition: margin-left 300ms;
}

    .arrivos-top-navbar.sidebar-collapsed {
        margin-left: 0px;
        transition: margin-left 300ms;
    }

.arrivos-application-title {
    color: white;
}

.arrivos-body-container {
    transition: margin-left 300ms;
}

    .arrivos-body-container.sidebar-collapsed {
        margin-left: 0px;
        transition: margin-left 300ms;
    }

/* Normal View*/
@media (min-width: 1138px) {

    .arrivos-top-navbar {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        height: 50px;
    }
    .arrivos-body-container {
        margin-left: 280px; /* This is the width of the sidebar*/
        margin-top: 50px; /* This must be the combined height of the Arrivos Page Header and Arrivos top navbar*/
    }
}

/* Sidebar items */
.arrivos-sidebar {
    width: 280px;
    height: 100vh;
    overflow-y: auto;
    background-color: rgb(33, 37, 41);
    color: white;
    transition: left 300ms;
}

    .arrivos-sidebar.sidebar-collapsed {
        left: -280px;
        transition: left 300ms;
    }

.arrivos-environment-banner {
    background-color: red;
    font-size: 1.2em;
    text-align: center;
}

.arrivos-sidebar-link {
    color: white;
    padding-left: 29px;
}

    .arrivos-sidebar-link:hover {
        color: white;
        box-shadow: 0 0 0 0.25rem rgb(13 110 253 / 25%);
    }

    .arrivos-sidebar-link[disabled] {
        cursor: default;
        color: gray;
    }
        .arrivos-sidebar-link[disabled]:hover {
            cursor: default;
            color: gray;
            box-shadow: none;
        }

.arrivos-sidebar-parent-item {
    display: inline-flex;
    align-items: center;
    padding: .25rem .5rem;
    width: 100%;
    color: white;
    padding-top: 7px;
    padding-bottom: 7px;
}

    .arrivos-sidebar-parent-item:hover,
    .arrivos-sidebar-parent-item:focus {
        box-shadow: 0 0 0 0.25rem rgb(13 110 253 / 25%);
        color: white;
    }

    .arrivos-sidebar-parent-item::before {
        width: 1.25em;
        line-height: 0;
        content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%28255,255,255,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
        transition: transform .35s ease;
        transform-origin: .5em 50%;
    }

    .arrivos-sidebar-parent-item[aria-expanded="true"]::before {
        transform: rotate(90deg);
    }

    .arrivos-sidebar-parent-item.btn-check:checked, .arrivos-sidebar-parent-item.btn.active, .arrivos-sidebar-parent-item.btn.show, .arrivos-sidebar-parent-item.btn:first-child:active {
        border: unset;
    }

.arrivos-sidebar-child-container {
    padding-left: 1em;
}

/* Arrivos Control */
.arrivos-control-collapse-link {
    display: inline-flex;
    align-items: center;
}

    .arrivos-control-collapse-link::before {
        width: 1.25em;
        line-height: 0;
        content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
        transition: transform .35s ease;
        transform: rotate(90deg);
    }

    .arrivos-control-collapse-link.collapsed::before {
        transform: rotate(270deg);
    }

    .arrivos-filter-header[aria-expanded="false"] .arrivos-control-collapse-link::before,
    .arrivos-control-collapse-link[aria-expanded="false"]::before {
        transform: rotate(270deg);
    }
    


/* Arrivos Loading Control */

div.arrivos-loading.gray {
    background-color: #D3D3D3;
    opacity: .5;
    position: absolute;
    z-index: 50000;
    top: 0px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

    div.arrivos-loading.gray.viewport-center {
        position: fixed;
    }

div.arrivos-loading-image {
    z-index: 50001;
}

    div.arrivos-loading-image.viewport-center {
        position: fixed;
    }

/********** Workflow ***********/

.workflow-event-button-container {
    background-color: rgb(33, 37, 41);
    padding: 7px;
    margin-top: auto;
    margin-left: calc(var(--bs-gutter-x) * -1);
    transition: padding-right 300ms;
    overflow-x: auto;
}


/* Normal width*/
@media (min-width: 1138px) {
    .workflow-event-button-container {
        /* For Fixed Header */
        margin-top: 0px;
        margin-left: calc(var(--bs-gutter-x) * -.5);
        padding-right: 285px;
        max-height: 100px;
        width: 100%;
        z-index: 500;
        overflow-x: auto;
        overflow-y: visible;
        position: fixed;
        top: 120px;
    }

    .arrivos-body-container:has(.workflow-event-button-container) {
        margin-top: 180px; /* This must be the combined height of the Arrivos Page Header and Arrivos top navbar*/
        height: calc(100vh - 180px);
    }

    .sidebar-collapsed .workflow-event-button-container {
        padding-right: 7px;
        transition: padding-right 300ms;
    }
}


.workflow-event-button {
    text-align: center;
    border: 1pt solid;
    height: 40px;
    width: auto;
    margin-right: 10px;
    border-radius: 7px;
    align-items: center;
    display: flex;
    background-color: white;
    color: black;
    font-weight: bold;
}

    .workflow-event-button.right {
        float: right;
    }

    .workflow-event-button:hover {
        color: white;
        cursor: pointer;
        background-color: #6c757d;
    }

.workflow-header {
    padding-left: 5px;
    padding-right: 5px;
    font-size: 10pt;
}

    .workflow-header.right {
        text-align: right;
    }

.workflow-validation {
    border-radius: 10px;
    border: 2px solid;
    padding-top: 5px;
    padding-left: 15px;
    color: black;
    margin: 6px;
    font-family: inherit;
}
    .workflow-validation li {
        white-space: pre-wrap;
    }

    .workflow-validation.errors {
        border-color: red;
        background-color: lightcoral;
    }

    .workflow-validation.warnings {
        border-color: orange;
        background-color: lightgoldenrodyellow;
    }

    .workflow-validation.information {
        border-color: darkblue;
        background-color: lightblue;
    }

/********** End Workflow ***********/

/************* Dark Mode (Possible Theming solution) ***********/

.arrivos-toggle-dark-mode-link {
    color: black;
}
body.dark-mode .arrivos-toggle-dark-mode-link {
    color: white;
}

body.dark-mode {
    background-color: black;
    color: white;
}

body.dark-mode .arrivos-page-header {
    background-color: rgb(18, 18, 18);
}

body.dark-mode .arrivos-top-navbar {
    background-color: black;
}

body.dark-mode .card{
    background-color: rgb(50,50,50);
}

    body.dark-mode .card-header {
        background-color: rgb(50,50,50);
        border-bottom-color: gray;
    }

body.dark-mode .table {
    color: white;
    border-color: gray;
}

    body.dark-mode .e-grid .e-rowcell:not(.e-editedbatchcell):not(.e-updatedtd),
    body.dark-mode .e-grid .e-detailrowcollapse:not(.e-editedbatchcell):not(.e-updatedtd),
    body.dark-mode .e-grid .e-detailrowexpand:not(.e-editedbatchcell):not(.e-updatedtd),
    body.dark-mode .e-grid .e-gridcontent .e-rowdragdrop:not(.e-editedbatchcell):not(.e-updatedtd),
    body.dark-mode .e-grid .e-gridheader .e-rowdragdrop:not(.e-editedbatchcell):not(.e-updatedtd),
    body.dark-mode .e-grid .e-emptyrow:not(.e-editedbatchcell):not(.e-updatedtd) {
        color: white;
    }

    body.dark-mode .e-grid .e-row {
        background-color: rgb(50,50,50);
    }

    body.dark-mode .e-grid.e-gridhover .e-row tr:not(.e-disable-gridhover):not(.e-editedrow):not(.e-detailrow):hover .e-rowcell:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell),
    body.dark-mode .e-grid.e-gridhover .e-row:not(.e-disable-gridhover):not(.e-editedrow):not(.e-detailrow):hover .e-rowcell:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell),
    body.dark-mode .e-grid.e-gridhover .e-row:not(.e-disable-gridhover):not(.e-detailrow):hover .e-detailrowcollapse:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell),
    body.dark-mode .e-grid.e-gridhover .e-row:not(.e-disable-gridhover):not(.e-detailrow):hover .e-rowdragdrop:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell),
    body.dark-mode .e-grid.e-rtl .e-gridhover .e-row:not(.e-disable-gridhover):not(.e-detailrow):hover .e-rowdragdrop:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell),
    body.dark-mode .e-grid.e-gridhover .e-row:not(.e-disable-gridhover):not(.e-detailrow):hover .e-detailrowexpand:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell) {
        background-color: rgb(60,60,60);
        color: white;
    }

    body.dark-mode .e-grid td.e-active {
        background-color: rgb(90,90,90);
        color: white;
    }

    body.dark-mode .e-grid .e-altrow {
        background-color: black;
    }

    body.dark-mode .modal-content {
        background-color: rgb(50,50,50);
    }

    body.dark-mode .arrivos-control-collapse-link::before {
        filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(71deg) brightness(105%) contrast(103%);
    }

    body.dark-mode .e-rule-list,
    body.dark-mode .e-rule-field,
    body.dark-mode .e-grid .e-headercell,
    body.dark-mode .e-grid .e-detailheadercell,
    body.dark-mode .e-pager,
    body.dark-mode .e-grid .e-table,
    body.dark-mode .e-dialog,
    body.dark-mode .e-dlg-content,
    body.dark-mode .e-dlg-header,
    body.dark-mode .e-grid th.e-headercell[aria-sort=ascending] .e-headertext,
    body.dark-mode .e-grid th.e-headercell[aria-sort=descending] .e-headertext,
    body.dark-mode .e-grid th.e-headercell[aria-sort=ascending] .e-sortfilterdiv,
    body.dark-mode .e-grid th.e-headercell[aria-sort=descending] .e-sortfilterdiv {
        background-color: rgb(50,50,50);
        color: white;
    }

    body.dark-mode .e-grid .e-icons:not(.e-btn-icon):not(.e-icon-next):not(.e-icon-prev):not(.e-icon-next):not(.e-icon-first):not(.e-icon-last),
    body.dark-mode .e-grid .e-gridheader .e-icons:not(.e-icon-hide):not(.e-check):not(.e-stop):not(.e-icon-reorderuparrow):not(.e-icon-reorderdownarrow),
    body.dark-mode {
        color: white;
    }

    body.dark-mode .e-grid .e-detailindentcell,
    body.dark-mode .arrivos-nested-row-container {
        background-color: rgb(90,90,90) !important;
    }

/************* End Dark Mode (Possible Theming solution) ***********/

/******* Bit of a hack for Document Word Editor **********/

.e-de-viewercontainer {
    height: 100% !important;
    width: 100% !important;
}


.arrivos-help-section-container {
    width: 100%;
    background-color: lightblue;
    border: 1pt solid gray;
    border-radius: 3px;
    margin-bottom: 5px;
    padding: 10px;
}

@keyframes wait {
    0% {
    }

    100% {
    }
}

@keyframes slideInFromTop {
    0% {
        transform: translateY(-100%);
        opacity: 0%;
    }

    100% {
        transform: translateY(0);
        opacity: 100%;
    }
}

.arrivos-banner-message {
    /* Name, duration, timing, delay, iteration, direction */
    animation: slideInFromTop 1s ease-out 0s 1;
    position: absolute;
    width: 100vw;
    height: 100px;
    top: 0;
    padding: 20px;
    z-index: 50000000000000000000;
    background-color: white;
    text-align: center;
    border-bottom: 3pt groove lightgray;
}

/********** Application Message Maintenance *********/

.application-message-add-edit-container {
    width: 97vw;
}

/********** End Application Message Maintenance *********/

/********** Application Messages Inbox **********/

.inbox.row {
    --bs-gutter-x: 0px;
    --bs-gutter-y: 0px;
}

.inbox-item-column {
    border-bottom: 1pt solid gray;
    border-left: 1pt solid gray;
    height: calc(100vh - 150px);
    width: 100%;
    overflow-y: auto;
    background-color: rgb(242, 242, 242);
}

.inbox-body-column {
    border: 1px solid gray;
    height: calc(100vh - 150px);
    background-color: white;
}

.inbox-message-subject {
}

.inbox-message-date {
    font-size: .9em;
}

.inbox-body-column-header {
    height: 34px;
}

.inbox-header {
    width: 100%;
    display: flex;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
    background-color: white;
    border-bottom: 2pt groove gray;
}

.inbox-item-header-tabs {
}

    .inbox-item-header-tabs .e-tab-header {
        height: 35px !important;
    }
    
        .inbox-item-header-tabs .e-tab-header:before {
            border-bottom: 1pt solid gray !important;
        }

    .inbox-item-header-tabs .e-tab-text {
        color: black;
    }

    .inbox-item-header-tabs .e-toolbar-item {
        height: 35px !important;
    }

    .inbox-item-header-tabs .e-tab-wrap {
        border: 1pt groove gray !important;
        height: 35px !important;
        background-color: white;
        border-bottom-left-radius: 0px !important;
        border-bottom-right-radius: 0px !important;
    }

    .inbox-item-header-tabs .e-toolbar-item.e-active .e-tab-wrap {
        border-bottom: none !important;
    }
    .inbox-item-header-tabs .e-toolbar-item.e-active .e-tab-text {
        font-weight: bold !important;
        color: black !important;
    }

.inbox-item {
    width: 100%;
    height: 80px;
    padding: 15px;
    border-bottom: 2pt groove gray;
    cursor: pointer;
    background-color: white;
}

    .inbox-item.unread {
        font-weight: bold;
    }

    .inbox-item.selected {
        background-color: lightgray;
    }

.inbox-message-preview {
    max-height: 10px;
    
    text-overflow: ellipsis;
}

.inbox-message-body {
    width: 100%;
    height: calc(100vh - 230px);
    padding: 20px;
    background-color: white;
    overflow-y: auto;
}

.inbox-no-message-selected {
    text-align: center;
    font-weight: bold;
    width: 100%
}

.inbox-no-messages {
    font-weight: bold;
    text-align: center;
    width: 100%
}

/********** End Application Messages Inbox **********/