/* ===== Brand ===== */
:root {
    --primary: #004aad;
    --primary-800: #046acc;
    --primary-700: #057bde;
    --primary-600: #088df1;
    --primary-500: #079cff;
    --primary-400: #3aaaff;
    --primary-300: #61baff;
    --primary-200: #8fcdff;
    --primary-100: #bbe0ff;
    --primary-50: #e3f3fe;

    --secondary: #04053d;
    --secondary-800: #0d1752;
    --secondary-700: #15205e;
    --secondary-600: #1e2868;
    --secondary-500: #232e70;
    --secondary-400: #434a83;
    --secondary-300: #616896;
    --secondary-200: #8c91b4;
    --secondary-100: #b9bcd2;
    --secondary-50: #e3e4ed;

    --accent: #b49361;
    --accent-800: #b99865;
    --accent-700: #c0a271;
    --accent-600: #c7ad7c;
    --accent-500: #ceb987;
    --accent-400: #d5c492;
    --accent-300: #dcd09e;
    --accent-200: #d2b184;
    --accent-100: #eccfa6;
    --accent-50: #ffecc4;

    --neutral: #222;
    /* Extra Dark */
    --neutral-900: #333;
    --neutral-800: #444;
    --neutral-700: #555;
    --neutral-600: #666;
    --neutral-500: #777;
    --neutral-400: #888;
    --neutral-300: #999;
    --neutral-200: #aaa;
    --neutral-100: #bbb;
    --neutral-50: #ccc;
    --neutral-25: #ddd;

    --danger: #dc2626;

    --success: #16a34a;

    --warning: #eab308;

    /* --accent-highlight: #00C9F1; */
    --text-on-dark: #ffffff;
    --muted: rgba(255, 255, 255, 0.72);
    --muted-2: rgba(255, 255, 255, 0.56);
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    --radius: 10px;
    --radius-sm: 8px;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #222;
    background-image: url(/images/background.jpg);
    background-position: center;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
}

html,
body,
#map_canvas {
    height: 100%;
    width: 100%;
    margin: 0px;
}

h1 {
    color: #aaa;
}

a {
    cursor: pointer;
}

.disabled {
    color: silver;
}

#map_canvas {
    position: relative;
}

/* modal */
.modal-foreground {
    position: absolute;
    left: 50%;
    margin-left: -150px;
    top: 50%;
    margin-top: -100px;
    color: #ddd;
    background-color: #222;
    width: 360px;
    z-index: 4;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 8px;

    -webkit-box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.6);
    -moz-box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.6);
    box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.6);
}

.modal-foreground.light {
    color: #333;
    background-color: white;
    padding: 0px;
}

.modal-foreground.light .header {
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
    padding: 8px 14px 6px 14px;
    font-size: 1.5em;
}

.modal-foreground.light .footer {
    text-align: right;
    padding: 15px;
    border-top: 1px solid #eee;
    margin-top: 15px;
}

.modal-foreground a {
    color: var(--primary-400);
    text-decoration: none;
}

.modal-foreground a:hover {
    color: var(--primary-200);
}

.modal-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 12;
    left: 0px;
    top: 0px;
}

.modal-background.modal-alert {
    z-index: 99;
}

/* map */
.angular-google-map-container {
    position: absolute;
    top: 82px;
    bottom: 0;
    right: 0;
    left: 0;
}

.federal .map-control-panel,
.federal .summary-panel,
.federal .list-panel,
.federal .item-list,
.federal .listSearchQuery,
.federal .timeline,
.federal .modal-foreground {
    background-color: var(--secondary) !important;
}

.federal .modal-foreground.light {
    background-color: white !important;
}

.federal .panel-header.sub {
    background-color: rgba(0, 0, 0, 0.18);
}

.app-info {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    display: flex;
    align-items: center;
}

@media (max-width: 928px) {
    .app-info {
        flex-direction: column;
    }

    .app-info h2 {
        font-size: 1rem;
    }
}

/* map control panel */
.map-control-panel {
    z-index: 2;
    padding: 12px;
    background-color: #222;
}

.map-control-panel.shape {
    background-color: var(--primary);
}

.map-control-panel.shape,
.map-control-panel.shape a {
    color: #c9ebf2 !important;
}

.map-control-panel.shape a:hover {
    color: white !important;
}

.map-control-panel.top a {
    text-decoration: none;
}

.map-control-panel.top {
    position: absolute;
    width: 100%;
    height: 82px;
    color: #bbb;
    z-index: 11;
}

.map-control-panel.top span,
.map-control-panel.top div {
    vertical-align: middle;
}

.map-control-panel.top .shape {
    font-size: 1.7em;
    margin: 0px 4px;
    vertical-align: middle;
}

.map-control-panel a {
    color: #bbb;
}

.map-control-panel a:hover {
    color: #eee;
}

.map-control-panel .dropdown {
    display: inline-block;
}

/*.draw-option {
    margin: 0px 20px;
}

.draw-option i {
    font-size: 1.3em;
    vertical-align: middle;
}*/

.inner-shadow {
    -moz-box-shadow: inset 0 0 30px #222;
    -webkit-box-shadow: inset 0 0 30px #222;
    box-shadow: inset 0 0 30px #222;
}

.inner-shadow .content {
    position: relative;
    /* This protects the inner element from being blurred */
}

.control-container .dropdown {
    vertical-align: -webkit-baseline-middle !important;
}

.control-container,
.control-container a,
.control-container span {
    color: #bbb;
}

.control-container a {
    vertical-align: -webkit-baseline-middle;
}

.control-container span {
    vertical-align: -webkit-baseline-middle;
}

.control-container {
    border-radius: 8px;
    display: inline-block;
    padding: 3px 8px;
    height: 38px;
}

/* geofence */
.geofence-panel {
    position: absolute;
    bottom: 0px;
    z-index: 1;
    background: #222;
    color: #eeeeee;
}

.geofence-panel img {
    vertical-align: middle;
}

