html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

#title {
    margin-left: 300px;
    padding: 2rem;
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: #fff;
    border-bottom: solid 2px var(--bs-gray-300);
    --bs-gutter-x: 0;
}

html[data-bs-theme=dark] #title {
    margin-left: 300px;
    padding: 2rem;
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: #1e1e2d;
    border-bottom: solid 2px var(--bs-gray-800);
}

#userDetails {
    align-content: end;
    text-align: end;
}

#main {
    border-left: solid 2px var(--bs-gray-300);
}

html[data-bs-theme=dark] #main {
    border-left: solid 2px var(--bs-gray-800);
}

.tab-content > .tab-pane {
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    padding-top: calc(var(--bs-gutter-x) * .5);
}

.btn.icon-sm {
    padding-right: 1px;
    padding-left: 1px;
}

.card {
    border: var(--bs-card-border-width) solid var(--bs-card-border-color) !important;
}

i.icon-align {
    height: inherit;
}

td.financial-negative {
    color: #991b1b;
}

tr.row-default {
    font-style: italic;
}

tr.row-not-processed td {
    background-color: #e0e7ff;
    color: #1e3a8a;
    font-style: italic;
}

tr.row-not-billed td {
    background-color: #ecfdf5;
    color: #065f46;
    font-style: italic;
}

tr.row-due-today td {
    background-color: #fef9c3;
    color: #78350f;
    font-weight: bold;
}

tr.row-due-past td {
    background-color: #fee2e2;
    color: #991b1b;
    font-weight: bold;
    font-style: italic;
}

tr.row-overpaid td {
    background-color: #fce7f3; /* light pink */
    color: #9d174d; /* deep rose */
    font-style: italic;
    font-weight: 600;
}

tr.row-mutation-open td {
    background-color: #fef3c7; /* warm amber */
    color: #92400e; /* burnt orange */
    font-style: italic;
}

tr.row-selected td{
    font-weight: bold;
}

.dark tr.row-mutation-open td {
    background-color: #78350f; /* dark amber */
    color: #fde68a; /* soft yellow text */
}

.dark tr.row-overpaid td {
    background-color: #831843; /* dark rose */
    color: #fbcfe8; /* light pink text */
}

.dark tr.row-not-processed td {
    background-color: #1e3a8a !important;
    color: #e0e7ff !important;
}

.dark tr.row-not-billed td {
    background-color: #065f46 !important;
    color: #ecfdf5 !important;
}

.dark tr.row-due-today td {
    background-color: #78350f !important;
    color: #fef9c3 !important;
}

.dark tr.row-due-past td {
    background-color: #991b1b !important;
    color: #fee2e2 !important;
}

#qEditor {
    height: 200px;
    overflow-y: auto;
}

.ql-container {
    height: 100%;
}

.pdf-page {
    background-color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 8px;
}

#LoadSpinner {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#LoadSpinner.active {
    opacity: 1;
    pointer-events: auto;
}