.lds-ring {
    color: #1c4c5b
}
.lds-ring,
.lds-ring div {
    box-sizing: border-box;
}
.lds-ring {
    display: inline-block;
    position: relative;
    width: 40px;
    height: 40px;
}
.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 32px;
    height: 32px;
    margin: 2px;
    border: 2px solid currentColor;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: currentColor transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}
@keyframes lds-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Balanced Damage component (plain CSS, replacing Tailwind utilities) */
.balanced-damage {
    border: 1px solid #D1D5DB; /* gray-300 */
    border-radius: 2px; /* rounded-sm */
    padding: 0.5rem; /* p-2 */
}
.balanced-damage-inner {
    text-align: center; /* text-center */

}
.balanced-damage-label {
    font-weight: 600; /* font-semibold */
    color: #1F2937; /* text-gray-800 */
    /* responsive sizing similar to text-xl sm:text-2xl md:text-[28px] */
    font-size: 1.25rem; /* 20px (text-xl) */
}
@media (min-width: 640px) { /* sm */
    .balanced-damage-label { font-size: 1.5rem; /* 24px */ }
}
@media (min-width: 768px) { /* md */
    .balanced-damage-label { font-size: 28px; }
}
.balanced-damage-value {
    font-weight: 700; /* font-bold */
    /* same responsive sizing */
    font-size: 1.25rem;
    color: #111827; /* default gray-900 */
}
@media (min-width: 640px) { .balanced-damage-value { font-size: 1.5rem; } }
@media (min-width: 768px) { .balanced-damage-value { font-size: 28px; } }
.balanced-damage-value.positive { color: #059669; /* emerald-600 */ }
.balanced-damage-value.negative { color: #DC2626; /* red-600 */ }
.balanced-damage-value.zero { color: #111827; /* gray-900 */ }

/* Horizontal Rule component (plain CSS) */
.hr-block { margin-top: 1.5rem; margin-bottom: 1.5rem; /* my-6 */ }
.hr-row { display: flex; align-items: center; }
.hr-line { border-top: 1px solid #D1D5DB; height: 0; }
.hr-line.flex { flex-grow: 1; }
.hr-line.small { width: 2rem; /* w-8 */ }
.hr-title { margin-left: 1rem; margin-right: 1rem; /* mx-4 */ font-size: 0.875rem; /* text-sm */ font-weight: 600; color: #4B5563; /* gray-600 */ letter-spacing: .05em; text-transform: uppercase; }
.hr-title.padded { padding-left: 0.5rem; padding-right: 0.5rem; /* px-2 */ }
.hr { margin-top: 1.5rem; margin-bottom: 1.5rem; border: 0; border-top: 1px solid #D1D5DB; }


.important-comment {
  border-left: 4px solid #f59e0b !important;
}

/* PAGINATION STYLES */
.fi-pagination-overview {
    display: block;
}

.fi-pagination > button[rel='next'] {
    display: none;
}

.fi-pagination > button[rel='prev'] {
    display: none;
}

.fi-pagination-items {
    display: flex;
}

.badgable-text-column > .grid > .truncate{
    overflow: visible;
}

@media screen and (max-width: 768px) {
    .fi-pagination {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fi-pagination-items {
        grid-column: span 2 / span 2;
        margin-left: auto;
        margin-right: auto;
        margin-top: 1rem;
    }

    .fi-pagination > div {
        margin-left: auto;
    }
}
/* E/O PAGINATION */

.order-record > div > div {
    flex-direction: column;
}

.order-record > div > div > div {
    width: 100%;
}

.order-record > div > div > div:nth-child(2) {
    justify-content: center;
}

.change-position-actions > td:last-child > div > div {
    max-width: 450px;
    flex-wrap: wrap !important;
    justify-content: center;
}

.doctor-orders-relation-manager-row > div > div >div:nth-child(2) {
    max-width: 450px;
    flex-wrap: wrap !important;
}

.examinations-relation-manager-row > td:last-child {
    min-width: 350px;
    max-width: 450px;
    flex-wrap: wrap !important;
}

.examinations-relation-manager-row > td:last-child > div {
    white-space: normal !important;
}

.examinations-relation-manager-row > td:last-child > div > div {
    flex-wrap: wrap !important;
}

.resp-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
}

.resp-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* STICKY RELATIONS */
.sticky-relations {
    position: sticky;
    top: 80px;
    height: fit-content;
    max-height: calc(100vh - 122px);
    width: 100%;
    max-width: 400px;
    overflow-y: auto;
}

.sticky-relations nav > span:first-of-type {
    display: none !important;
}

.sticky-relations nav {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    padding: 8px !important;
}

.sticky-relations nav ol li button {
    padding: 4px !important;
}

.adjudicate-table-row > div > div {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.adjudicate-table-row > div > div > div > div {
    padding-left: 8px !important;
    padding-right: 8px !important;
}
/* E/O STICKY RELATIONS */