html {
    min-height: 100%;
}

body {
    background: #eef1f4;
    color: #26323f;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    padding-top: 0;
}

a {
    color: #0f5e8c;
}

a:hover {
    color: #0a425f;
}

.navbar {
    background: #ffffff !important;
    border-bottom: 1px solid #d9e1e8;
    box-shadow: 0 1px 8px rgba(31, 45, 61, 0.08);
    min-height: 62px;
    padding: 0.35rem 1rem;
}

.navbar-brand img {
    max-height: 48px;
    object-fit: contain;
}

.navbar-nav .nav-link {
    border-radius: 4px;
    color: #34495e !important;
    font-size: 13px;
    margin: 0 2px;
    padding: 0.45rem 0.7rem !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    background: #edf5f7;
    color: #12384d !important;
}

.navbar-nav .active .nav-link,
.navbar-nav .nav-link.active,
.active > .nav-link {
    background: #dcecf0;
    color: #12384d !important;
    font-style: normal;
    font-weight: 600;
}

.navbar-text {
    color: #526272;
    font-size: 12px;
}

.body-content {
    background: #ffffff;
    border: 1px solid #dce3ea;
    box-shadow: 0 2px 12px rgba(31, 45, 61, 0.06);
    margin-top: 18px;
    max-width: calc(100% - 28px);
    min-height: calc(100vh - 108px);
    padding: 18px 20px;
}

footer {
    color: #7b8794;
    font-size: 12px;
}

hr {
    border-top-color: #e4e9ee;
}

.btn,
input[type="button"],
input[type="submit"],
button {
    border-radius: 4px !important;
    font-weight: 600;
}

.btn-primary {
    background: #1e6f8f;
    border-color: #1e6f8f;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #175a75;
    border-color: #175a75;
}

.btn-info {
    background: #4f8f7b;
    border-color: #4f8f7b;
}

.btn-info:hover,
.btn-info:focus {
    background: #3f7464;
    border-color: #3f7464;
}

.form-control,
input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
select,
textarea {
    border-color: #cfd8e3;
    border-radius: 4px !important;
    color: #26323f;
    max-width: none;
}

.form-control:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    border-color: #4f8f7b;
    box-shadow: 0 0 0 0.15rem rgba(79, 143, 123, 0.18);
    outline: 0;
}

.input-group-text {
    background: #f2f5f8;
    border-color: #cfd8e3;
    color: #4a5b6b;
    font-weight: 600;
}

.table,
table.table {
    background: #ffffff;
    color: #26323f;
    font-size: 13px;
}

.table-bordered,
.table-bordered th,
.table-bordered td {
    border-color: #d9e1e8 !important;
}

.table th,
.table thead th,
.GridView th,
table th {
    background: #f3f7f9;
    color: #34495e;
    font-weight: 700;
    vertical-align: middle;
}

.table td,
table td {
    vertical-align: middle;
}

.table tbody tr:hover,
.evidencerow:hover,
.alternaterow tbody tr:hover {
    background: #edf7f5 !important;
}

img[onclick] {
    opacity: 0.86;
    transition: opacity 0.12s ease, transform 0.12s ease;
}

img[onclick]:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.ww-icon-btn {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px !important;
    color: #526272;
    cursor: pointer;
    display: inline-flex;
    font-size: 15px;
    height: 24px;
    justify-content: center;
    line-height: 1;
    margin: 0 2px;
    padding: 0;
    vertical-align: middle;
    width: 24px;
}

.ww-icon-btn:hover,
.ww-icon-btn:focus {
    background: #edf5f7;
    border-color: #cfd8e3;
    color: #12384d;
    outline: 0;
}

.ww-icon-btn-danger {
    color: #c94d4d;
}

.ww-icon-btn-danger:hover,
.ww-icon-btn-danger:focus {
    background: #fff0f0;
    border-color: #efc7c7;
    color: #a93636;
}

.ww-icon-btn-accent {
    color: #1e6f8f;
}

.ww-icon-btn-neutral {
    color: #4a5b6b;
}

