*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:"Segoe UI", Arial, sans-serif;
}

body{
    background:#f4f6f8;
    color:#1f2937;
}

/* HOME */

.home-header{
    min-height:100vh;
     background:#2f6b9c;
    color:#0d2b53;
    padding:20px 8%;
}

.navbar{
    height:58px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}


.site-footer{
    width:100%;
    background:#0b3a69;
    color:#fff;
    margin:0;
    padding:0;
}

.footer-container{
    max-width:1300px;
    margin:0 auto;
    padding:60px 40px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:50px;
}

.footer-col h3,
.footer-col h4{
    color:#fff;
    margin-bottom:18px;
    font-size:26px;
    font-weight:700;
}

.footer-col p{
    color:#cbd5e1;
    font-size:16px;
    line-height:1.9;
}

.footer-col a{
    display:block;
    color:#cbd5e1;
    text-decoration:none;
    margin-bottom:12px;
    font-size:16px;
    transition:.3s;
}

.footer-col a:hover{
    color:#60a5fa;
    padding-left:6px;
}

.footer-bottom{
    border-top:1px solid rgba(255,255,255,.15);
    text-align:center;
    padding:20px;
    color:#94a3b8;
    font-size:15px;
}


@media(max-width:900px){

    .footer-container{
        grid-template-columns:repeat(2,1fr);
        gap:35px;
    }

}


@media(max-width:600px){

    .footer-container{
        grid-template-columns:1fr;
        text-align:center;
        padding:40px 20px;
    }

    .footer-col a:hover{
        padding-left:0;
    }

}

.logo{
    font-size:28px;
    font-weight:700;
}

.logo span{
    color:#e4ff9b;
}

.nav-links{
    display:flex;
    align-items:center;
    gap:8px;
}

.nav-links a{
    color:#fff;
    text-decoration:none;
    padding:8px 12px;
    font-size:14px;
    font-weight:500;
}

.nav-links a:hover{
    background:#2c4f7c;
}

.nav-btn{
    background:#194782 !important;
    color:#1d3557 !important;
    border:1px solid #d8dde6;
}

.hero-section{
    display:grid;
    grid-template-columns:1fr 420px;
    gap:40px;
    align-items:center;
    min-height:calc(100vh - 65px);
    width:100%;
    overflow:hidden;
}
.hero-image{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
}

.hero-image img{
    width:100%;
    max-width:450px;
}
.hero-text h1{
    font-size:46px;
    line-height:1.2;
    margin-bottom:18px;
    font-weight:700;
}

.hero-text p{
    font-size:17px;
    line-height:1.7;
    color:#020e1b;
    margin-bottom:25px;
    max-width:650px;
}

.hero-btns{
    display:flex;
    gap:10px;
}

.primary-btn,
.outline-btn{
    text-decoration:none;
    padding:10px 18px;
    font-size:14px;
    font-weight:600;
    border:1px solid #fff;
}

.primary-btn{
    background:#194782;
    color:#f1f6fd;
}

.outline-btn{
    color:#22529e;
    background:transparent;
}

.primary-btn:hover{
    background:#345c89;
}

.outline-btn:hover{
    background:#f2f3f4;
}

.hero-card{
    background:#fff;
    color:#1f2937;
    border:1px solid #d8dde6;
    padding:22px;
}

.hero-card h3{
    color:#1d3557;
    margin-bottom:14px;
    font-size:18px;
}

.mini-card{
    background:#f7f9fb;
    border:1px solid #e1e6ee;
    padding:11px 12px;
    margin-bottom:8px;
    font-size:14px;
}

.mini-card b{
    float:right;
    color:#1d3557;
}

.features{
    padding:55px 8%;
   background:#2f6b9c;
}

.features h2{
    text-align:center;
    color:#1d3557;
    margin-bottom:30px;
    font-size:28px;
}

.feature-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
}

.feature-card{
    background:#f7f9fb;
    border:1px solid #e1e6ee;
    padding:22px;
    text-align:left;
}

.feature-card h3{
    color:#1d3557;
    margin-bottom:8px;
    font-size:17px;
}

.feature-card p{
    color:#6b7280;
    font-size:14px;
    line-height:1.6;
}

footer{
    background:#1d3557;
    color:#fff;
    text-align:center;
    padding:16px;
    font-size:14px;
}

/* LOGIN / REGISTER */

.auth-body{
    min-height:100vh;
    background:#eef3f7;
    display:flex;
    justify-content:center;
    align-items:center;
}

.auth-card{
    width:390px;
    background:#fff;
    border:1px solid #d8dde6;
    padding:28px;
}

.auth-card h2{
    text-align:center;
    color:#1d3557;
    margin-bottom:6px;
    font-size:24px;
}

