[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
	display: none !important;
}

html, body {
  font-family: 'NotoColorEmoji', 'Roboto', 'Helvetica', sans-serif;
}

.cg-sidenav {
	min-width: 320px;
	width: 25%;
}
.cg-sidenav .cg-sidenav-search {
	width: 320px;
}

.deckgrid[deckgrid]::before {
    /* Specifies that the grid should have a maximum of 2 columns. Each column will have the classes 'column' and 'column-1-2' */
    content: '2 .column.column-1-2';
    font-size: 0;
    visibility: hidden;
}

.deckgrid .column {
    float: left;
}

.deckgrid .column-1-2 {
    width: 45%;
	margin: 0px 2px 0px 2px;
}

/* Fixing an issue with links inside md-list */
md-list-item.md-clickable > a {
  margin: 0px 0px 0px 0px !important;
}
md-list-item.md-clickable > a > div.md-list-item-inner{
  margin-top: 8px;
}

md-menu-item > .md-button {
    display: inline;
}

.image-mosaic {
  /* Prevent vertical gaps */
  line-height: 0;
   
  -webkit-column-count: 2;
  -webkit-column-gap:   3px;
  -moz-column-count:    2;
  -moz-column-gap:      3px;
  column-count:         2;
  column-gap:           3px;  
}

.profile-picture {
  vertical-align: middle;
  width: 24px;
  height: 24px;
  border-radius: 12px;
}

.small-tab {
  padding: 12px 12px;
  max-width: none;
}

.ellipsis {
  overflow: hidden; 
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-tag {
  max-width: 70px; 
  font-family: 'Roboto Condensed', sans-serif;
}

.green-icon {
  color:#33CC33;
  font-size:14px;
  margin: 3px 2px 2px 0px;
}

.blue-icon {
  color:#2c62ba;
  font-size:14px;
  margin: 3px 2px 2px 0px;
}


.clickable {
    cursor: pointer;
}

.chat-tile > figcaption {
	width: 100%;
}
.chat-tile > figcaption > .ellipsis {
	margin: 0px 16px 0px 16px;
}

.chat-picture-left, .chat-picture-right {
  max-width: 85%;
  position:relative;
  padding:15px;
  margin:0em 1em 0.5em 1em;
  -webkit-border-radius:10px;
  -moz-border-radius:10px;
  border-radius:10px;
}

.chat-picture-left {
  float: left;
}

.chat-picture-right {
  float: right;
}

.chat-picture {
  width: 80%;
}

.chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 21px;
  margin: 0em 0.2em 0em 0.2em;
}

.chat-bubble {
  max-width: 600px;
  min-width: 120px;
  position:relative;
  padding: 12px 12px 2px 12px;
  margin:0em 1em 1px 1em;
  -webkit-border-radius:10px;
  -moz-border-radius:10px;
  border-radius:10px;
}

.chat-bubble-message {
  white-space: pre-wrap;
  white-space: -moz-pre-wrap;
  white-space: -pre-wrap;
  white-space: -o-pre-wrap;

  word-wrap: break-word;
  overflow-wrap: break-word;
}

div.left-bubble.link-bubble span.chat-bubble-message a:link,
div.left-bubble.link-bubble span.chat-bubble-message a:visited,
div.left-bubble.link-bubble span.chat-bubble-message a:hover,
div.left-bubble.link-bubble span.chat-bubble-message a:active {
  color: black;
  text-decoration: underline;
}



/* Links in bubbles require specific styles 
   not to break the layout */
.link-bubble {
  width: 90%;
}

.left-bubble {
  float: left;
}

.right-bubble {
  float: right;
}

.middle-bubble {
  width: 80%;
  max-width: 600px;
  position:relative;
  margin:0em 1em 0.5em 1em;
  -webkit-border-radius:10px;
  -moz-border-radius:10px;
  border-radius:10px;
  color: #000;
  background: #D6D6D6;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1em;
  text-align: center;
  border-style: none;
}

.last-message-row {
  display: flex;
  align-items: center;
}

.last-message-row .ellipsis {
  flex: 1;
  min-width: 0;
}

.unread-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  color: #1976d2;
  margin-left: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

md-tabs.icon-tabs .md-tab {
  text-overflow: clip;
}

/* Hide hover menus visually but keep them focusable */
.visually-hidden {
  opacity: 0;
  pointer-events: none;
}

.visually-hidden:focus-within,
md-list-item:focus-within .visually-hidden,
.chat-bubble:focus-within .visually-hidden {
  opacity: 1;
  pointer-events: auto;
}

/* Visible focus indicators — only during keyboard navigation */
.keyboard-nav *:focus {
  outline: 2px solid #000000 !important;
  outline-offset: 2px !important;
}

.keyboard-nav .md-button:focus,
.keyboard-nav md-list-item:focus,
.keyboard-nav md-list-item .md-no-style:focus,
.keyboard-nav md-icon:focus,
.keyboard-nav md-tab:focus,
.keyboard-nav md-menu-item:focus {
  outline: 2px solid #000000 !important;
  outline-offset: 2px !important;
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

::placeholder {
  color: #595959;
  opacity: 1;
}

/* Chat list item headings (replaced h3/h4 for proper heading hierarchy) */
.md-list-item-text .chat-list-title {
  font-size: 16px;
  font-weight: 400;
  display: flex;
  align-items: center;
}

.md-list-item-text .chat-list-subtitle {
  display: block;
}