﻿:root {
    --ct-green: #4f8f2f;
    --ct-dark-green: #287d50;
    --ct-light-green: #eaf5e3;
    --ct-border: #c8dfc1;
}

/* Header */
.app-header {
    background: linear-gradient(135deg, #287d50, #3d985c);
    box-shadow: 0 3px 8px rgba(0,0,0,.2);
}

.summary-card {
    border: 1px solid var(--ct-border);
    border-radius: 12px;
    background: linear-gradient( 145deg, #ffffff, #f3faef );
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
    transition: .3s;
}

    .summary-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 18px rgba(0,0,0,.15);
    }


.loader {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: white;
    /*center all spans*/
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: hidden;
    overflow-x: hidden;
    z-index: 100000;
    backdrop-filter: blur(5px);
}

.loader-image {
    position: relative;
    top: -60px;
    left: 20px;
    width: 60px;
    height: 60px;
    animation: none !important;
    /*    transition: transform .7s ease-in-out;
    animation: rotateImg 2s linear infinite;*/
}

@keyframes rotateImg {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(359deg);
    }
}


.arc_loader_outer {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 100%;
    border: 1px solid;
    border-color: transparent #108516 #108516 #108516;
    transform: rotate(45deg);
    animation: rotate 12s linear infinite;
}

.arc_loader_inner {
    position: relative;
    top: 10px;
    left: 10px;
    width: 80px;
    height: 80px;
    border-radius: 100%;
    border: 2px solid;
    border-color: transparent #108516 #108516 #108516;
}

.o_circle {
    -webkit-animation: rotation 2s infinite linear;
    animation: rotation 2s infinite linear;
}

@-webkit-keyframes rotation {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}

@keyframes rotation {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}

.i_circle {
    -webkit-animation: rotation2 2s infinite linear;
    animation: rotation2 2s infinite linear;
}

