html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
    margin: 0;
    overflow-x: hidden;
}

.page {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.page.phone-view {
    flex-direction: column !important;
}

.page.phone-view .web-content {
    display: none;
}

main {
    flex: 1;
    min-width: 0;
}

.content {
    padding-top: 1.1rem;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
    min-width: 0;
    overflow: hidden;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

@media (max-width: 640.98px) {
    .web-content {
        visibility: hidden;
    }
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        height: 100vh;
        position: sticky;
        top: 0;
    }
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.top-row {
    flex-shrink: 0;
}

.devices-box-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
    overflow: hidden;
}

.devices-box-content {
    flex: 1;
    overflow: auto;
    /* margin: 1rem; */
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

.devices-box-content .search-container {
     padding: 1rem 0 1rem 0;
}

.devices-box-content .search-container-show {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.75);
    padding: 1rem;
    border-radius: 0 0 8px 8px;
}

/* Scrollbar styling for webkit browsers (Chrome, Safari, Edge) */
.devices-box-content::-webkit-scrollbar {
    width: 8px;
}

.devices-box-content::-webkit-scrollbar-track {
    background: transparent;
}

.devices-box-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
}

.devices-box-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.7);
}

.devices-box-phone-item {
    position: relative;
    background: #000;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 1px;
    box-shadow: 0 0 5px rgba(0, 242, 255, 0.2);
}

/* The "Electricity" layer */
.devices-box-phone-item::before {
    content: '';
    position: absolute;
    width: 250%;
    height: 250%;
    /* High-tech blue gradient with a sharp "electric" light blue highlight */
    background: conic-gradient(
        rgba(128, 160, 255, 1) 0deg, 
        rgba(128, 160, 255, 1) 30deg, 
        rgba(5, 39, 103, 1) 60deg, 
        rgba(128, 160, 255, 1) 90deg,
        rgba(128, 160, 255, 1) 120deg, 
        rgba(5, 39, 103, 1) 150deg, 
        rgba(128, 160, 255, 1) 180deg,
        rgba(128, 160, 255, 1) 210deg, 
        rgba(5, 39, 103, 1) 240deg, 
        rgba(128, 160, 255, 1) 270deg,
        rgba(128, 160, 255, 1) 300deg, 
        rgba(5, 39, 103, 1) 330deg, 
        rgba(128, 160, 255, 1) 360deg 
    );
    animation:
        devices-border-rotate var(--devices-border-rotate-speed, 15s) linear infinite,
        devices-border-pulse var(--devices-border-pulse-speed, 7s) ease-in-out infinite;
}

/* The inner surface to cover the middle of the gradient */
.devices-box-phone-item::after {
    content: '';
    position: absolute;
    inset: 2px; /* This defines the border thickness */
    background: #1a1a42; /* Darker tech blue/black */
    border-radius: 9px;
    z-index: 1;
}

.devices-box-phone-item-content {
    padding: 5px; /* Match the inset of the ::after layer to ensure content is within the "border" */
    z-index: 2;
    position: relative;
    width: 100%;
}

@keyframes devices-border-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes devices-border-pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.table tr:has(.devices-box-phone-item) {
    border: none;
}

.table tr:has(.devices-box-phone-item) td {
    background-color: transparent !important;
}

.device-view-actions {
    display: flex;
    gap: 8px;
}

.device-view-actions button {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
}

.device-partition-name-phone-container {
    position: absolute;
    bottom: 0.5em; /* Adjust to match your -1.7em transform */
    width: 100%;
    display: flex;
    justify-content: space-between; /* Pushes Name to left, Status to right */
    padding: 0 0.5em;
    pointer-events: none;
}

.device-partition-name-phone {
    font-weight: bold;
    color: black;
    text-shadow: -1px -1px 5px #FF0, 1px -1px 5px #FF0, -1px 1px 5px #FF0, 1px 1px 5px #FF0;
    font-size: 120%;
    /* THE MAGIC: Allow this to shrink and show "..." if it hits the status */
    flex-shrink: 1;
    overflow: hidden;
    text-overflow: ellipsis; /* Adds "..." if name is too long */
    white-space: nowrap;
    margin-right: 0; /* Gap converted to padding to prevent shadow clip */
    padding-right: 1em; /* Use padding instead of margin for the gap */
    padding-left: 0.3em;
    margin-left: -0.3em;
}

