body {
    margin: 0;
    overflow: hidden;
}

body>.banner>span {
    flex: 1 1 auto;
    font-size: 25px;
    padding: 10px 20px;
    font-weight: bold;
}

body>.banner>.logo {
    flex: 0 0 200px;
    background-image: url('../libs/planning/logo.svg');
    background-repeat: no-repeat;
    z-index: 100;
    position: relative;
}

body>.banner>.logo>.logoFront {
    width: 200px;
    height: 50px;
    background-image: url('../libs/planning/logo.svg');
    background-repeat: no-repeat;
    z-index: 1000;
    position: absolute;
    top: 0;
    right: 12px;
}

body>.banner>.logo>.logoBack {
    width: 200px;
    height: 50px;
    display: inline-block;
    background-color: #201547;
    transform: skewX(26deg);
    position: absolute;
    top: 0;
    right: 12px;
}

.UserPanel {
    padding-top: 5px;
}

.UserPanel .logout {
    text-decoration: underline;
    cursor: pointer;
}

body>.banner {
    background: white;
    height: 50px;
    cursor: default;
    font-size: 14px;
    color: #4E4E4E;
    display: flex;
    flex-direction: row;
    position: relative;
    overflow: hidden;
    text-align: center;
}

body>.root {
    background: black;
    height: calc(100vh - 50px);
    display: flex;
    cursor: default;
    font-size: 14px;
    color: #4E4E4E;
    flex-direction: column;
}

.root>.panel {
    flex: 1 1 100px;
    background: white;
    overflow: auto;
    height: 100%;
}

.root>.map {
    flex: 1 1 100px;
}

.esri-attribution {
    display: none;
}

.root>.foot {
    background-color: white;
    width: 100%;
    margin-top: 0px;
    display: none;
}

.root>.foot.show {
    display: block;
}

.esri-view .esri-view-surface {
    outline: none !important;
}

.esri-view .esri-view-surface::after {
    outline: none !important;
}

table {
    margin: 10px;
    border-collapse: collapse;
    font-size: 12px;
}

th {
    background: #4E4E4E;
    border: 2px solid white;
    color: white;
    font-weight: 400;
    padding: 2px 5px;
    text-align: left;
    text-transform: uppercase;
}

td {
    border: 2px solid white;
    color: rgba(0, 0, 0, .8);
    padding: 2px;
}

h3 {
    font-weight: 600;
    font-size: 22px;
    padding-left: 1px;
    border-bottom: 1px solid silver;
    margin: 13px;
}

h1 {
    font-size: 22px;
    margin: 13px;
    margin-bottom: 0px;
}

h4 {
    margin: 13px;
    font-weight: normal;
    font-size: 12px;
    margin-top: 0;
}

.map {
    background-size: cover;
    background-repeat: no-repeat;
}

.map>.mapContainer {
    height: 100%;
}

tr {
    cursor: default;
}

tr:nth-child(odd) {
    background-color: rgba(0, 0, 0, .1);
}

tr.record:hover,
tr.record.selected {
    background: rgba(0, 0, 0, .1);
}

tr.record.selected {
    background: cyan;
}

.tabs {
    display: flex;
    background: #f5f5f5;
}

