﻿* {
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
}

html, body {
    font-family: 'Calibri';
    background-color: #ECECEC;
    height: 100%;
}
.mainC {
    margin-left: 220px;
    display: flex;
    display: -webkit-flex;
    flex-direction: column;
    min-height: 100vh;
}
.sm-container {
    padding: 20px;
    margin-top: 70px;
}
.mainC .sm-container {
    flex-grow: 1;
}
.mainC footer {
    flex-basis: 10px;
}
.ftr {
    padding: 10px;
    background-color: #fff;
}

input[type=text], input[type=password], .DDL {
    font-family: Calibri;
    width: 100%;
    padding: 0.375rem 0.75rem;
    margin-top: 2px;
    display: inline-block;
    box-sizing: border-box;
    background-clip: padding-box;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    border: 1px solid #ced4da;
    border-radius: 0.3rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    input[type=text]:focus, input[type=password]:focus, .DDL:focus {
        color: #212529;
        background-color: #fff;
        border-color: #86b7fe;
        outline: 0;
        box-shadow: 0 0 0 0.10rem rgba(13, 110, 253, 0.25);
    }

.button {
    background-color: #04AA6D;
    color: white;
    padding: 14px 20px;
    margin: 0px 0;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    width: 90px;
}
.buttonB {
    background-color: steelblue;
}
.buttonR {
    background-color: maroon;
}
    .button:hover {
        opacity: 0.8;
    }

.container {
    padding: 30px;
    text-align: center;
    border-radius: 10px;
}

.modal {
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    overflow-x: hidden; /* Enable scroll if needed */
    width: 100%; /* Full width */
    height: 100%; /* Full height */
}

.modal-content {
    background-color: #fefefe;
    margin: 3% auto 5% auto; /* 5% from the top, 15% from the bottom and centered */
    border: 1px solid #D3D3D3;
    width: 420px; /* Could be more or less, depending on screen size */
    box-shadow: 0 0 0 0.15rem rgba(211, 211, 211, 0.15);
    border-radius: 10px;
}

/* Loading Screen */
.loader-container {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 50%;
}

.gear {
    position: fixed;
    left: 0;
    top: -12%;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: rotate 4s linear infinite;
}

    .gear img {
        width: 135px;
        height: 135px;
    }

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.logo {
    position: fixed;
    left: 0;
    top: -12%;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-container, .gear, .logo {
    z-index: 99998 !important;
}

td {
    text-align: left;
    font-size: 12pt;
}

a {
    text-align: center;
}

@media only screen and (max-width: 800px) {
    .w3-card {
        width: 77px !important;
    }

    #main {
        margin-left: 77px !important;
    }

    #openNav, #closeNav {
        display: none !important;
    }

    #PIL, #EBL, #WEL, #TNSL, #ULL {
        display: none !important;
    }

    #PILs, #EBLs, #WELs, #TNSLs, #ULLs {
        display: block !important;
    }

    #PIh, #EBh, #WEh, #TNSh, #PFh {
        display: block !important;
    }
    .notif-body {
        max-height: 230px !important;
    }
}

@media only screen and (max-width: 560px) {
    .w3-card {
        width: 0px !important;
    }

    #main {
        margin-left: 0px !important;
    }

    #TM, #LO {
        display: inline-block !important;
    }

    .divCon {
        display: block !important;
        width: 100% !important;
    }

    .modal-content {
        width: 100% !important;
        margin: 15px auto 15px 0;
    }

    #PIL, #EBL, #WEL, #TNSL, #ULL {
        display: none !important;
    }

    #PILs, #EBLs, #WELs, #TNSLs, #ULLs {
        display: block !important;
    }

    #PIh, #EBh, #WEh, #TNSh, #PFh {
        display: block !important;
    }

    #gvscroll {
        overflow: auto;
        max-height: 580px;
        max-width: 100%;
    }

    .main-container {
        width: 100% !important;
        height: 100% !important;
        margin-top: 0 !important;
    }

    .popup-back-bg {
        width: 80% !important;
        height: 80% !important;
        margin: 1% auto 1% auto !important;
    }

    .popup-back-bg2 {
        margin: 20% auto !important;
    }
    .notif-box {
        left: -293% !important;
    }
    .notif-body {
        max-height: 180px !important;
    }
}

@media only screen and (max-width: 520px) {
}

