/* 

1. header
2. nav
3. sidebar 
4. button
5. modal
6. font & text

*/
/* ReportBox CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #1E1E1E; 
}

a {
    text-decoration: none;
    color: #1E1E1E; 
}

input, button {
    border: none;
    outline: none;
    background: transparent;
    box-shadow: none;
}

/* Deactive Setting */
.sidebar-content.disabled button,
.sidebar-content.disabled input,
.sidebar-content.disabled select,
.sidebar-content.disabled .multiselect-trigger,
.sidebar-content.disabled input[type="radio"],
.sidebar-content.disabled input[type="checkbox"],
.sidebar-content.disabled input[type="radio"]:checked,
.sidebar-content.disabled input[type="checkbox"]:checked,
.form-group.disabled select,
.form-group.disabled .multiselect-trigger,
.form-group.disabled .singleselect-trigger {
    background: #e8e8e8;
    color: #848484 !important;
    cursor: not-allowed;
    pointer-events: none;
    accent-color: #848484;
}

.form-group input[type="text"][readonly] {
    border: none;
    border-radius: 0;
    border-bottom: 1.5px solid #b993c9;
    outline: none;
    color: #6c1191;
    background-color: rgb(242 224 244 / 23%);
    cursor: default;
}

.action-buttons-wrap.disabled button {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

input[type="text"].invalid:not(:focus),
input[type="number"].invalid:not(:focus),
select.invalid:not(:focus),
.multiselect-trigger.invalid,
.singleselect-trigger.invalid {
    border: 1.5px solid #EC221F;
    border-radius: 4px;
}

/* Deactive Setting End */


/* Button Default setting */

.primary-btn {
    background: #FFFFFF;
    color: #2C2C2C;
    border: 1px solid #767676;
    border-radius: 8px;
    cursor: pointer;
    padding: 5px 10px;
    /* flex: 1; */
}

.secondary-btn {
    background: #2C2C2C;
    color: #FFFFFF;
    border: 1px solid #2C2C2C;
    border-radius: 8px;
    cursor: pointer;
    padding: 5px 10px;
    /* flex: 2; */
}

.highlighted-btn {
    background: #62237C;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 8px;
}

.icon-btn {
    justify-content: space-between;
    width: 25px;
    height: 25px;
    padding: 0;
    background: #FFFFFF;
    color: #2C2C2C;
    border: 2px solid #d6d6d6;
    border-radius: 25%;
}

.icon-btn-small {
    justify-content: space-between;
    width: 20px;
    height: 20px;
    padding: 2px;
    background: #FFFFFF;
    color: #2C2C2C;
    border: 2px solid #d6d6d6;
    border-radius: 25%;
}

.icon-left-btn {
    height: 25px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 3px;
    border: 1px solid #767676;
    padding: 2px 10px;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.icon-left-primary-btn {
    height: 25px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2px 10px;
    border-radius: 8px;
    background: #6eb6ff2e;
    color: #000000;
    border: 1px solid #b7babf;
    cursor: pointer;
}

.icon-left-primary-btn:hover {
    background: #6eb6ff57;
    color: #000000;
    border-color: #b7babf;
    cursor: pointer;
}

.icon-img {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.accent-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    background: #ffffff;
    color: #830eb5;
    border: 1px solid #7a00ae;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
}

.accent-btn:hover {
    background: #fcf5ff47;
    color: #830eb5;
    border-color: #a06fb5;
    cursor: pointer;
}

.accent-btn.active {
    background: #e7bcff4d;
    color: #b41cf5;
    border: 1.6px solid #d78cff;
}


.icon img {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
}

.goto-input {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    margin-right: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.goto-input:focus {
    border-color: #a336d2;
    outline: none;
}

.goto-btn {
    padding: 6px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: rgb(249 249 249);
    cursor: pointer;
    color: #333;
    font-size: 14px;
    box-sizing: border-box;
}

.goto-btn:hover {
    background: #ececec;
}

/* button hover */

.primary-btn:hover, .icon-btn:hover, .icon-left-btn:hover {
    background: #f5f5f5;
    color: #1a1a1a;
    border-color: #555555;
    cursor: pointer;
}

.delete-single-report:hover, .download-single-report:hover {
    color: #1a1a1a;
    border-color: #555555;
    cursor: pointer;
}

.secondary-btn.active:hover {
    background: #363637;
    color: #f0f0f0;
    cursor: pointer;
}

.secondary-btn.active {
    background: #2C2C2C;
    border: none;
    color: white;
    cursor: pointer;
}

.highlighted-btn:hover {
    background: #690091;
    cursor: pointer;
}

.btn-small {
    flex: 1;
}

.btn-large {
    flex: 2;
    padding: 7px;
}

.delete-single-report {
    background-image: url('/static/images/icon/Trash.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-size: 15px 15px;
    padding: 10px;
}

.download-single-report {
    background: rgb(233, 233, 233);
    background-image: url('/static/images/icon/Download.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-size: 15px 15px;
    padding: 10px;
}

.close-btn {
    width: 20px;
    height: 20px;
    background: url('/static/images/icon/X.png') no-repeat center center;
    background-size: contain;
    border-radius: 4px;
    cursor: pointer;
}

/* Button Setting End */



.header {
    height: 40px;
    background: white;
    color: #000;
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    border-bottom: 1px solid #D9D9D9;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    width: 156px;
    height: 20px;
    margin: 0;
    cursor: pointer;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav span {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.9;
}

.nav span:hover {
    opacity: 1;
    font-weight: 500;
}

.nav span:first-child {
    padding-right: 20px;
    position: relative;
}

.nav span:first-child::after {
    content: '';
    position: absolute;
    right: 0;
    top: -10px;
    bottom: -10px;
    width: 1px;
    background-color: #D9D9D9;
}

.sidebar-container {
    display: flex;
    height: 100vh;
    padding-top: 40px;
}

.sidebar {
    width: 450px;
    background: #ffffff;
    border-right: 1px solid #e9ecef;
    flex-shrink: 0;
    position: relative;
    transition: width 0.1s ease;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    width: 0px;
    border-right: none;
    display: none;
}

.sidebar-toggle {
    position: absolute;
    top: 70px;
    left: 450px;
    color: white;
    font-size: 9px;
    font-weight: bold;
    width: 24px;
    height: 32px;
    background: rgba(0, 0, 0, 0.85);
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.15);
    /* transition: all 0.3s ease; */
}

.sidebar-toggle:hover {
    background: rgba(0, 0, 0, 1);
} 

.sidebar-toggle.collapsed .toggle-icon {
    transform: rotate(180deg);
}

.sidebar-toggle.collapsed {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #62237C;
    color: white;
    font-size: 16px;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f5f5f5;
}

.sidebar-content {
    display: none;
    padding: 10px 20px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    background: #f1ebf31f;
}

.sidebar-content.active {
    display: block;
}

.sidebar-header-wrap {
    flex-shrink: 0;
    position: relative;
    /* border-bottom: 1px solid #e9ecef; */
}


.sidebar-footer-wrap {
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    padding: 15px;
    border-top: 1px solid #e9ecef;
}

.option-container {
    height: 45px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    background: #DFD5E3;
    font-size: 13px;
    color: #7F4D94;
    padding: 0 5px;
    margin: 10px;
}

.option-btn{
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    width: 205px;
    text-align: center;
    height: 37px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    font-size: 13px;
}

.option-btn:hover {
    cursor: pointer;
    background: rgb(229, 211, 234);
    color: #7e1ca8;
    box-shadow: 0 0 0 2px rgba(223, 213, 227, 0.2);
}

.option-btn.active {
    color: white;
    background: #62237C;
}

.searchbar-container {
    margin-bottom: 15px;
}

.searchbar-wrap{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #D9D9D9;
    border-radius: 100px;
    background: #FFFFFF;
}

.searchbar-wrap:focus-within {
    border: 1px solid #be82df;
}

.searchbar-wrap input {
    width: 100%;
    padding: 0px 12px;
}

.searchbar-wrap button {
    background-image: url('/static/images/icon/Search.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 16px;
    height: 16px;
    border: none;
    cursor: pointer;
    background-color: transparent;
    margin-right: 5px;
    transition: all 0.2s ease;
    border-radius: 2px;
}

.searchbar-wrap button:hover {
    filter: drop-shadow(0 0 3px rgba(0,0,0,0.2));
    transform: scale(1.1);
}

.sidebar-section-subtitle {
    display: none;
    font-weight: 550;
    font-size: 13px;
    margin: 15px 15px 20px;
}

.sidebar-section-subtitle.active {
    display: block;
}

.sidebar-section-subtitle span{
    color: #62237C;
    font-size: 15px;
    font-weight: 700;
    line-height: 150%;
    margin-bottom: 5px;
}

.sidebar-section-subtitle p{
    padding-top: 5px;
    font-size: 13px;
}

.form-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    overflow: visible;
}

.form-group label {
    font-size: 14px;
    font-weight: 550;
    color: #2C2C2C;
    flex: 0 0 auto;
    margin-right: 10px;
}

.form-group input[type="radio"] {
    display: block;
    margin-bottom: 0;
    font-weight: bold;
    font-size: 14px;
    color: #333;
    flex: 0 0 auto;
    margin-right: 10px;
    accent-color: #2C2C2C;
}

.form-group input[type="text"] {
    width: 100%;
    max-width: 252px;
    padding: 0px 12px;
    border: 1.5px solid #D9D9D9;
    border-radius: 4px;
    font-size: 14px;
    height: 32px;
    flex: 0 0 auto;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input[type="text"]:focus:not([readonly]) {
    border: 1.5px solid #be82df ;
    outline: none;
}

.select-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 252px;
    flex: 0 0 auto;
    position: relative;
    overflow: visible;
}

.select-wrap span {
    font-size: 10px;
    font-weight: 700;
    color: #EC221F;
    white-space: nowrap;
    flex-shrink: 0;
}

.select-wrap input[type="text"] {
    width: 100%;
    max-width: none;
    flex: 1;
}

.select-wrap select {
    width: 100%;
    max-width: none;
    flex: 1;
    padding: 0px 12px;
    border: 1.5px solid #D9D9D9;
    border-radius: 4px;
    font-size: 14px;
    height: 32px;
    outline: none;
    transition: border-color 0.2s ease;
    background: white;
    cursor: pointer;
}

.select-wrap select:focus {
    border: 1.5px solid #be82df ;
    outline: none;
}

.radio-wrap {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.radio-wrap label {
    display: flex;
    gap: 5px;
    font-size: 13px;
    font-weight: 550;
    color: #2C2C2C;
    align-items: center;
    margin: 0;
    cursor: pointer;
}

.radio-wrap input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    opacity: 1;
    position: relative;
    display: inline-block;
}

.range-unit {
    width: 20px;
}

/* custom multiselect start */
.custom-multiselect {
    position: relative;
    width: 100%;
}

.multiselect-trigger, .singleselect-trigger {
    width: 100%;
    padding: 8px 5px 8px 12px;
    border: 1.5px solid #D9D9D9;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    height: 32px;
    box-sizing: border-box;
}

.multiselect-trigger:hover, .singleselect-trigger:hover {
    border-color: #be82df;
}

.multiselect-arrow, .singleselect-arrow {
    width: 9px;
    height: 9px;
    background: url('/static/images/icon/arrow_down.png') no-repeat center center;
    background-size: contain;
    border-radius: 4px;
}

.multiselect-trigger.active .multiselect-arrow,
.singleselect-trigger.active .singleselect-arrow {
    transform: rotate(180deg);
}

.multiselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1.5px solid #D9D9D9;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 10;
    display: none;
    max-height: 300px;
    overflow: hidden;
    min-width: 200px;
}

.multiselect-dropdown.show {
    display: block;
}

.multiselect-search {
    padding: 8px 8px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1;
}

.singleselect-search {
    padding: 8px 8px 5px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.multiselect-search input, .singleselect-search input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
    box-sizing: border-box;
    background: white;
    transition: border-color 0.2s ease;
}

.multiselect-search input:hover {
    border: 1px solid #be82df;
}

.multiselect-search input:focus {
    border: 1px solid #be82df;
    box-shadow: 0 0 0 1px rgba(190, 130, 223, 0.2);
}

.multiselect-options {
    overflow-y: auto;
    max-height: calc(100% - 80px);
    min-height: 0;
}

.multiselect-option {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
}

.multiselect-option:last-child {
    border-bottom: none;
}

/* ===== SINGLESELECT STYLES ===== */
.custom-singleselect {
    position: relative;
    width: 100%;
}

.singleselect-option {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s ease;
    font-size: 14px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.singleselect-option:hover {
    background-color: #f8f9fa;
}

.singleselect-option.selected {
    background-color: #f3e5f5;
    color: #be82df;
    font-weight: 500;
}

.singleselect-option.selected::before {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    background: url('/static/images/icon/check.png') no-repeat center center;
    background-size: contain;
    opacity: 0.8;
}

.singleselect-option:last-child {
    border-bottom: none;
}

.singleselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1.5px solid #D9D9D9;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 10;
    display: none;
    max-height: 300px;
    overflow: hidden;
    min-width: 200px;
}

.singleselect-dropdown.show {
    display: block;
}

.singleselect-options {
    max-height: 240px;
    overflow-y: auto;
}

.singleselect-text {
    overflow: hidden;
    text-overflow: ellipsis; 
}

.multiselect-option:hover {
    background: #f8f9fa;
}

.multiselect-option input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;
    accent-color: #bb1fff;
}

.multiselect-option label {
    font-size: 13px;
    cursor: pointer;
    margin: 0;
    flex: 1;
}

.multiselect-option.select-all {
    background: #f8f9fa;
    border-top: 1px solid #ddd;
    width: 100%;
    padding: 5px
}

.multiselect-actions {
    border-top: 1px solid #eee;
    text-align: right;
}

.confirm-btn {
    background: #962bc5;
    color: white;
    border: none;
    padding: 5px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.confirm-btn:hover {
    background: #750ca2;
}

.multiselect-text {
    flex: 1;
    max-width: 200px;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 20px;
    scrollbar-width: thin;
    scrollbar-color: #be82df transparent;
}

.multiselect-text::-webkit-scrollbar {
    height: 4px;
}

.multiselect-text::-webkit-scrollbar-track {
    background: transparent;
}

.multiselect-text::-webkit-scrollbar-thumb {
    background-color: #be82df;
    border-radius: 2px;
}


/* custom multiselect end */

.area-range-item input[type="number"] {
    width: 100%;
    padding: 0px 12px;
    border: 1.5px solid #D9D9D9;
    border-radius: 4px;
    font-size: 14px;
    height: 32px;
    outline: none;
    max-width: 159px;
    min-width: 80px;
    flex: 1;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
}

.area-range-item input[type="number"]:focus {
    border: 1.5px solid #be82df ;
    outline: none;
}

.area-range-item input[type="number"]::-webkit-outer-spin-button,
.area-range-item input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.checkbox-group {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.area-range-item {
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

/* progress bar start */
.progress-section {
    display: none;
    text-align: center;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

/* progress bar end */

.action-buttons-wrap {
    align-items: center;
    justify-content: center;
    display: flex;
    gap: 10px;
    font-size: 14px;
}

/* map css */
.map-area {
    flex: 1;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
}

/* Font & Text */
.form-required-alert {
    display: none;
    justify-content: right;
    font-size: 14px;
    padding: 10px 20px;
    color: #EC221F;
    font-weight: 400;
}

.form-required-alert.active {
    display: flex;
}

.info-text {
    font-weight: 600;
    /* color: #878787; */
    white-space: nowrap;
    flex-shrink: 0;
}