@font-face {
    font-family: 'Samim';
    src: url('/static/fonts/Samim/Samim.woff2') format('woff2'),
         url('/static/fonts/Samim/Samim-regular.woff') format('woff');
}


.big-head {
    direction: ltr;
    display: flex;
    position: relative;
    background-color: #fffaf4;
}

#header {
    position: relative;
    overflow: hidden;
    width: 79%;
    height: 100px;
    display: inline-block;
    text-align: left;
    font-family: 'samim';
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px -5px #bbb;
    margin: 20px;
    border-left: 3px solid #565757;
    border-bottom: 0px solid transparent;
}
  
  #header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background: linear-gradient(to right, rgb(242 135 0), rgb(242, 135, 0), rgba(56, 2, 155, 0));
    pointer-events: none;
}

#right-corner {
    width: 19%;
    position: relative;
    display: inline-block;
    text-align: right;
    font-family: 'samim';
    background-color: #fffaf4;
    margin: 15px 40px 0px 0px;
    color: #444;
}


.container-2 {
    width: calc(15% - 20px);
    padding: 0 10px;
    display: inline-block;
    text-align: left;
    flex: 1;
}


#in-header {
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 0 10px;
    gap: 25px;
}

.body {
    direction: rtl;
    text-align: center;
    font-family: 'samim';
}

.big-body {
    direction: rtl;
    display: grid;
    position: relative;
    background-color: #fffaf4;
    font-family: 'samim';
}

.main-body {
    width: 79%;
    direction: rtl;
    position: relative;
    display: inline-block;
    vertical-align: top;
    text-align: center;
    font-family: 'samim';
    margin-top: 70px;
}
.side-place {
    position: relative;
    display: inline-block;
    vertical-align: top;
    text-align: right;
    direction: rtl;
    width: 19%;
}

.sidebar {
    direction: rtl;
    position: relative;
    display: block;
    /*vertical-align: top;*/
    text-align: right;
    font-family: 'samim';
    background-color: #fff;
    border-radius: 10px;
    height: calc(100% - 30px);
    box-shadow: 0px 0px 15px -5px #bbb;
    margin-bottom: 20px;
}

li.nomarker {
    display: contents;
}
ul.nomarker {
    padding-right: 0px !important;
}

a.link{
    color: #888;
    padding: 10px 30px 10px 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

a.link:hover, a.link:focus, a.link.active {
    color: #333;
}

.equipment-section {
    display: contents;
}

.eq-div {
    width: calc(59% - 44px);
    display: block;
}

.two-parts.e1 {
    width: calc(70% - 44px);
}

.two-parts.e2 {
    width: calc(30% - 44px);
}

.div-add-button.e3 {
    align-items: flex-start !important;
}

#add-equipment-btn {
    margin-top: 32px !important;
}

.two-div {
    width: calc(50% - 44px);
    display: inline-block;
}

#for-block {
    display: block;
}

#equipment-list-div {
    display: block;
    width: 100%;
}

.link {
    width: 100%;
    display: block;
    padding-right: 20px;
    width: calc(100% - 50px);
}

.form {
    direction: rtl;
    text-align: right;
    padding: 30px;
}

.select2-results__option--selectable {
    font-family: 'samim' !important;
    text-align: center;
    direction: rtl;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 34px !important;
}

.select2-container--default .select2-selection--single {
    background-color: #ffffff00 !important;
    border: none !important;
    border-radius: 0 !important;
}

.select2-container .select2-selection--single {
    line-height: 34px !important;
}

span.select2.select2-container.select2-container--default {
    margin-bottom: 20px;
}

.field, span.select2.select2-container.select2-container--default.select2-container--below, span.select2.select2-container.select2-container--default {
    display: inline-block !important;
    font-family: 'samim' !important;
    width: 100% !important;
    height: 34px !important;
    padding: 0px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    text-align: center;
    direction: rtl;
}

#repair-person-select-div {
    width: calc(55% + 20px);
    display: inline-block;
}



.select2-container .select2-selection--single .select2-selection__rendered {
    padding-right: 0 !important;
}

li.select2-results__option.select2-results__message {
    font-family: 'samim';
    text-align: center;
}

.select2-dropdown {
    font-size: 14px;
    color: #444;
}