.divConMain {
    padding: 20px;
}

.divCon {
    display: inline-block;
    width: 13%;
    margin-bottom: 11px;
    margin-right: .7%;
    vertical-align: top;
}

.divCon2 {
    width: 25.5%;
}

.divCon3 {
    width: 18%;
}

.divCon4 {
    width: 49%;
}

.divConNM {
    margin-right: 0;
}

.divConButton {
    width:99%;
    margin-right: 20px;
    text-align:right;
}

.divConA {
    width: 45%;
}

.divone {
    display: inline-block !important;
    width: 50% !important;
}

.w3-teal {
    top: 0;
    position: fixed;
    width: 100%;
    background-color: #804040 !important;
    z-index:1;
}

.w3-sidebar {
    left: 0;
    height: 100%;
    background-color: #fff;
    position: fixed !important;
    z-index: 1;
    top: 0;
}

.w3-bar-block .w3-bar-item {
    width: 100%;
    display: block;
    padding: 8px 16px;
    text-align: left;
    border: none;
    white-space: normal;
    float: none;
    outline: 0;
}

.w3-block {
    display: block;
    width: 100%;
}

.w3-card {
    width: 220px;
    overflow: hidden;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
}

.w3-block {
    display: block;
    width: 100%
}

.w3-bar .w3-bar-item {
    padding: 8px 16px;
    float: left;
    width: auto;
    border: none;
    display: block;
    outline: 0
}

.w3-button:hover {
    color: #ff9898 !important;
}

.w3-button {
    border: none;
    display: inline-block;
    padding: 8px 16px;
    vertical-align: middle;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background-color: inherit;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
    color: #575757;
}

.w3-button-c {
    color: #fff !important;
}

.w3-large {
    padding-top: 20px;
    padding-bottom: 20px;
    opacity: 0.7;
    font-size: 24px !important
}

h2 {
    color: white;
    text-align: left;
    background-color: #88a7c6;
    padding: 10px 0px 10px 10px;
}

h3 {
    margin: 0px;
}

.ErrorMsg {
    color: red;
    font-size: small;
    font-style: italic;
}

.updateNotif {
    position: fixed;
    bottom: 10%;
    right: 20px;
    z-index: 99999 !important;
    padding: 15px;
    margin: 10px;
    margin-right: 10px;
    border-radius: 1rem;
    opacity: 0.75;
    animation: animateright 1s 0s forwards, animateright 1s 2.5s reverse forwards;
}
.updateNotifUpt {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
    z-index: 99999 !important;
}
.updateNotifAdd {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
    z-index: 99999 !important;
}
.updateNotifError {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
    z-index: 99999 !important;
}


@keyframes animateright {
    from {
        right: -200px;
        opacity: 0;
    }
    to {
        right: 10px;
        opacity: 100%;
    }
}

.main-container {
    position: inherit !important;
    background-color: white;
    width: 100%;
    border-radius: 5px;
    margin-top:1%;
}
.main-container-pad {
    padding: 20px;
}

.main-container-box {
    display: inline-grid;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 3px;
    width: 180px;
    height: 160px;
    text-align: center;
    margin-right: 10px;
    margin-bottom: 10px;
}

.popup-back {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background-color: black;
    justify-content: center;
    align-items: center;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    display: none;
}
.popup-back-bg {
    position: relative;
    background-color: white;
    padding: 30px;
    margin: 1% auto 1% auto;
    box-shadow: 0 0 0 0.15rem rgba(211, 211, 211, 0.15);
    border-radius: 10px;
    overflow: auto;
}
.popup-back-bg2 {
    position: relative;
    background-color: white;
    padding: 30px;
    margin: 1% auto 1% auto;
    box-shadow: 0 0 0 0.15rem rgba(211, 211, 211, 0.15);
    border-radius: 10px;
    overflow: auto;
}

