/* =====================================================
   RETAILER PORTAL STYLES
   Matches the black / yellow theme of the main site.
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", Arial, sans-serif;
    background: #f6f6f6;
    color: #111;
}

:root {
    --yellow: #f5c400;
    --dark: #111111;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---------- TOP BAR ---------- */

.portal-topbar {
    background: var(--dark);
    color: #fff;
    padding: 18px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portal-topbar h1 {
    font-size: 18px;
}

.portal-topbar .portal-user {
    font-size: 13px;
    color: #ccc;
}

.portal-topbar a.logout {
    background: var(--yellow);
    color: #111;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 12px;
    border-radius: 4px;
}

/* ---------- LOGIN CARD ---------- */

.portal-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    padding: 20px;
}

.portal-login-card {
    background: #fff;
    width: 100%;
    max-width: 380px;
    padding: 40px 30px;
    border-radius: 6px;
}

.portal-login-card h2 {
    margin-bottom: 8px;
    font-size: 24px;
}

.portal-login-card p.sub {
    color: #777;
    font-size: 13px;
    margin-bottom: 25px;
}

.portal-login-card label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
    margin-top: 16px;
}

.portal-login-card input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.portal-login-card button {
    width: 100%;
    margin-top: 25px;
    padding: 14px;
    background: var(--dark);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 800;
    cursor: pointer;
}

.portal-login-card button:hover {
    background: var(--yellow);
    color: #111;
}

.portal-error {
    background: #ffe5e5;
    color: #b00000;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 15px;
}

.portal-success {
    background: #e5ffe9;
    color: #007a1f;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    margin: 15px 5%;
}

/* ---------- CONTAINER / TABLES ---------- */

.portal-container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 5%;
}

.portal-container h2 {
    margin-bottom: 20px;
}

.portal-table {
    width: 100%;
    background: #fff;
    border-collapse: collapse;
    border-radius: 6px;
    overflow: hidden;
}

.portal-table th, .portal-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.portal-table thead th {
    background: var(--dark);
    color: var(--yellow);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .5px;
}

.portal-table input[type="number"] {
    width: 70px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.portal-btn {
    display: inline-block;
    background: var(--dark);
    color: #fff;
    padding: 10px 18px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.portal-btn:hover {
    background: var(--yellow);
    color: #111;
}

.portal-btn-yellow {
    background: var(--yellow);
    color: #111;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-confirmed { background: #cfe2ff; color: #084298; }
.status-dispatched { background: #e0cffc; color: #4b0082; }
.status-completed { background: #d1e7dd; color: #0f5132; }
.status-cancelled { background: #f8d7da; color: #842029; }

.portal-form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    background: #fff;
    padding: 20px;
    border-radius: 6px;
}

.portal-form-row input, .portal-form-row select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    flex: 1;
    min-width: 150px;
}

.portal-empty {
    background: #fff;
    padding: 40px;
    text-align: center;
    color: #888;
    border-radius: 6px;
}

.portal-nav {
    display: flex;
    gap: 20px;
    margin: 20px 5% 0;
    font-size: 13px;
    font-weight: 700;
}

.portal-nav a {
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
}

.portal-nav a.active {
    border-bottom-color: var(--yellow);
}
