﻿/* Style for Reports and other Pages */
body {
    font-family: var(--font-primary);
    font-weight: 500;    
}

/* Details container: Make sure it's centered in the middle of the page */
.pagewrapper {
    display: flex;
    flex-direction: column; 
    justify-content: flex-start;
    align-items: center; 
    //height: 100vh; 
    width: 100%; 
    box-sizing: border-box;
    background-color: #fff;
    margin-top: 0px;

}

.pagecontainer {
    display: flex;
    justify-content: space-between; 
    flex-direction: column;
    padding: 0px;
    margin-top: 0px;
    padding-top: 0px;
    width: 100%;
    //max-width: 1250px;
    background-color: #fff;    
    align-items: center; 
}

.pagecontainer hr {
    padding: 1px;
    width: 100%;
    padding-bottom: 0px;
    margin-bottom: 5px;
    margin-top: 5px

}
.expense-form{
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    gap: 5px;    
    align-items: end;
    padding-bottom: 10px;
}

    .expense-form input {
        width: 150px;
        //color: var(--primary);
    }

    .expense-form input {
        //border: 1px solid var(--primary);
    }

        .expense-form input:focus {
            //box-shadow: none;            
        }




.mtitle {
    display: flex;
    background-color: #fff;
    align-items: center; 
    gap: 30px;
    width: 100%;
    color: #5f5f5f;
    font-size: 14px;
    padding-left: 20px;
    padding-top: 15px;
    padding-bottom: 10px;
    justify-items: center;
}

    .mtitle .maintitle {
        margin: 0px; 
        font-size: 19px;
    }

    .mtitle .btn {
        background: ButtonShadow;
        color: #5f5f5f;
        border-color: ButtonShadow;
        align-items: center;
        width: 160px;
        height: 25px;
        font-size: 13px;
        padding: 0px; 
        text-align: left; 
        line-height: 25px; 
        //border-radius: 8px; 
        box-shadow: 0 0 4px var(--primary);
        outline: none;
    }

        .mtitle .btn:hover {
            background-color: transparent;
            color: var(--primary);
            border-color: var(--primary);
            box-shadow: 0 0 4px var(--primary);
            outline: none;
        }



    .mtitle .DraftInvoice {
        background: ButtonShadow;
        color: #5f5f5f;
        border-color: ButtonShadow;
        align-items: center;
        width: 190px !important;
        height: 25px;
        font-size: 12px;
        padding: 0px;
        text-align: left;
        line-height: 25px;
        //border-radius: 8px;
        box-shadow: 0 0 4px var(--primary);
        outline: none;
    }





.details {
    width: 100%;
    margin-top: 0px; 
    margin-bottom: 30px;
    padding: 0px;
    background-color: #fff;
    border-radius: 0px;
    justify-items: center;
    box-sizing: border-box;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
}


.card-container {
    background: #fff;
    padding: 10px;
       
}

    .card-container .form-control {
        background: #fff;
        padding: 4px;
        //width: 150px;
        height: 30px;
        
    }

    .card-container .select2 {
        padding: 4px;
        //width: 140px;
        height: 30px;
    }

    .card-container .btn {
        height: 30px;
        width: 170px;
        text-align: center;
        padding: 0px;        
    }





.filter-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

    .filter-form-row > div {
        display: flex;
        flex-direction: column;
    }

    .filter-form-row input[type="date"],
    .filter-form-row select,
    .filter-form-row button,
    .filter-form-row a {
        min-width: 140px;
    }











.tablecontainer {
    width: 100%;
    max-width: 1200px;
    padding: 10px;
    box-sizing: border-box;
    overflow-x: auto; /* Enables horizontal scrolling if needed */
}


    .tablecontainer table {
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed; /* Prevents cells from stretching beyond container */
    }

    .tablecontainer h3 {
        color: red; 
        font-size: 12px;
    }


.table-container {
    display: block;
    //overflow-x: auto;
    
}




.table-header, .table-body {
    display: block;
    width: 100%;

}

.table-header {
    font-weight: bold;
    display: flex;
    width: 100%;    
}

.header-item {
    flex: 1;
    padding: 5px;
    //width: 100%;
    font-size: 11px;
    color: white;
    background-color: #5f5f5f;
    border-left: 1px solid var(--primary);
    //border-right: 1px solid var(--primary);
    border-bottom: 1px solid var(--primary);
    border-top: 0px solid;
}
    .header-item a {
        color: white;
        text-decoration: none; 
    }

.table-row {
    display: flex;
    width: 100%;
    padding: 0px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    //flex-wrap: wrap;
    
}

