:root {
    --bg: #f6f3ec;
    --panel: #ffffff;
    --text: #17212b;
    --muted: #667085;
    --line: #d8dee6;
    --brand: #0f766e;
    --brand-dark: #115e59;
    --free: #16a34a;
    --occupied: #dc2626;
    --reserved: #d97706;
    --maintenance: #64748b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
}

.topbar {
    align-items: center;
    background: #0b3b3a;
    color: #fff;
    display: flex;
    justify-content: space-between;
    padding: 14px 24px;
}

.brand {
    font-size: 20px;
    font-weight: 700;
}

.nav {
    align-items: center;
    display: flex;
    gap: 12px;
}

.nav a,
.link-button {
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
}

.shell {
    margin: 0 auto;
    max-width: 1280px;
    padding: 24px;
}

.grid {
    display: grid;
    gap: 18px;
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel,
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

h1,
h2,
h3 {
    margin: 0 0 14px;
}

.muted {
    color: var(--muted);
}

.stat {
    font-size: 28px;
    font-weight: 700;
}

.btn {
    align-items: center;
    background: var(--brand);
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 40px;
    padding: 10px 14px;
    text-decoration: none;
}

.btn.secondary {
    background: #334155;
}

.btn.danger {
    background: #b91c1c;
}

input,
select,
textarea {
    border: 1px solid var(--line);
    border-radius: 6px;
    display: block;
    font: inherit;
    margin-top: 6px;
    min-height: 40px;
    padding: 9px 10px;
    width: 100%;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 12px;
}

.form-row {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.alert {
    border-radius: 8px;
    margin-bottom: 18px;
    padding: 12px 14px;
}

.alert.ok {
    background: #dcfce7;
    color: #14532d;
}

.alert.error {
    background: #fee2e2;
    color: #7f1d1d;
}

.beach-grid {
    display: grid;
    gap: 10px;
    overflow-x: auto;
}

.umbrella {
    border: 2px solid var(--line);
    border-radius: 8px;
    min-height: 86px;
    padding: 10px;
}

.umbrella.compact {
    color: var(--text);
    display: grid;
    gap: 4px;
    min-height: 88px;
    text-decoration: none;
}

.umbrella.empty {
    opacity: .25;
}

.umbrella.free {
    border-color: var(--free);
}

.umbrella.occupied {
    border-color: var(--occupied);
}

.umbrella.reserved {
    border-color: var(--reserved);
}

.umbrella.maintenance {
    border-color: var(--maintenance);
}

.umbrella-title {
    font-size: 18px;
    font-weight: 700;
}

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

.button-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.button-grid .btn {
    width: 100%;
}

.modal {
    display: none;
}

.modal:target {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 20;
}

.modal-backdrop {
    background: rgba(15, 23, 42, .62);
    inset: 0;
    position: absolute;
}

.modal-panel {
    background: var(--panel);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
    max-height: 90vh;
    max-width: 620px;
    overflow: auto;
    padding: 20px;
    position: relative;
    width: 100%;
    z-index: 21;
}

table {
    border-collapse: collapse;
    width: 100%;
}

td,
th {
    border-bottom: 1px solid var(--line);
    padding: 10px;
    text-align: left;
}

@media (max-width: 860px) {
    .grid.two,
    .grid.three,
    .form-row,
    .button-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}
