/**************** Control Buttons ****************/

.arrivos-control-button {
    background-color: transparent;
    color: rgb(116, 150, 175);
    border: white;
    padding-left: 3px;
    padding-right: 3px;
    padding-top: 1px;
    padding-bottom: 1px;
    font-weight: bold;
    font-size: 1.3em;
}

    .arrivos-control-button:hover {
        background-color: transparent;
        color: rgb(58, 75, 87);
    }

.arrivos-active-view-button {
    color: rgb(13, 110, 253) !important;
}

    .arrivos-active-view-button:hover {
        color: rgb(10, 88, 202) !important;
    }

.collapse-expand-all-container {
    position:relative;
    height: 0;
    width: 0;
}

.collapse-all-button, .expand-all-button {
    position: absolute;
    left: 2px;
    top: 13px;
    z-index: 500;
}

/* Used as the Add icon, this makes it green */
.arrivos-data-create-button {
    color: rgb(43,170,122);
    font-size: 26px;
}

    .arrivos-data-create-button:hover {
        color: rgb(21,85,61);
    }

.e-grid .fa-book {
    font-size: 20.8px
}

.hide-pager > .e-grid > .sf-pager {
    display: none;
}

/* HACK: Fix for collapse/expand on a defaultCollapsed grid control */
.e-detail-intent {
    width: 30px !important;
}

.e-row.e-nodetail .e-detailrowcollapse {
    pointer-events: none;
}

    .e-row.e-nodetail .e-detailrowcollapse .e-dtdiagonalright {
        display: none;
    }

.e-row.e-children-have-changes .e-detailrowcollapse .e-dtdiagonalright,
.e-row.e-children-have-changes .e-dtdiagonaldown {
    color: darkorange;
    font-weight: bold;
}

/* Used as the delete icon, this makes it red */
.arrivos-data-delete-button {
    color: rgb(230,123,59);
    font-size: 33px;
    padding-top: 0px;
    padding-bottom: 0px;    
}
    .arrivos-data-delete-button:hover {
        color: rgb(115,62,30);
    }

/* The Edit icon, the same green as add*/
.arrivos-data-edit-button {
    color: rgb(43,170,122);
}
    .arrivos-data-edit-button:hover {
        color: rgb(21,85,61);
    }

/* This is being used as a "Move" icon, same green as above*/
.fa-random {
    color: rgb(43,170,122);
}

/* This is the journaling icon, this color is a gray-ish purple*/
.fa-book {
    padding-top: 2px;
    color: rgb(116, 150, 175);
}

/* This is being used as a details icon, this is a very light blue*/
.fa-info-circle {
    color: #0fadf9;
}

.arrivos-excel-export-button {
    /* Same color as journaling*/
    /*color: rgb(116, 150, 175);*/
    /* color from duotone example on font-awesome*/
    /*    color: rgb(30, 48, 80);
    opacity: .8;*/
    /* Excel color */
    color: rgb(33,115,70);
}
    .arrivos-excel-export-button:hover {
        /* Same color as journaling*/
        /*color: rgb(116, 150, 175);*/
        /* color from duotone example on font-awesome*/
        /*    color: rgb(30, 48, 80);
        opacity: .8;*/
        /* Excel color */
        color: rgb(17,58,35);
    }


.arrivos-pdf-export-button {
}

    .arrivos-pdf-export-button:hover {
    }


.arrivos-control-card-header .arrivos-control-button {
    margin-top: 3px;
}

/* A labelled toggle button that sits alongside icon-only arrivos-control-buttons.
   Relies on Syncfusion's e-btn classes for coloration/border; this class only handles layout.
   margin-top matches .arrivos-control-card-header .arrivos-control-button so they sit on the same baseline. */
.arrivos-toggle-label-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    vertical-align: middle;
    padding-top: 1px;
    padding-bottom: 1px;
}

    .arrivos-toggle-label-button .arrivos-toggle-label-button-icon {
        font-size: 1.1em;
    }


.arrivos-help-button {
    color: rgb(68, 139, 197);
    font-size: 24px;
}
    .arrivos-help-button:hover {
        color: rgb(34, 70, 98);
        font-size: 24px;
    }


/* Syncfusion Overrides */
.e-grid.e-responsive .e-rowcell,
.e-grid.e-responsive .e-headercelldiv,
.e-grid .e-rowcell {
/*    text-overflow: unset;
    overflow-wrap: normal;
    white-space: normal;*/
}

