/**
 * Cooporative Addon App style.
 *
 * For the cooporative addon page.
 *
 * @author  Metaverses Nation Agency <mail@metaversesnation.com>
 */

/*
    All Screens & Some Desktop Specific Styles.
*/

/*
    General Elements Layout, Size, and Spacings.
*/

/* Background color red. */
.page-header {
    background-color: red;
    color: white;
    font-weight: bold;
}

/* Padding lefts. */
#sidebar-div .header,
#sidebar-div .list .item {
    padding-left: 10px;
}

/* Box shadows. */
#sidebar-div .list .item,
#sidebar-div,
.card,
.card-header,
.card-buttons,
.card-image,
.header-menu-item,
#sidebar-header-div {
    box-shadow: 0 1px 6px rgb(0 0 0 / 12%), 0 1px 4px rgb(0 0 0 / 24%) !important;
}

/* Active color. */
.list .item:hover,
.list .item.active,
.menu {
    background: #f8d7da !important;
}

/* Max height 100vh. */
.max-height-full-screen-height-no-scroll {
    max-height: 100vh;
    overflow: hidden;
}

/* Vertical align middle. */
.page-header img {
    vertical-align: middle;
}

/*
    Specific Elements Layout, Size, and Spacings.
*/

/* Header menu items */
.header-menu-item {
    background-color: white !important;
    border-radius: 10px !important;
    padding: 5px !important;
}
.header-menu-item.image {
    padding: 2px !important;
}

/* Image full width. */
.image.full-width {
    max-width: 90% !important;
    height: auto !important;
}

/* User profile image & button. */
#user-image-button,
#user-image {
    border-radius: 10px;
}

/* Pagination paragraphs. */
.pagination-paragraph {
    margin-top: 0;
}

/* Search Form Inputs. */
.search-input {
    width: 80% !important;
}

/* Sidebar main menu items spacings and styles. */
#sidebar-main-menu-div .item {
    margin: 0;
    padding: 10px;
    background: white;
    border: none;
    cursor: pointer;
}

/* Sidebar div size and styles. */
#sidebar-div {
    width: 30vw;
    z-index: 100;
}

/* Menu items. */
.menu .menu-item {
    display: flex;
    align-items: center;
    padding: 5px;
    cursor: pointer;
    opacity: 1;
}

/* Menu items on hover. */
.menu .menu-item:hover {
    opacity: 0.6;
}

/* Menu item images. */
.menu .menu-item img {
    margin-right: 5px;
}

/* Menu item anchors. */
.menu .menu-item a {
    color: black;
    font-size: 15px;
    text-decoration: none;
    width: 100%;
    height: 100%;
    vertical-align: middle;
}

/* Home page div paragraphs. */
#home-page-div p {
    text-align: center;
}

/* Cards. */
.card {
    display: flex;
    flex-direction: column;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    margin: 10px;
    background-color: white;
    border: none;
}

/* Card headers. */
.card-header {
    display: flex;
    align-items: center;
    padding: 10px;
}