@-webkit-keyframes rotation2 {
    from {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }

    to {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
}

@keyframes rotation2 {
    from {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }

    to {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
}



.w-40 {
    width: 40% !important
}

.w-20 {
    width: 20% !important
}


.table-theme {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    border: 1px solid #cdcec9;
    border-bottom: 2px solid #a7a7a7;
}

    .table-theme th {
        text-align: center;
        padding-top : 9px;
        padding-left: 9px;
        border-bottom: 1px solid green;
        font-size: 0.9rem;
        font-weight: bold;
        background: linear-gradient(1deg,#198754,#198754);
        /*background-color: #84AD8C;*/
        color: white;
        height: 2rem;
    }

    .table-theme td {
        text-align: center;
        padding: 12px;
        height: 1rem;
        font-size: 0.9rem;
    }

    .table-theme tr:nth-child(odd) {
        background-color: #F1F5F1;
        border: 1px solid #cdcec9;
    }

    .table-theme tr:nth-child(even) {
        background-color: #FFFFFF;
    }


.table-theme-plain {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    border: 1px solid #cdcec9;
    border-bottom: 2px solid #a7a7a7;
}

    .table-theme-plain th {
        text-align: center;
        padding: 6px;
        border-bottom: 1px solid #cdcec9;
        font-size: 0.8rem;
        font-weight: 700;
        background-color: white;
        color: black;
        height: 2rem;
    }

    .table-theme-plain td {
        text-align: center;
        padding: 12px;
        height: 1rem;
        font-size: 0.9rem;
    }

    .table-theme-plain tr:nth-child(odd) {
        background-color: #fbfbfb;
        border: 1px solid #cdcec9;
    }

    .table-theme-plain tr:nth-child(even) {
        background-color: #FFFFFF;
    }

.tableicon {
    height: 24px;
    width: 24px;
    background-repeat: no-repeat;
}
    .tableicon:hover {
        text-shadow: 2px grey;
    }

.card-title-custom {
    background: linear-gradient(135deg,#198754,#43c46b);       
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid green;
    font-size: larger;
    color: white;
    height: 3rem;
}

.preview-frame {
    display: block;
    width: 100%;
    height: 30rem;
    overflow-y: auto;
    overflow-x: auto;
    margin: 0px 0px 0px 0px;
    border: none;
    white-space: nowrap;
}

.textbox-control {
    width: 5rem;
    height: 2rem;
    padding: 0.5rem 1rem;
    border-left: none;
    border-top: none;
    border-right: none;
    border-bottom:none;
    border-radius: 0 0.05rem 0.05rem 0;
    box-sizing: border-box;
    outline: none;
    background-color: #f3f3f3;
    color: black;
    font-size: 0.9rem;
    text-align: left;
    -webkit-transition: 0.5s;
    transition: 0.5s;
}

    .textbox-control:focus {
        background-color: #FFFFFF;
    }
    
    .textbox-control:disabled {
        border-bottom: none;
        cursor: not-allowed;
    }

.smalltextbox-control {
    width: 2.5rem;
    height: 2rem;
    padding: 0.5rem 0.5rem;
    border: 1px solid;
    border-radius: 0 0.05rem 0.05rem 0;
    background-color: #f3f3f3;
    color: black;
    font-size: 0.9rem;
    text-align: left;
    -webkit-transition: 0.5s;
    transition: 0.5s;
}

    .smalltextbox-control:focus {
        background-color: #FFFFFF;
    }

    .smalltextbox-control:disabled {
        border-bottom: none;
        cursor: not-allowed;
    }

.search-button {
    height: 2rem;
    border-left: none;
    border-top: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0 0.05rem 0.05rem 0;
    background-color: #f3f3f3;
}

.iframe-container {
    position: relative;
    width: 99vw;
    height: 84vh;
    /*padding-bottom:56.25%; /* Ratio 16:9 ( 100%/16*9 = 56.25% ) */
}

.image-button{
    position: relative; 
    display:block;
    width: 5rem;
    height: 4rem;
   
}

@media (min-width: 576px) {
    .line {
        display: none;
    }
}

.badge {
    display: inline-block;
    padding: .25em .4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
}

    .badge:empty {
        display: none
    }

.btn .badge {
    position: relative;
    top: -1px
}

.badge-pill {
    padding-right: .6em;
    padding-left: .6em;
    border-radius: 10rem
}

.badge-danger {
    color: #fff;
    background-color: #dc3545
}

    .badge-danger[href]:focus, .badge-danger[href]:hover {
        color: #fff;
        text-decoration: none;
        background-color: #bd2130
    }

.notify-badge {
    position: absolute;
    top: 10px;
    right: 85px;
    height: 20px;
    width: 20px;
    background: red;
    text-align: center;
    border-radius: 10rem;
    color: white;
    font-size: 12px;
    font-weight:700;
    z-index: 1;
}

    .notify-badge:empty {
        display: none
    }

.blink-row {
    animation: blinkBg 2s infinite;
}

@keyframes blinkBg {
    0% {
        background-color: #f59f2f;
    }

    50% {
        background-color: #fae466;
    }

    100% {
        background-color: #f59f2f;
    }
}

.bg-olivegreen {
    background-color: #7DA854;
}

.form-label {
    font-weight: 600;
    color: #444;
}

.form-control {
    border-radius: 12px;
    min-height: 48px;
}

textarea.form-control {
    min-height: 85px;
}

.sticky-grid-container {
    width: 100%;
    height: 558px;
    overflow: auto;
    border: 1px solid #ccc;
    
}

.sticky-grid {
    border-collapse: collapse;
    min-width: 500px;
}

    .sticky-grid th,
    .sticky-grid td {
        border: 1px solid #ccc;
        padding-top: 18px;
        padding-bottom: 18px;
        white-space: nowrap;
    }

    /* Sticky Header */
    .sticky-grid th {
        position: sticky;
        top: 0;
        background: #32a852; /* linear-gradient(1deg, #166534, #198754);*/
        color: white;
        padding: 10px;
        z-index: 3;
    }

        /* Sticky First Column */
        /*.sticky-grid th:first-child,
        .sticky-grid td:first-child {
            position: sticky;
            left: 0;
            background: white;
            z-index: 2;
        }*/

        /* Top-left Corner */
        /*.sticky-grid th:first-child {
            z-index: 4;
            background: #54912d;
        }*/

/* Sticky Last Column */
.sticky-right {
    border-collapse: collapse;
}
        .sticky-right th:last-child,
        .sticky-right td:last-child {
            position: sticky;
            right: 0;
            background: white;
            z-index: 2;
        }

        /*Top-Right Corner */
        .sticky-right th:last-child {
            z-index: 4;
            background: #54912d;
        }

/* Sticky Footer */
.sticky-grid-footer td {
    position: sticky;
    bottom: 0;
    background: #54912d !important;
    color: white !important;
    z-index: 3;
}

    .sticky-grid-footer td:first-child {
        position: sticky;
        left: 0;
        bottom: 0;
        background: #54912d !important;
        color: white !important;
        z-index: 5;
    }


.clock-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.clock-card {
    background: #f5f7fc;
    color: black;
    width: 6rem;
    height: 6rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.clock-value {
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
}

.clock-label {
    font-size: 12px;
    margin-top: 0px;
    color: #d1d5db;
    text-transform: uppercase;
}

.clock-separator {
    font-size: 30px;
    font-weight: bold;
    color: #374151;
}

@media (max-width: 500px) {
    .clock-container {
        gap: 6px;
    }

    .clock-card {
        width: 54px;
        height: 54px;
    }

    .clock-value {
        font-size: 24px;
    }

    .clock-label {
        font-size: 9px;
    }

    .clock-separator {
        font-size: 22px;
    }
}

.round-btn {
    border: 1px solid #e5e7eb;
    border-radius: 18rem;
    background-color: #7EB317;
    padding: 9px 6px;
    color: white;
    font-weight: bolder;
    cursor: pointer;
    transition: 0.2s;
    height: 7.3rem;
    width: 7.3rem;
    z-index: 99;
    margin-top: -30px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.9), 0 6px 18px rgba(128, 128, 128, 0.25), 0 2px 5px rgba(0, 0, 0, 0.12);
}

    .round-btn:hover {
        transform: scale(1.03);
    }

    .round-btn:active {
        box-shadow: 0 2px 5px rgba(128, 128, 128, 0.3);
        transform: translateY(1px);
    }

.location-box {
    padding: 17px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 13px;
    background: #f8fafc;
    transition: .3s;
}

.location-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
    margin-top: 6px;
}

.stat-item {
    background: #f5f7fc;
    border-radius: 10px;
    padding: 6px 3px;
    text-align: center;
    height:60px;
}

.card-curve{
    border-radius:15px !important;
}

.logincard {
    border-top: 10px solid #28a745;
    border-image: linear-gradient(to left, #00C853, #B2FF59) !important;
    border-radius: 15px !important;
}

.bg-pale-red {
    background-color: #FFE5E0;
}

.bg-dollhouse {
    background-color: #FAC5C5;
}

.bg-pale-green {
    background-color: #E5F7E1;
}

.bg-pastel-green {
    background-color: #A9E6A1;
}

.bg-light-terracotta {
    background-color: #f27e3f;
}

.grid-container {
    width: 100%;
    height: 537px;
    overflow: auto;
    border: 1px solid #ccc;
}

.grid {
    border-collapse: collapse;
    min-width: 500px;
}

    .grid th,
    .grid td {
        border: 1px solid #ccc;
        padding: 8px;
        white-space: nowrap;
    }

    /* Sticky Header */
    .grid th {
        position: sticky;
        top: 0;
        background: #54912d;
        color: white;
        z-index: 3;
    }

        /* Sticky First Column */
        .grid th:first-child {
            position: sticky;
            left: 0;
            background: white;
            z-index: 2;
        }

    .grid td:first-child {
        position: sticky;
        left: 0;
        background: #D8E3D1;
        z-index: 2;
    }
        /* Top-left Corner */
        .grid th:first-child {
            z-index: 4;
            background: #54912d;
        }

    /* Sticky Footer */
    .grid .grid-footer td {
        position: sticky;
        bottom: 0;
        background: #54912d !important;
        color: white !important;
        z-index: 3;
    }

        .grid .grid-footer td:first-child {
            position: sticky;
            left: 0;
            bottom: 0;
            background: #54912d !important;
            color: white !important;
            z-index: 5;
        }