/*
 * SOS warning record modal (scoped)
 * Applies only when the modal contains `table.sos-warning-record-grid`
 */

.modal:has(table.sos-warning-record-grid) {
    --sawrh-border: #f0dbc4;
    --sawrh-border-strong: #e6c9aa;
    --sawrh-bg: #fff7ee;
    --sawrh-surface: #fffdf9;
    --sawrh-title: #62442a;
    --sawrh-text: #7d5a3b;
    --sawrh-muted: #b58d69;
    --sawrh-shadow: 0 14px 32px rgba(112, 74, 34, 0.14);
}

.modal:has(table.sos-warning-record-grid) .modal-dialog {
    width: min(95vw, 1100px);
    max-width: 1100px;
    margin: 4vh auto;
}

.modal:has(table.sos-warning-record-grid) .modal-content {
    border: 1px solid var(--sawrh-border);
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--sawrh-bg) 0%, #ffffff 58%);
    box-shadow: var(--sawrh-shadow);
}

.modal:has(table.sos-warning-record-grid) .modal-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--sawrh-border);
    background: linear-gradient(120deg, rgba(214, 147, 77, 0.18), rgba(214, 147, 77, 0.06) 45%, #fffdf8 100%);
}

.modal:has(table.sos-warning-record-grid) .modal-title {
    color: var(--sawrh-title);
    font-weight: 700;
    letter-spacing: 0.2px;
}

.modal:has(table.sos-warning-record-grid) .modal-header .close {
    color: #ab855f;
    opacity: 0.9;
    text-shadow: none;
    transition: transform 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.modal:has(table.sos-warning-record-grid) .modal-header .close:hover {
    color: #8f6a45;
    opacity: 1;
    transform: rotate(90deg);
}

.modal:has(table.sos-warning-record-grid) .modal-body {
    padding: 0 16px 10px;
    max-height: 76vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: transparent;
    scrollbar-width: thin;
    scrollbar-color: rgba(138, 99, 59, 0.28) transparent;
}

.modal:has(table.sos-warning-record-grid) .modal-body::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.modal:has(table.sos-warning-record-grid) .modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal:has(table.sos-warning-record-grid) .modal-body::-webkit-scrollbar-thumb {
    background: rgba(138, 99, 59, 0.25);
    border-radius: 999px;
}

.modal:has(table.sos-warning-record-grid) .modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(138, 99, 59, 0.4);
}

.modal:has(table.sos-warning-record-grid) .grid-box {
    margin-bottom: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    overflow: visible;
}

.modal:has(table.sos-warning-record-grid) .grid-box .box-body {
    padding: 0;
    background: transparent;
    overflow: visible;
}

.modal:has(table.sos-warning-record-grid) .dcat-box {
    overflow: visible;
}

.modal:has(table.sos-warning-record-grid) .grid-box .table-wrapper,
.modal:has(table.sos-warning-record-grid) .dcat-box > .table-wrapper {
    border: 1px solid var(--sawrh-border);
    border-radius: 14px;
    background: var(--sawrh-surface);
    margin-top: 0 !important;
    overflow: visible !important;
}

table.sos-warning-record-grid {
    width: 100%;
    margin: 0;
    table-layout: fixed;
    background: transparent;
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
}

table.sos-warning-record-grid > thead > tr > th {
    position: sticky;
    top: 0;
    z-index: 30;
    border: 0 !important;
    background: #fcf2e7 !important;
    background-clip: padding-box;
    color: #8b5b33 !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    padding: 8px 12px 6px !important;
}

.modal:has(table.sos-warning-record-grid) .grid-column-header {
    display: inline-flex;
    align-items: center;
}

.modal:has(table.sos-warning-record-grid) .grid-column-header .grid-sort {
    width: 16px;
    height: 16px;
    margin: 0 0 0 6px;
    color: #c1a07c;
    text-decoration: none !important;
}

.modal:has(table.sos-warning-record-grid) .grid-column-header .grid-sort::before {
    font-size: 12px;
}

.modal:has(table.sos-warning-record-grid) .grid-column-header .grid-sort.active {
    color: #9a5e2b;
}

.modal:has(table.sos-warning-record-grid) .grid-column-header .grid-sort:not(.active)::before {
    content: "\e846";
}

.modal:has(table.sos-warning-record-grid) .filter-button-group {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0 0 12px !important;
    padding: 3px;
    border: 1px solid #efd8bc;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 244, 232, 0.98) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 10px 22px rgba(176, 118, 59, 0.10);
}

.modal:has(table.sos-warning-record-grid) .filter-button-group .btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #efbd86 !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg, #f8bf7c 0%, #ee9c42 56%, #d67e24 100%) !important;
    color: #fffdf9 !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    overflow: hidden;
    text-shadow: 0 1px 0 rgba(115, 69, 23, 0.16);
    box-shadow:
        0 12px 22px rgba(214, 126, 36, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        filter 0.18s ease,
        background 0.18s ease;
}

.modal:has(table.sos-warning-record-grid) .filter-button-group .btn::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 46%);
    pointer-events: none;
}

.modal:has(table.sos-warning-record-grid) .filter-button-group .btn::after {
    content: "";
    position: absolute;
    top: -70%;
    left: -24%;
    width: 42%;
    height: 240%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.40), transparent);
    transform: rotate(18deg) translateX(-140%);
    transition: transform 0.55s ease;
    pointer-events: none;
}

