body,
html {
	height: 100%;
	margin: 0;
	overflow-x: hidden;
}

/*
	From dashboard.css
*/
  
  .feather {
	width: 16px;
	height: 16px;
	vertical-align: text-bottom;
  }
  
  /*
   * Sidebar
   */
  
  .sidebar {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 100; /* Behind the navbar */
	padding: 0;
	box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
  }
  
  .sidebar-sticky {
	position: -webkit-sticky;
	position: sticky;
	top: 48px; /* Height of navbar */
	height: calc(100vh - 48px);
	padding-top: .5rem;
	overflow-x: hidden;
	overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
  }
  
  .sidebar .nav-link {
	font-weight: 500;
	color: #333;
  }
  
  .sidebar .nav-link .feather {
	margin-right: 4px;
	color: #999;
  }
  
  .sidebar .nav-link.active {
	color: #007bff;
  }
  
  .sidebar .nav-link:hover .feather,
  .sidebar .nav-link.active .feather {
	color: inherit;
  }
  
  .sidebar-heading {
	font-size: .75rem;
	text-transform: uppercase;
  }
  
  
  /*
   * Utilities
   */
  
  .border-top { border-top: 1px solid #e5e5e5; }
  .border-bottom { border-bottom: 1px solid #e5e5e5; }
/*
end dashboard.css
*/  

.dataTables_wrapper table {
	width: 100%;
}

#client-brands {
	width:fit-content; max-width: 320px;
}

.im-checkbox {
	width:100%; height: 25vh; max-height: 500px; overflow-y:auto; border-top: 1px solid grey;padding:.3em; border-bottom: 1px solid grey;
}

.im-checkbox label {
	margin-right: 40px;
}

.im-checkbox input {
	margin-bottom: .5rem;
	margin-right:5px;
}

.im-checkbox > div {
	align-items: center;
	justify-content: center;
}

/* table.dataTable tbody td {
    word-break: break-word;
} */

.application-image {
	height: 20vmin;
	width: 20vmin;
}
.dataTable tbody tr td {
	word-wrap: break-word;
}

.modal-xl {
	max-width:80%;
}

.table-hover > tbody > tr:hover {
	cursor: pointer;
}

.clickable:hover {
	cursor: pointer;
}

#tbl-voice-broadcasts tbody tr:first-child {
	white-space: nowrap;
}

.container {
	width: 90%;
	max-width: 90%;
}

.bs-container {
	max-width:1280px;
	width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media only screen and (max-width: 1440px) {
	.ticker-td {
		height: 10px;
		font-size: 0.9em;
		padding: 0.5em;
		text-align: left;
		width: max-content;
	}
}

@media only screen and (min-width: 1441px) {
	.ticker-td {
		font-size: 0.9em;
		padding: 0.3em;
		text-align: left;
		width: max-content;
	}
}

.checkbox {
	margin-top: .3rem;
	margin-left: .3rem;
}

.ticker-td {
	vertical-align: top;
}

.badge {
	width: 100%;
}

/* .dropdown:hover > .dropdown-menu {
  display: block;
} */

.dropdown {
	cursor: pointer;
}

.ticker-table tbody,
.ticker-table thead,
.ticker-table tr {
	border: 1px solid black;
}

.horizontal-td {
	color: white;
	background: black;
	width: 10%;
}

.ticker-table,
.ticker-th {
	width: 100%;
}

.ticker-tr {
	background-color: grey;
}

.ticker-thead {
	background-color: grey;
}

td.message-COMPLETED {
	background-color: green;
}

td.message-WAITING {
	background: lightblue;
	width: 1px;
}

td.message-FAILED {
	background-color: orange;
	width: 1px;
}

td.message-MAX_RETRY {
	width: 1px;
	background: rgb(156, 104, 40);
}

td.message-DEAD {
	width: 1px;
	background: red;
}

td.message-SENT {
	width: 1px;
	background: darkcyan;
}

td.message-PROCESSING {
	width: 1px;
	background: yellow;
}

td.message-APPROVED {
	width: 1px;
	background: green;
}

td.message-DENIED {
	width: 1px;
	background: red;
}

td.message-AUTORESPONDED {
	width: 1px;
	background: darkorange;
}

tr.message-1 {
	background-color: rgb(255, 161, 161)!important;
	color: black;
}

tr.message-0 {
	background-color: rgb(173, 194, 235)!important;
	color: black;
}

.ticker-tr .timestamp {
	width: 12%;
}

.ticker-tr .from {
	width: 1%;
}

.ticker-tr .to {
	width: 1%;
}

.ticker-tr .status {
	width: 10%;
}

tr.message-2 {
	background-color: rgba(255, 255, 0, 0.34)!important;
	color: black;
}

td.direction-0 {
	background-color: green;
}

td.direction-1 {
	background-color: blue;
}

td.message-COMPLETED {
	width: 1px;
	background-color: green;
}

.table-filter {
	background-position: 10px 12px; /* Position the search icon */
	background-repeat: no-repeat; /* Do not repeat the icon image */
	width: 100%; /* Full-width */
	font-size: 16px; /* Increase font-size */
	padding: 12px 20px 12px 40px; /* Add some padding */
	border: 1px solid #ddd; /* Add a grey border */
	margin-bottom: 12px; /* Add some space below the input */
}

#tblConversation {
	overflow-wrap: break-word;
	word-wrap: break-word;
	hyphens: auto;
}