/* list-panel */
.list-panel {
    position: absolute;
    top: 82px;
    bottom: 0;
    right: 0;
    z-index: 1;
    background: #222;
    overflow-y: auto;

    border: 1px solid #555;
    border-radius: 0px 0px 0px 4px;

    -webkit-box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.6);
    -moz-box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.6);
    box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.6);

    z-index: 10;

    display: flex;
    flex-direction: column;
}

.summary-panel .toggle,
.list-panel .toggle {
    text-align: center;
}

.list-panel.timeline {
    top: 150px;
}

/* device */
.item-list {
    background: #222;
    padding-bottom: 10px;
    color: #eeeeee;
    margin-top: 10px;
    min-width: 200px;
    flex: 1;
    min-height: 0;
}

.item-list.device-list,
.item-list.convergence-point-detail-list {
    height: calc(100vh - 82px - 20px - 10px - 2px);
    /* Full height minus header and margins and borders*/
}

.item-list.device-list {
    min-width: 460px;
}

.summary-panel input {
    background-color: transparent;
    border: 0;
}

.summary-panel a,
.list-panel a,
.item-list a {
    color: #eeeeee;
    text-decoration: none;
}

.summary-panel .call-out {
    background-color: var(--primary-700);
    padding: 2px 8px;
    border-radius: 3px;
}

.summary-panel .text-input {
    background-color: #222;
    width: 75px;
    display: inline;
    padding: 2px 8px;
    border-radius: 3px;
}

.device {
    padding: 0px 10px;
    display: inline-block;
}

.device.highlight {
    color: #fff;
    background: #222;
}

.device.highlight i {
    margin-top: 4px;
}

.summary-panel {
    position: absolute;
    top: 82px;
    right: 0px;
    z-index: 1;
    max-height: calc(100vh - 97px); /*82px);*/
    background: #222;
    color: #eeeeee;
    min-width: 300px;
    max-width: 370px;
    border: 1px solid #555;
    border-right: 0px;
    border-radius: 0px 0px 0px 8px;
    -webkit-box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.6);
    -moz-box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.6);
    box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.6);
}

.item-row.highlight,
.item-row.highlight a {
    color: var(--primary-400);
}

/*.item-row.highlight a i {
    color: #eee;
}*/

.item-row:hover {
    background-color: #666;
}

.item-row {
    white-space: nowrap;
    padding: 1px 8px;
}

/* info */
.info-header {
    background-color: var(--primary);
    padding: 4px 10px 4px 8px;
    color: #c9ebf2;
    margin-bottom: 7px;
}

.total-unread {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0.5rem;
    color: white;
    background-color: #dc2626;
    border-radius: 9999px;
}

.notification-section {
    max-height: 150px;
}

.notification-section .read {
    color: var(--secondary-200);
}

.info a:hover {
    color: var(--primary-200) !important;
}

.info.left {
    margin-left: 9px;
}

.info.right {
    margin-left: -4px;
}

/* panel header */
.panel-header {
    background-color: var(--primary);
    /* border-bottom: 1px solid #222; */
    padding: 4px 10px 4px 8px;
    color: #c9ebf2;
}

.panel-header.sub {
    background-color: #555;
    color: #eee;
}

/* panel selector */
.panel-selector a,
.panel-selector strong {
    color: #eeeeee;
    text-decoration: none;
}

.panel-selector i {
    vertical-align: middle;
}

.panel-selector {
    padding: 5px 12px 5px 8px;
}

.panel-selector.bar {
    margin-top: 4px;
    margin-bottom: 4px;
}

.panel-selector.bar span {
    background-color: #444;
    padding: 5px 10px;
    border-radius: 14px;
}

.panel-selector:first-child {
    padding-top: 5px;
}

.panel-selector:last-child {
    padding-bottom: 5px;
}

.panel-selector .title {
    margin-right: 10px;
}

.panel-selector.highlight,
.panel-selector.hover:hover {
    color: #fff;
    background: var(--neutral-600);
    border-bottom: 1px solid var(--neutral);
}

.federal .panel-selector.query-results {
    background-color: var(--primary);
}

.federal .panel-selector.query-results .query-count {
    color: var(--accent);
}

.federal .summary-tool-section {
    background: var(--secondary-700);
    border: 1px solid var(--secondary-600);
}

.federal .summary-tool-section .item.panel-selector.highlight {
    background-color: var(--secondary-600);
}

.federal .summary-tool-section .item.panel-selector .text-input {
    caret-color: black;
    background-color: var(--secondary-100);
    color: black;
}

.federal .summary-tool-section .item.panel-selector .text-input::placeholder {
    color: black;
}

.summary-tool-section {
    border-radius: var(--radius-sm);
    margin: 8px;
    border: 1px solid var(--muted);
}

.summary-tool-section .panel-header {
    padding: 10px 12px;
    font-weight: 800;
    text-transform: none;
    /* keep original labels */
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top-left-radius: var(--radius-sm);
    border-top-right-radius: var(--radius-sm);
}

.summary-tool-section .panel-body {
    padding: 6px;
}

.federal .summary-tool-section .panel-body {
    color: var(--muted);
}

.summary-tool-section .panel-body .item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-tool-section .panel-body .item:last-child {
    border-bottom: none;
}

.hint {
    color: var(--muted-2);
    font-size: 12px;
}

.date-time-picker {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 6px;
    color: var(--text-on-dark);
    background: rgba(255, 255, 255, 0.04);
    font-weight: 600;
    cursor: pointer;
}

/*.panel-selector a {
    display: block;
}*/

.panel-selector .fa-circle {
    margin-left: 5px;
    font-size: 0.8em;
    margin-right: 1px;
    margin-top: 2px;
}

/*.panel-selector.end:hover {
    background-color: none !important;
}*/

.monitoring-rule-panel {
    min-width: 300px;
}

.convergence-point-detail-panel {
    min-width: 300px;
}

