/* admin.yachtdestinations.org — shared styles */
:root {
    --blue: #0a4a7a;
    --blue-dark: #073a61;
    --bg: #f2f4f6;
    --border: #d6dce2;
    --ok: #2e7d32;
    --warn: #b45309;
    --bad: #c0392b;
}
* { box-sizing: border-box; }
body {
    margin: 0; padding: 0;
    font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: #222;
}
a { color: var(--blue); }
#header-bar {
    background: var(--blue);
    color: #fff;
    padding: 10px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9em;
}
#site-title { font-weight: bold; font-size: 1.1em; }
#header-bar a { color: #cfe4f7; }
#tab-nav {
    background: var(--blue-dark);
    display: flex;
}
#tab-nav a {
    color: #cfe4f7;
    text-decoration: none;
    padding: 12px 24px;
    font-size: 1.05em;
}
#tab-nav a.active {
    background: var(--bg);
    color: var(--blue-dark);
    font-weight: bold;
}
#content {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px 60px 20px;
}
h1 { font-size: 1.4em; }
h2 { font-size: 1.15em; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}
.flash-ok, .flash-info {
    padding: 10px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
}
.flash-ok { background: #e6f4ea; color: var(--ok); border: 1px solid #b7dfc0; }
.flash-info { background: #eef3fa; color: var(--blue); border: 1px solid #c7dbf0; }
.field-group { margin-bottom: 12px; }
.field-group label { display: block; font-weight: 600; font-size: 0.85em; margin-bottom: 3px; color: #444; }
.field-group input[type=text], .field-group input[type=email], .field-group input[type=tel],
.field-group select, .field-group textarea {
    width: 100%; padding: 7px; border: 1px solid var(--border); border-radius: 4px; font-size: 1em;
}
.field-group textarea { min-height: 90px; font-family: inherit; resize: vertical; }
.field-group textarea.longtext { min-height: 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px 20px; }
.form-grid .full-row { grid-column: 1 / -1; }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 6px 0; }
.field-group .checkbox-row label { display: inline-flex; align-items: center; gap: 5px; font-weight: normal; font-size: 0.95em; margin: 0; color: #222; }
button, .btn {
    background: var(--blue); color: #fff; border: 0; border-radius: 4px;
    padding: 9px 18px; font-size: 1em; cursor: pointer; text-decoration: none; display: inline-block;
}
button:hover, .btn:hover { background: var(--blue-dark); }
.group-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.group-nav a {
    padding: 8px 14px; border-radius: 4px; text-decoration: none;
    background: #e8edf2; color: #333; font-size: 0.9em;
}
.group-nav a.active { background: var(--blue); color: #fff; }
table.recip-table { width: 100%; border-collapse: collapse; font-size: 0.92em; }
table.recip-table th, table.recip-table td {
    border-bottom: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top;
}
table.recip-table th { background: #eef1f4; }
.status-renew { color: var(--ok); font-weight: bold; }
.status-requested { color: var(--warn); font-weight: bold; }
.status-declined, .status-canceled { color: var(--bad); }
.status-confirmed { color: #1565c0; font-weight: bold; }
.status-review, .status-none { color: #888; }
tr.needs-response { background: #fff8e1; }
.needs-response-tag {
    display: inline-block; font-size: 0.72em; font-weight: bold; letter-spacing: .02em;
    color: var(--warn); border: 1px solid var(--warn); border-radius: 3px;
    padding: 1px 5px; margin-left: 6px; vertical-align: middle; text-transform: uppercase;
}
.status-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.status-form select { padding: 4px; }
.login-wrap {
    max-width: 380px; margin: 100px auto; background: #fff; border: 1px solid var(--border);
    border-radius: 8px; padding: 30px;
}
.login-wrap h1 { text-align: center; font-size: 1.3em; margin-top: 0; }
.login-error { background: #fdecea; color: var(--bad); border: 1px solid #f5c6c0; padding: 10px; border-radius: 4px; margin-bottom: 14px; }
.tools-layout { display: flex; gap: 20px; flex-wrap: wrap; }
.tools-menu { display: flex; flex-direction: column; gap: 6px; min-width: 180px; }
.tools-menu a {
    padding: 10px 14px; border-radius: 4px; text-decoration: none; background: #e8edf2; color: #333;
}
.tools-menu a.active { background: var(--blue); color: #fff; }
.tools-panel { flex: 1; min-width: 260px; }
.muted { color: #777; font-size: 0.9em; }
@media (max-width: 700px) {
    #header-bar { flex-direction: column; align-items: flex-start; }
    #tab-nav a { padding: 10px 16px; }
}
/* Recips: Status marks + column help (2026-10-24) */
.status-yes { color: var(--ok); font-weight: bold; font-size: 1.1em; }
.status-oneway { color: var(--warn); font-weight: bold; font-size: 1.1em; }
details.help-panel summary { cursor: pointer; font-weight: 600; color: var(--blue); }
details.help-panel dl { margin: 10px 0 0; }
details.help-panel dt { font-weight: 600; margin-top: 8px; }
details.help-panel dd { margin: 2px 0 0 0; color: #333; }
.small { font-size: 0.85em; }
/* Info → Officers and Appointees: one row per position (2026-10-24) */
table.officers-table { width: 100%; border-collapse: collapse; }
table.officers-table th { text-align: left; font-size: 0.85em; color: #444; padding: 4px 6px; background: #eef1f4; }
table.officers-table td { padding: 3px 4px; border-bottom: 1px solid var(--border); }
table.officers-table td:first-child { width: 2em; text-align: center; }
table.officers-table input { width: 100%; min-width: 140px; padding: 5px 6px; border: 1px solid var(--border); border-radius: 4px; font: inherit; box-sizing: border-box; }