.btn-edit {
	min-width: 20px;
	min-height: 20px;
	max-width: 30px;
	max-height: 30px;
}

.btn-edit:hover {
	cursor: pointer;
}

.img-preview {
	padding: .25rem;
	background-color: #fff;
	border: 1px solid #dee2e6;
	width: 50px;
	height: 50px;
	border-radius: 50%;
}

.table-stats th,
.table-stats td {
	border: 1px solid black;
	padding: 0.25rem;
}

.table-stats {
	max-width: 1000px;
}

.table-stats tr,
.table-stats td {
	width: 1%;
	white-space: nowrap;
}

.tr-units {
	background-color: #007bff;
}

.tr-units td {
	color: white;
	font-style: oblique;
}

.tr-total {
	background-color: grey;
}

.td-stats {
	text-align: center;
}

.tr-completed {
	background-color: palegreen;
}

.tr-sent {
	background-color: lightskyblue;
}

.tr-cancelled,
.tr-failed,
.tr-noReceipt{
	background-color: #ffc0c0;
}

.tr-processing {
	background-color: #ffffc0;
}

.tr-hold {
	background-color: rgba(159, 216, 230, 0.84);
}

.tr-inbound,
.tr-outbound {
	background-color: rgba(167, 164, 164, 0.5);
}

.td-top {
	text-align: center;
}

.tooltip-inner {
	max-width: 500px !important;
	text-align: left;
	background-color: rgba(10, 10, 10, 1);
}

.table-breakdown {
	table-layout: fixed;
	width: 100%;
}

.td-left {
	width: 150px;
	text-align: left;
}

.thead-breakdown {
	color: white;
	background-color: royalblue;
}

.thead-day {
	text-align: center;
}

.table-breakdown .tr-total {
	background-color: #ffffff;
}

.tr-pending {
	background-color: #fcf7a1;
}

.tr-delivered {
	background-color: #a1fca1;
}

.tr-undelivered {
	background-color: #ff9eac;
}

.td-day {
	text-align: center;
	width: auto;
}

.td-day,
.thead-day,
.td-left,
.thead-breakdown {
	border: 1px solid grey;
}

/* Stats Table */
.table-rest-view th {
	background-color: #212529;
	color: white;
	padding: 5px;
	border-bottom: 1px solid white;
}

.table-rest-view tr th:first-child {
	width: 1%;
	white-space: nowrap;
}

.table-rest-view tr {
	width: 100%;
}

#divViewService div {
	margin-bottom: 20px;
}

.table-rest-view {
	max-width: 100%;
	width: 100%;
}

.btn-allstar {
	border-radius: 19px;
	color: white;
	font-weight: bold;
	text-align: center;
	background-color: #32b8a6;
	font-size: 1.7vmin;
	min-width: 100px;
	padding: 0.25rem;
	border: none;
}