/* searchbox */
.searchbox {
    z-index: 0 !important;
    position: absolute !important;
    top: 10px !important;
    margin-left: -150px !important;
    left: 50% !important;
    width: 300px !important;
}

/* zoom controls */
.gmnoprint:nth-child(9) {
    left: 0px;
    top: 50px;
    width: 31px;
    height: 96px;
}

/* window */
h4.map-window-title {
    font-size: 1.1em;
    margin-bottom: 10px;
    margin-top: 2px;
    font-weight: bold;
}

/* alert */
.app-alert {
    position: absolute;
    width: 100%;
    padding: 0px 25px;
    top: 50%;
    z-index: 2;
    left: 0px;
}

.app-alert-message {
    display: inline-block;
    max-width: 400px;
    line-height: 1.2em;
}

.app-alert-text {
    display: inline-block;
}

/* date picker */
.my-date-picker {
    width: 97px;
    display: inline-block;
    background-color: transparent;
    color: #bbb;
    border-color: transparent;
    margin: 0px -7px;
    text-align: center;
    vertical-align: top;
}

.dropdown.time ul {
    height: 300px;
    overflow-y: auto;
}

/* deviceQuery */
.listSearchQuery {
    text-align: center;
    background: #222;
    height: 82px;
    padding: 7px;
    color: #bbb;
}

.federal .listSearchQuery .date-selection a {
    color: var(--primary-400);
}

.federal .listSearchQuery .date-selection a:hover {
    color: var(--primary-200);
}

.federal .listSearchQuery .cancel-query {
    color: white;
}

.deviceQuery a {
    color: #ccc;
}

/* timeline */
.timeline {
    text-align: center;
    background: #222;
    height: 82px;
    padding: 12px;
    color: #bbb;
}

.timeline .break i {
    margin-top: 7px;
    background: #222;
}

.timeline .break .selected i {
    color: #4fc3ff;
}

.timeline .break {
    display: inline-block;
    font-size: 0.8em;
    padding: 0px 6px;
    height: 40px;
    background-image: url(/images/timeline.png);
    background-position-y: 6px;
    min-width: 34px;
}

.timeline .break.navigation {
    font-size: 1.2em;
    background-image: none;
    vertical-align: top;
    padding: 13px 0px 0px 0px;
    min-width: 0px;
    margin: 0px -4px;
}

.timeline a {
    color: #bbb !important;
    text-decoration: none;
}

.timeline .break a:hover,
.timeline .break a.selected {
    color: white !important;
}

/* data */
table.data tr th,
table.data tr td {
    padding: 5px 0px;
    padding-right: 20px;
    font-size: 0.9em;
}

table.data tr th:last-child,
table.data tr td:last-child {
    padding-right: 0px;
}

table.data tr {
    border-bottom: 1px dotted silver;
}

table.data tr:last-child {
    border-bottom: 0px;
}

/* buttons */
.btn-primary {
    background-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-800);
}

.btn-info,
.btn-group-toggle .btn-info.active {
    background-color: var(--primary);
    color: #fff !important;
    border-color: var(--primary-800);
}

.btn-info:hover {
    background-color: var(--primary-800);
}

.btn-group-toggle .btn-info {
    background-color: #005c74;
}

.btn-warning {
    background-color: var(--accent);
}

.btn-warning:hover {
    background-color: var(--accent-200);
}

.btn-warning:active {
    background-color: var(--accent-600);
}

.btn-outline-warning {
    border-color: var(--accent);
    color: var(--accent) !important;
    background-color: transparent;
}

.btn-outline-warning:hover {
    background-color: var(--accent-50);
}

.btn-default {
    color: #333 !important;
}

.btn {
    padding: 4px 12px;
    border-radius: 4px;
}

/* dropdowns */
.dropdown-menu > li > a {
    font-weight: normal;
    font-size: 0.95em;
    padding: 1px 17px;
}

.dropdown-menu > li > a {
    color: #333 !important;
}

/*help*/
.topic h1 {
    background: #222;
    padding: 18px;
    margin: 40px -20px 0px -20px;
    border-top: 1px solid var(--primary-400);
    -webkit-box-shadow: 0px 10px 10px 2px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0px 10px 10px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 10px 10px 2px rgba(0, 0, 0, 0.3);
    color: var(--primary-400);
}

.topic h1:first-child {
    margin-top: 0px;
}

.topic h4 {
    background: var(--primary-400);
    border-radius: 11px;
    padding: 3px 8px;
    font-size: 1.1em;
    display: inline-block;
    color: #222;
}

.topic img {
    margin: 5px 10px 5px 0px;
    border: 1px solid var(--primary);
}

/* top tab */
.top-tab {
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.top-tab div {
    display: inline-block;
    background-color: #555;
    padding: 10px 20px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    -webkit-box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.6);
    -moz-box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.6);
    box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.6);
}

/* form-group */
.form-group label {
    color: var(--primary-400);
}

/* map info */
.map-info {
    position: absolute;
    bottom: 15px;
    left: 50%;
    z-index: 2;
    background-color: rgb(from var(--primary) r g b / 0.8);
    padding: 4px 10px 4px 8px;
    color: #c9ebf2;
    padding: 8px 15px;
    border: 1px solid #c9ebf2;
    border-radius: 15px;
    width: 385px;
    margin-left: -192px;
    -webkit-box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.6);
    -moz-box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.6);
    box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.6);
}

/*update*/
.map-info input,
.map-info textarea {
    padding: 3px 5px 1px 5px;
    border-radius: 3px;
}

/*update*/
.map-info:not(.light) input,
.map-info:not(.light) textarea {
    background-color: #0000008a;
    border: 0;
}

/*update*/
.map-info:not(.light) a {
    color: #c9ebf2;
    text-decoration: none;
}

/*update*/
.map-info.light {
    background-color: rgb(255 255 255 / 90%);
    color: #333;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 17px;
}

/* Hide default HTML checkbox */
.switch input {
    display: none;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 13px;
    width: 13px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: #037b92;
}