.table-cell {
    flex: 1;
    //width: 100%;
    text-overflow: ellipsis;
    //white-space: nowrap;
    overflow: hidden;
    padding: 5px;
    border-bottom: 1px solid var(--primary);
    border-right: 1px solid var(--primary);
    //border-right: 1px solid var(--primary);
    font-size: 11px;
}

.header-item .table-cell {
    //min-width: 0;
    //flex-wrap: nowrap;
}

.table-cell:first-child {
    border-left: 1px solid var(--primary);
}



.clickable-row {
    cursor: pointer;
    display: flex;
    width: 100%; /* important */
}

    .clickable-row:hover > * {
        background-color: #faf0d1;
        //background-color: #f5fafd;
    }










/* Formatting specific columns for all pages and reports */

.id {
    flex: 0 0 40px;
    text-align: left;
}

.invoiceid {
    flex: 0 1 150px;
    text-align: left;
}

.xsname {
    flex: 0 1 180px;
    text-align: left;
}

.sname {
    flex: 0 1 250px;
    text-align: left;
}

.mname {
    flex: 0 1 390px;
    text-align: left;
}

.lname {
    flex: 0 1 350px;
    text-align: left;
}

.switch-container {
    flex: 0 1 140px;
    text-align: center;
}

.contactperson {
    flex: 0 1 180px;
    text-align: left;
}

.phonenu {
    flex: 0 1 100px;
    text-align: center;
}

.email {
    flex: 0 1 210px;
    text-align: left;    
}

.balance {
    flex: 0 1 120px;
    text-align: left;
    font-size: 12px;
}

.credit {    
    font-size: 14px;
}


.xsaction {
    flex: 0 1 120px;
    text-align: center;
    
}

.saction {
    flex: 0 1 180px;
    text-align: center;    
}

.maction {
    flex: 0 1 250px;
    text-align: center;    
}

.action {
    flex: 0 1 350px;
    text-align: center;    
}

.date {
    flex: 0 1 100px;
    text-align: center;
}

.type {
    flex: 0 1 100px;
    text-align: center;    
}


.invtype {
    flex: 0 1 100px;
    text-align: center !important;
}

.vat-type {
    flex: 0 1 100px;
    text-align: center;
}


.price {
    flex: 0 1 120px;
    text-align: right;
}

.qty {
    flex: 0 1 50px;
    text-align: center;
}

.item {
    flex: 1 0 100px;
    text-align: left;
}

.desc {
    flex: 0 1 210px;
    text-align: left;
}

.Doc {
    flex: 1 0 80px; 
    text-align: left;
}

.emDoc {
    flex: 1 0 30px; 
    text-align: left;
}

.emmname {
    flex: 0 1 450px;
    text-align: left;
}


.catid {
    flex: 0 1 40px;
    text-align: left;
}






/* Role and Category Page */
.role {
    display: block;
    //position: relative;
    width: 40%;
    justify-content: center;
    
}

.role-gap {
    gap: 150px;
}

    .mtitle form {
        background: #bebebe;
        border-radius: 10px;
        color: black;
    }

.role-justify form {
    margin-left: 15px;
}

.mtitle .btn-submit {
    border-radius: 5px;
    background-color: var(--primary); 
    color: #fff;
    width: 90px;
    border: 0px solid;
}



    .mtitle .btn-submit:hover {
        background-color: #5f5f5f; 
        color: #fff;
    }


.mtitle form input {
    width: 250px;
    height: 30px;
    font-size: 12px;
    background: #fff;
}









/* Features Form */

.feature-justify form {
    margin-left: -35px;
}

    .feature-justify form input {
        width: 190px;
        border: none;
        border-radius: 10px;
        box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5), 0 5px 4px rgba(0, 0, 0, 0.4);
    }

.mtitle.feature .btn-submit {
    border-radius: 5px;
    background-color: var(--primary);
    color: #fff;
    width: 90px;
    border: 0px solid;
}



    .mtitle.feature .btn-submit:hover {
        background-color: #5f5f5f;
        color: #fff;
    }


.mtitle.feature form input {
    width: 250px;
    height: 30px;
    font-size: 12px;
    background: #fff;
}

.feature-table {
    font-size: 12px;

    
}
.card {
    //width: 1100px;
    //margin-bottom: 30px;
    //box-shadow: 0 0 25px 5px var(--primary);
    //border-radius: 15px;
    //padding: 5px;
}

.card .card-header {
    //padding: 5px;
    //border-radius: 10px;
}

    .table-responsive {
        //padding: 5px;
        //border-radius: 10px;
    }







/* Permissions Page */
.permission-gap {
    gap: 75px;
}



