﻿@media screen and (max-width: 900px)  {

    html, body {
        width: 100%;
        min-height: 100%;
        margin: 0;
        padding: 0;
    }

    * {
        box-sizing: border-box;
    }

    .container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .home-screen {
        background: none;
    }

    .control-row {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        margin: 5px;
    }

    .avatar-hide {
        display: none;
    }

    .home-title {
        display: none;
    }

    .header {
        display: block;
        width: 100%;
        padding: 0;
        margin: 0;
        border-radius: 0px;
        box-shadow: none;
        /*background: none;*/
    }

    .calendar-container {
        border-bottom: 1px solid;
    }

    .calendar {
        border: none !important;
        text-align: center !important;
        box-shadow: none;
        font-size: 11px !important;
        color: var(--text-color);
    }

    .report-header {
        display: block;
    }

    .login-screen {
        display: block;
        min-height: 100vh;
        padding: 0;
        background: var(--background-login);
        position: relative;
        width: 100%;
        height: 100%;
        min-height: 100vh;
    }

        .login-screen::before {
            display: none;
        }

    .login-card {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        border-radius: 45px 45px 325px;
        background: var(--background-login);
        box-shadow: 0 20px 45px rgba(20, 60, 120, 0.3);
        padding: 0;
    }

    .login-card-body {
        padding: 55px 30px 20px;
    }

    .font-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .field {
        margin-bottom: 26px;
        width: 100%;
        box-sizing: border-box;
    }

    .form-control {
        padding: 18px 34px 18px 16px;
        border-radius: 12px;
        font-size: 16px;
    }

    .login-sub {
        font-size: 12px;
        margin-bottom: 16px;
    }

    .btn-default {
        width: 100%;
        /*min-height: 42px;*/
    }

    .Register {
        width: 100%;
        /* margin-top: 6px !important;
        min-height: 38px;*/
    }



    .show-password {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        box-sizing: border-box;
        margin-top: 5px;
    }

        .show-password > .flex {
            width: 50%;
            flex: 0 0 50%;
            display: flex;
            flex-direction: row;
            align-items: center;
            box-sizing: border-box;
        }

            .show-password > .flex label {
                white-space: nowrap;
                margin: 0;
            }

            .show-password > .flex input {
                flex-shrink: 0;
            }

        .show-password > .ForgotPassword {
            width: 50% !important;
            flex: 0 0 50%;
            box-sizing: border-box;
            text-align: right;
            margin: 0;
        }

    .password-warning {
        right: 8px;
        font-size: 16px;
    }

    .button-height {
        display: inline-block;
        width: 49%;
        margin: 22px 0 10px;
        vertical-align: top;
    }

        .button-height:first-of-type {
            margin-right: 4%;
        }

    .verse-card {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        max-width: 480px;
        width: 100%;
        margin: 0;
        background: var(--background-login);
        border-radius: 268px 17px 0px 0px;
        text-align: right;
        padding: 47px 14px 15px 60px;
        box-sizing: border-box;
    }

    .verse-card-reg {
        display: none;
    }

    .verse-card-forg {
        display: none;
    }


    .verse-divider {
        display: block;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.6);
        margin: 0 20px 30px;
    }

    .font-verse {
        color: #ffffff;
        font-size: 15px;
        font-family: Montserrat;
    }

    .font-verse-title {
        color: #ffffff;
        font-size: 18px;
        font-weight: 500;
        font-family: Montserrat;
    }

    .tab-btn.active {
        border-radius: 5px;
    }

    /* Attendance icon */
    .content {
        box-shadow: none;
        padding: 0px;
        margin-top: 0px;
    }

    #attendanceBtn::before {
        content: " ";
        display: block;
        width: 20px;
        height: 20px;
        background-color: currentColor;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    /* Ministry icon */
    #ministryBtn::before {
        content: " ";
        display: block;
        width: 20px;
        height: 20px;
        background-color: currentColor;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='10' cy='7' r='4'/%3E%3Cpath d='M20 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    /* Financials icon */
    #FinancialsBtn::before {
        content: " ";
        display: block;
        width: 20px;
        height: 20px;
        background-color: currentColor;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20M16 15h2'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    /* Reports icon */
    #SummaryBtn::before {
        content: " ";
        display: block;
        width: 20px;
        height: 20px;
        background-color: currentColor;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='m19 9-5 5-4-4-5 5'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    /* Settings icon */
    #settingsBtn::before {
        content: " ";
        display: block;
        width: 20px;
        height: 20px;
        background-color: currentColor;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='m19.4 15 .1.1 1.4 1.1-1.4 2.4-1.7-.7a8 8 0 0 1-1.7 1l-.3 1.8h-2.8l-.3-1.8a8 8 0 0 1-1.7-1l-1.7.7-1.4-2.4L5.3 15a8 8 0 0 1 0-2l-1.4-1.1 1.4-2.4 1.7.7a8 8 0 0 1 1.7-1L9 7.4h2.8l.3 1.8a8 8 0 0 1 1.7 1l1.7-.7 1.4 2.4-1.4 1.1a8 8 0 0 1-.1 2Z'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    /* Stack icon above label */
    .btn-Header > .tab-btn,
    .settings-menu > #settingsBtn {
        flex-direction: column;
        gap: 4px;
        font-size: 9px;
    }

    .dropdown-icon {
        display: none;
    }

    /* Keep dropdown arrow small */
    #settingsBtn .dropdown-icon {
        font-size: 8px;
    }

    .two-col, .two-col-rent {
        display: block;
    }

    .ministry-row {
        display: grid;
    }

    .btn-assign-ministry {
        width: 100%;
    }

    .font-label-row {
        background: none;
        box-shadow: none;
    }

    .member-results {
        width: 50%
    }

    .financials-title {
        margin-left: 0px;
        width: 75px;
        padding: 10px;
        font-size: 11px;
        background: none;
        color: var(--font-color-label-row);
    }

    .member-tithes, .member-Rent {
        grid-template-columns: minmax(0, 1fr) 85px auto;
    }

    .financials-report-amount, .financials-report-members {
        font-size: 12px;
    }

    .content-button{
        margin-top: 10px;
        font-size: 12px;
    }

    .btn-export {
        font-size: 12px;
        padding: 5px 9px;
    }

    .settings{
        display: block;
        padding: 0px;
    }

    .grid3 {
        grid-template-columns: auto !important;
    }

    .field-financials{
        width: 100%;
    }

    .schedule-options {
        grid-template-columns: auto !important;
    }

    .settings-dropdown {
        min-width: 115px;
    }

    .settings-dropdown a {
        margin-top: 0px;
        padding: 5px 7px;
        font-size: 9px;
    }
}




/* Extra-small phones */
@media (max-width: 380px) {

    .login-screen {
        padding: 12px;
    }

    .login-card {
        padding: 20px 16px;
    }

    .font-title {
        font-size: 17px;
    }

    .login-sub {
        font-size: 11px;
    }

    .show-password label {
        font-size: 10px;
    }

    .ForgotPassword {
        font-size: 10px;
    }
}
