﻿/*@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --color-primary: #1E73BE;
    --color-danger: #ff1111;
    --color-success: #1B9C85;
    --color-warning: #F7D060;
    --color-white: #fff;
    --color-info-dark: #7d8da1;
    --color-dark: #363949;
    --color-light: rgba(132, 139, 200, 0.18);
    --color-dark-variant: #677483;
    --color-background: #f6f6f9;
    --card-border-radius: 0.5rem;
    --border-radius-1: 0.4rem;
    --border-radius-2: 1.2rem;
    --card-padding: 1.8rem 1rem;
    --padding-1: 1.2rem;
    --box-shadow: 0 0.5rem 0.5rem var(--color-light);
    --company-name: #df2525;
    --card-border: #E7E7E7;
    --color-green: #1ed837;
    --bg-color: #ffffff;
}

.dark-mode-variables {
    --color-background: #181a1e;
    --color-white: #202528;
    --color-dark: #edeffd;
    --color-dark-variant: #a3bdcc;
    --color-light: rgba(0, 0, 0, 0.4);
    /* --box-shadow: 0 2rem 3rem var(--color-light); */
}

* {
    margin: 0;
    padding: 0;
    outline: 0;
    appearance: 0;
    border: 0;
    text-decoration: none;
    box-sizing: border-box;
}

html {
    font-size: 14px;
}

body {
    width: 100vw;
    height: 100vh;
    /* font-family: 'Poppins', sans-serif;*/
    font-family: "Montserrat", sans-serif;
    font-size: 0.88rem;
    user-select: text;
    cursor: default;
    overflow-x: hidden;
    color: var(--color-dark);
    background-color: var(--color-background);
    scrollbar-width: thin;
}

a {
    color: var(--color-dark);
}

img {
    display: block;
    width: 100%;
    object-fit: cover;
}

.icon {
    text-align: center;
    margin-bottom: 5px;
}

    .icon img {
        width: 48px;
        height: 48px;
    }

h1 {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 30px;
}

h2 {
    font-weight: 600;
    font-size: 1.4rem;
}

h3 {
    font-weight: 500;
    font-size: 0.87rem;
    color: var(--color-dark);
}

h4 {
    font-size: 12px;
    color: var(--color-dark);
}

small {
    font-size: 0.76rem;
}

p {
    color: var(--color-dark-variant);
    margin-bottom: 0px;
}

b {
    color: var(--color-dark);
}

.text-muted {
    color: var(--color-info-dark);
}

.primary {
    color: var(--color-primary);
}

.danger {
    color: var(--color-danger);
}

.dark {
    color: var(--color-dark);
}

.success {
    color: var(--color-success);
}

.warning {
    color: var(--color-warning);
}

.comapny-name {
    color: var(--company-name);
}

.containers {
    background-color: var(--color-background);
    display: grid;
    width: 100%;
    padding: 0 1% 0 1%;
}

.main-body {
    width: 100%;
}

.modal-header i.material-icons-outlined[role="button"] {
    background-color: #f05353;
    height: 25px;
    width: 25px;
    border-radius: 2px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 18px !important;
    color: white;
    transition: all 0.3s ease-in-out;
}

    .modal-header i.material-icons-outlined[role="button"]:hover {
        background-color: red;
        transform: scale(1.03);
    }

.bodys {
    height: 90%;
    width: 100%;
}

.b-layout-sider {
    display: block;
    overflow: hidden;
}

{
    height: 100vh;
    width: 100%;
}

.toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.branchName {
    font-size: 13px;
    font-weight: 600;
}

.right-container {
    width: 100%;
    padding: 1% 0 0 0;
}

.body-container {
    background: var(--bg-color);
    display: block;
    height: 100%;
    /* margin: 1% 0;*/
    padding: 2%;
    border-radius: var(--card-border-radius);
}

.toggle .logo {
    display: flex;
    gap: 0.5rem;
    height: 5%;
}

    .toggle .logo img {
        width: 4rem;
        height: 4rem;
        margin-left: 3vw;
    }