.back {
	/* float: left; */
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
	color: #000;
	text-shadow: 0 1px 0 #fff;
	opacity: .5;
}

.back:not(:disabled):not(.disabled) {
	cursor: pointer;
}

.back:not(:disabled):not(.disabled):hover,
.back:not(:disabled):not(.disabled):focus {
	color: #000;
	text-decoration: none;
	opacity: .75;
}

button.back {
	padding: 0;
	background-color: transparent;
	border: 0;
	-webkit-appearance: none;
}

.btn-allstar.template {
	font-weight: 300;
}

.btn-allstar.return {
	background-color: #ff4f40;
}

.btn-allstar.flag {
	background-color: #ffa740;
}

.btn-allstar.default {
	background-color: #acacac;
}

.btn-allstar.action {
	background-color: #3744ff;
}

.btn-allstar.option-selected {
	background-color: #727272;
}

#flagged-options-options {
	overflow-y: scroll;
}

#flagged-history {
    height: 80vh;
}

#flagged-options-options > div {
	margin-bottom: 10px;
}

.table-flagged {
	width: 100%;
}

.table-flagged > tr {
	width: 100%;
}

.table-flagged > thead > tr > td {
	text-align: left;
}

.table-flagged > thead > tr > th {
	text-align: left;
	width: 35%;
	vertical-align: top;
}

a:hover {
	cursor: pointer;
}
.message {
	font-family: "Poppins", sans-serif;
	padding: 0.5em 1em;
	border-radius: 2.5vh;
	margin-bottom: 1.2vh;
	font-size: 0.9vw;
	width: max-content;
	max-width: 80%;
	text-align: left;
}

.message.operator {
	background: cornflowerblue;
	color: #fff;
	margin-left: auto;
}

.message.customer {
	background: #efefef;
	color: #000000;
	margin-right: auto;
}

.message-timestamp {
    color: grey;
    font-size: 0.7vw;
    text-align: center;
    font-weight: 600;
}

.sub-form-group {
	margin-left: 2rem;
}

.notes div {
	word-break: break-word;
}

.notes {
	overflow-y: scroll;
	overflow-x: hidden;
	min-height: 100%;
	text-align: left;
	height: 1px;
}

#divCustomerNotes {
	height: 80%;
	display: grid;
	grid-template-rows: 7% 73% 20%;
	grid-template-areas: "notes-title""notes""notes-input";
}

#customerNotesTitle {
	grid-area: notes-title;
	border-bottom: 1px solid grey;
	display: grid;
	justify-content: center;
}

#customerNotes {
	grid-area: notes;
	background: white;
	text-align: left;
	overflow-y: scroll;
}

#customerNotesInput {
	grid-area: notes-input;
}

.table td.fit, 
.table th.fit {
    white-space: nowrap;
    width: 1%;
}

.notes-input {
	width: 100%;
	border: none;
	border-top: 1px solid #e0e0e0;
}

.notes-input::placeholder {
	color: #a1a1a1;
	font-weight: 300;
}

.dataTable td[name="delivery"] {
	vertical-align: middle;
}

.break-word{
    word-wrap: break-word;
}

#div-flagged-info {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	text-align: center;
	height: 100%;
}