td .ww-icon-btn + .ww-icon-btn,
th .ww-icon-btn + .ww-icon-btn {
    margin-left: 4px;
}

.remote-provider-actions {
    align-items: center;
    display: inline-flex;
    gap: 5px;
    white-space: nowrap;
}

.remote-provider-badge {
    border: 1px solid #cfd8e3;
    border-radius: 4px !important;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    height: 24px;
    line-height: 1;
    min-width: 38px;
    padding: 0 7px;
}

.remote-provider-badge.is-ok {
    background: #edf7f2;
    border-color: #b9d9c7;
    color: #2f7050;
}

.remote-provider-badge.is-warning {
    background: #fff8e5;
    border-color: #ead18a;
    color: #7a5c00;
}

.remote-provider-badge.is-missing {
    background: #fff0f0;
    border-color: #efc7c7;
    color: #a93636;
}

.remote-provider-badge:hover,
.remote-provider-badge:focus {
    box-shadow: 0 0 0 0.12rem rgba(30, 111, 143, 0.14);
    outline: 0;
}

.GridPager {
    background: transparent;
    padding: 8px 0;
}

.GridPager a,
.GridPager span {
    border: 1px solid #cfd8e3;
    border-radius: 4px;
    display: inline-block;
    margin: 0 2px;
    min-width: 32px;
    padding: 5px 9px;
    text-align: center;
}

.GridPager a {
    background: #ffffff;
    color: #1e6f8f;
}

.GridPager a:hover {
    background: #edf5f7;
    color: #12384d;
}

.GridPager span {
    background: #1e6f8f;
    border-color: #1e6f8f;
    color: #ffffff;
}

.ui-widget {
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 13px;
}

.ui-dialog {
    border: 0 !important;
    border-radius: 6px;
    box-shadow: 0 18px 48px rgba(31, 45, 61, 0.26);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 32px) !important;
    max-width: calc(100vw - 24px) !important;
    overflow: hidden;
    padding: 0;
}

.ui-dialog .ui-dialog-titlebar {
    background: #26323f !important;
    border: 0 !important;
    border-radius: 6px 6px 0 0;
    color: #ffffff !important;
    flex: 0 0 auto;
    padding: 0.65rem 0.85rem;
}

.ui-dialog .ui-dialog-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.ui-dialog .ui-dialog-content {
    color: #26323f;
    flex: 1 1 auto;
    max-height: calc(100vh - 150px) !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 1rem;
}

.ui-dialog .ui-dialog-buttonpane {
    background: #f6f8fa;
    border-top: 1px solid #dce3ea;
    flex: 0 0 auto;
    margin-top: 0;
    padding: 0.65rem 0.85rem;
}

.ui-dialog .ui-dialog-buttonpane button {
    background: #ffffff;
    border: 1px solid #cfd8e3;
    border-radius: 4px;
    color: #34495e;
    font-weight: 700;
    padding: 0.35rem 0.8rem;
}

.ui-dialog .ui-dialog-buttonpane button:hover {
    background: #edf5f7;
    border-color: #aebdca;
}

.ui-dialog .row {
    margin-left: -8px;
    margin-right: -8px;
}

.ui-dialog [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

.ui-dialog .input-group-text {
    min-height: 31px;
    white-space: nowrap;
}

.ui-dialog textarea.form-control,
.ui-dialog textarea {
    min-height: 52px;
}

.ui-widget-overlay {
    background: #1e2732 !important;
    opacity: 0.38 !important;
}

.ui-progressbar {
    border-color: #cfd8e3;
    border-radius: 4px;
}

.ui-progressbar-value {
    background: #4f8f7b;
}

#overlay,
#overlaypricelist,
#overlaysearch,
#overlaymovements,
#overlayebaysearch {
    background: #eef1f4;
    opacity: 0.48;
}

.spinner {
    border-color: #d8e0e8;
    border-top-color: #4f8f7b;
}

@media (max-width: 991.98px) {
    .body-content {
        margin-top: 10px;
        max-width: calc(100% - 16px);
        padding: 14px;
    }

    .navbar-text {
        display: block;
        padding-left: 0 !important;
    }
}