.select2-search__field {
    font-family: 'samim' !important;
    direction: rtl !important;
    text-align: center;
}

label {
    display: block;
    padding-bottom: 10px;
}

.submit-button {
    padding: 8px 16px;
    margin: 40px 10px ;
    border-radius: 100px;
    border: none;
    background-color: #f28700;
    font-size: 16px;
    color: #fff;
    font-family: 'samim';
    cursor: pointer;
}

.hundred-submit-button {
    padding: 7px 20px;
    margin: 40px 10px ;
    border-radius: 5px;
    border: none;
    background-color: #4CAF50;
    font-size: 14px;
    color: #fff;
    font-family: 'samim';
    cursor: pointer;
    width: 90%;
}

.two-parts {
    width: calc(50% - 44px);
    padding: 0 20px;
    display: inline-block;
    margin-bottom: 30px;
    vertical-align: top;

}

.three-parts {
    width: calc(33% - 44px);
    padding: 0 20px;
    margin-bottom: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.four-parts {
    width: calc(25% - 44px);
    padding: 0 20px;
    margin-bottom: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.three-parts-plus {
    width: calc(46% - 44px);
    padding: 0 20px;
    margin-bottom: 30px;
    flex: 3;
    display: flex;
    flex-direction: column;
}

.three-parts-plus-plus {
    width: auto;
    padding: 0 20px;
    margin-bottom: 30px;
    display: inline-block;
}

.quantity-plus {
    width: auto;
    padding: 0 20px;
    margin-bottom: 30px;
    display: inline-block;
}

.quantity {
    width: calc(20% - 44px);
    padding: 0 20px;
    margin-bottom: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

#title {
    width: 58%;
    padding: 0 20px;
    margin-bottom: 20px;
    display: inline-block;

}
#date {
    width: 33% !important;
    padding: 0 20px;
    display: inline-block;
    margin-bottom: 20px;
}

.space {
    margin: 0px 0px 20px 0;
}

label.space {
    margin: 20px 0 -5px 0;
    /* right: 20px; */
    position: relative;
}

.save-button {
    position: relative;
    /* right: 20px; */
}


.some-space {
    position: relative;
    /* right: 20px; */
}

textarea {
    width: 96%;
    height: 100px;
    border-radius: 5px;
    margin: 0 20px 20px 20px;
    font-family: samim;
    padding: 10px 20px;
}

.add-button {
    padding: 5px 10px;
    border-radius: 5px;
    border: none;
    background-color: #565757;
    font-size: 14px;
    color: #fff;
    font-family: 'samim';
    margin-right: 14px;
    cursor: pointer;
}

.add-button:hover {
    background: #6e6e6e;
}

.add-button-two {
    padding: 5px 10px;
    border-radius: 5px;
    border: none;
    background-color: #4CAF50;
    font-size: 14px;
    color: #fff;
    font-family: 'samim';
    margin-right: 14px;
    cursor: pointer;
}

.add-button-two:hover {
    background: #4fb84f;
}

.div-add-button {
    width: 20%;
    display: flex;
    align-items: center;
    margin: 3px 0 20px 0;
}

#description-label {
    width: 25%;
    margin-right: 20px;
}

.div-class {
    display: flex;
    margin-bottom: 45px;
}

.fileuploadfield {
    padding: 20px;
    padding-bottom: 40px;
}

.div-file-upload {
    width: 96%;
    margin-right: 20px;
}


/*.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
    padding: 8px;
    background: #f8f8f8;
    border-radius: 4px;
}*/

.field-box {
    flex: 1;
}

.field-box input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.remove-btn {
    background: #ba2121;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 25px;
    height: 25px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background: #a41515;
}


#add-replacement-part,
#add-discarded-part {
    background: #565757;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 15px;
}

.hundred-submit-button:hover {
    background: #4fb84f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#add-replacement-part:hover,
#add-discarded-part:hover {
    background: #6e6e6e;
}


.parts-container {
    margin-top: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    background-color: #fff3e0;
    width: calc(96% - 20px);
    margin: 0 20px 30px 0px;
}

.part-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 8px;
    margin-bottom: 5px;
    background-color: white;
    border: 1px solid #eee;
    border-radius: 4px;
}