.auth-card p{
    text-align:center;
    color:#6b7280;
    margin-bottom:22px;
    font-size:14px;
}

.auth-card input{
    width:100%;
    padding:11px 12px;
    margin-bottom:12px;
    border:1px solid #cfd6df;
    outline:none;
    font-size:14px;
}

.auth-card input:focus{
    border-color:#1d3557;
    background:#f9fbfd;
}

.auth-card button{
    width:100%;
    padding:11px;
    border:1px solid #1d3557;
    background:#1d3557;
    color:#fff;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
}

.auth-card button:hover{
    background:#2c4f7c;
}

.auth-link{
    margin-top:18px;
}

.auth-link a{
    color:#1d3557;
    text-decoration:none;
    font-weight:600;
}

.message{
    background:#edf3fa;
    color:#1d3557;
    border:1px solid #d8dde6;
    padding:9px 10px;
    margin-bottom:12px;
    font-size:14px;
}

/* DASHBOARD TOP NAV  */

.modern-body{
    margin:0;
    background:#f4f6f8;
    color:#1f2937;
}

.top-navbar{
    height:56px;
    background:#1d3557;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 20px;
    border-bottom:1px solid #d7dde5;
    position:sticky;
    top:0;
    z-index:100;
}

.nav-brand{
    font-size:22px;
    font-weight:700;
    white-space:nowrap;
}

.nav-brand span{
    color:#9bd0ff;
}

.nav-menu{
    display:flex;
    align-items:center;
    gap:2px;
    flex-wrap:wrap;
}

.nav-menu button{
    border:none;
    background:transparent;
    color:#fff;
    padding:8px 12px;
    font-size:14px;
    font-weight:500;
    cursor:pointer;
}

.nav-menu button:hover{
    background:#2c4f7c;
}

.nav-item{
    position:relative;
}

.nav-dropdown{
    display:none;
    position:absolute;
    top:42px;
    left:0;
    width:185px;
    background:#fff;
    border:1px solid #d8dde6;
    padding:4px 0;
    z-index:200;
}

.nav-dropdown.show{
    display:block;
}

.nav-dropdown a{
    display:block;
    color:#1f2937;
    text-decoration:none;
    padding:9px 14px;
    font-size:14px;
    font-weight:500;
}

.nav-dropdown a:hover{
    background:#edf3fa;
    color:#1d3557;
}

.profile-menu{
    position:relative;
    margin-left:6px;
}

.profile-btn{
    width:36px;
    height:36px;
    border:none;
    background:transparent;
    color:#fff;
    cursor:pointer;
    font-size:22px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.profile-btn:hover{
    background:#2c4f7c;
}

.profile-dropdown{
    display:none;
    position:absolute;
    right:0;
    top:42px;
    width:165px;
    background:#fff;
    border:1px solid #d8dde6;
    z-index:300;
}

.profile-dropdown.show{
    display:block;
}

.profile-dropdown a{
    display:flex;
    align-items:center;
    gap:9px;
    padding:10px 14px;
    color:#1f2937;
    text-decoration:none;
    font-size:14px;
    font-weight:500;
}

.profile-dropdown a:hover{
    background:#edf3fa;
    color:#1d3557;
}

.profile-dropdown i{
    font-size:17px;
}

.dashboard-page{
    padding:22px;
}

.welcome-card{
    background:#fff;
    color:#1f2937;
    border:1px solid #dde3ea;
    padding:22px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
}

.welcome-card h1{
    margin:0 0 5px;
    font-size:26px;
    color:#1d3557;
    font-weight:700;
}

.welcome-card p{
    margin:0;
    font-size:14px;
    color:#6b7280;
}

.create-btn{
    background:#1d4ed8;
    color:#fff;
    text-decoration:none;
    padding:10px 18px;
    font-size:14px;
    font-weight:600;
    white-space:nowrap;
    border:1px solid #1e40af;
}

.create-btn:hover{
    background:#1e40af;
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
    margin-top:18px;
}

.stat-card{
    background:#fff;
    border:1px solid #dde3ea;
    padding:18px;
}

.stat-card span{
    color:#6b7280;
    font-size:13px;
    font-weight:500;
}

.stat-card h2{
    color:#1d3557;
    margin:8px 0 0;
    font-size:24px;
    font-weight:700;
}

.content-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    margin-top:18px;
}

.gateway-card{
    background:#fff;
    border:1px solid #dde3ea;
    padding:18px;
}

.gateway-card h3{
    margin:0 0 14px;
    color:#1d3557;
    font-size:18px;
    font-weight:700;
}

