/* ---------- GLOBAL ---------- */
body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #eef2f7, #f9fbfd);
    margin: 20px;
    color: #333;
}

h2, h3 {
    margin-bottom: 12px;
    color: #222;
}

/* ---------- FORMS ---------- */
form {
    margin-bottom: 20px;
    background: #ffffff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

label {
    font-size: 13px;
    font-weight: 600;
    margin-right: 6px;
}

input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 7px 9px;
    font-size: 13px;
    border: 1px solid #ccd2da;
    border-radius: 4px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74,144,226,0.15);
}

textarea {
    min-height: 60px;
    resize: vertical;
}

/* ---------- BUTTONS ---------- */
button {
    padding: 8px 16px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.1s;
}

button:hover {
    background: linear-gradient(135deg, #357abd, #2d6fa8);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

button:active {
    transform: scale(0.97);
}

/* ---------- TABLE ---------- */
table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

th, td {
    border-bottom: 1px solid #e1e6eb;
    padding: 8px 10px;
    font-size: 13px;
    vertical-align: top;
}

th {
    background: #f1f4f8;
    font-weight: 700;
    text-align: left;
    color: #444;
}

tr:hover {
    background: #f9fbfd;
}

/* ---------- SPECIAL ROWS ---------- */
.add-row {
    background: #f6fbff !important;
}

.add-row td {
    border-bottom: 1px dashed #c6d9ef;
}

/* ---------- CHECKBOX ---------- */
input[type="checkbox"] {
    transform: scale(1.1);
    cursor: pointer;
}

/* ---------- INVOICE ---------- */
.invoice-box {
    background: #ffffff;
    padding: 25px;
    max-width: 760px;
    margin: 30px auto;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.invoice-box h2 {
    text-align: center;
    margin-bottom: 20px;
}

.total {
    font-size: 17px;
    font-weight: bold;
    color: #222;
    margin-top: 15px;
}

/* ---------- STATUS COLORS ---------- */
.status-Submitted {
    color: #28a745;
    font-weight: 600;
}

.status-Resubmitted {
    color: #dc3545;
    font-weight: 600;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    table {
        font-size: 12px;
    }

    th, td {
        padding: 6px;
    }

    button {
        padding: 6px 12px;
    }
}