.e-grid .e-headercelldiv {
   /* height: auto;*/
}

.form-control-container > .e-grid > .e-gridheader {
    display: none;
}

.form-control-container > .e-grid > .e-gridcontent > .e-content > .e-table > tbody > .e-altrow {
    background-color: transparent;
}

.e-grid .e-altrow {
    background-color: rgb(242,242,242);
}

.e-grid tr {
    border-bottom: 1px solid rgb(222,226,230);
    border-top: 1px solid rgb(222,226,230);
}

.e-grid td.e-rowcell {
    border-right: 1px solid rgb(222,226,230);
    padding-top: 2px;
    padding-bottom: 2px;
    height: 28px;
}

.e-grid td.e-detailrowcollapse {
    border-right: 1px solid rgb(222,226,230);
}

.e-grid .e-detailheadercell,
.e-grid.e-default .e-detailheadercell {
    border-right: 1px solid rgb(222,226,230);
}

.e-grid .e-headercell,
.e-grid.e-default .e-headercell {
    border-right: 1px solid rgb(222,226,230);
}

.e-grid .e-headercelldiv {
    overflow-x: auto;
}

.e-grid.e-responsive .e-rowcell,
.e-grid.e-responsive .e-headercelldiv,
.e-grid .e-rowcell {
    overflow-wrap: normal;
}
.e-grid .e-headercelldiv .e-headertext {
    overflow-wrap: normal;
}

.e-edit-dialog .e-gridform .e-table {
    border-spacing: unset;
}

.arrivos-cell-height-limiter {
    max-height: 200px;
    overflow-y: auto;
    position: relative;
}

    .arrivos-cell-height-limiter pre {
        white-space: pre-wrap;
    }

/* Expand button — injected by JS, only visible when cell content overflows */
.arrivos-cell-expand-wrapper {
    position: relative;
}

.arrivos-cell-expand-btn {
    position: sticky;
    bottom: 0;
    display: block;
    width: 100%;
    padding: 2px 0;
    margin-top: 2px;
    font-size: 0.7rem;
    text-align: center;
    color: rgb(255, 255, 255);
    background: linear-gradient(to bottom, rgba(92,99,106,0) 0%, rgba(92,99,106,0.9) 40%);
    border: none;
    cursor: pointer;
    letter-spacing: 0.02em;
    font-weight: bold;
}

.arrivos-cell-expand-btn:hover {
    background: linear-gradient(to bottom, rgba(92,99,106,0) 0%, rgba(58,63,68,0.95) 40%);
}

/* Lightweight modal for cell content expansion */
.arrivos-cell-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2100;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrivos-cell-modal {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
    min-width: 300px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.arrivos-cell-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #dee2e6;
    font-weight: 500;
    font-size: 0.95rem;
}

.arrivos-cell-modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
    padding: 0 4px;
}

.arrivos-cell-modal-close:hover {
    color: #212529;
}

.arrivos-cell-modal-body {
    white-space: pre-wrap;
    padding: 16px;
    overflow-y: auto;
    flex: 1 1 auto;
}

.arrivos-cell-modal-body pre {
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    font-size: 0.85rem;
}

/* Resize handles injected by JS onto all 8 edges/corners of the modal */
.arrivos-cell-modal-resize {
    position: absolute;
    z-index: 10;
}

.arrivos-cell-modal-resize-n  { top: 0;    left: 6px;  right: 6px;  height: 5px; cursor: n-resize; }
.arrivos-cell-modal-resize-s  { bottom: 0; left: 6px;  right: 6px;  height: 5px; cursor: s-resize; }
.arrivos-cell-modal-resize-e  { right: 0;  top: 6px;   bottom: 6px; width: 5px;  cursor: e-resize; }
.arrivos-cell-modal-resize-w  { left: 0;   top: 6px;   bottom: 6px; width: 5px;  cursor: w-resize; }
.arrivos-cell-modal-resize-ne { top: 0;    right: 0;   width: 10px; height: 10px; cursor: ne-resize; }
.arrivos-cell-modal-resize-nw { top: 0;    left: 0;    width: 10px; height: 10px; cursor: nw-resize; }
.arrivos-cell-modal-resize-se { bottom: 0; right: 0;   width: 10px; height: 10px; cursor: se-resize; }
.arrivos-cell-modal-resize-sw { bottom: 0; left: 0;    width: 10px; height: 10px; cursor: sw-resize; }