.gateway-card a,
.company-row,
.empty-row{
    display:block;
    padding:10px 12px;
    background:#f7f9fb;
    margin-bottom:8px;
    text-decoration:none;
    color:#1f2937;
    font-size:14px;
    font-weight:500;
    border:1px solid #e1e6ee;
}

.gateway-card a:hover{
    background:#edf3fa;
    color:#1d3557;
}

.empty-row{
    color:#6b7280;
}

/* COMPANY CREATION */

.creation-page{
    min-height:100vh;
    background:#f4f6f8;
}

.creation-header{
    height:54px;
    background:#1d3557;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 20px;
}

.creation-header h2{
    font-size:20px;
    font-weight:600;
}

.creation-header a,
.creation-header button{
    background:#fff;
    color:#1d3557;
    border:1px solid #d8dde6;
    padding:8px 16px;
    text-decoration:none;
    font-weight:600;
    cursor:pointer;
}

.creation-grid{
    display:grid;
    grid-template-columns:1fr 380px;
    gap:16px;
    padding:20px;
}

.form-section{
    background:#fff;
    border:1px solid #dde3ea;
    padding:18px;
}

.form-section label{
    display:block;
    margin-top:12px;
    font-size:14px;
    font-weight:600;
    color:#374151;
}

.form-section input,
.form-section textarea,
.form-section select{
    width:100%;
    padding:9px 10px;
    border:1px solid #cfd6df;
    margin-top:4px;
    font-size:14px;
    background:#fff;
}

.form-section input:focus,
.form-section textarea:focus,
.form-section select:focus{
    outline:none;
    border-color:#1d3557;
    background:#f9fbfd;
}

.form-section textarea{
    height:80px;
    resize:vertical;
}

.right-section{
    height:max-content;
}

.modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.25);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:1000;
}

.success-modal{
    width:620px;
    max-height:90vh;
    overflow:auto;
    background:#fff;
    border:1px solid #d8dde6;
    padding:22px;
}

.success-modal h2{
    text-align:center;
    color:#1d3557;
    font-size:22px;
    margin-bottom:12px;
}

.features-box{
    margin-top:14px;
}

.features-box h3,
.features-box h4{
    color:#1d3557;
    margin:14px 0 8px;
}

.feature-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:8px 0;
    border-bottom:1px solid #eef1f4;
    font-size:14px;
}

.feature-row select{
    width:80px;
    padding:5px;
    border:1px solid #cfd6df;
}

.modal-actions{
    display:flex;
    justify-content:flex-end;
    gap:8px;
    margin-top:18px;
}

.modal-actions a{
    background:#1d3557;
    color:#fff;
    padding:8px 14px;
    text-decoration:none;
    font-size:14px;
}

/* RESPONSIVE */

@media(max-width:900px){
    .top-navbar{
        height:auto;
        flex-direction:column;
        align-items:flex-start;
        padding:12px 16px;
        gap:10px;
    }

    .nav-menu{
        width:100%;
        gap:4px;
    }

    .nav-menu button{
        padding:8px 10px;
        font-size:13px;
    }

    .hero-section{
        grid-template-columns:1fr;
        padding:40px 0;
        text-align:left;
    }

    .hero-text h1{
        font-size:34px;
    }

    .hero-card{
        width:100%;
    }

    .feature-grid,
    .stats-grid,
    .content-grid{
        grid-template-columns:1fr;
    }

    .welcome-card{
        flex-direction:column;
        align-items:flex-start;
    }

    .dashboard-page{
        padding:14px;
    }

    .creation-grid{
        grid-template-columns:1fr;
        padding:14px;
    }

    .success-modal{
        width:92%;
    }

    .navbar{
        height:auto;
        flex-direction:column;
        gap:12px;
        align-items:flex-start;
    }

    .nav-links{
        flex-wrap:wrap;
    }
}