.snackbar-container {
	-webkit-transition: all 500ms ease;
	transition: all 500ms ease;
	-webkit-transition-property: top, right, bottom, left, opacity;
	transition-property: top, right, bottom, left, opacity;
	font-family: Roboto, sans-serif;
	font-size: 14px;
	min-height: 14px;
	background-color: #070b0e;
	position: fixed;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: justify;
		-ms-flex-pack: justify;
			justify-content: space-between;
	-webkit-box-align: center;
		-ms-flex-align: center;
			align-items: center;
	color: white;
	line-height: 22px;
	padding: 18px 24px;
	bottom: -100px;
	top: -100px;
	opacity: 0;
	z-index: 9999;
  }
  
  .snackbar-container .action {
	background: inherit;
	display: inline-block;
	border: none;
	font-size: inherit;
	text-transform: uppercase;
	color: #4caf50;
	margin: 0 0 0 24px;
	padding: 0;
	min-width: -webkit-min-content;
	min-width: -moz-min-content;
	min-width: min-content;
	cursor: pointer;
  }
  
  @media (min-width: 640px) {
	.snackbar-container {
	  min-width: 288px;
	  max-width: 568px;
	  display: -webkit-inline-box;
	  display: -ms-inline-flexbox;
	  display: inline-flex;
	  border-radius: 2px;
	  margin: 24px;
	}
  }
  
  @media (max-width: 640px) {
	.snackbar-container {
	  left: 0;
	  right: 0;
	  width: 100%;
	}
  }
  
  .snackbar-pos.bottom-center {
	top: auto !important;
	bottom: 0;
	left: 50%;
	-webkit-transform: translate(-50%, 0);
			transform: translate(-50%, 0);
  }
  
  .snackbar-pos.bottom-left {
	top: auto !important;
	bottom: 0;
	left: 0;
  }
  
  .snackbar-pos.bottom-right {
	top: auto !important;
	bottom: 0;
	right: 0;
  }
  
  .snackbar-pos.top-left {
	bottom: auto !important;
	top: 0;
	left: 0;
  }
  
  .snackbar-pos.top-center {
	bottom: auto !important;
	top: 0;
	left: 50%;
	-webkit-transform: translate(-50%, 0);
			transform: translate(-50%, 0);
  }
  
  .snackbar-pos.top-right {
	bottom: auto !important;
	top: 0;
	right: 0;
  }
  
  @media (max-width: 640px) {
	.snackbar-pos.bottom-center, .snackbar-pos.top-center {
	  left: 0;
	  -webkit-transform: none;
			  transform: none;
	}
  }
  /*# sourceMappingURL=snackbar.css.map */
 
.chosen-container {
    width: 100% !important;
}

.error-text {
	font: bold;
}

.voice-client-report-cost-table thead{
background-color: orange;
}

.voice-client-report-stop-table thead{
	background-color: rgb(206, 81, 81);
	}

	.vcr-country-row {
		background-color: lightgrey;
	}

	.smart-box-ta {
        /* border: 1px solid grey;
        border-radius: 0.3em;
        padding: 20px; */
        min-height: 150px;
        margin-bottom: 10px;
        font-family: Arial, Helvetica, sans-serif;
      }

      .smart-box-ta .keyword {
        /* font-style: italic; */
         padding: 1px;
        margin: 0 1px; 
      }
      .smart-box-buttons-selection .buttons button {
        min-width: 40px;
        min-height: 25px;
        padding: 15px;
        margin: 5px;
        border-radius: 8px;
        border: none;
      }

      .smart-box-buttons-selection button:hover {
        cursor: pointer;
        background: rgb(224, 224, 224);
      }

      .smart-box-buttons-selection {
        display: none;
        padding: 1rem;
        background: white;
        border: 3px solid grey;
        border-radius: 10px;
        box-shadow: 5px 5px 5px #bbb;
        margin-left: 20px;
        max-width: 600px;
        position: relative;
        z-index: 2;
      }

      .smart-box-buttons-selection .buttons {
        display: flexbox;
        align-content: space-between;
        justify-content: flex-start;
      }
      .smart-box-buttons-selection .header {
        position: relative;
        margin-bottom: 15px;
      }
      .smart-box-close {
        position: absolute;
        right: 0;
        border-radius: 50%;
        border: none;
        padding: 5px;
      }
      .green-white {
        background: rgb(86, 155, 107);
        color:rgba(255, 255, 255, 0.788);
        font-family: 'Courier New', Courier, monospace;
        font-weight: 700;
      }
      .add-keyword {
        border: none;
		border-radius : 3px;
		font-size: 14px;
        margin: 5px 0;
      }

      .add-keyword:hover {
        background: rgb(66, 119, 82);
        cursor:pointer;
	  }
	  
	  .bottom-right{
		position: absolute;
		bottom: 0;
		right: 0;
	  }


	  .tick {
		  height: 1.6em;
	  }
	  .broadcast-move input {
	    margin:20px;
        width: 50px;
      }

