/* General Styles */
body {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    background-color: #e9f0f5;
}

.content {
    padding-top: 80px;
    min-height: 100vh;
}

/* Header and Breadcrumb */
.header {
    background-color: #007bff;
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
}

.header-breadcrumb {
    background-color: transparent !important;
}

.breadcrumb-item a {
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 3px;
    position: relative;
    color: white;
    text-decoration: none;
}

.breadcrumb-item a .m {
    border-right: 30px solid rgba(0, 0, 0, 0.5);
    position: absolute;
    right: -15px;
    top: 0;
    bottom: 0;
}

.breadcrumb-item.active {
    padding: 5px 10px;
    color: white;
}

.user-info {
    font-size: 14px;
}

#shrink-sidebar {
    color: white;
    font-size: 24px;
    margin-left: 10px;
}

/* Main Area */
.main-area {
    padding-top: 80px;
}

.panel {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

/* Form Elements */
.form-label {
    font-weight: bold;
    margin-bottom: 5px;
}

.form-control, .form-select {
    border-radius: 4px;
    border: 1px solid #ced4da;
    padding: 8px 12px;
    font-size: 14px;
}

.form-control:focus, .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.input-group .form-control {
    border-radius: 4px 0 0 4px !important;
}

.input-group .form-select {
    border-radius: 0 4px 4px 0 !important;
}

.supplier-selectpicker .bootstrap-select {
    width: calc(100% - 76.4px) !important;
}

.supplier-actions {
    margin-inline-start: 4px;
}

.form-check-label {
    font-size: 14px;
}

.invalid-feedback {
    font-size: 12px;
}

/* Table Styles */
.table.b-light {
    background-color: #f8f9fa;
}

.table thead th {
    background-color: #f8f9fa;
    font-weight: bold;
    font-size: 14px;
    padding: 10px;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    vertical-align: middle;
    padding: 10px;
    font-size: 14px;
}

.table .td_editable {
    min-width: 150px;
}

.table .item-amount {
    width: 246px;
}

.table .item-percentage {
    width: 142.287px;
}

.table .delete-product-cell {
    width: 50px;
    text-align: center;
}

.table-totals-s2020 {
    background-color: transparent !important;
}

.add-row {
    display: inline-block;
    background-color: #e9ecef;
    color: #007bff;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none;
}

.add-row:hover {
    background-color: #dee2e6;
    color: #0056b3;
}

.delete-ico {
    color: #dc3545 !important;
    font-size: 18px;
}

.delete-ico:hover {
    color: #b02a37 !important;
}

/* Fixed Buttons */
.pages-head-s2020 {
    position: fixed !important;
    bottom: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    z-index: 1000;
}

.btn.s2020 {
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
}

.btn-secondary.s2020 {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.btn-secondary.s2020:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.btn-success.s2020 {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-success.s2020:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-icn i {
    margin-left: 5px;
}

.submit-btn-group .dropdown-menu {
    left: 0;
    right: unset;
}

.dropdown-menu {
    font-size: 14px;
}

/* Modal Styles */
.modal-dialog {
    max-width: 500px;
    display: flex;
    align-items: center;
    min-height: calc(100% - 20px);
}

@media (min-width: 768px) {
    .modal-dialog {
        min-height: calc(100% - 60px);
    }
}

/* Sidebar Styles */
.side-nav {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 2000;
}

.side-nav.active {
    right: 0;
}

.side-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.side-nav ul li {
    margin-bottom: 10px;
}

.side-nav ul li a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 10px;
    border-radius: 4px;
}

.side-nav ul li a:hover {
    background-color: #e9ecef;
    color: #007bff;
}

/* Overlay for Sidebar */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
}

.overlay.active {
    display: block;
}