
body {
    font-family: 'Noto Sans Devanagari', 'Roboto', sans-serif;
}

.manualcontainer {
    max-width: 900px;
    margin: auto auto 50px auto;
    background: white;
    padding: 20px 60px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: justify;
}

    .manualcontainer .search-box {
        width: 95%;
        margin: 10px auto;
        padding: 10px;
        display: block;
    }

    .manualcontainer .manualsection {
        margin-bottom: 20px;
    }

        .manualcontainer .manualsection h3 {
            font-size: 1.2rem;
            cursor: pointer;
            background: var(--accent);
            color: #fff;
            padding: 5px;
            border-radius: 5px;
            margin-bottom: 5px;
        }

    .manualcontainer .section-title {
        margin-top: 15px;
        font-weight: bold;
    }

    .manualcontainer .manualsection h2 {
        font-size: 1.2rem;
        cursor: pointer;
        background: var(--accent);
        color: #fff;
        padding: 5px;
        border-radius: 5px;
        margin-bottom: 5px;
    }

    .manualcontainer .manualsection p {
        margin-left: 15px;
        /*display: none;*/
    }

    .manualcontainer .manualsection.open p {
        display: block;
    }

    .manualcontainer li {
        margin: 5px 0; /* Adds space before and after each list item */
    }

    .manualcontainer ul {
        margin-left: 5px;
    }

    .manualcontainer h1, h2, h3 {
        text-align: center;
        color: var(--accent);
        font-size: 1.5rem;
    }

    .manualcontainer h2 {
        padding-bottom: 5px;
        color: var(--accent);
    }

    .manualcontainer ol {
        padding-left: 20px;
    }


    .manualcontainer table {
        width: 100%;
        margin-top: 15px;
        border: 1px solid #000; /* border="1" */
        border-collapse: collapse; /* cellspacing="0" effect */
        text-align: center;
        background: white;
        margin: auto;
    }

.my-table tbody td {
    text-align: left;
}

thead th {
    text-align: center;
}


th, td {
    border: 1px solid #000;
    padding: 6px;
    text-align: center;
    /* text-align: left; */
    vertical-align: top;
}

th {
    text-align: center;
    vertical-align: middle;
    background-color: #f2f2f2;
}

th {
    background: #4CAF50;
    color: white;
}


.manualcontainer .rightalign {
    text-align: right;
}

.manualcontainer .leftalign {
    padding: 8px;
    text-align: left;
}

.manualcontainer .paraCenter {
    text-align: center;
}

.manualcontainer .hidden {
    display: none;
}

.manualcontainer > .nav:first-child, .nav:first-child button {
    margin-top: 0px !important;
}

.manualcontainer .nav {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.manualcontainer button {
    padding: 10px 15px;
    border: none;
    background: var(--accent);
    color: white;
    cursor: pointer;
    margin: 10px 0;
    border-radius: 20px;
    padding: 5px 15px;
}

    .manualcontainer button:hover {
        background: #45a049;
    }

.hindi-list {
    padding-left: 40px; /* main indent */
    /* list-style: none; */
    list-style-type: lower-alpha; /* a, b, c */
}

.photo {
    width: 140px;
    height: 160px;
    border: 1px solid black;
    text-align: center;
    vertical-align: middle;
    /* display:flex; */
    align-items: left;
    /* justify-content:center; */
}

.sender {
    padding: 8px;
    vertical-align: top;
    text-align: left;
}

.custom-list {
    list-style: none;
    padding-left: 20px;
}

    .custom-list li {
        position: relative;
        margin-bottom: 8px;
    }

        .custom-list li::before {
            /* content: "●"; */
            color: #2e7d32;
            content: "➤";
            /* color: #1565c0; */
            font-size: 14px;
            position: absolute;
            left: -18px;
            top: 2px;
        }

th.text-left, td.text-left {
    text-align: left;
}

/* Hide border for first top cell */
.no-border {
    border: none !important;
}

/* Auto serial number */
tbody {
    counter-reset: serial;
}

    tbody tr {
        counter-increment: serial;
    }

td.serial::before {
    content: counter(serial);
}

/* Make date columns wide */
.col-date {
    width: 30px;
}


/* form-2 */
/* AUTO NUMBERING */
.form {
    counter-reset: item;
}

.center {
    text-align: center;
}


.manualcontainer .row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
    gap: 8px;
    margin: 4px 0;
}

    .manualcontainer .row::before {
        counter-increment: item;
        content: counter(item) ".";
        white-space: nowrap;
        width: 25px; /* 👈 FIXED SPACE FOR ALIGNMENT */
        display: inline-block;
        text-align: right;
        margin-right: 6px;
    }

.manualcontainer .underline {
    border-bottom: 1px dotted #000;
    display: inline-block;
}


.manualcontainer .signature {
    margin-top: 40px;
    text-align: right;
}

.manualcontainer .label {
    white-space: nowrap;
}

.manualcontainer .field {
    display: flex;
    flex: 1;
    align-items: baseline;
}

.manualcontainer .line {
    flex: 1;
    border-bottom: 1px dotted #000;
    margin-left: 6px;
    transform: translateY(-2px);
}

/* FIX: NOTE ALIGNMENT SAME AS ROW CONTENT START */
.note {
    margin-left: 50px; /* 25px number + 6px gap */
    /* font-size:14px; */
    text-align: left;
}

/* index */

tr:nth-child(even) {
    background: #f2f2f2;
}

tr:hover {
    background: #ddd;
    cursor: pointer;
}

.active {
    background: #ffeb3b !important;
}

.manualcontainer a {
    text-decoration: none;
    color: black;
}

/* Mobile */
@media(max-width:600px) {
    table, tr, td {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 10px;
    }
}