input:focus + .slider {
    box-shadow: 0 0 1px #037b92;
}

input:checked + .slider:before {
    -webkit-transform: translateX(13px);
    -ms-transform: translateX(13px);
    transform: translateX(13px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 17px;
}

.slider.round:before {
    border-radius: 50%;
}

/* query */
.query-name {
    display: inline-block;
    /*margin-left: 10px;*/
    margin-bottom: 3px;
    max-width: 500px;
    white-space: normal;
}

.query-count {
    margin-left: 12px;
    width: 60px;
    text-align: right;
}

.query-type {
    margin-left: 10px;
    width: 50px;
}

.query-icon {
    margin-right: 5px;
    width: 25px;
}

.query-checkmark {
    margin-right: 10px;
    width: 14px;
    height: 14px;
}

/* query combination */
.combination-name {
    display: inline-block;
    /*margin-left: 10px;*/
    margin-bottom: 3px;
    max-width: 500px;
    white-space: normal;
}

.combination-count {
    width: 115px;
    text-align: right;
}

/* common device query */
.common-device-name {
    display: inline-block;
    margin-left: 10px;
    margin-bottom: 3px;
    max-width: 500px;
    white-space: normal;
}

.common-device-count {
    width: 150px;
    text-align: right;
}

/* tripwire */
.wire-button {
    transform: rotate(35deg) scale(0.2, 2);
    /* Legacy vendor prefixes that you probably don't need... */
    -webkit-transform: rotate(35deg) scale(0.2, 2);
    /* Safari */
    -moz-transform: rotate(35deg) scale(0.2, 2);
    /* Firefox */
    -ms-transform: rotate(35deg) scale(0.2, 2);
    /* IE */
    -o-transform: rotate(35deg) scale(0.2, 2);
    /* Opera */
    display: inline-block;
    margin-right: 0.3em;
    margin-left: -0.1em;
    vertical-align: text-bottom;
}

.wire-icon {
    transform: rotate(35deg) scale(0.2, 1.5);
    /* Legacy vendor prefixes that you probably don't need... */
    -webkit-transform: rotate(35deg) scale(0.2, 1.5);
    /* Safari */
    -moz-transform: rotate(35deg) scale(0.2, 1.5);
    /* Firefox */
    -ms-transform: rotate(35deg) scale(0.2, 1.5);
    /* IE */
    -o-transform: rotate(35deg) scale(0.2, 1.5);
    /* Opera */
    display: inline-block;
    margin-left: -0.1em;
    vertical-align: baseline;
}

.cross-area-icon i:first-child {
    font-size: 0.4em;
}

.cross-area-icon i:nth-child(2) {
    font-size: 0.6em;
    vertical-align: super;
    margin-left: -0.5em;
    margin-right: -0.2em;
}

.cross-area-icon i:last-child {
    font-size: 0.4em;
    vertical-align: super;
}

/* date range picker */
.daterangepicker .calendar-table th,
.daterangepicker .calendar-table td {
    padding: 0;
}

/* Make date cells bigger - override library defaults */
.timeline-date-picker-wrapper .daterangepicker .calendar-table td {
    width: 45px;
    height: 45px;
    min-width: 45px;
    padding: 16px 16px 0 0;
    font-size: 14px;
    line-height: 1.4;
}

.daterangepicker .ranges li {
    padding: 5px 12px;
}

.daterangepicker td.active {
    background-color: var(--primary);
}

.daterangepicker td.active:hover {
    background-color: var(--primary-800);
}

/* Custom date cell content styling */
/* Ensure cells are positioned relatively for absolute positioning of signal count */
.timeline-date-picker-wrapper .daterangepicker td.available {
    position: relative;
}

/* Style the cell background for dates with signals */
.timeline-date-picker-wrapper .daterangepicker td.has-signals.available {
    background-color: var(--primary-50);
}
.timeline-date-picker-wrapper .daterangepicker td.available.active {
    color: black;
    background-color: var(--primary-200);
}

.timeline-date-picker-wrapper .daterangepicker td.has-signals.available:hover {
    background-color: var(--primary-100);
}

/* Signal count badge in top right corner */
.timeline-date-picker-wrapper .daterangepicker td .custom-date-content,
.hour-picker-cell .signal-badge {
    position: absolute;
    top: 4px;
    right: 2px;
    background-color: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 3px;
    border-radius: 10px;
    line-height: 1.1;
    min-width: 18px;
    text-align: center;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.timeline-date-picker-wrapper .daterangepicker td .custom-date-content.no-signal {
    background-color: var(--neutral-100);
}

.draw-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 28px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
}

.draw-tool:hover {
    background-color: var(--neutral-500);
}

.draw-tool.active {
    background-color: var(--neutral-400);
}

.federal .draw-tool:hover {
    background-color: var(--secondary-500);
}

.federal .draw-tool.active {
    background-color: var(--secondary-400);
}

/* #region Playback */

.slider-container {
    position: relative;
    height: 8px;
    cursor: pointer;
}

.slider-track {
    width: 100%;
    height: 100%;
    background: var(--neutral-600);
    border-radius: 5px;
    cursor: pointer;
}

.start-handle,
.end-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-400);
    border: none;
    z-index: 2;
    box-shadow: var(--shadow);
}

.end-handle {
    left: 100%;
}

.start-handle:active,
.end-handle:active {
    cursor: grabbing;
}

.start-handle.dragging,
.start-handle:hover,
.end-handle.dragging,
.end-handle:hover {
    background-color: var(--primary-500);
    transform: translate(-50%, -50%) scale(1.1);
}

.active-range {
    position: absolute;
    height: 100%;
    background: var(--primary);
    top: 0;
    left: 0;
    z-index: 1;
    border-radius: var(--radius-sm);
}

.seeker {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--accent);
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid var(--text-on-dark);
    z-index: 3;
    box-shadow: var(--shadow);
    cursor: grab;
}

