:root {
    font-family: Arial, Helvetica, sans-serif;
    color: #f5f2eb;
    background: #11110f;
}

.events-menu-card {
    background: linear-gradient(135deg, rgba(10, 78, 62, 0.5), rgba(22, 35, 30, 0.92));
    border-color: rgba(69, 178, 139, 0.36);
}

.events-menu-card:hover {
    border-color: rgba(91, 218, 171, 0.72);
    box-shadow: 0 24px 70px rgba(5, 67, 51, 0.28);
}

.employees-menu-card {
    background: linear-gradient(
        135deg,
        rgba(78, 55, 112, 0.55),
        rgba(30, 25, 39, 0.94)
    );
    border-color: rgba(173, 131, 226, 0.38);
}

.employees-menu-card:hover {
    border-color: rgba(199, 160, 247, 0.76);
    box-shadow: 0 24px 70px rgba(74, 42, 112, 0.3);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, #30261f 0, transparent 36%),
        #11110f;
}

button,
input,
textarea {
    font: inherit;
}

.dashboard {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.hero,
.page-header {
    margin-bottom: 46px;
}

.page-header .back-link {
    margin-bottom: 18px;
}

.back-link {
    display: inline-flex;
    color: #c8a66a;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    color: #dbbd87;
}

.eyebrow {
    margin: 0 0 12px;
    color: #c8a66a;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.subtitle {
    max-width: 620px;
    margin: 22px 0 0;
    color: #b8b3aa;
    font-size: 1.1rem;
    line-height: 1.6;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.menu-card {
    display: flex;
    min-height: 180px;
    gap: 22px;
    align-items: flex-start;
    padding: 28px;
    color: inherit;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 22px;
    backdrop-filter: blur(12px);
    transition:
        transform 160ms ease,
        background 160ms ease,
        border-color 160ms ease;
}

.menu-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(200, 166, 106, 0.65);
}

.icon {
    flex-shrink: 0;
    font-size: 2.3rem;
    line-height: 1;
}

.menu-card h2 {
    margin: 0 0 10px;
    font-size: 1.45rem;
}

.menu-card p {
    margin: 0;
    color: #aaa59c;
    line-height: 1.5;
}

.purchase-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 34px;
}

.purchase-metric {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 20px;
}

.purchase-metric span,
.purchase-metric small {
    color: #aaa59c;
}

.purchase-metric strong {
    margin: 12px 0 6px;
    color: #f5f2eb;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.purchase-menu-grid {
    margin-top: 10px;
}

.supplier-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    border-radius: 13px;
    cursor: pointer;
}

.primary-action {
    color: #17130f;
    background: #c8a66a;
    border: 1px solid #c8a66a;
}

.primary-action:hover {
    background: #dbbd87;
    border-color: #dbbd87;
}

.secondary-action {
    color: #f5f2eb;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.secondary-action:hover {
    border-color: rgba(200, 166, 106, 0.65);
}

.supplier-search {
    margin-bottom: 20px;
}

.supplier-directory {
    padding: 30px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
}

.supplier-directory-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.supplier-directory-heading h2 {
    margin: 0;
}

.supplier-list {
    display: grid;
    gap: 14px;
}

.supplier-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
}

.supplier-card-inactive {
    opacity: 0.65;
}

.supplier-card-main {
    min-width: 0;
    flex: 1;
}

.supplier-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.supplier-title-row h3 {
    margin: 0;
    font-size: 1.4rem;
}

.supplier-status,
.supplier-badges span {
    display: inline-flex;
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
}

.supplier-status.active {
    color: #9fe0b5;
    background: rgba(73, 177, 112, 0.16);
}

.supplier-status.inactive {
    color: #c3bdb3;
    background: rgba(255, 255, 255, 0.08);
}

.supplier-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 18px;
}

.supplier-badges span {
    color: #d7bd8e;
    background: rgba(200, 166, 106, 0.1);
    border: 1px solid rgba(200, 166, 106, 0.22);
}

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

.supplier-contact-grid p {
    min-width: 0;
    margin: 0;
}

.supplier-contact-grid small,
.supplier-contact-grid strong {
    display: block;
}

.supplier-contact-grid small {
    margin-bottom: 5px;
    color: #807b73;
}

.supplier-contact-grid strong {
    overflow-wrap: anywhere;
    font-size: 0.9rem;
}

.supplier-form-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.4fr);
    gap: 18px;
    align-items: start;
}

.supplier-form-guide {
    display: flex;
    min-height: 390px;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 22px;
}

.supplier-form-guide h2 {
    margin: 0 0 14px;
    font-size: 2rem;
}