.auth-navbar{
    height:58px;
    background:#1d3557;
    color:#fff;
    padding:0 8%;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.auth-logo{
    color:#fff;
    text-decoration:none;
    font-size:26px;
    font-weight:700;
}

.auth-logo span{
    color:#9bd0ff;
}

.auth-nav-links{
    display:flex;
    gap:8px;
    align-items:center;
}

.auth-nav-links a{
    color:#fff;
    text-decoration:none;
    padding:8px 12px;
    font-size:14px;
    font-weight:500;
}

.auth-nav-links a:hover{
    background:#2c4f7c;
}

.auth-nav-btn{
    background:#fff !important;
    color:#1d3557 !important;
}

.auth-page{
    min-height:calc(100vh - 58px);
    background:#eef3f7;
    display:flex;
    align-items:center;
    justify-content:center;
}

.modern-body{
    margin:0;
    font-family:"Segoe UI", Arial, sans-serif;
    background:#f4f6f8;
    color:#1f2937;
}


   /* TOP NAVBAR */

.top-navbar{
    height:56px;
    background:#1d3557;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 20px;
    border-bottom:1px solid #d7dde5;
    box-shadow:none;
    position:sticky;
    top:0;
    z-index:100;
}

.nav-brand{
    font-size:22px;
    font-weight:700;
    white-space:nowrap;
    letter-spacing:.2px;
}

.nav-brand span{
    color:#9bd0ff;
}

.nav-menu{
    display:flex;
    align-items:center;
    gap:2px;
    flex-wrap:wrap;
}

.nav-menu button{
    border:none;
    background:transparent;
    color:#fff;
    padding:8px 12px;
    font-size:14px;
    font-weight:500;
    cursor:pointer;
    border-radius:2px;
    transition:.2s ease;
}

.nav-menu button:hover{
    background:#2c4f7c;
}


   /* NAV DROPDOWN */


.nav-item{
    position:relative;
}

.nav-dropdown{
    display:none;
    position:absolute;
    top:42px;
    left:0;
    width:185px;
    background:#fff;
    border:1px solid #d8dde6;
    border-radius:2px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
    padding:4px 0;
    z-index:200;
}

.nav-dropdown.show{
    display:block;
}

.nav-dropdown a{
    display:block;
    color:#1f2937;
    text-decoration:none;
    padding:9px 14px;
    font-size:14px;
    font-weight:500;
    border-radius:0;
}

.nav-dropdown a:hover{
    background:#edf3fa;
    color:#1d3557;
}


   /* PROFILE MENU */

.profile-menu{
    position:relative;
    margin-left:6px;
}

.profile-btn{
    width:36px;
    height:36px;
    border:none;
    border-radius:50%;
    background:transparent;
    color:#fff;
    cursor:pointer;
    font-size:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.2s ease;
}

.profile-btn:hover{
    background:#2c4f7c;
}

.profile-dropdown{
    display:none;
    position:absolute;
    right:0;
    top:42px;
    width:165px;
    background:#fff;
    border:1px solid #d8dde6;
    border-radius:2px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
    overflow:hidden;
    z-index:300;
}

.profile-dropdown.show{
    display:block;
}

.profile-dropdown a{
    display:flex;
    align-items:center;
    gap:9px;
    padding:10px 14px;
    color:#1f2937;
    text-decoration:none;
    font-size:14px;
    font-weight:500;
}

.profile-dropdown a:hover{
    background:#edf3fa;
    color:#1d3557;
}

.profile-dropdown i{
    font-size:17px;
}



.dashboard-page{
    padding:22px;
}



.welcome-card{
    background:#fff;
    color:#1f2937;
    border:1px solid #dde3ea;
    border-radius:3px;
    padding:22px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    box-shadow:none;
}

.welcome-card h1{
    margin:0 0 5px;
    font-size:26px;
    color:#1d3557;
    font-weight:700;
}

.welcome-card p{
    margin:0;
    font-size:14px;
    color:#6b7280;
}

.create-btn{
    background:#1d4ed8;
    color:#fff;
    text-decoration:none;
    padding:10px 18px;
    border-radius:3px;
    font-size:14px;
    font-weight:600;
    white-space:nowrap;
    border:1px solid #1e40af;
    transition:.2s ease;
}

.create-btn:hover{
    background:#1e40af;
}


   /* STATS CARDS */


.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
    margin-top:18px;
}

.stat-card{
    background:#fff;
    border:1px solid #dde3ea;
    border-radius:3px;
    padding:18px;
    box-shadow:none;
}

.stat-card span{
    color:#6b7280;
    font-size:13px;
    font-weight:500;
}

.stat-card h2{
    color:#1d3557;
    margin:8px 0 0;
    font-size:24px;
    font-weight:700;
}



.content-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    margin-top:18px;
}

.gateway-card{
    background:#fff;
    border:1px solid #dde3ea;
    border-radius:3px;
    padding:18px;
    box-shadow:none;
}

.gateway-card h3{
    margin:0 0 14px;
    color:#1d3557;
    font-size:18px;
    font-weight:700;
}

.gateway-card a,
.company-row,
.empty-row{
    display:block;
    padding:10px 12px;
    border-radius:2px;
    background:#f7f9fb;
    margin-bottom:8px;
    text-decoration:none;
    color:#1f2937;
    font-size:14px;
    font-weight:500;
    border:1px solid #e1e6ee;
}

.gateway-card a:hover{
    background:#edf3fa;
    color:#1d3557;
}

.empty-row{
    color:#6b7280;
}