/* ── Live Chat Monitor — operator-UX-style ──────────────────────────────── */

/*
 * Layout hierarchy:
 *   #divLiveChatMonitor  (container-fluid, fills 100vh minus navbar)
 *     .lcm-page-header   (fixed-height title bar, flex-shrink: 0)
 *     #lcmMainRow        (Bootstrap row, fills remaining height via flex:1)
 *       #lcmSessionsCol  (flex column, stretches to row height via Bootstrap)
 *       #lcmTickerCol    (flex column, stretches to row height via Bootstrap)
 */
#divLiveChatMonitor {
  font-family: 'Poppins', sans-serif;
  height: calc(100vh - 48px); /* 48px = sticky navbar height */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Page title bar — never grows, lets main row fill the rest */
.lcm-page-header {
  flex-shrink: 0;
  padding: 8px 0;
}

/* Main row fills remaining container height */
#lcmMainRow {
  flex: 1;
  min-height: 0;
  /* No overflow:hidden here — that was clipping the ticker footer */
}

/* Columns fill the row height explicitly */
#lcmSessionsCol,
#lcmTickerCol {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Nav/alert siblings in the sessions column don't grow; grid fills the rest */
#lcmSessionsCol > nav,
#lcmNoSessions {
  flex-shrink: 0;
}

/* Session grid: CSS Grid — JS sets gridTemplateRows + gridTemplateColumns per count */
#lcmSessionGrid {
  flex: 1;
  min-height: 0;
  display: grid;
  gap: 8px;
  overflow: hidden;
}

/* Each session card fills its CSS grid cell */
.lcm-session-card-wrapper {
  min-height: 0;
  overflow: hidden;
}

.lcm-session-card-wrapper > .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.lcm-session-card-wrapper .card-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 8px;
}

/* Chat area fills remaining card body space; overrides 220px standalone default */
.lcm-session-card-wrapper .lcm-chat-area {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}

/* ── Chat bubbles ───────────────────────────────────────────────────────────── */
.lcm-chat-area {
  background: #e8e8e8;
  padding: 0.6rem 0.75rem;
  max-height: 220px;
  overflow-y: auto;
  border-radius: 4px;
}

.chat-row-in  { display: flex; flex-direction: column; align-items: flex-start;  margin-bottom: 5px; }
.chat-row-out { display: flex; flex-direction: column; align-items: flex-end;    margin-bottom: 5px; }

.chat-bubble {
  padding: 0.4em 0.85em;
  border-radius: 30px;
  max-width: 85%;
  word-break: break-word;
  font-size: 0.76rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.chat-bubble.chat-inbound {
  background: #fff;
  color: #626262;
  border: 1px solid #cbcbcb;
}

.chat-bubble.chat-outbound {
  background: #32b8a6;
  color: #fff;
}

.chat-meta {
  font-size: 0.62rem;
  margin-top: 2px;
}

.chat-bubble.chat-inbound .chat-meta  { color: #aaa; }
.chat-bubble.chat-outbound .chat-meta { color: rgba(255,255,255,0.7); }

.card.lcm-card-active {
  border-top: 3px solid #32b8a6;
}

.badge.badge-teal {
  background-color: #32b8a6;
  color: #fff;
}

/* ── Ticker panel ───────────────────────────────────────────────────────────── */

/* Ticker card fills the ticker column height */
.lcm-ticker-card {
  border: 1px solid #e8e8e8;
  flex: 1 !important;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.lcm-ticker-card .card-header { flex-shrink: 0; }
.lcm-ticker-card .card-footer { flex-shrink: 0; }

.lcm-ticker-card .card-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0;
}

.lcm-ticker-title {
  font-family: 'Poppins', sans-serif;
  color: #626262;
}

.lcm-ticker-filters {
  gap: 6px;
}

.lcm-ticker-search {
  max-width: 160px;
  border-color: #ddd;
  border-radius: 8px;
  font-size: 0.8rem;
}

.lcm-ticker-search:focus {
  border-color: #32b8a6;
  box-shadow: 0 0 0 2px rgba(50, 184, 166, 0.15);
}

.lcm-ticker-filter-select {
  max-width: 150px;
  border-color: #ddd;
  border-radius: 8px;
  font-size: 0.8rem;
}

.lcm-ticker-filter-select:focus {
  border-color: #32b8a6;
  box-shadow: 0 0 0 2px rgba(50, 184, 166, 0.15);
}

/* Fixed-layout table: explicit widths; Message gets the rest */
#lcmTickerTable {
  table-layout: fixed;
  width: 100%;
}

.lcm-th-time    { width: 80px;  }
.lcm-th-from    { width: 100px; }
.lcm-th-to      { width: 100px; }
.lcm-th-service { width: 90px;  }
.lcm-th-credits { width: 62px;  }
.lcm-th-details { width: 120px; }

#lcmTickerTable thead th {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #727272;
  border-top: none;
  background: #f5f5f5;
  position: sticky;
  top: 0;
  z-index: 1;
}