.form-control-container > .e-grid {
    border: none;
}

.form-field-row {
    padding-top: 5px;
    padding-bottom: 5px;
}

.arrivos-control-label {
    font-size: 12px;
    font-weight: bold;
}

.highlighted-for-edit {
    border: 3pt solid blue;
}

.arrivos-help-section-container.highlighted-for-edit {
    min-height:50px;
    min-width: 10px;
}

.arrivos-help-button.e-btn.e-round {
    background: transparent;
    border: transparent;
    height: auto;
    width: auto;
    height: 2em;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 5px;
    margin-right: 5px;
}

    .arrivos-help-button.e-btn.e-round .e-btn-icon {
        font-size: 2em;
        line-height: 1.1em;
    }

.arrivos-top-navbar .nav.nav-pills li {
    margin-top: auto;
    margin-bottom: auto;
    padding-left: 1rem;
}

pre {
    font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    font-size: 14px;
    margin-bottom: 0;
}

button.e-control.e-btn.e-lib {
    margin-left: 2px;
    margin-right: 2px;
}

.change-manager-control-deleted {
    color: darkorange;
    text-decoration: line-through;
    font-weight: bold;
}

    .change-manager-control-deleted rect.basic {
        fill: #fff3e0;
        stroke: darkorange;
        font-weight: normal !important;
    }

    .change-manager-control-deleted .nodeLabel {
        color: darkorange !important;
        text-decoration: line-through;
        font-weight: normal !important;
    }

    .change-manager-control-deleted span.edgeLabel,
    .change-manager-control-deleted span.edgeLabel p {
        color: darkorange !important;
        text-decoration: line-through;
        font-weight: normal !important;
    }

.change-manager-control-added {
    color: darkorange;
    font-weight: bold;
}
    .change-manager-control-added a {
        color: darkorange;
        font-weight: bold;
        text-decoration: underline;
    }

    .change-manager-control-added rect.basic {
        fill: #e8f5e9;
        font-weight: normal !important;
    }

    .change-manager-control-added .nodeLabel p {
        font-weight: normal !important;
    }

    .change-manager-control-added .nodeLabel {
        color: darkorange !important;
        font-weight: normal !important;
    }

    .change-manager-control-added span.edgeLabel,
    .change-manager-control-added span.edgeLabel p {
        color: darkorange !important;
        font-weight: normal !important;
    }

.change-manager-control-updated {
    color: darkorange;
    font-weight: bold;
}
    .change-manager-control-updated:empty:before {
        color: darkorange;
        font-weight: bold;
        /*text-decoration: line-through;*/
        content: "[deleted]";
    }

    .change-manager-control-updated a {
        color: darkorange;
        font-weight: bold;
        text-decoration: underline;
    }

    .change-manager-control-updated rect.basic {
        fill: #fff8e1;
        stroke: darkorange;
    }

    .change-manager-control-updated .nodeLabel p {
        font-weight: normal !important;
    }

    .change-manager-control-updated .nodeLabel {
        font-weight: normal !important;
        color: darkorange !important;
    }

    .change-manager-control-updated span.edgeLabel,
    .change-manager-control-updated span.edgeLabel p {
        font-weight: normal !important;
        color: darkorange !important;
    }

/* Rich text editor disable differences for Headers */
.e-rte-content p {
    margin: 0 0 10px;
    margin-bottom: 10px;
}

.e-rte-content li {
    margin-bottom: 10px;
}

.e-rte-content h1 {
    font-size: 2.17em;
    font-weight: 400;
    line-height: 1;
    margin: 10px 0;
}

.e-rte-content h2 {
    font-size: 1.74em;
    font-weight: 400;
    margin: 10px 0;
}

.e-rte-content h3 {
    font-size: 1.31em;
    font-weight: 400;
    margin: 10px 0;
}

.e-rte-content h4 {
    font-size: 1em;
    font-weight: 400;
    margin: 0;
}

.e-rte-content h5 {
    font-size: 00.8em;
    font-weight: 400;
    margin: 0;
}

.e-rte-content h6 {
    font-size: 00.65em;
    font-weight: 400;
    margin: 0;
}

.e-rte-content blockquote {
    margin: 10px 0;
    margin-left: 0;
    padding-left: 5px;
}

