.main-font {
    font-family: 'Roboto', sans-serif;
}

.background-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    background-image: url('../img/sgbg.png');
    background-size: cover;
    background-repeat: no-repeat;
    align-items: center;
}

.loginForm_bg {
    height: auto;
    background-color: black !important;
    margin-bottom: 15px;
    background: no-repeat;
    /*background-image: url('../img/logo_sg.svg');*/
    background-image: url('../img/logo_me.svg');
    padding: 35px 0px;
    background-position: center center;
    text-align: center;
}

.form-custom-button {
    border: 3px solid #ffd800;
    color: #000000;
    border-radius: 0;
    background: white;
    text-shadow: none;
    text-transform: uppercase;
    cursor: pointer;
}

.form-custom-button:hover {
    background: #ffd800;
    color: #000000;
    border-color: transparent;
    box-shadow: none;
}

.navbar-cms-default {
    border-color: #000;
    background-color: #2d2d2d;
}

.custom-navbar-color {
    color: #999;
}

.custom-navbar-color:hover {
    color: white;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.container .h2{
    width: 100%;
}

.align-items-center{
    width: 100%;
}

.header {
    background-color: #fff;
    color: black;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    width: 100%;
    position: relative;
    z-index: 50;
    padding-left: 40px;
}

.sg_part {
    flex: 50%;
    align-self: center;
}

.text-right {
    text-align: right;
}

.sg_button{
    padding: 6px 15px;
    border-radius: 2px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.sg_button:disabled{
    background-color: #bababa !important;
    color: white;
    cursor: unset;
}

.sg_button_001{
    background-color: #ffd800;
    color: black;
}

.sg_button_001:hover{
    background-color: #ffe13e;
}

.sg_button_002{
    color: black;
    background-color: #eee;
}
.sg_button_002:hover{
    background-color: rgb(242, 242, 242);
}

.sg_button_003{
    color: black;
    background-color: #c6e7ff;
}
.sg_button_delete{
    color: black;
    background-color: #ffa2a2;
}
.sg_button_delete:hover{
    background-color: #ffc3c3;
}

#main_content{
    margin-left: 40px;
    margin-top: 15px;
    margin-bottom: 15px;
}
#local_menu{
    margin-left: 40px;
    position: sticky;
    top: -1px;
    z-index: 30;
    background-color: white;
    margin-top: 10px;
}

#local_menu .container{
    gap: 10px;
    padding-bottom: 3px;
}

#menu {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: #e6e6e6;
    height: 100vh;
    z-index: 40;
    width: 40px;
    overflow: hidden;
    transition: width 0.3s ease;
    padding: 90px 0px 10px;
}

#menu .icon svg{
    width: 20px;
}
#menu .icon{
    min-width: 40px;
    display: flex;
    justify-content: center;
}

#menu:hover {
    width: 200px;
}

#menu a {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    margin-bottom: 10px;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

#menu a:hover {
    background-color: #d6d6d6;
}

#menu span {
    white-space: nowrap;
}

.container form{
    width: 100%;
}
.package_content_form,
.graphics_content_form{
    display: flex;
    gap: 20px;
}
.package_content_form .package_left_side,
.graphics_content_form .graphics_left_side{
    max-width: 35%;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.package_content_form .package_right_side,
.graphics_content_form .graphics_right_side{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input_elem{
    margin-bottom: 10px;
}

.input_elem span,
.input_elem label{
    font-size: 16px;
}
.input_elem input{
    font-size: 16px;
}

#preview-container{
    display: flex;
}

.container h4{
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 10px;
}

/*  */

#custom-file-upload > p{
    margin-bottom: 0px;
}

.custom-file-upload {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    position: relative; /* Dodane dla pozycjonowania ikony */
    overflow: hidden; /* Ukrywa ikonę, gdy nie jest w hover */
}

.custom-file-upload.dragover {
    background-color: #d3fcd4;
    border-color: #4CAF50; /* Zmiana koloru obramowania */
}

.custom-file-upload.dragover::before {
    transform: translate(-50%, -50%) scale(1); /* Powiększenie ikony */
    opacity: 1; /* Pełna widoczność ikony */
}

.custom-file-upload button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    position: relative;
    z-index: 2; /* Upewnia się, że przycisk jest nad ikoną */
}

.custom-file-upload button:hover {
    background-color: #367c39;
}

