/* =========================
   تنظیمات عمومی
========================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Vazirmatn", Tahoma, sans-serif;
    background: #f4f9ff;
    color: #174b82;
    direction: rtl;
}

button,
input,
textarea,
select {
    font-family: inherit;
}


/* =========================
   هدر و لوگو
========================= */

.header {
    height: 96px;
    background: #ffffff;
    border-bottom: 1px solid #dcecff;
    box-shadow: 0 2px 15px rgba(31, 102, 170, 0.05);
}

.header-inner {
    width: 94%;
    max-width: 1450px;
    height: 100%;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.logo {
    grid-column: 1;
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #07549c;
    font-size: 20px;
    font-weight: 700;
}

.logo-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #e7f3ff;
    color: #1473c9;
    font-size: 22px;
}


/* =========================
   منوی اصلی
========================= */

.nav {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 8px;
    text-decoration: none;
    color: #07549c;
    font-size: 17px;
    font-weight: 600;
    background: transparent;
    border: none;
    transition: 0.2s;
    white-space: nowrap;
}

.nav-item:hover,
.nav-item.active {
    color: #126ec0;
}

.nav-icon {
    font-size: 25px;
    line-height: 1;
    color: #0868b7;
    font-weight: 700;
}

.document-menu {
    position: relative;
}

.document-menu-title {
    cursor: default;
}

.document-menu .dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 50%;
    transform: translateX(50%);
    width: 190px;
    padding: 7px;
    background: #ffffff;
    border: 1px solid #dcecf9;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(32, 105, 170, 0.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 500;
    transition: opacity 0.2s, visibility 0.2s;
}

.document-menu:hover .dropdown-menu,
.document-menu:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 9px;
    text-decoration: none;
    color: #07549c;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-item:hover {
    background: #edf6ff;
}


/* =========================
   صفحه اصلی
========================= */

.main {
    width: 94%;
    max-width: 1450px;
    margin: auto;
    padding: 52px 0 70px;
    min-height: calc(100vh - 156px);
}


/* =========================
   فرم جستجو
========================= */

.search-box {
    width: 100%;
    min-height: 132px;
    padding: 28px 30px;
    display: flex;
    align-items: flex-end;
    gap: 22px;
    background: #ffffff;
    border: 1px solid #deedfb;
    border-radius: 18px;
    box-shadow: 0 7px 25px rgba(43, 108, 169, 0.06);
    margin-bottom: 34px;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
}

.search-field label {
    color: #174b82;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}

.company-field {
    flex: 1.3;
}

.date-field {
    flex: 1;
}

.input-wrapper {
    height: 54px;
    width: 100%;
    border: 1px solid #d3e4f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    background: #ffffff;
    color: #88a4bd;
    font-size: 14px;
}

.input-placeholder {
    color: #8ba5bd;
}

.dropdown-icon,
.calendar-icon {
    color: #0868b7;
    font-size: 23px;
    font-weight: 700;
}

.search-button {
    height: 54px;
    min-width: 220px;
    border: none;
    border-radius: 12px;
    background: #176cc0;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.search-button:hover {
    background: #0f5fac;
}

.search-icon {
    font-size: 27px;
    line-height: 1;
}


/* =========================
   فهرست شرکت در صفحه اصلی
========================= */

.custom-company-select {
    position: relative;
    overflow: visible;
}

.custom-company-select .company-select-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    min-height: 46px;
    padding: 0 12px 0 38px;
    background: #ffffff;
    color: #526b88;
    border: none;
    border-radius: 11px;
    outline: none;
    box-shadow: none;
    font-family: inherit;
    font-size: 14px;
    text-align: right;
    cursor: pointer;
}

.custom-company-select .company-select-button:hover,
.custom-company-select .company-select-button:focus,
.custom-company-select .company-select-button:focus-visible,
.custom-company-select .company-select-button:active {
    background: #ffffff;
    border: none;
    outline: none;
    box-shadow: none;
}