.e-rte-content pre {
    background-color: inherit;
    border: 0;
    border-radius: 0;
    color: #333;
    font-size: inherit;
    line-height: inherit;
    margin: 0 0 10px;
    overflow: visible;
    padding: 0;
    white-space: pre-wrap;
    word-break: inherit;
    word-wrap: break-word;
}

.e-rte-content strong, .e-rte-content b {
    font-weight: 700;
}

.e-rte-content a {
    text-decoration: none;
    -webkit-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

    .e-rte-content a:hover {
        text-decoration: underline;
    }

.e-rte-content h3 + h4,
.e-rte-content h4 + h5,
.e-rte-content h5 + h6 {
    margin-top: 00.6em;
}

.e-rte-content .e-rte-image.e-imgbreak {
    border: 0;
    cursor: pointer;
    display: block;
    float: none;
    margin: 5px auto;
    max-width: 100%;
    position: relative;
}

.e-rte-content .e-rte-image {
    border: 0;
    cursor: pointer;
    display: block;
    float: none;
    margin: auto;
    max-width: 100%;
    position: relative;
}

    .e-rte-content .e-rte-image.e-imginline {
        display: inline-block;
        float: none;
        margin-left: 5px;
        margin-right: 5px;
        max-width: calc(100% - (2 * 5px));
        vertical-align: bottom;
    }

    .e-rte-content .e-rte-image.e-imgcenter {
        cursor: pointer;
        display: block;
        float: none;
        margin: 5px auto;
        max-width: 100%;
        position: relative;
    }

    .e-rte-content .e-rte-image.e-imgleft {
        float: left;
        margin: 0 5px 0 0;
        text-align: left;
    }

    .e-rte-content .e-rte-image.e-imgright {
        float: right;
        margin: 0 0 0 5px;
        text-align: right;
    }

.e-rte-content .e-rte-img-caption {
    display: inline-block;
    margin: 5px auto;
    max-width: 100%;
    position: relative;
}

    .e-rte-content .e-rte-img-caption.e-caption-inline {
        display: inline-block;
        margin: 5px auto;
        margin-left: 5px;
        margin-right: 5px;
        max-width: calc(100% - (2 * 5px));
        position: relative;
        text-align: center;
        vertical-align: bottom;
    }

    .e-rte-content .e-rte-img-caption.e-imgcenter {
        display: block;
    }

    .e-rte-content .e-rte-img-caption .e-rte-image.e-imgright,
    .e-rte-content .e-rte-img-caption .e-rte-image.e-imgleft {
        float: none;
        margin: 0;
    }

.e-rte-content .e-rte-table {
    border-collapse: collapse;
    empty-cells: show;
}

    .e-rte-content .e-rte-table td,
    .e-rte-content .e-rte-table th {
        border: 1px solid #bdbdbd;
        height: 20px;
        min-width: 20px;
        padding: 2px 5px;
        vertical-align: middle;
    }

    .e-rte-content .e-rte-table.e-dashed-border td,
    .e-rte-content .e-rte-table.e-dashed-border th {
        border-style: dashed;
    }

.e-rte-content .e-rte-img-caption .e-img-inner {
    box-sizing: border-box;
    display: block;
    font-size: 16px;
    font-weight: initial;
    margin: auto;
    opacity: .9;
    position: relative;
    text-align: center;
    width: 100%;
}

.e-rte-content .e-rte-img-caption .e-img-wrap {
    display: inline-block;
    margin: auto;
    padding: 0;
    width: 100%;
}

.e-rte-content blockquote {
    border-left: solid 2px #333;
}

.e-rte-content a {
    color: #2e2ef1;
}

.e-rte-content .e-rte-table th {
    background-color: #e0e0e0;
}

/* TODO: PRUNE BELOW! Most of this is no longer needed. */
/**************** Data Control Styles ****************/
.arrivos-control-card-header {
    background-color: white;    
}

.arrivos-form-label {
    font-weight: bold;
}

.arrivos-data-control-title {
    margin-bottom: 0;
    margin-right: 7px;
}

.e-grid .arrivos-data-control-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}


.arrivos-filter-header {
    cursor: pointer !important;
}

.e-dashboardlayout.e-control .e-panel .e-panel-header,
.e-dashboardlayout.e-control .e-panel .e-panel-container .e-panel-header {
    padding: .5rem 1rem;
    background-color: white;
    height: unset;
    background-color: white;
}