/* Card bodies. */
.card-body {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

/* Card buttons divs. */
.card-buttons {
    display: flex;
    justify-content: center;
    padding: 10px;
    background-color: lightBlue;
}

/* Card icons. */
.card-icon {
    margin-right: 5px;
}

/* Card groups. */
.card-group-div {
    display: flex;
}

/* Card sub groups. (Desktop Specific Style) */
.card-group-sub-group-1-div,
.card-group-sub-group-2-div {
    display: flex;
    flex-direction: row;
}

/* Card buttons. */
.card-buttons button {
    margin: 10px;
}

/* Card title inputs. (Desktop Specific Style) */
.card-title-input {
    width: 50% !important;
}

/* Card sub title inputs. (Desktop Specific Style) */
.card-sub-title-input {
    width: 40% !important;
}

/* Card content inputs. */
.card-content-input,
.card-content-date-and-select-input {
    width: 110px !important;
}
.card-content-date-and-select-input.wide {
    width: 170px !important;
}

/* Card input full widths. (Desktop Specific Style) */
.card-input-full-width {
    width: 80% !important;
}

/* Card content input divs. */
.card-content-input-div {
    margin-top: 10px;
}
.card-group-div .card-content-input-div {
    justify-content: flex-start;
    width: 180px !important;
}
.card-group-div .card-content-input-div.full-width { /* (Desktop Specific Style) */
    width: 80% !important;
}

/* Card forms. */
.card-form {
    width: 90% !important;
}

/* Card documents. */
.card-document {
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Card image buttons. */
.card-image-button {
    white-space: nowrap;
    overflow: hidden; /* This will hide any text that overflows the button width */
    text-overflow: ellipsis; /* This will add an ellipsis (...) if the text overflows */
}

/* Card image full width. */
.card-image.full-width {
    width: fit-content !important;
    max-width: 90% !important;
    height: auto !important; /* Add this line to make the height responsive */
    object-fit: contain !important; /* Add this line to maintain aspect ratio */
}

/* Card content input labels. */
.card-content-input-label {
    font-weight: bold;
}

/* Card form title paragraphs. */
.card-form-title {
    margin: 0;
    margin-top: 10px;
    padding: 0;
}

/* Card header waiting color. */
.card-header.waiting {
    background-color: lightBlue;
}

/* Card header active color. */
.card-header.active {
    background-color: limeGreen;
}

/* Card header deactivated color. */
.card-header.deactivated {
    background-color: red;
    color: white;
}

/* Card header paid off color. */
.card-header.paid-off {
    background-color: yellow;
}

/* Active header buttons. */
.page-header .active {
    text-align: center;
    background-color: #f8d7da !important;
    border-radius: 5px;
    padding: 5px !important;
}

/* Print Footer */
.print-footer-div {
    width: 100%;
}

.print-footer-div .column {
    flex-grow: 1;
}

.print-footer-div:nth-child(2) {
    align-items: flex-end;
}

.print-footer-left-column-paragraph {
    text-transform: uppercase;
}

.print-footer-right-column-paragraph-1 {
    margin-bottom: 70px;
    text-align: end;
}

.print-footer-right-column-paragraph-2 {
    font-weight: bold;
    text-decoration: underline;
    text-align: end;
}

/* Forms. */
#search-staffs-form-div,
#search-members-form-div {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Header and footer hidden. */
header, footer {
    display: none !important;
}

/* Main no padding. */
main {
    padding: 0 !important;
}

/* Horizontal line styles. */
hr {
    width: 95%;
    border: none;
    height: 0.2px;
    background: grey;
    margin-top: 10px;
    margin-bottom: 10px;
}

/*
    Form Responsive Support.
*/
@media only screen and (max-width: 1238px) {
    /* Card title inputs. */
    .card-title-input {
        width: 80% !important;
    }
    
    /* Card sub title inputs. */
    .card-sub-title-input {
        width: 70% !important;
    }
    
    /* Card content inputs full width. */
    .card-input-full-width {
        width: 90% !important;
    }
    
    /* Card groups. */
    .card-group-div {
        flex-direction: column !important;
    }
    
    /* Card content input divs full width. */
    .card-content-input-div.full-width {
        flex-direction: column !important;
        justify-content: center;
        align-items: flex-start !important;
        width: 90% !important;
    }
    
    /* Card sub group spacers. */
    .card-group-sub-group-1-div .spacer-2 {
        display: none !important;
    }
}

/*
    Tablets Screen.
*/
@media only screen and (max-width: 1067px) {
    /* Sidebar div full page. */
    #sidebar-div {
        flex-grow: 1;
    }
    
    /* Mobile menu styles. */
    .mobile-menu {
        background-color: #f8d7da !important;
    }
    
    /* Mobile menu item styles. */
    .mobile-menu .menu-item {
        display: flex;
        align-items: center;
        padding: 5px;
        cursor: pointer;
        opacity: 1;
    }
    
    /* Mobile menu items on hover. */
    .mobile-menu .menu-item:hover {
        opacity: 0.6;
    }
    
    /* Mobile menu item images. */
    .mobile-menu .menu-item img {
        margin-right: 5px;
    }
    
    /* Mobile hidden. */
    .mobile-hidden {
        display: none !important;
    }
    .mobile-hidden.hidden {
        display: none !important;
    }
    
    /* Desktop hiddens. */
    .desktop-hidden.inline {
        display: inline !important;
    }
    .desktop-hidden.block {
        display: block !important;
    }
    .desktop-hidden.flex {
        display: flex !important;
    }
    .desktop-hidden.hidden {
        display: none !important;
    }
}

/*
    Form Responsive Support.
*/
@media only screen and (max-width: 618px) {
    /* Member Services Checkboxes Responsive */
    .column.member-services > .row {
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
    }
    .column.member-services > .spacer.very-small {
        margin: 10px !important;
    }
}

/*
    Phone & Watch Screens.
*/
@media only screen and (max-width: 442px) {
    /* Card buttons div. */
    .card-buttons {
        flex-direction: column !important;
    }
    
    /* Card buttons. */
    .card-buttons button {
        width: 90% !important;
    }
    
    /* Card sub groups. */
    .card-group-sub-group-1-div,
    .card-group-sub-group-2-div {
        flex-direction: column !important;
    }
    
    /* Card sub group spacers. */
    .card-group-sub-group-1-div .spacer-1,
    .card-group-sub-group-2-div .spacer-1 {
        display: none !important;
    }
}

/*
    Mini Phone & Watch Screens.
*/
@media only screen and (max-width: 318px) {
    /* Card title and subtitle divs. */
    .card-title-and-subtitle-div {
        justify-content: center !important;
        align-items: center !important;
    }
    
    /* Card title and subtitle div inputs. */
    .card-title-and-subtitle-div input {
        text-align: center !important;
    }
    
    /* Card headers. */
    .card-header {
        flex-direction: column !important;
        text-align: center !important;
    }
}

/*
    Printing Screens.
*/
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
    }
    body {
        margin: 0;
        padding: 0;
    }
    body * {
        visibility: hidden;
    }
    .print-table {
        width: 95% !important;
        margin: auto !important;
    }
    .print-table td, th {
        word-wrap: break-word !important;
        -webkit-hyphens: auto !important;
        -ms-hyphens: auto !important;
        hyphens: auto !important;
        font-size: 12px !important;
        padding: 2px !important;
        vertical-align: middle !important;
        height: 21px !important;
    }
    
    .print-div td, .print-div th {
        font-size: 10px !important;
    }
    
    .print-div .print-title {
        font-size: 15px !important;
    }
    
    .print-div .print-logo {
        width: 62.5px !important;
        height: 62.5px !important;
    }
    
    .print-div .print-header {
        width: 95% !important;
        margin: auto !important;
    }
    
    .print-div.staffs-print-div > table > thead > tr > th:nth-child(1) {
        width: 5% !important;
    }
    .print-div.staffs-print-div > table > thead > tr > th:nth-child(2) {
        width: 13% !important;
    }
    .print-div.staffs-print-div > table > thead > tr > th:nth-child(3) {
        width: 13% !important;
    }
    .print-div.staffs-print-div > table > thead > tr > th:nth-child(4) {
        width: 13% !important;
    }
    .print-div.staffs-print-div > table > thead > tr > th:nth-child(5) {
        width: 13% !important;
    }
    .print-div.staffs-print-div > table > thead > tr > th:nth-child(6) {
        width: 10% !important;
    }
    .print-div.staffs-print-div > table > thead > tr > th:nth-child(7) {
        width: 18% !important;
    }
    .print-div.staffs-print-div > table > thead > tr > th:nth-child(8) {
        width: 15% !important;
    }
    
    
    .print-div.members-print-div > table > thead > tr > th:nth-child(1) {
        width: 5% !important;
    }
    .print-div.members-print-div > table > thead > tr > th:nth-child(2) {
        width: 20% !important;
    }
    .print-div.members-print-div > table > thead > tr > th:nth-child(3) {
        width: 15% !important;
    }
    .print-div.members-print-div > table > thead > tr > th:nth-child(4) {
        width: 15% !important;
    }
    .print-div.members-print-div > table > thead > tr > th:nth-child(5) {
        width: 10% !important;
    }
    .print-div.members-print-div > table > thead > tr > th:nth-child(6) {
        width: 17% !important;
    }
    .print-div.members-print-div > table > thead > tr > th:nth-child(7) {
        width: 10% !important;
    }
    .print-div.members-print-div > table > thead > tr > th:nth-child(8) {
        width: 8% !important;
    }
    
    .print-div.financing-prospect-migrant-workers-print-div > table > thead > tr > th:nth-child(1) {
        width: 5% !important;
    }
    .print-div.financing-prospect-migrant-workers-print-div > table > thead > tr > th:nth-child(2) {
        width: 15% !important;
    }
    .print-div.financing-prospect-migrant-workers-print-div > table > thead > tr > th:nth-child(3) {
        width: 7% !important;
    }
    .print-div.financing-prospect-migrant-workers-print-div > table > thead > tr > th:nth-child(4) {
        width: 10% !important;
    }
    .print-div.financing-prospect-migrant-workers-print-div > table > thead > tr > th:nth-child(5) {
        width: 10% !important;
    }
    .print-div.financing-prospect-migrant-workers-print-div > table > thead > tr > th:nth-child(6) {
        width: 10% !important;
    }
    .print-div.financing-prospect-migrant-workers-print-div > table > thead > tr > th:nth-child(7) {
        width: 8% !important;
    }
    .print-div.financing-prospect-migrant-workers-print-div > table > thead > tr > th:nth-child(8) {
        width: 10% !important;
    }
    .print-div.financing-prospect-migrant-workers-print-div > table > thead > tr > th:nth-child(9) {
        width: 10% !important;
    }
    .print-div.financing-prospect-migrant-workers-print-div > table > thead > tr > th:nth-child(10) {
        width: 15% !important;
    }
    
    .print-footer-div {
        width: 95% !important;
        margin: auto !important;
    }
    
    .print-footer-left-column-paragraph {
        font-size: 10px !important;
    }
    
    .print-footer-right-column-paragraph-1 {
        font-size: 10px !important;
        margin-bottom: 40px !important;
    }
    
    .print-footer-right-column-paragraph-2 {
        font-size: 10px !important;
    }
    
    .print-div {
        position: absolute;
        left: 0;
        top: 20px;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    main, body, html {
        height: 100% !important;
    }
    #staffs-list-div > button:nth-child(1),
    #staffs-list-div > button:nth-child(2),
    #staffs-list-pagination-div,
    #staffs-list-pagination-div *,
    #staffs-page-header-div,
    #staffs-page-header-div *,
    #sidebar-div,
    #sidebar-div * {
        height: 0 !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }
    
    div.print-div, div.print-div * {
        visibility: visible;
    }
}