.custom-company-select .company-select-button::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #2869a8;
    transform: translateY(-30%);
}

.custom-company-select .company-select-options {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    width: 100%;
    max-height: 220px;
    overflow-y: auto;
    padding: 5px;
    background: #ffffff;
    border: 1px solid #d5e3f2;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(60, 100, 150, 0.12);
    z-index: 1000;
}

.custom-company-select .company-select-options.open {
    display: block;
}

.custom-company-select .company-option {
    display: block;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    color: #526b88;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    text-align: right;
    cursor: pointer;
}

.custom-company-select .company-option:hover {
    background: #edf5fc;
    color: #397eb9;
}

.custom-company-select .company-option:first-child {
    background: #3984c9;
    color: #ffffff;
    border-bottom: 1px solid #3984c9;
}

.custom-company-select .company-option:first-child:hover {
    background: #2869a8;
    color: #ffffff;
}

.custom-company-select .company-hidden-select {
    display: none !important;
}

/* فهرست اصلی انتخاب شرکت */
#search-company {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 12px;
    background: transparent;
    appearance: none;
    direction: rtl;
    color: #526b88;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

#search-company option {
    background: #ffffff;
    color: #526b88;
}


/* =========================
   بخش فهرست اسناد
========================= */

.documents-section {
    width: 100%;
    background: #ffffff;
    border: 1px solid #deedfb;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 7px 25px rgba(43, 108, 169, 0.06);
}

.page-title {
    margin-bottom: 30px;
    text-align: right;
}

.page-title h1 {
    margin: 0 0 7px;
    color: #07549c;
    font-size: 29px;
    font-weight: 700;
}

.page-title p {
    margin: 0;
    color: #7695b4;
    font-size: 14px;
}

.documents-table-box {
    width: 100%;
    border: 1px solid #e0edf9;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
}

.documents-table-box h2 {
    margin: 0;
    padding: 20px 24px;
    color: #174b82;
    font-size: 18px;
    font-weight: 600;
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 950px;
    border-collapse: collapse;
    table-layout: fixed;
}

thead {
    background: #edf6ff;
}

th {
    padding: 17px 12px;
    color: #07549c;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #dcecf9;
    white-space: nowrap;
}

td {
    padding: 18px 12px;
    text-align: center;
    color: #315e86;
    font-size: 13px;
    border-bottom: 1px solid #e7f0f8;
    white-space: nowrap;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: #f9fcff;
}

.file-button {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 11px;
    background: #eaf5ff;
    color: #1473c9;
    font-size: 21px;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
}

.file-button:hover {
    background: #dceeff;
}


/* =========================
   پابرگ
========================= */

footer {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #eaf4ff;
    color: #7293b3;
    font-size: 13px;
}


/* =========================
   تقویم شمسی
========================= */

.date-input-wrapper,
.date-form-input {
    position: relative;
}

.date-input,
.date-form-input input {
    width: 100%;
    height: 100%;
    min-width: 0;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: "Vazirmatn", Tahoma, sans-serif !important;
    font-size: 14px !important;
    color: #174b82 !important;
}

.date-input::placeholder,
.date-form-input input::placeholder {
    color: #9ab0c5;
}

.calendar-icon,
.calendar-form-icon {
    color: #07549c;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.calendar-icon {
    font-size: 13px;
}

.calendar-form-icon {
    flex-shrink: 0;
    font-size: 16px;
    margin-right: 10px;
}

.datepicker-plot-area {
    background: #ffffff !important;
    border: 1px solid #d9eafb !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 35px rgba(32, 105, 170, 0.15) !important;
    padding: 12px !important;
    width: 360px !important;
    min-height: 0 !important;
    height: auto !important;
    font-family: "Vazirmatn", Tahoma, sans-serif !important;
    direction: rtl !important;
    overflow: visible !important;
    z-index: 9999 !important;
}

.datepicker-plot-area .datepicker-header {
    background: transparent !important;
    border: none !important;
    padding: 2px 0 10px !important;
    height: auto !important;
}