#lcmTickerTable tbody tr:hover {
  background: #f0fbf9;
}

.lcm-ticker-time {
  font-size: 0.72rem;
  color: #aaa;
  white-space: nowrap;
}

.lcm-ticker-user {
  font-size: 0.78rem;
  font-weight: 600;
  color: #626262;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lcm-ticker-op {
  font-size: 0.78rem;
  font-weight: 600;
  color: #32b8a6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lcm-ticker-service {
  font-size: 0.72rem;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lcm-ticker-body {
  font-size: 0.8rem;
  color: #444;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lcm-ticker-credits {
  font-size: 0.75rem;
  font-weight: 600;
  color: #32b8a6;
  white-space: nowrap;
}

.lcm-ticker-credits-refunded {
  font-size: 0.75rem;
  color: #aaa;
  text-decoration: line-through;
  white-space: nowrap;
}

.lcm-ticker-credits-nil {
  font-size: 0.75rem;
  color: #ccc;
}

.lcm-badge-sm {
  font-size: 0.65rem;
  padding: 2px 5px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 2px;
  white-space: nowrap;
}

.lcm-ticker-details {
  font-size: 0.72rem;
  line-height: 1.4;
}

/* ==========================================================================
   Revenue Calculator (#divRevenueCalculator, rc- prefix)
   ========================================================================== */

#divRevenueCalculator {
  color-scheme: light;
  --rc-surface-1:      #fcfcfb;
  --rc-surface-2:      #f9f9f7;
  --rc-text-primary:   #0b0b0b;
  --rc-text-secondary: #52514e;
  --rc-text-muted:     #898781;
  --rc-gridline:       #e1e0d9;
  --rc-border:         rgba(11,11,11,0.10);
  --rc-success:        #006300;
  --rc-series-1:       #2a78d6; /* fees */
  --rc-series-2:       #eb6834; /* messaging cost */
  --rc-series-3:       #1baf7a; /* other deductions */
  --rc-series-4:       #eda100; /* operator costs */
  --rc-series-5:       #008300; /* net profit */
  --rc-series-6:       #8a4fd6; /* client response costs */
  --rc-input-bg:       #ffffff;
  background: var(--rc-surface-2);
  color: var(--rc-text-primary);
}
@media (prefers-color-scheme: dark) {
  #divRevenueCalculator {
    color-scheme: dark;
    --rc-surface-1:      #1a1a19;
    --rc-surface-2:      #0d0d0d;
    --rc-text-primary:   #ffffff;
    --rc-text-secondary: #c3c2b7;
    --rc-text-muted:     #898781;
    --rc-gridline:       #2c2c2a;
    --rc-border:         rgba(255,255,255,0.10);
    --rc-success:        #0ca30c;
    --rc-series-1:       #3987e5;
    --rc-series-2:       #d95926;
    --rc-series-3:       #199e70;
    --rc-series-4:       #c98500;
    --rc-series-5:       #008300;
    --rc-series-6:       #a679e0;
    --rc-input-bg:       #232322;
  }
}
#divRevenueCalculator * { box-sizing: border-box; }
#divRevenueCalculator .rc-wrap {
  max-width: 1800px;
  margin: 0 auto;
  padding: 32px 32px 80px;
}
#divRevenueCalculator header h1 {
  font-size: 1.85rem;
  margin: 0 0 6px;
}
#divRevenueCalculator header p {
  color: var(--rc-text-secondary);
  margin: 0 0 28px;
  font-size: 1.05rem;
  max-width: 640px;
}
#divRevenueCalculator .rc-grid {
  column-width: 460px;
  column-count: 3;
  column-gap: 18px;
}
@media (max-width: 760px) {
  #divRevenueCalculator .rc-grid { column-count: 1; column-width: auto; }
}
#divRevenueCalculator .rc-card {
  background: var(--rc-surface-1);
  border: 1px solid var(--rc-border);
  border-radius: 12px;
  padding: 20px;
  margin: 0 0 18px;
  break-inside: avoid;
}
#divRevenueCalculator .rc-card.full { column-span: all; margin-bottom: 0; }
#divRevenueCalculator .rc-card h2 {
  font-size: 1.15rem;
  margin: 0 0 4px;
}
#divRevenueCalculator .rc-card .rc-hint {
  color: var(--rc-text-muted);
  font-size: 0.92rem;
  margin: 0 0 14px;
}
#divRevenueCalculator .rc-subgroup-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--rc-text-muted);
  font-weight: 600;
  margin: 0 0 8px;
  padding-top: 14px;
  border-top: 1px solid var(--rc-gridline);
}
#divRevenueCalculator .rc-subgroup-label:first-of-type { border-top: none; padding-top: 0; }
#divRevenueCalculator .rc-subgroup-note {
  color: var(--rc-text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
  margin: -4px 0 12px;
}
#divRevenueCalculator .rc-callout {
  background: var(--rc-surface-2);
  border: 1px solid var(--rc-border);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 24px;
  font-size: 0.95rem;
  color: var(--rc-text-secondary);
  max-width: 720px;
}
#divRevenueCalculator .rc-callout strong { color: var(--rc-text-primary); }
#divRevenueCalculator table { width: 100%; table-layout: fixed; border-collapse: collapse; }
#divRevenueCalculator th, #divRevenueCalculator td { text-align: left; padding: 8px 4px; font-size: 0.95rem; overflow: hidden; }
#divRevenueCalculator table th:first-child,
#divRevenueCalculator table td:first-child { width: 30%; }
#divRevenueCalculator table th:last-child,
#divRevenueCalculator table td:last-child { width: 28px; }
#divRevenueCalculator thead th {
  color: var(--rc-text-muted);
  font-weight: 500;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--rc-gridline);
}
#divRevenueCalculator tbody tr td { border-bottom: 1px solid var(--rc-gridline); }
#divRevenueCalculator tbody tr:last-child td { border-bottom: none; }
#divRevenueCalculator input[type=text],
#divRevenueCalculator input[type=number] {
  width: 100%;
  background: var(--rc-input-bg);
  color: var(--rc-text-primary);
  border: 1px solid var(--rc-border);
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
#divRevenueCalculator input[type=number] { text-align: right; }
#divRevenueCalculator input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background: var(--rc-gridline);
}
#divRevenueCalculator td.num, #divRevenueCalculator th.num { text-align: right; }
#divRevenueCalculator .rc-row-total {
  font-variant-numeric: tabular-nums;
  color: var(--rc-text-secondary);
  font-size: 0.95rem;
  white-space: nowrap;
}
#divRevenueCalculator button.rc-icon-btn {
  background: none;
  border: none;
  color: var(--rc-text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
}
#divRevenueCalculator button.rc-icon-btn:hover { background: var(--rc-gridline); color: var(--rc-text-primary); }
#divRevenueCalculator .rc-add-row-btn {
  margin-top: 10px;
  background: none;
  border: 1px dashed var(--rc-border);
  color: var(--rc-text-secondary);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.9rem;
  cursor: pointer;
}
#divRevenueCalculator .rc-add-row-btn:hover { border-color: var(--rc-text-muted); color: var(--rc-text-primary); }
#divRevenueCalculator .rc-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
#divRevenueCalculator .rc-field-row label {
  font-size: 0.95rem;
  color: var(--rc-text-secondary);
  flex: 1;
}
#divRevenueCalculator .rc-field-row .rc-field-input { width: 190px; flex: 0 0 auto; }
#divRevenueCalculator .rc-input-group {
  display: flex;
  align-items: stretch;
  min-width: 0;
}
#divRevenueCalculator .rc-input-group input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  border-radius: 0;
}
#divRevenueCalculator .rc-input-group input:first-child { border-radius: 6px 0 0 6px; }
#divRevenueCalculator .rc-input-group input:last-child { border-radius: 0 6px 6px 0; }
#divRevenueCalculator .rc-input-addon {
  display: flex;
  align-items: center;
  padding: 0 8px;
  background: var(--rc-gridline);
  border: 1px solid var(--rc-border);
  color: var(--rc-text-secondary);
  font-size: 0.9rem;
  white-space: nowrap;
}
#divRevenueCalculator .rc-input-group .rc-input-addon:first-child {
  border-right: none;
  border-radius: 6px 0 0 6px;
}
#divRevenueCalculator .rc-input-group .rc-input-addon:last-child {
  border-left: none;
  border-radius: 0 6px 6px 0;
}
#divRevenueCalculator select {
  width: 100%;
  background: var(--rc-input-bg);
  color: var(--rc-text-primary);
  border: 1px solid var(--rc-border);
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 0.95rem;
}
#divRevenueCalculator table select {
  padding: 6px 4px;
  font-size: 0.9rem;
}
#divRevenueCalculator .rc-subtotal-line {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rc-gridline);
  font-size: 1.02rem;
  font-weight: 600;
}
#divRevenueCalculator .rc-subtotal-line span.val { font-variant-numeric: tabular-nums; }