@media(max-width:900px){

    .top-navbar{
        height:auto;
        flex-direction:column;
        align-items:flex-start;
        padding:12px 16px;
        gap:10px;
    }

    .nav-menu{
        width:100%;
        gap:4px;
    }

    .nav-menu button{
        padding:8px 10px;
        font-size:13px;
    }

    .profile-menu{
        margin-left:0;
    }

    .welcome-card{
        flex-direction:column;
        align-items:flex-start;
    }

    .stats-grid,
    .content-grid{
        grid-template-columns:1fr;
    }

    .dashboard-page{
        padding:14px;
    }

    .nav-dropdown{
        top:38px;
        left:0;
    }

    .profile-dropdown{
        top:40px;
        right:auto;
        left:0;
    }
}





/* company */

/* COMPANY CREATE*/

.tally-create-page{
    min-height:100vh;
    background:#f4f6f8;
    font-family:"Segoe UI", Arial, sans-serif;
    color:#1f2937;
}

.tally-create-top{
    height:56px;
    background:#1d3557;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 20px;
}

.logo-title{
    font-size:22px;
    font-weight:700;
}

.logo-title span{
    color:#9bd0ff;
}

.top-menu{
    display:flex;
    gap:18px;
    font-size:14px;
    font-weight:500;
}

.company-title-bar{
    background:#fff;
    border-bottom:1px solid #dde3ea;
    color:#1d3557;
    padding:14px 22px;
    font-size:20px;
    font-weight:700;
}
.company-create-body{
    position: relative;
    min-height: calc(100vh - 130px);
    padding: 22px 22px 100px;  
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 16px;
    overflow-y: auto;
    box-sizing: border-box;
}
.company-left,
.company-right{
    background:#fff;
    border:1px solid #dde3ea;
    padding:18px;
}

.form-row{
    display:grid;
    grid-template-columns:210px 1fr;
    align-items:center;
    margin-bottom:12px;
    font-size:14px;
}

.form-row label{
    color:#374151;
    font-weight:600;
}