.datepicker-plot-area .datepicker-header .header-row-cell,
.datepicker-plot-area .datepicker-header .header-row-cell .header-row-cell-inner {
    color: #174b82 !important;
    font-family: "Vazirmatn", Tahoma, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.datepicker-plot-area .month-year-box {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.datepicker-plot-area .navigator-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    background: #f1f7ff !important;
    color: #07549c !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: 0.2s !important;
}

.datepicker-plot-area .navigator-btn:hover {
    background: #e1efff !important;
    color: #07549c !important;
}

.datepicker-plot-area table.table-days {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 2px 4px !important;
}

.datepicker-plot-area table.table-days tr {
    height: auto !important;
}

.datepicker-plot-area table.table-days td {
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    text-align: center !important;
    vertical-align: middle !important;
    font-family: "Vazirmatn", Tahoma, sans-serif !important;
}

.datepicker-plot-area .table-days thead th {
    height: 34px !important;
    padding: 0 !important;
    color: #6283a5 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    border: none !important;
    background: transparent !important;
}

.datepicker-plot-area .table-days tbody td span {
    width: 36px !important;
    height: 36px !important;
    margin: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    color: #174b82 !important;
    font-size: 13px !important;
    transition: 0.2s !important;
}

.datepicker-plot-area .table-days tbody td span:hover {
    background: #edf6ff !important;
    color: #07549c !important;
}

.datepicker-plot-area .table-days tbody td.selected span,
.datepicker-plot-area .table-days tbody td.selected span:hover {
    background: #2878d4 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(40, 120, 212, 0.25) !important;
}

.datepicker-plot-area .table-days tbody td.today span {
    background: #edf6ff !important;
    color: #176cc0 !important;
    font-weight: 600 !important;
}

.datepicker-plot-area .toolbox {
    border-top: 1px solid #e5eff9 !important;
    margin-top: 8px !important;
    padding-top: 10px !important;
}

.datepicker-plot-area .toolbox .btn-today,
.datepicker-plot-area .toolbox .btn-close {
    color: #176cc0 !important;
    font-family: "Vazirmatn", Tahoma, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    background: transparent !important;
    border: none !important;
}

.datepicker-plot-area .toolbox .btn-today:hover,
.datepicker-plot-area .toolbox .btn-close:hover {
    color: #07549c !important;
}


/* =========================
   صفحه افزودن سند
========================= */

.add-document-main {
    width: 99%;
    max-width: 1550px;
    margin: auto;
    padding: 25px 0 50px;
}

.add-document-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #deedfb;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 7px 25px rgba(43, 108, 169, 0.06);
}

.add-document-title {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 35px;
}

.add-document-title h1 {
    margin: 0;
    color: #07549c;
    font-size: 25px;
    font-weight: 700;
}

.add-document-title p {
    margin: 8px 0 0;
    color: #91abc4;
    font-size: 14px;
}

.document-title-icon {
    color: #0868b7;
    font-size: 28px;
    line-height: 1;
}

.document-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 32px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
}

.form-field > label {
    color: #174b82;
    font-size: 14px;
    font-weight: 600;
}

.form-input {
    width: 100%;
    height: 48px;
    min-width: 0;
    border: 1px solid #cfe3f7;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 17px;
    transition: 0.2s;
}

.form-input:focus-within {
    border-color: #6da9df;
    box-shadow: 0 0 0 3px rgba(40, 120, 212, 0.08);
}

.form-input input {
    width: 100%;
    height: 100%;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: "Vazirmatn", Tahoma, sans-serif;
    font-size: 14px;
    color: #174b82;
}

.form-input input::placeholder {
    color: #9ab0c5;
}

.form-icon {
    color: #0868b7;
    font-size: 22px;
    font-weight: 600;
    margin-right: 10px;
}

.description-field {
    grid-column: 1 / -1;
}