#divRevenueCalculator .rc-summary-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 1.05rem;
}
#divRevenueCalculator .rc-summary-line.total {
  border-top: 1px solid var(--rc-gridline);
  margin-top: 6px;
  padding-top: 12px;
  font-size: 1.4rem;
  font-weight: 700;
}
#divRevenueCalculator .rc-summary-line .val { font-variant-numeric: tabular-nums; }
#divRevenueCalculator .rc-summary-line.deduction .val::before { content: "\2212\00A0"; }
#divRevenueCalculator .rc-margin-note { color: var(--rc-text-muted); font-size: 0.92rem; margin-top: 4px; }

#divRevenueCalculator .rc-comp-bar {
  display: flex;
  width: 100%;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  margin: 18px 0 14px;
  background: var(--rc-gridline);
}
#divRevenueCalculator .rc-comp-seg { height: 100%; }
#divRevenueCalculator .rc-comp-seg + .rc-comp-seg { margin-left: 2px; }
#divRevenueCalculator .rc-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
}
@media (max-width: 520px) {
  #divRevenueCalculator .rc-legend { grid-template-columns: 1fr; }
}
#divRevenueCalculator .rc-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
}
#divRevenueCalculator .rc-legend-swatch {
  width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0;
}
#divRevenueCalculator .rc-legend-item .lbl { color: var(--rc-text-secondary); flex: 1; }
#divRevenueCalculator .rc-legend-item .amt { font-variant-numeric: tabular-nums; font-weight: 600; }

#divRevenueCalculator .rc-top-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 18px;
}
.motd-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}

.motd-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ddd;
  cursor: zoom-in;
}

.motd-thumb-remove {
  cursor: pointer;
  color: #dc3545;
  font-size: 0.8rem;
}

.motd-lightbox {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  cursor: zoom-out;
}

.motd-lightbox img {
  max-width: 80vw;
  max-height: 80vh;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#divRevenueCalculator .rc-top-controls button {
  font-size: 0.9rem;
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid var(--rc-border);
  background: var(--rc-surface-1);
  color: var(--rc-text-secondary);
  cursor: pointer;
}