/* #step_zero, */

.ui.steps .step.active {
    cursor: auto;
    background: #09a04b;
    color: #fff !important;
    height: 50px !important;
}

.ui.mini.steps .step,
.ui.mini.step {
    font-size: 0.78571429rem;
    height: 50px !important;
}

.ui.steps .step.active .title {
    color: #000;
    color: #fff !important;
    padding-left: 3px;
}

.ui.grid>.column:not(.row) {
    padding-top: 0px !important;
    padding-bottom: 1rem;
}

.ui.green.buttons .button:hover,
.ui.green.button:hover {
    background-color: #09a04b;
    color: #FFFFFF;
    text-shadow: none;
}

.ui.grid>.column:not(.row) {
    padding-top: 2px !important;
    padding-bottom: 1rem;
}

.ui.steps {
    margin: 0em 0em !important
}

.titlehd {
    color: #068606;
}

#step_one,
#step_one_2,
#step_two,
#step_two_2,
#step_three,
#step_three_2,
#step_one_3,
#step_four {
    display: none;
}

::-webkit-scrollbar {
    width: 4px !important;
}

#crudsectionbgview {
    border: 1px solid;
    padding-left: 30px;
    padding-right: 30px;
    border-radius: 4px;
}

::-webkit-scrollbar-track {
    background-color: #00b62d;
}

::-webkit-scrollbar-thumb {
    background-color: #00b62d;
}

.crud_section_2 .container .row {
    padding-left: 16px;
}

.ui.red.button,
.ui.red.buttons .button {
    background-color: #8d100e;
}

.ui.grid {
    margin-top: 4px !important;
}

.ui.red.button:hover {
    background-color: #540b09;
}

.ieics {
    padding-left: 10px;
    font-size: 1.6rem !important;
    text-decoration: none;
    font-family: 'Open Sans', Sans-Serif !important;
    border-bottom: none !important;
    padding-top: 7px;
}

.ui.red.button:focus {
    background-color: #540b09;
}

.ui.steps .step.active .title {
    color: #000;
}

#error-msg {
    display: none;
}

.form-wrapper {
    position: relative;
}

#loader {
    display: none;
    position: absolute;
    width: 98%;
    height: 93%;
    left: 14px;
    top: 15px;
}

.ui.green.buttons .button:hover,
.ui.green.button {
    background-color: #09a04b;
    color: #FFFFFF;
    text-shadow: none;
}

.tab {
    overflow: hidden;
    /*border: 1px solid #ccc;*/
    /*background-color: #f1f1f1;*/
}
.btn{
 font-size: 16px !important;
    font-weight: 500 !important;
}
   

.tab button {
    background-color:#09a04b;
    float: left;
    outline: none;
    cursor: pointer;
    padding: 8px 10px;
    transition: 0.3s;
    font-weight: 700;
    color: #ffffff;
    border: 0px solid #09a04b !important;
    border-radius: 0px !important;
    margin: 1px;
    border-radius: 4px !important
}

.tab button:hover {
    background-color: #09a04b;
}

.tab button.active {
    background-color: #e0e0e0 !important;
}

.tabcontent {
    display: none;
    border: 1px solid #ccc;
    border-top: none;
}

#crudsectionbg .col-md-12,
.col-lg-12 {
    padding-right: 0px !important;
    padding-left: 0px !important;
}

.viewsection {
    padding-right: 12px !important;
    padding-left: 12px !important;
    width: 100% !important;
}

.crudsectiontwo .headerTitle {
    margin-left: 15px !important;
    margin-right: 15px;
}

.formsection {
    border: 1px solid #e8e4e4;
    padding: 10px;
    border-radius: 6px;
}

#crudsectionbg {
    border: 1px solid;
    padding: 10px;
    border-radius: 4px;
}

#crudsectionbg .col-md-12,
.col-lg-12 {
    padding-right: 0px !important;
    padding-left: 0px !important;
    padding: 2px;
}

#crudsectionbg .header-title-details {
    padding-right: 0px !important;
    padding-right: 0px !important;
    border-bottom: 1px solid #b3b3b3;
    margin-left: 14px;
    margin-right: 2%;
}

.approve_btn_inspection {
    margin-left: 14px;
}

