/* Main Layout Structure */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Navigation Bar */
.top-nav {
    background-color: #2c3e50;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
}

    .logo img {
        height: auto;
        max-height: 40px;
        width: auto;
        max-width: 100%;
        margin-right: 10px;
    }

    .logo h1 {
        margin: 0;
        font-size: 20px;
        color: #fff;
    }

.user-menu {
    position: relative;
}

    .user-menu button {
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        padding: 5px 10px;
    }

/* Side Navigation */
.side-nav {
    width: 255px;
    background-color: #34495e;
    color: white;
    height: calc(100vh - 60px);
    position: fixed;
    top: 60px;
    left: 0;
    overflow-y: auto;
    padding-top: 20px;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.nav-section {
    margin-bottom: 20px;
}

    .nav-section h3 {
        padding: 0 20px;
        margin: 0 0 10px 0;
        font-size: 14px;
        text-transform: uppercase;
        color: #7f8c8d;
    }

.nav-link {
    display: block;
    padding: 10px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: background 0.3s;
}

    .nav-link:hover, .nav-link.active {
        background-color: #2c3e50;
        color: #fff;
    }

    .nav-link i {
        margin-right: 10px;
        width: 20px;
        text-align: center;
    }

/* Dropdown button */
.dropdown-btn {
    width: 100%;
    text-align: left;
    padding: 10px 20px;
    background: none;
    border: none;
    color: #ecf0f1;
    cursor: pointer;
    outline: none;
    font-size: 1em;
    transition: background 0.3s;
    display: flex;
    align-items: center;
}

    .dropdown-btn:hover {
        background-color: #2c3e50;
        color: #fff;
    }

    .dropdown-btn i {
        margin-right: 10px;
        width: 20px;
        text-align: center;
    }

/* Dropdown container (hidden by default) */
.dropdown-container {
    display: none;
    background-color: #2c3e50;
    padding-left: 30px;
}

    .dropdown-container a {
        display: block;
        padding: 10px 20px;
        color: #ecf0f1;
        text-decoration: none;
        transition: background 0.3s;
    }

        .dropdown-container a:hover {
            background-color: #34495e;
            color: #fff;
        }

/* Main Content Area */
.main-content {
    margin-left: 255px;
    padding: 20px;
    transition: margin-left 0.3s ease;
    flex: 1;
    padding-bottom: 60px; /* Space for footer */
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 15px 0;
    position: relative;
    margin-left: 250px;
    transition: margin-left 0.3s ease;
}

    .footer p {
        margin: 0;
        font-size: 14px;
    }

/* Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 15px;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .side-nav {
        width: 220px;
    }

    .main-content {
        margin-left: 220px;
    }

    .footer {
        margin-left: 220px;
    }
}

@media (max-width: 768px) {
    .side-nav {
        transform: translateX(-100%);
        width: 250px;
    }

        .side-nav.active {
            transform: translateX(0);
        }

    .main-content {
        margin-left: 0;
    }

    .footer {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .logo h1 {
        display: none;
    }
}
.btn-teal {
    background-color: #008080;
    border-color: #006666;
    color: #fff;
}

    .btn-teal:hover {
        background-color: #006666;
        border-color: #005555;
        color: #fff;
    }
#required:after {
    content: "*";
    font-weight: bold;
    color: red;
}

#td-limit {
    max-width: 70px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/*ITEM BODY STYLES*/
@media (max-width: 767.98px) {
    #invoiceItem-body table {
        width: 100%;
    }

    #invoiceItem-body .item-row {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 0.25rem;
        padding: 0.5rem;
    }

        #sectionItem-body .item-row td {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.3rem;
            border: none;
        }

            #sectionItem-body .item-row td:before {
                content: attr(data-label);
                font-weight: bold;
                margin-right: 1rem;
            }

            #sectionItem-body .item-row td .form-control,
            #sectionItem-body .item-row td .form-select {
                width: 60%;
            }

            #sectionItem-body .item-row td .btn-group {
                justify-content: flex-end;
                width: 100%;
            }
}

.page-detail-header span,
.page-detail-items span {
    color: #5D6975;
    text-align: left;
    /*width: 150px;*/
    margin-right: 20px;
    top: 2px;
    display: inline-block;
    font-size: 1em;
}

.bold {
    font-weight: bold;
}