.supplier-form-guide p {
    color: #aaa59c;
    line-height: 1.6;
}

.supplier-guide-note {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.supplier-active-toggle {
    display: flex;
    grid-column: 1 / -1;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    cursor: pointer;
}

.supplier-active-toggle input {
    width: 20px;
    height: 20px;
    accent-color: #c8a66a;
}

.supplier-active-toggle strong,
.supplier-active-toggle small {
    display: block;
}

.form-section-heading {
    margin-top: 0.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.form-section-heading h2 {
    margin: 0.25rem 0 0.35rem;
}

.form-section-heading p:last-child,
.bank-account-field small {
    color: var(--muted);
}

.bank-account-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.7rem;
}

.bank-account-control .secondary-action {
    cursor: pointer;
}

.bank-account-masked {
    -webkit-text-security: disc;
}

.supplier-bank-summary {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.supplier-bank-summary small,
.supplier-bank-summary strong {
    display: block;
}

.supplier-bank-summary small {
    color: var(--muted);
    margin-bottom: 0.3rem;
}

.purchase-entry-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.7fr);
    gap: 1.4rem;
    align-items: start;
}

.purchase-guide {
    position: sticky;
    top: 1.5rem;
}

.tax-preview {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.65rem 1rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.tax-preview small {
    color: var(--muted);
}

.tax-preview strong {
    text-align: right;
}

.money-input {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.money-input:focus-within {
    border-color: var(--accent);
}

.money-input span {
    padding-left: 1rem;
    color: var(--accent);
    font-weight: 700;
}

.money-input input {
    border: 0;
    background: transparent;
}

.mixed-amount-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.mixed-amount-grid[hidden],
#standard-amount[hidden] {
    display: none;
}

.recent-purchases {
    margin-top: 1.5rem;
}

.purchase-document-list {
    display: grid;
    gap: 0.75rem;
}

.purchase-document-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px 170px;
    gap: 1rem;
    align-items: center;
    padding: 1.15rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

.purchase-document-row small,
.purchase-document-row strong {
    display: block;
}

.purchase-document-row small {
    margin-top: 0.25rem;
    color: var(--muted);
}

.purchase-document-tax,
.purchase-document-total {
    text-align: right;
}

@media (max-width: 900px) {
    .purchase-entry-layout {
        grid-template-columns: 1fr;
    }

    .purchase-guide {
        position: static;
    }

    .purchase-document-row {
        grid-template-columns: 1fr 1fr;
    }

    .purchase-document-row > div:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .mixed-amount-grid,
    .purchase-document-row {
        grid-template-columns: 1fr;
    }

    .purchase-document-tax,
    .purchase-document-total {
        text-align: left;
    }
}

.history-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.history-filter-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
}

.history-document-list {
    display: grid;
    gap: 0.85rem;
}

.history-document-card {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) repeat(3, 120px);
    gap: 1rem;
    align-items: center;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
}

.history-document-card h3 {
    margin: 0;
}

.history-document-meta,
.void-reason {
    margin: 0.5rem 0 0;
    color: var(--muted);
}

.history-amount {
    text-align: right;
}

.history-amount small,
.history-amount strong {
    display: block;
}

