* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3f5f7;
    color: #1f2933;
}

a {
    text-decoration: none;
}

.logo img {
    max-width: 135px;
}

.box,
.dashboard,
.container {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.box {
    width: 390px;
    margin: 90px auto;
    padding: 35px;
}

.logo {
    text-align: center;
    margin-bottom: 22px;
}

h2 {
    margin: 0 0 22px;
    font-size: 26px;
    color: #111827;
}

input,
textarea,
select {
    width: 100%;
    padding: 13px 14px;
    margin: 10px 0px;
    border: 1px solid #d7dde3;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    background: #fff;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #41ad49;
    box-shadow: 0 0 0 3px rgba(65, 173, 73, 0.13);
}

textarea {
    min-height: 105px;
    resize: vertical;
}

label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 7px;
    display: block;
    color: #374151;
}

button,
.btn {
    background: #41ad49;
    color: #fff;
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    transition: 0.25s ease;
}

button:hover,
.btn:hover {
    background: #35933c;
    transform: translateY(-1px);
}

.btn-dark {
    background: #111827;
}

.btn-dark:hover {
    background: #000;
}

.error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 11px;
    border-radius: 9px;
    margin-bottom: 15px;
    font-size: 14px;
}

.dashboard {
    max-width: 920px;
    margin: 70px auto;
    padding: 38px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card {
    background: #f8fafc;
    border: 1px solid #edf0f3;
    border-radius: 16px;
    padding: 30px 18px;
    text-align: center;
    transition: 0.25s ease;
}

.card:hover {
    background: #ffffff;
    border-color: #41ad49;
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(65, 173, 73, 0.12);
}

.card a {
    color: #111827;
    font-size: 17px;
    font-weight: 700;
}

.container {
    max-width: 1080px;
    margin: 32px auto;
    padding: 30px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

hr {
    border: 0;
    border-top: 1px solid #edf0f3;
    margin: 22px 0;
}

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

.field {
    margin-bottom: 15px;
}

.search-box {
    background: #f8fafc;
    border: 1px solid #edf0f3;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

th {
    background: #f1f5f9;
    color: #111827;
    font-weight: 700;
}

th,
td {
    padding: 13px;
    border-bottom: 1px solid #edf0f3;
    text-align: left;
    font-size: 14px;
}

tr:hover td {
    background: #f9fafb;
}

/* Print Page */
.print-btn {
    text-align: center;
    margin: 20px;
}

.page {
    width: 210mm;
    min-height: 297mm;
    background: white;
    margin: 20px auto;
    padding: 14mm;
    position: relative;
}

.top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.small {
    font-size: 13px;
}

.title {
    font-size: 24px;
    font-weight: bold;
}

.line {
    border-bottom: 1px solid #000;
    min-height: 22px;
    padding-top: 4px;
}

.row {
    display: grid;
    grid-template-columns: 38mm 1fr;
    margin-bottom: 8px;
    font-size: 14px;
}

.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10mm;
}

.print-box {
    border: 1px solid #000;
    padding: 8px;
    min-height: 70px;
}

.note {
    font-size: 12px;
    line-height: 1.4;
}

.sign-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20mm;
    margin-top: 25px;
}

.checkbox {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 1px solid #000;
    margin-right: 6px;
    text-align: center;
    line-height: 13px;
}

.footer {
    position: absolute;
    bottom: 15mm;
    left: 14mm;
    right: 14mm;
    font-size: 13px;
}

@media print {
    body {
        background: white;
    }

    .print-btn {
        display: none;
    }

    .page {
        margin: 0;
        box-shadow: none;
        border-radius: 0;
    }
}

@media(max-width: 700px) {
    .box {
        width: 92%;
        margin: 50px auto;
        padding: 25px;
    }

    .dashboard,
    .container {
        width: 92%;
        margin: 25px auto;
        padding: 22px;
    }

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

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    table {
        display: block;
        overflow-x: auto;
    }
}