.seeker:hover {
    background: var(--accent-200);
    transform: translate(-50%, -50%) scale(1.1);
    cursor: grabbing;
}

.seeker:active {
    cursor: grabbing;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px auto;
    align-items: center;
}

/* Play/Pause Button */
.play-pause-btn,
.nav-highlight-btn,
.date-picker-btn {
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.play-pause-btn:hover,
.nav-highlight-btn:hover,
.date-picker-btn:hover {
    background-color: #e6e6e6;
}

.play-pause-btn:focus,
.nav-highlight-btn:focus,
.date-picker-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Timeline Container - Two Column Layout */
.playback-container {
    display: flex;
    align-items: center;
    background-color: var(--neutral);
    height: 82px;
    padding: 0 16px;
}

.playback-container a {
    color: white;
}

.federal .playback-container {
    background-color: var(--secondary);
}

/* Left Controls: All Three Buttons */
.playback-left-controls {
    display: flex;
    align-items: center;
    /* gap: 4px; */
    flex-shrink: 0;
    color: white;
}

/* Center: Slider */
.playback-center {
    padding: 8px;
    margin-left: 20px;
    margin-right: 20px;
    flex: 1;
    min-width: 0;
    /* Allows flex item to shrink below content size */
}

/* All buttons same size - using Bootstrap btn-sm */
.playback-left-controls .btn {
    padding: 0 4px 0 4px;
    background-color: unset;
    border: none;
    color: white;
    font-size: 14px;
}

.playback-left-controls .btn:hover {
    background-color: var(--neutral-500);
}

.playback-left-controls .btn:disabled,
.playback-left-controls .btn[disabled] {
    color: var(--neutral-300);
    opacity: 0.5;
    cursor: not-allowed;
}

.federal .playback-left-controls .btn:hover {
    background-color: var(--secondary-500);
}

.federal .playback-left-controls .btn:disabled,
.federal .playback-left-controls .btn[disabled] {
    color: var(--secondary-300);
}

.play-pause-btn,
.nav-highlight-btn,
.date-picker-btn,
.hour-picker-btn {
    width: 24px;
    height: 24px;
}

.timeline-date-picker-wrapper {
    position: relative;
    display: inline-block;
    color: black;
}

.timeline-date-picker-input {
    width: 0;
    height: 0;
}

.timeline-date-picker-wrapper .daterangepicker .drp-calendar {
    max-width: 350px;
}

/* Hour Picker Grid - Bootstrap 3 Popover Override */
.popover.hour-picker-popover {
    max-width: none;
    width: auto;
    padding: 0;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-family: arial;
    font-size: 15px;
    line-height: 1em;
}

.popover.hour-picker-popover > .popover-content {
    padding: 8px;
}

.hour-picker-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
}

.hour-picker-cell {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background-color: #fff;
    transition: background-color 0.15s;
    padding: 16px 6px 0 0;
}

.hour-picker-cell:hover {
    background-color: #eee;
}

.hour-picker-cell.has-signals {
    background-color: var(--primary-50);
}

.hour-picker-cell.has-signals:hover {
    background-color: var(--primary-100);
}

.hour-picker-cell.active {
    background-color: var(--primary-200);
    color: #000;
}

.hour-picker-cell .signal-badge.no-signal {
    background-color: var(--neutral-100);
}

/* Disabled hour cells - matches daterangepicker td.disabled */
.hour-picker-cell.disabled {
    color: #999;
    cursor: not-allowed;
    text-decoration: line-through;
    background-color: #fff;
}

.hour-picker-cell.disabled:hover {
    background-color: #fff;
}

.speed-multiplier-btn {
    max-width: 56px;
    height: 24px;
}
.range-type-btn {
    max-width: 60px;
    height: 24px;
}

/* Play/Pause Button specific styling */

.playback-map-controls {
    margin-right: 4px;
    padding-right: 4px;
    border-right: 1px solid var(--neutral-500);
}

.playback-map-controls .map-controls-button {
    height: 30px;
    font-size: 13px;
    padding: 4px 8px;
}

.federal .playback-map-controls {
    border-right: 1px solid var(--secondary-500);
}

/* Dropdown styling */
.playback-left-controls .dropdown-menu {
    min-width: 120px;
}

.date-markers {
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    pointer-events: none;
}

.date-marker {
    position: absolute;
    transform: translateX(-100%) rotate(-30deg);
    font-size: 10px;
    color: white;
    white-space: nowrap;
}
/* 
.date-marker:not(:first-child):not(:last-child) {
    transform: translateX(-50%) rotate(-30deg);
} */

/* .date-marker:first-child {
    transform: rotate(-30deg);
}

.date-marker:last-child {
    transform: translateX(-100%);
} */

/* Tick marks on track for visible markers */
.track-ticks {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.track-tick {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: var(--accent-100);
    transform: translateX(-50%);
    transition: opacity 0.2s ease;
}

.track-tick:first-child,
.track-tick:last-child {
    display: none;
}

/* Track highlight ranges for points with signals */
.track-highlights {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
}

.track-highlight-range {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    min-width: 4px;
    background-color: var(--accent);
    border-radius: 4px;
    z-index: 1;
}

.handle-date-label {
    position: absolute;
    left: 50%;
    transform: translateX(-100%) rotate(-30deg);
    font-size: 10px;
    color: white;
    white-space: nowrap;
    bottom: -18px;
}

.seeker-info {
    position: absolute;
    top: -30px;
    background-color: white;
    color: #333;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 3;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.seeker-info.seeker-info-visible {
    opacity: 1;
    visibility: visible;
}

.seeker-info.seeker-info-hidden {
    opacity: 0;
    visibility: hidden;
}

.seeker-info::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid white;
}

/* Hide the default triangle when using dynamic triangle */
.seeker-info:has(.seeker-info-triangle)::after {
    display: none;
}

/* Fallback for browsers that don't support :has() - hide default triangle by default */
.seeker-info::after {
    display: none;
}

