/* BWS Maluku — Overlay Tutupan Lahan per DAS v1.0.0 */
.bws-lc-layer-toggle span { color: #315341; }

.bws-lc-panel {
    box-sizing: border-box;
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #bbd8c6;
    border-radius: 14px;
    color: #183126;
    background: linear-gradient(145deg, #f6fff9, #eef8f2);
    box-shadow: 0 8px 24px rgba(22, 101, 52, .09);
}

.bws-lc-panel[hidden] { display: none !important; }

.bws-lc-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.bws-lc-head h4 { margin: 0; color: #14532d; font-size: 14px; line-height: 1.25; }
.bws-lc-head p { margin: 4px 0 0; color: #577065; font-size: 10px; line-height: 1.35; }
.bws-lc-badge { padding: 4px 7px; border-radius: 999px; color: #166534; background: #dcfce7; font-size: 8px; font-weight: 900; letter-spacing: .08em; }

.bws-lc-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.bws-lc-span-2 { grid-column: 1 / -1; }
.bws-lc-field { display: grid; min-width: 0; gap: 5px; }
.bws-lc-field > span { display: flex; justify-content: space-between; color: #496157; font-size: 9px; font-weight: 800; }
.bws-lc-field select {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #bfd3c6;
    border-radius: 9px;
    outline: none;
    color: #173f2a;
    background: #fff;
    font-size: 10px;
}

.bws-lc-field input[type="range"] { width: 100%; accent-color: #15803d; }

.bws-lc-panel button {
    min-width: 0;
    min-height: 38px;
    padding: 7px 9px;
    border: 1px solid #b6ccbd;
    border-radius: 9px;
    color: #28543a;
    background: #fff;
    font-size: 9px;
    font-weight: 850;
    cursor: pointer;
}

.bws-lc-panel button:disabled { opacity: .52; cursor: wait; }
.bws-lc-panel .bws-lc-primary { border-color: #15803d; color: #fff; background: linear-gradient(135deg, #15803d, #22a447); }
.bws-lc-panel .bws-lc-secondary { border-color: #86b998; color: #166534; background: #ecfdf3; }

.bws-lc-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 9px; }
.bws-lc-export-box {
    display: grid;
    grid-template-columns: minmax(138px, .72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: 8px;
    margin-top: 9px;
    padding: 8px;
    border: 1px solid #a7d5b6;
    border-radius: 10px;
    background: rgba(220, 252, 231, .58);
}
.bws-lc-export-box #bwsLandCoverExportShp {
    border-color: #0f766e;
    color: #fff;
    background: linear-gradient(135deg, #0f766e, #15937d);
}
.bws-lc-export-box small { color: #4a6558; font-size: 8px; font-weight: 650; line-height: 1.4; }
.bws-lc-status { min-height: 17px; margin-top: 9px; color: #5d6f65; font-size: 9px; font-weight: 700; line-height: 1.4; }
.bws-lc-status.loading { color: #0369a1; }
.bws-lc-status.success { color: #166534; }
.bws-lc-status.error { color: #b91c1c; }
.bws-lc-status.info { color: #475569; }

.bws-lc-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
}

.bws-lc-summary[hidden], .bws-lc-legend[hidden] { display: none !important; }
.bws-lc-summary > div { min-width: 0; padding: 7px; border: 1px solid #d4e5da; border-radius: 9px; background: rgba(255,255,255,.8); }
.bws-lc-summary span { display: block; color: #6b7c72; font-size: 8px; }
.bws-lc-summary b { display: block; margin-top: 3px; overflow: hidden; color: #18472d; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.bws-lc-legend { max-height: 260px; margin-top: 10px; overflow: auto; border: 1px solid #d4e5da; border-radius: 10px; background: rgba(255,255,255,.88); }
.bws-lc-legend-title, .bws-lc-legend-row { display: grid; align-items: center; gap: 6px; padding: 7px 8px; border-bottom: 1px solid #e2eee6; }
.bws-lc-legend-title { position: sticky; top: 0; z-index: 1; grid-template-columns: 1fr auto; color: #164e2d; background: #f6fff8; font-size: 9px; }
.bws-lc-legend-row { grid-template-columns: 12px minmax(0, 1fr) auto auto; font-size: 8px; }
.bws-lc-legend-row:last-child { border-bottom: 0; }
.bws-lc-legend-row i { width: 12px; height: 12px; border: 1px solid rgba(15,23,42,.2); border-radius: 3px; }
.bws-lc-legend-row span { overflow: hidden; color: #334d40; text-overflow: ellipsis; white-space: nowrap; }
.bws-lc-legend-row b { color: #14532d; }
.bws-lc-legend-row small { min-width: 56px; color: #64756b; text-align: right; }

.bws-lc-map-legend {
    position: absolute;
    right: 12px;
    bottom: 92px;
    z-index: 920;
    box-sizing: border-box;
    width: min(235px, calc(100% - 24px));
    max-height: 48%;
    overflow: auto;
    padding: 8px;
    border: 1px solid rgba(71, 85, 105, .38);
    border-radius: 10px;
    color: #263e32;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .2);
    backdrop-filter: blur(8px);
    pointer-events: auto;
}

.bws-lc-map-legend[hidden] { display: none !important; }
.bws-lc-map-legend > div { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; color: #14532d; font-size: 10px; }
.bws-lc-map-legend button { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; color: #475569; background: #edf2f0; font-size: 13px; cursor: pointer; }
.bws-lc-map-legend p { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 5px; margin: 3px 0; font-size: 8px; }
.bws-lc-map-legend p i { width: 10px; height: 10px; border: 1px solid rgba(15,23,42,.2); border-radius: 2px; }
.bws-lc-map-legend p span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bws-lc-map-legend p b { color: #334155; }
.bws-lc-map-legend > small { display: block; margin-top: 4px; color: #64748b; font-size: 7px; }

@media (max-width: 600px) {
    .bws-lc-panel { padding: 10px; border-radius: 11px; }
    .bws-lc-form-grid { grid-template-columns: 1fr; }
    .bws-lc-span-2 { grid-column: 1; }
    .bws-lc-actions { grid-template-columns: 1fr; }
    .bws-lc-export-box { grid-template-columns: 1fr; padding: 7px; }
    .bws-lc-export-box small { font-size: 7.5px; }
    .bws-lc-summary { grid-template-columns: 1fr 1fr; }
    .bws-lc-legend { max-height: 220px; }
    .bws-lc-map-legend { right: 7px; bottom: 116px; width: min(190px, calc(100% - 14px)); max-height: 34%; padding: 6px; }
    .bws-lc-map-legend > div { font-size: 9px; }
    .bws-lc-map-legend p { font-size: 7px; }
}
