/* Extracted from `OCMUser.html` on 2026-02-13. Keep selectors unchanged. */

body {
    font-family: Arial, sans-serif;
    padding: 20px;
    max-width: 1200px;
margin: auto;
}

body.withTopBar {
    padding-top: 72px;
}

@supports (padding:max(0px)) {
    body.withTopBar {
  padding-top: max(72px, env(safe-area-inset-top));
    }
}

h1, h2, h3 {
    margin-top: 0;
}

.small {
    font-size: 12px;
    color: #555;
}

.muted {
    color: #666;
}

.section {
    margin: 18px 0;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
}

.toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.grid {
display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
    gap: 10px;
}

label {
    display: block;
    margin: 6px 0;
}

input, select, button {
    padding: 6px;
    font-size: 13px;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 10px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px 6px;
    font-size: 13px;
    vertical-align: top;
}

th {
    background: #f5f5f5;
}

.mono {
font-family: Consolas, monospace;
}

.pill {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 11px;
    background: #eee;
}

.pill-active {
    background: #e9ffe8;
}

.pill-pending {
    background: #fff8d0;
}

.pill-paused {
    background: #eee;
}

.pill-restock {
    background: #e8f7ff;
}

.tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tabs button {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
}

.tabs button[aria-selected="true"] {
    background: #222;
    color: #fff;
    border-color: #222;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 10px;
}

#authPanel {
    margin-bottom: 10px;
}

#googleLoginArea {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 4px 0;
}

#googleBtn {
    margin-top: 4px;
}

.login-hint {
    font-size: 12px;
color: #666;
    margin-top: 4px;
}

.fallback-login {
    margin-top: 4px;
}

/* ===== Store-style dropdown search ===== */
.dropdown-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
}

.dropdown-input {
    width: 100%;
    max-width: 360px;
    padding: 6px;
}

.dropdown-list {
    position: absolute;
    top: 100%;
left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    max-height: 220px;
overflow-y: auto;
    z-index: 500;
    border-radius: 4px;
    display: none;
}

.dropdown-item {
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 4px;
}

.dropdown-item:hover, .dropdown-item.active {
    background: #f0f6ff;
}

.inline-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.inline-row > * {
    flex: 0 0 auto;
}

dialog::backdrop {
    background: rgba(0,0,0,0.35);
}

.peg-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: #fafafa;
}

.peg-row {
border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    background: #fff;
    margin-top: 8px;
}

.peg-row-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.peg-row-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
    gap: 8px;
    margin-top: 8px;
}

.warn {
    color: #b45309;
    font-weight: bold;
}

.details-row td {
    background: #fafafa;
}

.details-box {
    padding: 10px;
}

.picklist-col h4 {
    margin-top: 0;
    padding-bottom: 6px;
    border-bottom: 2px solid #ddd;
}

.picklist-col.give h4 {
    border-color: #2ecc71;
    color: #27ae60;
}

.picklist-col.take h4 {
    border-color: #f39c12;
    color: #d35400;
}

.picklist-item {
    padding: 4px 0;
    border-bottom: 1px dashed #eee;
font-family: Consolas, monospace;
    font-size: 14px;
}

.picklist-empty {
    color: #aaa;
    font-style: italic;
    padding: 10px 0;
}

.pill-lite {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 10px;
    background: #eee;
    font-size: 12px;
    margin-right: 4px;
white-space: nowrap;
}

/* Favor/disfavor indicator (same colors as OCMHome) */
.trade-favor {
    font-weight: bold;
    margin-top: 4px;
display: block;
    white-space: normal;
}

.trade-favor.good {
    color: #2e7d32;
}

.trade-favor.bad {
    color: #c62828;
}

/* ===== Login terms warning ===== */
#loginTermsWarning {
    display: none;
    margin: 0 0 10px 0;
    padding: 10px 12px;
    border: 1px solid #f3b3b3;
    background: #fff2f2;
    border-radius: 8px;
    color: #a40000;
    font-size: 12px;
    line-height: 1.35;
}

#loginTermsWarning a {
    color: #a40000;
    text-decoration: underline;
}

h1 {
 color:#fff;
}
