.speech-ui .main-menu .navbar-header {
  height: 104px;
  padding: 14px 16px;
}
.speech-ui .main-menu .navbar-header > .nav {
  height: 100%;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
}
.speech-ui .speech-brand-item { flex: 1; min-width: 0; }
.speech-ui .speech-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 76px;
  padding: 6px 8px;
  background: #fff;
  border: 1px solid #e7ebef;
  border-radius: 12px;
  overflow: hidden;
}
.speech-ui .speech-brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 62px;
  object-fit: contain;
}
.speech-ui .main-menu .navbar-header .nav-toggle { flex: 0 0 20px; }
.speech-ui .main-menu .main-menu-content { height: calc(100% - 104px) !important; }
.speech-ui .main-menu .shadow-bottom { top: 104px; }
.speech-ui .main-menu .menu-title { white-space: normal; overflow-wrap: anywhere; }
.speech-ui .main-menu .navigation > .speech-menu-group { margin: 8px 12px 16px; }
.speech-ui .main-menu .navigation > .speech-menu-group > a {
  padding: 13px 28px 13px 14px;
  border-radius: 9px;
  font-weight: 600;
  font-size: .95rem;
  color: #33475b;
  letter-spacing: .01em;
}
.speech-ui .main-menu .navigation > .speech-menu-group.open > a,
.speech-ui .main-menu .navigation > .speech-menu-group > a:hover { background: #edf3f8; }
.speech-ui .main-menu .navigation .speech-submenu {
  margin: 7px 0 0 24px;
  padding: 0 0 0 12px;
  border-left: 1px solid #dce5ed;
  background: transparent;
}
.speech-ui .main-menu .navigation .speech-submenu li > a {
  margin: 3px 0;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: .9rem;
  font-weight: 400;
  color: #5f7285;
  background: transparent;
}
.speech-ui .main-menu .navigation .speech-submenu li > a > i { font-size: 1rem; width: 18px; margin-right: 8px; }
.speech-ui .main-menu .navigation .speech-submenu li > a:hover { color: #245a7d; background: #f1f6fa; }
.speech-ui .main-menu .navigation .speech-submenu li.active > a {
  color: #1c6392;
  background: #e6f2fa;
  box-shadow: inset 3px 0 0 #358bbf;
  font-weight: 600;
}
.speech-ui .main-menu .navigation .speech-submenu li.active { background: transparent !important; box-shadow: none !important; }
.speech-ui .main-menu .navigation .speech-menu-group > a::after { right: 12px; }
.speech-ui .main-menu .navigation .speech-submenu-group > a { font-weight: 500; color: #3e566d; }
.speech-ui .main-menu .navigation .speech-submenu-2 { margin-left: 18px; padding-left: 7px; }
.speech-ui .main-menu .navigation .speech-submenu-2 li > a { font-size: .84rem; padding-left: 9px; }
.speech-ui.menu-collapsed .main-menu:not(.expanded) .navigation > .speech-menu-group { margin-left: 10px; margin-right: 10px; }
.speech-ui.menu-collapsed .main-menu:not(.expanded) .navbar-header { width: 80px; padding: 14px 8px; }
.speech-ui.menu-collapsed .main-menu:not(.expanded) .speech-brand { height: 54px; padding: 4px; }
.speech-ui.menu-collapsed .main-menu:not(.expanded) .nav-toggle { display: none; }
.speech-ui .speech-mobile-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 46px;
  padding: 4px 7px;
  border: 1px solid #e7ebef;
  border-radius: 9px;
  background: #fff;
}
.speech-ui .speech-mobile-brand img { width: 100%; height: 100%; object-fit: contain; }
.speech-ui .speech-mobile-brand-item { display: flex; align-items: center; }
.speech-ui .content-body { max-width: 1440px; margin: 0 auto; min-width: 0; }
.speech-ui .content-header { max-width: 1468px; margin-left: auto; margin-right: auto; }
.speech-ui .content-header-title { border-right: 0 !important; }
.speech-ui .content-header .breadcrumb:empty { display: none; }
.speech-ui .card { border-radius: 12px; }
.speech-ui .card .card-header { border-radius: 12px 12px 0 0; }
.speech-ui .table-responsive { max-width: 100%; border-radius: 0 0 12px 12px; }
.speech-ui .table th, .speech-ui .table td { vertical-align: middle; }
.speech-ui .btn { border-radius: 7px; }
.speech-ui .form-control { max-width: 100%; border-radius: 7px; }
.speech-ui .row > [class*="col-"] { min-width: 0; }
.speech-ui .speech-access .card-header { padding: 1.4rem 1.5rem; }
.speech-ui .speech-access .card-title { line-height: 1.4; }
.speech-ui .speech-access .card-body { padding: 1.5rem; }
.speech-ui .speech-access .custom-control-label { overflow-wrap: anywhere; }
.speech-ui .speech-role-card .card-header { border-bottom: 1px solid #edf0f3; }
.speech-ui .speech-permission-group { margin-bottom: 1rem; min-width: 0; }
.speech-ui .speech-permission-group legend { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #667c8f; margin-bottom: 1.2rem; }
.speech-ui .speech-permission-group .custom-control-label { font-size: .9rem; line-height: 1.5; }
.speech-ui .speech-permission-group .custom-control-input:disabled ~ .custom-control-label { color: #647789; opacity: 1; }
.speech-ui .speech-permission-restricted .custom-control-label { color: #788897; }
.speech-ui .speech-role-actions { padding-top: 1rem; border-top: 1px solid #edf0f3; }
.speech-ui .speech-filter-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; background: none; border: 0; padding: 0; color: #33475b; font-weight: 600; text-align: left; }
.speech-ui .speech-filter-toggle:focus-visible { outline: 2px solid #358bbf; outline-offset: 5px; }
.speech-ui .speech-filter-toggle > .icon-chevron-down { transition: transform .2s; }
.speech-ui .speech-filter-toggle[aria-expanded="true"] > .icon-chevron-down { transform: rotate(180deg); }
.speech-ui .speech-search-actions { flex-wrap: wrap; justify-content: flex-end !important; gap: .75rem; }
.speech-ui .speech-search-actions .btn { margin: 0 !important; }
.speech-ui .speech-dashboard-filters { display: flex; flex-wrap: wrap; align-items: flex-end; }
.speech-ui .speech-dashboard-filters .select2-container { width: 100% !important; }
.speech-ui #xlarge .modal-content { border: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 50px rgba(15, 23, 42, .18); }
.speech-ui #xlarge .modal-header { background: #20374b; padding: 1rem 1.25rem; border: 0; }
.speech-ui #xlarge .modal-header .modal-title { color: #fff; font-size: 1.1rem; }
.speech-ui #xlarge .modal-header .close { color: #fff; opacity: 1; text-shadow: none; }
.speech-ui #xlarge .modal-body { background: #f4f7fa; padding: 1.25rem; }
.speech-ui #xlarge .nav-tabs { border: 0; background: #fff; border-radius: 10px; padding: 4px; display: flex; flex-wrap: wrap; gap: 4px; }
.speech-ui #xlarge .nav-tabs .nav-link { border: 0; border-radius: 7px; color: #526a80; padding: .65rem .8rem; font-size: .9rem; }
.speech-ui #xlarge .nav-tabs .nav-link.active { background: #286b97; color: #fff; }
.speech-ui #xlarge .table-responsive { margin-top: 1rem; }
.speech-ui .speech-members-table td:first-child { font-weight: 500; }
.speech-ui .speech-members-table .badge { padding: .4em .65em; border-radius: 6px; }
.speech-ui .speech-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.5rem;
  padding: .75rem 1rem;
  border: 1px solid #e1e8ee;
  border-radius: 10px;
  background: #f4f8fb;
  color: #526775;
  font-size: .85rem;
}
.speech-ui .speech-preview-toolbar form { display: flex; align-items: center; gap: .6rem; margin: 0; }
.speech-ui .speech-preview-toolbar label { margin: 0; }
.speech-ui .speech-preview-toolbar select { width: 180px; }
.speech-ui #speech-processor-panel .card-body > .d-flex { flex-wrap: wrap; gap: .6rem; }
.speech-ui #speech-processor-counts { margin-top: .35rem; line-height: 1.6; }
.speech-ui #speech-processor-errors > .d-flex { flex-wrap: wrap; gap: .5rem; }
@media (max-width: 1199.98px) {
  .speech-ui .header-navbar .bookmark-wrapper { min-width: 0; }
  .speech-ui .header-navbar .navbar-container { padding-left: .5rem; padding-right: .5rem; }
}
@media (max-width: 575.98px) {
  .speech-ui .content .content-wrapper { padding-left: 1.2rem; padding-right: 1.2rem; }
  .speech-ui .content-header-title { font-size: 1.45rem; line-height: 1.4; }
  .speech-ui .speech-access .card-body { padding: 1.25rem; }
  .speech-ui .speech-preview-toolbar { padding: .75rem; }
  .speech-ui .speech-preview-toolbar form { flex: 1; justify-content: flex-end; }
  .speech-ui .speech-preview-toolbar select { width: auto; min-width: 140px; max-width: 190px; }
  .speech-ui .speech-members-table { display: block; margin: 0; }
  .speech-ui .speech-members-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .speech-ui .speech-members-table tbody { display: block; padding: 0 1.25rem 1rem; }
  .speech-ui .speech-members-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .8rem 1rem; padding: 1rem 0; border-top: 1px solid #edf0f3; }
  .speech-ui .speech-members-table td { display: block; padding: 0; border: 0; overflow-wrap: anywhere; }
  .speech-ui .speech-members-table td::before { display: block; content: attr(data-label); color: #687783; font-size: .76rem; font-weight: 500; margin-bottom: .25rem; }
  .speech-ui .speech-members-table td[colspan] { grid-column: 1 / -1; }
  .speech-ui .speech-access .btn { max-width: 100%; white-space: normal; }
}