/**************** End Data Control Styles ****************/
/**************** Data Table Styles ****************/
.arrivos-data-table {
    /* This is here to prevent seeing the data in a weird format while the datatable is being built*/
    display: none;
    /* This is here to keep datatables from over-extending their containers as the screen resizes*/
    width: 100% !important;
}

    .arrivos-data-table td {
        vertical-align: middle;
    }

    .arrivos-data-table th {
        background-color: transparent !important;
        border-bottom-color: rgb(222, 226, 230);
    }

/* Overriding a hard black border on the bottom of the table headers */
.table > :not(:last-child) > :last-child > * {
    border-bottom-color: rgb(222, 226, 230);
}

.arrivos-nested-row-container {
    padding: 15px 15px 15px 0px;
    background-color: #e9eaed !important;
}

.e-grid .e-detailindentcell {
    background-color: #e9eaed !important;
    border-right: none;
}

.e-detailrow {
    width: auto;
}

.e-grid .e-detailcell {
    padding: 0;
}


.e-grid.sf-grid .e-gridcontent {
    overflow-x: auto; /* Fixes an issue with resizing columns causing them to go beyond the table boundary */
}

    .e-grid.sf-grid .e-gridcontent .e-content {
        overflow-y: hidden; /* Fixes an issue with weird vertical scrollbars appearing */
    }

.arrivos-nested-row-container {
    overflow-y: auto;
}

/* Fixing issue with border disappearing when we're hiding columns */
th.dtr-hidden + th,
td.dtr-hidden + td {
    border-left-width: 1px !important;
}

/* Selects the nested cell in the row immediately following a shown row (sibling selector) */
tr.shown + tr:not(.odd):not(.even) td:first-child {
    padding: 0px;
}

.arrivos-selected-row {
    background-color: #AFDBF5 !important;
}

.dataTables_wrapper {
    padding-bottom: 5px;
}

.pagination {
    margin-top: 5px;
    margin-bottom: 5px;
}

/*** DataTables Responsive Expand button ***/
.expand-column {
    padding-left: 10px !important;
    padding-right: 10px !important;
    vertical-align: middle !important;
}

    .expand-column:before {
        position: relative !important;
        margin-top: 0px !important;
    }
/*** End DataTables Responsive Expand button ***/

/*** Batch Edit Styles ***/
.new-row-template {
    display: none;
}

tr.deleted {
    /*text-decoration: line-through;*/
    opacity: .25;
}

    /* Changes the delete icon on client deleted row to undo*/
    tr.deleted .fa-times:before {
        content: "\f0e2";
        opacity: 1;
        color: rgb(43,170,122);
    }

    tr.deleted span.field-validation-error {
        display: none
    }

    tr.deleted input.input-validation-error {
        color: black;
        background-color: white;
    }
/*** End Batch Edit Styles ***/

/* Enables auto complete for field that should be excluded from export */
th.exclude-from-export {
}

.updated-input {
    font-weight: bold;
    color: #FF8C00;
}

/**************** End Data Table Styles ****************/



/**************** Journaling Styles ****************/

/* Fix for weird issue with Journaling view always showing horizontal scrollbars*/
div#SharedPopup div.row {
    margin-right: 0px;
    margin-left: 0px;
}

    div#SharedPopup div.row div[class|="col"] {
        padding-right: 0px;
        padding-left: 0px;
    }

/**************** End Journaling Styles ****************/


/*** Nested Row Styles ***/
.arrivos-nested-row-button {
    background-color: transparent;
    border: none;
    color: transparent;
    text-shadow: none;
    overflow: no-display;
    outline: none;
    font-size: 14px !important;
}

    .arrivos-nested-row-button:before {
        margin: 0px;
        height: 16px;
        width: 16px;
        display: block;
        color: white;
        border: 2px solid white;
        border-radius: 14px;
        box-shadow: 0 0 3px #444;
        box-sizing: content-box;
        text-align: center;
        line-height: 14px;
        background-color: #337ab7;
        align-items: center;
        margin-top: 3px;
    }

tr:not(.shown) .arrivos-nested-row-button:before {
    content: '+';
}

tr.shown .arrivos-nested-row-button:before {
    content: '-';
    background-color: #d33333;
}
/*** End Nested Row Styles ***/

/**************** End Control Buttons ****************/

