@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700;900&display=swap');
@keyframes swing {
    0% {
        transform: rotate(0deg);
    }
    10% {
        transform: rotate(10deg);
    }
    30% {
        transform: rotate(0deg);
    }
    40% {
        transform: rotate(-10deg);
    }
    50% {
        transform: rotate(0deg);
    }
    60% {
        transform: rotate(5deg);
    }
    70% {
        transform: rotate(0deg);
    }
    80% {
        transform: rotate(-5deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes sonar {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}
.fade.show {
    opacity: 0.5;
}

#customModal .modal.show .modal-dialog {
    transition: -webkit-transform 0.3s ease-out;
    transition: transform 0.3s ease-out;
    transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
}

#customModal #ajaxCrudModal
{
    opacity:1;
}

body {
    font-family: 'Roboto', sans-serif;
}
.page-wrapper .sidebar-wrapper,
.sidebar-wrapper .sidebar-brand > a,
.sidebar-wrapper .sidebar-dropdown > a:after,
.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li a:before,
.sidebar-wrapper ul li a i,
.page-wrapper .page-content,
.sidebar-wrapper .sidebar-search input.search-menu,
.sidebar-wrapper .sidebar-search .input-group-text,
.sidebar-wrapper .sidebar-menu ul li a,
#show-sidebar,
#close-sidebar {
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.login-container .invalid-feedback {
    color: #FF7276;
}

#show-sidebar {
    color: var(--bs-gray-300);
}

#show-sidebar:hover {
    color: white;
}

.sidebar-menu .navbar-nav {
    width: 100%;
}

.sidebar-title {
    color: #aaa;
    font-weight: 400;
    padding: 8px 10px;
    background-color: rgba(0,0,0,.3);
}

.sidebar-item i {
    display: inline-block;
    width: 18px;
}

/*----------------page-wrapper----------------*/

.page-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: row;
}

.page-wrapper .theme {
    width: 40px;
    height: 40px;
    display: inline-block;
    border-radius: 4px;
    margin: 2px;
}

.page-wrapper .theme {
    background: #1e2229;
}

/*----------------toggled sidebar (collapsed / icon-only)----------------*/

.page-wrapper.toggled .sidebar-wrapper {
    width: 50px;
}

.page-wrapper.toggled .sidebar-wrapper .sidebar-brand {
    padding: 10px 5px;
}

.page-wrapper.toggled .sidebar-wrapper .sidebar-brand img {
    width: 40px;
    height: auto;
}

.page-wrapper.toggled .sidebar-wrapper .sidebar-brand #close-sidebar {
    display: none;
}

.page-wrapper.toggled .sidebar-wrapper .sidebar-header {
    justify-content: center;
    padding: 10px;
}

.page-wrapper.toggled .sidebar-wrapper .sidebar-header .user-pic {
    width: 40px;
}

.page-wrapper.toggled .sidebar-wrapper .sidebar-header .user-info {
    display: none;
}

.page-wrapper.toggled .sidebar-wrapper .sidebar-menu ul li a span,
.page-wrapper.toggled .sidebar-wrapper .sidebar-menu ul li form .sidebar-link span {
    display: none;
}

.page-wrapper.toggled .sidebar-wrapper .sidebar-menu ul li a i,
.page-wrapper.toggled .sidebar-wrapper .sidebar-menu ul li form .sidebar-link i {
    margin-right: 0;
}

.page-wrapper.toggled .sidebar-wrapper .sidebar-title {
    display: none;
}

.page-wrapper.toggled .sidebar-wrapper .sidebar-menu .sidebar-dropdown > a:after {
    display: none;
}

.page-wrapper.toggled .sidebar-wrapper .sidebar-menu .sidebar-submenu {
    display: none !important;
}
/*----------------show sidebar button----------------*/
#show-sidebar {
    position: fixed;
    left: -40px;
    top: 0;
    border-radius: 0 10px 10px 0;
    width: 30px;
    height: 40px;
    z-index: 1000;
    transition: left 0.3s ease;
    padding-top: 10px;
}
.breadcrumb li:first-of-type {
    margin-left: 25px;
}
.page-wrapper.toggled #show-sidebar {
    left: 50px;
}
/*----------------sidebar-wrapper----------------*/

.sidebar-wrapper {
    width: 260px;
    height: 100%;
    position: relative;
    top: 0;
    left: 0;
    z-index: 999;
    display: flex;
    flex-flow: column;
    flex-shrink: 0;
    overflow: hidden;
    transition: width 0.3s ease;
}

