.tbd-rtl {
    direction: rtl;
    text-align: right;
    font-family: Tahoma, Arial, sans-serif;
}

.tbd-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 25px 15px;
    color: #24312b;
}

.tbd-hero {
    background: linear-gradient(135deg, #f5efe3, #e8f0ea);
    border: 1px solid #e2d8c8;
    border-radius: 24px;
    padding: 45px 35px;
    margin-bottom: 28px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.tbd-hero h1 {
    font-size: 38px;
    margin: 10px 0;
    color: #284238;
}

.tbd-hero p {
    font-size: 18px;
    line-height: 1.9;
    max-width: 720px;
}

.tbd-badge {
    display: inline-block;
    background: #7b5d3a;
    color: #fff;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    margin-bottom: 8px;
}

.tbd-grid {
    display: grid;
    gap: 18px;
}

.tbd-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tbd-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tbd-card {
    background: #fff;
    border: 1px solid #e7dfd3;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.045);
}

.tbd-card h3 {
    color: #284238;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 21px;
}

.tbd-card p {
    line-height: 1.8;
}

.tbd-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.tbd-btn,
.tbd-btn:visited {
    display: inline-block;
    background: #426b5a;
    color: #fff !important;
    padding: 11px 20px;
    border-radius: 12px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font-weight: bold;
}

.tbd-btn:hover {
    background: #315345;
    color: #fff !important;
}

.tbd-btn-light,
.tbd-btn-light:visited {
    background: #fff;
    color: #426b5a !important;
    border: 1px solid #426b5a;
}

.tbd-page-head {
    background: #fbf8f1;
    border: 1px solid #e7dfd3;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
}

.tbd-page-head h2 {
    margin: 8px 0;
    color: #284238;
    font-size: 30px;
}

.tbd-page-head p {
    line-height: 1.8;
    margin-bottom: 0;
}

.tbd-form {
    background: #fff;
    border: 1px solid #e7dfd3;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.045);
}

.tbd-form label {
    display: block;
    font-weight: bold;
    margin: 14px 0 7px;
    color: #284238;
}

.tbd-form input,
.tbd-form select,
.tbd-form textarea {
    width: 100%;
    border: 1px solid #d7cfc2;
    border-radius: 12px;
    padding: 12px;
    font-size: 15px;
    background: #fff;
}

.tbd-form textarea {
    resize: vertical;
}

.tbd-alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    line-height: 1.7;
}

.tbd-alert-success {
    background: #e8f5ed;
    color: #24563a;
    border: 1px solid #b9dfc8;
}

.tbd-alert-danger {
    background: #fff0f0;
    color: #8a2727;
    border: 1px solid #e6b7b7;
}

.tbd-login-box {
    max-width: 460px;
    margin: 30px auto;
    background: #fff;
    border: 1px solid #e7dfd3;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.045);
}

.tbd-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.tbd-stats div {
    background: #fff;
    border: 1px solid #e7dfd3;
    border-radius: 18px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 8px 22px rgba(0,0,0,0.04);
}

.tbd-stats strong {
    display: block;
    font-size: 30px;
    color: #426b5a;
}

.tbd-stats span {
    display: block;
    margin-top: 7px;
    color: #5c5c5c;
}

.tbd-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #e7dfd3;
    border-radius: 18px;
    margin-bottom: 28px;
}

.tbd-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.tbd-table th,
.tbd-table td {
    border-bottom: 1px solid #eee7dc;
    padding: 12px;
    vertical-align: top;
    text-align: right;
}

.tbd-table th {
    background: #f6f1e8;
    color: #284238;
}

.tbd-status {
    display: inline-block;
    background: #edf4f0;
    color: #315345;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
}

.tbd-inline-form {
    display: flex;
    gap: 6px;
    align-items: center;
}

.tbd-inline-form select {
    min-width: 130px;
    padding: 7px;
}

.tbd-inline-form button {
    background: #426b5a;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .tbd-grid-2,
    .tbd-grid-3,
    .tbd-stats {
        grid-template-columns: 1fr;
    }

    .tbd-hero {
        padding: 28px 20px;
    }

    .tbd-hero h1 {
        font-size: 28px;
    }
}