.toggle .close {
    padding-right: 1rem;
    display: none;
}
/* Sidebar container */
.sidebar {
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    background-color: white;
    color: black;
    /* padding: 10px 20px;*/
    position: relative;
    margin: 1.2rem 0rem;
    width: 13.3vw;
    left: 0;
    height: 88vh;
    overflow-y: auto;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

.material-icons-sharp, .material-icons-outlined {
    cursor: pointer;
}

.sidebar.show {
    left: 0; /* Show the sidebar by moving it to the left */
}

/* Sidebar links */
.sidebar a {
    display: flex;
    text-decoration: none;
    color: black;
    align-items: center;
    /* display: block;
*/ /* margin: 10px 0;*/
    align-items: center;
    height: 3.2rem;
    gap: 1rem;
    position: relative;
    padding-left: 2rem;
    /*margin-right: auto;*/
    transition: all 0.3s ease;
}

.sides a {
    display: flex;
    text-decoration: none;
    color: black;
    display: block;
    margin: 10px 0;
    align-items: center;
}

.form-control {
    -webkit-appearance: auto;
    appearance: auto;
    padding: .175rem .75rem;
}
/* Sidebar link icon */
.sidebar a .material-icons-sharp {
    font-size: 20px;
    vertical-align: middle;
    margin-right: 10px;
    color: black;
}

.sidebar a:hover {
    color: var(--color-primary);
}
/* Show child menu items when the parent is hovered */
.sides:hover .child {
    display: block;
}

.sidebar a:hover span {
    margin-left: 0.6rem;
    transition: all 0.3s ease;
    color: var(--color-primary);
}

.sides .parent .child li a:hover span {
    margin-left: 0.6rem;
    transition: all 0.3s ease;
    color: var(--color-dark);
}

.logout:hover {
    margin-left: 0.6rem;
    transition: all 0.3s ease;
    color: var(--color-dark);
}
/* Parent menu item */
.sides .parent {
    cursor: pointer;
}

/* Child menu items */
.child {
    display: none;
    list-style: none;
    margin-left: 0;
    padding-left: 20px;
}

    .child li a {
        padding-left: 0;
    }

/* Show child menu items when the parent is hovered */
.sides:hover .child {
    display: block;
}

/* Logout item */
.sidebar a:last-child {
    margin-top: 0.5rem;
}


#balance-color {
    color: var(--color-green);
    font-weight: 400;
}

#sales-color {
    rows color: var(--color-green);
    font-weight: 400;
}

#clients-color {
    color: var(--color-danger);
    font-weight: 400;
}

.right-body {
    width: 100%;
}