.sidebar-wrapper ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.sidebar-wrapper a {
    text-decoration: none;
}


/*--------------------sidebar-brand----------------------*/

.sidebar-wrapper .sidebar-brand {
    padding: 10px;
    color: white;
    text-align: center;
}

.sidebar-wrapper .sidebar-brand > a {
    text-transform: uppercase;
    font-weight: bold;
    flex-grow: 1;
}

.sidebar-wrapper .sidebar-brand #close-sidebar {
    cursor: pointer;
    font-size: 20px;
    float: right;
}
/*--------------------sidebar-header----------------------*/

.sidebar-wrapper .sidebar-header {
    padding: 20px;
    overflow: hidden;
    flex: 0 1 auto;
    display: flex;
}

.sidebar-wrapper .sidebar-header .user-pic {
    width: 60px;
    padding: 2px;
    border-radius: 12px;
    overflow: hidden;
}

.sidebar-wrapper .sidebar-header .user-pic img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.sidebar-wrapper .sidebar-header .user-info {
    box-sizing: border-box;
    padding-left: 15px;
}

.sidebar-wrapper .sidebar-header .user-info > span {
    display: block;
}

.sidebar-wrapper .sidebar-header .user-info .user-role {
    font-size: 12px;
}

.sidebar-wrapper .sidebar-header .user-info .user-status {
    font-size: 11px;
    margin-top: 4px;
}

.sidebar-wrapper .sidebar-header .user-info .user-status i {
    font-size: 8px;
    margin-right: 4px;
    color: #5cb85c;
}

/*-----------------------sidebar-search------------------------*/

.sidebar-wrapper .sidebar-search > div {
    padding: 10px 20px;
}

/*----------------------sidebar-menu-------------------------*/

.sidebar-wrapper .sidebar-menu {
    padding-bottom: 10px;
    flex: 1 1 auto;
    overflow-y: scroll;
}

.sidebar-wrapper .sidebar-menu .header-menu span {
    font-weight: bold;
    font-size: 14px;
    padding: 15px 20px 5px 20px;
    display: inline-block;
}

.sidebar-wrapper .sidebar-menu ul li a, .sidebar-wrapper .sidebar-menu ul li form .sidebar-link {
    display: inline-block;
    width: 100%;
    text-decoration: none;
    position: relative;
    padding: 3px 10px;
}

.sidebar-wrapper .sidebar-menu ul li form .sidebar-link {
    color: #E6E6FA;
    text-align: left;
    background: none;
    border: none;
}

.sidebar-wrapper .sidebar-menu ul li a i,
.sidebar-wrapper .sidebar-menu ul li form .sidebar-link i{
    margin-right: 10px;
    font-size: 12px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 4px;
    background-color: rgba(0,0,0,.3);
}

.sidebar-wrapper .sidebar-menu ul li a:hover > i::before {
    display: inline-block;
    animation: swing ease-in-out 0.5s 1 alternate;
}

.sidebar-wrapper .sidebar-menu .sidebar-dropdown > a:after {
    font-weight: 900;
    content: "\f105";
    font-style: normal;
    display: inline-block;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    background: 0 0;
    position: absolute;
    right: 15px;
    top: 14px;
}

.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu ul {
    padding: 5px 0;
}

.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li {
    padding-left: 25px;
    font-size: 13px;
}

.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li a:before {
    content: "\f111";
    font-weight: 400;
    font-style: normal;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin-right: 10px;
    font-size: 8px;
}

.sidebar-wrapper .sidebar-menu ul li a span.label,
.sidebar-wrapper .sidebar-menu ul li a span.badge {
    float: right;
    margin-top: 8px;
    margin-left: 5px;
}

.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li a .badge,
.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li a .label {
    float: right;
    margin-top: 0;
}

.sidebar-wrapper .sidebar-menu .sidebar-submenu {
    display: none;
}

.sidebar-wrapper .sidebar-menu .sidebar-dropdown.active > a:after {
    transform: rotate(90deg);
    right: 17px;
}

/*--------------------------side-footer------------------------------*/

.sidebar-footer {
    position: absolute;
    width: 100%;
    bottom: 0;
    display: flex;
}

.sidebar-footer > a {
    flex-grow: 1;
    text-align: center;
    height: 30px;
    line-height: 30px;
    position: relative;
}

.sidebar-footer > a .notification {
    position: absolute;
    top: 0;
}

