body {
    margin: 0;
    background: #f3f6f8;
    font-family: Segoe UI,Arial;
    color: #243342;
}

.top {
    background: #087f5b;
    color: white;
    padding: 18px 26px;
    font-size: 22px;
    font-weight: 700;
}

.nav {
    float: right;
    font-size: 14px;
}

    .nav a {
        color: white;
        margin-left: 18px;
        text-decoration: none;
    }

.wrap {
    max-width: 1400px;
    margin: 24px auto;
    padding: 0 18px;
}

.card {
    background: white;
    border: 1px solid #e3e9ed;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 5px 18px #2030400d;
}

h2 {
    color: #123b32;
    margin-top: 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
}

.field label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 5px;
}

.field input, .field textarea, .field select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #d7e0e5;
    border-radius: 7px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #eff7f3;
    color: #275447;
    text-align: left;
    padding: 10px;
    font-size: 12px;
}

td {
    padding: 7px;
    border-bottom: 1px solid #edf0f2;
}

    td input {
        width: 100%;
        box-sizing: border-box;
        padding: 8px;
        border: 1px solid #dce4e8;
        border-radius: 5px;
    }

.btn {
    background: #087f5b;
    color: white;
    border: 0;
    border-radius: 7px;
    padding: 10px 17px;
    cursor: pointer;
}

.totals {
    max-width: 350px;
    margin-left: auto;
    line-height: 2;
}

.grand {
    font-size: 22px;
    font-weight: 800;
    color: #087f5b;
}

@media(max-width:850px) {
    .grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media print {
    .no-print {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border: 0;
    }

    .wrap {
        margin: 0;
    }
    @media print {
    .sidebar,
    .main-top,
    .no-print,
    .btn,
    input[type=submit] {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .app-shell,
    .main-area {
        display: block !important;
        width: 100% !important;
    }

    .content-area {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .card {
        box-shadow: none !important;
        border: none !important;
        break-inside: avoid;
    }

    table {
        width: 100%;
        border-collapse: collapse;
    }

    tr {
        break-inside: avoid;
    }
}
}
