235 lines
11 KiB
CSS
235 lines
11 KiB
CSS
:root {
|
|
--bg: #f1f5f9; --white: #fff; --border: #e2e8f0;
|
|
--text: #0f172a; --text2: #475569; --text3: #94a3b8;
|
|
--blue: #1d4ed8; --blue-lt: #eff6ff;
|
|
--green: #15803d; --green-lt: #f0fdf4;
|
|
--red: #b91c1c; --red-lt: #fef2f2;
|
|
--sidebar-w: 320px;
|
|
}
|
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
html, body { height: 100%; font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--bg); overflow: hidden; }
|
|
body { display: flex; }
|
|
|
|
#sidebar {
|
|
width: var(--sidebar-w); min-width: var(--sidebar-w);
|
|
background: var(--white); border-right: 1px solid var(--border);
|
|
display: flex; flex-direction: column; z-index: 200;
|
|
}
|
|
.sb-head {
|
|
padding: 18px 16px 14px; border-bottom: 1px solid var(--border);
|
|
background: var(--white); color: var(--text);
|
|
}
|
|
.sb-head-top { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
|
|
.sb-logo {
|
|
width: 38px; height: 38px; border-radius: 10px;
|
|
background: linear-gradient(135deg, var(--blue), #60a5fa);
|
|
display: flex; align-items: center; justify-content: center; flex-shrink: 0;
|
|
box-shadow: 0 2px 8px rgba(29,78,216,.25);
|
|
}
|
|
.sb-logo svg { width: 18px; height: 18px; fill: #fff; }
|
|
.sb-title h1 { font-size: 14px; font-weight: 700; color: var(--text); }
|
|
.sb-title p { font-size: 10.5px; color: var(--text3); margin-top: 2px; }
|
|
.sb-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
|
|
.sb-stat {
|
|
background: var(--bg); border: 1px solid var(--border);
|
|
border-radius: 8px; padding: 8px 6px; text-align: center;
|
|
}
|
|
.sb-stat b { display: block; font-size: 16px; font-weight: 800; font-family: 'DM Mono', monospace; line-height: 1; }
|
|
.sb-stat span { font-size: 8.5px; color: var(--text3); margin-top: 4px; display: block; text-transform: uppercase; letter-spacing: .3px; font-weight: 600; }
|
|
.sb-stat.total b { color: var(--blue); }
|
|
.sb-stat.open b { color: var(--green); }
|
|
.sb-stat.closed b{ color: var(--red); }
|
|
|
|
.sb-section-lbl {
|
|
font-size: 9.5px; font-weight: 700; color: var(--text3);
|
|
text-transform: uppercase; letter-spacing: .8px; padding: 10px 8px 4px;
|
|
}
|
|
.sb-item {
|
|
display: flex; align-items: center; gap: 9px; padding: 8px 10px;
|
|
border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 500;
|
|
color: var(--text2); transition: all .15s; border: 1px solid transparent; text-decoration: none;
|
|
}
|
|
.sb-item:hover { background: var(--bg); color: var(--text); }
|
|
.sb-item.active { background: var(--blue-lt); color: var(--blue); border-color: #bfdbfe; font-weight: 600; }
|
|
.sb-item .ico { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
|
|
|
|
.sb-body { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
|
|
.sb-search { padding: 12px; border-bottom: 1px solid var(--border); }
|
|
.sb-search input {
|
|
width: 100%; padding: 9px 12px 9px 34px;
|
|
border: 1px solid var(--border); border-radius: 8px; font-size: 13px;
|
|
outline: none; font-family: inherit; background: var(--bg);
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.099zM6.5 12a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11z'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat; background-position: 11px center;
|
|
}
|
|
.sb-search input:focus { border-color: var(--blue); background-color: #fff; }
|
|
|
|
.sb-filter { display: flex; padding: 0 12px 10px; gap: 5px; }
|
|
.sb-filter button {
|
|
flex: 1; padding: 6px 4px; font-size: 11px; font-weight: 600;
|
|
border: 1px solid var(--border); border-radius: 6px; background: var(--white);
|
|
color: var(--text2); cursor: pointer; font-family: inherit; transition: all .15s;
|
|
}
|
|
.sb-filter button.active { background: var(--blue); color: #fff; border-color: var(--blue); }
|
|
|
|
.sb-list-head {
|
|
padding: 0 14px 8px; display: flex; justify-content: space-between; align-items: center;
|
|
font-size: 11px; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: .4px;
|
|
}
|
|
.sb-list { flex: 1; overflow-y: auto; }
|
|
.sb-list::-webkit-scrollbar { width: 4px; }
|
|
.sb-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
|
|
|
|
.spbu-item {
|
|
padding: 11px 14px; border-bottom: 1px solid #f1f5f9; cursor: pointer;
|
|
display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start;
|
|
transition: background .12s;
|
|
}
|
|
.spbu-item:hover { background: #f8fafc; }
|
|
.spbu-item.active { background: var(--blue-lt); border-left: 3px solid var(--blue); padding-left: 11px; }
|
|
.spbu-dot {
|
|
width: 10px; height: 10px; border-radius: 50%; margin-top: 4px;
|
|
border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.1);
|
|
}
|
|
.spbu-nama { font-size: 13px; font-weight: 600; line-height: 1.3; }
|
|
.spbu-meta { font-size: 11px; color: var(--text3); margin-top: 3px; font-family: 'DM Mono', monospace; }
|
|
.spbu-badge { font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 5px; white-space: nowrap; }
|
|
.badge-green { background: var(--green-lt); color: var(--green); }
|
|
.badge-red { background: var(--red-lt); color: var(--red); }
|
|
.no-result { padding: 32px 16px; text-align: center; color: var(--text3); font-size: 13px; }
|
|
|
|
.sb-foot {
|
|
padding: 10px 14px; border-top: 1px solid var(--border);
|
|
font-size: 11px; color: var(--text3); display: flex; justify-content: space-between;
|
|
}
|
|
.sb-foot b { color: var(--text2); }
|
|
|
|
/* Add form in sidebar */
|
|
.form-panel { padding: 16px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 0; }
|
|
.form-panel h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
|
|
.form-panel .form-desc { font-size: 12px; color: var(--text2); line-height: 1.5; margin-bottom: 16px; }
|
|
.form-group { margin-bottom: 14px; }
|
|
.form-group label {
|
|
display: block; font-size: 11px; font-weight: 700; color: var(--text3);
|
|
text-transform: uppercase; letter-spacing: .4px; margin-bottom: 5px;
|
|
}
|
|
.form-group input, .form-group select {
|
|
width: 100%; padding: 10px 12px; border: 1px solid var(--border);
|
|
border-radius: 8px; font-size: 14px; font-family: inherit; outline: none; background: #fff;
|
|
transition: border-color .15s, box-shadow .15s;
|
|
}
|
|
.form-group input:focus, .form-group select:focus {
|
|
border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,78,216,.1);
|
|
}
|
|
.form-group input[readonly] { background: var(--bg); color: var(--text2); font-family: 'DM Mono', monospace; font-size: 12px; }
|
|
.coord-box {
|
|
display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
|
|
}
|
|
.coord-box input { text-align: center; }
|
|
.form-alert {
|
|
padding: 10px 12px; border-radius: 8px; font-size: 12px; margin-bottom: 14px;
|
|
background: var(--red-lt); color: var(--red); border: 1px solid #fecaca;
|
|
}
|
|
.form-hint {
|
|
font-size: 11px; color: var(--text3); padding: 10px 12px;
|
|
background: var(--bg); border-radius: 8px; border: 1px solid var(--border);
|
|
line-height: 1.5; margin-top: auto;
|
|
}
|
|
.form-hint.active { border-color: #93c5fd; background: var(--blue-lt); color: var(--blue); }
|
|
.form-actions { display: flex; gap: 8px; margin-top: 16px; }
|
|
.btn-primary {
|
|
flex: 1; padding: 11px; background: var(--blue); color: #fff; border: none;
|
|
border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
|
|
}
|
|
.btn-primary:hover { background: #1e40af; }
|
|
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
|
|
.btn-secondary {
|
|
padding: 11px 14px; background: #f1f5f9; color: var(--text2); border: 1px solid var(--border);
|
|
border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
|
|
}
|
|
|
|
#map-area { flex: 1; position: relative; min-width: 0; display: flex; flex-direction: column; height: 100%; }
|
|
#map { flex: 1; min-height: 0; width: 100%; position: relative; }
|
|
|
|
#map-controls {
|
|
position: absolute; top: 14px; right: 14px; z-index: 800;
|
|
background: var(--white); border: 1px solid var(--border);
|
|
border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.1);
|
|
width: 190px; overflow: hidden; font-size: 12px;
|
|
}
|
|
.mc-section { padding: 10px 12px; border-bottom: 1px solid var(--border); }
|
|
.mc-section:last-child { border-bottom: none; }
|
|
.mc-label {
|
|
font-size: 10px; font-weight: 700; color: var(--text3);
|
|
text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px;
|
|
}
|
|
.mc-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; cursor: pointer; color: var(--text2); }
|
|
.mc-row:last-child { margin-bottom: 0; }
|
|
.mc-row input { accent-color: var(--blue); }
|
|
.mc-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
|
|
.mc-base { display: flex; gap: 5px; }
|
|
.mc-base-btn {
|
|
flex: 1; padding: 7px 4px; border: 1px solid var(--border); border-radius: 6px;
|
|
background: var(--white); font-size: 11px; font-weight: 600; color: var(--text2);
|
|
cursor: pointer; font-family: inherit; transition: all .15s;
|
|
}
|
|
.mc-base-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }
|
|
|
|
#map-hint {
|
|
position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
|
|
z-index: 800; background: rgba(15,23,42,.88); color: #fff;
|
|
padding: 8px 16px; border-radius: 8px; font-size: 12px; pointer-events: none;
|
|
}
|
|
#toast {
|
|
position: fixed; bottom: 20px; right: 20px; z-index: 9000;
|
|
background: #0f172a; color: #fff; padding: 11px 16px; border-radius: 8px;
|
|
font-size: 13px; display: none; box-shadow: 0 4px 16px rgba(0,0,0,.2);
|
|
}
|
|
#toast.show { display: block; }
|
|
|
|
#edit-modal {
|
|
display: none; position: fixed; inset: 0; z-index: 9999;
|
|
background: rgba(15,23,42,.4); align-items: center; justify-content: center; padding: 20px;
|
|
}
|
|
#edit-modal.active { display: flex; }
|
|
#edit-box {
|
|
background: #fff; border-radius: 12px; padding: 24px;
|
|
width: 100%; max-width: 380px; box-shadow: 0 16px 48px rgba(0,0,0,.18);
|
|
}
|
|
#edit-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
|
|
#edit-box label {
|
|
display: block; font-size: 11px; font-weight: 700; color: var(--text3);
|
|
text-transform: uppercase; letter-spacing: .4px; margin: 12px 0 4px;
|
|
}
|
|
#edit-box input, #edit-box select {
|
|
width: 100%; padding: 9px 12px; border: 1px solid var(--border);
|
|
border-radius: 8px; font-size: 14px; font-family: inherit; outline: none;
|
|
}
|
|
#edit-box input:focus, #edit-box select:focus { border-color: var(--blue); }
|
|
.edit-btns { display: flex; gap: 8px; margin-top: 20px; }
|
|
.edit-btns button {
|
|
flex: 1; padding: 10px; border-radius: 8px; font-size: 13px;
|
|
font-weight: 600; cursor: pointer; font-family: inherit; border: none;
|
|
}
|
|
.btn-save { background: var(--blue); color: #fff; }
|
|
.btn-cancel { background: #f1f5f9; color: var(--text2); }
|
|
|
|
.popup-wrap { font-family: 'DM Sans', sans-serif; min-width: 190px; }
|
|
.popup-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
|
|
.popup-row { font-size: 12px; color: var(--text2); margin-bottom: 3px; }
|
|
.popup-coord { font-size: 11px; color: var(--text3); font-family: 'DM Mono', monospace; margin: 4px 0 8px; }
|
|
.popup-badge { display: inline-block; padding: 2px 8px; border-radius: 5px; font-size: 10px; font-weight: 700; }
|
|
.popup-actions { display: flex; gap: 6px; margin-top: 10px; }
|
|
.btn-edit, .btn-delete {
|
|
flex: 1; border: none; padding: 7px; border-radius: 6px;
|
|
font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
|
|
}
|
|
.btn-edit { background: var(--blue); color: #fff; }
|
|
.btn-delete { background: var(--red); color: #fff; }
|
|
.btn-yes, .btn-no {
|
|
border: none; padding: 7px 16px; border-radius: 6px;
|
|
font-size: 12px; font-weight: 600; cursor: pointer; margin: 3px; font-family: inherit;
|
|
}
|
|
.btn-yes { background: var(--green); color: #fff; }
|
|
.btn-no { background: #e2e8f0; color: var(--text2); }
|