.badge-sonar {
    display: inline-block;
    background: #980303;
    border-radius: 50%;
    height: 8px;
    width: 8px;
    position: absolute;
    top: 0;
}

.badge-sonar:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    border: 2px solid #980303;
    opacity: 0;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    animation: sonar 1.5s infinite;
}

/*--------------------------page-content-----------------------------*/

.page-wrapper .page-content {
    flex: 1;
    min-width: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

.page-wrapper .page-content .dashboard-summary-counter {
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    z-index: 400;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 6px 8px 20px 8px;
    background: linear-gradient(180deg, rgba(0,0,0,0.01) 0%, rgba(0,0,0,0.45) 100%);
    box-sizing: border-box;
}

.dashboard-summary-counter .dsc-card {
    flex: 1 1 0;
    min-width: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 6px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.5);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-summary-counter .dsc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.22);
}

.dashboard-summary-counter .dsc-card .dsc-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
}

.dashboard-summary-counter .dsc-card .dsc-icon.i-total    { background-image: linear-gradient(135deg, #435ebe, #667eea); }
.dashboard-summary-counter .dsc-card .dsc-icon.i-monitor  { background-image: linear-gradient(135deg, #198754, #20c997); }
.dashboard-summary-counter .dsc-card .dsc-icon.i-online   { background-image: linear-gradient(135deg, #0dcaf0, #0aa2c0); }
.dashboard-summary-counter .dsc-card .dsc-icon.i-offline  { background-image: linear-gradient(135deg, #dc3545, #e35d6a); }
.dashboard-summary-counter .dsc-card .dsc-icon.i-sparing  { background-image: linear-gradient(135deg, #fd7e14, #ffa726); }
.dashboard-summary-counter .dsc-card .dsc-icon.i-wqm      { background-image: linear-gradient(135deg, #6f42c1, #8b5cf6); }
.dashboard-summary-counter .dsc-card .dsc-icon.i-aqm      { background-image: linear-gradient(135deg, #d63384, #e64980); }

.dashboard-summary-counter .dsc-card .dsc-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dashboard-summary-counter .dsc-card .dsc-info .dsc-label {
    font-size: 10px;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-summary-counter .dsc-card .dsc-info .dsc-value {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    line-height: 1.1;
}

@media screen and (max-width: 1200px) {
    .dashboard-summary-counter {
        flex-wrap: wrap;
        gap: 4px;
    }
    .dashboard-summary-counter .dsc-card {
        flex: 0 0 calc(25% - 3px);
        padding: 4px 8px;
    }
    .dashboard-summary-counter .dsc-card .dsc-icon {
        width: 26px;
        height: 26px;
        font-size: 13px;
    }
    .dashboard-summary-counter .dsc-card .dsc-info .dsc-value {
        font-size: 15px;
    }
}

@media screen and (max-width: 768px) {
    .dashboard-summary-counter .dsc-card {
        flex: 0 0 calc(50% - 2px);
    }
}

@media screen and (max-width: 480px) {
    .dashboard-summary-counter .dsc-card {
        flex: 0 0 100%;
    }
}

/*------scroll bar---------------------*/

::-webkit-scrollbar {
    width: 5px;
    height: 7px;
}
::-webkit-scrollbar-button {
    width: 0;
    height: 0;
}
::-webkit-scrollbar-thumb {
    background: #525965;
    border: 0 none #ffffff;
    border-radius: 0;
}
::-webkit-scrollbar-thumb:hover {
    background: #525965;
}
::-webkit-scrollbar-thumb:active {
    background: #525965;
}
::-webkit-scrollbar-track {
    background: transparent;
    border: 0 none #ffffff;
    border-radius: 50px;
}
::-webkit-scrollbar-track:hover {
    background: transparent;
}
::-webkit-scrollbar-track:active {
    background: transparent;
}
::-webkit-scrollbar-corner {
    background: transparent;
}


/*-----------------------------chiller-theme-------------------------------------------------*/

 .sidebar-wrapper {
    background: #003300;
}

 .sidebar-wrapper .sidebar-header,
 .sidebar-wrapper .sidebar-search,
 .sidebar-wrapper .sidebar-menu {
    border-top: 1px solid rgba(255,255,255,.25);
}

 .sidebar-wrapper .sidebar-search input.search-menu,
 .sidebar-wrapper .sidebar-search .input-group-text {
    border-color: transparent;
    box-shadow: none;
}

nav span.user-name a {
    color: yellow;
}

 .sidebar-wrapper .sidebar-header .user-info .user-role,
 .sidebar-wrapper .sidebar-header .user-info .user-status,
 .sidebar-wrapper .sidebar-search input.search-menu,
 .sidebar-wrapper .sidebar-search .input-group-text,
 .sidebar-wrapper .sidebar-brand>a,
 .sidebar-wrapper .sidebar-menu ul li a,
 .sidebar-footer>a {
    color: #E6E6FA;
}

 .sidebar-wrapper .sidebar-menu ul li:hover>a,
 .sidebar-wrapper .sidebar-menu .sidebar-dropdown.active>a,
 .sidebar-wrapper .sidebar-header .user-info,
 .sidebar-wrapper .sidebar-brand>a:hover,
 .sidebar-footer>a:hover i {
    color: #ffffff;

}

.sidebar-wrapper .sidebar-menu ul li.sidebar-item.active>a,
.sidebar-wrapper .sidebar-menu ul li:hover>a,
.sidebar-wrapper .sidebar-menu ul li:hover button{
    background-color: rgba(255,255,255,.1);
    color: white;
}

.page-wrapper.toggled #close-sidebar {
    color: #bdbdbd;
}

.page-wrapper.toggled #close-sidebar:hover {
    color: #ffffff;
}

 .sidebar-wrapper ul li:hover a i,
 .sidebar-wrapper .sidebar-dropdown .sidebar-submenu li a:hover:before,
 .sidebar-wrapper .sidebar-search input.search-menu:focus+span,
 .sidebar-wrapper .sidebar-menu .sidebar-dropdown.active a i {
    color: #16c7ff;
    text-shadow:0 0 10px rgba(0, 0, 0, 0.9);
}

 .sidebar-wrapper .sidebar-menu ul li a i,
 .sidebar-wrapper .sidebar-menu ul li button i
 .sidebar-wrapper .sidebar-menu .sidebar-dropdown div,
 .sidebar-wrapper .sidebar-search input.search-menu,
 .sidebar-wrapper .sidebar-search .input-group-text {
    background: rgba(0,0,0,.3);
}

 .sidebar-wrapper .sidebar-menu .header-menu span {
    color: #6c7b88;
}

 .sidebar-footer {
    background: #3a3f48;
    box-shadow: 0 -1px 5px #282c33;
    border-top: 1px solid #464a52;
}

 .sidebar-footer>a:first-child {
    border-left: none;
}

 .sidebar-footer>a:last-child {
    border-right: none;
}

:root {
    --bs-blue: #435ebe;
    --bs-indigo: #6610f2;
    --bs-purple: #6f42c1;
    --bs-pink: #d63384;
    --bs-red: #dc3545;
    --bs-orange: #fd7e14;
    --bs-yellow: #ffc107;
    --bs-green: #198754;
    --bs-dark-green: #094d00;
    --bs-teal: #20c997;
    --bs-cyan: #0dcaf0;
    --bs-white: #fff;
    --bs-gray: #6c757d;
    --bs-gray-dark: #343a40;
    --bs-gray-100: #f8f9fa;
    --bs-gray-200: #e9ecef;
    --bs-gray-300: #dee2e6;
    --bs-gray-400: #ced4da;
    --bs-gray-500: #adb5bd;
    --bs-gray-600: #6c757d;
    --bs-gray-700: #495057;
    --bs-gray-800: #343a40;
    --bs-gray-900: #212529;
    --bs-primary: #435ebe;
    --bs-secondary: #6c757d;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #f2f7ff;
    --bs-body-color: #607080;
    --bs-body-bg: #f2f7ff;
    --bs-border-color: #dee2e6;
    --bs-link-color: #435ebe;
    --bs-link-hover-color: #364b98;
    --bs-code-color: #d63384;
    --bs-highlight-bg: #fcf8e3;
}

.bg-gray-200 {
    background-color: #f0f2f5 !important;
}

.page-wrapper .page-content .breadcrumb {
    background-color: white;
}

.card {
    --bs-card-spacer-y: 1rem;
    --bs-card-spacer-x: 1rem;
    --bs-card-title-spacer-y: 0.5rem;
    --bs-card-border-width: 0;
    --bs-card-border-color: rgba(0,0,0,.125);
    --bs-card-border-radius: 0.75rem;
    --bs-card-box-shadow: 0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06);
    --bs-card-inner-border-radius: 0.75rem;
    --bs-card-cap-padding-y: 0.5rem;
    --bs-card-cap-padding-x: 1rem;
    --bs-card-cap-bg: #fff;
    --bs-card-bg: #fff;
    --bs-card-img-overlay-padding: 1rem;
    --bs-card-group-margin: 0.75rem;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: var(--bs-card-bg);
    background-clip: border-box;
    border: var(--bs-card-border-width) solid var(--bs-card-border-color);
    border-radius: var(--bs-card-border-radius);
}

.card, .breadcrumb {
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06);
    border: 1px solid rgba(0,0,0,0.2);
}

.card .card-header {
    padding: 1.5rem;
}

.card-header:first-child {
    border-radius: var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius) 0 0;
}

.card-header {
    padding: var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);
    margin-bottom: 0;
    background-color: var(--bs-card-cap-bg);
    border-bottom: var(--bs-card-border-width) solid var(--bs-card-border-color);
    font-weight: 600;
}

.card .card-body {
    font-family: Roboto,Helvetica,Arial,sans-serif;
    padding: 1.5rem;
    padding-top: 0;
}

.card-body {
    flex: 1 1 auto;
    padding: var(--bs-card-spacer-y) var(--bs-card-spacer-x);
}

.tbl .summary {
    padding: 5px;
    border-top: 1px solid var(--bs-gray-400);
    color: var(--bs-gray-600);
    border-bottom: 1px solid var(--bs-gray-400);
}

.tbl .kv-table-header {
    background: none;
    text-transform: uppercase;
    font-weight: 600;
}

hr.horizontal.dark {
    background-image: linear-gradient(90deg,transparent,rgba(0,0,0,.4),transparent);
}
hr.horizontal {
    background-color: transparent;
}
hr {
    border: none;
    height: 1px;
    opacity: 0.25;
}

.card-footer {
    border-top: none;
}

.download-option {
    display: inline-block;
    padding: 0 10px;
}

.tbl .table-condensed > thead > tr > th,
.tbl .table-condensed > tbody > tr > th,
.tbl .table-condensed > tfoot > tr > th,
.tbl .table-condensed > thead > tr > td,
.tbl .table-condensed > tbody > tr > td,
.tbl .table-condensed > tfoot > tr > td {
    padding: 2px 5px;
}

.tbl .btn {
    padding: 2px 6px;
}

.tbl .table > thead > tr > th {
    border-bottom: 1px solid #ddd;
}

.login-container {
    border: 1px solid #35354f;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0.7rem 1.5rem;
    background-color: var(--bs-dark-green);
    color: #eee;
    border-radius: 10px;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.2), 0 22px 70px 4px rgba(0,0,0,0.56), 0 0 0 1px rgba(0, 0, 0, 0.0);
}
.login-logo{
    margin: 1.5rem 0;
}
.profpict-container {
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06);
    overflow: hidden;
}

.profpict-container img {
    width: 100%;
    height: auto;
}

.pp-icon {
    border-radius: 4px;
    border: 1px solid var(--bs-gray-500);
}

.border-radius-xl {
    border-radius: .75rem;
}
.icon-lg {
    width: 64px;
    height: 64px;
}
.icon-shape {
    width: 48px;
    height: 48px;
    background-position: 50%;
    border-radius: .5rem;
}
.bg-gradient-dark {
    background-image: linear-gradient(195deg,#42424a,#191919);
}
.shadow-dark {
    box-shadow: 0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(64,64,64,.4) !important;
}
.text-center {
    text-align: center !important;
}
.mt-n4 {
    margin-top: -1.5rem !important;
}
.position-absolute {
    position: absolute !important;
}

.text-end {
    text-align: right !important;
}

.icon-lg i {
    top: 31%;
    font-size: 1.5rem;
}
.icon-shape i {
    color: #fff;
    opacity: .8;
    top: 11px;
    position: relative;
}

.bg-gradient-primary {
    background-image: linear-gradient(195deg, #ec407a, #d81b60);
}
.bg-gradient-secondary {
    background-image: linear-gradient(195deg, #747b8a, #495361);
}
.bg-gradient-success {
    background-image: linear-gradient(195deg, #66bb6a, #43a047);
}
.bg-gradient-info {
    background-image: linear-gradient(195deg, #49a3f1, #1a73e8);
}
.bg-gradient-warning {
    background-image: linear-gradient(195deg, #ffa726, #fb8c00);
}
.bg-gradient-danger {
    background-image: linear-gradient(195deg, #ef5350, #e53935);
}
.bg-gradient-light {
    background-image: linear-gradient(195deg, #ebeff4, #ced4da);
}
.bg-gradient-dark {
    background-image: linear-gradient(195deg, #42424a, #191919);
}

.text-sm {
    font-size: .875rem !important;
    font-weight: 300;
}
.text-sm {
    line-height: 1.5;
}
.text-capitalize {
    text-transform: capitalize !important;
}

fieldset {
    border: 1px solid green;
    padding: 10px !important;
    margin-bottom: 10px !important;
    font-size: 1.1em;
}

legend {
    padding: 0.2em 0.5em;
    border: 1px solid green;
    color: #0b3e6f;
    font-size: 95%;
    text-align: right;
    width: auto !important;
    margin-bottom: 0 !important;
    font-weight: bold;
    background-color: #eeeeee;
}

.form-img-container img {
    width: 100%;
}

#crud-datatable .pagination {
    padding-left: 10px;
    padding-right: 10px;
}

.tbl .kv-table-header .data-header {
    text-align: center;
    text-transform: none;
    vertical-align: middle;
}

.tbl .kv-table-header .data-header span{
    font-size: 0.9em;
    color: var(--bs-gray-600);
    display: block;
}

.tbl .kv-sort-link {
    position: relative;
}

.tbl .kv-sort-link .kv-sort-icon {
    position: absolute;
    right: -16px;
    top: 0;
}

.tbl .kv-sort-link.asc::after, .tbl .kv-sort-link.desc::after {
    content: "";
    position: absolute;
    right: -18px;
    top: 12px;
    left: unset;
}

.overview {
    margin: 0 0 15px 0; border: 1px solid #AAAAAA; background: white; overflow: hidden;
}

.overview .row .col-sm{
    padding: 0;
    border-top: 1px solid #AAAAAA;
    border-right: 1px solid #AAAAAA;
}

.overview .cerobong{
    padding: 5px;
    font-weight: bold;
}

.overview .waktu{
    padding: 0 5px 5px 5px;
    font-weight: bold;
    font-size: 0.8rem;
    color: var(--bs-gray-600);
}

.overview .row .col-sm:last-of-type{
    border-right: none;
}
.overview .overview-head {
    color: white;
    font-weight: 500;
    text-align: center;
    font-size: 0.8rem;
}

.overview .overview-foot {
    border-top: 1px solid #AAAAAA;
    background-color: var(--bs-gray-200);
    text-align: center;
    font-weight: 400;
    color: #777777;
    text-shadow: 1px 1px 2px #ffffff;
}

.overview .overview-body {
    text-align: center;
    font-weight: 600;
    font-size: 2em;
    color: #333333;
}

.highlight {
    font-weight: bold;
    color: purple;
}

.third label {
    display: inline-block;
    box-sizing: border-box;
    width: 30%;
    overflow: hidden;
}

.styled-table {
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    font-family: sans-serif;
    width: 100%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.styled-table thead tr {
    background-color: #009879;
    color: #ffffff;
    text-align: left;
}

.styled-table th,
.styled-table td {
    padding: 12px 15px;
}

.progress-loading {
    height: 100%;
    width: 100%;
    position: absolute;
    background-color: rgba(0,0,0,.2);
    z-index: 999;
}

.leaflet-pulsing-icon {
    pointer-events: none !important;
}

.rightbar-header {
    padding: 10px;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.popup-header {
    font-weight: bold;
    font-size: 1.1em;
}

.popup-title {
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 10px;
    color: darkgoldenrod;
}

.grid-container {
    display: grid;
    column-gap: 10px;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
}

.icon {
    font-size: 1.7142857143rem;
    line-height: 1;
}

.grid-stasiun-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.popup-content {
    color: #888;
    margin-bottom: 8px;
}

.box {
    border-radius: 5px;
    box-shadow: 0 30px 40px -20px hsl(229, 6%, 66%);
    padding: 30px;
    margin: 20px;
    position: relative;
    cursor: pointer;
    background-color: white;

    transition: box-shadow 0.5s ease-in-out;
    -moz-transition: box-shadow 0.5s ease-in-out;
    -webkit-transition: box-shadow 0.5s ease-in-out;
}

.box:hover {
    box-shadow: 0 30px 40px -20px hsl(229, 57%, 20%);

}

.box .type {
    position: absolute;
    border-radius: 4px;
    background-color: #1a73e8;
    color: white;
    right: 4px;
    top: 4px;
    padding: 2px 8px;
    font-size: 0.85em;
}

.box .btn {
    padding: 1px 3px;
    margin-bottom: 2px;
    font-size: 0.9em;
}

.box h2 {
    color: hsl(234, 12%, 34%);
    font-weight: 600;
    margin: 0 0 10px 0;
    font-size: 16px;
}

.box span.label {
    display: block;
    font-weight: bold;
    color: hsl(234, 12%, 34%);
    text-align: left;
    margin: 0;
    padding: 0;
}

.box div.detail {
    border-bottom: 2px solid rgba(0,0,0,0.3);
    margin-bottom: 10px;
}


.cyan {
    border-top: 3px solid var(--cyan);
}
.red {
    border-top: 3px solid var(--red);
}
.blue {
    border-top: 3px solid var(--blue);
}
.orange {
    border-top: 3px solid var(--orange);
}

#loading-bar-spinner.spinner {
    left: 50%;
    margin-left: -20px;
    top: 50%;
    margin-top: -20px;
    position: absolute;
    z-index: 19 !important;
    -webkit-animation: loading-bar-spinner 400ms linear infinite;
    animation: loading-bar-spinner 400ms linear infinite;
}

#loading-bar-spinner.spinner .spinner-icon {
    width: 40px;
    height: 40px;
    border: solid 4px transparent;
    border-top-color: #00C8B1 !important;
    border-left-color: #00C8B1 !important;
    border-radius: 50%;
}

.box-panel .title {
    text-shadow: -1px -1px 0 rgba(0,0,0,0.6),
    1px -1px 0 rgba(0,0,0,0.6),
    -1px 1px 0 rgba(0,0,0,0.6),
    1px 1px 0 rgba(0,0,0,0.6);
}

.box-panel.info-box .title{
    background-color: rgba(0,215,215,1);
}
.box-panel.info-box .icon-text{
    background-color: rgba(0,195,195,1);
}
.box-panel.info-box .detail{
    background-color: rgba(0,175,175,1);
}


.box-panel.success-box .title{
    background-color:#B0DA7A;
}
.box-panel.success-box .icon-text{
    background-color:#8CC149;
}
.box-panel.success-box .detail{
    background-color:#7DAC40;
}

.box-panel.danger-box .title{
    background-color:rgba(228,145,255,1);
}
.box-panel.danger-box .icon-text{
    background-color: rgba(198,115,255,1);
}
.box-panel.danger-box .detail{
    background-color: rgba(178,95,235,1);
}

.box-panel.lightblue-box .title{
    background-color:rgba(135,206,250,1);
}
.box-panel.lightblue-box .icon-text{
    background-color:rgba(115,186,230,1);
}
.box-panel.lightblue-box .detail{
    background-color:rgba(95,166,210,1);
}

.box-panel.pink-box .title{
    background-color:rgba(255, 182, 193,1);
}
.box-panel.pink-box .icon-text{
    background-color:rgba(235, 162, 173,1);
}
.box-panel.pink-box .detail{
    background-color:rgba(215, 142, 153,1);
}

.box-panel.orange-box .title{
    background-color:rgba(255, 179, 71,1);
}
.box-panel.orange-box .icon-text{
    background-color:rgba(235, 159, 51,1);
}
.box-panel.orange-box .detail{
    background-color:rgba(215, 139, 31,1);
}

.box-panel{
    display: inline-block;
    color:#fff;
    border-radius: 3px;
}

.box-panel .title{
    border-radius: 5px 5px 0 0;
    text-align: center;
    padding:7px 0;
}
.box-panel .title p{
    margin:0;
    font-size:1.3em;
}
.box-panel .icon-text{
    padding:5px 10px;
}
.box-panel .icon{
    font-size:30px;
    float:left;
    width:20%;
}
.box-panel .text{
    width:80%;
    float:right;
    text-align: right;
}
.box-panel .text h1{
    margin:0;
    font-size:25px;
}
.box-panel .detail{
    cursor: pointer;
    border-radius: 0 0 5px 5px;
}
.box-panel .detail a{
    color:#fff;
}
.box-panel .detail a p{
    display: inline-block;
    margin: 0;
    font-size: 12px;
    padding:10px;
}
.box-panel .detail a i{
    float:right;
    padding: 10px 5px 0 0;
}

@-webkit-keyframes loading-bar-spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes loading-bar-spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media screen and (max-width: 480px) {
    .tbl .kv-table-wrap th, .kv-table-wrap td {
        display: table-cell;
        width: 100% !important;
        text-align: center;
        font-size: 1em;
    }

    .tbl .kv-table-wrap tr > td:first-child {
        border-top: 1px solid #ddd;
        margin-top: 10px;
        font-size: 1em;
    }

    .grid-stasiun-container {
        grid-template-columns: repeat(1, 1fr);
    }

}

@media screen and (max-width: 810px) {
    .page-wrapper {
        display: block;
    }

    .sidebar-wrapper {
        position: fixed;
        left: -300px;
        width: 260px;
        transition: left 0.3s ease, width 0.3s ease;
    }

    .page-wrapper.toggled .sidebar-wrapper {
        left: 0;
        width: 260px;
    }

    /* Reset collapsed styles on mobile when sidebar is visible */
    .page-wrapper.toggled .sidebar-wrapper .sidebar-brand {
        padding: 10px;
    }

    .page-wrapper.toggled .sidebar-wrapper .sidebar-brand img {
        width: auto;
        height: auto;
    }

    .page-wrapper.toggled .sidebar-wrapper .sidebar-brand #close-sidebar {
        display: block;
    }

    .page-wrapper.toggled .sidebar-wrapper .sidebar-header {
        justify-content: flex-start;
        padding: 20px;
    }

    .page-wrapper.toggled .sidebar-wrapper .sidebar-header .user-pic {
        width: 60px;
    }

    .page-wrapper.toggled .sidebar-wrapper .sidebar-header .user-info {
        display: block;
    }

    .page-wrapper.toggled .sidebar-wrapper .sidebar-menu ul li a span,
    .page-wrapper.toggled .sidebar-wrapper .sidebar-menu ul li form .sidebar-link span {
        display: inline;
    }

    .page-wrapper.toggled .sidebar-wrapper .sidebar-menu ul li a i,
    .page-wrapper.toggled .sidebar-wrapper .sidebar-menu ul li form .sidebar-link i {
        margin-right: 10px;
    }

    .page-wrapper.toggled .sidebar-wrapper .sidebar-title {
        display: block;
    }

    .page-wrapper.toggled .sidebar-wrapper .sidebar-menu .sidebar-dropdown > a:after {
        display: inline-block;
    }

    .page-wrapper.toggled .sidebar-wrapper .sidebar-menu .sidebar-submenu {
        display: none;
    }

    .page-wrapper.toggled #show-sidebar {
        left: -40px;
    }

    #show-sidebar {
        left: 0;
    }

    .page-wrapper .page-content {
        height: auto;
    }
}

@media screen and (max-width: 840px) {
    .grid-stasiun-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media screen and (min-width: 840px) and (max-width: 1140px) {
    .grid-stasiun-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1140px) and (max-width: 1378px) {
    .grid-stasiun-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 1378px) and (max-width: 1580px)  {
    .grid-stasiun-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.page-content .breadcrumb {
    border-radius: 0;
}

/* IoT popup styles (added by refactor) */
.iot-popup-card{font-family:Arial,Helvetica,sans-serif;font-size:13px;color:#111827;background:#ffffff;min-width:220px;max-width:340px}
.iot-popup-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.iot-popup-name{font-weight:600;line-height:1.1}
.iot-popup-type{font-size:11px;color:#6b7280;background:#f3f4f6;padding:4px 6px;border-radius:6px}
.iot-popup-row{display:flex;gap:10px;font-size:12px;color:#374151;margin-bottom:6px}
.iot-popup-label{flex:0 0 86px;color:#6b7280}
.iot-popup-value{flex:1}
.iot-popup-params{margin-bottom:6px}
.iot-popup-params-label{font-size:11px;color:#6b7280;margin-bottom:4px}
.iot-popup-params-list{display:flex;flex-wrap:wrap;gap:6px}
.iot-popup-footer{display:flex;align-items:center;justify-content:space-between;margin-top:6px;border-top:1px solid #f1f5f9;padding-top:6px}
.iot-popup-last{font-size:12px;color:#374151}
.iot-popup-last-label{font-size:11px;color:#6b7280}
.iot-popup-btn{display:inline-block;padding:6px 10px;background:linear-gradient(180deg,#2563eb,#1d4ed8);color:#fff;border-radius:6px;text-decoration:none;font-size:12px}
.leaflet-container a.iot-popup-btn {color: white}