/** Main Header */
.dhxlayout_base_material div.dhx_cell_layout div.dhx_cell_hdr {
    background-color: rgb(1, 1, 53);
}

/** Shows which panel is active. */
.lm_header .lm_tab.lm_active {
    box-shadow: 0 -2px 2px #ff0800;
}

/** Text in Goldenlayout tab */
.lm_tab:hover,
.lm_tab.lm_active {
    background: #4f4f4f;
    color: #ffffff;
}

.lm_splitter.lm_vertical .lm_drag_handle {
    height: 12px;
    background-color: rgb(10, 44, 9);
}

div.gridbox .objbox {
    background-color: #ffffff;
}

div.gridbox_material.gridbox table.hdr td {
    background-color: #1d4f91;
}

div.gridbox_material.gridbox table.obj tr td,
.dhx_grid_adjust {
    color: #404040;
}

div.gridbox_material.gridbox .odd_material {
    background-color: #ffffff;
    color: #404040;
}

.dhxlayout_base_material div.dhx_cell_layout {
    background-color: white;
}

.dhxlayout_base_material div.dhx_cell_layout div.dhx_cell_hdr {
    color: #ffffff;
}

/** Text inside forms */
.dhxform_obj_material div.disabled div.dhxform_label,
.dhxform_obj_material div.disabled div.dhxform_label div.dhxform_label_nav_link,
.dhxform_obj_material div.disabled div.dhxform_label span.dhxform_item_required {
    color: #000000;
}
.dhxform_obj_material div.dhxform_label {
    color: #000000;
}

/** Text in a standard Tree */
.standartTreeRow {
    color: #000000;
}

.dhx_toolbar_material {
    background-color: #010135;
}

.lm_goldenlayout {
    background: rgb(34, 155, 253);
}
.lm_header {
    background: #000000;
}
.lm_splitter.lm_horizontal .lm_drag_handle {
    width: 10px;
    background-color: rgb(243, 98, 98);
}

.lm_splitter.lm_vertical .lm_drag_handle {
    height: 10px;
    background-color: rgb(243, 98, 98);
}

.dhxwins_vp_material div.dhxwin_hdr {
    background-color: #39c;
}

.dhx_toolbar_material div.dhx_toolbar_btn.dhxtoolbar_btn_pres,
.dhx_toolbar_material div.dhx_toolbar_arw.dhxtoolbar_btn_pres {
    background-color: #419b54;
}

/** Border colour for windows */
.dhxwins_vp_material div.dhxwin_active {
    position: absolute;
    overflow: hidden;
    box-shadow: 0 28px 80px -6px rgba(0, 0, 0, 0.4);
    background-color: #39c;
    cursor: inherit;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    border-style: solid;
    border-color: #000671;
    /*border-radius: 20px;*/
}

#my_header {
    padding-bottom: 2px;
    background-color: rgb(0, 0, 0);
}

#my_header .my_header_text {
    font-family: Noto Serif;
    font-size: 12px;
    padding: 5px 10px;
    height: 48px; /* for autodetect */
    border: 1px solid #a4bed4;
}

.dhxwins_vp_material div.dhxwin_active div.dhx_cell_wins div.dhx_cell_cont_wins,
.dhxwins_vp_material div.dhxwin_inactive div.dhx_cell_wins div.dhx_cell_cont_wins {
    position: absolute;
    background-color: white;
    /* background-color: black; */
    overflow: hidden;
    z-index: 0;
}

/*
.dhxwins_vp_material div.dhxwin_brd {
  border-width: 0px 64px 64px 64px; 
  background-color: red;    
}
*/

.dhxwins_vp_material div.dhxwin_brd {
    border-width: 0px 8px 8px 8px;
}

.dhx_toolbar_material div.dhx_toolbar_btn input.dhxtoolbar_input {
    margin: 4px 4px;
}

#markerContextMenu {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: none;
    min-width: 140px;
    animation: fadeIn 0.2s ease-out;
}