.device-partition-status-phone {
    font-weight: bold;
    color: black;
    text-shadow: -1px -1px 5px #FF0, 1px -1px 5px #FF0, -1px 1px 5px #FF0, 1px 1px 5px #FF0;
    font-size: 120%;
    /* THE MAGIC: Never let the status shrink or wrap */
    flex-shrink: 0;
    white-space: nowrap;
}

._device-partition-name-phone {
    font-weight: bold;
    color: black;
    text-shadow: -1px -1px 5px #FF0, 1px -1px 5px #FF0, -1px 1px 5px #FF0, 1px 1px 5px #FF0;
    position: absolute;
    top: 100%;
    left: 0%;
    transform: translate(0.3em, -1.7em);
    font-size: 120%;
}

._device-partition-status-phone {
    font-weight: bold;
    color: black;
    text-shadow: -1px -1px 5px #FF0, 1px -1px 5px #FF0, -1px 1px 5px #FF0, 1px 1px 5px #FF0;
    position: absolute;
    top: 100%;
    right: 0%;
    transform: translate(-0.3em, -1.7em);
    font-size: 120%;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64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zMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDg2IDY2LjAxODMuMjYzLjU3NiA2Ni4wMTgzIDI3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.form-rounded {
    border-radius: 1rem;
}

.dropdown-hdr {
    padding: 2px 10px;
    position: relative;
}

.dropdown-trigger {
    position: absolute;
    display: flex;
    align-items: center;
    right: 0;
    top: 0;
    bottom: 0;
}

.dropdown-arrow {
    border: solid black;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 2px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    margin-right: 10px;
}

.dropdown-content {
    position: absolute;
    background-color: #f1f1f1;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.table thead > tr > th.sorting,
.table thead > tr > th.sorting_asc,
.table thead > tr > th.sorting_desc {
    padding-right: 30px;
    cursor: pointer;
    color: #08F;
    font-weight: bold;
}

/*.table thead > tr > th.sorting:hover,
.table thead > tr > th.sorting_asc:hover,
.table thead > tr > th.sorting_desc:hover {
    text-decoration: underline;
}*/

.table thead > tr > th.sorting::after,
.table thead > tr > th.sorting_asc::after,
.table thead > tr > th.sorting_desc::after {
    content: "";
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 0 3px;
    background: transparent;
    text-decoration: none;
}

.table thead > tr > th.sorting_asc::after {
    border-top: solid 7px #08F;
    border-bottom-width: 0;
}

    .table thead > tr > th.sorting_desc::after {
        border-bottom: solid 7px #08F;
        border-top-width: 0;
    }

.table > tbody > tr.table-active-blue > td {
    background: #479cc8;
    color: #fff;
}

.table > tbody > tr.table-hover-blue:hover > td {
    background: #cef;
    color: #479cc8;
}

.paginator-page {
    display: inline-block;
    margin: 0 0.3125rem;
    padding: 0.3125rem 0.6875rem;
    border-radius: 4px;
    background-color: #e6ecef;
    color: #6d787d;
    cursor: pointer;
}

.paginator-page-active {
    background-color: #ffffff;
    color: #ff6d41;
    border: 1px solid #e6ecef;
    padding: 0.25rem 0.625rem;
    cursor: default;
}

.prod-table-hdr {
    background: #6495ED;
    color: white;
}

a.language-link {
    color: white !important;
    vertical-align: middle;
    margin: auto 0 auto 5px;
    cursor: pointer
}

a.language-link:hover {
    text-decoration: underline !important;
}

.invisible {
    visibility: hidden;
}

.status-icon {
    height: 1.2em;
    width: auto;
    vertical-align: middle;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
