﻿body {
    background-color: #1e1e1e;
    color: #ffffff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/*Search autocomplete*/

.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin: 2rem auto;
}

.toggle {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}

.form-control {
    width: 380px;
    padding: 6px 10px;
    font-size: 0.95rem;
    border: 1px solid #555;
    border-radius: 8px;
    background-color: #2b2b2b;
    color: #ffffff;
}

.autocomplete {
    position: relative;
    display: inline-block; 
}

.suggest {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border: 1px solid #444;
    border-top: none;
    z-index: 1000;
}

.suggest-list {
    position: absolute;
    z-index: 10;
    left: 0;
    right: 0;
    border: 3px solid #AAA;
    background: #2b2b2b;
    border-radius: 8px;
    margin-top: 4px;
    max-height: 280px;
    overflow: auto;
    text-align: left;
    padding-left: 10px;
}

.suggest-item {
    padding: 4px;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
}

.suggest-item:hover {
    background: #3a3a3a;
}

.suggest-address {
    max-width: 70%;
    text-overflow: ellipsis;
}

.suggest-type {
    padding-left: 12px;
    padding-right: 12px;
    font-size: 12px;
    color: #999;
    margin-left: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
    text-align: right;
}

/*details*/

#detailsPanel {
    display: none;
    min-height: 120px;
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #2b2b2b;
    border-radius: 8px;
    width: 90%;
    padding: 30px 50px;
}

.pg-card {
    background: #2b2b2b;
    border: 3px solid #999;
    border-radius: 10px;
    padding: 5px;
    margin: 15px 0;
}

.pg-card-header {
    padding: .75rem 1rem;
    border-bottom: 1px solid #444;
}

.pg-card-body {
    padding: 1rem;
}

.pg-section {
    margin: 1rem 0;
    padding: 0px 10px;
}

.pg-card-title {
    font-weight: 700;
    font-size: 1.3rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #fff;
}

.pg-section-title {
    font-weight: 500;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #ccc;
}

.pg-section-header {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 20px 0 10px;
    border: 1px solid #444;
    border-radius: 10px;
    padding: 5px 10px;
}

.pg-header-field {
    text-align: left;
    margin: 7px;
}

.pg-header-label {
    color: #bbb;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.pg-header-value {
    font-size: 1rem;
    font-weight: 400;
}

.pg-field {
    text-align: left;
    margin: 5px 7px 5px 0px;
}

.pg-label {
    color: #aaa;
    font-size: .9rem;
    margin-bottom: 3px;
}

.pg-value {
    font-size: 1rem;
    font-weight: 400;
}

.pg-subtitle {
    font-weight: 400;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.pg-subsection {
    margin: 10px 0;
}

.pg-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pg-col {
    flex: 1;
}

.pg-details {
    margin-top: 0;
}

.pg-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.pg-table th {
    background: #1f1f1f;
    font-weight: 600;
}

.pg-table th,
.pg-table td {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    vertical-align: top;
    text-align: center; 
    vertical-align: middle;
    word-wrap: break-word;
}

.pg-table th, .pg-table td {
    border: 1px solid #444;
    padding: .5rem .6rem;
    text-align: left;
    vertical-align: top;
}

.pg-grid-1 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

.pg-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pg-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.pg-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.pg-container {
    padding: 8px 12px;
    margin-top: 8px;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.pg-list {
    margin-top: 8px;
}

.pg-list-item {
    padding: 12px;
    margin-bottom: 12px;
}


details summary {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f9f9f9;
    cursor: pointer;
    width: auto;
    max-width: 200px;
    white-space: nowrap;
    text-align: center;
}

.pg-summary {
    cursor: pointer;
    font-weight: 700;
    padding: .75rem 1rem;
    background: #2b2b2b;
    border: 3px solid;
    border-radius: 10px;
    margin: 10px 0;
}

.pg-summary .when-open,
.pg-summary .when-closed {
    display: inline-block;
}

.pg-summary .when-open {
    visibility: hidden;
    position: absolute;
}

details[open] .pg-summary .when-open {
    visibility: visible;
    position: static;
}

details[open] .pg-summary .when-closed {
    visibility: hidden;
    position: absolute;
}

.pg-grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px 16px;
}

.pg-subdetails-table {
    width: 100%;
    border: 1px solid #444;
    border-collapse: collapse;
    table-layout: fixed;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

li {
    padding: 2px 0;
}

li:last-child {
    border-bottom: none;
}

/*common*/
.white-text {
    color: #fff !important;
}

.loading {
    opacity: .6;
    pointer-events: none;
}

.muted {
    color: #888;
    font-style: italic;
    cursor: default;
    font-size: 12px;
    font-weight: 600;
}