/**************** Validation Style Overrides ****************/

.validation-summary-valid {
    display: none;
}

.validation-summary-errors {
    border: 2px solid red;
    color: red;
    font-weight: bold;
    margin: 6px;
    width: 100%;
}

.validation-summary-warnings {
    border: 2px solid darkorange;
    color: darkorange;
    font-weight: bold;
    margin: 6px;
    width: 100%;
}

.validation-summary-information {
    border: 2px solid darkblue;
    background-color: lightblue;
    font-weight: bold;
    margin: 6px;
    width: 100%;
}

.field-validation-error {
    color: red;
    font-weight: bold;
}

.input-validation-error {
    color: red;
    font-weight: bold;
    background-color: pink;
    padding:5pt;
}

.input-validation-warning {
    padding: 5pt;
    color: darkorange;
    font-weight: bold;
    background-color: lightyellow;
}

.input-validation-information {
    padding: 5pt;
    color: darkblue;
    font-weight: bold;
    background-color: lightblue;
}

.e-warning {
    color: darkorange;
}

/**************** End Validation Style Overrides ****************/

/*** Arrivos Collapsable Field Set Divs ***/
/*.arrivos-collapsable-fieldset.default-collapsed .ibox-content {
    display: none;
}*/
/*** End Arrivos Collapsable Field Set Divs ***/

/*** Multi-select Styles ***/
select[multiple*="multiple"] {
    display: none;
}

button.multiselect {
    border-color: rgb(169, 169, 169);
    border-radius: 0px;
    padding: 2px;
    padding-right: 3px;
    font-size: 13px;
    margin-bottom: 1px !important;
}

.multiselect-selected-text {
    padding-left: 2px;
    padding-right: 7px;
    font-family: inherit;
}

.multiselect-container li {
    margin-top: 2px;
}

.multiselect-container a {
    margin-top: 2px;
}

    .multiselect-container a:hover {
        cursor: pointer !important;
    }

.multiselect-container li label {
    margin-bottom: 0px;
    margin-top: 0px;
    padding-bottom: 3px;
    padding-top: 3px;
    font-weight: inherit;
}

.multiselect-container li label {
    cursor: pointer !important;
}
/*** End Multi-select Styles ***/

/**** Help Section Styles ****/

.help-section-icon-cell {
    text-align: center;
    vertical-align: middle;
    width: 50px;
}

.help-section-content-cell {
    vertical-align: middle;
}

    .help-section-content-cell ul {
        margin-bottom: 0px;
    }

/**** End Help Section Styles ****/

/*** Start Collapsible Wrapper Styles ***/

.arrivos-collapsable-wrapper-content {
    background-color: #e9eaed;
}

.arrivos-collapsable-wrapper-top-bar {
    padding: 0px; /* Move the padding to the internal components to increase the "clickable" area */
}

    .arrivos-collapsable-wrapper-top-bar .arrivos-collapsable-wrapper-title {
        margin-bottom: 0;
        margin-right: 7px;
        border-style: none;
        font-size: 24px;
    }
        .arrivos-collapsable-wrapper-top-bar .arrivos-collapsable-wrapper-title h5 {
            font-size: inherit;
            margin-top: .5rem;
        }

    .arrivos-collapsable-wrapper-top-bar .arrivos-collapsable-wrapper-top-title-container {
        padding-left: 16px;
        padding-top: 16px;
        padding-bottom: 16px;
        cursor: pointer;
    }

    .arrivos-collapsable-wrapper-top-bar .arrivos-control-collapse-link {
        padding-top: 8px;
        padding-bottom: 8px;
        cursor: pointer;
    }

    .arrivos-collapsable-wrapper-top-bar .arrivos-collapsable-wrapper-top-bar-filler-space {
        cursor: pointer;
        padding-top: 16px;
        padding-bottom: 16px;
    }

/*.arrivos-collapsable-wrapper-ibox.default-collapsed .ibox-content {
    display: none;
}
*/
/*** End Collapsible Wrapper Styles ***/
/**** Query Builder Style Overrides ****/
.query-builder {
    display: block;
}

.arrivos-query-builder-wrapper .e-group-body {
    overflow: hidden;
    max-height: 1500px;
    opacity: 1;
    transition: max-height 0.35s ease, opacity 0.3s ease;
}

