296 lines
4.8 KiB
CSS
296 lines
4.8 KiB
CSS
.locations-container {
|
|
padding: 20px;
|
|
max-width: 1000px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.locations-filter-form {
|
|
display: flex;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
}
|
|
|
|
.locations-filter-add {
|
|
margin-left: auto;
|
|
}
|
|
|
|
.search-input {
|
|
flex: 1;
|
|
min-width: 250px;
|
|
}
|
|
|
|
.locations-list {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 15px 0;
|
|
}
|
|
|
|
.locations-list th {
|
|
background: #f5f5f5;
|
|
padding: 12px;
|
|
text-align: left;
|
|
border-bottom: 2px solid #ddd;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.locations-list td {
|
|
padding: 12px;
|
|
border-bottom: 1px solid #ddd;
|
|
}
|
|
|
|
.locations-list tr:hover {
|
|
background: #f9f9f9;
|
|
}
|
|
|
|
.actions {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.button {
|
|
display: inline-block;
|
|
padding: 8px 12px;
|
|
background: #007bff;
|
|
color: #fff;
|
|
text-decoration: none;
|
|
border-radius: 4px;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.button:hover {
|
|
background: #0056b3;
|
|
}
|
|
|
|
.button-primary {
|
|
background: #28a745;
|
|
}
|
|
|
|
.button-primary:hover {
|
|
background: #218838;
|
|
}
|
|
|
|
.button-secondary {
|
|
background: #6c757d;
|
|
}
|
|
|
|
.button-secondary:hover {
|
|
background: #5a6268;
|
|
}
|
|
|
|
.button:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.button-small {
|
|
padding: 4px 8px;
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
.button-danger {
|
|
background: #dc3545;
|
|
}
|
|
|
|
.button-danger:hover {
|
|
background: #c82333;
|
|
}
|
|
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 40px 20px;
|
|
background: #f9f9f9;
|
|
border: 1px solid #eee;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.hierarchy-section {
|
|
padding: 20px;
|
|
max-width: 1200px;
|
|
margin: 30px auto;
|
|
border-top: 1px solid #ddd;
|
|
}
|
|
|
|
.hierarchy-section h2 {
|
|
margin-bottom: 15px;
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
.hierarchy-table {
|
|
width: 100%;
|
|
border-collapse: separate;
|
|
border-spacing: 0;
|
|
border: 1px solid #d8dee5;
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.hierarchy-table th {
|
|
background: #f3f6fa;
|
|
padding: 10px 12px;
|
|
text-align: left;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
border-bottom: 1px solid #d8dee5;
|
|
}
|
|
|
|
.hierarchy-table td {
|
|
padding: 9px 12px;
|
|
border-bottom: 1px solid #eef2f6;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.hierarchy-row:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.hierarchy-row--empty {
|
|
background: #fcfcfc;
|
|
}
|
|
|
|
.hierarchy-cell {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.hierarchy-cell--location {
|
|
background: #fbfcfe;
|
|
font-weight: 600;
|
|
min-width: 170px;
|
|
}
|
|
|
|
.hierarchy-cell--building {
|
|
padding-left: 18px;
|
|
min-width: 180px;
|
|
}
|
|
|
|
.hierarchy-cell--floor {
|
|
padding-left: 24px;
|
|
min-width: 190px;
|
|
}
|
|
|
|
.hierarchy-cell--room {
|
|
padding-left: 56px;
|
|
min-width: 190px;
|
|
}
|
|
|
|
.hierarchy-cell--empty {
|
|
background: #fafbfd;
|
|
width: 20px;
|
|
}
|
|
|
|
.hierarchy-meta {
|
|
color: #4e5c6b;
|
|
font-size: 0.88rem;
|
|
}
|
|
|
|
.hierarchy-meta--muted {
|
|
color: #8a94a3;
|
|
}
|
|
|
|
.hierarchy-actions {
|
|
display: flex;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.hierarchy-actions .button {
|
|
padding: 4px 10px;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.floor-preview-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(15, 23, 42, 0.85);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 16px;
|
|
z-index: 1100;
|
|
visibility: hidden;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.2s ease, visibility 0.2s ease;
|
|
}
|
|
|
|
.floor-preview-overlay.is-visible {
|
|
visibility: visible;
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.floor-preview-card {
|
|
width: min(960px, 100%);
|
|
max-height: calc(100vh - 32px);
|
|
background: #fff;
|
|
border-radius: 12px;
|
|
box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.floor-preview-header,
|
|
.floor-preview-footer {
|
|
padding: 16px 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
border-bottom: 1px solid #edf2f7;
|
|
}
|
|
|
|
.floor-preview-footer {
|
|
border-top: 1px solid #edf2f7;
|
|
border-bottom: none;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.floor-preview-label {
|
|
font-size: 0.8rem;
|
|
letter-spacing: 0.1em;
|
|
text-transform: uppercase;
|
|
margin: 0;
|
|
color: #6c757d;
|
|
}
|
|
|
|
.floor-preview-header h3 {
|
|
margin: 2px 0 0;
|
|
font-size: 1.35rem;
|
|
}
|
|
|
|
.floor-preview-body {
|
|
padding: 16px 24px 24px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 12px;
|
|
overflow-y: auto;
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.floor-preview-body canvas {
|
|
width: 100%;
|
|
max-width: 900px;
|
|
background: #0a0c10;
|
|
border-radius: 10px;
|
|
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.floor-preview-empty {
|
|
margin: 0;
|
|
color: #6c757d;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.floor-preview-close {
|
|
background: transparent;
|
|
color: #1f2a37;
|
|
border: 1px solid #dfe3ea;
|
|
}
|
|
|
|
.floor-preview-close:hover {
|
|
background: #f4f5f7;
|
|
}
|