#content-wrapper{
	padding-bottom: 50px;
}

.topbar .dropdown .dropdown-menu {
	width: calc(100% - 1.5rem);
	right: 0.75rem;
}

ul.control-collection{
	display: flex;
	padding: 0;
}

ul.control-collection li.control{
	display: flex;	
	margin-right: 15px;
}

ul.control-collection li.control .btn{
	font-size: 13px;	
} 

li.control .btn-square-large{
	width: 99px;
	height: 75px;
	display: flex;
	align-items: center;
	justify-content: center;
}

ul.menu-tabs-container{
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-tabs-container .menu-tabs-item{
    border-radius: 10px;
    border: 1px solid #e3e6f0;
    background-color: #f8f9fc;
    text-align:center;
    padding: 10px 0;
    margin-bottom: 5px;
    cursor: pointer;
}
.menu-tabs-container .menu-tabs-item.active{
    background-color: #dcebfb;
    border-bottom: 5px #224abe solid; 
    border-right: none; 
}

.menu-tabs-container .menu-tabs-item .day-of-week{
    font-size:14px;
    font-weight: bold;
    text-transform: uppercase;
}

.menu-tabs-container .menu-tabs-item .date{
    font-size: 16px;
}

.btn{
	cursor: pointer;
}

.center-pushout{
	display: flex;justify-content: space-between;align-items: center;
}

.card-box{
    padding: 0 20px;
    border: 1px solid #e3e6f0;
}

.card-title{
    font-weight: bold;
    text-transform: uppercase;
    font-size: 17px;
}

.card-box .card-title{
    margin: 0px;
}

.card-controls{
    display: flex;
    flex-direction: row;
    margin-left: 75px;
}

.card-controls .card-control{
    text-align: center;
}

.card-controls .card-control label{
    font-size: 12px;
    margin: 0;
}

.card-body {
	padding: .5rem;
}

.card .table{
	margin-bottom: 0;
}

.card .table th{ 
	border-top: none;
	padding-top: .5rem;
	font-size: 12px;
	padding-bottom: .5rem;
	text-align: left;
}

.card .table td{
	font-size: 12px;
}

.card .summary-cell{
	display: flex;
  	flex-direction: column;
  	align-items: center;
  	flex: max-content;
}

.card .summary-cell .summary-title{
	font-weight: bold;
	text-align: center;
	text-transform: uppercase;
	font-size: calc(12px + .05vw);
	word-wrap: normal;
}

.card .summary-cell .summary-text{
	text-align: center;
	font-size: calc(15px + .2vw);
	display: flex;
  	flex: fit-content;
  	align-items: flex-end;
}

.card .card-body .nested-card{
	margin:10px 0;
	padding:15px 12px 15px;
	border: #f0f8ff solid 1px;
	
}

.card .card-body .nested-card .nested-card-title{
	font-weight: bold;
	text-align: center;
	text-transform: uppercase;
}

.card .card-body .nested-card .nested-card-body{
	display: flex; 
  	width: 100%;
  	justify-content: flex-start;
	flex-wrap: wrap;
}

.card .card-body .solid-card{
	font-size: 12px;  
	margin:2px;
	padding: 3px 8px 9px;
	background: #f8f9fc;
	border: #f0f8ff solid 1px;
	border-radius: 22px;
	color: #686868;
	display: flex;
  	flex-direction: column;
	width: 90px;
}

.card .card-body .solid-card .aud-num{
	font-size: 20px;
	line-height: 1.1;
	font-weight: bold;
	float: left;
}

.dataTables_wrapper{
	padding-bottom: 25px;
} 

table td .sub-header{
	font-size: 9px;
	color: #8d8e96;
}

table .compressed td{
	padding-top: 3px;
	padding-bottom: 3px;
}

table.ocd-data th,
table.ocd-data td,
table.pivoted-data td{
	width: 8%;
	text-align: right;
}

table .compressed td.btn-cell{
	width: 10%;
	text-align: center;
}

table.pivoted-data td:first-child, table.pivoted-data th:first-child{
	width: 35% !important;
	font-size: 11px;
	text-align: left;
}

table .dates .day-of-week{
	margin:0;
	text-align: right;
	text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
}

table .dates .date{
	margin:0; 
	text-align: right;
	text-transform: uppercase;
    font-size: 12px;
}

.table th,
.table td {
	font-size: 12px;
	vertical-align: middle;
}

.mr-20{ 
	margin-right: 20px;
}

.fa-caret-down{
	color: #B70003;	 
}

.fa-caret-up{
	color: #00AF04;	
} 

/* Make sortable headers clickable and tidy */
.nxdtable th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

/* Title spacing */
.nxdtable th .th-label {
  vertical-align: middle;
}

/* Container for the two arrows */
.nxdtable th .sort-icons {
  display: inline-flex;
  flex-direction: column;
  margin-left: 6px;
  line-height: 0.8;
  vertical-align: middle;
}

/* Base arrow style (pure CSS triangles) */
.nxdtable th .arrow {
  width: 0;
  height: 0;
  opacity: 0.35;                /* light / “greyed out” by default */
  transition: opacity .15s ease;
}

/* Up triangle */
.nxdtable th .arrow.up {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 7px solid #6c757d;   /* default grey (Bootstrap secondary-ish) */
  margin-bottom: 2px;
}

/* Down triangle */
.nxdtable th .arrow.down {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #6c757d;      /* default grey */
  margin-top: 2px;
}

/* Hover feedback on sortable headers */
.nxdtable th.sortable:hover .arrow {
  opacity: 0.55;
}

/* Active direction: darker and fully opaque */
.nxdtable th .arrow.up.active {
  opacity: 0.95;
  border-bottom-color: #343a40;       /* darker */
}
.nxdtable th .arrow.down.active {
  opacity: 0.95;
  border-top-color: #343a40;          /* darker */
}

/* Optional: emphasize the active column label a bit */
.nxdtable th.sorted-asc .th-label,
.nxdtable th.sorted-desc .th-label {
  color: #343a40;
  /* font-weight: 600;  // uncomment if you want bolder label */
}


/* Container + header */
.code-window.card {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: .75rem;
  overflow: hidden;
}

.code-window__bar {
  background: #f6f8fa; /* light, works with SB Admin 2 */
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.code-title { font-weight: 600; font-size: .9rem; color: #343a40; }
.code-lang  { font-size: .7rem; }

/* “traffic lights” dots */
.code-dot {
  display: inline-block;
  width: .65rem; height: .65rem;
  border-radius: 50%;
  background: #e0e0e0;
}
.code-dot:nth-child(1) { background: #ff5f57; } /* red */
.code-dot:nth-child(2) { background: #febc2e; } /* yellow */
.code-dot:nth-child(3) { background: #28c840; } /* green */

/* Code body */
.code-window__body {
  padding: 1rem 1.25rem;
  background: #ffffff;
}

/* Base code styling (works without a highlighter) */
.code-block {
  display: block;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .875rem;
  line-height: 1.5;
  white-space: pre;
  overflow-x: auto;
  color: #2f3337;
}

.code-tabs .nav-link {
  padding: .2rem .5rem;
  font-size: .75rem;
}

.profile-img {
  border-radius: 50%;
  width: 2rem; 
  height: 2rem;
}

.assignee-chip{
  display: inline-flex;
  align-items: center;
  border-radius: 50px;
  color: #212529;
  border: 1px solid #e9eff3;
  padding: .375rem .7rem .375rem .5rem;
  margin-right:3px;	
}

.assignee-chip .chip-img {
  margin-right:8px;
  width:22px;
  height:22px;
  object-fit: cover;
}

.assignee-chip .chip-name {
 font-size: 12px;
}

.assignee-chip .assignee-input{
	height: 22px;
	border: none;
	font-size: 12px;
}

.assignee-chip .assignee-input:focus {
  border-color: none !important;
  box-shadow: none !important;
  outline: 0 none !important;
}
	
.assignee-plus{
	width: 35px;
  height: 35px;
  line-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #fff;
  border: 1px solid #dee2e6;
}


/* Maintenance Ticketing Page STATUS & PRIORITY */
.status-open, 
.status-resolved, 
.status-in-progress, 
.status-closed, 
.priority-low, 
.priority-medium, 
.priority-high, 
.priority-critical {
  border-radius: 10px;
  display: inline-block;
  padding: 3px 10px;
	font-size: 15px;
  font-weight: normal;
}

.nxdtable .status-open, 
.nxdtable .status-resolved, 
.nxdtable .status-in-progress, 
.nxdtable .status-closed, 
.nxdtable .priority-low, 
.nxdtable .priority-medium, 
.nxdtable .priority-high, 
.nxdtable .priority-critical {
  padding: 7px 14px;
}

.status-open { background: #FAE3DE; }
.status-resolved { background: #DEECDC; }
.status-in-progress { background: #FAEDCC; }
.status-closed { background: #E6DEED; }
.priority-low { background: #D6E4EE; }
.priority-medium { background: #FAEDCC; }
.priority-high { background: #E6DEED; }
.priority-critical { background: #FAE3DE; }

.ticket-card { background: #FFF; padding: 20px; margin-bottom: 20px; border-radius: 10px; font-size: 1rem; color: #27343D; }

.round { border-radius: 20px; border: 1px solid #E9EFF3; }
/* only the first top-level comment */
.comment-list > .comment-item {
  margin-bottom: 0!important;
}

.comment-item {
	position:relative; 
	padding: 15px; 
	background: rgba(0,0,0,.02);
	margin-bottom: 24px;
}

.comment-item .comment-item{
	margin-bottom: 8px;
}

.comment-author-img {
  float: left;
  margin: 10px 0;
}

.comment-author {
  color: #254861;
  font-size: 1rem;
  font-weight: normal;
  float: left;
  margin-left: 10px;
  margin-top: 12px;	
}

.comment-date {
  color: #a1a9b5;
  margin-left: 20px;
  font-size: .8rem;
  float: left;
  margin-top: 15px;
}

.comment-content {
  clear: both;
  margin: 10px;
  color: #27343D;
  font-size: .9rem;
  margin-top: 20px;
}

.comment-reply-link {
  font-size: 0.9rem;
  color: #269BF9;
  text-decoration: none;
}

.comment-children {
  padding-left: 20px;
}

.comment-add {
  padding: 0px;
  max-height: 10vw;
  position: relative;
  background: #fff;	
}

.comment-input {
  width: 100%;
  border-radius: 20px;
  border: none;
  padding: 20px;
  padding-right: 55px;
  font-size: 1rem;
  color: #30404D;
}

.submit-comment {
  position: absolute;
  background-color: #1B1B1B;
  color: #fff;
  font-size: .7rem;
  right: 20px;
  bottom: 23px;
  cursor: pointer;
  z-index: 10002;
  border-radius: 50%;
  padding: 1px 4px;

}
.comment-item .comment-action{
	position: absolute;
	  top: 0px;
	  right: 8px;
	  background: transparent;
	  border: 0;
	  padding: 2px 6px;
	  cursor: pointer;
	  line-height: 0;
	  font-size: 20px;
	
}

/* Anchor to the input/textarea wrapper */
.mention-host {
  position: relative;
  display: block;
  overflow: visible;
}

#mentionable-layer{
  position: absolute;
  z-index: 20001;
  bottom: 24px;
  right: 20px;		
  width: 63%;
}

/* The dropdown */
.mention-menu-box {
  position: absolute;
  display: block;
  min-width: 220px;
  width: 100%;                  /* match field width */
  max-height: 240px;
  overflow: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 1500;               /* above modals/backdrops */
  padding: 4px 0;
  margin: 0;
  list-style: none;
  top: 100%; left: 0;           /* default: below field */
}

.mention-menu-box.dropup {
  bottom: 100%;
  top: auto;                    /* flip above when needed */
}

/* Items */
.mention-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.mention-item.active,
.mention-item:focus {
  background: #f1f5f9;
}

.mention-avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  margin-right: 6px;
  object-fit: cover;
}

.mention-empty {
  padding: 6px 10px;
  color: #6b7280;
}

.mention-item.active,
.mention-item:focus{
  background: #f1f5f9;
}

table-card .nxdtable{
	table-layout: auto;
}

.assignee-suggest { z-index: 20000; }

.media-section { position: relative; }

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.media-card {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 180px;	
}

.media-empty-thumbnail{
  min-height: 166px;	
}

.media-card .btn-remove{
	position:absolute;
	right: 5px;
	padding: 0 10px;
    font-size: 20px;
}

.media-thumb {
  aspect-ratio: 3 / 2;
  background: #f7f7f7;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.media-thumb img,
.media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-thumb:hover{
	color: #333333 !important;
}

.media-meta { padding: 8px; }
.media-filename {
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-meta p{ 
	font-size:12px; 
	margin-bottom: 2px;
	text-wrap: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}


.media-empty {
  min-height: 450px;
  border: 2px dashed #e5e7eb;
  border-radius: 10px;
  display: grid;
  place-items: center;
  text-align: center;
  background: #fafafa;
}

.media-empty-thumbnail{
  border: 2px dashed #e5e7eb;
  border-radius: 10px;
  display: grid;
  place-items: center;
  text-align: center;
  background: #fafafa;	
}

.media-empty-title { font-weight: 600; font-size: 1.125rem; }
.media-empty-subtitle { color: #6b7280; margin-top: 2px; }



.card.kpi-selected{ border-width: .15rem; }

.text-truncate{white-space: preserve !important;}

modal .sub-menu {
  display: flex;
  align-items: flex-end;
  gap: .75rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  border-bottom: 1px solid rgba(0,0,0,.12);
}

/* Items */
modal .sub-menu-item { margin: 0; padding: 0; }

/* Button as tab */
modal .sub-menu-item > .btn,
modal .sub-menu-item > button {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: .25rem .25rem 0 0;
  padding: .5rem 1rem;
  font-weight: 600;
  color: #6c757d; /* muted */
  cursor: pointer;
  text-decoration: none; /* override btn-link underline */
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}

/* Hover/Focus */
modal .sub-menu-item > .btn:hover,
modal .sub-menu-item > button:hover { color: #343a40; }

modal .sub-menu-item > .btn:focus,
modal .sub-menu-item > button:focus {
  outline: 0;
  box-shadow: 0 0 0 .2rem rgba(0,123,255,.25); /* focus ring */
}

/* Active tab (via .active on li OR aria-selected on button) */
modal .sub-menu-item.active > .btn,
modal .sub-menu-item > .btn[aria-selected="true"],
modal .sub-menu-item.active > button,
modal .sub-menu-item > button[aria-selected="true"] {
  color: #007bff;                /* primary */
  border-bottom-color: #007bff;  /* underline */
}

/* Optional: tiny count pill if you wrap counts in <span class="count">#</span> */
modal .sub-menu-item .count {
  display: inline-block;
  min-width: 1.25rem;
  padding: 0 .35rem;
  margin-left: .25rem;
  font-size: .825rem;
  line-height: 1.25rem;
  border-radius: .625rem;
  background: rgba(0,123,255,.1);
  color: #007bff;
}




@media (min-width: 576px) { 
	.card-body {
		padding: 1.25rem;
	}
	
	.card .table th{
		padding-top: 0rem;
		font-size: 12px;
	}
	
	.card .card-body .nested-card {
		margin:15px; 
		padding:15px 15px 20px;
	}
	
	.card .card-body .solid-card{
		width: 120px;
	}
    
    .card-title{
        font-size: 22px;
    }
    
    .card-controls{
        margin-left: 190px;
    }
    
    .card-controls .card-control{
        margin-right:10px;
        
    }
}

@media (min-width: 768px) {  
	
    
	.topbar .dropdown .dropdown-menu {
		/*width: auto;*/
		width: calc(100% - 1.5rem);
		right: 0.75rem;
	}	
    
	.card .table th{
		padding-top: 0rem;
		font-size: 14px;
	}
    
    
} 

@media (min-width: 992px) {	
	.menu-tabs-container .menu-tabs-item.active{
        background-color: #dcebfb;
		border-right: 5px #224abe solid;
        border-bottom: none;
    }
	
	li.control .btn-square-large{
		width: 125px;
	}

	.dataTables_wrapper{
		padding-bottom: 0px;
	} 	
	
    .card .table td {
	  	font-size: 11px;
	} 
	
	search #search-container{
        flex-wrap: nowrap;
    } 
    
	table .dates .date {
        margin:0; 
        text-align: right;
        text-transform: uppercase;
        font-size: 11px;
    }
    
	search #search-container .form-group{
        width:auto;
    }
} 

@media (min-width: 1200px) {
	
	.card .table th{
		font-size: 16px;
	}
	
    table .dates .date {
        margin:0; 
        text-align: right;
        text-transform: uppercase;
        font-size: 12px;
    }
    
	ul.control-collection li.control a{
		font-size: 12px;	
	} 
	
    .card .table td {
	  	font-size: 15px;
	} 
    
	table .compressed td{
		font-size: 16px;
	}
	
	table.pivoted-data td:first-child, 
	table.pivoted-data th:first-child{
		font-size:16px;
		width: 30%;
	}

	table.ocd-data th,
	table.ocd-data td,
	table.pivoted-data td{
		font-size:14px;
	}

	table td .sub-header{
		font-size: 12px;
	}
} 