* { box-sizing: border-box; }
body {
    font-family: Tahoma, Vazirmatn, sans-serif;
    background: #f4f5f7;
    margin: 0;
    color: #222;
    direction: rtl;
}
.navbar {
    background: #2c3e50;
    color: white;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar a {
    color: #fff;
    text-decoration: none;
    margin-inline-start: 18px;
    font-size: 15px;
}
.navbar a:hover { text-decoration: underline; }
.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 16px;
}
.card {
    background: white;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
h1, h2 { color: #2c3e50; }
label { display: block; margin: 14px 0 6px; font-weight: bold; }
input[type=text], input[type=password], input[type=file], select {
    width: 100%;
    padding: 9px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}
button, .btn {
    background: #2980b9;
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    margin-top: 18px;
    text-decoration: none;
    display: inline-block;
}
button:hover, .btn:hover { background: #206694; }
.btn-secondary { background: #7f8c8d; }
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}
th, td {
    border: 1px solid #ddd;
    padding: 8px 10px;
    text-align: right;
    font-size: 14px;
}
th { background: #ecf0f1; }
tr:nth-child(even) { background: #fafafa; }
.flash {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}
.flash-error { background: #fdecea; color: #c0392b; border: 1px solid #f5c6cb; }
.flash-success { background: #eafaf1; color: #196f3d; border: 1px solid #b7e4c7; }
.bank-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}
.bank-row input[type=file] { flex: 2; }
.bank-row select { flex: 1; }
.status-completed { color: #196f3d; font-weight: bold; }
.status-failed { color: #c0392b; font-weight: bold; }
.status-running { color: #b9770e; font-weight: bold; }
.figure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 18px 0;
}
.figure-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
}
.figure-box .value { font-size: 20px; font-weight: bold; color: #2c3e50; }
.figure-box .label { font-size: 13px; color: #666; margin-top: 4px; }
.doc-filter { margin-bottom: 6px; }
.doc-list {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px;
    margin-bottom: 16px;
    background: #fff;
}
.doc-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 8px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}
.doc-row:last-child { border-bottom: none; }
.doc-row input[type=checkbox] { width: auto; display: inline-block; margin-inline-end: 6px; }
.doc-meta { font-weight: bold; font-size: 0.9em; }
.doc-preview { font-size: 0.8em; color: #666; }
.cat-block {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 14px;
    background: #fafbfc;
}
.cat-label { font-weight: bold; margin-bottom: 6px; }
.level-radio { display: flex; gap: 16px; margin-bottom: 8px; }
.level-radio label { width: auto; display: inline-flex; align-items: center; gap: 4px; }
.level-radio input[type=radio] { width: auto; }
