.md-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	width: 50%;
	max-width:500px;
	height: auto;
	z-index: 200000;
	visibility: hidden;
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transform: translateX(-50%) translateY(-50%);
	-moz-transform: translateX(-50%) translateY(-50%);
	-ms-transform: translateX(-50%) translateY(-50%);
	transform: translateX(-50%) translateY(-50%);
}
.md-modal-openapi {
	position: fixed;
	top: 50%;
	left: 50%;
	width: 50%;
	max-width:1000px;
	height: auto;
	z-index: 200000;
	visibility: hidden;
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transform: translateX(-50%) translateY(-50%);
	-moz-transform: translateX(-50%) translateY(-50%);
	-ms-transform: translateX(-50%) translateY(-50%);
	transform: translateX(-50%) translateY(-50%);
}

.md-show {
	visibility: visible;
}

.md-overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	visibility: hidden;
	top: 0;
	left: 0;
	z-index: 100000;
	opacity: 0;
	background: rgba(0, 0, 0, 0.50);
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.md-show ~ .md-overlay {
	opacity: 1;
	visibility: visible;
}

/* Content styles */
.md-content {
	color: #000;
	background: #FFF;
	-webkit-box-shadow: 0 14px 19px rgba(0, 0, 0, 0.32);
	-moz-box-shadow: 0 14px 19px rgba(0, 0, 0, 0.32);
	box-shadow: 0 14px 19px rgba(0, 0, 0, 0.32);
	position: relative;
	border-top: 3px solid #4f8d00;
}

/* Effect 1: Fade in and scale up */
.md-effect-1 .md-content {
	-webkit-transform: scale(0.7);
	-moz-transform: scale(0.7);
	-ms-transform: scale(0.7);
	transform: scale(0.7);
	opacity: 0;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.md-show.md-effect-1 .md-content {
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
	opacity: 1;
}

.md-close {
	position: absolute;
	top: 25px;
	right: 22px;
	line-height: 20px;
}

.md-close img {
	height: 20px;
	width: auto;
}

.popTxt {
	text-align:center;
	padding: 12px 16px;
	font-size:20px;
	line-height:23px;
}

.popTxt p {
	padding: 50px 0;
}

#reSchedulePopup .popTxt {
	padding: 0;
	background: #f0f0f0;
}

#reSchedulePopup .time-schedule-btn-group {
	padding: 12px 16px;
}

.popTxtPad {
	padding: 30px 0;
}

.popBtm {
	padding:10px 0 20px 0;
	text-align:center;
}

.popBtn {
	background: #42b1c5;
	text-align: center;
	width: 100px;
	text-transform: uppercase;
	color: #FFF;
	font-size: 18px;
	display: inline-block;
	line-height: 30px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	margin-right:15px;
	-webkit-font-smoothing: antialiased;
	-moz-font-smoothing: antialiased;
}

.popupHeading {
	font-size: 20px;
	text-align: left;
	color: rgba(2, 2, 2, 0.70);
	line-height: 60px;
	background: #f0f0f0;
	padding-left: 26px;
	-webkit-font-smoothing: antialiased;
	-moz-font-smoothing: antialiased;
}

.popupSubHeading {
	background: #f8f8f8;
	border-bottom: 1px solid rgba(217, 217, 217, 0.50);
	border-top: 1px solid rgba(217, 217, 217, 0.50);
	height: 32px;
	line-height: 30px;
	font-size: 18px;
	color: #000;
	-webkit-font-smoothing: antialiased;
	-moz-font-smoothing: antialiased;
}

.popupSubHeadingLeft {
	float: left;
	padding-left: 17px;
}

.popupSubHeadingRight {
	float: right;
	padding-right: 17px;
	-webkit-font-smoothing: antialiased;
	-moz-font-smoothing: antialiased;
}

.popAssignBtn, .popCancelBtn {
	width: 110px;
	display: inline-block;
}

.assignBtm {
	text-align: right;
	padding-right: 20px;
}

.cancelLnk {
	font-size: 18px;
	color: rgba(0, 0, 0, 0.60);
	line-height: 36px;
	margin-right: 20px;
}

.cancelLnk:hover {
	text-decoration: underline;
}

.popup-info {
	font-size: 18px;
	padding: 10px;
	min-height: 100px;
	color: rgba(2, 2, 2, 0.7);
}

#deviceActions {
	max-width: 75%;
}

#setGeoFence {
    height: 80%;
    max-width: 90%;
    width: 100%;
}

#setGeoFence .md-content, #setGeoFence .popTxt {
	height: 100%;
}

#setGeoFence #map_canvas {
	max-height: 70% !important;
	height: 100% !important;
}

#ic-modal {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 830px;
    max-height: 90vh;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    z-index: 99999;
    flex-direction: column;
    overflow: hidden;
}

#ic-modal .dataTables_scrollBody {
    overflow-x: hidden !important;
}

/* Header */
#ic-modal .ic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #4f8d00;
    color: #fff;
    flex-shrink: 0;
}

#ic-modal .ic-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}


#ic-modal .ic-header .ic-close:hover {
    opacity: 0.9;
    background: white;
    color: #ff0000e0;
    scale: 1.05;
    font-weight: 600;
}

#ic-modal .ic-header .ic-close {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;      
    justify-content: center;  
    font-size: 24px;
    color: green;
    border: 1px solid #d0d0d0;
    border-radius: 5px;
    background: #e8e8e8;
}

#ic-modal .ic-body {
	font-size: 14px;
    padding-left: 30px;
    padding-right: 30px;
    overflow-y: auto;
	overflow-x: hidden; 
	color: #000;
    flex: 1;
	position: relative;
}

#ic-table-overlay {
	display: none;
	position: absolute;
	top: 90px;
	left: 18px;
	right: 18px;
	bottom: 18px;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.7);
	z-index: 10;
	color: #026102;
}

#ic-table-overlay.ic-show {
    display: flex;
}


#ic-modal.ic-show {
    display: flex;
}


#command-table td .ic-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid transparent;
}

#command-table td .ic-badge-success {
    background: #eaf3de;
    color: #3b6d11;
    border-color: #c0dd97;
}

#command-table td .ic-badge-failed {
    background: #fcebeb;
    color: #a32d2d;
    border-color: #f7c1c1;
}


#command-table td .ic-btn-sent {
    background: #eaf3de;
    color: #3b6d11;
    border: 1px solid #c0dd97;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: default;
}

#command-table td .ic-btn-send {
    gap: 6px;
    background: #fff;
    color: #185fa5;
    border: 1px solid #85b7eb;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

#command-table td .ic-btn-send:hover {
    background: #e6f1fb;
}

.dataTables_filter label input {
    width: 68%;
    border-radius: 4px;
    border: 1px solid black;
}

table.dataTable body th td {
	padding: 5px;
}