.tabs>div {
    flex: 1 1 100px;
    border: 1px solid gray;
    text-align: center;
    height: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.tab>i {
    display: inline-block;
    width: 20px;
    height: 20px;
    position: relative;
    top: 5px;
}

.tabs>div:hover>span {
    text-decoration: underline;
}

.tabs>div.selected {
    background-color: #4E4E4E;
    color: white;
    cursor: default;
}

.Solar i {
    background-image: url('./img/Solar.svg');
}

.Wind i {
    background-image: url('./img/Wind.svg');
}

.Battery i {
    background-image: url('./img/Battery.svg');
}

.Bioenergy i {
    background-image: url('./img/Bioenergy.svg');
}

tr.total {
    color: white;
    background-color: #4E4E4E;
}

tr.total td {
    color: white;
}

.feature-table {
    width: 100%;
    box-sizing: border-box;
    border-collapse: collapse;
    height: 215px;
    margin-bottom: 10px;
}

.foot>div {
    border-bottom: none !important;
    margin-bottom: 4px;

}



.esri-cluster-marker {
    min-width: 20px;
    min-height: 20px;
}

.disclaimer {
    margin: 10px;
    font-size: 12px;
}

.esri-editor .esri-widget__heading {
    display: none;
}

.esri-editor .esri-editor__panel-toolbar {
    display: none;
}

.esri-editor .esri-item-list__filter-container--sticky {
    display: none;
}

table.popup {
    width: 100%;
    margin: 0;
}

.secured {
    background-color: lightgreen !important;
}

.open-container {
    color: red;
}

.splash-screen {
    opacity: 0;
    position: fixed;
    /* Ensures it covers the entire screen */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: black;
    display: flex;
    justify-content: center;
    /* Horizontally center content */
    align-items: center;
    /* Vertically center content */
    z-index: 1000;
    /* Ensures it's on top of other content */
}

/* Content inside the splash screen */
.splash-screen .content {
    padding: 1em;
    text-align: center;
    background-color: white;
    border: 2px solid #000000;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 30em;
}

.splash-screen button {
    background: linear-gradient(135deg, #2980b9, #6dd5fa);
    /* Gradient blue background */
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease-in-out;
}

div.esri-ui-inner-container {
    inset: 15px !important;
}

.widgetBtn {
    box-shadow: 0 1px 2px #0000004d;
    width: 32px;
    height: 32px;
    border: none;
    background-color: var(--calcite-action-background-color, var(--calcite-color-foreground-1));
    box-sizing: border-box;
    padding: 7px;
    cursor: pointer;
    color: var(--calcite-action-text-color, var(--calcite-color-text-3));
}

.widgetBtn calcite-icon {
    width: 18px;
    height: 18px;
    min-block-size: 18px;
    min-inline-size: 18px;
}


.widgetBtn:hover {
    background-color: lightgray;
}

/*
.esri-layer-list__item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}
    */
calcite-icon:not([icon="view-hide"], [icon="view-visible"]) {
    width: 16px !important;
    height: 18px !important;
    inline-size: 18px;
    block-size: 18px;
    min-inline-size: 18px;
    min-block-size: 18px;
    color: #6e6e6e;
}

.date-button:hover {
    background-color: rgb(243, 243, 243);
    cursor: pointer;
}

.date-button {
    background-color: white;
    border: none;
    width: 32px;
    height: 32px;
}

.filter-button:hover {
    background-color: rgb(243, 243, 243);
    cursor: pointer;
}

.filter-button {
    background-color: white;
    border: none;
    width: 32px;
    height: 32px;
}

calcite-input-time-picker {
    display: none;
}

#calendar {
    display: hidden;
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 300px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    font-family: 'VIC';
}

.left-panel {
    width: 300px;
    background-color: #f4f4f4;
    padding: 20px;
    position: absolute;
    height: 100%;
    right: 50px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    max-height: 90%;
    font-family: 'VIC';
}

.panel-section {
    margin-bottom: 20px;
}

.panel-section label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.panel-section select,
.panel-section input[type="date"] {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.panel-section input[type="date"] {
    padding-left: 10px;
}

/* Smaller font size for From and To labels */
.panel-section .date-label {
    font-size: 0.85em;
    /* Smaller font size */
    font-weight: normal;
    /* Optional: make the labels normal weight */
}

/* Styling to arrange "From" and "To" date inputs in the same row */
.date-range {
    display: flex;
    gap: 10px;
    /* Add some space between the inputs */
}

.date-range input {
    width: 48%;
    /* Make each input take about half the width */
}


.add-ce-project-panel {
    width: 300px;
    background-color: #f4f4f4;
    padding: 20px;
    position: absolute;
    height: 100%;
    right: 50px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    max-height: 90%;
    font-family: 'VIC';
}

.add-ce-project-panel .panel-section {
    margin-bottom: 20px;
}

.add-ce-project-panel .panel-section label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.add-ce-project-panel .panel-section input[type="text"],
.add-ce-project-panel .panel-section input[type="date"],
.add-ce-project-panel .panel-section select {
    width: 100%;
    padding: 8px 12px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    background-color: white;
}

.add-ce-project-panel .panel-section .date-label {
    font-size: 0.85em;
    font-weight: normal;
}

.add-ce-project-panel .date-range {
    display: flex;
    gap: 10px;
}

.add-ce-project-panel .date-range input {
    width: 48%;
}

.add-ce-project-edit-panel {
    width: 300px;
    background-color: #f4f4f4;
    padding: 20px;
    position: absolute;
    height: 100%;
    right: 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    max-height: 90%;
    font-family: 'VIC';
}

.add-ce-project-edit-panel .panel-section {
    margin-bottom: 20px;
}

.add-ce-project-edit-panel .panel-section label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.add-ce-project-edit-panel .panel-section input[type="text"],
.add-ce-project-edit-panel .panel-section input[type="date"],
.add-ce-project-edit-panel .panel-section select {
    width: 100%;
    padding: 8px 12px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    background-color: white;
}

.add-ce-project-edit-panel .panel-section .date-label {
    font-size: 0.85em;
    font-weight: normal;
}

.add-ce-project-edit-panel .date-range {
    display: flex;
    gap: 10px;
}

.add-ce-project-edit-panel .date-range input {
    width: 48%;
}

.input-error {
    border: 1px solid red !important;
    background-color: #fff5f5;
}

.validation-message {
    color: red;
    font-size: 0.85em;
    margin-top: 4px;
    display: none;
    align-items: center;
    gap: 5px;
}

.custom-message-popup {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 16px 24px;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    text-align: center;
    min-width: 250px;
}

.custom-message-text {
    margin: 0 0 10px;
    font-size: 1rem;
}

.custom-message-button {
    margin-top: 10px;
    margin-right: 10px;
    padding: 8px 14px;
    font-size: 0.95rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    background-color: #0079c1;
    color: #fff;
}

.custom-message-button:hover {
    background-color: #005e9e;
}

.esri-item-list__group__header {
    display: block !important;
    /* Make sure it's displayed */
    font-size: 1rem;
    /* Reasonable heading size */
    font-weight: 600;
    /* Semi-bold for emphasis */
    margin: 0.5em 0 0.25em 0;
    /* Spacing above and below */
    padding-left: 1rem;
    /* Align with other items */
    color: #222 !important;
    /* Dark text for visibility */
    background-color: #f9f9f9;
    /* Light background for contrast */
    border-bottom: 1px solid #ccc;
    /* Subtle underline */
    user-select: text;
    /* Allow selecting text */
    z-index: 1;
    /* Ensure it’s above other elements */
    font-family: 'VIC', Arial, sans-serif;
}