.loader {
    margin-left: 36%;
    width: 20px;
    height: 20px;
    border: 16px solid #3498db;
    border-radius: 50%;
    border-top: 16px solid #f0f0f0;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.checkmark {
    display: inline-block;
    margin-left: 45%;
    transform: rotate(45deg);
    height: 38px;
    width: 20px;
    border-bottom: 10px solid #78b13f;
    border-right: 10px solid #78b13f;
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.xmark {
    margin-left: 30%;
    margin-bottom: 25%;
    position: relative;
}

    .xmark:before, .xmark:after {
        content: '';
        height: 60px;
        width: 0;
        border-left: 10px solid #b13f54;
        position: absolute;
        left: 30px;
        top: 0;
    }

    .xmark:before {
        transform: rotate(-45deg);
    }

    .xmark:after {
        transform: rotate(45deg);
    }

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 15px;
    font-weight: bold;
    color: Grey;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.soft-checkbox input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #4da3ff;
    border-color:lightgrey;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 6px;
}

/* Style for the message button */
.message-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* Realistic Brown Envelope Icon */
.envelope-icon {
    color: #8B4513; /* Saddle Brown */
    font-size: 20px;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2); /* Subtle shadow */
}

/* Hover effect */
.message-btn:hover .envelope-icon {
    color: #A0522D; /* Sienna Brown */
    transform: scale(1.2); /* Slight zoom for realism */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.big-check input[type="checkbox"] {
    appearance: none; /* Removes default checkbox */
    -webkit-appearance: none;
    width: 50px;
    height: 15px;
    cursor: pointer;
    position: relative;
    outline: none;
    background: none;
    border: none;
}
/* underline (always visible) */
.big-check input[type="checkbox"]::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: black;   /* underline color */
}
    .big-check input[type="checkbox"]::after {
        content: ""; /* Empty when unchecked */
        position: absolute;
        top: -3px;
        left: 0;
        transform: translate(120%, 0%); /* center it */
        font-size: 20px; /* Size of the checkmark */
        line-height: 20px;
    }

    .big-check input[type="checkbox"]:checked::after {
        content: "✔"; /* Only the checkmark appears when checked */
    }

.uppercase {
    text-transform: uppercase;
}

.Notif {
    text-align: center;
    border-radius: 10px;
    padding: 10px 5px 10px 5px;
    font-style: italic;
    display: none;
}
.NotifG {
    background-color: #d4edda;
    color: #155724;
}
.NotifB {
    background-color: #d1ecf1;
    color: #0c5460;
}
.NotifR {
    background-color: #f8d7da;
    color: #721c24;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-input {
    padding-right: 40px; /* space for eye icon */
}

.toggle-password {
    position: absolute;
    right: 13px;
    top: 36%;
    transform: translateY(-50%);
    cursor: pointer;
    color: darkgray;
    font-size: 1rem;
    user-select: none;
}

.notif-box {
    display: none;
    position: absolute;
    top: 57px;
    left: 50%;
    transform: translateX(0);
    width: 480px;
    background: #8B4340;
    border-radius: 12px;
    /* Floating shadow */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    overflow-y: auto;
    color: white;
    /* subtle animation */
    animation: floatDown 0.2s ease-out;
}

.notif-header {
    font-weight: bold;
    font-size: 16px;
    padding: 7px 18px;
    color: #ffffff;
}

.notif-body {
    max-height: 325px;
    overflow-y: auto;
}

.notif-item {
    display: block;
    padding: 14px 18px;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    background-color: rgba(0,0,0,0.15);
    color: #ffffff !important;
    text-align: left;
    transition: background 0.2s ease;
}

    /* Remove default link styling */
    .notif-item:link,
    .notif-item:visited,
    .notif-item:hover,
    .notif-item:active {
        text-decoration: none !important;
        color: #ffffff !important;
    }

    /* Hover effect */
    .notif-item:hover {
        background: transparent;
    }

.notif-message {
    display:inline-flex;
    align-items:center;
    gap:10px;
}

.notif-date {
    display: block;
    font-size: 12px;
    margin-top: 4px;
    opacity: 0.8;
}

@keyframes floatDown {
    from {
        opacity: 0;
        transform: translateX(0) translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

.bell-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.bell-icon {
    transition: all 0.3s;
}

.w3-button.active .bell-icon {
    fill: #fff;
    stroke: #fff;
}

.bell-wrapper {
    position: relative;
}

.notif-badge {
    position: absolute;
    top: 17px;
    right: 8px;
    background-color: #e74c3c;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    text-align: center;
}

.unread {
    background-color: rgba(255,255,255,0.12);
}

.notif-check {
    background: #cfcfcf;
    color: #8B4340;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 11px;
    text-align: center;
    line-height: 16px;
    font-weight: bold;
}