.custom-file-upload.uploading {
    opacity: 0.6;
    pointer-events: none; /* Wyłącza interakcję podczas wgrywania */
}

.upload-progress-bar {
    width: 0%;
    height: 10px;
    background-color: green;
}

.upload-progress-item {
    margin-bottom: 5px;
    border: 1px solid #ccc;
    padding: 2px;
}

#import_data{
    min-width: 130px;
}

.d-flex > input{
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}

.package_card{
    background-color: #fff;
    outline: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    width: 250px;
    height: 430px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    min-width: 250px;
}

.graphics_card {
    background-color: #fff;
    outline: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    width: 250px;
    height: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    min-width: 250px;
}

.package_card.completed,
.graphics_card.completed {
    background-color: rgb(213, 255, 213);
}
.package_card.in_progress,
.graphics_card.in_progress {
    /* background-color: #eee; */
}

.promotion_code, .package_name{
    font-weight: bold;
    font-size: 1rem;
    min-height: 29px;
}

.promotion_date {
    font-size: 0.9rem;
    min-height: 25px;
}

.promotion_poster , .package_poster{
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poster_image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.promotion_name {
    font-size: 14px;
    line-height: 120%;
    color: #555;
    font-weight: normal;
    margin-top: 5px;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.container.package_filtrs,
.container.graphics_filtrs {
    justify-content: flex-end;
    align-items: flex-end;
    font-size: 16px;
}

.alert{
    width: 100%;
}

.package_list,
.graphics_list {
    gap: 10px;
    padding-bottom: 20px;
}

#filtr_package .filtr_elem,
#filtr_graphics .filtr_elem {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    flex-direction: column;
}

#filtr_package input,
#filtr_graphics input {
    height: 34px;
    border: 1px solid #565656;
}

#filtr_package .filters,
#filtr_graphics .filters {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    width: 100%;
}

@media (min-width: 768px) {
    .container {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .package_card {
        width: calc(20% - 8px);
        box-sizing: border-box;
    }
    .graphics_card {
        width: calc(20% - 8px);
        box-sizing: border-box;
    }
}

input[readonly] {
    background: #f3f3f3!important;
}

.file-item {
    background-color: #eee;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    padding: 10px;
}

.file-item.upload_temporary{
    background-color: #cde3ff;
}

.checkbox_18{
    min-width: 18px;
    min-height: 18px;
}

.package_card_buttons,
.graphics_card_buttons{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-grow: 1;
    align-items: flex-end;
}

.order_quantity_graph{
    display: flex;
    align-items: center;
    justify-content: center;
}
.order_quantity_graph span{
    padding-left: 10px;
    max-width: 700px;
}

.order_quantity_graph img{
    width: 150px;
    height: auto;
}

.sg_buttons{
    display: flex;
    gap: 1px;
    justify-content: space-between;
}

.sg_buttons form{
    width: auto;
}

.sg_a_closer{
    margin-right: -4px;
}

.container.order_table{
    display: block;
    font-size: 18px;
}

.filtr_elem > select {
    height: 34px;
}

.permanent-package {
    background-color: #d8c2a5;
}

.permanent-graphics {
    background-color: #d8c2a5;
}

.test-graphics {
    background-color: #d1e0e0;
}

.archive-graphics {
    background-color: #bfb8aa;
}

#preview-container .file-item:not(:last-child) {
    margin-right: 10px;
}

#preview-container .file-item a {
    display: block;
}

.graphics_card input[type="checkbox"] {
    width: 25px !important;
    min-height: 15px;
    cursor: pointer;
}

#stickyFooter {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: white;
    padding: 5px 0;
    z-index: 0;
    display: none;
}

.stickyFooterWrapper {
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
}

#stickyFooter .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 100px;
}

#selectedCount {
    font-size: 16px;
}

.sg_button_005{
    background-color: red;
    color: white;
}

.highlighted td {
    background-color: yellow;
}

#filter-options {
    display: none;
    margin-top: 10px;
    border: 1px solid #ddd;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    width: 200px;
}

#filter-icon {
    cursor: pointer;
}

.filter-checkbox {
    margin-bottom: 10px;
}

#count-display {
    margin-top: 10px;
    display: inline-block;
    font-size: 16px;
}

.btn-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.btn-container .btn {
    margin-left: 10px;
}

.d-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    width: 100%;
}

