html, body {
    font-family: 'Sen', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: rgb(18,18,18);
    background: linear-gradient(130deg, rgba(18,18,18,1) 0%, rgba(0,23,59,1) 55%, rgba(0,23,59,1) 100%);
    animation: fadeInAnimation ease 3s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0.1;
    }

    100% {
        opacity: 1;
    }
}

.content {
    flex-grow: 1;
    overflow: auto;
    padding-top: 1.1rem;
}

/* Headings */
.heading-bg {
    font-size: 1.4rem;
    color: white;
    font-weight: 600;
    background-color: #00173b;
    text-transform: uppercase;
    padding: 1rem 1rem;
    margin: 0 0 1.5rem 0;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 10px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid #00173b;
    transition: all 0.3s ease;
}
.subheading {
    position: relative;
    font-size: 0.9rem;
    color: white;
    font-weight: 100;
    background-color: #00173b;
    text-transform: uppercase;
    padding: 1rem 1rem;
    margin: 1.5rem 0;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 10px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid #00173b;
    transition: all 0.3s ease;
}

/* Buttons */
.e-btn.e-custom {
    display: inline-block;
    background-color: #00173b;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-property: box-shadow;
    transition-property: box-shadow;
    min-width:fit-content;
    font-weight: bold;
    font-family: 'Sen', sans-serif !important;
    color: #fff;
    justify-content: center;
    line-height: 1.6em;
    outline: none;
    padding: 4px 8px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #6c757d;
    border-radius: 4px;
    box-sizing: border-box;
}

.e-btn.e-custom:hover {
    box-shadow: 0 0 9px rgba(0, 0, 0, 0.7);
    background-color: #00173b;
}

.e-btn.e-warning:hover {
    background-color: red !important;
    box-shadow: 0 0 9px rgba(0, 0, 0, 0.7);
}

.e-btn.e-delete {
    background-color: red !important;
}

/* Spinner */
.icon {
    margin-left: 0.5rem;
}
.custom-spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.spinner-circle {
    width: 100%;
    height: 100%;
    border: 1px solid #ccc;
    border-top: 4px solid #00173b;
    border-radius: 100%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Table */
.table-container {
    display: grid;
    overflow: visible
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.75rem;
    text-align: left;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    table-layout: fixed;
}

.table thead {
    background-color: #f2f2f2;
    font-weight: bold;
}

.table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table tbody tr:hover {
    background-color: #e0e0e0;
}

.table tbody tr:hover td {
    background-color: #f1f1f1;
}

.table th, .table td {
    padding: 12px;
    border: 1px solid #dddddd;
    vertical-align: middle;
}

.table th {
    background-color: #00173b;
    color: white;
    font-size: 0.75rem;
    padding: 16px 10px;
}

.table th error {
    background-color: red;
}

.table td:first-child {
    vertical-align: middle;
}

.table td input[type="checkbox"] {
    display: block;
    margin: 0 auto;
    transform: scale(1.3);
    vertical-align: middle;
}
.transparent-button {
    background-color: transparent!important;
    border: none!important;
    cursor: pointer;
    padding: 0;
    margin-right: 8px;
}
.fas.fa-close {
    color: red;
}

/* Textbox */
.input-adornment-container {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}
.input-adornment-container.switch {
    height: 48px;
}

.input-adornment {
    margin-left: 5px;
    color: #999;
    font-size: 0.875rem;
}

.custom-textbox {
    width: 100%;
    padding: 8px 10px;
    margin: 4px 0;
    height: 48px;
    box-sizing: border-box;
    border: 2px solid darkgray;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.custom-textbox:focus {
    border-color: #00173b !important;
    box-shadow: 0 0 5px rgba(0, 23, 59, 0.5) !important;
    outline: none;
}

.custom-textbox {
    -moz-appearance: textfield;
}

.input-adornment {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #999;
    font-size: 0.875rem;
}

.error-tooltip {
    position: relative;
    display: inline-block;
    align-content: center;
    margin-right: 8px;
    margin-left: 8px;
}

.error-tooltip .tooltip-content {
    visibility: hidden;
    min-width: 200px;
    background-color: #00173b;
    color: white;
    text-align: left;
    border-radius: 5px;
    padding: 10px;
    position: absolute;
    top: -5px;
    left: 105%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.4);
}

.error-tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

.label-container {
    display: flex;
    align-items: center;
}

.label-container-table {
    align-items: center;
}

/* Tooltip */
.custom-tooltip-container {
    display: inline-block;
    position: relative;
}

.custom-tooltip {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2E2E2E;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    opacity: 0.95;
    z-index: 1000;
}

.custom-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #2E2E2E transparent transparent transparent;
}

.qg-tooltip-header,
.qg-tooltip-header .col-header-content {
    overflow: visible !important;
}

.wave-quickgrid-wrapper {
    overflow: visible !important;
}

.qg-header-sortable {
    cursor: pointer;
}

/* Custom Card */

.card {
    border-radius: 5px;
    padding: 15px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.custom-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.error-card {
    background-color: #ffcccc;
    border: 1px solid #ff0000;
    border-radius: 5px;
    padding: 15px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.custom-card-header {
    font-size: 16px;
    font-weight: normal;
    line-height: 1.5;
    padding: 12px 12px 0;
}

.custom-card-content {
    line-height: 1.5;
    font-size: 14px;
    box-sizing: border-box;
    padding: 12px;
    word-wrap: break-word;
}

.custom-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: border 0.3s ease, transform 0.3s ease;
}

.custom-radio {
    accent-color: #00173b
}

/* Toast */
.custom-toast-show {
    display: flex;
    align-content: center;
    align-items: center;
}

.custom-toast {
    border: 1px solid #00173b;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.custom-toast.warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

.custom-toast.success {
    border-color: #c3e6cb;
}

.custom-toast.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.custom-toast-header {
    display: flex;
    font-size: 16px;
    box-sizing: border-box;
    line-height: normal;
    min-height: 22.5px;
    width: inherit;
    padding: 12px 12px 0;
}

.custom-toast-body {
    display: block;
    margin-top: 0.5rem;
}

.cancel-button {
    background: none;
    border: none;
    font-size: 1rem;
    color: inherit;
    cursor: pointer;
}