.rows {
    background-color: var(--color-white);
    padding: var(--card-padding);
    border-radius: var(--card-border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px;
}

.right-body .dasboard-section > div:hover {
    box-shadow: none;
}

.right-body .dasboard-section > div .status-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.right-body .dasboard-section h3 {
    font-size: 1rem;
}

.right-body .dasboard-section .progresss {
    position: relative;
    width: 92px;
    height: 92px;
    border-radius: 50%;
}

.right-body .dasboard-section svg {
    width: 2rem;
    height: 2rem;
}

    .right-body .dasboard-section svg circle {
        fill: none;
        stroke-width: 10;
        stroke-linecap: round;
        transform: translate(5px, 5px);
    }

.right-body .dasboard-section .balance-continer svg circle {
    stroke: var(--color-success);
    stroke-dashoffset: -30;
    stroke-dasharray: 200;
}

.right-body .dasboard-section .sales svg circle {
    stroke: var(--color-success);
    stroke-dashoffset: -30;
    stroke-dasharray: 200;
}

.right-body .dasboard-section .clients svg circle {
    stroke: var(--color-danger);
    stroke-dashoffset: -30;
    stroke-dasharray: 200;
}

.right-body .dasboard-section .searches svg circle {
    stroke: var(--color-primary);
    stroke-dashoffset: -30;
    stroke-dasharray: 200;
}

.right-body .dasboard-section .progresss .percentage {
    position: absolute;
    top: -3px;
    left: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.right-body .search {
    margin-top: 1.3rem;
}

    .right-body .search .search-items {
        background-color: var(--color-white);
        border-radius: var(--card-border-radius);
        /* box-shadow: var(--box-shadow); */
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
        gap: 1.4rem;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px;
        margin-bottom: 1rem;
    }
/* .right-body .search .search-items:hover {
   box-shadow: none;
} */

.right-body .customers {
    margin-top: 1.3rem;
}

    .right-body .customers h2 {
        margin-bottom: 0.8rem;
    }

    .right-body .customers table {
        background-color: var(--color-white);
        width: 100%;
        padding: var(--card-padding);
        text-align: center;
        /* box-shadow: var(--box-shadow); */
        border-radius: var(--card-border-radius);
        transition: all 0.3s ease;
        border: var(--card-border) 1px solid;
    }

        .right-body .customers table:hover {
            box-shadow: none;
        }

.right-body table tbody td {
    height: 2.8rem;
    border-bottom: 1px solid var(--color-light);
    color: var(--color-dark-variant);
}

.right-body table tbody tr:last-child td {
    border: none;
}

.right-body .customers a {
    text-align: center;
    display: block;
    margin: 1rem auto;
    color: var(--color-primary);
}


.right-section {
    display: flex;
    justify-content: end;
    align-items: center;
    text-align: center;
    width: 100%;
}

    .right-section .nav {
        display: flex;
        justify-content: end;
        flex-wrap: nowrap;
        align-items: center;
    }

        .right-section .nav button {
            display: none;
        }

    .right-section .dark-mode {
        background-color: var(--color-light);
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 1.6rem;
        width: 4.2rem;
        cursor: pointer;
        border-radius: var(--border-radius-1);
    }

        .right-section .dark-mode span {
            font-size: 1.2rem;
            width: 50%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

            .right-section .dark-mode span.active {
                background-color: var(--color-primary);
                color: white;
                border-radius: var(--border-radius-1);
            }

    .right-section .nav .profile {
        align-items: center;
        gap: 0.5rem;
    }

#datetime {
    color: var(--color-primary);
}

.right-section .nav .profile .profile-photo {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    overflow: hidden;
}

.right-section .user-profile {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-top: 1rem;
    background-color: var(--color-white);
    padding: var(--card-padding);
    border-radius: var(--card-border-radius);
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .right-section .user-profile:hover {
        box-shadow: none;
    }

    .right-section .user-profile img {
        width: 11rem;
        height: auto;
        margin-bottom: 0.8rem;
        border-radius: 50%;
    }

    .right-section .user-profile h2 {
        margin-bottom: 0.2rem;
    }

.right-section .reminders {
    margin-top: 0.5rem;
}

    .right-section .reminders .header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0.8rem;
    }

        .right-section .reminders .header span {
            padding: 10px;
            box-shadow: var(--box-shadow);
            background-color: var(--color-white);
            border-radius: 50%;
        }

    .right-section .reminders .notification {
        background-color: var(--color-white);
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 0.7rem;
        padding: 1.4rem var(--card-padding);
        border-radius: 2px;
        box-shadow: var(--box-shadow);
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .right-section .reminders .notification:hover {
            box-shadow: none;
        }

        .right-section .reminders .notification .content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 0;
            width: 100%;
        }

        .right-section .reminders .notification .icon {
            padding: 0.6rem;
            color: var(--color-white);
            background-color: var(--color-success);
            border-radius: 20%;
            display: flex;
        }

        .right-section .reminders .notification.deactive .icon {
            background-color: var(--color-danger);
        }
/* tableS COMPONENT*/
.quickgrid tbody tr:hover {
    background-color: #dde9ff;
}

.quickgrid tbody tr {
    border-bottom: 1px solid rgba(0,0,0,0.2);
}

.quickgrid {
    width: 100%;
    border: 1px solid var(--card-border);
    overflow: hidden;
    border-radius: 8px;
    box-shadow: rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px;
    margin: 1rem 0;
    padding: 0 0.2rem;
}

    .quickgrid thead {
        background-color: var(--color-primary);
        color: white;
        border-radius: 10px 10px 0 0;
        margin: 1rem;
        font-size: 13px;
    }

    .quickgrid[theme=default] .col-title {
        gap: 0.4rem;
        font-weight: 500;
    }

    .quickgrid thead tr th:first-child {
        border-radius: 10px 0 0 0;
    }

    .quickgrid thead tr th:last-child {
        border-radius: 0 10px 0 0;
    }

    .quickgrid tbody tr th:first-child {
        border-radius: 0 0 0 10px;
    }

    .quickgrid tbody tr th:last-child {
        border-radius: 0 0 10px 0;
    }

.paginator[b-3qssc0bm46] {
    margin: 0.5rem;
    background: #e9ecef;
}

.quickgrid[theme=default] .col-title {
    color: var(--color-white);
}
/*//side bar*/
.sidebar-closed {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}
/*LOGO*/
.log {
    display: none;
}
/*button COMPONENT*/
.btns {
    background-color: #dd7973;
    color: white
}

    .btns:hover {
        background-color: lightcoral;
        color: antiquewhite;
    }
/*breadcrumb*/
.breadcrumb {
    --bs-breadcrumb-padding-x: 0;
    --bs-breadcrumb-padding-y: 0;
    --bs-breadcrumb-margin-bottom: 1rem;
    --bs-breadcrumb-bg:;
    --bs-breadcrumb-border-radius:;
    --bs-breadcrumb-divider-color: #dc3545;
    --bs-breadcrumb-item-padding-x: 0.5rem;
    --bs-breadcrumb-item-active-color: #dc3545;
    display: flex;
    flex-wrap: wrap;
    padding: var(--bs-breadcrumb-padding-y) var(--bs-breadcrumb-padding-x);
    margin-bottom: var(--bs-breadcrumb-margin-bottom);
    font-size: var(--bs-breadcrumb-font-size);
    list-style: none;
    background-color: #ff000030;
    border-radius: var(--bs-breadcrumb-border-radius);
    border-radius: 5px;
    padding: 0 10px;
    width: fit-content;
}

a:not([href]):not([class]), a:not([href]):not([class]):hover {
    color: #df2525;
}

@media only screen and (max-width: 1200px) {
    .containers {
        width: 100%;
    }

    .logo h2 {
        display: none;
    }

    .sidebar {
        width: fit-content;
    }

        .sidebar h3 {
            display: none;
        }

        .sidebar a:last-child {
            position: relative;
            margin-top: 1.8rem;
        }

    .right-body .search .search-items .user {
        flex-basis: 40%;
    }

    .right-body .customers {
        width: 94%;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 2rem 0 0 0.8rem;
    }

        .right-body .customers table {
            width: 83vw;
        }

    .right-body table thead tr th:last-child,
    .right-body table thead tr th:first-child {
        display: none;
    }

    .right-body table tbody tr td:last-child,
    .right-body table tbody tr td:first-child {
        display: none;
    }
}

@media screen and (max-width: 1400px) {
    .toggle .logo img {
        width: 4rem;
        height: 4rem;
        margin-left: 3vw;
    }
}

@media screen and (max-width: 768px) {
    .containers {
        width: 100%;
        padding: 0 var(--padding-1);
    }

    .sidebar {
        margin-top: 5rem;
    }


    .branchName {
        display: none;
    }

    .logo {
        margin-left: 1rem;
    }

        .logo h2 {
            display: inline;
        }




    .toggle .close {
        display: inline-block;
        cursor: pointer;
    }

    .right-body .search .search-items .user {
        flex-basis: 35%;
    }

    .right-body .customers {
        position: relative;
        margin: 3rem 0 0 0;
        width: 100%;
    }

        .right-body .customers table {
            width: 100%;
            margin: 0;
        }

    .right-section {
        width: 94%;
        margin: 0 auto 4rem;
    }

    .right-section {
        position: fixed;
        top: 0;
        left: 0;
        align-items: center;
        background-color: var(--color-white);
        padding: 0 var(--padding-1);
        height: 4.6rem;
        width: 100%;
        z-index: 2;
        box-shadow: 0 1rem 1rem var(--color-light);
        margin: 0;
    }

        .right-section .nav .dark-mode {
            width: 4.4rem;
            position: absolute;
            left: 66%;
        }

        .right-section .profile .info {
            display: none;
        }

    .right-section {
        display: flex;
        justify-content: space-between;
    }

    .log {
        display: block;
    }

    .right-section .nav button {
        display: inline-block;
        background-color: transparent;
        cursor: pointer;
        color: var(--color-dark);
        position: absolute;
        left: 1rem;
    }

        .right-section .nav button span {
            font-size: 2rem;
        }
}

.percentage-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.percentage-counter-value {
    font-size: 10px;
    font-weight: bold;
    color: #3DB39E;
    margin-top: 8px;
    animation: countUp 3s linear infinite;
}

@keyframes countUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(-20px);
        opacity: 0;
    }

    100% {
        transform: translateY(-40px);
        opacity: 0;
    }
}

