/* App Layout Styles - Custom styles for the main application layout */

/* Primary Colors and Typography */
.text-primary-blue {
    color: #062647 !important;
    font-weight: bold !important;
}

/* Main Content Area */
#content {
    margin-top: 100px !important;
}

/* Sidebar Styles */
.sidebar-wrapper-project {
    position: fixed;
    z-index: 1030;
    transition: width 0.1s, left 0.1s;
    touch-action: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    top: 60px;
    width: 100%;
    margin: 0 auto;
    left: 0;
    right: 0;
}

.sidebar-wrapper {
    position: fixed;
    z-index: 1030;
    transition: width 0.1s, left 0.1s;
    touch-action: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    top: 60px;
    width: 98%;
    max-width: 100% !important;
    margin: 0 auto;
    left: 0;
    right: 0;
}

/* Menu and Adjustment Styles */
.svg-adjustment-menu {
    height: 130px;
}

/* Container Styles */
.container-xxl-alter {
    margin-left: 20px;
    margin-right: 20px;
}

.header-container {
    padding: 10px 0px 0px 0px;
}

/* Transaction Info Button */
.transacctioninfoButton {
    color: #062647;
    font-size: 1rem;
    font-weight: bold !important;
}

.transacctioninfoButton:hover {
    color: #062647;
    font-size: 1.1rem;
}

/* Excel Table Modal */
.th_excel_table_modal {
    background-color: #2a4b7c !important;
    color: #ffffff !important;
    width: 100%;
    font-size: 14px;
    text-align: center;
    padding: 8px;
    cursor: pointer;
}

/* Floating Buttons */
.floating-btn {
    position: fixed;
    bottom: 5px;
    right: 75px;
    z-index: 1030;
    background-color: #e52421;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.floating-btn:hover {
    background-color: #b61a17;
}

.floating-help-btn {
    position: fixed;
    bottom: 5px;
    right: 5px;
    z-index: 1030;
    background-color: #e52421;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.floating-help-btn:hover {
    background-color: #b61a17;
}

.floating-add-files-btn {
    position: fixed;
    bottom: 20px;
    left: calc(100vw / 5.5);
    z-index: 1030;
    background-color: #d48652;
    color: black;
    border-radius: 25px;
    width: 120px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.floating-add-files-btn:hover {
    background-color: #b61a17;
    color: white;
    text-decoration: none;
}

/* Utility Classes */
.custom-d-none {
    display: none !important;
}

/* Dynamic Content Margin - Uses CSS custom properties */
.content-margin-normal {
    --content-margin-top: 50px;
}

.content-margin-project {
    --content-margin-top: 150px;
}

/* Mobile Responsive Styles */
@media (max-width: 767.98px) {
    .floating-add-files-btn {
        left: 10px;
        width: 100px;
        height: 45px;
        font-size: 12px;
    }

    .sidebar-wrapper-project {
        position: fixed;
        z-index: 1030;
        transition: width 0.1s, left 0.1s;
        touch-action: none;
        user-select: none;
        -webkit-user-drag: none;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        top: 60px;
        width: 100%;
        margin: 0 auto;
        left: 0;
        right: 0;
    }

    #content {
        margin-top: var(--content-margin-top) !important;
    }

    .svg-adjustment-menu {
        display: none;
    }

    /* Mobile Table Adjustments */
    .adjustment-table-mobil {
        width: 100%;
        border-collapse: separate;
        border-spacing: 5px;
        margin: 0px;
        padding: 0px;
    }

    .adjustment-table-mobil .empty-cell {
        height: 50px;
    }

    .adjustment-table-mobil .info-cell {
        border: 1px solid #000000;
        font-size: 0.7em;
        padding-left: 5px;
        padding-right: 5px;
        font-weight: bold;
    }

    .adjustment-table-mobil .blue-cell {
        background-color: #29b3e0;
    }

    .adjustment-table-mobil .red-cell {
        background-color: #e52421;
        color: #ffffff;
    }

    .adjustment-table-mobil .byoriginator-cell {
        background-color: #93c352;
        cursor: pointer;
    }

    .adjustment-table-mobil .bypayee-cell {
        background-color: #f9ceaf;
        cursor: pointer;
    }

    .adjustment-table-mobil .byoriginator-cell.active,
    .adjustment-table-mobil .bypayee-cell.active {
        font-size: 0.85em;
        transition: font-size 0.3s ease;
    }

    .infoalter-cell {
        font-size: 0.7em;
        font-weight: bold;
        text-align: center;
        padding: 0px;
        margin: 0px;
        border-spacing: 0px;
        vertical-align: bottom;
    }
}

/* Language Selector Styles */
.language-dropdown .flag-width {
    width: 20px;
    height: auto;
    margin-right: 8px;
}

.language-dropdown .dropdown-menu {
    min-width: 150px;
}

.language-dropdown .dropdown-item {
    padding: 8px 12px;
    transition: background-color 0.2s ease;
}

.language-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
}

.language-dropdown .dropdown-item.active {
    background-color: #e9ecef;
    font-weight: bold;
}

.language-dropdown .dropdown-item.active::after {
    content: "✓";
    float: right;
    color: #28a745;
    font-weight: bold;
}
