@font-face {
    font-family: 'AtypDisplay';
    src: url('../fonts/AtypDisplay-Semibold.woff2') format('woff2');
    font-weight: 600; /* semibold */
    font-style: normal;
}

html {
    font-size: 13px;
    background-color: #EEF4E3;
}
main > .container {
    padding: 70px 15px 20px;
}

h1, .semibold {
    font-weight: 600;
}

.header-row {
    background-color: white;
}

.dio-h1 {
    font-family: 'AtypDisplay', Arial, Sans-Serif;
    font-size: 42px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.14;
    letter-spacing: normal;
    text-align: left;
    color: #76bc21;
}

body {
    background-color: #EEF4E3;
    font-family: 'Noto Sans', sans-serif;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}


/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

.bg-dio-green {
    background-color: #EEF4E3 !important;
}

.form-label, .control-label {
    font-size:12px;
    margin-bottom: 2px;
}

.table.hoverable-table-rows tbody tr:hover {
    cursor: pointer;
    background-color: #c0d3af !important;
}

.bg-dio-purple {
    background-color: #535386 !important;
    color: white !important;
}

.bg-dio-yellow {
    background-color: #F4DB6C !important;
}

button.bg-dio-purple:hover, button.bg-dio-purple:focus-visible, button.bg-dio-purple:active, a.bg-dio-purple:hover, a.bg-dio-purple:focus-visible, a.bg-dio-purple:active {
    background-color: #42426b !important;
    color: white !important;
}

.bi-plus {
    margin-top: 4px;
}

select.kv-loading,
.kv-loading .form-control {
    background-image: none !important;
    background: inherit !important;
}

.display-6 {
    color: #535486;
}


/* .dio-table-1 */
.dio-table-1 {
    --bs-table-bg: transparent;
}

.dio-table-1 a {
    text-decoration: none;
    color: #535486;
}

.dio-table-1 td {
    padding: 0 5px 0 5px;
}

.dio-table-1 th {
    border-style: unset !important;
    color: #535486;
}

a.asc:after {
    border-bottom: solid 7px gray;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px gray;
    border-bottom-width: 0;
}

.dio-table-1 tr:first-child {
    border-top: unset !important;
}
/* END .dio-table-1 */

.bg-dio-green-2 {
    background-color: #78B826 !important;
}

.text-dio-purple {
    color: #535486;
}

.text-dio-green-2 {
    color: #78B826;
}

/* CARD */
.card {
    border-radius: 0;
    border: 0;
}
/* END CARD */


/* PAGINATION */
.pagination .page-link {
    font-size: 12px;
    text-align: center;
    border-radius: .5rem;        /* rounded squares */
    margin: 0 .15rem;
    background-color: transparent;
}

.pagination .page-item {
    background-color: transparent;
}

.pagination .disabled a {
    background-color: whitesmoke;
}
.pagination .page-item.active .page-link {
    color: #fff;
    background-color: #535386;   /* your brand color */
}
/* END PAGINATION */


/* MENU */

.sidebar-rail a {
    color: white;
}

#mobileSidebar a {
    color: white;
}

/* END MENU */


/* MODAL WINDOWS */
.modal-header {
    border-bottom: 0;
}
/* END MODAL WINDOWS */

/* PACKAGE TABLE HISTORY */
.saved-form-entry {
    margin-bottom: 1rem;
}
.saved-form-entry label {
    color: rgba(0, 0, 0, 0.78);
    border-bottom: 1px solid rgb(0 0 0 / 10%);
    width: 100%;
    font-weight: 700;
    margin-bottom: 0;
}
/* END PACKAGE TABLE HISTORY */


/* CREATE ORDER FORM */
.error-container {
    color: red;
    text-align: center;
    font-size: 13px;
}
/* END CREATE ORDER FORM */


/* INLINE TABLE FILTERS */
/* looks like plain table cell text */
.filter-inline-input {
    display: block;        /* let it fill the cell */
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 5px 0 5px;            /* your <td> has p-0, so keep it flush */
    background-color: rgb(255, 255, 255, 0.7);
    border: 0;
    outline: 0;
    box-shadow: none;
    color: inherit;
    line-height: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.filter-inline-input:focus,
.filter-inline-input:active {
    border: 0;
    outline: 0;
    box-shadow: none;      /* suppress Bootstrap focus glow if present */
    background-color: rgb(255, 255, 255, 0.7);
}

/* optional: match placeholder to muted table text */
.filter-inline-input::placeholder {
    opacity: .6;
}

select.filter-inline-input {
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: auto;     /* brings back the arrow */
    border: 0;
    outline: 0;
    box-shadow: none;
    width: 100%;
    padding-right: .75rem;        /* a little space near the arrow */
}
/* END INLINE TABLE FILTERS */

/* SELECT2 CLASSIC */
.table .select2-container .select2-selection {
    border: 0 !important;
    box-shadow: none !important;
}

.table .select2-container.select2-container--open .select2-selection,
.table .select2-container .select2-selection:focus {
    box-shadow: none !important;
    outline: 0;
}

.select2-container .select2-dropdown .select2-search .select2-search__field:focus,
.select2-container .select2-dropdown .select2-search .select2-search__field:focus-visible {
    outline: 0 !important;
    box-shadow: none !important;
}

.table .select2-container .select2-selection {
    height: auto !important;
    min-height: 0 !important;
    line-height: inherit !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border: 0;
    box-shadow: none;
}

.table .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: inherit !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.table .select2-container .select2-selection--single .select2-selection__arrow {
    height: auto !important;
    top: 50% !important;
    transform: translateY(-50%);
}

.table .select2-container .select2-selection--multiple {
    min-height: 0 !important;
}
.table .select2-container .select2-selection--multiple .select2-selection__rendered li {
    line-height: inherit !important;
}

.select2-container .select2-dropdown {
    line-height: inherit !important;
}
.select2-container .select2-dropdown .select2-search__field {
    height: auto !important;
    line-height: inherit !important;
}
.select2-container .select2-dropdown .select2-results__option {
    line-height: inherit !important;
    padding-top: 0.25rem;   /* tweak as needed */
    padding-bottom: 0.25rem;
}

.select2-dropdown { border: 1px solid #aaa !important; }
.select2-dropdown--below { border-top: 1px solid #aaa !important; }
.select2-dropdown--above { border-bottom: 1px solid #aaa !important; }

.table .select2-container .select2-selection__rendered:empty::before {
    content: '\00a0';
}

.table .select2-container .select2-dropdown .select2-results .select2-results__option--highlighted {
    background-color: #1967D2;
    color: #fff !important;
}

/* END SELECT2 CLASSIC */

/* scrolling container */
.grid-wrapper{
    max-height:73vh;      /* adjust */
    overflow:auto;
    position:relative;
}

/* sticky behaves better with separate borders */
.sticky-table{
    border-collapse:separate;
    border-spacing:0;
}

/* header cells */
.sticky-table thead tr:first-child th{
    position:sticky;
    top:0;
    background:#fff;
    z-index:3;
}

/* filter row cells (Yii uses <td> here) */
.sticky-table thead tr.filters th,
.sticky-table thead tr.filters td{
    position:sticky;
    top:var(--header-h,40px);   /* will be set by JS below; 40px fallback */
    background:#fff;
    z-index:2;
    box-shadow:0 1px 0 rgba(0,0,0,.06);
}