/* Show default triangle only when no dynamic triangle is present */
.seeker-info:not(:has(.seeker-info-triangle))::after {
    display: block;
}

.seeker-info-triangle {
    position: absolute;
    top: 100%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid white;
    pointer-events: none;
}

.seeker-date {
    font-weight: bold;
    display: inline;
    margin-right: 6px;
}

.seeker-signals {
    font-size: 9px;
    opacity: 0.8;
    display: inline;
}

.date-points {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    transform: translateY(-50%);
    z-index: 1;
    display: none;
}

.date-point {
    position: absolute;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #4a90e2;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Single day mode styles */
.playback-container.single-mode .slider-track {
    cursor: default;
}

.playback-container.single-mode .active-range {
    width: 100%;
}

/* Hide seekers and handles in single-day mode */
.playback-container.single-mode .seeker,
.playback-container.single-mode .start-handle,
.playback-container.single-mode .end-handle {
    display: none;
}

/* Center the tooltip in single-day mode and keep it visible */
.playback-container.single-mode .seeker-info {
    left: 50%;
    transform: translateX(-50%) !important;
}

/* Center the date marker with no rotation in single-day mode */
.playback-container.single-mode .date-markers {
    left: 50%;
}

.playback-container.single-mode .date-marker {
    transform: translateX(-50%);
}

/* #endregion Playback */

a[href^="http://maps.google.com/maps"]
{
    display: none !important;
}

a[href^="https://maps.google.com/maps"]
{
    display: none !important;
}

/* 
.gmnoprint a, .gmnoprint span, .gm-style-cc {
    display:none;
}
.gmnoprint div {
    background:none !important;
} */

.gmnoprint.gm-bundled-control.gm-bundled-control-on-bottom {
    left: 0 !important;
    margin-bottom: 20px !important;
}

.gmnoprint.gm-bundled-control.gm-bundled-control-on-bottom > button {
    top: -10px !important;
}

/* ===== Map Legend Styles ===== */
.map-legend {
    background-color: #555;

    border: 1px solid var(--secondary-600);
    border-radius: var(--radius-sm);
    padding: 0;
    box-shadow: var(--shadow);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    width: 150px;
    position: absolute;
    z-index: 1000;
    bottom: 25px;
    left: 0 !important;
    color: var(--text-on-dark);
    overflow: hidden;

    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 1rem;
}

.federal .map-legend {
    background-color: var(--secondary);
}

.map-legend-color-bar {
    width: 100%;
    height: 20px;
    border-radius: 4px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ===== Layer Configuration Styles ===== */
.config-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-on-dark);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slider-input {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--neutral-200);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: grab;
    accent-color: var(--neutral-25);
}

.federal .slider-input {
    accent-color: var(--primary-600);
}

/* #region Map Controls */
.map-controls-button {
    background-color: transparent;
    border: none;
    border-radius: 4px;
}

.map-controls-button:hover {
    color: white;
    background-color: var(--neutral-500);
}

.map-controls-button.active {
    color: white;
    background-color: var(--neutral-800);
}

.federal .map-controls-button:hover {
    background-color: var(--secondary-500);
}

.federal .map-controls-button.active {
    background-color: var(--secondary-800);
}

.map-controls .tools > .map-tool {
    width: 32px;
    height: 32px;
    padding: 4px;
    border-radius: 4px;
    border: 1px solid transparent;
}

.map-controls .tools > .map-tool:hover {
    background-color: var(--neutral-500);
}

.map-controls .tools > .map-tool.active {
    background-color: var(--neutral-400);
    border-color: rgba(255, 255, 255, 0.22);
    color: white;
}

.federal .map-controls .tools > .map-tool:hover {
    background-color: var(--secondary-500);
}

.federal .map-controls .tools > .map-tool.active {
    background-color: var(--secondary-400);
    border-color: rgba(255, 255, 255, 0.22);
}

/* #endregion Map Controls */

/* #region Modern Dropdown */
.modern-dropdown {
    position: absolute;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-width: 1px;
    line-height: 1.5rem;
    padding-top: 0;
    padding-bottom: 0;

    min-width: 12rem;
    background-color: var(--neutral-800);
    z-index: 1000;
}

.modern-dropdown .dropdown-item {
    width: 100%;
    cursor: pointer;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 16px;
    padding-right: 16px;
    white-space: nowrap;
    gap: 12px;
}

.modern-dropdown .dropdown-item:hover {
    background-color: var(--neutral-500);
}

.modern-dropdown .dropdown-item.active {
    background-color: var(--neutral-400);
}

