@charset "utf-8";

/* CSS Document */
:root {
    direction: rtl; /* Sets text direction to right-to-left */
    writing-mode: horizontal-tb; /* Default writing mode for horizontal text */
    text-orientation: mixed; /* Default orientation for mixed vertical and horizontal text */
    font-family:  'Noto Naskh Arabic',serif;/* Sets a clear and common font */
    font-size: 16px; /* Sets a base font size */
}

html, body {
    margin: 0;
    padding: 0;
    font-family: inherit; /* Inherit font-family from :root */
    direction: inherit; /* Inherit direction from :root */
    writing-mode: inherit; /* Inherit writing-mode from :root */
    text-orientation: inherit; /* Inherit text-orientation from :root */
    font-size: inherit; /* Inherit font size from :root */
}

body, h1, h2, h3 {
    text-align: center;
    line-height: 1.6; /* Increase line height for readability */
}

h1 {
    font-size: 2em; /* Larger font size for h1 */
}

h2 {
    font-size: 1.75em; /* Larger font size for h2 */
}

h3 {
    font-size: 1.5em; /* Larger font size for h3 */
}
.form-control.mr-sm-2 {
  max-width: 200px;
}
#myTable3 {
    font-size: 1em; /* Larger font size for table */
}

.table td.fit,
.table th.fit {
    white-space: nowrap;
    width: 1%;
}

.clicked {
    background-color: #00CC00 !important;
}

.hidden {
    display: none !important;
}

#center {
    color: #000 !important;
    font-weight: bolder !important;
    height: 99%;
    width: 99%;
    position: relative;
}

#center::after {
    content: "";
    background-image: url(logo23.jpg) !important;
    background-repeat: no-repeat !important;
    background-size: 99% !important;
    opacity: 0.5;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: absolute;
    z-index: -1;
}

/* ========== Statement Table (kashf) ========== */
.kashf {
    border-collapse: separate;
    border-spacing: 0;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    font-size: 0.85rem;
    background: #fff;
    width: 95%;
    margin: 12px auto;
}

/* Header row */
.kashf > tr:first-child > th,
.kashf > thead > tr > th,
.kashf > tbody > tr:first-child > th {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 10px 8px;
    border: none;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
}

/* Balance header — keep distinctive */
.kashf > tr:first-child > th:nth-child(3),
.kashf > thead > tr > th:nth-child(3),
.kashf > tbody > tr:first-child > th:nth-child(3) {
    background: #3b5bdb !important;
    color: #fff;
}

/* All cells */
.kashf td {
    padding: 7px 8px;
    border-bottom: 1px solid #e2e8f0;
    border-left: 1px solid #e2e8f0;
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
    transition: background 0.15s;
}
.kashf td:first-child { border-right: none; }
.kashf td:last-child { border-left: none; }

/* Header cell borders */
.kashf > tr:first-child > th,
.kashf > thead > tr > th,
.kashf > tbody > tr:first-child > th {
    border-left: 1px solid rgba(255,255,255,0.1);
}
.kashf > tr:first-child > th:first-child,
.kashf > thead > tr > th:first-child,
.kashf > tbody > tr:first-child > th:first-child { border-right: none; }
.kashf > tr:first-child > th:last-child,
.kashf > thead > tr > th:last-child,
.kashf > tbody > tr:first-child > th:last-child { border-left: none; }

/* Debit column (col 1) — red tint for amounts */
.kashf td:nth-child(1) {
    font-weight: 600;
    color: #dc2626;
}
.kashf td:nth-child(1):empty,
.kashf td:nth-child(1)[value="0"] {
    color: #cbd5e1;
}

/* Credit column (col 2) — green tint */
.kashf td:nth-child(2) {
    font-weight: 600;
    color: #059669;
}

/* Balance column (col 3) — prominent */
.kashf td:nth-child(3) {
    background: #eef2ff !important;
    font-weight: 700;
    color: #1e3a8a;
    font-size: 0.88rem;
    border-left: 2px solid #818cf8;
    border-right: 2px solid #818cf8;
}

