.dashboard-widget-page .dashboard-actions-top {
  margin-bottom: 10px;
}

.dashboard-widget-col {
  margin-bottom: 15px;
}

.dashboard-shortcut-box {
  height: 145px;
  min-height: 145px;
  border-radius: 4px;
  overflow: hidden;
}

.dashboard-shortcut-box .box-body {
  height: 142px;
  min-height: 142px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dashboard-shortcut-icon {
  font-size: 30px;
  line-height: 30px;
  margin-bottom: 2px;
}

.dashboard-shortcut-title {
  margin: 0;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
}

.dashboard-shortcut-desc {
  min-height: 18px;
  margin: 2px 0 6px 0;
  color: #777;
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-shortcut-box .btn {
  margin-top: 0;
}

.dashboard-table-widget .box-body {
  padding-top: 0;
}

.dashboard-table-widget table {
  margin-bottom: 0;
}

.dashboard-empty-state {
  padding: 20px;
  color: #777;
  text-align: center;
}

.dashboard-widget-admin .checkbox {
  margin-top: 0;
  margin-bottom: 8px;
}

.dashboard-widget-admin .widget-meta {
  color: #777;
  font-size: 12px;
}

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

.btn-app {
  border-radius: 3px;
  position: relative;
  padding: 13px 15px;
  margin: 10px 0 10px 10px;
  min-width: 85px;
  height: 100px;
  text-align: center;
  color: #666;
  border: 1px solid #ddd;
  background-color: #f4f4f4;
  font-size: 17px;
}

.btn-app > .fa,
.btn-app > .glyphicon,
.btn-app > .ion {
  font-size: 46px;
  display: block;
}

.dashboard-widget-check {
    min-height: 58px;
    padding: 8px 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fafafa;
}

.dashboard-personel-select-panel {
  padding: 12px 12px 4px 12px;
  border: 1px solid #eee;
  background: #fafafa;
  border-radius: 4px;
}

.dashboard-selected-personel-box {
  min-height: 66px;
  padding: 12px 15px;
  border: 1px solid #e5e5e5;
  background: #fff;
  border-radius: 4px;
}

.dashboard-selected-personel-box span,
.dashboard-selected-personel-box strong {
  display: block;
}

.dashboard-selected-personel-box strong {
  font-size: 18px;
  margin: 2px 0;
}

.dashboard-widget-count {
  font-size: 12px;
}

.dashboard-admin-separator {
  margin: 16px 0;
}

.dashboard-widget-list-title {
  margin-bottom: 10px;
}

.dashboard-widget-actions .btn {
  margin-left: 4px;
}

.dashboard-widget-check-list {
  margin-top: 8px;
}

.dashboard-stat-footer {
  cursor: default;
  pointer-events: none;
  font-weight: 600;
}

/* Widget yönetim ekranı */
.dashboard-widget-manager .dashboard-widget-help {
  margin-bottom: 15px;
}
.dashboard-widget-manager .dashboard-active-check {
  margin-top: 7px;
}
.dashboard-widget-manager .dashboard-widget-table td {
  vertical-align: middle !important;
}
.dashboard-widget-manager code {
  background: #f4f4f4;
  color: #333;
}

/* Stat widget kutuları */
.dashboard-stat-box {
  min-height: 145px;
}

.dashboard-stat-box .inner {
  min-height: 105px;
  padding: 18px 12px 14px 12px;
}

.dashboard-stat-box .inner h3 {
  margin-top: 8px;
  margin-bottom: 0;
}

.dashboard-stat-box .icon {
  top: 20px;
}

.dashboard-stat-box .small-box-footer {
  min-height: 38px;
  line-height: 38px;
  padding: 0 8px;
}

/* Nazar boncuğu / görselli stat widget */
.dashboard-stat-box .inner {
  position: relative;
  z-index: 1;
}

.dashboard-stat-box .dashboard-image-icon {
  position: absolute;
  right: 15px;
  top: 19px;
  z-index: 0;
  opacity: 0.23;
  font-size: 0;
  line-height: 1;
}

.dashboard-stat-box .dashboard-image-icon img {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.dashboard-nazar-widget .dashboard-nazar-text {
  font-size: 28px;
  line-height: 34px;
  white-space: nowrap;
}

/* Nazar Boncuğu widget - kutu içine sığdırılmış görünüm */
.dashboard-nazar-box {
  position: relative;
  overflow: hidden;
}
.dashboard-nazar-box .inner {
  position: relative;
  z-index: 2;
  padding-right: 120px;
}
.dashboard-nazar-box .inner h3 {
  margin: 0;
  font-size: 38px;
  line-height: 1;
  color: #fff;
}
.dashboard-nazar-text {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.2;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dashboard-nazar-icon {
  position: absolute;
  right: 12px;
  top: 12px;
  bottom: 42px;
  width: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .24;
  z-index: 1;
  pointer-events: none;
}
.dashboard-nazar-icon img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Gerçek dashboard yerleşim ekranı */
.dashboard-widget-layout-page .dashboard-layout-toolbar-box {
  margin-bottom: 15px;
}
.dashboard-layout-info {
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 10px 12px;
  margin-top: 24px;
  color: #555;
}
.dashboard-layout-info .fa {
  margin-right: 6px;
}
.dashboard-layout-action-bar {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 15px;
}
.dashboard-layout-grid {
  min-height: 80px;
}
.dashboard-layout-item {
  transition: opacity .15s ease, transform .15s ease;
}
.dashboard-layout-item.is-dragging {
  opacity: .45;
}
.dashboard-layout-item.is-hidden-widget .dashboard-layout-preview-content {
  opacity: .35;
  filter: grayscale(1);
}
.dashboard-layout-item.is-hidden-widget .dashboard-layout-card:after {
  content: 'Dashboard’da gizli';
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 5;
  background: rgba(0,0,0,.65);
  color: #fff;
  border-radius: 3px;
  padding: 3px 7px;
  font-size: 11px;
}
.dashboard-layout-card {
  position: relative;
  background: #fff;
  border: 2px dashed transparent;
  border-radius: 5px;
  padding-top: 39px;
  margin-bottom: 15px;
}
.dashboard-layout-card:hover {
  border-color: #d2d6de;
}
.dashboard-layout-card-tools {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  min-height: 34px;
  z-index: 20;
  background: rgba(255,255,255,.96);
  border: 1px solid #d2d6de;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  padding: 5px 7px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.dashboard-layout-drag-handle {
  cursor: move;
  color: #666;
  font-size: 15px;
  line-height: 1;
}
.dashboard-layout-widget-name {
  flex: 1;
  min-width: 70px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 600;
  font-size: 12px;
  color: #333;
}
.dashboard-layout-visible-check {
  margin: 0;
  font-weight: 400;
  font-size: 12px;
  white-space: nowrap;
}
.dashboard-layout-visible-check input {
  margin-top: 0;
}
.dashboard-layout-width-select {
  width: 72px !important;
  height: 26px !important;
  padding: 2px 6px;
}
.dashboard-layout-preview-content {
  pointer-events: none;
}
.dashboard-layout-preview-content .box,
.dashboard-layout-preview-content .small-box {
  margin-bottom: 0;
}
.dashboard-layout-bottom-save {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 12px;
  margin-top: 5px;
}
@media (max-width: 767px) {
  .dashboard-layout-action-bar .pull-left,
  .dashboard-layout-action-bar .pull-right {
    float: none !important;
  }
  .dashboard-layout-action-bar .pull-right {
    margin-top: 10px;
  }
  .dashboard-layout-card-tools {
    flex-wrap: wrap;
    min-height: 66px;
  }
  .dashboard-layout-card {
    padding-top: 72px;
  }
}

/* Dashboard üzerinde gizli widgetın bıraktığı boş alan */
.dashboard-widget-empty-space {
  margin-bottom: 15px;
}
.dashboard-empty-widget-slot {
  min-height: 145px;
  border: 1px dashed transparent;
  border-radius: 4px;
}

/* Layout ekranında gizli widget boşluğu */
.dashboard-layout-empty-slot {
  margin-bottom: 15px;
}
.dashboard-empty-slot-inner {
  min-height: 184px;
  border: 2px dashed #c9d2dc;
  border-radius: 5px;
  background: #f9fafc;
  color: #7a8694;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 12px;
}
.dashboard-empty-slot-inner .fa {
  font-size: 22px;
  margin-bottom: 6px;
  color: #9aa6b2;
}
.dashboard-empty-slot-inner span {
  font-weight: 600;
  display: block;
}
.dashboard-empty-slot-inner small {
  display: block;
  margin-top: 4px;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.dashboard-layout-empty-slot:hover .dashboard-empty-slot-inner {
  border-color: #b91c1c;
  background: #f4fbff;
}
.dashboard-hidden-widget-box {
  margin-top: 10px;
}
.dashboard-hidden-widget-grid .dashboard-layout-item {
  opacity: .72;
}
.dashboard-hidden-widget-grid .dashboard-layout-card {
  border-color: #e5e5e5;
  background: #fbfbfb;
}
.dashboard-hidden-widget-grid .dashboard-layout-preview-content {
  opacity: .45;
  filter: grayscale(1);
}
.dashboard-hidden-empty-message .alert {
  margin-bottom: 0;
}
.no-margin {
  margin: 0 !important;
}

/* v26: Layout kaymasını engelleyen gerçek grid davranışı
   Bootstrap 3 float yapısı, yükseklikleri farklı widgetlarda sonraki widgetı
   kısa olan kolonun altına sıkıştırabiliyor. Flex-wrap ile her satır kendi
   en yüksek elemanına göre kapanır; gizli widget boşluğu gerçek slot gibi kalır. */
.dashboard-widget-grid,
.dashboard-layout-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
}
.dashboard-widget-grid:before,
.dashboard-widget-grid:after,
.dashboard-layout-grid:before,
.dashboard-layout-grid:after {
  display: none !important;
  content: none !important;
}
.dashboard-widget-grid > .dashboard-widget-col,
.dashboard-layout-grid > .dashboard-layout-item,
.dashboard-hidden-widget-grid > .dashboard-layout-item {
  float: none !important;
}
.dashboard-layout-grid > .dashboard-layout-item,
.dashboard-widget-grid > .dashboard-widget-col {
  display: block;
}
.dashboard-layout-item .dashboard-layout-card,
.dashboard-layout-empty-slot .dashboard-empty-slot-inner,
.dashboard-widget-empty-space .dashboard-empty-widget-slot {
  height: calc(100% - 15px);
}
.dashboard-layout-empty-slot .dashboard-empty-slot-inner {
  min-height: 184px;
}
.dashboard-hidden-widget-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}
.dashboard-hidden-widget-grid:before,
.dashboard-hidden-widget-grid:after {
  display: none !important;
  content: none !important;
}

/* MGM v27: Portal genel tema kırmızı kalır; dashboard widgetları için mavi tonlar serbest bırakıldı. */
.dashboard-widget-page .small-box.bg-blue,
.dashboard-widget-layout-page .small-box.bg-blue,
.dashboard-widget-page .small-box.bg-light-blue,
.dashboard-widget-layout-page .small-box.bg-light-blue {
  background-color: #3c8dbc !important;
  color: #fff !important;
}
.dashboard-widget-page .small-box.bg-aqua,
.dashboard-widget-layout-page .small-box.bg-aqua {
  background-color: #00c0ef !important;
  color: #fff !important;
}
.dashboard-widget-page .small-box.bg-navy,
.dashboard-widget-layout-page .small-box.bg-navy {
  background-color: #001f3f !important;
  color: #fff !important;
}
.dashboard-widget-page .dashboard-shortcut-box.box-primary,
.dashboard-widget-layout-page .dashboard-shortcut-box.box-primary {
  border-top-color: #3c8dbc !important;
}
.dashboard-widget-page .dashboard-shortcut-box.box-info,
.dashboard-widget-layout-page .dashboard-shortcut-box.box-info {
  border-top-color: #00c0ef !important;
}
.dashboard-widget-page .dashboard-shortcut-box .btn-primary,
.dashboard-widget-layout-page .dashboard-shortcut-box .btn-primary {
  background-color: #3c8dbc !important;
  border-color: #367fa9 !important;
  color: #fff !important;
}
.dashboard-widget-page .dashboard-shortcut-box .btn-primary:hover,
.dashboard-widget-page .dashboard-shortcut-box .btn-primary:active,
.dashboard-widget-page .dashboard-shortcut-box .btn-primary:focus,
.dashboard-widget-layout-page .dashboard-shortcut-box .btn-primary:hover,
.dashboard-widget-layout-page .dashboard-shortcut-box .btn-primary:active,
.dashboard-widget-layout-page .dashboard-shortcut-box .btn-primary:focus {
  background-color: #367fa9 !important;
  border-color: #2c6d91 !important;
  color: #fff !important;
}
.dashboard-widget-page .dashboard-shortcut-box .btn-info,
.dashboard-widget-layout-page .dashboard-shortcut-box .btn-info {
  background-color: #00c0ef !important;
  border-color: #00acd6 !important;
  color: #fff !important;
}
.dashboard-widget-page .dashboard-shortcut-box .btn-info:hover,
.dashboard-widget-page .dashboard-shortcut-box .btn-info:active,
.dashboard-widget-page .dashboard-shortcut-box .btn-info:focus,
.dashboard-widget-layout-page .dashboard-shortcut-box .btn-info:hover,
.dashboard-widget-layout-page .dashboard-shortcut-box .btn-info:active,
.dashboard-widget-layout-page .dashboard-shortcut-box .btn-info:focus {
  background-color: #00acd6 !important;
  border-color: #0097bc !important;
  color: #fff !important;
}
.dashboard-widget-page .dashboard-shortcut-icon.text-light-blue,
.dashboard-widget-layout-page .dashboard-shortcut-icon.text-light-blue {
  color: #3c8dbc !important;
}
.dashboard-widget-page .dashboard-shortcut-icon.text-aqua,
.dashboard-widget-layout-page .dashboard-shortcut-icon.text-aqua {
  color: #00c0ef !important;
}
