*,
*::before,
*::after {
    box-sizing: border-box;
}

@font-face {
    font-family: 'bog-font';
    src: url('Cairo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

html,
body {
    font-family: 'bog-font', Arial, Tahoma, sans-serif;
    line-height: 1.6;
    direction: rtl;
    color: #111;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

@media screen {
    body {
        background-color: #e8e8e8;
        background-image: url('oo17.png');
        background-repeat: repeat;
        background-size: auto;
        background-position: 0 0;
    }
}

main,
.container,
.page-wrap {
    width: 100%;
    max-width: 980px;
    margin-inline: auto;
    padding-inline: 16px;
    padding-block: 16px;
}

.sheet,
.page,
.form,
form,
.record,
.section,
.card {
    display: flow-root;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    padding: 18px 20px;
    margin: 18px auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.sheet + .sheet,
.page + .page,
.form + .form,
form + form,
.record + .record,
.section + .section,
.card + .card {
    margin-top: 22px;
}

.sheet h1,
.sheet h2,
.sheet h3,
.page h1,
.page h2,
.page h3,
.form h1,
.form h2,
.form h3,
form h1,
form h2,
form h3 {
    text-align: center;
    margin: 6px 0 12px;
}

.stamp {
    margin-top: 10px;
    font-size: 12px;
    color: #444;
    text-align: center;
}

.local-actions {
    margin-top: 10px;
    text-align: center;
}

.print-btn {
    border: 1px solid #000;
    background: #fff;
    color: #000;
    cursor: pointer;
    display: inline-block;
    font-size: .95rem;
    padding: .45rem .9rem;
    border-radius: .5rem;
}

.print-btn:hover {
    filter: brightness(.95);
}

.hint,
.empty {
    text-align: center;
}

input[type="date"],
input[type="text"],
input[type="number"],
select,
textarea {
    font: inherit;
    padding: .45rem .6rem;
    border: 1px solid #999;
    border-radius: .4rem;
    background: #fff;
    color: #111;
    min-width: 8rem;
}

button,
input[type="submit"],
input[type="button"] {
    border: 1px solid #000;
    background: #fff;
    color: #000;
    cursor: pointer;
    display: inline-block;
    font-size: .95rem;
    padding: .5rem .9rem;
    border-radius: .5rem;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    filter: brightness(.95);
}

table,
.tbl {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    background: #fff;
}

thead th,
.tbl thead th {
    background: #f3f3f3;
    font-weight: 700;
    text-align: center;
}

th,
td,
.tbl th,
.tbl td {
    border: 1px solid #bbb;
    padding: 8px 10px;
    vertical-align: top;
}

tr:nth-child(even) td,
.tbl tr:nth-child(even) td {
    background: #fafafa;
}

.center {
    text-align: center;
}

.mt {
    margin-top: 12px;
}

.compact th,
.compact td,
.tbl.compact th,
.tbl.compact td {
    padding: 6px 8px;
}

tr,
img {
    break-inside: avoid;
    page-break-inside: avoid;
}

.pre {
    white-space: pre-wrap;
    line-height: 1.9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fcfcfc;
}

.sheet {
    overflow-x: auto;
}

#ahmad1 {
    position: fixed;
    top: 10px;
    left: 40px;
    z-index: 1000;
    width: 30%;
    min-width: 260px;
    max-width: 520px;
    text-align: center;
    background-image: linear-gradient(180deg, #f7f7f7, #cfcfcf 40%, #c6c6c6);
    border-radius: 12px;
    box-shadow: 8px 8px 10px rgba(0, 0, 0, .33);
    padding: 12px 16px;
}

@media (max-width: 768px) {
    #ahmad1 {
        left: 16px;
        right: 16px;
        width: auto;
    }
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    direction: rtl;
    background: transparent !important;
}

.topbar .search-form {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

.topbar .search-form .filters.grid-5 {
    width: 90% !important;
    max-width: 1600px !important;
    margin-inline: auto !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 12px !important;
    direction: ltr !important;
    justify-items: center;
    align-items: start;
    background: #fff;
    border: 1px solid #cfcfcf;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    font-size: 13px;
    line-height: 1.25;
    overflow-x: auto;
}

.topbar .search-form .filters.grid-5 legend {
    grid-column: 1 / -1;
    justify-self: center;
    padding: 0 8px;
    font-weight: 700;
    color: #333;
}

.topbar .search-form .filters .col-actions {
    grid-column: 1 / 2;
    display: grid;
    grid-template-rows: repeat(4, min-content);
    gap: 8px;
    width: 100%;
    direction: rtl;
    text-align: right;
}

.topbar .search-form .filters .col-models {
    grid-column: 2 / 5;
    justify-self: center;
    width: 78%;
    max-width: 720px;
    direction: rtl;
    text-align: right;
}

.topbar .search-form .filters .col-side {
    grid-column: 5 / 6;
    display: grid;
    grid-template-rows: repeat(3, min-content);
    gap: 10px;
    width: 100%;
    direction: rtl;
    text-align: right;
}

.topbar .search-form .filters .models-3col {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 10px;
}

.topbar .search-form .filters .models-col {
    display: grid;
    grid-template-rows: repeat(3, min-content);
    gap: 8px;
}

.topbar .search-form .filters .vstack {
    display: grid;
    gap: 6px;
}

.topbar .search-form .filters .w-100 {
    width: 100%;
}

.topbar .search-form .filters .ghost {
    opacity: .7;
    border-style: dashed;
}

.topbar .search-form .filters input[type="date"],
.topbar .search-form .filters input[type="text"],
.topbar .search-form .filters input[type="number"],
.topbar .search-form .filters select,
.topbar .search-form .filters textarea {
    font: inherit;
    padding: .42rem .55rem;
    border: 1px solid #999;
    border-radius: .4rem;
    min-width: 10rem;
}

.topbar .search-form .filters button {
    padding: .42rem .75rem;
    font-size: 12px;
    border-radius: 8px;
}

.topbar .search-form .filters .radioline,
.topbar .search-form .filters .checkline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fafafa;
    min-width: 0;
}

.topbar .search-form .filters .radioline span,
.topbar .search-form .filters .checkline span,
.nowrap {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.topbar .search-form .filters .models-3col .checkline {
    justify-content: center !important;
    text-align: center !important;
    width: 100%;
    padding: 5px 8px;
}

.topbar .search-form .filters .models-3col .checkline span {
    white-space: nowrap !important;
    text-align: center !important;
}

.topbar .sheet,
.topbar .page,
.topbar .form,
.topbar .record,
.topbar .section,
.topbar .card {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

@media (max-width: 1200px) {
    .topbar .search-form .filters.grid-5 {
        grid-template-columns: 1.2fr 1fr 1fr !important;
    }

    .topbar .search-form .filters .col-actions {
        grid-column: 1 / 2;
    }

    .topbar .search-form .filters .col-models {
        grid-column: 2 / 4;
        width: 90%;
        max-width: 680px;
    }

    .topbar .search-form .filters .col-side {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .topbar .search-form .filters.grid-5 {
        grid-template-columns: 1fr !important;
    }

    .topbar .search-form .filters .col-actions,
    .topbar .search-form .filters .col-models,
    .topbar .search-form .filters .col-side {
        grid-column: 1 / -1;
    }

    .topbar .search-form .filters .col-models {
        width: 100%;
        max-width: none;
    }

    .topbar .search-form .filters .models-3col {
        grid-template-columns: 1fr;
    }
}

@media screen {
    .tbl.compact {
        table-layout: fixed !important;
        font-size: 12px !important;
        line-height: 1.25 !important;
    }

    .tbl.compact.tight th,
    .tbl.compact.tight td {
        padding: 5px 6px !important;
    }

    .tbl.compact th,
    .tbl.compact td,
    .clip {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: clip !important;
    }

    .tbl.compact tr {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }
}

@page {
    size: A4;
    margin: 12mm 10mm 14mm 10mm;
}

@media print {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;

    html,
    body {
        background: #fff !important;
        background-image: none !important;
    }

    .no-print,
    #ahmad1,
    nav,
    .controls,
    .topbar,
    .search-form,
    .local-actions,
    input[type="button"],
    input[type="submit"],
    button {
        display: none !important;
    }

    main,
    .container,
    .page-wrap {
        max-width: none !important;
        padding-inline: 0 !important;
    }

    .sheet,
    .page,
    .form,
    form,
    .record,
    .section,
    .card {
        border: .6pt solid #000 !important;
        border-radius: 0 !important;
        margin: 0 0 8mm 0 !important;
        box-shadow: none !important;
        page-break-inside: avoid !important;
    }

    thead {
        display: table-header-group;
    }

    tfoot {
        display: table-footer-group;
    }

    th,
    td {
        border: .6pt solid #000 !important;
        padding: 6pt 8pt !important;
        background: #fff !important;
        color: #000 !important;
    }

    a[href]::after {
        content: "" !important;
    }

    .tbl.compact {
        font-size: 8pt !important;
        table-layout: fixed !important;
        line-height: 1.2 !important;
    }

    .tbl.compact.tight th,
    .tbl.compact.tight td {
        padding: 3pt 4pt !important;
    }

    .tbl.compact th,
    .tbl.compact td,
    .clip {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: clip !important;
    }

    .tbl.compact tr {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    .tbl.compact thead {
        display: table-header-group;
    }

    .tbl.compact tfoot {
        display: table-footer-group;
    }
}