.modern-dropdown > .dropdown-item:first-child,
.modern-dropdown > .sub-dropdown:first-child > .dropdown-item {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.modern-dropdown > .dropdown-item:last-child,
.modern-dropdown > .sub-dropdown:last-child > .dropdown-item {
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.modern-dropdown > .sub-dropdown {
    position: relative;
}

.federal .modern-dropdown {
    background-color: var(--secondary-800);
}

.federal .modern-dropdown .dropdown-item:hover {
    background-color: var(--secondary-500);
}

.federal .modern-dropdown .dropdown-item.active {
    background-color: var(--secondary-400);
}

.modern-dropdown.accent .dropdown-item {
    background-color: var(--accent);
}

.modern-dropdown.accent .dropdown-item:hover {
    background-color: var(--accent-200);
}

/* #endregion Modern Dropdown */

/* #region Modern Popover */
.modern-popover.popover {
    background-color: var(--neutral-800);
    border: 1px solid var(--neutral-400);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    color: var(--text-on-dark);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    max-width: 300px;
    padding: 0;
}

.federal .modern-popover.popover {
    background-color: var(--secondary-800);
    border-color: var(--secondary-400);
}

.modern-popover.popover.left .arrow {
    border-left-color: var(--neutral-400);
}

.modern-popover.popover.left .arrow::after {
    border-left-color: var(--neutral-800);
}

.federal .modern-popover.popover.left .arrow {
    border-left-color: var(--secondary-400);
}

.federal .modern-popover.popover.left .arrow::after {
    border-left-color: var(--secondary-800);
}

.modern-popover.popover .popover-content {
    padding: 0.75rem;
    color: white;
}

.modern-popover-confirmation {
    padding: 0;
}

.modern-popover-confirmation .action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* #endregion Modern Popover */

/* #region Modern Webkit Scrollbar */
.modern-scrollbar {
    overflow: auto;
}

.modern-scrollbar::-webkit-scrollbar,
.fog-selectize .selectize-dropdown-content::-webkit-scrollbar {
    width: 8px;
}

.modern-scrollbar::-webkit-scrollbar-track,
.fog-selectize .selectize-dropdown-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.modern-scrollbar::-webkit-scrollbar-thumb,
.fog-selectize .selectize-dropdown-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: background 0.2s ease;
}

.modern-scrollbar::-webkit-scrollbar-thumb:hover,
.fog-selectize .selectize-dropdown-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* #endregion Modern Webkit Scrollbar */

.btn-empty,
.btn-empty:hover,
.btn-empty:focus,
.btn-empty:active {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: 0;
}

.close-btn {
    color: #d1d5db;
    padding: 0.25rem;
    border: none;
    background: none;
    transition: color 0.15s ease-in-out;
}

.close-btn:hover {
    color: white;
}

.close-btn:focus {
    outline: none;
    box-shadow: none;
}

/* Modern Card Component */
.modern-card {
    border-radius: var(--radius-sm);
    margin: 8px;
    border: 1px solid var(--muted);
}

.modern-card:not(:first-child) {
    margin-top: 0;
}

.federal .modern-card {
    background: var(--secondary-700);
    border: 1px solid var(--secondary-600);
}

.modern-card-title {
    padding: 10px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top-left-radius: var(--radius-sm);
    border-top-right-radius: var(--radius-sm);
    background-color: var(--neutral-700);
    color: #eee;
}

.modern-card-subtitle {
    padding-left: 10px;
    padding-bottom: 4px;
    font-weight: normal;
    color: var(--neutral-100);
    background-color: var(--neutral-700);
}

.federal .modern-card-title,
.federal .modern-card-subtitle {
    background-color: rgba(0, 0, 0, 0.18);
}

.modern-card-body {
    padding: 6px 10px;
    font-size: 14px;
}

.modern-card-body label {
    font-size: 100%;
}

/* Modern List Component */
.modern-list {
    display: block;
}

.modern-item-list {
    background-color: var(--neutral-400);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modern-item-list:hover {
    background-color: var(--neutral-300);
}

.federal .modern-item-list {
    background-color: var(--secondary-400);
}

.federal .modern-item-list:hover {
    background-color: var(--secondary-300);
}

.dropdown > .btn.add-border {
    color: white;
    background-color: transparent;
    border: 2px solid var(--muted);
}

.dropdown > .btn.add-border:hover {
    background-color: var(--neutral-500);
}

.federal .dropdown > .btn.add-border {
    border-color: var(--secondary-400);
}

.federal .dropdown > .btn.add-border:hover {
    background-color: var(--secondary-500);
}

/** region Selectize with FOG theme */
.fog-selectize.selectize-control .selectize-input,
.fog-selectize.selectize-control .selectize-input.input-active {
    background: var(--neutral-500);
    border-color: var(--neutral-400);
    box-shadow: none;

    border: 2px solid var(--muted);
    border-radius: 0.75rem;
}

.federal .fog-selectize.selectize-control .selectize-input {
    background: var(--secondary-500);
    border-color: var(--secondary-400);
}

.fog-selectize.selectize-control .selectize-input::before {
    content: unset;
}

.fog-selectize.selectize-control .selectize-input input {
    color: white;
    box-shadow: none;
    font-weight: 800;
}

.fog-selectize.selectize-control .selectize-input input::placeholder {
    color: white;
}

/* Replace dropdown arrow with plus icon for add device behavior */
.fog-selectize-container .fog-selectize.selectize-control .selectize-input::after,
.fog-selectize-container .fog-selectize.selectize-control .selectize-input.dropdown-active::after {
    content: var(--fa-icon-content, "\f067");
    /* FontAwesome plus icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: white;
    position: absolute;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 1rem;
    margin-top: 0;
    width: unset;
    height: unset;
    border: unset;
}

.fog-selectize.selectize-control .selectize-dropdown {
    background: var(--neutral-800);
    border: 2px solid var(--neutral-400);
    border-radius: 0.75rem;
    color: white;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 4px;
    z-index: 1000;
    overflow: auto;
}

.federal .fog-selectize.selectize-control .selectize-dropdown {
    background: var(--secondary-800);
    border-color: var(--secondary-400);
    overflow: auto;
    margin-top: 0.25rem;
}

.fog-selectize.selectize-control .selectize-dropdown .selectize-dropdown-content {
    max-height: 200px;
}

.fog-selectize.selectize-control .selectize-dropdown .option {
    padding: 0.75rem;
    color: white;
    cursor: pointer;
}

.fog-selectize.selectize-control .selectize-dropdown .option.active {
    background: var(--neutral-500);
}

.federal .fog-selectize.selectize-control .selectize-dropdown .option.active {
    background: var(--secondary-500);
}

.fog-selectize.selectize-control .selectize-dropdown .option.selected {
    background: var(--neutral-400);
}

.federal .fog-selectize.selectize-control .selectize-dropdown .option.selected {
    background: var(--secondary-400);
}

/** endregion Selectize */

.scheduler-container {
    bottom: unset;
    width: 320px;
    max-height: calc(100vh - 82px);
}

.scheduler {
    padding: 0 0.75rem 0.75rem 0.75rem;
    width: 100%;
    color: white;
}

/* Modern Input - Reusable input/display style */
.modern-input {
    width: 100%;
    background: var(--neutral-700);
    border: 1px solid var(--neutral-400);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    color: var(--text-on-dark);
    font-size: 13px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modern-input-center {
    text-align: center;
}

.modern-input.dashed {
    border-style: dashed;
}

.federal .modern-input {
    background: var(--secondary-700);
    border-color: var(--secondary-400);
}

.modern-input:hover {
    border-color: var(--neutral-300);
    background: var(--neutral-600);
}

.federal .modern-input:hover {
    border-color: var(--secondary-300);
    background: var(--secondary-600);
}

.is-readonly.modern-input, .is-readonly .modern-input {
    border-color: var(--neutral-300);
    background: var(--neutral-600);
    cursor: default;
}

.federal .is-readonly.modern-input,
.federal .is-readonly .modern-input {
    background: var(--secondary-700);
    border-color: var(--secondary-400);
    cursor: default;
}

.modern-input:focus {
    outline: none;
}

/* For input elements, override display */
input.modern-input,
select.modern-input,
textarea.modern-input {
    display: block;
    justify-content: unset;
}

.scheduler .date-field,
.scheduler .timezone-field {
    margin-bottom: 6px;
}

.scheduler .timezone-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.scheduler .timezone-name {
    font-weight: 600;
    color: #ffffff;
}

.scheduler .timezone-offset {
    font-size: 12px;
    color: #b49361;
}

.scheduler .timezone-icon {
    color: #b49361;
    font-size: 18px;
}

.scheduler .label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    padding-left: 0;
}

.scheduler .section {
    margin-bottom: 6px;
}

.scheduler .section-title {
    color: var(--text-on-dark);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.scheduler .frequency-controls {
    display: flex;
    gap: 6px;
    align-items: center;
}

.scheduler .weekdays {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    justify-content: center;
}

.scheduler .weekdays .weekday-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--neutral-700);
    border: 2px solid color-mix(in srgb, var(--accent) 30%, transparent);
    color: var(--accent);
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scheduler .weekdays .weekday-btn:hover {
    border-color: color-mix(in srgb, var(--accent) 60%, transparent);
    background: var(--neutral-600);
}

.federal .scheduler .weekdays .weekday-btn {
    background: var(--secondary-700);
}

.federal .scheduler .weekdays .weekday-btn:hover {
    background: var(--secondary-600);
}

.scheduler .weekdays .weekday-btn.active,
.federal .scheduler .weekdays .weekday-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.scheduler .month-day-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.validation-warning {
    margin-top: 6px;
    padding: 6px 8px;
    background: rgba(255, 152, 0, 0.15);
    border-left: 3px solid #ff9800;
    border-radius: 4px;
    color: #ffb84d;
    font-size: 11px;
    line-height: 1.4;
}

.validation-error {
    margin-bottom: 8px;
    padding: 6px 8px;
    background: rgba(244, 67, 54, 0.15);
    border-left: 3px solid #f44336;
    border-radius: 4px;
    color: #ff6b6b;
    font-size: 11px;
    line-height: 1.4;
}

.scheduler .ends-options {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.scheduler .end-on-option {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    cursor: pointer;
}

.scheduler .end-on-option:hover {
    background: var(--neutral-500);
}

.federal .scheduler .end-on-option:hover {
    background: var(--secondary-500);
}

.scheduler .end-on-label {
    color: white;
    font-size: 13px;
    cursor: pointer;
    flex: 0 0 32px;
    margin-bottom: 0;
}

.scheduler .radio-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.scheduler .occurrences-text {
    white-space: nowrap;
    flex-shrink: 0;
}

.scheduler .actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.scheduler .summary {
    background: var(--neutral-600);
    border-radius: 4px;
    padding: 6px 8px;
    margin-top: 8px;
    border-left: 3px solid var(--accent);
}

.federal .scheduler .summary {
    background: var(--secondary-600);
}

.scheduler .summary-text {
    /* color: var(--accent); */
    color: var(--text-on-dark);
    font-size: 12px;
    line-height: 1.5;
}

.federal .scheduler .summary-text {
    color: var(--accent);
}

.scheduler .ng-hide {
    display: none !important;
}

.active-monitoring-rule-list {
    width: 100%;
    min-width: 300px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.active-monitoring-rule-list .monitoring-rows {
    display: block;
    width: 100%;
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* accessible scrollbar defaults for Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) rgba(0, 0, 0, 0.06);
}

.active-monitoring-rule-list .monitoring-rows .item-row.loading {
    text-align: center;
    padding: 12px 0;
}

.active-monitoring-rule-list .monitoring-rows .item-row.loading .fa-spinner {
    font-size: 1.1em;
    color: var(--primary-400);
}

.active-monitoring-rule-list .monitoring-rows .item-row .rule-item.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.active-monitoring-rule-list .monitoring-rows-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.active-monitoring-rule-list .monitoring-rows-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.06);
    border-radius: 4px;
}

.active-monitoring-rule-list .monitoring-rows-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.active-monitoring-rule-list .monitoring-rows-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.badge.badge-accent {
    background-color: #b49361;
    color: white;
}

.badge.badge-danger {
    background-color: #dc2626;
    color: white;
}

.loading {
    text-align: center;
}

.loading .fa-spinner {
    width: 100%;
    text-align: center;
    color: var(--neutral-400);
}

.federal .loading .fa-spinner {
    color: var(--primary-400);
}

.empty {
    width: 100%;
    text-align: center;
}

.border-right {
    border-right: 1px solid var(--neutral-700);
}

.date-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* Monitoring List Management */
.monitoring-rules-list {
    vertical-align: top;
    min-width: 200px;
    max-width: 400px;
}

#match-detail-modal .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#match-detail-modal .location-stat {
    margin: 10px 0;
}

#match-detail-modal .location-stat .location-header {
    font-size: 14px;
}

#match-detail-modal .location-stat ul {
    font-size: 12px;
}

input[type="date"].form-control,
input[type="time"].form-control,
input[type="datetime-local"].form-control,
input[type="month"].form-control {
    line-height: normal !important;
}