/* Description column (col 4) */
.kashf td:nth-child(4) {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kashf td:nth-child(4) a {
    color: #334155;
    text-decoration: none;
    font-weight: 500;
}
.kashf td:nth-child(4) a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Date column (col 6) */
.kashf td:nth-child(6) a {
    color: #475569;
    text-decoration: none;
    font-size: 0.8rem;
}
.kashf td:nth-child(6) a:hover {
    color: #2563eb;
}

/* Row hover */
.kashf tr:hover td {
    background-color: #f8fafc;
}

/* Reviewed row (green background) */
.kashf tr.greeen td {
    background-color: #ecfdf5 !important;
}
.kashf tr.greeen:hover td {
    background-color: #d1fae5 !important;
}

/* Unreviewed rows — subtle left border */
.kashf tr.revtr:not(.greeen) td:first-child {
    border-right: 3px solid #fbbf24;
}
.kashf tr.greeen td:first-child {
    border-right: 3px solid #10b981;
}

/* Forced price row */
.kashf tr.forced td:nth-child(2) {
    color: #dc2626;
    font-style: italic;
}
.kashf tr.forced td:nth-child(2)::after {
    content: ' *';
    font-size: 0.7rem;
    color: #ef4444;
}

/* Checkboxes — modern toggle style */
.kashf input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
    cursor: pointer;
    border-radius: 3px;
}
.kashf input[type="checkbox"].rev {
    accent-color: #10b981;
}

/* Comment input */
.kashf input.comment {
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    padding: 3px 6px;
    font-size: 0.75rem;
    width: 100%;
    min-width: 80px;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.kashf input.comment:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.15);
    background: #fff;
}

/* Comment text in cells */
.kashf td span.clearfix {
    display: block;
    font-size: 0.73rem;
    color: #64748b;
    padding: 1px 0;
    line-height: 1.3;
}

/* Notes column — keep compact */
.kashf td:nth-child(11) {
    min-width: 120px;
}
.kashf td:nth-child(11) form {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* Recorder/Reviewer columns — subtle */
.kashf td:nth-child(9),
.kashf td:nth-child(10) {
    font-size: 0.73rem;
    color: #64748b;
    white-space: nowrap;
}

/* Summary row (totals) */
.kashf tr:last-child th {
    background: #f1f5f9;
    color: #1e293b;
    font-weight: 700;
    padding: 10px 8px;
    border-top: 2px solid #cbd5e1;
}

/* Transfer/review header columns — icon hint */
.kashf > tr:first-child > th:nth-child(7),
.kashf > tr:first-child > th:nth-child(8) {
    font-size: 0.72rem;
    padding: 10px 4px;
}

/* Responsive: horizontal scroll wrapper */
@media (max-width: 992px) {
    .kashf {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.78rem;
        width: 100%;
    }
}

/* searchme class — highlight linkable items */
.kashf a.searchme {
    color: #7c3aed;
    font-weight: 500;
}
.kashf a.searchme:hover {
    color: #5b21b6;
}

@media print {
    html, body {
        width: 100%;
        height: 100%;
        background-color: #ffffff00 !important;
    }

    h1, h2, h3, h4, h5, h6, span, div {
        background-color: #ffffff00 !important;
    }

    .table td, .table th {
        background-color: #ffffff85 !important;
    }

    table {
        font-size: 1.2em;
    }

    button, .tiop, .storess, .noshow, .cu, .cu1, #infotable, #cart, #checkbox, .mainmenu, #search, .enable, .printnoshow, #staticlinks, .finalpayment, .hide, .store, #sellers, #days, .cashpayment {
        display: none !important;
    }

    .kashf td:nth-child(7),
    .kashf td:nth-child(8),
    .kashf td:nth-child(9),
    .kashf td:nth-child(10),
    .kashf td:nth-child(11),
    .kashf th:nth-child(7),
    .kashf th:nth-child(8),
    .kashf th:nth-child(9),
    .kashf th:nth-child(10),
    .kashf th:nth-child(11) {
        display: none !important;
    }
}