.part-item button {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
    font-size: 14px;
}

.part-item:last-child {
    margin-bottom: 0;
}

.no-items {
    color: #888;
    font-style: italic;
    text-align: center;
    margin: 0;
}


#repair-persons-div {
    width: 100%;
    text-align: center;
}

#repair-persons-container {
    width: 55%;
    font-size: 12px;
    margin: -10px 0 15px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.top-div {
    vertical-align: top;
    margin-top: 10px;
    display: inline-block;
}

#add-person-btn {
    display: inline-block;
    width: 30%;
    vertical-align: bottom;
}

#special-div {
    margin-top: 30px;
    margin-bottom: 0px;
}

#zero-top-div {
    margin-top: 30px;
}


.container-1 {
    width: 100%;
    text-align: center;
    align-items: center;
    align-self: center;
    display: ruby;
}


i.fa-solid.fa-bell.fa-2x, i.fa-solid.fa-user.fa-2x, i.fa-solid.fa-triangle-exclamation.fa-2x {
    font-size: 20px;
    color: #d2d2d2;
    z-index: 2;
}

i.fa-solid.fa-bell.fa-2x {
    margin-right: 30px;
}

i.fa-solid.fa-bell.fa-2x:hover, i.fa-solid.fa-user.fa-2x:hover, i.fa-solid.fa-triangle-exclamation.fa-2x:hover {
    color: #d7c6ad;
}

#level1-alarm {
    color: #FFD700;
    position: relative;
}

#level1-alarm::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.5em;
    height: 2.5em;
    background: rgba(255, 215, 0, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 3s infinite;
    z-index: 0;
}


#level2-alarm {
    color: #FF8C00;
    position: relative;
}

#level2-alarm::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.5em;
    height: 2.5em;
    background: rgba(255, 140, 0, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 3s infinite;
    z-index: 0;
}


#level3-alarm {
    color: #FF4500;
    position: relative;
}

#level3-alarm::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.5em;
    height: 2.5em;
    background: rgba(255, 69, 0, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 3s infinite;
    z-index: 0;
}


@keyframes pulse {
0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0;
}
50% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.6;
}
100% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0;
}
}


h1, h3, h4, p {
    color: #444;
}



#drop-area {
    border: 2px dashed #aaa;
    border-radius: 5px;
    padding: 25px;
    text-align: center;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
}

#drop-area:hover {
    border-color: #f28700;
    background-color: #fff5db;
}

#drop-area.dragover {
    border-color: #f28700;
    background-color: #fff5db;
}

#file-list {
    margin-top: 10px;
    list-style: none;
    padding-left: 0;
}

#file-list li {
    padding: 5px 8px;
    border: 1px solid #eee;
    margin-bottom: 5px;
    border-radius: 4px;
    background-color: #fff3e0;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#file-list li button {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    cursor: pointer;
}


#replacement-list, #discarded-list {
    margin: 0;
    display: inline-grid;
    width: 25%;
    align-items: center;
    margin-bottom: 20px;
}


.del-btn {
    background-color: #ebd4d4;
    border-radius: 30px;
    border: 2px solid #b77575;
    margin: 5px;
}





.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background-color: #f28700;
    color: white;
    font-family: 'samim';
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    font-family: 'samim';
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

.report-table th,
.report-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: right;
}

.report-table th {
    background-color: #fff;
    font-weight: bold;
}

.report-table tr:nth-child(even) {
    background-color: #fff3e0;
}

.report-table tr:hover {
    background-color: #fff7e7;
}

.no-results {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

.table-responsive {
    overflow-x: auto;
}

.results-section {
    margin-top: 30px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.search-form {
    background-color: #fff7eb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.btn-success, .active-btn {
    background-color: #28a745;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    display: inline-block;
    font-family: 'samim';
    border: 0;
    cursor: pointer;
}

.btn-success:hover, .active-btn:hover {
    background-color: #218838;
}

.font-number {
    font-family: b titr;
}


th, td {
    text-align: center !important;
}


#div-of-def {
    margin-right: 20px;
}

.deactive-btn {
    background-color: #d98221;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    display: inline-block;
    font-family: 'samim';
    border: 0;
    cursor: pointer;
}

.deactive-btn:hover {
    background-color: #cb781a;
}