.arrivos-query-builder-wrapper--collapsed .e-group-body {
    max-height: 0 !important;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
}
/* Override Syncfusion's hardcoded inline style="width: 200px" on the value cell */
.e-query-builder .e-rule-value.e-template-value {
    width: auto !important;
}


.save-queries-controls-container {
    position: relative;
    height: 0;
    width: 1200px;
}

.save-queries-controls {
    position: absolute;
    left: 130px;
    top: 15px;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.save-queries-controls .form-row,
.save-queries-controls .form-group {
    display: contents;
}

.save-queries-controls .e-ddl.e-input-group {
    min-width: 400px;
    max-width: 400px;
}

.btn-group-xs > .btn, .btn-xs {
    padding: .5rem .4rem;
    font-size: .875rem;
    line-height: .5;
    border-radius: .2rem;
}

.group-conditions .btn-primary.active {
    font-weight: bold;
}

.group-actions.pull-right {
    float: right;
}

.rule-actions.pull-right {
    float: right;
    margin-top: 6px;
}

/**** End Query Builder Style Overrides ****/

/**** In-Value Editor Styles ****/

.arrivos-in-value-editor {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 6px 8px;
}

.arrivos-in-value-slot {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

/* Syncfusion applies margin-top: -2px to .e-btn-icon which offsets the icon
   upward inside the small round add/remove buttons. Reset it so the icon
   stays centred within the grid-centered button. */
.arrivos-in-value-editor .e-btn-icon {
    margin-top: 0 !important;
}

/**** End In-Value Editor Styles ****/

/*** Start Slider Control Styles ***/
.date-slider-handle {
    width: 80px !important;
    height: 25px !important;
    margin-left: -40px !important;
    text-align: center;
    top: -7px !important;
}

    .date-slider-handle .handle-span {
        margin-top: 6%;
        display: inline-block;
        vertical-align: middle;
    }

.int-slider-handle {
    width: 30px !important;
    height: 25px !important;
    text-align: center;
    top: -7px !important;
    margin-left: -15px !important;
}

    .int-slider-handle .handle-span {
        margin-top: 15%;
        display: inline-block;
        vertical-align: middle;
    }

.currency-slider-handle {
    width: 80px !important;
    margin-left: -40px !important; /* Needs to be half of the specified width*/
    height: 25px !important;
    text-align: center;
    top: -7px !important;
}

    .currency-slider-handle .handle-span {
        margin-top: 6%;
        display: inline-block;
        vertical-align: middle;
    }

/*** End Slider Control Styles ***/
/*** Start Custom Button Styles ***/
.btn-control-header {
}
/*** End Custom Button Styles ***/


/*** Multiselect Background color not changing if read-only ***/

.e-multiselect.e-readonly {
    background-color: #e9ecef;
    cursor: none;
}

    .e-multiselect.e-readonly .e-chips-close {
        display: none;
    }


.e-grid .e-gridheader thead .e-icons:not(.e-check):not(.e-stop).e-filtered,
.e-filtered {
    font-weight: bold;
    font-size: 1.3em;
}

.address-verification-suggestions li {
    padding-top: 20px;
}
.address-verification-suggestions pre {
    padding-bottom: 7px;
}

/* Fix for red highlighting of an empty date-picker that's not yet been validated*/
.e-input-group.e-error.valid,
.e-input-group.e-control-wrapper.e-error.valid,
.e-input-group.e-error:not(.e-float-icon-left).valid,
.e-input-group.e-control-wrapper.e-error:not(.e-float-icon-left).valid {
    border-color: rgb(206, 212, 218);
}

    .e-input-group.e-error.valid.e-input-focus,
    .e-input-group.e-control-wrapper.e-error.valid.e-input-focus,
    .e-input-group.e-error:not(.e-float-icon-left).valid.e-input-focus,
    .e-input-group.e-control-wrapper.e-error:not(.e-float-icon-left).valid.e-input-focus {
        box-shadow: 0 0 0 4px rgba(13,110,253,.25);
    }

    .e-input-group.e-error.valid .e-input.e-error,
    .e-input-group.e-error.valid .e-input.e-error:focus,
    .e-input-group.e-error.valid input.e-input,
    .e-input-group.e-control-wrapper.e-error.valid input.e-input,
    .e-input-group.e-control-wrapper.e-error.valid .e-input-group-icon,
    .e-input-group.e-error.valid .e-input-group-icon,
    .e-input-group.e-error.valid textarea.e-input,
    .e-input-group.e-control-wrapper.e-error.valid textarea.e-input {
        border-color: #ced4da;
    }

.e-input-group:not(.e-disabled):active:not(.e-success):not(.e-warning).e-error.valid,
.e-input-group.e-control-wrapper:not(.e-disabled):active:not(.e-success):not(.e-warning).e-error.valid {
    box-shadow: 0 0 0 4px rgba(13,110,253,.25);
}

/* Deleted row in a batch edit control*/
.e-grid .e-hiddenrow {
    display: table-row;
    text-decoration: line-through;
}

    .e-grid .e-hiddenrow .arrivos-data-delete-button {
        display: none;
    }

/* For journaling minwidth in pixels*/
.e-dialog .e-dlg-content {
    overflow-x: auto;
}

/* To keep Auto completes and dynamic dropdowns at least the width of the container*/
.e-ddl.e-input-group {
    min-width: 100%;
    max-width: 100%;
}

/**** CSS to stop Data Grids Headers from colliding with header scrollbar if applicable ***/

.e-grid .e-icon-filter::before {
    position: absolute;
    bottom: 7px;
    right: 5px;
}

.e-grid .e-filtered::before {
    color: #083ACC;
    font-size: 18px;
    position: absolute !important;
    bottom: 6px !important;
    right: 1px !important;
    font-weight: 700 !important;
}

.e-grid .e-icon-ascending::before {
    position: absolute;
    bottom: 3px;
    right: 16px;
}

.e-grid .e-icon-descending::before {
    position: absolute;
    bottom: 3px;
    right: 16px;
}

.e-grid.e-wrap .e-gridheader .e-sortnumber {
    margin: 0 0 0 0;
    position: absolute;
    top: 2px;
    right: 10px;
}

.e-grid.e-wrap .e-columnheader .e-headercell.e-fltr-icon .e-headercelldiv {
    padding-bottom: 7px;
}

.e-grid .e-gridheader .e-sortfilter .e-headercelldiv {
    padding-right: 0px;
}

.e-grid .e-gridheader .e-sortfilter .e-rightalign .e-headercelldiv {
    padding: 0 10px 0 0;
}

.e-grid .e-gridheader .e-sortfilter .e-centeralign .e-headercelldiv {
    padding: 0px;
}

th.e-headercell.e-centeralign {
    padding-right: 0px;
}


/**** End CSS to stop Data Grids Headers from colliding with header scrollbar if applicable ***/

/*** CSS To make the loading screen flickering go away with new Arrivos Buttons ***/

.e-spinner-pane {
    opacity: 1;
    visibility: visible;
    transition: visibility .5s, opacity .5s;
}

    .e-spinner-pane.e-spin-hide {
        display: block;
        visibility: hidden;
        opacity: 0;
        transition: visibility .5s, opacity .5s;
    }

/*** End CSS To make the loading screen flickering go away with new Arrivos Buttons ***/

.e-rowcell .e-checkbox-wrapper .e-label {
    display: none;
}

/* Hide the permission buttons inside the permissions dialog*/
.permissions-dialog .permission-audit-button {
    display: none;
}

/* When a display field value has no spaces that can be broken naturally, want to force it to break anyway*/
.form-field-value {
    overflow-wrap: anywhere;
}

/* Fix for Syncfusion no longer graying-out readonly text boxes*/
.e-textbox[readonly], .e-datepicker[readonly], .e-timepicker[readonly], .e-numerictextbox[readonly], .e-maskedtextbox[readonly] {
    background-color: rgb(233, 236, 239) !important;
}

.arrivos-ai-chat-prompt-hint {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 2px;
    margin-bottom: 4px;
    text-align: right;
}

/* Fullscreen overlay for Monaco editor and Mermaid diagram */
.arrivos-fullscreen-overlay {
    position: fixed;
    inset: 0;
    z-index: 1055;
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 0;
    overflow: hidden;
}

.arrivos-fullscreen-overlay .arrivos-fullscreen-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

/* Mermaid diagram in fullscreen: the outer wrapper IS the overlay, so target
   the .mermaid-zoom-controls (toolbar) and .mermaid (diagram) as direct children. */
.arrivos-fullscreen-overlay > .mermaid-zoom-controls {
    flex-shrink: 0;
}

.arrivos-fullscreen-overlay > .mermaid {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}