.description-field textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    border: 1px solid #cfe3f7;
    border-radius: 12px;
    outline: none;
    background: #ffffff;
    padding: 16px;
    font-family: "Vazirmatn", Tahoma, sans-serif;
    font-size: 14px;
    color: #174b82;
    transition: 0.2s;
}

.description-field textarea:focus {
    border-color: #6da9df;
    box-shadow: 0 0 0 3px rgba(40, 120, 212, 0.08);
}

.description-field textarea::placeholder {
    color: #9ab0c5;
}


/* فهرست شرکت در فرم افزودن سند */

.form-input.custom-company-select {
    position: relative;
    overflow: visible;
    padding: 0;
}

.form-input.custom-company-select .company-select-button {
    height: 100%;
    min-height: 46px;
    padding-right: 17px;
    padding-left: 38px;
    border: none;
    border-radius: 11px;
    background: transparent;
    color: #526b88;
    font-family: inherit;
    font-size: 14px;
    text-align: right;
}

.form-input.custom-company-select .company-select-button:hover,
.form-input.custom-company-select .company-select-button:focus,
.form-input.custom-company-select .company-select-button:focus-visible,
.form-input.custom-company-select .company-select-button:active {
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
}

.form-input.custom-company-select .company-select-options {
    top: calc(100% + 5px);
}


/* =========================
   بارگذاری فایل
========================= */

.file-field {
    min-height: 80px;
}

.file-upload {
    height: 135px;
    border: 2px dashed #cfe3f7;
    border-radius: 12px;
    background: #fbfdff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    transition: 0.2s;
}

.file-upload:hover {
    background: #f4f9ff;
    border-color: #8dbde8;
}

.file-upload input {
    display: none;
}

.upload-icon {
    color: #1973c7;
    font-size: 31px;
}

.upload-text {
    color: #8ba8c3;
    font-size: 13px;
    text-align: center;
    overflow-wrap: anywhere;
}

.upload-format {
    color: #9eb5c9;
    font-size: 12px;
}


/* =========================
   دکمه‌های فرم
========================= */

.document-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.save-document-button,
.edit-document-button,
.cancel-document-button {
    min-height: 52px;
    border-radius: 11px;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.save-document-button {
    border: none;
    background: #176cc0;
    color: #ffffff;
}

.save-document-button:hover {
    background: #0f5fac;
}

.edit-document-button {
    border: 1px solid #cfe3f7;
    background: #ffffff;
    color: #176cc0;
}

.edit-document-button:hover {
    background: #edf6ff;
}

.cancel-document-button {
    border: 1px solid #e8cfd2;
    background: #ffffff;
    color: #c96b76;
}

.cancel-document-button:hover {
    background: #fff5f6;
}


/* =========================
   پنجره‌های افزودن شرکت
========================= */

.company-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.company-modal {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.company-modal h2 {
    margin: 0 0 22px;
    font-size: 21px;
    color: #333333;
}

.company-modal label {
    display: block;
    margin-bottom: 8px;
    color: #174b82;
    font-size: 14px;
}

.company-modal input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.company-modal input:focus {
    border-color: #8bbce8;
}

.company-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.company-modal-buttons button {
    flex: 1;
    padding: 11px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
}

.company-save-btn {
    background: #176cc0;
    color: #ffffff;
}

.company-save-btn:hover {
    background: #0f5fac;
}

.company-cancel-btn {
    background: #f1f1f1;
    color: #444444;
}

#companyResultModal .company-modal {
    text-align: center;
}

#companyResultTitle {
    text-align: center;
    width: 100%;
    margin: 0 0 15px;
}

#companyResultMessage {
    text-align: center;
    margin: 0 0 22px;
    line-height: 1.8;
}

#companyResultModal .company-save-btn {
    display: block;
    width: 140px;
    margin: 0 auto;
    flex: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
}


/* =========================
   واکنش‌گرایی
========================= */