.crudsectionbg .form-group {
    margin-bottom: 0px !important;
    /* background: #f4f4f4; */
    border-bottom: 0px !important;
    padding-bottom: 2px;
}

.actionbuttons a {
    margin-right: 6px;
}

.groupname {
    margin-left: 15px;
    margin-right: 15px;
}

button .fa {
    padding-left: 10px;
    padding-right: 10px;
}

.crudsectionbg .headerTitle {
    margin-left: 13px !important;
}

.actionbuttonsbtn {
    padding-left: 3%;
    padding-right: 3%;
}




        /* Grid */
        .device-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
            gap: 20px;
        }

        /* Card */
        .device-container {
            background: #fff;
            border-radius: 14px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            transition: all 0.3s ease;
        }

        .device-container:hover {
            transform: translateY(-2px);
            box-shadow: 0 14px 40px rgba(0,0,0,0.12);
        }

        .device-container.expanded {
            grid-column: 1 / -1;
        }

        /* Header */
        .device-header {
            padding: 14px 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            /* background: #201547 !important; */
            background: linear-gradient(135deg, #201547, #2a5298);
            color: #fff;
        }

        .device-title {
            font-weight: 600;
            font-size: 14px;
        }

        .device-sub {
            font-size: 12px;
            opacity: 0.85;
        }

        /* Buttons */
        .device-actions button {
            background: rgba(255,255,255,0.15);
            border: none;
            color: #fff;
            padding: 6px 10px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 12px;
            transition: background 0.2s ease;
        }

        .device-actions button:hover {
            background: rgba(255,255,255,0.3);
        }

        /* Map */
        .device-map {
            height: 320px;
        }

        /* Popup */
        .leaflet-popup-content-wrapper {
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.2);
        }

        .leaflet-popup-content {
            font-size: 13px;
            line-height: 1.5;
        }

        .popup-row {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 4px;
        }

        .popup-row b {
            color: #333;
        }

        



        .cargo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 12px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 18px;
}

/* LEFT */
.cargo-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cargo-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.cargo-subtitle {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
    margin-top: 2px;
}

/* Tabs */
.cargo-tabs {
    display: flex;
    gap: 8px;
}

.cargo-tab {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cargo-tab:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4338ca;
}

.cargo-tab.active {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

/* RIGHT */
.cargo-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Notification */
.icon-btn {
    position: relative;
    cursor: pointer;
}

.bell-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    background: #374151;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'><path stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6 6 0 10-12 0v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9'/></svg>") no-repeat center / contain;
}

.badge {
    position: absolute;
    /* top: -6px; */
    /* right: -6px; */
    background: #ef4444;
    /* color: #ffffff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px; */
}

/* User */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.logout-btn {
    background: transparent;
    border: 1px solid #e5e7eb;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s ease;
}

.logout-btn:hover {
    background: #f3f4f6;
}




.notifications-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
    gap: 16px;
}

/* Notification card */
.notification-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border-left: 4px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Unread highlight */
.notification-card.unread , .notification-card{
    border-left-color: #4f46e5;
    background: #f5f7ff;
}

/* Header */
.notification-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.notification-time {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}

/* Body */
.notification-body p {
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
    margin: 6px 0 0;
}

/* Footer */
.notification-footer {
    margin-top: auto;
    display: flex;
    gap: 10px;
    font-size: 11px;
}

/* Priority tags */
.priority {
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 500;
}

.priority.medium {
    background: #fef3c7;
    color: #92400e;
}

.priority.high {
    background: #fee2e2;
    color: #991b1b;
}

.type {
    color: #6b7280;
}


.notification-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.btn-read,
.btn-attend {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: 0.2s ease;
}

/* Read */
.btn-read {
    background: #e0e7ff;
    color: #3730a3;
}

.btn-read:hover {
    background: #c7d2fe;
}

/* Attend */
.btn-attend {
    background: #dcfce7;
    color: #166534;
}

.btn-attend:hover {
    background: #bbf7d0;
}

/* Attended label */
.attended-label {
    font-size: 11px;
    padding: 4px 8px;
    background: #e5e7eb;
    border-radius: 999px;
    color: #374151;
}


.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-box {
    background: #ffffff;
    width: 420px;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-box h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
}

.modal-box textarea {
    width: 100%;
    min-height: 90px;
    resize: none;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 10px;
    font-size: 13px;
}