.history-amount small {
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.history-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.history-actions form {
    display: flex;
    gap: 0.6rem;
}

.history-actions input {
    min-width: 260px;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    color: var(--text);
}

.danger-action {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(224, 91, 91, 0.55);
    border-radius: 12px;
    background: rgba(138, 35, 35, 0.25);
    color: #ffb4b4;
    font-weight: 700;
    cursor: pointer;
}

.history-document-void {
    opacity: 0.7;
}

@media (max-width: 900px) {
    .history-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .history-document-card {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .history-document-main {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .history-filter-grid,
    .history-document-card {
        grid-template-columns: 1fr;
    }

    .history-amount {
        text-align: left;
    }

    .history-actions,
    .history-actions form {
        flex-direction: column;
    }

    .history-actions input {
        min-width: 0;
        width: 100%;
    }
}

.supplier-active-toggle small {
    margin-top: 4px;
    color: #8f8980;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

.wine-search {
    margin-bottom: 32px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 22px;
    backdrop-filter: blur(12px);
}

.search-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.search-heading h2 {
    margin: 0;
    font-size: 1.8rem;
}

.search-icon {
    font-size: 2rem;
}

.search-box {
    display: flex;
    gap: 12px;
}

.search-box input {
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    color: #f5f2eb;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    outline: none;
}

.search-box input::placeholder {
    color: #807b73;
}

.search-box input:focus {
    border-color: #c8a66a;
    box-shadow: 0 0 0 3px rgba(200, 166, 106, 0.12);
}

.search-box button {
    min-width: 130px;
    padding: 0 24px;
    color: #17130f;
    font-size: 0.95rem;
    font-weight: 700;
    background: #c8a66a;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
}

.search-box button:hover {
    background: #dbbd87;
}

.wine-results {
    margin: 38px 0;
}

.status-message {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 28px;
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 18px;
}

.status-message.success {
    background: rgba(73, 177, 112, 0.09);
    border-color: rgba(73, 177, 112, 0.5);
}

.status-message.error {
    background: rgba(213, 82, 82, 0.09);
    border-color: rgba(213, 82, 82, 0.5);
}

.status-message h2 {
    margin: 0 0 7px;
    font-size: 1.2rem;
}

.status-message p {
    margin: 0;
    color: #b8b3aa;
    line-height: 1.5;
}

.delivery-panel {
    display: grid;
    grid-template-columns:
        minmax(260px, 0.8fr)
        minmax(0, 1.4fr);
    gap: 18px;
    align-items: stretch;
}

.selected-wine-card,
.delivery-form {
    padding: 30px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 22px;
    backdrop-filter: blur(12px);
}

.selected-wine-card {
    display: flex;
    min-height: 390px;
    flex-direction: column;
    justify-content: space-between;
}

.selected-wine-card h2 {
    margin: 0 0 14px;
    font-size: 2rem;
    line-height: 1.1;
}

.selected-wine-card p {
    margin: 0 0 12px;
    color: #aaa59c;
    line-height: 1.5;
}

.selected-wine-card strong {
    color: #f5f2eb;
}

.delivery-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field label {
    color: #d7d1c7;
    font-size: 0.9rem;
    font-weight: 700;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 16px;
    color: #f5f2eb;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    outline: none;
}

.form-field input {
    min-height: 56px;
}

.form-field textarea {
    min-height: 130px;
    resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #807b73;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: #c8a66a;
    box-shadow: 0 0 0 3px rgba(200, 166, 106, 0.12);
}

.primary-button {
    grid-column: 1 / -1;
    min-height: 58px;
    padding: 0 24px;
    color: #17130f;
    font-weight: 700;
    background: #c8a66a;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    transition:
        background 160ms ease,
        transform 160ms ease;
}

.primary-button:hover {
    transform: translateY(-2px);
    background: #dbbd87;
}

@media (max-width: 820px) {
    .delivery-panel {
        grid-template-columns: 1fr;
    }

    .selected-wine-card {
        min-height: 240px;
    }
}

@media (max-width: 720px) {
    .dashboard {
        padding: 42px 0;
    }

    .hero,
    .page-header {
        margin-bottom: 34px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-card {
        min-height: 150px;
    }

    .delivery-form {
        grid-template-columns: 1fr;
    }

    .form-field,
    .form-field-full,
    .primary-button {
        grid-column: 1;
    }
}

@media (max-width: 640px) {
    .wine-search,
    .selected-wine-card,
    .delivery-form {
        padding: 22px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box button {
        width: 100%;
        min-height: 52px;
    }
}.count-summary {
    margin-top: 32px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 22px;
    backdrop-filter: blur(12px);
}

.count-summary-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.count-summary-heading h2 {
    margin: 0;
    font-size: 1.8rem;
}

.count-totals {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    color: #aaa59c;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.count-totals strong {
    color: #c8a66a;
}

.count-table {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.count-row {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        120px
        190px;
    gap: 20px;
    align-items: center;
    min-height: 72px;
    padding: 14px 18px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 160ms ease;
}

.count-row:last-child {
    border-bottom: 0;
}

a.count-row:hover {
    background: rgba(255, 255, 255, 0.06);
}

.count-row-heading {
    min-height: 48px;
    color: #8f8a82;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.22);
}

.count-row strong {
    display: block;
    margin-bottom: 5px;
}

.count-row small {
    display: block;
    color: #918c84;
    line-height: 1.4;
}

.count-quantity {
    color: #c8a66a;
    font-size: 1.25rem;
    font-weight: 700;
}

.count-date {
    color: #918c84;
    font-size: 0.85rem;
}

.empty-state {
    margin: 0;
    padding: 32px;
    color: #918c84;
    text-align: center;
    background: rgba(0, 0, 0, 0.18);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 16px;
}

@media (max-width: 720px) {
    .count-summary {
        padding: 22px;
    }

    .count-summary-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .count-row {
        grid-template-columns:
            minmax(0, 1fr)
            70px;
    }

    .count-date,
    .count-row-heading span:last-child {
        display: none;
    }
}

@media (max-width: 520px) {
    .count-totals {
        width: 100%;
        justify-content: space-between;
    }
}.summary-row {
    display: grid;
    grid-template-columns:
        minmax(240px, 1fr)
        110px
        90px
        90px
        110px;
    gap: 18px;
    align-items: center;
    min-height: 72px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-row:last-child {
    border-bottom: 0;
}

.summary-row-heading {
    min-height: 48px;
    color: #8f8a82;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.22);
}

.summary-row strong {
    display: block;
    margin-bottom: 5px;
}

.summary-row small {
    display: block;
    color: #918c84;
    line-height: 1.4;
}

.difference-ok {
    color: #62c987;
    font-weight: 700;
}

.difference-alert {
    color: #ef7777;
    font-weight: 700;
}

.difference-pending {
    color: #c8a66a;
    font-size: 0.88rem;
    font-weight: 700;
}

@media (max-width: 820px) {
    .summary-row {
        grid-template-columns:
            minmax(180px, 1fr)
            90px
            80px
            100px;
    }

    .summary-row > span:nth-child(3),
    .summary-row-heading > span:nth-child(3) {
        display: none;
    }
}

@media (max-width: 640px) {
    .summary-row {
        grid-template-columns:
            minmax(140px, 1fr)
            70px
            90px;
        gap: 12px;
        padding: 14px;
    }

    .summary-row > span:nth-child(2),
    .summary-row-heading > span:nth-child(2) {
        display: none;
    }
}.inventory-close-form {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.confirmation-check {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    color: #d7d1c7;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    cursor: pointer;
}

.confirmation-check input {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin: 2px 0 0;
    accent-color: #c8a66a;
    cursor: pointer;
}

.inventory-close-form .primary-button {
    width: 100%;
}.form-field select {
    width: 100%;
    min-height: 56px;
    padding: 0 16px;
    color: #f5f2eb;
    font: inherit;
    background: #171715;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    outline: none;
    cursor: pointer;
}

.form-field select:focus {
    border-color: #c8a66a;
    box-shadow: 0 0 0 3px rgba(200, 166, 106, 0.12);
}

.form-field select option {
    color: #f5f2eb;
    background: #171715;
}

/* ==================================================
   PROFESSIONAL WINE RECORD
   ================================================== */

.wine-record-page {
    width: min(1240px, calc(100% - 40px));
}

.wine-record-header {
    margin-bottom: 38px;
}

.wine-record-header .back-link {
    margin-bottom: 24px;
}

.wine-record-title-row {
    display: flex;
    gap: 32px;
    align-items: flex-end;
    justify-content: space-between;
}

.wine-record-header h1 {
    max-width: 900px;
    font-size: clamp(3.4rem, 7vw, 6.3rem);
}

.wine-record-header .subtitle {
    margin-top: 18px;
}

.wine-status {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-bottom: 5px;
    padding: 0 16px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
}

.wine-status-available {
    color: #72d69a;
    background: rgba(73, 177, 112, 0.12);
    border-color: rgba(73, 177, 112, 0.45);
}

.wine-status-low-stock {
    color: #e3bd73;
    background: rgba(200, 166, 106, 0.12);
    border-color: rgba(200, 166, 106, 0.5);
}

.wine-status-out-of-stock {
    color: #ee8b8b;
    background: rgba(213, 82, 82, 0.12);
    border-color: rgba(213, 82, 82, 0.5);
}

.wine-status-discontinued {
    color: #aaa59c;
    background: rgba(255, 255, 255, 0.055);
}


/* STOCK OVERVIEW */

.stock-overview {
    margin-bottom: 24px;
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 20px;
    backdrop-filter: blur(12px);
}

.stock-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stock-metric {
    position: relative;
    min-width: 0;
    padding: 25px 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.09);
}

.stock-metric:last-child {
    border-right: 0;
}

.stock-metric-label {
    display: block;
    margin-bottom: 10px;
    color: #918c84;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.stock-metric strong {
    color: #f5f2eb;
    font-size: 2rem;
    line-height: 1;
}

.stock-metric small {
    margin-left: 6px;
    color: #8f8a82;
    font-size: 0.82rem;
}

.stock-progress {
    padding: 18px 28px 22px;
    background: rgba(0, 0, 0, 0.18);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stock-progress-heading {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #aaa59c;
    font-size: 0.78rem;
    font-weight: 700;
}

.stock-progress-track {
    width: 100%;
    height: 7px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.stock-progress-bar {
    min-width: 2px;
    height: 100%;
    background:
        linear-gradient(
            90deg,
            #a78349,
            #d8b978
        );
    border-radius: 999px;
    transition: width 300ms ease;
}


/* INFORMATION PANELS */

.wine-information-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.wine-information-panel {
    padding: 30px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.information-panel-heading {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.information-panel-heading h2 {
    margin: 0;
    font-size: 1.55rem;
}

.wine-data-list {
    margin: 0;
}

.wine-data-list > div {
    display: grid;
    grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.2fr);
    gap: 20px;
    align-items: baseline;
    min-height: 46px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.wine-data-list > div:first-child {
    padding-top: 0;
}

.wine-data-list > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.wine-data-list dt {
    color: #8f8a82;
    font-size: 0.82rem;
    font-weight: 700;
}

.wine-data-list dd {
    min-width: 0;
    margin: 0;
    color: #e7e2d9;
    font-size: 0.95rem;
    font-weight: 600;
    overflow-wrap: anywhere;
    text-align: right;
}

.wine-notes-panel {
    grid-column: 1 / -1;
}

.wine-record-notes {
    margin: 0;
    color: #aaa59c;
    line-height: 1.7;
    white-space: pre-wrap;
}

/* ==================================================
   WINE RECORD QUICK ACTIONS
   ================================================== */

.wine-quick-actions {
    margin-bottom: 30px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.quick-actions-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.quick-actions-heading h2 {
    margin: 0;
    font-size: 1.55rem;
}

.quick-actions-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.wine-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 12px 18px;
    color: #ddd7cc;
    font-size: 0.88rem;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 13px;
    transition:
        color 160ms ease,
        background 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}

.wine-action-button:hover {
    color: #f5f2eb;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(200, 166, 106, 0.55);
    transform: translateY(-2px);
}

.wine-action-primary {
    color: #17130f;
    background: #c8a66a;
    border-color: #c8a66a;
}

.wine-action-primary:hover {
    color: #17130f;
    background: #dbbd87;
    border-color: #dbbd87;
}


/* ==================================================
   WINE RECORD RESPONSIVE
   ================================================== */

@media (max-width: 960px) {

    .wine-record-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .wine-status {
        margin-bottom: 0;
    }

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

    .stock-metric {
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    }

    .stock-metric:nth-child(2) {
        border-right: 0;
    }

    .stock-metric:nth-child(3),
    .stock-metric:nth-child(4) {
        border-bottom: 0;
    }

    .wine-information-grid {
        grid-template-columns: 1fr;
    }

    .wine-notes-panel {
        grid-column: auto;
    }

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


@media (max-width: 640px) {

    .wine-record-page {
        width: min(100% - 24px, 1240px);
        padding-top: 36px;
    }

    .wine-record-header {
        margin-bottom: 28px;
    }

    .wine-record-header .back-link {
        margin-bottom: 20px;
    }

    .wine-record-header h1 {
        font-size: clamp(2.8rem, 15vw, 4.3rem);
        line-height: 0.95;
    }

    .wine-record-header .subtitle {
        margin-top: 15px;
        font-size: 1rem;
    }

    .wine-status {
        min-height: 35px;
        padding: 0 14px;
        font-size: 0.7rem;
    }

    .stock-metrics {
        grid-template-columns: 1fr;
    }

    .stock-metric {
        padding: 20px 22px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    }

    .stock-metric:nth-child(2),
    .stock-metric:nth-child(3) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    }

    .stock-metric:nth-child(4) {
        border-bottom: 0;
    }

    .stock-progress {
        padding: 17px 22px 20px;
    }

    .wine-information-panel,
    .wine-quick-actions {
        padding: 22px;
        border-radius: 17px;
    }

    .information-panel-heading {
        margin-bottom: 20px;
        padding-bottom: 17px;
    }

    .information-panel-heading h2,
    .quick-actions-heading h2 {
        font-size: 1.35rem;
    }

    .wine-data-list > div {
        display: block;
        min-height: auto;
        padding: 14px 0;
    }

    .wine-data-list dt {
        margin-bottom: 7px;
    }

    .wine-data-list dd {
        text-align: left;
    }

    .quick-actions-list {
        grid-template-columns: 1fr;
    }

    .wine-action-button {
        min-height: 52px;
    }
}

/* ==================================================
   WINE REGISTRY
   ================================================== */

.wine-registry-page {
    width: min(1240px, calc(100% - 40px));
}

.registry-page-header {
    margin-bottom: 34px;
}

.registry-title-row {
    display: flex;
    gap: 32px;
    align-items: flex-end;
    justify-content: space-between;
}

.registry-page-header h1 {
    max-width: 850px;
    font-size: clamp(3.5rem, 7vw, 6.2rem);
}

.registry-new-button {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    margin-bottom: 4px;
    padding: 0 24px;
    color: #17130f;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    background: #c8a66a;
    border: 1px solid #c8a66a;
    border-radius: 14px;
    transition:
        background 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}

.registry-new-button:hover {
    background: #dbbd87;
    border-color: #dbbd87;
    transform: translateY(-2px);
}


/* SEARCH AND SCANNER */

.registry-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.registry-tool-panel {
    display: flex;
    min-height: 245px;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 20px;
}

.registry-scan-panel {
    border-color: rgba(200, 166, 106, 0.35);
}

.registry-tool-heading {
    margin-bottom: 24px;
}

.registry-tool-heading h2 {
    margin: 0 0 10px;
    font-size: 1.55rem;
}

.registry-tool-heading p:last-child {
    margin: 0;
    color: #918c84;
    line-height: 1.5;
}

.registry-tool-form {
    display: flex;
    gap: 10px;
}

.registry-tool-form input {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 0 16px;
    color: #f5f2eb;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 13px;
    outline: none;
}

.registry-tool-form input::placeholder {
    color: #77736d;
}

.registry-tool-form input:focus {
    border-color: #c8a66a;
    box-shadow: 0 0 0 3px rgba(200, 166, 106, 0.12);
}

.registry-tool-form button {
    flex-shrink: 0;
    min-width: 105px;
    min-height: 54px;
    padding: 0 20px;
    color: #17130f;
    font-weight: 800;
    background: #c8a66a;
    border: 0;
    border-radius: 13px;
    cursor: pointer;
}

.registry-tool-form button:hover {
    background: #dbbd87;
}


/* REGISTRY RESULTS */

.registry-results {
    padding: 30px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.registry-results-heading {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.registry-results-heading h2 {
    margin: 0;
    font-size: 1.7rem;
}

.registry-result-count {
    display: inline-flex;
    gap: 7px;
    align-items: baseline;
    padding: 11px 15px;
    color: #918c84;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.registry-result-count strong {
    color: #c8a66a;
    font-size: 1.15rem;
}

.registry-result-count span {
    font-size: 0.82rem;
}

.registry-table {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.registry-row {
    display: grid;
    grid-template-columns:
        minmax(260px, 1.6fr)
        minmax(150px, 0.8fr)
        minmax(160px, 0.8fr)
        90px
        165px;
    gap: 18px;
    align-items: center;
    min-height: 82px;
    padding: 15px 20px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    transition:
        background 160ms ease,
        border-color 160ms ease;
}

.registry-row:last-child {
    border-bottom: 0;
}

a.registry-row:hover {
    background: rgba(255, 255, 255, 0.055);
}

.registry-row-heading {
    min-height: 48px;
    color: #817d76;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.22);
}

.registry-wine-identity strong {
    display: block;
    margin-bottom: 6px;
    color: #f5f2eb;
    font-size: 1rem;
}

.registry-wine-identity small {
    display: block;
    color: #8f8a82;
    line-height: 1.4;
}

.registry-importer,
.registry-barcode {
    color: #aaa59c;
    font-size: 0.87rem;
    overflow-wrap: anywhere;
}

.registry-stock strong {
    color: #c8a66a;
    font-size: 1.3rem;
}

.registry-stock small {
    display: block;
    margin-top: 4px;
    color: #817d76;
    font-size: 0.72rem;
}

/* ==================================================
   WINE REGISTRY RESPONSIVE
   ================================================== */

@media (max-width: 1050px) {
    .registry-row {
        grid-template-columns:
            minmax(240px, 1.5fr)
            minmax(140px, 0.8fr)
            90px
            155px;
    }

    .registry-barcode,
    .registry-row-heading span:nth-child(3) {
        display: none;
    }
}

@media (max-width: 820px) {
    .registry-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }

    .registry-new-button {
        width: 100%;
        margin-bottom: 0;
    }

    .registry-tools {
        grid-template-columns: 1fr;
    }

    .registry-tool-panel {
        min-height: 220px;
    }

    .registry-row {
        grid-template-columns:
            minmax(0, 1fr)
            85px
            150px;
    }

    .registry-importer,
    .registry-row-heading span:nth-child(2) {
        display: none;
    }
}

@media (max-width: 640px) {
    .wine-registry-page {
        width: min(100% - 24px, 1240px);
        padding-top: 36px;
    }

    .registry-page-header h1 {
        font-size: clamp(2.8rem, 15vw, 4.3rem);
        line-height: 0.95;
    }

    .registry-tool-panel,
    .registry-results {
        padding: 22px;
        border-radius: 17px;
    }

    .registry-tool-form {
        flex-direction: column;
    }

    .registry-tool-form button {
        width: 100%;
    }

    .registry-results-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .registry-result-count {
        width: 100%;
        justify-content: center;
    }

    .registry-table {
        overflow: visible;
        border: 0;
    }

    .registry-row-heading {
        display: none;
    }

    .registry-row {
        grid-template-columns:
            minmax(0, 1fr)
            auto;
        gap: 14px;
        min-height: 0;
        margin-bottom: 12px;
        padding: 18px;
        background: rgba(0, 0, 0, 0.18);
        border: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 14px;
    }

    .registry-row:last-child {
        margin-bottom: 0;
        border-bottom:
            1px solid rgba(255, 255, 255, 0.09);
    }

    .registry-stock {
        display: none;
    }

    .registry-row .wine-status {
        min-height: 32px;
        margin: 0;
        padding: 0 11px;
        font-size: 0.62rem;
    }
}

/* ==================================================
   WINE CELLAR — REGISTRY ACCESS
   ================================================== */

.wine-cellar-header-actions {
    display: flex;
    margin-top: 26px;
}

.wine-cellar-header-actions .registry-new-button {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .wine-cellar-header-actions {
        width: 100%;
    }

    .wine-cellar-header-actions .registry-new-button {
        width: 100%;
    }
}

/* Reorder List */

.reorder-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 34px;
}

.reorder-metric {
    display: flex;
    min-height: 140px;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 20px;
}

.reorder-metric-label {
    color: #aaa59c;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.reorder-metric strong {
    color: #f5f2eb;
    font-size: 2.4rem;
    line-height: 1;
}

.reorder-groups {
    display: grid;
    gap: 28px;
}

.beverage-reorder-table {
    border-top: 1px solid rgba(208, 170, 104, 0.28);
}

.reorder-section-label {
    padding: 18px 24px 8px;
    color: #d0aa68;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.reorder-group {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 22px;
    backdrop-filter: blur(12px);
}

.reorder-group-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    padding: 28px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reorder-group-header h2 {
    margin: 0 0 14px;
    font-size: 1.9rem;
}

.reorder-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    color: #aaa59c;
    font-size: 0.9rem;
    line-height: 1.5;
}

.reorder-group-summary {
    display: flex;
    flex-shrink: 0;
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    color: #aaa59c;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
}

.reorder-group-summary strong {
    color: #c8a66a;
}

.reorder-table {
    overflow-x: auto;
}

.reorder-row {
    display: grid;
    grid-template-columns:
        minmax(260px, 1fr)
        90px
        90px
        90px
        100px
        150px;
    gap: 18px;
    align-items: center;
    min-width: 880px;
    min-height: 84px;
    padding: 16px 30px;
    color: #f5f2eb;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition:
        background 160ms ease,
        border-color 160ms ease;
}

.reorder-row:last-child {
    border-bottom: 0;
}

a.reorder-row:hover {
    background: rgba(255, 255, 255, 0.065);
}

.reorder-row-heading {
    min-height: 52px;
    color: #8f8a82;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.2);
}

.reorder-wine strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.reorder-wine small {
    display: block;
    color: #918c84;
    line-height: 1.4;
}

.reorder-quantity {
    color: #c8a66a;
    font-size: 1.35rem;
}

.wine-status {
    display: inline-flex;
    width: fit-content;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid;
    border-radius: 999px;
}

.wine-status-low-stock {
    color: #e4bd6c;
    background: rgba(200, 166, 106, 0.1);
    border-color: rgba(200, 166, 106, 0.5);
}

.wine-status-out-of-stock {
    color: #ef8585;
    background: rgba(213, 82, 82, 0.1);
    border-color: rgba(213, 82, 82, 0.5);
}

.reorder-empty {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 32px;
    background: rgba(73, 177, 112, 0.08);
    border: 1px solid rgba(73, 177, 112, 0.45);
    border-radius: 22px;
}

.reorder-empty h2 {
    margin: 0 0 10px;
}

.reorder-empty p:last-child {
    margin: 0;
    color: #aaa59c;
}


@media (max-width: 900px) {
    .reorder-overview {
        grid-template-columns: 1fr;
    }

    .reorder-metric {
        min-height: 110px;
    }

    .reorder-group-header {
        flex-direction: column;
    }
}


@media (max-width: 720px) {
    .reorder-overview {
        gap: 12px;
    }

    .reorder-group-header {
        padding: 24px 22px;
    }

    .reorder-group-summary {
        width: 100%;
        justify-content: space-between;
    }

    .reorder-table {
        overflow: visible;
    }

    .reorder-row-heading {
        display: none;
    }

    .reorder-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
        gap: 18px;
        padding: 24px 22px;
    }

    .reorder-wine {
        grid-column: 1 / -1;
    }

    .reorder-row span:not(.wine-status),
    .reorder-row .reorder-quantity {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .reorder-row span:nth-child(2)::before {
        content: "Current Stock";
    }

    .reorder-row span:nth-child(3)::before {
        content: "Reorder Point";
    }

    .reorder-row span:nth-child(4)::before {
        content: "Target Stock";
    }

    .reorder-row .reorder-quantity::before {
        content: "Recommended Order";
    }

    .reorder-row span::before,
    .reorder-row .reorder-quantity::before {
        color: #8f8a82;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .wine-status {
        align-self: end;
    }
}


/* Authentication and active session */

.login-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 32px 16px;
}

.login-shell {
    width: min(460px, 100%);
}

.login-brand {
    margin-bottom: 28px;
    text-align: center;
}

.login-brand h1 {
    font-size: clamp(3rem, 12vw, 5rem);
}

.login-brand .subtitle {
    margin-right: auto;
    margin-left: auto;
}

.login-card {
    padding: 32px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 22px;
    backdrop-filter: blur(12px);
}

.login-card h2 {
    margin: 0 0 8px;
    font-size: 1.65rem;
}

.login-help {
    margin: 0 0 26px;
    color: #aaa59c;
    line-height: 1.5;
}

.login-form {
    display: grid;
    gap: 18px;
}

.login-field {
    display: grid;
    gap: 8px;
}

.login-field label {
    color: #c9c4bb;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.login-field input {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    color: #f5f2eb;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    outline: none;
}

.login-field input:focus {
    border-color: #c8a66a;
    box-shadow: 0 0 0 3px rgba(200, 166, 106, 0.12);
}

.login-button,
.logout-button {
    min-height: 48px;
    padding: 0 20px;
    color: #17130f;
    font-weight: 700;
    background: #c8a66a;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
}

.login-button {
    width: 100%;
    min-height: 54px;
    margin-top: 4px;
}

.login-button:hover,
.logout-button:hover {
    background: #dbbd87;
}

.login-error {
    margin: 0 0 22px;
    padding: 14px 16px;
    color: #f2aaaa;
    background: rgba(213, 82, 82, 0.09);
    border: 1px solid rgba(213, 82, 82, 0.5);
    border-radius: 12px;
}

.session-bar {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 42px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.session-bar > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
}

.session-label,
.session-role {
    color: #918c84;
    font-size: 0.82rem;
}

.session-role {
    padding: 4px 8px;
    color: #c8a66a;
    background: rgba(200, 166, 106, 0.1);
    border: 1px solid rgba(200, 166, 106, 0.28);
    border-radius: 999px;
}

.menu-card-disabled {
    cursor: default;
    opacity: 0.48;
}

.menu-card-disabled::after {
    align-self: flex-start;
    margin-left: auto;
    padding: 5px 8px;
    color: #918c84;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    content: "Coming soon";
}

@media (max-width: 560px) {
    .login-card {
        padding: 26px 22px;
    }

    .session-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .logout-button {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .purchase-metrics {
        grid-template-columns: 1fr;
    }

    .supplier-page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .supplier-page-header .primary-action {
        align-self: flex-start;
    }

    .supplier-card {
        align-items: stretch;
        flex-direction: column;
    }

    .supplier-card > .secondary-action {
        align-self: flex-start;
    }

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

    .supplier-form-layout {
        grid-template-columns: 1fr;
    }

    .supplier-form-guide {
        min-height: 0;
    }
}

@media (max-width: 600px) {
    .supplier-directory,
    .supplier-card {
        padding: 20px;
    }

    .supplier-directory-heading,
    .supplier-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .supplier-contact-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }
}

/* Events Management dashboard identity - keep after the base card styles. */
.menu-card.events-menu-card {
    background: linear-gradient(135deg, rgba(8, 91, 69, 0.68), rgba(18, 38, 31, 0.96));
    border-color: rgba(82, 196, 154, 0.48);
}

.menu-card.events-menu-card:hover {
    border-color: rgba(101, 224, 178, 0.8);
    box-shadow: 0 24px 70px rgba(5, 67, 51, 0.32);
}