.highlight-superadmin {
    background-color: #ff784e;
    
}

    .highlight-superadmin:hover {
        background-color: #ff9e80; 
    }

.highlight-admin {
    background-color: #66b3ff; 
}

    .highlight-admin:hover {
         background-color: #b3e0ff; 
    }











.table-body {
    position: relative; 
    overflow: visible; 
}


.nav-bar-action .dropdown-menu {
    position: absolute; 
    z-index: 9999; 
    display: none; 
    left: 170px; 
    top: 20px; 
    min-width: 120px; 
    width: auto; 
    //max-width: 50%; 
    white-space: normal; 
    //word-wrap: break-word; 
    //box-sizing: border-box; 
}


.navbar-nav .dropdown-menu li button {
    font-size: 12px; 
    padding: 0px 10px; 
    line-height: 0.8; 
    white-space: normal; 
    //word-wrap: break-word; 
    //overflow-wrap: break-word; 
    text-align: left; 
    width: auto; 
    margin-top: -10px;
    margin-bottom: 0px;

    
}



.navbar-nav .dropdown-menu li {
    margin-bottom: 2px; 
}


.dropdown-menu.show {
    display: block; 
}


.navbar-nav .dropdown-menu li:hover {
    background-color: #f0f0f0; 
    cursor: pointer; 
}

    
    .navbar-nav .dropdown-menu li:hover button {
        //background-color: #dcdcdc; 
        //color: #333; 
    }







/* Modification */

.edit-container {
    position: relative;
    display: inline-block;
    white-space: nowrap;
    gap: 6px; /* Adds spacing between dot and text */
}


.edit-dot {
    position: absolute;
    top: 15px;
    right: 5px;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #b30000); /* light center, dark edge */
    border-radius: 50%;
    box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.5), 0 2px 4px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
}

.edit-dot:hover {
    transform: scale(1.2);
}

    .edit-dot:hover::after {
        content: "Modified";
        position: absolute;
        background-color: #333;
        color: white;
        padding: 5px 8px;
        border-radius: 4px;
        font-size: 11px;
        top: 50%;
        left: 120%;
        margin-left: 8px;
        white-space: nowrap;
        z-index: 100;
        transform: translateY(-50%);
    }





   /* Email */
.sent-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.sent-dot {
    position: absolute;
    top: 2px;
    right: 5px;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 30% 30%, #4aff4a, #008000); /* light center, darker edge */
    border-radius: 50%;
    box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.6), /* inner light/glow */
    0 2px 4px rgba(0, 0, 0, 0.4); /* outer shadow for depth */
    transition: transform 0.2s ease;
}

    .sent-dot:hover {
        transform: scale(1.2);
    }

        .sent-dot:hover::after {
            content: attr(data-sent);
            position: absolute;
            background-color: #333;
            color: white;
            padding: 5px 8px;
            border-radius: 4px;
            font-size: 11px;
            top: 50%;
            left: 120%;
            margin-left: 8px;
            white-space: nowrap;
            z-index: 100;
            transform: translateY(-50%);
        }





/* Stand By */
.lock-container {
    position: relative;
    display: inline-block;
    white-space: nowrap;
    gap: 6px; /* Adds spacing between dot and text */
}


.lock-dot {
    position: absolute;
    top: 28px;
    right: 5px;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 30% 30%, #6faeff, #003d99); /* light center, dark edge */
    border-radius: 50%;
    box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.5), 0 2px 4px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
}

    .lock-dot:hover {
        transform: scale(1.2);
    }


    .lock-dot:hover::after {
        content: "Stand By";
        position: absolute;
        background-color: #333;
        color: white;
        padding: 5px 8px;
        border-radius: 4px;
        font-size: 11px;
        top: 50%;
        left: 120%;
        margin-left: 8px;
        white-space: nowrap;
        z-index: 100;
        transform: translateY(-50%);
    }












/* Temporary */
.edit-dotem {
    position: absolute;
    top: 4px;
    right: 5px;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 30% 30%, var(--primary)); /* Fallback darker edge */
    border-radius: 50%;
    border: 0px solid var(--primary);
    display: inline-block;
    box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

    .edit-dotem:hover {
        transform: scale(1.2);
    }


    .edit-dotem:hover::after {
        content: "Temporary Employee";
        position: absolute;
        background-color: #333;
        color: white;
        padding: 5px 8px;
        border-radius: 4px;
        font-size: 11px;
        top: 50%;
        left: 120%;
        margin-left: 8px;
        white-space: nowrap;
        z-index: 100;
        transform: translateY(-50%);
    }






/* License */
.edit-container1 {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px; 
    white-space: nowrap;
}