.d-flex-container > div {
    margin: 0 10px;
}

.quantity-table-container {
    margin-top: 20px;
}

.quantity-table-container table {
    width: 100%;
    border-collapse: collapse;
}

.quantity-table-container table, .quantity-table-container th, .quantity-table-container td {
    border: 1px solid #ddd;
}

.quantity-table-container th, .quantity-table-container td {
    padding: 8px;
    text-align: center;
}

.quantity-table-container input {
    width: 80px;
    text-align: center;
}

.button-group {
    display: flex;
    gap: 10px;
}

.counter-group {
    display: flex;
    gap: 10px;
}

.filters_buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.left_buttons {
    display: flex;
    gap: 10px;
}

.right_buttons {
    display: flex;
    gap: 10px;
}

#import_data_by_link{
    min-width: 130px;
}

.container.order_details_table{
    display: block;
    font-size: 18px;
}

.container.status_table{
    display: block;
    font-size: 18px;
}

.container-form{
    width: 100%;
}

.sg_button_submit{
    width: 100%;
    min-height: 47px;
}

.hide{
    display: none;
}

.sg_custom_msg {
  padding: 15px;
  margin: 20px 0;
  width: 100%;
}

.sg_custom_msg.msg_type_success {
  background-color: #77dd77;
  color: white;
}
.sg_custom_msg.msg_type_neutral {
  background-color: #f4f4f4;
}

.sg_custom_msg.msg_type_error {
  background-color: #FF6961;
  color: white;
}

.sg_custom_msg .msg_elem_error {
 color: red;
}
.sg_custom_msg .msg_elem_error {
 color: red;
}
.sg_custom_msg .msg_elem_success {
color: #00a500;
}

#qrec .sg_square{
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 35px;
    height: 35px;
    min-width: 35px;
    min-height: 35px;
    border: 1px solid #ddd;
    border-radius: 0;
    cursor: pointer;
    position: relative;
    background-color: white;
    vertical-align: middle;
    display: inline-block;
    padding: 0px;
}

#qrec .sg_square:checked {
    background-color: white; /* białe tło */
}

#qrec .sg_square:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: black;
    font-size: 20px;
    font-weight: bold;
    pointer-events: none;
    user-select: none;
}

#qrec .sg_flex{
    flex-grow: 0;
    display: flex;
    gap: 5px;
}

#qrec .sg_flex .sg_square{
    margin-right: 10px;
}

#qrec #main_filters{
    width: 100%;
    margin-bottom: -60px;
    display: flex;
    justify-content: flex-end;
    position: relative;
}
#qrec #main_filters .main_filters_elem{
    display: flex;
    flex-direction: column;
    max-width: 300px;
    margin-left: 1em;
    z-index: 100;
}

#qrec .sg_icons_cont{
    display: flex;
}
#qrec .panel-icon{
    padding: 3px 10px;
    font-size: 24px;
    vertical-align: middle;
    margin: 0px 4px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    background-color: #ffd800;
    color: black;
}

#qrec .filters_buttons{
    gap: 10px;
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.csv-drop-area {
    border: 2px dashed #ccc;
    padding: 25px;
    background-color: #fafafa;
    border-radius: 6px;
}

.csv-drop-area.dragover {
    background-color: #f0f0f0;
    border-color: #333;
    color: #000;
}

.sg_button_009 {
    background-color: #ffa864;
    color: black;
}

.sg_button_009:hover {
    background-color: #ffbf99;
}

.sg_actions{
    display: flex;
    gap: 5px;
}

.red-input-border {
    border: 1px solid red;
}

.red-input-border:focus {
    border: 1px solid red;
    outline: none;
    box-shadow: 0 0 3px red;
}

.package_card.opening-package {
    background-color: rgb(240, 230, 255);
}

.package_card.opening-package.completed {
    background-color: rgb(213, 255, 213);
}

.package_content_form {
    flex-wrap: wrap;
}

.promotion_channel {
    font-size: 14px;
    color: #555;
    margin: 5px 0;
    line-height: 120%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order_table_new table.dataTable th,
.order_table_new table.dataTable td {
    white-space: normal;
    vertical-align: middle;
}

.order_table_new table.dataTable .nowrap {
    white-space: nowrap;
}

.order_table_new .dataTables_wrapper {
    overflow-x: auto;
}

.highlight-row {
    background-color: #ffa2a2 !important;
}