@media (max-width: 1000px) {
    .search-box {
        flex-wrap: wrap;
        align-items: stretch;
    }

    .company-field,
    .date-field {
        flex: 1 1 220px;
    }

    .search-button {
        flex: 1 1 100%;
        min-width: 0;
    }

    .nav {
        gap: 14px;
    }

    .nav-item {
        font-size: 15px;
    }
}

@media (max-width: 800px) {
    .header {
        height: auto;
        min-height: 85px;
    }

    .header-inner {
        width: 94%;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px 0;
    }

    .logo {
        grid-column: 1;
        justify-self: center;
    }

    .nav {
        grid-column: 1;
        flex-wrap: wrap;
        gap: 12px;
    }

    .main {
        padding: 25px 0 40px;
    }

    .documents-section {
        padding: 18px;
    }

    .document-form {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .description-field {
        grid-column: 1;
    }

    .add-document-card {
        padding: 20px;
    }

    .add-document-title h1 {
        font-size: 22px;
    }

    .document-actions {
        justify-content: stretch;
    }

    .document-actions button {
        flex: 1 1 auto;
    }

    .datepicker-plot-area {
        max-width: calc(100vw - 24px) !important;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 17px;
    }

    .nav-item {
        font-size: 14px;
    }

    .search-box {
        padding: 18px;
    }

    .documents-section {
        padding: 14px;
    }

    .add-document-card {
        padding: 16px;
    }

    .document-actions {
        flex-direction: column;
    }

    .document-actions button {
        width: 100%;
    }
}
/* پیام ثبت سند */
.save-message {
    width: 100%;
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}

.save-success {
    background: #e8f7ec;
    color: #176b2c;
    border: 1px solid #b8e2c2;
}

.save-error {
    background: #fdecec;
    color: #a32020;
    border: 1px solid #f3bcbc;
}
/* پنجره تأیید حذف سند */
.delete-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(20, 25, 40, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.delete-modal {
    width: 100%;
    max-width: 420px;
    padding: 30px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.18);
    text-align: center;
}

.delete-modal h2 {
    margin: 0 0 16px;
    font-size: 20px;
    color: #26324a;
}

.delete-modal p {
    margin: 0 0 25px;
    font-size: 14px;
    line-height: 1.9;
    color: #5b6475;
}

.delete-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.delete-modal-buttons button {
    border: none;
    border-radius: 8px;
    padding: 11px 20px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

#confirmDeleteButton {
    background: #c83d4d;
    color: #ffffff;
}

#cancelDeleteButton {
    background: #edf0f5;
    color: #26324a;
}
/* دکمه‌های ویرایش و حذف سند */
.document-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.edit-button,
.delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

/* آبی ملایم برای ویرایش */
.edit-button {
    background-color: #e8f1ff;
    color: #2864b4;
}

.edit-button:hover {
    background-color: #d4e5ff;
    transform: translateY(-1px);
}

/* قرمز ملایم برای حذف */
.delete-button {
    background-color: #fff0f0;
    color: #c74444;
}

.delete-button:hover {
    background-color: #ffe0e0;
    transform: translateY(-1px);
}
/* رنگ ملایم ردیف اسناد بر اساس وضعیت پرداخت */
.documents-table tbody tr.paid-row {
    background-color: #EAF4EC;
}

.documents-table tbody tr.unpaid-row {
    background-color: #F9ECEB;
}

/* خوانایی نوشته‌ها و اعداد */
.documents-table tbody tr.paid-row td {
    color: #285B3B;
}

.documents-table tbody tr.unpaid-row td {
    color: #873F3B;
}

/* تغییر ملایم رنگ هنگام رفتن موس روی ردیف */
.documents-table tbody tr.paid-row:hover {
    background-color: #DDEEE1;
}

.documents-table tbody tr.unpaid-row:hover {
    background-color: #F3DEDC;
}
/* رنگ ردیف‌ها بر اساس وضعیت پرداخت */
.documents-table tbody tr.paid-row td {
    background-color: #EAF4EC !important;
}

.documents-table tbody tr.unpaid-row td {
    background-color: #F9ECEB !important;
}