.arrow-svg {
    width: 30px;
    height: 20px;
    fill: #3DB39E;
}

#datetime {
    font-size: 10px;
    text-align: center;
}

@media (max-width: 768px) {
    #datetime {
        display: none;
    }
}

.search-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: auto;
    /* margin: 0 auto; */
    padding: 20px;
    background-color: #f2f2f2;
    border-radius: 5px;
}

    .search-items label {
        flex: 1;
        margin-right: 10px;
        font-weight: bold;
    }

    .search-items input[type="text"],
    .search-items input[type="date"],
    .search-items select {
        flex: 2;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        outline: none;
    }

    .search-items select {
        appearance: none;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath fill='%23000' d='M4 0l1.5 2H2zm0 8l-1.5-2h3z'/%3E%3C/svg%3E") no-repeat right center;
        background-size: 10px;
    }

        .search-items select:focus {
            border-color: #007bff;
        }

    .search-items input[type="text"]:focus,
    .search-items input[type="date"]:focus {
        border-color: #007bff;
    }

    .search-items .fa-search {
        flex: 1;
        font-size: 20px;
        color: var(--color-primary);
        margin-right: 10px;
    }

    .search-items .fa-calendar {
        flex: 1;
        font-size: 20px;
        color: var(--color-primary);
        margin-right: 10px;
    }

    .search-items .fa-filter {
        flex: 1;
        font-size: 20px;
        color: var(--color-primary);
        margin-right: 10px;
    }