.modal:has(table.sos-warning-record-grid) .filter-button-group .btn:hover,
.modal:has(table.sos-warning-record-grid) .filter-button-group .btn:focus-visible {
    transform: translateY(-1px) scale(1.01);
    border-color: #eba85f !important;
    box-shadow:
        0 16px 28px rgba(214, 126, 36, 0.26),
        0 0 0 4px rgba(248, 191, 124, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    filter: saturate(1.04);
}

.modal:has(table.sos-warning-record-grid) .filter-button-group .btn:hover::after,
.modal:has(table.sos-warning-record-grid) .filter-button-group .btn:focus-visible::after {
    transform: rotate(18deg) translateX(360%);
}

.modal:has(table.sos-warning-record-grid) .filter-button-group .btn:focus,
.modal:has(table.sos-warning-record-grid) .filter-button-group .btn:focus-visible {
    outline: none;
    color: #fffdf9 !important;
}

.modal:has(table.sos-warning-record-grid) .filter-button-group .btn:active,
.modal:has(table.sos-warning-record-grid) .filter-button-group.show .btn:first-child {
    transform: translateY(1px) scale(0.985);
    background: linear-gradient(180deg, #f2ac5c 0%, #e48c32 100%) !important;
    box-shadow:
        0 7px 15px rgba(214, 126, 36, 0.18),
        inset 0 2px 5px rgba(122, 73, 24, 0.18);
    filter: saturate(1.06);
}

.modal:has(table.sos-warning-record-grid) .filter-button-group .btn .feather {
    font-size: 13px;
}

.modal:has(table.sos-warning-record-grid) .filter-button-group .filter-count {
    font-weight: 700;
    color: rgba(255, 253, 249, 0.88);
}

.modal:has(table.sos-warning-record-grid) .filter-button-group .btn + .btn {
    min-width: 38px;
    margin-left: 4px;
    padding: 0 10px;
    border-left: 1px solid #efbd86 !important;
}

.modal:has(table.sos-warning-record-grid--light) .dcat-box > .card-header,
.modal:has(table.sos-warning-record-grid--light) .grid-box > .card-header {
    margin-bottom: 12px;
    padding: 0 !important;
    border: 0 !important;
}

.modal:has(table.sos-warning-record-grid--light) .grid-selector {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    padding: 12px 16px;
    border: 1px solid #efd9bf;
    border-radius: 16px;
    background: linear-gradient(180deg, #fffaf3 0%, #fff4ea 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.modal:has(table.sos-warning-record-grid--light) .grid-selector .wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 10px;
    column-gap: 0;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    line-height: normal;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.modal:has(table.sos-warning-record-grid--light) .grid-selector .select-label {
    float: none;
    width: 84px;
    padding: 0;
    color: #8d6338;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    flex: 0 0 auto;
}

.modal:has(table.sos-warning-record-grid--light) .grid-selector .select-options {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 0;
    overflow: visible !important;
}

.modal:has(table.sos-warning-record-grid--light) .grid-selector .select-options ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    height: auto;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: visible !important;
}

.modal:has(table.sos-warning-record-grid--light) .grid-selector .select-options li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    float: none;
}

@keyframes sawrh-selector-active-pulse {
    0%,
    100% {
        box-shadow:
            0 12px 24px rgba(201, 131, 59, 0.26),
            0 0 0 0 rgba(248, 197, 124, 0.16),
            inset 0 1px 0 rgba(255, 255, 255, 0.24);
    }
    50% {
        box-shadow:
            0 14px 28px rgba(201, 131, 59, 0.32),
            0 0 0 7px rgba(248, 197, 124, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.24);
    }
}

.modal:has(table.sos-warning-record-grid--light) .grid-selector .select-options li > a:first-child {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid #eed7ba;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.96) 0%, rgba(255, 242, 227, 0.88) 100%);
    color: #8f6a45;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    box-shadow:
        0 3px 8px rgba(176, 118, 59, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transform: translateY(0) scale(1);
    will-change: transform, box-shadow;
    transition:
        transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.2s ease,
        color 0.18s ease,
        background 0.18s ease;
}

.modal:has(table.sos-warning-record-grid--light) .grid-selector .select-options li > a:first-child::before,
.modal:has(table.sos-warning-record-grid--light) .grid-selector .select-options li > a:first-child::after {
    content: "";
    position: absolute;
    pointer-events: none;
    transition:
        opacity 0.2s ease,
        transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal:has(table.sos-warning-record-grid--light) .grid-selector .select-options li > a:first-child::before {
    inset: 1px 14% auto;
    height: 48%;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0.9;
}

.modal:has(table.sos-warning-record-grid--light) .grid-selector .select-options li > a:first-child::after {
    left: 18%;
    right: 18%;
    bottom: -10px;
    height: 12px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(244, 181, 96, 0.34) 0%, rgba(244, 181, 96, 0) 72%);
    filter: blur(6px);
    opacity: 0;
    transform: translateY(4px) scale(0.82);
}

.modal:has(table.sos-warning-record-grid--light) .grid-selector .select-options li > a:first-child:hover {
    border-color: #e5b57d;
    background: linear-gradient(180deg, #fffaf2 0%, #ffe8cd 100%);
    color: #94551f;
    box-shadow:
        0 10px 18px rgba(196, 128, 56, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    transform: translateY(-2px) scale(1.035);
}

.modal:has(table.sos-warning-record-grid--light) .grid-selector .select-options li > a:first-child:hover::after {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.modal:has(table.sos-warning-record-grid--light) .grid-selector .select-options li > a:first-child:active {
    border-color: #d89245;
    background: linear-gradient(180deg, #f3c17d 0%, #e28e39 100%);
    color: #fffefb;
    box-shadow:
        inset 0 3px 8px rgba(125, 73, 19, 0.24),
        0 3px 8px rgba(177, 104, 36, 0.18);
    transform: translateY(1px) scale(0.965);
}

.modal:has(table.sos-warning-record-grid--light) .grid-selector .select-options li > a:first-child:active::before {
    opacity: 0.34;
    transform: translateY(2px);
}

.modal:has(table.sos-warning-record-grid--light) .grid-selector .select-options li > a:first-child:active::after {
    opacity: 1;
    transform: translateY(1px) scale(0.94);
}

.modal:has(table.sos-warning-record-grid--light) .grid-selector .select-options li > a:first-child:focus {
    outline: none;
}

.modal:has(table.sos-warning-record-grid--light) .grid-selector .select-options li > a:first-child:focus:not(:focus-visible):not(.active) {
    border-color: #e2b27a;
    background: linear-gradient(180deg, #f7c17a 0%, #eba04d 58%, #df8432 100%);
    color: #fffdf9;
    box-shadow:
        0 12px 24px rgba(201, 131, 59, 0.26),
        0 0 0 4px rgba(248, 197, 124, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    transform: translateY(0) scale(1);
}

.modal:has(table.sos-warning-record-grid--light) .grid-selector .select-options li > a:first-child:focus:not(:focus-visible):not(.active)::before {
    opacity: 0.28;
}

.modal:has(table.sos-warning-record-grid--light) .grid-selector .select-options li > a:first-child:focus:not(:focus-visible):not(.active)::after {
    opacity: 0.92;
    transform: translateY(0) scale(1);
}

.modal:has(table.sos-warning-record-grid--light) .grid-selector .select-options li > a:first-child:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(248, 197, 124, 0.26),
        0 10px 20px rgba(196, 128, 56, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.modal:has(table.sos-warning-record-grid--light) .grid-selector .select-options li > a:first-child.active {
    border-color: #e2b27a;
    background: linear-gradient(180deg, #f8c57c 0%, #eba14e 55%, #df8331 100%);
    color: #fffdf9;
    box-shadow:
        0 12px 24px rgba(201, 131, 59, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    animation: sawrh-selector-active-pulse 2.2s ease-in-out infinite;
}

.modal:has(table.sos-warning-record-grid--light) .grid-selector .select-options li > a:first-child.active::before {
    opacity: 0.28;
}

.modal:has(table.sos-warning-record-grid--light) .grid-selector .select-options li > a:first-child.active::after {
    opacity: 0.95;
    transform: translateY(0) scale(1);
}

.modal:has(table.sos-warning-record-grid--light) .grid-selector .select-options li > a:first-child.active:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow:
        0 16px 30px rgba(201, 131, 59, 0.32),
        0 0 0 6px rgba(248, 197, 124, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.modal:has(table.sos-warning-record-grid--light) .grid-selector .select-options a.add,
.modal:has(table.sos-warning-record-grid--light) .grid-selector .select-options a.clear {
    display: none !important;
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .dcat-box > .card-header,
.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-box > .card-header {
    margin-bottom: 12px;
    padding: 0 !important;
    border: 0 !important;
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-selector {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    padding: 12px 16px;
    border: 1px solid #efd9bf;
    border-radius: 16px;
    background: linear-gradient(180deg, #fffaf3 0%, #fff4ea 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-selector .wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 10px;
    column-gap: 0;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    line-height: normal;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-selector .select-label {
    float: none;
    width: 84px;
    padding: 0;
    color: #8d6338;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    flex: 0 0 auto;
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-selector .select-options {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 0;
    overflow: visible !important;
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-selector .select-options ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    height: auto;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: visible !important;
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-selector .select-options li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    float: none;
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-selector .select-options li > a:first-child {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid #eed7ba;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.96) 0%, rgba(255, 242, 227, 0.88) 100%);
    color: #8f6a45;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    box-shadow:
        0 3px 8px rgba(176, 118, 59, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transform: translateY(0) scale(1);
    will-change: transform, box-shadow;
    transition:
        transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.2s ease,
        color 0.18s ease,
        background 0.18s ease;
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-selector .select-options li > a:first-child::before,
.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-selector .select-options li > a:first-child::after {
    content: "";
    position: absolute;
    pointer-events: none;
    transition:
        opacity 0.2s ease,
        transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-selector .select-options li > a:first-child::before {
    inset: 1px 14% auto;
    height: 48%;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0.9;
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-selector .select-options li > a:first-child::after {
    left: 18%;
    right: 18%;
    bottom: -10px;
    height: 12px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(244, 181, 96, 0.34) 0%, rgba(244, 181, 96, 0) 72%);
    filter: blur(6px);
    opacity: 0;
    transform: translateY(4px) scale(0.82);
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-selector .select-options li > a:first-child:hover {
    border-color: #e5b57d;
    background: linear-gradient(180deg, #fffaf2 0%, #ffe8cd 100%);
    color: #94551f;
    box-shadow:
        0 10px 18px rgba(196, 128, 56, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    transform: translateY(-2px) scale(1.035);
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-selector .select-options li > a:first-child:hover::after {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-selector .select-options li > a:first-child:active {
    border-color: #d89245;
    background: linear-gradient(180deg, #f3c17d 0%, #e28e39 100%);
    color: #fffefb;
    box-shadow:
        inset 0 3px 8px rgba(125, 73, 19, 0.24),
        0 3px 8px rgba(177, 104, 36, 0.18);
    transform: translateY(1px) scale(0.965);
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-selector .select-options li > a:first-child:active::before {
    opacity: 0.34;
    transform: translateY(2px);
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-selector .select-options li > a:first-child:active::after {
    opacity: 1;
    transform: translateY(1px) scale(0.94);
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-selector .select-options li > a:first-child:focus {
    outline: none;
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-selector .select-options li > a:first-child:focus:not(:focus-visible):not(.active) {
    border-color: #e2b27a;
    background: linear-gradient(180deg, #f7c17a 0%, #eba04d 58%, #df8432 100%);
    color: #fffdf9;
    box-shadow:
        0 12px 24px rgba(201, 131, 59, 0.26),
        0 0 0 4px rgba(248, 197, 124, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    transform: translateY(0) scale(1);
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-selector .select-options li > a:first-child:focus:not(:focus-visible):not(.active)::before {
    opacity: 0.28;
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-selector .select-options li > a:first-child:focus:not(:focus-visible):not(.active)::after {
    opacity: 0.92;
    transform: translateY(0) scale(1);
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-selector .select-options li > a:first-child:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(248, 197, 124, 0.26),
        0 10px 20px rgba(196, 128, 56, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-selector .select-options li > a:first-child.active {
    border-color: #e2b27a;
    background: linear-gradient(180deg, #f8c57c 0%, #eba14e 55%, #df8331 100%);
    color: #fffdf9;
    box-shadow:
        0 12px 24px rgba(201, 131, 59, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    animation: sawrh-selector-active-pulse 2.2s ease-in-out infinite;
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-selector .select-options li > a:first-child.active::before {
    opacity: 0.28;
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-selector .select-options li > a:first-child.active::after {
    opacity: 0.95;
    transform: translateY(0) scale(1);
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-selector .select-options li > a:first-child.active:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow:
        0 16px 30px rgba(201, 131, 59, 0.32),
        0 0 0 6px rgba(248, 197, 124, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-selector .select-options a.add,
.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-selector .select-options a.clear {
    display: none !important;
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .filter-box {
    margin: 12px 0 10px !important;
    padding: 12px 16px !important;
    border: 1px solid #efd9bf !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, #fffaf3 0%, #fff4ea 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 8px 20px rgba(177, 118, 59, 0.06) !important;
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .filter-box .card-body {
    padding: 0 !important;
    background: transparent !important;
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-filter-form .row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    margin: 0 -6px !important;
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-filter-form .filter-input[class*="col-sm-"] {
    flex: 1 1 460px;
    width: auto;
    max-width: none;
    margin-bottom: 10px;
    padding: 0 6px;
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-filter-form .form-group {
    margin-bottom: 0;
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-filter-form .input-group.input-group-sm {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-filter-form .input-group-prepend {
    display: flex;
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-filter-form .input-group-prepend .input-group-text {
    border: 1px solid #eed7ba;
    border-right: 0;
    border-radius: 14px 0 0 14px;
    background: #fff7ed;
    color: #8d6338;
    font-size: 13px;
    font-weight: 700;
    padding: 0 12px;
    box-shadow: none;
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-filter-form .input-group > .form-control {
    height: 38px;
    border-color: #eed7ba;
    background: #fffdf9;
    color: #7c5a39;
    font-size: 13px;
    padding: 8px 12px;
    box-shadow: none;
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-filter-form .input-group > .form-control:first-of-type {
    border-radius: 0;
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-filter-form .input-group > .form-control:last-child {
    border-left: 0;
    border-radius: 0 14px 14px 0;
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-filter-form .input-group-addon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 0 10px;
    border-top: 1px solid #eed7ba;
    border-bottom: 1px solid #eed7ba;
    background: #fff8ef;
    color: #b0865c;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-filter-form .input-group > .form-control:focus {
    border-color: #e3b27a;
    box-shadow: 0 0 0 3px rgba(248, 197, 124, 0.12);
    position: relative;
    z-index: 2;
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-filter-form .btn-group {
    display: inline-flex;
    align-items: center;
    margin: 0 6px 10px !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-filter-form .btn-group.default,
.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-filter-form .btn-group.btn-group-sm.default.btn-mini {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-filter-form .btn-group .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    box-shadow: none;
    transition: all 0.2s ease;
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-filter-form .btn-group .btn.submit {
    border-color: #e2b27a;
    background: linear-gradient(180deg, #f8c57c 0%, #eba14e 55%, #df8331 100%);
    color: #fffdf9;
    box-shadow: 0 10px 20px rgba(201, 131, 59, 0.18);
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-filter-form .btn-group .btn.submit:hover {
    border-color: #d99b55;
    background: linear-gradient(180deg, #f6bc65 0%, #e7943f 100%);
    transform: translateY(-1px);
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-filter-form .btn-group .btn.reset {
    border: 1px solid #eed7ba;
    background: #fffdf9;
    color: #8f6a45;
}

.modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-filter-form .btn-group .btn.reset:hover {
    border-color: #e1b88c;
    background: #fff4e8;
    color: #8d5420;
}

@media (max-width: 768px) {
    .modal:has(table.sos-warning-record-grid--sleep-radar, table.sos-warning-record-grid--people-radar) .grid-filter-form .filter-input[class*="col-sm-"] {
        flex-basis: 100%;
    }
}

table.sos-warning-record-grid > thead > tr > th:nth-child(1) {
    width: 7%;
}

table.sos-warning-record-grid > thead > tr > th:nth-child(2) {
    width: 10%;
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

table.sos-warning-record-grid > thead > tr > th:nth-child(3) {
    width: 14%;
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

table.sos-warning-record-grid > thead > tr > th:nth-child(4) {
    width: 20%;
}

table.sos-warning-record-grid > thead > tr > th:nth-child(5) {
    width: 9%;
}

table.sos-warning-record-grid > thead > tr > th:nth-child(6) {
    width: 20%;
}

table.sos-warning-record-grid > thead > tr > th:nth-child(7) {
    width: 20%;
}

table.sos-warning-record-grid.sos-warning-record-grid--light > thead > tr > th:nth-child(1) {
    width: 6%;
}

table.sos-warning-record-grid.sos-warning-record-grid--light > thead > tr > th:nth-child(2) {
    width: 10%;
}

table.sos-warning-record-grid.sos-warning-record-grid--light > thead > tr > th:nth-child(3) {
    width: 14%;
}

table.sos-warning-record-grid.sos-warning-record-grid--light > thead > tr > th:nth-child(4) {
    width: 16%;
}

table.sos-warning-record-grid.sos-warning-record-grid--light > thead > tr > th:nth-child(5) {
    width: 13%;
}

table.sos-warning-record-grid.sos-warning-record-grid--light > thead > tr > th:nth-child(6) {
    width: 9%;
}

table.sos-warning-record-grid.sos-warning-record-grid--light > thead > tr > th:nth-child(7) {
    width: 8%;
}

table.sos-warning-record-grid.sos-warning-record-grid--light > thead > tr > th:nth-child(8) {
    width: 12%;
}

table.sos-warning-record-grid.sos-warning-record-grid--light > thead > tr > th:nth-child(9) {
    width: 12%;
}

table.sos-warning-record-grid.sos-warning-record-grid--co-gas {
    table-layout: auto;
}

table.sos-warning-record-grid.sos-warning-record-grid--co-gas > thead > tr > th:nth-child(2),
table.sos-warning-record-grid.sos-warning-record-grid--co-gas > thead > tr > th:nth-child(3),
table.sos-warning-record-grid.sos-warning-record-grid--co-gas > tbody > tr[data-key] > td:nth-child(2),
table.sos-warning-record-grid.sos-warning-record-grid--co-gas > tbody > tr[data-key] > td:nth-child(3) {
    width: 1%;
    min-width: max-content;
    padding-left: 10px !important;
    padding-right: 10px !important;
    white-space: nowrap;
}

table.sos-warning-record-grid.sos-warning-record-grid--co-gas > thead > tr > th:nth-child(4),
table.sos-warning-record-grid.sos-warning-record-grid--co-gas > tbody > tr[data-key] > td:nth-child(4),
table.sos-warning-record-grid.sos-warning-record-grid--co-gas > thead > tr > th:nth-child(6),
table.sos-warning-record-grid.sos-warning-record-grid--co-gas > tbody > tr[data-key] > td:nth-child(6) {
    white-space: nowrap;
}

table.sos-warning-record-grid.sos-warning-record-grid--light > thead > tr > th:nth-child(2),
table.sos-warning-record-grid.sos-warning-record-grid--light > thead > tr > th:nth-child(3),
table.sos-warning-record-grid.sos-warning-record-grid--light > thead > tr > th:nth-child(6),
table.sos-warning-record-grid.sos-warning-record-grid--light > thead > tr > th:nth-child(7),
table.sos-warning-record-grid.sos-warning-record-grid--light > thead > tr > th:nth-child(9) {
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--th > thead > tr > th:nth-child(1) {
    width: 13%;
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--th > thead > tr > th:nth-child(2) {
    width: 16%;
}

table.sos-warning-record-grid.sos-warning-record-grid--th > thead > tr > th:nth-child(3),
table.sos-warning-record-grid.sos-warning-record-grid--th > thead > tr > th:nth-child(4),
table.sos-warning-record-grid.sos-warning-record-grid--th > thead > tr > th:nth-child(6),
table.sos-warning-record-grid.sos-warning-record-grid--th > thead > tr > th:nth-child(7) {
    width: 9%;
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--th > thead > tr > th:nth-child(5),
table.sos-warning-record-grid.sos-warning-record-grid--th > thead > tr > th:nth-child(8) {
    width: 10%;
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--th > thead > tr > th:nth-child(9) {
    width: 15%;
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--door > thead > tr > th:nth-child(1) {
    width: 10%;
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--door > thead > tr > th:nth-child(2) {
    width: 14%;
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--door > thead > tr > th:nth-child(3) {
    width: 12%;
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--door > thead > tr > th:nth-child(4) {
    width: 15%;
}

table.sos-warning-record-grid.sos-warning-record-grid--door > thead > tr > th:nth-child(5) {
    width: 19%;
}

table.sos-warning-record-grid.sos-warning-record-grid--door > thead > tr > th:nth-child(6),
table.sos-warning-record-grid.sos-warning-record-grid--door > thead > tr > th:nth-child(8) {
    width: 10%;
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--door > thead > tr > th:nth-child(7) {
    width: 10%;
}

table.sos-warning-record-grid.sos-warning-record-grid--sleep-radar > thead > tr > th:nth-child(1) {
    width: 7%;
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--sleep-radar > thead > tr > th:nth-child(2) {
    width: 18%;
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--sleep-radar > thead > tr > th:nth-child(3),
table.sos-warning-record-grid.sos-warning-record-grid--sleep-radar > thead > tr > th:nth-child(4),
table.sos-warning-record-grid.sos-warning-record-grid--sleep-radar > thead > tr > th:nth-child(5) {
    width: 11%;
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--sleep-radar > thead > tr > th:nth-child(6) {
    width: 17%;
}

table.sos-warning-record-grid.sos-warning-record-grid--sleep-radar > thead > tr > th:nth-child(7) {
    width: 10%;
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--sleep-radar > thead > tr > th:nth-child(8) {
    width: 15%;
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--people-radar > thead > tr > th:nth-child(1) {
    width: 7%;
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--people-radar > thead > tr > th:nth-child(2) {
    width: 14%;
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--people-radar > thead > tr > th:nth-child(3) {
    width: 26%;
    text-align: left !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--people-radar > thead > tr > th:nth-child(4) {
    width: 11%;
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--people-radar > thead > tr > th:nth-child(5) {
    width: 17%;
}

table.sos-warning-record-grid.sos-warning-record-grid--people-radar > thead > tr > th:nth-child(6) {
    width: 10%;
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--people-radar > thead > tr > th:nth-child(7) {
    width: 15%;
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--blood-glucose > thead > tr > th:nth-child(1),
table.sos-warning-record-grid.sos-warning-record-grid--blood-pressure > thead > tr > th:nth-child(1) {
    width: 9%;
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--blood-glucose > thead > tr > th:nth-child(2) {
    width: 17%;
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--blood-glucose > thead > tr > th:nth-child(3) {
    width: 22%;
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--blood-glucose > thead > tr > th:nth-child(4) {
    width: 18%;
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--blood-glucose > thead > tr > th:nth-child(5) {
    width: 34%;
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--blood-pressure > thead > tr > th:nth-child(2),
table.sos-warning-record-grid.sos-warning-record-grid--blood-pressure > thead > tr > th:nth-child(3),
table.sos-warning-record-grid.sos-warning-record-grid--blood-pressure > thead > tr > th:nth-child(4) {
    width: 20%;
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--blood-pressure > thead > tr > th:nth-child(5) {
    width: 31%;
    text-align: center !important;
}

table.sos-warning-record-grid > tbody > tr[data-key] > td {
    background: #fffdfa !important;
    border-top: 1px solid #f4e2cd !important;
    border-bottom: 1px solid #f4e2cd !important;
    border-left: 0 !important;
    border-right: 0 !important;
    padding: 14px 12px !important;
    color: var(--sawrh-text);
    font-size: 14px;
    line-height: 1.35;
    vertical-align: middle !important;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

table.sos-warning-record-grid > tbody > tr > td {
    vertical-align: middle !important;
}

table.sos-warning-record-grid > tbody > tr[data-key] > td:first-child {
    border-left: 1px solid #f4e2cd !important;
    border-radius: 12px 0 0 12px;
}

table.sos-warning-record-grid > tbody > tr[data-key] > td:last-child {
    border-right: 1px solid #f4e2cd !important;
    border-radius: 0 12px 12px 0;
}

table.sos-warning-record-grid > tbody > tr[data-key]:hover > td {
    background: #fff8f1 !important;
    border-color: #ebcfaf !important;
}

table.sos-warning-record-grid > tbody > tr[data-key] > td:nth-child(1) {
    color: #8e6b4a;
    font-weight: 600;
}

table.sos-warning-record-grid > tbody > tr[data-key] > td:nth-child(2) {
    text-align: center !important;
}

table.sos-warning-record-grid > tbody > tr[data-key] > td:nth-child(3) {
    text-align: center !important;
}

table.sos-warning-record-grid > tbody > tr > td:nth-child(2),
table.sos-warning-record-grid > tbody > tr > td:nth-child(3) {
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

table.sos-warning-record-grid > tbody > tr > td:nth-child(2) .sawrh-chip,
table.sos-warning-record-grid > tbody > tr > td:nth-child(3) .sawrh-chip {
    margin-left: auto;
    margin-right: auto;
}

table.sos-warning-record-grid > tbody > tr[data-key] > td:nth-child(4),
table.sos-warning-record-grid > tbody > tr[data-key] > td:nth-child(6) {
    color: #6f4f32;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.1px;
    white-space: nowrap;
}

table.sos-warning-record-grid > tbody > tr[data-key] > td:nth-child(5),
table.sos-warning-record-grid > tbody > tr[data-key] > td:nth-child(7) {
    text-align: center;
}

table.sos-warning-record-grid > tbody > tr[data-key] > td:nth-child(5) a,
table.sos-warning-record-grid > tbody > tr[data-key] > td:nth-child(7) a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 28px;
    min-width: 78px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #edcfac;
    background: #fff4e8;
    color: #a16833;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

table.sos-warning-record-grid > tbody > tr[data-key] > td:nth-child(5) a:hover,
table.sos-warning-record-grid > tbody > tr[data-key] > td:nth-child(7) a:hover {
    border-color: #e1b88c;
    background: #ffe9d2;
    color: #8d5420;
    box-shadow: 0 6px 14px rgba(177, 118, 59, 0.18);
}

table.sos-warning-record-grid.sos-warning-record-grid--light > tbody > tr > td:nth-child(2),
table.sos-warning-record-grid.sos-warning-record-grid--light > tbody > tr > td:nth-child(3),
table.sos-warning-record-grid.sos-warning-record-grid--light > tbody > tr > td:nth-child(6),
table.sos-warning-record-grid.sos-warning-record-grid--light > tbody > tr > td:nth-child(7),
table.sos-warning-record-grid.sos-warning-record-grid--light > tbody > tr > td:nth-child(9) {
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--light > tbody > tr > td:nth-child(2),
table.sos-warning-record-grid.sos-warning-record-grid--light > tbody > tr > td:nth-child(3),
table.sos-warning-record-grid.sos-warning-record-grid--light > tbody > tr > td:nth-child(6) {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--light > tbody > tr > td:nth-child(2) .sawrh-chip,
table.sos-warning-record-grid.sos-warning-record-grid--light > tbody > tr > td:nth-child(3) .sawrh-chip,
table.sos-warning-record-grid.sos-warning-record-grid--light > tbody > tr > td:nth-child(6) .sawrh-chip {
    margin-left: auto;
    margin-right: auto;
}

table.sos-warning-record-grid.sos-warning-record-grid--light > tbody > tr[data-key] > td:nth-child(4) {
    color: #7b5a3b;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    white-space: normal;
    word-break: break-word;
}

table.sos-warning-record-grid.sos-warning-record-grid--light > tbody > tr[data-key] > td:nth-child(5),
table.sos-warning-record-grid.sos-warning-record-grid--light > tbody > tr[data-key] > td:nth-child(8) {
    color: #6f4f32;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.1px;
    text-align: left !important;
    white-space: nowrap;
}

table.sos-warning-record-grid.sos-warning-record-grid--light > tbody > tr[data-key] > td:nth-child(7) a,
table.sos-warning-record-grid.sos-warning-record-grid--light > tbody > tr[data-key] > td:nth-child(9) a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 28px;
    min-width: 78px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #edcfac;
    background: #fff4e8;
    color: #a16833;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

table.sos-warning-record-grid.sos-warning-record-grid--light > tbody > tr[data-key] > td:nth-child(7) a:hover,
table.sos-warning-record-grid.sos-warning-record-grid--light > tbody > tr[data-key] > td:nth-child(9) a:hover {
    border-color: #e1b88c;
    background: #ffe9d2;
    color: #8d5420;
    box-shadow: 0 6px 14px rgba(177, 118, 59, 0.18);
}

table.sos-warning-record-grid.sos-warning-record-grid--th > tbody > tr > td:nth-child(1),
table.sos-warning-record-grid.sos-warning-record-grid--th > tbody > tr > td:nth-child(3),
table.sos-warning-record-grid.sos-warning-record-grid--th > tbody > tr > td:nth-child(4),
table.sos-warning-record-grid.sos-warning-record-grid--th > tbody > tr > td:nth-child(5),
table.sos-warning-record-grid.sos-warning-record-grid--th > tbody > tr > td:nth-child(6),
table.sos-warning-record-grid.sos-warning-record-grid--th > tbody > tr > td:nth-child(7),
table.sos-warning-record-grid.sos-warning-record-grid--th > tbody > tr > td:nth-child(8),
table.sos-warning-record-grid.sos-warning-record-grid--th > tbody > tr > td:nth-child(9) {
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--th > tbody > tr > td:nth-child(1),
table.sos-warning-record-grid.sos-warning-record-grid--th > tbody > tr > td:nth-child(3),
table.sos-warning-record-grid.sos-warning-record-grid--th > tbody > tr > td:nth-child(4),
table.sos-warning-record-grid.sos-warning-record-grid--th > tbody > tr > td:nth-child(5),
table.sos-warning-record-grid.sos-warning-record-grid--th > tbody > tr > td:nth-child(6),
table.sos-warning-record-grid.sos-warning-record-grid--th > tbody > tr > td:nth-child(7),
table.sos-warning-record-grid.sos-warning-record-grid--th > tbody > tr > td:nth-child(8) {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--th > tbody > tr > td:nth-child(1) .sawrh-chip,
table.sos-warning-record-grid.sos-warning-record-grid--th > tbody > tr > td:nth-child(3) .sawrh-metric,
table.sos-warning-record-grid.sos-warning-record-grid--th > tbody > tr > td:nth-child(4) .sawrh-metric,
table.sos-warning-record-grid.sos-warning-record-grid--th > tbody > tr > td:nth-child(5) .sawrh-metric,
table.sos-warning-record-grid.sos-warning-record-grid--th > tbody > tr > td:nth-child(6) .sawrh-metric,
table.sos-warning-record-grid.sos-warning-record-grid--th > tbody > tr > td:nth-child(7) .sawrh-metric,
table.sos-warning-record-grid.sos-warning-record-grid--th > tbody > tr > td:nth-child(8) .sawrh-metric {
    margin-left: auto;
    margin-right: auto;
}

table.sos-warning-record-grid.sos-warning-record-grid--th > tbody > tr[data-key] > td:nth-child(2) {
    color: #6f4f32;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.1px;
    white-space: nowrap;
}

table.sos-warning-record-grid.sos-warning-record-grid--th > tbody > tr[data-key] > td:nth-child(9) {
    color: #9a6f46;
    font-weight: 600;
}

table.sos-warning-record-grid.sos-warning-record-grid--th > tbody > tr[data-key] > td:nth-child(9) a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 28px;
    min-width: 78px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #edcfac;
    background: #fff4e8;
    color: #a16833;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

table.sos-warning-record-grid.sos-warning-record-grid--th > tbody > tr[data-key] > td:nth-child(9) a:hover {
    border-color: #e1b88c;
    background: #ffe9d2;
    color: #8d5420;
    box-shadow: 0 6px 14px rgba(177, 118, 59, 0.18);
}

table.sos-warning-record-grid.sos-warning-record-grid--door > tbody > tr > td:nth-child(2),
table.sos-warning-record-grid.sos-warning-record-grid--door > tbody > tr > td:nth-child(3),
table.sos-warning-record-grid.sos-warning-record-grid--door > tbody > tr > td:nth-child(6),
table.sos-warning-record-grid.sos-warning-record-grid--door > tbody > tr > td:nth-child(8) {
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--door > tbody > tr > td:nth-child(2),
table.sos-warning-record-grid.sos-warning-record-grid--door > tbody > tr > td:nth-child(3) {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--door > tbody > tr > td:nth-child(2) .sawrh-chip,
table.sos-warning-record-grid.sos-warning-record-grid--door > tbody > tr > td:nth-child(3) .sawrh-chip {
    margin-left: auto;
    margin-right: auto;
}

table.sos-warning-record-grid.sos-warning-record-grid--door > tbody > tr[data-key] > td:nth-child(4),
table.sos-warning-record-grid.sos-warning-record-grid--door > tbody > tr[data-key] > td:nth-child(7) {
    color: #6f4f32;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.1px;
    text-align: left !important;
    white-space: nowrap;
}

table.sos-warning-record-grid.sos-warning-record-grid--door > tbody > tr[data-key] > td:nth-child(5) {
    color: #7b5a3b;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    text-align: left !important;
    white-space: normal;
    word-break: break-word;
}

table.sos-warning-record-grid.sos-warning-record-grid--door > tbody > tr[data-key] > td:nth-child(8) {
    color: #9a6f46;
    font-weight: 600;
}

table.sos-warning-record-grid.sos-warning-record-grid--door > tbody > tr[data-key] > td:nth-child(6) a,
table.sos-warning-record-grid.sos-warning-record-grid--door > tbody > tr[data-key] > td:nth-child(8) a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 28px;
    min-width: 78px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #edcfac;
    background: #fff4e8;
    color: #a16833;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

table.sos-warning-record-grid.sos-warning-record-grid--door > tbody > tr[data-key] > td:nth-child(6) a:hover,
table.sos-warning-record-grid.sos-warning-record-grid--door > tbody > tr[data-key] > td:nth-child(8) a:hover {
    border-color: #e1b88c;
    background: #ffe9d2;
    color: #8d5420;
    box-shadow: 0 6px 14px rgba(177, 118, 59, 0.18);
}

table.sos-warning-record-grid.sos-warning-record-grid--sleep-radar > tbody > tr > td:nth-child(2),
table.sos-warning-record-grid.sos-warning-record-grid--sleep-radar > tbody > tr > td:nth-child(3),
table.sos-warning-record-grid.sos-warning-record-grid--sleep-radar > tbody > tr > td:nth-child(4),
table.sos-warning-record-grid.sos-warning-record-grid--sleep-radar > tbody > tr > td:nth-child(5),
table.sos-warning-record-grid.sos-warning-record-grid--sleep-radar > tbody > tr > td:nth-child(7),
table.sos-warning-record-grid.sos-warning-record-grid--sleep-radar > tbody > tr > td:nth-child(8) {
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--sleep-radar > tbody > tr > td:nth-child(2),
table.sos-warning-record-grid.sos-warning-record-grid--sleep-radar > tbody > tr > td:nth-child(3),
table.sos-warning-record-grid.sos-warning-record-grid--sleep-radar > tbody > tr > td:nth-child(4),
table.sos-warning-record-grid.sos-warning-record-grid--sleep-radar > tbody > tr > td:nth-child(5) {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--sleep-radar > tbody > tr > td:nth-child(2) .sawrh-chip,
table.sos-warning-record-grid.sos-warning-record-grid--sleep-radar > tbody > tr > td:nth-child(3) .sawrh-metric,
table.sos-warning-record-grid.sos-warning-record-grid--sleep-radar > tbody > tr > td:nth-child(4) .sawrh-metric,
table.sos-warning-record-grid.sos-warning-record-grid--sleep-radar > tbody > tr > td:nth-child(5) .sawrh-metric {
    margin-left: auto;
    margin-right: auto;
}

table.sos-warning-record-grid.sos-warning-record-grid--sleep-radar > tbody > tr[data-key] > td:nth-child(6) {
    color: #6f4f32;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.1px;
    text-align: left !important;
    white-space: nowrap;
}

table.sos-warning-record-grid.sos-warning-record-grid--sleep-radar > tbody > tr[data-key] > td:nth-child(8) {
    color: #9a6f46;
    font-weight: 600;
}

table.sos-warning-record-grid.sos-warning-record-grid--sleep-radar > tbody > tr[data-key] > td:nth-child(7) a,
table.sos-warning-record-grid.sos-warning-record-grid--sleep-radar > tbody > tr[data-key] > td:nth-child(8) a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 28px;
    min-width: 78px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #edcfac;
    background: #fff4e8;
    color: #a16833;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

table.sos-warning-record-grid.sos-warning-record-grid--sleep-radar > tbody > tr[data-key] > td:nth-child(7) a:hover,
table.sos-warning-record-grid.sos-warning-record-grid--sleep-radar > tbody > tr[data-key] > td:nth-child(8) a:hover {
    border-color: #e1b88c;
    background: #ffe9d2;
    color: #8d5420;
    box-shadow: 0 6px 14px rgba(177, 118, 59, 0.18);
}

table.sos-warning-record-grid.sos-warning-record-grid--people-radar > tbody > tr > td:nth-child(2),
table.sos-warning-record-grid.sos-warning-record-grid--people-radar > tbody > tr > td:nth-child(4),
table.sos-warning-record-grid.sos-warning-record-grid--people-radar > tbody > tr > td:nth-child(6),
table.sos-warning-record-grid.sos-warning-record-grid--people-radar > tbody > tr > td:nth-child(7) {
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--people-radar > tbody > tr > td:nth-child(2),
table.sos-warning-record-grid.sos-warning-record-grid--people-radar > tbody > tr > td:nth-child(4) {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--people-radar > tbody > tr > td:nth-child(2) .sawrh-chip,
table.sos-warning-record-grid.sos-warning-record-grid--people-radar > tbody > tr > td:nth-child(4) .sawrh-metric {
    margin-left: auto;
    margin-right: auto;
}

table.sos-warning-record-grid.sos-warning-record-grid--people-radar > tbody > tr > td:nth-child(3) {
    color: #7b5a3b;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    text-align: left !important;
    white-space: normal;
    word-break: break-word;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--people-radar > tbody > tr[data-key] > td:nth-child(5) {
    color: #6f4f32;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.1px;
    text-align: left !important;
    white-space: nowrap;
}

table.sos-warning-record-grid.sos-warning-record-grid--people-radar > tbody > tr[data-key] > td:nth-child(7) {
    color: #9a6f46;
    font-weight: 600;
}

table.sos-warning-record-grid.sos-warning-record-grid--people-radar > tbody > tr[data-key] > td:nth-child(6) a,
table.sos-warning-record-grid.sos-warning-record-grid--people-radar > tbody > tr[data-key] > td:nth-child(7) a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 28px;
    min-width: 78px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #edcfac;
    background: #fff4e8;
    color: #a16833;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

table.sos-warning-record-grid.sos-warning-record-grid--people-radar > tbody > tr[data-key] > td:nth-child(6) a:hover,
table.sos-warning-record-grid.sos-warning-record-grid--people-radar > tbody > tr[data-key] > td:nth-child(7) a:hover {
    border-color: #e1b88c;
    background: #ffe9d2;
    color: #8d5420;
    box-shadow: 0 6px 14px rgba(177, 118, 59, 0.18);
}

table.sos-warning-record-grid.sos-warning-record-grid--blood-glucose > thead > tr > th,
table.sos-warning-record-grid.sos-warning-record-grid--blood-pressure > thead > tr > th {
    padding-left: 12px !important;
    padding-right: 12px !important;
    white-space: normal;
}

table.sos-warning-record-grid.sos-warning-record-grid--blood-glucose > tbody > tr > td,
table.sos-warning-record-grid.sos-warning-record-grid--blood-pressure > tbody > tr > td {
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--blood-glucose > tbody > tr > td:nth-child(2),
table.sos-warning-record-grid.sos-warning-record-grid--blood-glucose > tbody > tr > td:nth-child(3),
table.sos-warning-record-grid.sos-warning-record-grid--blood-glucose > tbody > tr > td:nth-child(4),
table.sos-warning-record-grid.sos-warning-record-grid--blood-pressure > tbody > tr > td:nth-child(2),
table.sos-warning-record-grid.sos-warning-record-grid--blood-pressure > tbody > tr > td:nth-child(3),
table.sos-warning-record-grid.sos-warning-record-grid--blood-pressure > tbody > tr > td:nth-child(4) {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--blood-glucose > tbody > tr > td .sawrh-chip,
table.sos-warning-record-grid.sos-warning-record-grid--blood-glucose > tbody > tr > td .sawrh-metric,
table.sos-warning-record-grid.sos-warning-record-grid--blood-pressure > tbody > tr > td .sawrh-chip,
table.sos-warning-record-grid.sos-warning-record-grid--blood-pressure > tbody > tr > td .sawrh-metric {
    margin-left: auto;
    margin-right: auto;
}

table.sos-warning-record-grid.sos-warning-record-grid--blood-glucose > tbody > tr[data-key] > td:nth-child(5),
table.sos-warning-record-grid.sos-warning-record-grid--blood-pressure > tbody > tr[data-key] > td:nth-child(5) {
    color: #6f4f32;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.1px;
    white-space: nowrap;
}

table.sos-warning-record-grid > tbody > tr:not([data-key]) > td {
    background: transparent !important;
    border: 0 !important;
    padding: 0 10px 8px !important;
}

table.sos-warning-record-grid > tbody > tr:not([data-key]) .table {
    margin: 0;
    border: 1px solid #ecd6bd;
    border-radius: 10px;
    overflow: hidden;
    background: #fff9f2;
}

table.sos-warning-record-grid > tbody > tr:not([data-key]) .table > thead > tr > th {
    background: #fffaf4 !important;
    color: #ba956f !important;
    border-bottom: 1px solid #eddac5;
    border-top: 0;
    font-size: 12px;
    font-weight: 700;
    padding: 9px 10px;
    white-space: nowrap;
}

table.sos-warning-record-grid > tbody > tr:not([data-key]) .table > tbody > tr > td {
    border-top: 0;
    border-bottom: 1px solid #f3e2cf;
    color: #7e5e40;
    font-size: 13px;
    padding: 9px 10px;
    background: #fffdf9;
}

table.sos-warning-record-grid > tbody > tr:not([data-key]) .table > tbody > tr:last-child > td {
    border-bottom: 0;
}

table.sos-warning-record-grid > tbody > tr:not([data-key]) .sawrh-reply-detail .table > thead > tr > th:nth-child(2),
table.sos-warning-record-grid > tbody > tr:not([data-key]) .sawrh-reply-detail .table > thead > tr > th:nth-child(3),
table.sos-warning-record-grid > tbody > tr:not([data-key]) .sawrh-reply-detail .table > tbody > tr > td:nth-child(2),
table.sos-warning-record-grid > tbody > tr:not([data-key]) .sawrh-reply-detail .table > tbody > tr > td:nth-child(3) {
    text-align: center;
}

.sawrh-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 26px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
}

.sawrh-chip--status {
    border: 1px solid #f0c8a1;
    background: #fff2e2;
    color: #9a5e2b;
}

.sawrh-chip--trigger {
    border: 1px solid #dfd9c6;
    background: #f7f4ea;
    color: #7e7463;
}

.sawrh-metric {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
}

.sawrh-metric--limit {
    border: 1px solid #e7dccb;
    background: #fbf7f1;
    color: #8f7a62;
}

.sawrh-metric--alert {
    border: 1px solid #efc38f;
    background: linear-gradient(180deg, #fff2e0 0%, #ffe5c3 100%);
    color: #a85a1f;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.sawrh-metric--sensor {
    border: 1px solid #edd5b7;
    background: linear-gradient(180deg, #fff8ef 0%, #ffecd4 100%);
    color: #a06732;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.sawrh-record-time {
    color: #6f4f32;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.modal:has(table.sos-warning-record-grid) .grid-box .box-footer {
    border-top: 1px solid #e7d4bf;
    margin-top: 2px;
    padding: 8px 4px 6px;
    background: linear-gradient(180deg, rgba(255, 249, 240, 0.95), rgba(255, 249, 240, 1));
    min-height: 48px;
    position: sticky;
    bottom: 0;
    z-index: 2;
}

.modal:has(table.sos-warning-record-grid) .grid-box .box-footer .pull-left {
    color: #9e7f61;
    font-weight: 600;
    line-height: 32px;
}

.modal:has(table.sos-warning-record-grid) .grid-box .pagination {
    margin: 0;
}

.modal:has(table.sos-warning-record-grid) .grid-box .pagination > li > a,
.modal:has(table.sos-warning-record-grid) .grid-box .pagination > li > span {
    min-width: 34px;
    height: 34px;
    line-height: 20px;
    margin-left: 6px;
    border-radius: 999px !important;
    border-color: #e2c8ad;
    color: #8a6b4f;
}

.modal:has(table.sos-warning-record-grid) .grid-box .pagination > .active > a,
.modal:has(table.sos-warning-record-grid) .grid-box .pagination > .active > span {
    border-color: #ce8b4f !important;
    background: linear-gradient(135deg, #d28f54, #be7b40);
    color: #ffffff !important;
    box-shadow: 0 8px 16px rgba(190, 123, 64, 0.24);
}

.modal:has(table.sos-warning-record-grid--alarm-main) .modal-dialog {
    width: min(96vw, 1180px);
    max-width: 1180px;
}

.modal:has(table.sos-warning-record-grid--alarm-main) .dcat-box > .card-header,
.modal:has(table.sos-warning-record-grid--alarm-main) .grid-box > .card-header {
    margin-bottom: 12px;
    padding: 0 !important;
    border: 0 !important;
}

.modal:has(table.sos-warning-record-grid--alarm-main) .grid-selector,
.modal:has(table.sos-warning-record-grid--alarm-main) .filter-box {
    border: 1px solid #efd9bf !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, #fffaf3 0%, #fff4ea 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 8px 20px rgba(177, 118, 59, 0.06) !important;
}

.modal:has(table.sos-warning-record-grid--alarm-main) .grid-selector {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0 0 14px;
    padding: 12px 16px;
}

.modal:has(table.sos-warning-record-grid--alarm-main) .grid-selector .wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 10px;
    column-gap: 0;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: visible !important;
    line-height: normal;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.modal:has(table.sos-warning-record-grid--alarm-main) .grid-selector .select-label {
    float: none;
    width: 76px;
    padding: 0;
    color: #8d6338;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    flex: 0 0 auto;
}

.modal:has(table.sos-warning-record-grid--alarm-main) .grid-selector .select-options {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 0;
    overflow: visible !important;
}

.modal:has(table.sos-warning-record-grid--alarm-main) .grid-selector .select-options ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible !important;
    list-style: none;
}

.modal:has(table.sos-warning-record-grid--alarm-main) .grid-selector .select-options li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    float: none;
    margin: 0;
}

.modal:has(table.sos-warning-record-grid--alarm-main) .grid-selector .select-options li > a:first-child {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    overflow: hidden;
    border: 1px solid #eed7ba;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.96) 0%, rgba(255, 242, 227, 0.88) 100%);
    color: #8f6a45;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    box-shadow:
        0 3px 8px rgba(176, 118, 59, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transition:
        transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.2s ease,
        color 0.18s ease,
        background 0.18s ease;
}

.modal:has(table.sos-warning-record-grid--alarm-main) .grid-selector .select-options li > a:first-child:hover {
    border-color: #e5b57d;
    background: linear-gradient(180deg, #fffaf2 0%, #ffe8cd 100%);
    color: #94551f;
    box-shadow:
        0 10px 18px rgba(196, 128, 56, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    transform: translateY(-2px) scale(1.035);
}

.modal:has(table.sos-warning-record-grid--alarm-main) .grid-selector .select-options li > a:first-child:focus {
    outline: none;
}

.modal:has(table.sos-warning-record-grid--alarm-main) .grid-selector .select-options li > a:first-child.active,
.modal:has(table.sos-warning-record-grid--alarm-main) .grid-selector .select-options li > a:first-child:focus:not(:focus-visible):not(.active) {
    border-color: #e2b27a;
    background: linear-gradient(180deg, #f8c57c 0%, #eba14e 55%, #df8331 100%);
    color: #fffdf9;
    box-shadow:
        0 12px 24px rgba(201, 131, 59, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.modal:has(table.sos-warning-record-grid--alarm-main) .grid-selector .select-options a.add,
.modal:has(table.sos-warning-record-grid--alarm-main) .grid-selector .select-options a.clear {
    display: none !important;
}

.modal:has(table.sos-warning-record-grid--alarm-main) .filter-box {
    margin: 12px 0 10px !important;
    padding: 12px 16px !important;
}

.modal:has(table.sos-warning-record-grid--alarm-main) .filter-box .card-body {
    padding: 0 !important;
    background: transparent !important;
}

.modal:has(table.sos-warning-record-grid--alarm-main) .grid-filter-form .row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    margin: 0 -6px !important;
}

.modal:has(table.sos-warning-record-grid--alarm-main) .grid-filter-form .filter-input[class*="col-sm-"] {
    flex: 1 1 430px;
    width: auto;
    max-width: none;
    margin-bottom: 10px;
    padding: 0 6px;
}

.modal:has(table.sos-warning-record-grid--alarm-main) .grid-filter-form .form-group {
    margin-bottom: 0;
}

.modal:has(table.sos-warning-record-grid--alarm-main) .grid-filter-form .input-group.input-group-sm {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
}

.modal:has(table.sos-warning-record-grid--alarm-main) .grid-filter-form .input-group-prepend {
    display: flex;
}

.modal:has(table.sos-warning-record-grid--alarm-main) .grid-filter-form .input-group-prepend .input-group-text {
    padding: 0 12px;
    border: 1px solid #eed7ba;
    border-right: 0;
    border-radius: 14px 0 0 14px;
    background: #fff7ed;
    color: #8d6338;
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
}

.modal:has(table.sos-warning-record-grid--alarm-main) .grid-filter-form .input-group > .form-control {
    height: 38px;
    padding: 8px 12px;
    border-color: #eed7ba;
    background: #fffdf9;
    color: #7c5a39;
    font-size: 13px;
    box-shadow: none;
}

.modal:has(table.sos-warning-record-grid--alarm-main) .grid-filter-form .input-group > .form-control:first-of-type {
    border-radius: 0;
}

.modal:has(table.sos-warning-record-grid--alarm-main) .grid-filter-form .input-group > .form-control:last-child {
    border-left: 0;
    border-radius: 0 14px 14px 0;
}

.modal:has(table.sos-warning-record-grid--alarm-main) .grid-filter-form .input-group-addon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 0 10px;
    border-top: 1px solid #eed7ba;
    border-bottom: 1px solid #eed7ba;
    background: #fff8ef;
    color: #b0865c;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.modal:has(table.sos-warning-record-grid--alarm-main) .grid-filter-form .input-group > .form-control:focus {
    position: relative;
    z-index: 2;
    border-color: #e3b27a;
    box-shadow: 0 0 0 3px rgba(248, 197, 124, 0.12);
}

.modal:has(table.sos-warning-record-grid--alarm-main) .grid-filter-form .btn-group,
.modal:has(table.sos-warning-record-grid--alarm-main) .grid-filter-form .btn-group.default,
.modal:has(table.sos-warning-record-grid--alarm-main) .grid-filter-form .btn-group.btn-group-sm.default.btn-mini {
    display: inline-flex;
    align-items: center;
    height: auto !important;
    margin: 0 6px 10px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.modal:has(table.sos-warning-record-grid--alarm-main) .grid-filter-form .btn-group .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    box-shadow: none;
    transition: all 0.2s ease;
}

.modal:has(table.sos-warning-record-grid--alarm-main) .grid-filter-form .btn-group .btn.submit {
    border-color: #e2b27a;
    background: linear-gradient(180deg, #f8c57c 0%, #eba14e 55%, #df8331 100%);
    color: #fffdf9;
    box-shadow: 0 10px 20px rgba(201, 131, 59, 0.18);
}

.modal:has(table.sos-warning-record-grid--alarm-main) .grid-filter-form .btn-group .btn.submit:hover {
    border-color: #d99b55;
    background: linear-gradient(180deg, #f6bc65 0%, #e7943f 100%);
    transform: translateY(-1px);
}

.modal:has(table.sos-warning-record-grid--alarm-main) .grid-filter-form .btn-group .btn.reset {
    border: 1px solid #eed7ba;
    background: #fffdf9;
    color: #8f6a45;
}

.modal:has(table.sos-warning-record-grid--alarm-main) .grid-filter-form .btn-group .btn.reset:hover {
    border-color: #e1b88c;
    background: #fff4e8;
    color: #8d5420;
}

.modal:has(table.sos-warning-record-grid--alarm-main) .grid-box,
.modal:has(table.sos-warning-record-grid--alarm-main) .grid-box .box-body,
.modal:has(table.sos-warning-record-grid--alarm-main) .grid-box .table-wrapper,
.modal:has(table.sos-warning-record-grid--alarm-main) .table-responsive {
    overflow-x: hidden !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--alarm-main {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > thead > tr > th,
table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > tbody > tr[data-key] > td {
    box-sizing: border-box;
    min-width: 0;
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 13px;
}

table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > thead > tr > th {
    white-space: nowrap;
}

table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > thead > tr > th:nth-child(1) {
    width: 7%;
}

table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > thead > tr > th:nth-child(2) {
    width: 9%;
}

table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > thead > tr > th:nth-child(3) {
    width: 13%;
}

table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > thead > tr > th:nth-child(4) {
    width: 13%;
}

table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > thead > tr > th:nth-child(5) {
    width: 14%;
}

table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > thead > tr > th:nth-child(6) {
    width: 10%;
}

table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > thead > tr > th:nth-child(7) {
    width: 16%;
}

table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > thead > tr > th:nth-child(8) {
    width: 18%;
}

table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > thead > tr > th:nth-child(1),
table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > thead > tr > th:nth-child(2),
table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > thead > tr > th:nth-child(3),
table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > thead > tr > th:nth-child(4),
table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > thead > tr > th:nth-child(6),
table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > tbody > tr[data-key] > td:nth-child(1),
table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > tbody > tr[data-key] > td:nth-child(2),
table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > tbody > tr[data-key] > td:nth-child(3),
table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > tbody > tr[data-key] > td:nth-child(4),
table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > tbody > tr[data-key] > td:nth-child(6) {
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > tbody > tr[data-key] > td:nth-child(2),
table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > tbody > tr[data-key] > td:nth-child(3),
table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > tbody > tr[data-key] > td:nth-child(5),
table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > tbody > tr[data-key] > td:nth-child(6),
table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > tbody > tr[data-key] > td:nth-child(7),
table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > tbody > tr[data-key] > td:nth-child(8) {
    color: #6f4f32;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > tbody > tr[data-key] > td:nth-child(5),
table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > tbody > tr[data-key] > td:nth-child(7),
table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > tbody > tr[data-key] > td:nth-child(8) {
    text-align: left !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > tbody > tr[data-key] > td:nth-child(3) {
    white-space: nowrap !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--alarm-main .sawrh-chip {
    max-width: 100%;
    height: auto;
    min-height: 24px;
    padding: 4px 8px;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
}

table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > tbody > tr[data-key] > td:nth-child(4) .sawrh-chip,
table.sos-warning-record-grid.sos-warning-record-grid--alarm-main > tbody > tr[data-key] > td:nth-child(6) .sawrh-chip {
    margin-left: auto;
    margin-right: auto;
}

table.sos-warning-record-grid.sos-warning-record-grid--alarm-main-elder > thead > tr > th:nth-child(1) {
    width: 6%;
}

table.sos-warning-record-grid.sos-warning-record-grid--alarm-main-elder > thead > tr > th:nth-child(2) {
    width: 8%;
}

table.sos-warning-record-grid.sos-warning-record-grid--alarm-main-elder > thead > tr > th:nth-child(3) {
    width: 12%;
}

table.sos-warning-record-grid.sos-warning-record-grid--alarm-main-elder > thead > tr > th:nth-child(4) {
    width: 11%;
}

table.sos-warning-record-grid.sos-warning-record-grid--alarm-main-elder > thead > tr > th:nth-child(5) {
    width: 14%;
}

table.sos-warning-record-grid.sos-warning-record-grid--alarm-main-elder > thead > tr > th:nth-child(6) {
    width: 9%;
}

table.sos-warning-record-grid.sos-warning-record-grid--alarm-main-elder > thead > tr > th:nth-child(7) {
    width: 14%;
}

table.sos-warning-record-grid.sos-warning-record-grid--alarm-main-elder > thead > tr > th:nth-child(8) {
    width: 17%;
}

table.sos-warning-record-grid.sos-warning-record-grid--alarm-main-elder > thead > tr > th:nth-child(9) {
    width: 9%;
}

table.sos-warning-record-grid.sos-warning-record-grid--alarm-main-elder > thead > tr > th.sawrh-alarm-main-ai-col,
table.sos-warning-record-grid.sos-warning-record-grid--alarm-main-elder > tbody > tr[data-key] > td.sawrh-alarm-main-ai-col {
    text-align: center !important;
    white-space: nowrap !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-light > thead > tr > th:nth-child(1) {
    width: 7%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-light > thead > tr > th:nth-child(2) {
    width: 14%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-light > thead > tr > th:nth-child(3) {
    width: 13%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-light > thead > tr > th:nth-child(4) {
    width: 18%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-light > thead > tr > th:nth-child(5) {
    width: 15%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-light > thead > tr > th:nth-child(6) {
    width: 10%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-light > thead > tr > th:nth-child(7) {
    width: 13%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-light > thead > tr > th:nth-child(8) {
    width: 10%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-light > thead > tr > th:nth-child(1),
table.sos-warning-record-grid.sos-warning-record-grid--institution-light > thead > tr > th:nth-child(2),
table.sos-warning-record-grid.sos-warning-record-grid--institution-light > thead > tr > th:nth-child(3),
table.sos-warning-record-grid.sos-warning-record-grid--institution-light > thead > tr > th:nth-child(6),
table.sos-warning-record-grid.sos-warning-record-grid--institution-light > thead > tr > th:nth-child(8),
table.sos-warning-record-grid.sos-warning-record-grid--institution-light > tbody > tr[data-key] > td:nth-child(1),
table.sos-warning-record-grid.sos-warning-record-grid--institution-light > tbody > tr[data-key] > td:nth-child(2),
table.sos-warning-record-grid.sos-warning-record-grid--institution-light > tbody > tr[data-key] > td:nth-child(3),
table.sos-warning-record-grid.sos-warning-record-grid--institution-light > tbody > tr[data-key] > td:nth-child(6),
table.sos-warning-record-grid.sos-warning-record-grid--institution-light > tbody > tr[data-key] > td:nth-child(8) {
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-light > tbody > tr[data-key] > td:nth-child(4),
table.sos-warning-record-grid.sos-warning-record-grid--institution-light > tbody > tr[data-key] > td:nth-child(7) {
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-light > tbody > tr[data-key] > td:nth-child(5) {
    color: #6f4f32;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-light .sawrh-chip {
    max-width: 100%;
    height: auto;
    min-height: 24px;
    padding: 4px 8px;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-light > tbody > tr[data-key] > td:nth-child(2) .sawrh-chip,
table.sos-warning-record-grid.sos-warning-record-grid--institution-light > tbody > tr[data-key] > td:nth-child(3) .sawrh-chip,
table.sos-warning-record-grid.sos-warning-record-grid--institution-light > tbody > tr[data-key] > td:nth-child(6) .sawrh-chip {
    margin-left: auto;
    margin-right: auto;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-light > tbody > tr[data-key] > td:nth-child(7) a {
    display: inline;
    height: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #6f4f32;
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
    box-shadow: none;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-light > tbody > tr[data-key] > td:nth-child(7) a:hover {
    background: transparent;
    color: #a16833;
    box-shadow: none;
    transform: none;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-light > tbody > tr[data-key] > td:nth-child(8) a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 28px;
    min-width: 78px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #edcfac;
    background: #fff4e8;
    color: #a16833;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-light > tbody > tr[data-key] > td:nth-child(8) a:hover {
    border-color: #dea870;
    background: #ffead5;
    color: #875522;
    box-shadow: 0 6px 14px rgba(151, 93, 38, 0.13);
    transform: translateY(-1px);
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > thead > tr > th:nth-child(1) {
    width: 9%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > thead > tr > th:nth-child(2) {
    width: 21%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > thead > tr > th:nth-child(3) {
    width: 25%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > thead > tr > th:nth-child(4) {
    width: 27%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > thead > tr > th:nth-child(5) {
    width: 18%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > thead > tr > th,
table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > tbody > tr[data-key] > td {
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 .sawrh-chip {
    max-width: 100%;
    height: auto;
    min-height: 24px;
    padding: 4px 8px;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > tbody > tr[data-key] > td:nth-child(2) .sawrh-chip,
table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > tbody > tr[data-key] > td:nth-child(3) .sawrh-chip {
    margin-left: auto;
    margin-right: auto;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > tbody > tr[data-key] > td:nth-child(4) {
    color: #6f4f32;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > tbody > tr[data-key] > td:nth-child(5) a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 28px;
    min-width: 78px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #edcfac;
    background: #fff4e8;
    color: #a16833;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > tbody > tr[data-key] > td:nth-child(5) a:hover {
    border-color: #dea870;
    background: #ffead5;
    color: #875522;
    box-shadow: 0 6px 14px rgba(151, 93, 38, 0.13);
    transform: translateY(-1px);
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > thead > tr > th.sawrh-ch4-col-id {
    width: 9%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > thead > tr > th.sawrh-ch4-col-device {
    width: 21%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > thead > tr > th.sawrh-ch4-col-event {
    width: 25%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > thead > tr > th.sawrh-ch4-col-time {
    width: 27%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > thead > tr > th.sawrh-ch4-col-ai {
    width: 18%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > thead > tr > th.sawrh-ch4-col-time,
table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > tbody > tr[data-key] > td.sawrh-ch4-col-time,
table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > thead > tr > th.sawrh-ch4-col-ai,
table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > tbody > tr[data-key] > td.sawrh-ch4-col-ai {
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > tbody > tr[data-key] > td.sawrh-ch4-col-time {
    color: #6f4f32;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > tbody > tr[data-key] > td.sawrh-ch4-col-ai {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > tbody > tr[data-key] > td.sawrh-ch4-col-ai > div,
table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > tbody > tr[data-key] > td.sawrh-ch4-col-ai .grid-expand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > tbody > tr[data-key] > td.sawrh-ch4-col-ai .grid-expand > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 28px;
    min-width: 78px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #edcfac;
    background: #fff4e8;
    color: #a16833;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > tbody > tr[data-key] > td.sawrh-ch4-col-ai .grid-expand > a:hover {
    border-color: #dea870;
    background: #ffead5;
    color: #875522;
    box-shadow: 0 6px 14px rgba(151, 93, 38, 0.13);
    transform: translateY(-1px);
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > tbody > tr > td.sawrh-ch4-col-time,
table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > tbody > tr > td:nth-child(4) {
    color: #6f4f32;
    font-size: 13px;
    font-weight: 600;
    text-align: center !important;
    white-space: nowrap !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > tbody > tr > td.sawrh-ch4-col-ai,
table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > tbody > tr > td:nth-child(5) {
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > tbody > tr > td.sawrh-ch4-col-ai > div,
table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > tbody > tr > td:nth-child(5) > div,
table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > tbody > tr > td.sawrh-ch4-col-ai .grid-expand,
table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > tbody > tr > td:nth-child(5) .grid-expand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > tbody > tr > td.sawrh-ch4-col-ai .grid-expand > a,
table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > tbody > tr > td:nth-child(5) .grid-expand > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 28px;
    min-width: 78px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #edcfac;
    background: #fff4e8;
    color: #a16833;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > tbody > tr > td.sawrh-ch4-col-ai .grid-expand > a:hover,
table.sos-warning-record-grid.sos-warning-record-grid--institution-ch4 > tbody > tr > td:nth-child(5) .grid-expand > a:hover {
    border-color: #dea870;
    background: #ffead5;
    color: #875522;
    box-shadow: 0 6px 14px rgba(151, 93, 38, 0.13);
    transform: translateY(-1px);
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-door > thead > tr > th.sawrh-door-col-id {
    width: 8%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-door > thead > tr > th.sawrh-door-col-device {
    width: 18%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-door > thead > tr > th.sawrh-door-col-event {
    width: 20%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-door > thead > tr > th.sawrh-door-col-time {
    width: 20%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-door > thead > tr > th.sawrh-door-col-reason {
    width: 20%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-door > thead > tr > th.sawrh-door-col-ai {
    width: 14%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-door > thead > tr > th,
table.sos-warning-record-grid.sos-warning-record-grid--institution-door > tbody > tr > td {
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-door .sawrh-chip {
    max-width: 100%;
    height: auto;
    min-height: 24px;
    padding: 4px 8px;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-door > tbody > tr > td.sawrh-door-col-device .sawrh-chip,
table.sos-warning-record-grid.sos-warning-record-grid--institution-door > tbody > tr > td.sawrh-door-col-event .sawrh-chip {
    margin-left: auto;
    margin-right: auto;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-door > tbody > tr > td.sawrh-door-col-time {
    color: #6f4f32;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-door > tbody > tr > td.sawrh-door-col-reason {
    color: #7b5a3b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-door > tbody > tr > td.sawrh-door-col-ai {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-door > tbody > tr > td.sawrh-door-col-ai > div,
table.sos-warning-record-grid.sos-warning-record-grid--institution-door > tbody > tr > td.sawrh-door-col-ai .grid-expand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-door > tbody > tr > td.sawrh-door-col-ai .grid-expand > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 28px;
    min-width: 78px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #edcfac;
    background: #fff4e8;
    color: #a16833;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-door > tbody > tr > td.sawrh-door-col-ai .grid-expand > a:hover {
    border-color: #dea870;
    background: #ffead5;
    color: #875522;
    box-shadow: 0 6px 14px rgba(151, 93, 38, 0.13);
    transform: translateY(-1px);
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-fall-radar > thead > tr > th.sawrh-fall-col-id {
    width: 8%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-fall-radar > thead > tr > th.sawrh-fall-col-event {
    width: 22%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-fall-radar > thead > tr > th.sawrh-fall-col-error {
    width: 20%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-fall-radar > thead > tr > th.sawrh-fall-col-distance {
    width: 14%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-fall-radar > thead > tr > th.sawrh-fall-col-time {
    width: 22%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-fall-radar > thead > tr > th.sawrh-fall-col-ai {
    width: 14%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-fall-radar > thead > tr > th,
table.sos-warning-record-grid.sos-warning-record-grid--institution-fall-radar > tbody > tr > td {
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-fall-radar .sawrh-chip {
    max-width: 100%;
    height: auto;
    min-height: 24px;
    padding: 4px 8px;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-fall-radar > tbody > tr > td.sawrh-fall-col-event .sawrh-chip,
table.sos-warning-record-grid.sos-warning-record-grid--institution-fall-radar > tbody > tr > td.sawrh-fall-col-error .sawrh-chip {
    margin-left: auto;
    margin-right: auto;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-fall-radar > tbody > tr > td.sawrh-fall-col-distance,
table.sos-warning-record-grid.sos-warning-record-grid--institution-fall-radar > tbody > tr > td.sawrh-fall-col-time {
    color: #6f4f32;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-fall-radar > tbody > tr > td.sawrh-fall-col-ai {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-fall-radar > tbody > tr > td.sawrh-fall-col-ai > div,
table.sos-warning-record-grid.sos-warning-record-grid--institution-fall-radar > tbody > tr > td.sawrh-fall-col-ai .grid-expand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-fall-radar > tbody > tr > td.sawrh-fall-col-ai .grid-expand > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 28px;
    min-width: 78px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #edcfac;
    background: #fff4e8;
    color: #a16833;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-fall-radar > tbody > tr > td.sawrh-fall-col-ai .grid-expand > a:hover {
    border-color: #dea870;
    background: #ffead5;
    color: #875522;
    box-shadow: 0 6px 14px rgba(151, 93, 38, 0.13);
    transform: translateY(-1px);
}

.modal:has(table.sos-warning-record-grid--institution-sleep-radar) .modal-dialog {
    width: min(96vw, 1080px);
    max-width: 1080px;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-sleep-radar > thead > tr > th.sawrh-sleep-col-id {
    width: 7%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-sleep-radar > thead > tr > th.sawrh-sleep-col-event {
    width: 20%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-sleep-radar > thead > tr > th.sawrh-sleep-col-distance,
table.sos-warning-record-grid.sos-warning-record-grid--institution-sleep-radar > thead > tr > th.sawrh-sleep-col-heart,
table.sos-warning-record-grid.sos-warning-record-grid--institution-sleep-radar > thead > tr > th.sawrh-sleep-col-breathe {
    width: 12%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-sleep-radar > thead > tr > th.sawrh-sleep-col-time {
    width: 22%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-sleep-radar > thead > tr > th.sawrh-sleep-col-ai {
    width: 15%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-sleep-radar > thead > tr > th,
table.sos-warning-record-grid.sos-warning-record-grid--institution-sleep-radar > tbody > tr > td {
    text-align: center !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-sleep-radar .sawrh-chip {
    max-width: 100%;
    height: auto;
    min-height: 24px;
    padding: 4px 8px;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-sleep-radar > tbody > tr > td.sawrh-sleep-col-event .sawrh-chip {
    margin-left: auto;
    margin-right: auto;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-sleep-radar > tbody > tr > td.sawrh-sleep-col-distance,
table.sos-warning-record-grid.sos-warning-record-grid--institution-sleep-radar > tbody > tr > td.sawrh-sleep-col-heart,
table.sos-warning-record-grid.sos-warning-record-grid--institution-sleep-radar > tbody > tr > td.sawrh-sleep-col-breathe,
table.sos-warning-record-grid.sos-warning-record-grid--institution-sleep-radar > tbody > tr > td.sawrh-sleep-col-time {
    color: #6f4f32;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-sleep-radar > tbody > tr > td.sawrh-sleep-col-ai {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-sleep-radar > tbody > tr > td.sawrh-sleep-col-ai > div,
table.sos-warning-record-grid.sos-warning-record-grid--institution-sleep-radar > tbody > tr > td.sawrh-sleep-col-ai .grid-expand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-sleep-radar > tbody > tr > td.sawrh-sleep-col-ai .grid-expand > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 28px;
    min-width: 78px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #edcfac;
    background: #fff4e8;
    color: #a16833;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

table.sos-warning-record-grid.sos-warning-record-grid--institution-sleep-radar > tbody > tr > td.sawrh-sleep-col-ai .grid-expand > a:hover {
    border-color: #dea870;
    background: #ffead5;
    color: #875522;
    box-shadow: 0 6px 14px rgba(151, 93, 38, 0.13);
    transform: translateY(-1px);
}

@media (max-width: 980px) {
    .modal:has(table.sos-warning-record-grid) .modal-dialog {
        width: 94vw;
        max-width: 94vw;
    }

    table.sos-warning-record-grid {
    table-layout: auto;
    }
}
