/* topbar */
.layout-topbar { padding: 0 1rem; }
.layout-topbar .menu-button { background: transparent; }
.p-breadcrumb { border: 0; }

/* loader */
.loader img { height: 48px; width: 48px; animation: loader-spin 1s linear infinite; -moz-animation: loader-spin 1s linear infinite; -webkit-animation: loader-spin 1s linear infinite; }

@-moz-keyframes loader-spin { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes loader-spin { 100% { -webkit-transform: rotate(360deg); } }
@keyframes loader-spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }

/* datatables */
.p-datatable .p-datatable-header { background: transparent; border-top: 0; padding: 1rem 0 !important; }
.p-datatable.p-datatable-gridlines .p-datatable-header { border-width: 0; }
.p-datatable .image-text { vertical-align: middle; margin-left: .5rem; }
.layout-sidebar-bluegray .p-datatable-wrapper table { border-right: 1px solid #e9ecef; border-left: 1px solid #e9ecef; }
.layout-sidebar-dim .p-datatable-wrapper { border-right: 1px solid #304562; border-left: 1px solid #304562; }
.p-datatable.p-datatable-gridlines .p-datatable-footer { border-width: 1px; }
.p-datatable.p-datatable-gridlines .p-datatable-thead > tr > th { border-width: 1px 1px 1px 0; }
.p-datatable.p-datatable-gridlines .p-datatable-thead > tr > th:last-child { border-width: 1px 0 1px 0; }
.p-datatable.p-datatable-gridlines .p-datatable-tbody > tr > td { border-width: 0 1px 1px 0; }
.p-datatable.p-datatable-gridlines .p-datatable-tbody > tr > td:last-child { border-width: 0 0 1px 0; }
.p-editable-column input { width: 100%; }
.p-datatable-footer { text-align: right; }
.p-paginator .p-paginator-current { margin-left: auto; }
.p-datatable .p-datatable-header { padding: 1rem; text-align: left; font-size: 1.5rem; }
.p-paginator { padding: 1rem; }
.p-datatable-thead > tr > th { text-align: left; }
.p-datatable-tbody > tr > td { cursor: auto; }
.p-datatable .p-datatable-tbody > tr.p-datatable-emptymessage > td { text-align: center; font-style: italic; }
.p-datatable-reorderablerow-handle { cursor: pointer; }

.layout-sidebar-dim .p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(even) { background: #223042; }

/* form */
.p-fluid .p-button { width: auto; }
.form-span { padding: 0.5rem 0; }

/* login */
.login-form { width: 80%; }
.login-form form { width: 100%; }
.login-body .login-wrapper .login-panel .login-form .p-component { width: 100%; max-width: 310px; }
.login-body .login-wrapper .login-panel .login-form input.p-component { margin-bottom: 0px; }
.login-body .login-wrapper .login-panel .login-form > button { width: 100%; max-width: 310px; }
.login-body .login-wrapper .login-image .login-image-content > h1 { text-align: center; }
.login-body .login-wrapper .login-image .image-footer a { color: #fff; text-decoration: underline; }
@media (min-width: 993px) {
  .login-body .login-wrapper .login-image div { z-index: 3; }
  .login-body .login-wrapper .login-image { position: relative; background: #455a64; }
  .login-body .login-wrapper .login-image .landscape { background-size: cover; background-position: center center; top: 0; left: 0; right: 0; bottom: 0; position: absolute; z-index: 1; }
  .login-body .login-wrapper .login-image .landscape:before { content: " "; background-color: #455a64 !important; opacity: 0.7; top: 0; left: 0; right: 0; bottom: 0; position: absolute; z-index: 2; }
}
.login-body .login-wrapper .login-panel .login-form .p-progressbar { height: 0.5em; margin-top: 1rem; }
.login-body .p-message-text { text-align: left !important; }

/* profile */
.widget-user-card { text-align: left; }
.widget-user-card .user-card-header { background-image: url('/assets/layout/images/profile.png'); }
.widget-user-card .user-card-title, .widget-user-card .user-card-subtext  { text-align: center; }
.widget-user-card .user-card-title { text-transform: uppercase; }
.widget-user-card .p-progressbar { height: 0.5em; margin-top: 1rem; }

/* notfound */
.exception-body.notfound img, .exception-body.notfound div { z-index: 3; }
.exception-body.notfound { position: relative; background: #455a64; justify-content: space-between; flex-direction: column; }
.exception-body.notfound .landscape { background-size: cover; background-position: center center; top: 0; left: 0; right: 0; bottom: 0; position: absolute; z-index: 1; }
.exception-body.notfound .landscape:before { content: " "; background-color: #455a64 !important; opacity: 0.7; top: 0; left: 0; right: 0; bottom: 0; position: absolute; z-index: 2; }
.exception-body.notfound .image-header { display: flex; align-items: center; }
.exception-body.notfound .image-header h1 { font-size: 60px; margin: 0; color: #fff; text-align: center; padding-top: 40px; }
.exception-body.notfound .image-footer { display: flex; align-items: center; }
.exception-body.notfound .image-footer p { color: #fff; text-align: center; width: 100%; font-weight: 600; padding-bottom: 40px; }

/* card grow */
.card .grow { display: flex; flex-direction: column; height: calc(100vh - 17.25rem); }

/* p-component */
.p-component { font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; }

/* p-error */
.p-error { display: block; }

/* tabview */
.p-tabview .p-tabview-panels { padding: 1rem 0 0 0; }

/* dialog */
.p-dialog-mask { z-index: 900 !important; }

/* toast */
.p-toast { z-index: 9000 !important; }

/* badges */
.badge { border-radius: 2px; padding: .25em .5rem; text-transform: uppercase; font-weight: 700; font-size: 12px; letter-spacing: .3px; }
.badge.status-green { background: #C8E6C9; color: #256029; }
.badge.status-red { background: #FFCDD2; color: #C63737; }
.badge.status-brown { background: #FEEDAF; color: #8A5340; }
.badge.status-blue { background: #B3E5FC; color: #23547B; }
.badge.status-purple { background: #ECCFFF; color: #694382; }
.badge.status-orange { background: #FFD8B2; color: #805B36; }

/* notification badge */
.layout-topbar .topbar-menu > li > a .topbar-badge { background: #C63737 !important; }

/* messages */
.p-message .p-message-text a { font-weight: bold; color: inherit; text-decoration: underline; }

/* box shadows */
.layout-sidebar-bluegray .layout-sidebar .layout-menu li a:focus { box-shadow: none !important; }
.p-button:focus { box-shadow: none !important; }
.p-inputswitch.p-focus .p-inputswitch-slider { box-shadow: none !important; }
.p-datatable .p-datatable-tbody > tr > td .p-row-toggler:focus, .p-datatable .p-datatable-tbody > tr > td .p-row-editor-init:focus, .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save:focus, .p-datatable .p-datatable-tbody > tr > td .p-row-editor-cancel:focus { box-shadow: none !important; }
.p-dropdown:not(.p-disabled).p-focus { box-shadow: none !important; }
.p-inputtext:enabled:focus { box-shadow: none !important }
.p-tabview .p-tabview-nav li .p-tabview-nav-link:not(.p-disabled):focus { box-shadow: none !important }
.layout-topbar .topbar-menu > li > a:focus { box-shadow: none !important }
.layout-topbar .menu-button:focus { box-shadow: none !important }
.p-breadcrumb ul li .p-menuitem-link:focus { box-shadow: none !important }
.p-link:focus { box-shadow: none !important }
.p-datatable .p-sortable-column:focus { box-shadow: none !important }
.p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box.p-focus { box-shadow: none !important }
.p-listbox .p-listbox-list .p-listbox-item:focus { box-shadow: none !important }

/* koru loading */
.koru-loading img { position: absolute; left: 50%; top: 50%; margin: -24px 0 0 -24px; height: 48px; width: 48px; animation: loader-spin 1s linear infinite; -moz-animation: loader-spin 1s linear infinite; -webkit-animation: loader-spin 1s linear infinite; }

/* filter selected */
.p-column-filter-menu-button-active span { color: #2196F3 !important; }

/* files view */
.file-name { font-size: 1.5rem; font-weight: 700; }
.file-description { margin: 0 0 1rem 0; }
.file-list-item { display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; padding: 1rem; width: 100%; }
.file-list-item img { width: 150px; margin-right: 2rem; }
.file-list-item .file-list-detail { flex: 1 1 0; -ms-flex: 1 1 0px; }
.file-list-item .file-list-action { display: -ms-flexbox; display: flex; -ms-flex-direction: column; flex-direction: column; }
.file-list-item .p-button { margin-bottom: 0.5rem; }
.file-grid-item { margin: 0.5em; border: 1px solid var(--surface-d); }
.file-grid-item .file-grid-item-bottom { display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; -ms-flex-pack: justify; justify-content: space-between; }
.file-grid-item img { width: 60%; margin: 2rem 0; }
.file-grid-item .file-grid-item-content { text-align: center; }
@media screen and (max-width: 576px) {
  .file-list-item { -ms-flex-direction: column; flex-direction: column;  -ms-flex-align: center; align-items: center; }
  .file-list-item img { width: 75%; margin: 2rem 0; }
  .file-list-item .file-list-detail { text-align: center; }
  .file-list-item .file-list-action { display: -ms-flexbox; display: flex; -ms-flex-direction: column; flex-direction: column; }
  .file-list-item .file-list-action { margin-top: 2rem; -ms-flex-direction: row; flex-direction: row; -ms-flex-pack: justify; justify-content: space-between; -ms-flex-align: center; align-items: center; width: 100%; }
}

/* confirmation dialog */
.confirmation-content { display: flex; align-items: center; justify-content: left; }

/* avatar */
.p-avatar.p-avatar-xl .p-avatar-icon { font-size: 4.5rem; }

/* popup menu */
.p-menu { width: 15rem; }

/* text */
.p-uppercase { text-transform: uppercase; }

/* progress bar */
.koru-progress { position: absolute; left: 50%; top: 50%; margin: -10px 0 0 -20%; width: 40%; }

/* dropdown */
.p-dropdown-panel .p-dropdown-items .p-dropdown-item { padding: 0.5rem 1.5rem; }

.p-picklist-list { max-height: none !important; }
.p-picklist-source-controls { display: none !important; }
.p-picklist-target-controls { display: none !important; }

div.image-footer a { color: #fff; text-decoration: underline; }

/* notifications table */
table.notifications thead { display: none; }
table.notifications { border: 0 !important; }
table.notifications > .p-datatable-tbody > tr > td { border: 0 !important; }

/* tabpanel icon */
.p-tabview-nav-link span { margin: 0 0.5rem; }

/* text bold */
.text-bold { font-weight: 900; }

.p-inputgroup div:last-child span.p-button { border-radius: 0 3px 3px 0; }