.form-row input,
.form-row textarea,
.form-row select{
    width:100%;
    border:1px solid #cfd6df;
    background:#fff;
    padding:9px 10px;
    font-size:14px;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus{
    outline:none;
    border-color:#1d3557;
    background:#f9fbfd;
}

.form-row textarea{
    height:80px;
    resize:vertical;
}

.company-left hr{
    border:none;
    border-top:1px solid #e5e9ef;
    margin:16px 0;
}

.side-panel{
    display:none;
    position:absolute;
    right:22px;
    top:22px;
    width:330px;
    max-height:calc(100vh - 150px);
    overflow:auto;
    background:#fff;
    border:1px solid #d8dde6;
    z-index:50;
}

.side-panel.show{
    display:block;
}

.side-panel-head{
    background:#1d3557;
    color:#fff;
    padding:10px 12px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.side-panel-head button{
    background:transparent;
    border:none;
    color:#fff;
    font-size:18px;
    cursor:pointer;
}

.new-btn{
    width:100%;
    border:none;
    background:#edf3fa;
    color:#1d3557;
    padding:10px;
    font-weight:700;
    cursor:pointer;
    border-bottom:1px solid #d8dde6;
}

.option-item{
    padding:9px 12px;
    font-size:14px;
    cursor:pointer;
    border-bottom:1px solid #f0f2f5;
}

.option-item:hover{
    background:#edf3fa;
    color:#1d3557;
}

.bottom-action-bar{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    background: #fff;
    border-top: 1px solid #dde3ea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 22px;
    z-index: 999;
    box-sizing: border-box;
}

.bottom-action-bar a,
.bottom-action-bar button{
    background: #1d3557;
    color: #fff;
    border: none;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.bottom-action-bar a:hover,
.bottom-action-bar button:hover{
    background: #2c4f7c;
}



.small-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.25);
    align-items:center;
    justify-content:center;
    z-index:100;
}

.small-modal-box{
    width:340px;
    background:#fff;
    padding:20px;
    border:1px solid #d8dde6;
}

.small-modal-box h3{
    color:#1d3557;
    margin-bottom:14px;
}

.small-modal-box input{
    width:100%;
    padding:9px 10px;
    border:1px solid #cfd6df;
    margin-bottom:10px;
}

.small-modal-box button{
    background:#1d3557;
    color:#fff;
    border:none;
    padding:8px 14px;
    margin-right:6px;
    cursor:pointer;
}




.mobile-nav-toggle{
    display:none;
}

.mobile-profile-text{
    display:none;
}



@media(max-width:700px){

    html,
    body{
        width:100% !important;
        max-width:100% !important;
        overflow-x:hidden !important;
    }

    body{
        padding-top:56px !important;
    }


    /* TOP BAR */

    .top-navbar{
        position:fixed !important;

        top:0 !important;
        left:0 !important;
        right:0 !important;

        width:100% !important;
        height:56px !important;
        min-height:56px !important;

        margin:0 !important;
        padding:0 12px !important;

        display:flex !important;
        align-items:center !important;
        justify-content:space-between !important;

        background:#17375e !important;

        box-sizing:border-box !important;

        z-index:2147483000 !important;
    }


   
    .nav-brand{
        flex:none !important;

        margin:0 !important;
        padding:0 !important;

        color:#ffffff !important;

        font-family:Tahoma, Arial, sans-serif !important;
        font-size:18px !important;
        font-weight:700 !important;
        line-height:22px !important;

        white-space:nowrap !important;
    }

    .nav-brand span{
        color:#9cc7e8 !important;
    }



    .mobile-nav-toggle{
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;

        width:34px !important;
        min-width:34px !important;
        height:34px !important;

        margin:0 !important;
        padding:0 !important;

        background:transparent !important;
        color:#ffffff !important;

        border:1px solid rgba(255,255,255,.35) !important;
        border-radius:2px !important;

        font-size:22px !important;
        line-height:1 !important;

        cursor:pointer !important;
    }

    .mobile-nav-toggle.active{
        background:rgba(255,255,255,.15) !important;
    }


    /* POPUP MENU */

    .nav-menu{
        display:none !important;

        position:fixed !important;

        top:62px !important;
        right:8px !important;
        left:auto !important;

        width:220px !important;
        max-width:calc(100vw - 16px) !important;

        height:auto !important;
        max-height:calc(100vh - 72px) !important;

        margin:0 !important;
        padding:6px !important;

        background:#ffffff !important;
        border:1px solid #b8c0ca !important;

        box-shadow:0 6px 20px rgba(0,0,0,.28) !important;

        overflow-y:auto !important;
        overflow-x:hidden !important;

        box-sizing:border-box !important;

        z-index:2147483600 !important;
    }

    .nav-menu.mobile-nav-open{
        display:block !important;
    }


    /* MENU ITEMS */

    .nav-menu > .nav-main-button,
    .nav-menu .nav-item > .nav-main-button,
    .nav-menu .profile-menu > .profile-btn{
        width:100% !important;
        min-width:0 !important;
        height:36px !important;

        margin:0 !important;
        padding:7px 9px !important;

        display:flex !important;
        align-items:center !important;
        justify-content:flex-start !important;
        gap:6px !important;

        background:#ffffff !important;
        color:#1f2937 !important;

        border:none !important;
        border-bottom:1px solid #edf0f3 !important;
        border-radius:0 !important;

        font-family:Tahoma, Arial, sans-serif !important;
        font-size:11px !important;
        font-weight:400 !important;
        line-height:15px !important;

        text-align:left !important;
        white-space:normal !important;

        cursor:pointer !important;

        box-sizing:border-box !important;
    }

    .nav-menu > .nav-main-button:hover,
    .nav-menu .nav-item > .nav-main-button:hover,
    .nav-menu .profile-menu > .profile-btn:hover{
        background:#edf4fb !important;
        color:#17375e !important;
    }


    /* COMPANY ROW */

    .nav-item{
        position:relative !important;

        width:100% !important;

        margin:0 !important;
        padding:0 !important;
    }

    .nav-item .nav-main-button{
        justify-content:space-between !important;
    }

    .nav-arrow{
        margin-left:auto !important;
        font-size:9px !important;
    }


    /* COMPANY SUBMENU */

    .nav-dropdown{
        display:none !important;

        position:static !important;

        top:auto !important;
        left:auto !important;
        right:auto !important;

        width:100% !important;
        min-width:0 !important;
        max-width:none !important;

        margin:0 !important;
        padding:3px 0 3px 13px !important;

        background:#f4f7fa !important;

        border:none !important;
        box-shadow:none !important;

        box-sizing:border-box !important;
    }

    .nav-dropdown.show{
        display:block !important;
    }

    .nav-dropdown a{
        width:100% !important;

        display:block !important;

        margin:0 !important;
        padding:7px 8px !important;

        background:transparent !important;
        color:#333333 !important;

        border-bottom:1px solid #e1e6eb !important;

        font-family:Tahoma, Arial, sans-serif !important;
        font-size:10px !important;
        line-height:14px !important;

        text-decoration:none !important;

        box-sizing:border-box !important;
    }

    .nav-dropdown a:hover{
        background:#dfeafb !important;
        color:#17375e !important;
    }


    /* PROFILE */

    .profile-menu{
        position:relative !important;

        width:100% !important;

        margin:0 !important;
        padding:0 !important;
    }

    .profile-btn i{
        font-size:15px !important;
    }

    .mobile-profile-text{
        display:inline !important;

        margin:0 !important;
        padding:0 !important;

        font-size:11px !important;
    }


    /* PROFILE SUBMENU */

    .profile-dropdown{
        display:none !important;

        position:static !important;

        top:auto !important;
        left:auto !important;
        right:auto !important;

        width:100% !important;
        min-width:0 !important;

        margin:0 !important;
        padding:3px 0 3px 13px !important;

        background:#f4f7fa !important;

        border:none !important;
        box-shadow:none !important;

        box-sizing:border-box !important;
    }

    .profile-dropdown.show{
        display:block !important;
    }

    .profile-dropdown a{
        width:100% !important;

        display:flex !important;
        align-items:center !important;
        gap:6px !important;

        margin:0 !important;
        padding:7px 8px !important;

        color:#333333 !important;

        font-family:Tahoma, Arial, sans-serif !important;
        font-size:10px !important;

        text-decoration:none !important;

        box-sizing:border-box !important;
    }


    /* MAIN CONTENT */

    .main-page-content{
        width:100% !important;
        max-width:100% !important;

        margin:0 !important;
        padding:0 !important;

        overflow-x:hidden !important;

        box-sizing:border-box !important;
    }
}



@media (max-width:700px){

    /* PAGE */

    .main-page-content,
    .tally-create-page{
        width:100% !important;
        max-width:100% !important;

        margin:0 !important;
        padding:0 !important;

        overflow-x:hidden !important;

        box-sizing:border-box !important;
    }


    /* COMPANY TITLE */

    .company-title-bar{
        width:100% !important;

        margin:0 !important;
        padding:16px 16px !important;

        background:#ffffff !important;
        border-bottom:1px solid #dde3ea !important;

        color:#1d3557 !important;

        font-size:18px !important;
        line-height:22px !important;

        box-sizing:border-box !important;
    }


    /* MAIN FORM BODY */

    .company-create-body{
        width:100% !important;
        max-width:100% !important;

        min-height:auto !important;

        margin:0 !important;
        padding:12px 10px 78px !important;

        display:block !important;

        overflow-x:hidden !important;

        box-sizing:border-box !important;
    }


    /* LEFT AND RIGHT SECTIONS */

    .company-left,
    .company-right{
        width:100% !important;
        max-width:100% !important;

        margin:0 0 12px !important;
        padding:14px 12px !important;

        background:#ffffff !important;
        border:1px solid #dde3ea !important;

        overflow:hidden !important;

        box-sizing:border-box !important;
    }


    /* FORM ROW */

    .form-row{
        width:100% !important;
        max-width:100% !important;

        margin:0 0 11px !important;
        padding:0 !important;

        display:grid !important;
        grid-template-columns:1fr !important;

        align-items:start !important;
        gap:4px !important;

        font-size:11px !important;

        box-sizing:border-box !important;
    }

    .form-row label{
        width:100% !important;

        margin:0 !important;
        padding:0 !important;

        color:#374151 !important;

        font-family:Tahoma, Arial, sans-serif !important;
        font-size:11px !important;
        font-weight:600 !important;
        line-height:14px !important;

        white-space:normal !important;
    }


    /* INPUTS */

    .form-row input,
    .form-row select,
    .form-row textarea{
        width:100% !important;
        min-width:0 !important;
        max-width:100% !important;

        margin:0 !important;
        padding:6px 8px !important;

        border:1px solid #cfd6df !important;
        background:#ffffff !important;

        color:#111827 !important;

        font-family:Tahoma, Arial, sans-serif !important;
        font-size:11px !important;

        box-sizing:border-box !important;
    }

    .form-row input,
    .form-row select{
        height:32px !important;
    }

    .form-row textarea{
        height:64px !important;
        min-height:64px !important;

        resize:vertical !important;
    }

    .form-row input:focus,
    .form-row select:focus,
    .form-row textarea:focus{
        outline:none !important;

        border-color:#1d3557 !important;
        background:#fff9c4 !important;
    }


    /* DIVIDER */

    .company-left hr{
        width:100% !important;

        margin:14px 0 !important;

        border:none !important;
        border-top:1px solid #e5e9ef !important;
    }


    /* STATE / COUNTRY SIDE PANEL */

    .side-panel{
        position:fixed !important;

        top:62px !important;
        left:8px !important;
        right:8px !important;
        bottom:auto !important;

        width:auto !important;
        max-width:none !important;

        max-height:calc(100vh - 74px) !important;

        margin:0 !important;

        overflow-y:auto !important;
        overflow-x:hidden !important;

        background:#ffffff !important;
        border:1px solid #9ca3af !important;

        box-sizing:border-box !important;

        z-index:2147483500 !important;
    }

    .side-panel-head{
        min-height:38px !important;

        padding:7px 10px !important;

        font-family:Tahoma, Arial, sans-serif !important;
        font-size:11px !important;
    }

    .option-item,
    .new-btn{
        padding:7px 9px !important;

        font-family:Tahoma, Arial, sans-serif !important;
        font-size:10px !important;
    }


    /* BOTTOM ACTION BAR */

    .bottom-action-bar{
        position:fixed !important;

        left:0 !important;
        right:0 !important;
        bottom:0 !important;

        width:100% !important;
        height:64px !important;

        margin:0 !important;
        padding:10px 14px !important;

        display:flex !important;
        align-items:center !important;
        justify-content:space-between !important;
        gap:10px !important;

        background:#ffffff !important;
        border-top:1px solid #dde3ea !important;

        box-sizing:border-box !important;

        z-index:2147482000 !important;
    }

    .bottom-action-bar a,
    .bottom-action-bar button{
        min-width:74px !important;
        height:40px !important;

        margin:0 !important;
        padding:7px 14px !important;

        display:flex !important;
        align-items:center !important;
        justify-content:center !important;

        background:#1d3557 !important;
        color:#ffffff !important;

        border:none !important;

        font-family:Tahoma, Arial, sans-serif !important;
        font-size:11px !important;
        font-weight:600 !important;
        line-height:14px !important;

        text-decoration:none !important;

        box-sizing:border-box !important;
    }
}



@media(max-width:700px){

    .top-navbar{
        display:grid !important;
        grid-template-columns:1fr auto !important;
        align-items:center !important;

        width:100% !important;
        height:56px !important;

        padding:0 12px !important;

        box-sizing:border-box !important;
    }

    .nav-brand{
        grid-column:1 !important;

        justify-self:start !important;
        align-self:center !important;

        margin:0 !important;
        padding:0 !important;

        text-align:left !important;
    }

    .mobile-nav-toggle{
        grid-column:2 !important;

        justify-self:end !important;
        align-self:center !important;

        position:static !important;

        margin:0 !important;
        padding:0 !important;

        transform:none !important;
    }

    .nav-menu{
        grid-column:auto !important;
    }
}




.features,
.stats-section,
.modules,
footer{
    width:100%;
    text-align:center;
}

.features h2,
.modules h2{
    text-align:center;
    margin-bottom:35px;
}

.feature-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
    width:90%;
    max-width:1300px;
    margin:0 auto;
}