.edit-dot1 {
    position: absolute;
    top: 25px;
    right: 75px;
    width: 5px;
    height: 5px;
    gap: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    border: 1px solid var(--primary);
    display: inline-block;
    font-size: 11px;
    color: cornflowerblue;
}


.edit-dot1:hover::after {
    content: attr(data-license);
    position: absolute;
    background-color: #333;
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 11px;
    top: 50%;
    left: 120%;
    margin-left: 8px;
    white-space: nowrap;
    z-index: 100;
    transform: translateY(-50%);
}








.edit-container2 {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}


.edit-dot2 {
    position: absolute;
    top: 13px;
    right: 75px;
    width: 0px;
    height: 0px;
    gap: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    border: 1px solid var(--primary);
    display: inline-block;
    font-size: 11px;
    color: cornflowerblue;
}


    .edit-dot2:hover::after {
        content: attr(data-license);
        position: absolute;
        background-color: #333;
        color: white;
        padding: 5px 8px;
        border-radius: 4px;
        font-size: 11px;
        top: 50%;
        left: 120%;
        margin-left: 8px;
        white-space: nowrap;
        z-index: 100;
        transform: translateY(-50%);
    }








/* Notification */

.notify-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}


.notify-dot {
    position: absolute;
    top: 2px;
    right: 5px;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 30% 30%, #4aff4a, #008000); /* light center, darker edge */
    border-radius: 50%;
    box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.6), /* inner light/glow */
    0 2px 4px rgba(0, 0, 0, 0.4); /* outer shadow for depth */
    transition: transform 0.2s ease;
}

    .notify-dot:hover {
        transform: scale(1.2);
    }

    .notify-dot:hover::after {
        content: "Email Notification On";
        position: absolute;
        background-color: #333;
        color: white;
        padding: 5px 8px;
        border-radius: 4px;
        font-size: 11px;
        top: 50%;
        left: 120%;
        margin-left: 8px;
        white-space: nowrap;
        z-index: 100;
        transform: translateY(-50%);
    }








/* Lock */

.lock-container {
    position: relative;
    display: inline-block;
    overflow: visible !important;
}

.lock-tooltip {
    position: relaative;
    top: 5px;
    right: 0px;
    display: inline-block;
    color: #888;
    font-size: 14px;
}

    .lock-tooltip:hover::after {
        content: "Modify disabled";
        position: absolute;
        top: -60%;
        left: 50%;
        transform: translateX(-50%);
        background-color: #333;
        color: white;
        padding: 6px 10px;
        border-radius: 4px;
        font-size: 12px;
        white-space: nowrap;
        z-index: 100;
        transition: opacity 0.2s ease-in-out;
    }

    .lock-tooltip:hover::after {
        opacity: 1;
    }




.cancelled-notice {
    font-weight: bold;
    padding: 5px 10px;
    background: linear-gradient(145deg, #ffe5e5, #ffcccc);
    border-left: 6px solid red;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1), inset 0 0 8px rgba(255, 0, 0, 0.2);
    border-radius: 4px;
    color: #a80000;
    user-select: none;
    max-width: fit-content;    
}







.expiring-soon {
    background-color: #fff3cd; /* soft yellow */
    color: #856404;
    font-weight: 600;
}

.expired {
    background-color: #f8d7da; /* light red */
    color: #721c24;
    font-weight: 600;
}

.normal-date {
    background-color: transparent;
    color: inherit;
}




.cancelled-row {
    background-color: #f8d7da !important; /* light red background */
    color: #6c757d; /* muted text */
    text-decoration: line-through; /* optional */
    opacity: 0.8;
}

    .cancelled-row:hover {
        background-color: #f5c6cb !important;
    }


.draft-row {
    background-color: lightskyblue !important; /* light red background */
    color: #000; /* muted text */
    //text-decoration: line-through; /* optional */
    opacity: 0.8;
}

    .draft-row:hover {
        background-color: steelblue !important;
    }








/* General alert styling */
.alert.alert-danger {
    padding: 5px 50px;
    border-radius: 8px;    
    margin: 0px;
    margin-bottom: 5px;
    font-size: 13px;
    position: relative;
    display: flex;
    //align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    height: 30px;
}

/* Danger alert specifically */
.alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

    /* Optional: add icon to the alert */
    .alert-danger::before {
        content: "\f071"; /* Font Awesome exclamation-triangle */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        display: inline-block;
        margin-right: 8px;
    }

/* Close button style (optional) */
.alert .close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 16px;
    color: inherit;
    cursor: pointer;
}

/* Smooth fade in/out animation */
.alert.alert-danger {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