.context-menu-item {
    padding: 10px 16px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.context-menu-item:last-child {
    border-bottom: none;
}

.context-menu-item:hover {
    background-color: #f0f0f0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard {
    display: flex;
    flex-wrap: wrap; /* 👈 allows wrapping */
    gap: 24px; /* spacing between widgets */
    width: 100%;
}

.widget {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    width: 200;
    text-align: center;
    overflow: hidden;
}

.widget-header {
    background-color: #0052cc;
    color: white;
    padding: 8px;
    font-size: 1.25rem;
    font-weight: 600;
}

.widget-body {
    padding: 16px;
}

.dasboardtext {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.label {
    font-size: 1rem;
    color: #777;
    margin-bottom: 8px;
}

.full-size-div {
    height: 100vh;
    width: 100vw;
    margin: 0px;
    padding: 0px;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

.segment-tag {
    border: 2px solid #4285f4; /* Blue border */
    background-color: #ffffff; /* No fill */
    border-radius: 8px;
    color: #000000;
    font-size: 14px;
    padding: 5px 5px;
    position: relative;
    transform: translateY(-8px);
}

.tabbar-right-tab {
    height: 38px;
    line-height: 38px;
    padding: 0 12px;
    background-color: #e4e4e4; /* like inactive tab */
    border-left: 1px solid #ccc;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    border-radius: 0 4px 4px 0; /* rounded right edge */
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 13px;
    text-align: center;
    user-select: none;
}

.tabbar-right-tab:hover {
    background-color: #d0d0d0;
}

.left-tabs {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.custom-btn-wrapper {
    text-align: center;
    margin-top: 10px;
}

.big-green-btn {
    background-color: #28a745;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    padding: 8px 40px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    min-width: 400px; /* minimum width */
    max-width: 80%; /* responsive max width */
}

.big-green-btn:hover {
    background-color: #218838;
}

.dhxform_label {
    font-weight: bold;
    font-size: 16px; /* optional: make label a bit bigger */
}

.dhxform_obj_material input.dhxform_textarea,
.dhxform_obj_material textarea.dhxform_textarea {
    padding: 4px 2px !important;
    margin: 0;
    font-size: 1em;
    background-color: #f4f4f4fd;
}

.info-card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
    width: 260px;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    color: #333;
    font-size: 14px;
}

.info-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
    color: #222;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.label {
    font-weight: 500;
    color: #666;
}

.value {
    font-weight: 600;
    color: #111;
}

.inputs-section {
    margin-top: 10px;
}

.inputs-section h4 {
    font-size: 15px;
    margin-bottom: 6px;
    color: #222;
}

.inputs-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 13px;
}

.inputs-table th {
    background-color: #f7f7f7;
    font-weight: 600;
    border: 1px solid #ccc;
    padding: 4px;
}

.inputs-table td {
    border: 1px solid #ccc;
    padding: 4px;
}

.inputs-table td {
    background-color: #fff;
}

.inputs-table td:contains('Off') {
    color: #999;
}

.dhxwins_vp_material div.dhxwin_active {
    border-radius: 20px;
}

.dhxwins_vp_material div.dhxwin_hdr {
    height: 34px !important; /* desired height */
    line-height: 34px !important; /* vertically center the text */
    font-size: 16px; /* optional: smaller text */
    padding: 0 5px; /* optional: adjust horizontal padding */
}

/* Buttons on the window header */
.dhxwins_vp_material .dhx_win_btns button {
    height: 17px !important;
    width: 17px !important;
    line-height: 17px !important;
    font-size: 10px; /* optional */
}

.dhxwins_vp_material div.dhxwin_hdr div.dhxwin_btns div.dhxwin_button,
.dhxwins_vp_material div.dhxwin_hdr div.dhxwin_btns div.dhxwin_button_dis {
    margin-top: -5px;
}

.map-control {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    font-family: Arial, sans-serif;
    padding: 8px;
    max-width: 220px;
    font-size: 13px;
}
.map-control label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}
.map-control select {
    width: 100%;
    height: 200px;
}
.map-control .controls {
    margin-top: 8px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.map-control button {
    padding: 6px 8px;
    cursor: pointer;
}
.map-control .small {
    font-size: 12px;
    color: #555;
    margin-top: 8px;
}

.map-control-wrapper {
    font-family: Arial, sans-serif;
}
.map-control.panel {
    transition:
        opacity 180ms ease,
        transform 180ms ease;
}
.map-control-toggle:focus {
    outline: 2px solid rgba(30, 136, 229, 0.5);
}