.feature-card{
    text-align:left;
}

.stats-section{
     background:#2f6b9c;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:40px;
    flex-wrap:wrap;
    padding:60px 20px;
}

.stat-box{
    width:220px;
    text-align:center;
}

.modules{
    padding:70px 20px;
     background:#2f6b9c;
}

footer{
    padding:30px 20px;
}



@media(max-width:768px){

    .feature-grid{
        grid-template-columns:1fr;
        width:94%;
    }

    .feature-card{
        text-align:center;
    }

    .stats-section{
        display:grid;
        grid-template-columns:repeat(2,1fr);
        gap:20px;
        width:94%;
        margin:auto;
    }

    .stat-box{
        width:100%;
    }

    .modules{
        width:100%;
    }

    footer{
        text-align:center;
    }

}

.auth-navbar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:65px;
    background:#1f3b63;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 20px;
    z-index:9999;
    box-sizing:border-box;
}

.modern-body{
    margin:0;
    padding:0;
}

.menu-toggle{
    display:none;
    background:none;
    border:none;
    color:#fff;
    font-size:32px;
    cursor:pointer;
}

@media(max-width:768px){

    .menu-toggle{
        display:block;
    }

    .auth-nav-links{
        display:none;
        position:absolute;
        top:65px;
        right:0;
        width:220px;
        background:#1f3b63;
        flex-direction:column;
        padding:10px 0;
        box-shadow:0 4px 10px rgba(0,0,0,.2);
    }

    .auth-nav-links.show{
        display:flex;
    }

    .auth-nav-links a{
        width:100%;
        padding:12px 20px;
        color:#fff;
        text-decoration:none;
        box-sizing:border-box;
    }

    .auth-nav-links a:hover{
        background:#2f5d94;
    }
}



.field-error{
    display:block;
    margin-top:4px;
    color:#d60000;
    font-size:12px;
    font-weight:600;
}

.input-error{
    border:1px solid #d60000 !important;
}

.input-success{
    border:1px solid green !important;
}