@media (max-width: 768px) {
    .right-body {
        margin-top: 20px;
    }

    .search-items {
        flex-direction: column;
        align-items: flex-start;
        max-width: 100%;
    }

        .search-items label,
        .search-items input[type="text"],
        .search-items input[type="date"],
        .search-items select {
            width: 100%;
            margin-right: 0;
        }

        .search-items .fa-search,
        .search-items .fa-calendar,
        .search-items .fa-filter {
            flex: 1;
            margin-right: 0;
            margin-top: 10px;
        }
}

.status-badge {
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

.active {
    background-color: var(--color-green);
    color: white;
}

.inactive {
    background-color: var(--color-warning);
    color: white;
}

.Canceled {
    background-color: var(--color-danger);
    color: white;
}

button.edit {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 5px 10px;
    margin-right: 5px;
    cursor: pointer;
    border-radius: 5px;
}

button.delete {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    margin-right: 5px;
}

button.view {
    background-color: var(--color-success);
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    margin-right: 5px;
    border-radius: 5px;
}

/* ===== App Shell — Top Navigation Layout ===== */
.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5rem;
    background: #ffffff;
    display: flex;
    align-items: center;
    z-index: 1000;
    overflow: visible;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 0 0.75rem 0 0.5rem;
}

.below-topbar {
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.app-content {
    padding: 1.25rem 1.5rem;
    flex: 1;
}

/* ── Page transition ── */
@keyframes pageEnter {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.page-animate {
    animation: pageEnter 0.2s ease;
}

/* ── Sticky table headers ── */
.quickgrid thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* ── Action buttons: show only on row hover ── */
.quickgrid tbody tr td button.edit,
.quickgrid tbody tr td button.delete,
.quickgrid tbody tr td button.view {
    opacity: 0;
    transition: opacity 0.15s ease;
}

.quickgrid tbody tr:hover td button.edit,
.quickgrid tbody tr:hover td button.delete,
.quickgrid tbody tr:hover td button.view {
    opacity: 1;
}

/* ── Dark mode: topbar + search input ── */
.dark-mode-variables .app-topbar {
    background: #202528;
    box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 2px 8px rgba(0,0,0,0.3);
}

.dark-mode-variables .nav-search-input {
    background: #2a2d31;
    border-color: rgba(255,255,255,0.15);
    color: #edeffd;
}

.dark-mode-variables .nav-dropdown,
.dark-mode-variables .search-results-dropdown,
.dark-mode-variables .mobile-drawer {
    background: #202528;
    border-color: rgba(255,255,255,0.08);
}

.dark-mode-variables .dd-item,
.dark-mode-variables .search-result-item,
.dark-mode-variables .mobile-nav-link,
.dark-mode-variables .mobile-sub-item {
    color: #edeffd;
}

.dark-mode-variables .active-menu-bar {
    background: #1a2030;
    border-bottom-color: rgba(30,115,190,0.25);
}
