body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 20px;
    background: #f7f7f7;
    color: #222;
}

.ace-page {
    max-width: 1400px;
    margin: 0 auto;
}

h1 {
    margin-bottom: 20px;
}

.form-section {
    margin-bottom: 35px;
}

.form-title {
    padding: 10px 14px;
    background: #16324f;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    padding: 10px 12px;
    border: 1px solid #ccc;
    vertical-align: top;
}

th {
    background: #e9eef2;
    text-align: left;
}

.record-number {
    width: 70px;
    text-align: center;
    font-weight: bold;
}

.record-title {
    width: 220px;
    font-weight: bold;
}

.arabic {
    direction: rtl;
    text-align: right;
    font-size: 24px;
    line-height: 1.7;
    font-family:
        "Traditional Arabic",
        "Noto Naskh Arabic",
        Tahoma,
        Arial,
        sans-serif;
}

.urdu {
    direction: rtl;
    text-align: right;
    font-size: 19px;
    line-height: 2;
    font-family:
        "Noto Nastaliq Urdu",
        "Jameel Noori Nastaleeq",
        "Noto Naskh Arabic",
        serif;
}

tbody tr:nth-child(even) {
    background: #fafafa;
}

tbody tr:hover {
    background: #f1f5f8;
}

/* Keep table usable on smaller screens */
.form-section {
    overflow-x: auto;
}

@media (max-width: 800px) {
    body {
        margin: 10px;
    }

    th,
    td {
        padding: 8px;
    }

    .record-title {
        min-width: 180px;
    }

    .arabic {
        min-width: 150px;
    }

    .urdu {
        min-width: 180px;
    }
}