.modal-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-cancel {
    background: #f3f4f6;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-confirm {
    background: #16a34a;
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-confirm:hover {
    background: #15803d;
}



.read-label {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-weight: 500;
}


.inspectionssection {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: none;
}
.ibox-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #e5e7eb;
}

.ibox-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
#devicetableview {
    border-collapse: separate;
    border-spacing: 0 10px;
    background: transparent;
}

#devicetableview thead th {
    /* background: #f9fafb;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 10px;
    border: none; */
}

#devicetableview tbody tr {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* #devicetableview tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
} */

#devicetableview tbody td {
    padding: 12px 2px;
    font-size: 13px;
    color: #374151;
    border: none;
}

/* Rounded row corners */
#devicetableview tbody tr td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

#devicetableview tbody tr td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}
.row-checkbox,
#selectAll {
    width: 16px;
    height: 16px;
    accent-color: #4f46e5;
    cursor: pointer;
}
.dropdown .btn-primary {
    background: #4f46e5;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    padding: 6px 12px;
}

.dropdown-menu {
    border-radius: 12px;
    border: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    padding: 6px;
}

.dropdown-item {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.dropdown-item:hover {
    background: #eef2ff;
    color: #4338ca;
}
.dataTables_wrapper .dataTables_filter input {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 6px 10px;
    font-size: 13px;
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 4px 8px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px;
    border: none !important;
    background: #f3f4f6 !important;
    margin: 0 2px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #4f46e5 !important;
    color: #ffffff !important;
}
.ui.inverted.dimmer {
    background: rgba(255, 255, 255, 0.85) !important;
}

.ui.text.loader {
    color: #4f46e5 !important;
    font-weight: 600;
}


.notification-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-actions {
    display: flex;
    gap: 6px;
    /* margin-left: 10px; */
}

.icon-btn {
    border: none;
    background: #f1f5f9;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: #e2e8f0;
}

.read-btn i { color: #10b981; }
.attend-btn i { color: #3b82f6; }

.attended-label {
    font-size: 12px;
    color: #10b981;
    font-weight: 600;
}
.pulse {
  animation: pulse 0.6s ease;
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}


#device_list .card{
padding: 16px;
}

.device-container {
    border: 1px solid #ddd;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.device-container.expanded {
    flex: 1 1 100%;
    z-index: 10;
    position: relative;
}

.device-header {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    /* background: #f1f1f1; */
    font-weight: 500;
}

/* .device-info {
    display: flex;
    flex-direction: column;
} */

.device-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.device-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* LEFT SIDE */
.device-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.device-pin {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.device-title {
    font-weight: 700;
    font-size: 14px;
    color: #212529;
}

.device-id {
    font-size: 12px;
    color: #6c757d;
}

/* STATUS BADGE */
.device-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.device-badge.offline {
    background: #dc3545;
    color: #fff;
}

.device-badge.online {
    background: #198754;
    color: #fff;
}


.device-title { font-weight: bold; }
.device-sub { font-size: 0.85rem; color: #555; }

.device-actions { display: flex; align-items: center; gap: 6px; }

.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
}

.status-badge.moving { background: #28a745; }
.status-badge.idle { background: #6c757d; }

.moving-card {
    animation: pulse 1.5s infinite;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
} */

.device-map {
    width: 100%;
    height: 200px;
    border-top: 1px solid #ddd;
    border-radius: 0 0 12px 12px;
}

.device-container.hovered {
    /* box-shadow: 0 4px 12px rgba(0,0,0,0.15); */
}


/* ===== DEVICE LIST PANEL ===== */
#device_list {
    padding: 4px;
}

/* Single device row */
.device-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 6px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: none !important;
    transition: background 0.2s ease, border 0.2s ease;
}

/* Hover */
.device-card:hover {
    background: #f1f5f9;
}

/* Active / selected */
.device-card.active {
    background: #e6f0ff;
    border-left: 4px solid #0d6efd;
}

/* Icon on the left */
.device-icon {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

/* Device text block */
.device-info {
    flex: 1;
    line-height: 1.2;
}

/* Device number */
.device-sn {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

/* Sub text */
.device-sub {
    font-size: 12px;
    color: #6b7280;
}

/* Right side status */
.device-status {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
}

.device-status.moving {
    background: #dcfce7;
    color: #166534;
}

.device-status.idle {
    background: #fee2e2;
    color: #991b1b;
}

/* ===== DEVICE LIST PANEL ===== */
#device_list {
    padding: 6px;
}

/* Device Row */
.device-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 6px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.device-card:hover {
    background: #f1f5f9;
}

/* Selected device */
.device-card.active {
    background: #e6f0ff;
    border-left: 4px solid #0d6efd;
}

/* Left icon */
.device-icon {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

/* Device info */
.device-info {
    flex: 1;
    line-height: 1.2;
}

.device-sn {
    font-weight: 600;
    font-size: 14px;
}

.device-sub {
    font-size: 12px;
    color: #6b7280;
}

/* Status badge */
.device-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

.device-status.moving {
    background: #dcfce7;
    color: #166534;
}

.device-status.idle {
    background: #fee2e2;
    color: #991b1b;
}

.card-header{

    background-color: #201547;
}

/* ===== Tracker Popup ===== */
.tracker-card {
    width: 260px;
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    box-shadow: 0 8px 25px rgba(0,0,0,.2);
}

.tracker-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.tracker-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.online {
    background: #28a745;
}

.dot.offline {
    background: #dc3545;
}

.tracker-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.tracker-actions button {
    border: none;
    background: #0d6efd;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

.tracker-actions button:hover {
    background: #084298;
}

/* Hide Google default close icon */
.gm-style-iw-chr {
    display: none;
}

/* Remove default bubble padding */
.gm-style-iw-d {
    overflow: visible !important;
}


/* DEVICE STATUS */
.device-status {
    padding: 4px 4px;
    border-radius: 8px;
    font-size: 8px;
    font-weight: 400;
    color: #fff;
    text-transform: uppercase;
}

/* ONLINE */
.device-status.online {
    background-color: #28a745; /* green */
}

/* OFFLINE */
.device-status.offline {
    background-color: #dc3545; /* red */
}



/* ================= CARDS ================= */
.notification-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.notification-card.unread {
    border-left: 4px solid #0d6efd;
}

.notification-header {
    display: flex;
    justify-content: space-between;
}

.notification-title {
    font-weight: 600;
}

.notification-time {
    font-size: 12px;
    color: #888;
}

/* ================= PRIORITY ================= */
.priority {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.priority.critical {
    background: rgba(220,53,69,0.15);
    color: #dc3545;
}

.priority.critical::before {
    content: "🚨";
    animation: pulse 1.5s infinite;
}

.priority.high {
    background: rgba(255,159,67,0.15);
    color: #ff9f43;
}

.priority.medium {
    background: rgba(255,193,7,0.18);
    color: #ffc107;
}

.priority.low {
    background: rgba(13,110,253,0.12);
    color: #0d6efd;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* ================= ACTIONS ================= */
.notification-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-map {
    background: #f1f3f5;
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-map:hover {
    background: #0d6efd;
    color: #fff;
}

/* ================= PAGINATION ================= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: 20px 0;
}

.pagination button {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
}

.pagination button:hover:not(:disabled) {
    background: #0d6efd;
    color: #fff;
}

.pagination button:disabled {
    opacity: 0.5;
}

.page-info {
    font-size: 14px;
    color: #666;
}


.map-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.map-modal-content {
    width: 80%;
    max-width: 900px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.map-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #0d6efd;
    color: #fff;
    font-weight: 600;
}

.map-modal-header button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}


/* Base device marker */
.device-marker {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Active / selected device */
.device-marker--active {
    transform: scale(1.3);
    z-index: 1000 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.35),
                0 0 15px rgba(59, 130, 246, 0.9);
    border-radius: 50%;
}

/* Pulsing focus ring */
.device-marker--active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160%;
    height: 160%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.7);
    animation: device-pulse 1.6s ease-out infinite;
    pointer-events: none;
}

@keyframes device-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

.device-marker--dim {
    opacity: 0.3;
}



/* ================= GEOFENCE HOVER ================= */

.geofence-hover-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 12px;
    min-width: 200px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.geofence-hover-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2px;
}

.geofence-hover-type {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #2563eb;
    background: #e0e7ff;
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: 6px;
}

.geofence-hover-desc {
    font-size: 12px;
    color: #4b5563;
    margin-top: 4px;
    line-height: 1.4;
}
