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

/* ===============================
   BASE
================================ */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f8fafc;
    color: #0f172a;
}

/* ===============================
   LAYOUT
================================ */
.client-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

/* ===============================
   SIDEBAR
================================ */
.client-sidebar {
    background: #020617;
    color: #fff;
    padding: 30px 20px;
}

.client-sidebar h2 {
    font-size: 20px;
    margin-bottom: 30px;
}

.client-sidebar a {
    display: block;
    color: #c7d2fe;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 6px;
    font-weight: 600;
    transition: .2s;
}

.client-sidebar a:hover,
.client-sidebar a.active {
    background: #4f46e5;
    color: #fff;
}

/* ===============================
   MAIN
================================ */
.client-main {
    padding: 40px;
}

/* ===============================
   HEADER
================================ */
.client-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.client-header h1 {
    font-size: 28px;
}

.client-user {
    font-size: 14px;
    color: #475569;
}

/* ===============================
   STATS
================================ */
.client-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.client-stat-box {
    background: #fff;
    padding: 26px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
}

.client-stat-box strong {
    display: block;
    font-size: 28px;
}

.client-stat-box span {
    font-size: 14px;
    color: #64748b;
}

/* ===============================
   ACTION BOX
================================ */
.client-action-box {
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    border: 1px solid #e5e7eb;
    margin-bottom: 40px;
}

.client-action-box h3 {
    margin-bottom: 10px;
}

.client-action-box p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
}

/* ===============================
   TABLE
================================ */
.client-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.client-table th {
    background: #f1f5f9;
    padding: 14px;
    text-align: left;
    font-size: 14px;
}

.client-table td {
    padding: 14px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
}

/* ===============================
   BUTTONS
================================ */
.client-btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 999px;
    background: #4f46e5;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.client-btn:hover {
    background: #4338ca;
}

/* ===============================
   LIVE VALUES
================================ */
.client-live-value {
    font-size: 32px;
    font-weight: 800;
    color: #0ea5e9;
}

/* ===============================
   STATUS
================================ */
.client-status-active {
    color: #16a34a;
    font-weight: 600;
}

.client-status-inactive {
    color: #64748b;
}

/* ===============================
   LOGIN
================================ */
.client-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #020617;
}

.client-login-box {
    background: #fff;
    padding: 36px;
    border-radius: 18px;
    width: 100%;
    max-width: 380px;
}

.client-login-box h2 {
    margin-bottom: 24px;
    text-align: center;
}

.client-login-box input {
    width: 100%;
    padding: 14px;
    margin-bottom: 14px;
    border-radius: 10px;
    border: 1px solid #cbd5f5;
}

.client-login-box button {
    width: 100%;
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 900px) {
    .client-wrapper {
        grid-template-columns: 1fr;
    }

    .client-sidebar {
        display: none;
    }
}
 /* Kontener tabeli i sekcji */
    .client-action-box {
        background: #fff;
        padding: 25px;
        border-radius: 12px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
        margin-bottom: 30px;
        border: 1px solid #e2e8f0;
    }

    .client-action-box h3 {
        margin-top: 0;
        margin-bottom: 15px;
        font-size: 1.1rem;
        color: #1e293b;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Input wyszukiwarki */
    .search-input {
        width: 100%;
        padding: 12px 16px;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        font-size: 14px;
        color: #334155;
        background-color: #fff;
        transition: all 0.2s ease;
        outline: none;
        margin-bottom: 20px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }
    .search-input:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    }

    /* Tabela */
    .table-container {
        overflow-x: auto;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
    }

    table.modern-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.9rem;
        text-align: left;
    }

    table.modern-table thead {
        background-color: #f8fafc;
        color: #64748b;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 0.05em;
    }

    table.modern-table th,
    table.modern-table td {
        padding: 16px 20px;
        border-bottom: 1px solid #e2e8f0;
        vertical-align: middle;
    }

    table.modern-table tbody tr:last-child td {
        border-bottom: none;
    }

    table.modern-table tbody tr:hover {
        background-color: #f1f5f9;
    }

    /* Typografia w tabeli */
    .company-name {
        font-weight: 600;
        color: #0f172a;
        font-size: 1rem;
        display: block;
    }
    .contact-info {
        color: #64748b;
        font-size: 0.85rem;
    }
    .money-val {
        font-weight: 600;
        color: #059669; /* Zielony dla pieniędzy */
    }

    /* Buttony */
    .btn-action {
        background-color: #4f46e5;
        color: #fff;
        border: none;
        padding: 8px 16px;
        border-radius: 6px;
        font-weight: 500;
        font-size: 0.85rem;
        cursor: pointer;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: background 0.2s;
    }
    .btn-action:hover {
        background-color: #4338ca;
    }
    
    .btn-approve {
        background-color: #10b981; 
    }
    .btn-approve:hover {
        background-color: #059669;
    }

    /* Badge NEW */
    .badge-new {
        background-color: #fee2e2;
        color: #991b1b;
        font-size: 0.7rem;
        padding: 2px 8px;
        border-radius: 99px;
        font-weight: 700;
        margin-left: 8px;
        text-transform: uppercase;
    }