html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--isgburda-ink);
  font-family: var(--isgburda-font-body);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--isgburda-teal);
  box-shadow: 0 0 0 0.16rem rgba(27, 128, 135, 0.16);
}

/* Admin ortak sayfa genişliği */

/*:is(
  .dashboard-page,
  .service-page,
  .supplier-approval-page,
  .membership-page,
  .customer-page,
  .ads-page
) {
  max-width: 1220px;
}
*/
/* Admin üst başlık standardı */

:is(
  .dashboard-title,
  .service-title,
  .supplier-approval-title,
  .membership-title,
  .customer-title,
  .ads-title,
  .addad-title,
  .ads-preview-title
) {
  color: #111827;
  font-family: var(--isgburda-font-body);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
}

/* Admin ortak üst aksiyon butonları */

:is(
  .dashboard-primary-btn,
  .dashboard-light-btn,
  .dashboard-filter-btn,
  .service-primary-btn,
  .service-light-btn,
  .service-product-btn,
  .supplier-primary-btn,
  .supplier-light-btn,
  .supplier-danger-btn,
  .membership-primary-btn,
  .membership-light-btn,
  .customer-primary-btn,
  .customer-light-btn,
  .ads-primary-btn,
  .ads-light-btn,
  .addad-primary-btn,
  .addad-light-btn,
  .ads-amber-btn
) {
  height: 30px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
}

/* Primary buttons */

:is(
  .dashboard-primary-btn,
  .service-primary-btn,
  .supplier-primary-btn,
  .membership-primary-btn,
  .customer-primary-btn,
  .ads-primary-btn,
  .addad-primary-btn
) {
  border: 0;
  background: var(--isgburda-teal);
  color: #fff;
}

:is(
  .dashboard-primary-btn,
  .service-primary-btn,
  .supplier-primary-btn,
  .membership-primary-btn,
  .customer-primary-btn,
  .ads-primary-btn,
  .addad-primary-btn
):hover,
:is(
  .dashboard-primary-btn,
  .service-primary-btn,
  .supplier-primary-btn,
  .membership-primary-btn,
  .customer-primary-btn,
  .ads-primary-btn,
  .addad-primary-btn
):focus {
  background: var(--isgburda-teal-deep);
  color: #fff;
}

/* Light buttons */

:is(
  .dashboard-light-btn,
  .dashboard-filter-btn,
  .service-light-btn,
  .supplier-light-btn,
  .membership-light-btn,
  .customer-light-btn,
  .ads-light-btn,
  .addad-light-btn
) {
  border: 1px solid #e8eeee;
  background: #fff;
  color: #111827;
}

:is(
  .dashboard-light-btn,
  .dashboard-filter-btn,
  .service-light-btn,
  .supplier-light-btn,
  .membership-light-btn,
  .customer-light-btn,
  .ads-light-btn,
  .addad-light-btn
):hover,
:is(
  .dashboard-light-btn,
  .dashboard-filter-btn,
  .service-light-btn,
  .supplier-light-btn,
  .membership-light-btn,
  .customer-light-btn,
  .ads-light-btn,
  .addad-light-btn
):focus,
:is(
  .dashboard-light-btn,
  .dashboard-filter-btn,
  .service-light-btn,
  .supplier-light-btn,
  .membership-light-btn,
  .customer-light-btn,
  .ads-light-btn,
  .addad-light-btn
).show {
  border-color: var(--isgburda-teal-soft);
  background: var(--isgburda-teal-soft);
  color: var(--isgburda-teal-deep);
}

/* Amber / product buttons */

:is(.service-product-btn, .ads-amber-btn) {
  border: 1px solid var(--isgburda-amber-soft);
  background: var(--isgburda-amber-soft);
  color: #b87712;
}

:is(.service-product-btn, .ads-amber-btn):hover,
:is(.service-product-btn, .ads-amber-btn):focus {
  border-color: var(--isgburda-amber);
  background: var(--isgburda-amber);
  color: #fff;
}

/* Danger buttons */

.supplier-danger-btn {
  border: 1px solid #fdeaea;
  background: #fdeaea;
  color: #a53b3b;
}

.supplier-danger-btn:hover,
.supplier-danger-btn:focus {
  border-color: #a53b3b;
  background: #a53b3b;
  color: #fff;
}

/* Admin tabs */

:is(
  .dashboard-tab,
  .service-tab,
  .supplier-tab,
  .customer-tab,
  .membership-tab,
  .ads-tab
) {
  color: var(--isgburda-muted);
  font-size: 13px;
  font-weight: 700;
}

:is(
  .dashboard-tab,
  .service-tab,
  .supplier-tab,
  .customer-tab,
  .membership-tab,
  .ads-tab
):hover,
:is(
  .dashboard-tab,
  .service-tab,
  .supplier-tab,
  .customer-tab,
  .membership-tab,
  .ads-tab
):focus {
  color: var(--isgburda-teal-deep);
}

:is(
  .dashboard-tab,
  .service-tab,
  .supplier-tab,
  .customer-tab,
  .membership-tab,
  .ads-tab
).active {
  color: var(--isgburda-teal-deep);
  font-weight: 800;
}

:is(
  .service-tabs,
  .supplier-tabs,
  .customer-tabs,
  .membership-tabs,
  .ads-tabs
) {
  min-width: 0;
  max-width: 100%;
  padding: 0;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

:is(
  .service-tabs,
  .supplier-tabs,
  .customer-tabs,
  .membership-tabs,
  .ads-tabs
)::-webkit-scrollbar {
  display: none;
}

:is(.service-tab, .supplier-tab, .ads-tab) {
  position: relative;
}

/* Admin toolbar dropdown */

:is(
  .service-toolbar-menu,
  .service-dropdown-menu,
  .supplier-toolbar-menu,
  .supplier-dropdown-menu,
  .customer-toolbar-menu,
  .customer-dropdown-menu,
  .membership-toolbar-menu,
  .membership-dropdown-menu,
  .ads-action-menu
) {
  z-index: 1080;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--isgburda-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 42, 46, 0.14);
}

:is(.customer-toolbar-menu, .customer-dropdown-menu, .membership-toolbar-menu, .membership-dropdown-menu) {
  min-width: 196px;
}

.ads-action-menu {
  min-width: 174px;
}

:is(
    .service-toolbar-menu,
    .service-dropdown-menu,
    .supplier-toolbar-menu,
    .supplier-dropdown-menu,
    .customer-toolbar-menu,
    .customer-dropdown-menu,
    .membership-toolbar-menu,
    .membership-dropdown-menu,
    .ads-action-menu
  )
  .dropdown-item {
  min-height: 34px;
  border-radius: 8px;
  color: var(--isgburda-ink-2);
  font-size: 12px;
  font-weight: 650;
}

:is(
    .service-toolbar-menu,
    .service-dropdown-menu,
    .supplier-toolbar-menu,
    .supplier-dropdown-menu,
    .customer-toolbar-menu,
    .customer-dropdown-menu,
    .membership-toolbar-menu,
    .membership-dropdown-menu,
    .ads-action-menu
  )
  .dropdown-item:hover,
:is(
    .service-toolbar-menu,
    .service-dropdown-menu,
    .supplier-toolbar-menu,
    .supplier-dropdown-menu,
    .customer-toolbar-menu,
    .customer-dropdown-menu,
    .membership-toolbar-menu,
    .membership-dropdown-menu,
    .ads-action-menu
  )
  .dropdown-item:focus,
:is(
  .service-toolbar-menu,
  .supplier-toolbar-menu,
  .customer-toolbar-menu,
  .membership-toolbar-menu
) .dropdown-item.is-selected {
  background: var(--isgburda-teal-soft);
  color: var(--isgburda-teal-deep);
}

:is(
  .service-menu-count,
  .supplier-menu-count,
  .customer-menu-count,
  .membership-menu-count
) {
  min-width: 24px;
  height: 22px;
  padding: 0 8px;
  background: var(--isgburda-bg-2);
  color: var(--isgburda-muted);
  font-size: 10px;
  font-weight: 750;
}

/* Admin page sections */

:is(
  .service-table-panel,
  .supplier-table-section,
  .customer-table-section,
  .membership-table-section,
  .ads-table-section
) {
  position: relative;
  z-index: 2;
}

:is(.service-panel, .addad-panel) {
  border: 0;
  border-radius: 0;
  background: transparent;
}

:is(.service-panel-header) {
  border-bottom: 0;
}

:is(.service-table-header) {
  overflow: visible;
}

:is(.service-panel-header, .customer-toolbar, .supplier-toolbar, .membership-toolbar, .ads-toolbar) {
  min-height: 58px;
  padding: 0 0 14px;
}

:is(.service-toolbar-actions, .supplier-toolbar-actions, .customer-toolbar-actions, .membership-toolbar-actions, .ads-toolbar-actions) {
  flex-shrink: 0;
  min-width: 0;
}

.service-toolbar-actions {
  padding-bottom: 12px;
}

:is(.service-tab) {
  padding: 0 0 16px;
}

:is(.service-search, .supplier-search, .customer-search, .membership-search, .ads-search) {
  width: 290px;
}

:is(.service-search) {
  width: 280px;
}

:is(.service-search-input, .supplier-search-input, .customer-search-input, .membership-search-input, .ads-search-input) {
  padding: 0 42px 0 15px;
}

:is(.service-action-cell, .supplier-action-cell, .customer-action-cell, .membership-action-cell) {
  overflow: visible !important;
}

:is(.service-empty-state, .supplier-empty-state, .customer-empty-state, .membership-empty-state, .ads-empty-state) {
  color: var(--isgburda-muted);
  border-top: 1px solid var(--isgburda-line);
}

:is(.service-empty-state, .supplier-empty-state, .customer-empty-state, .membership-empty-state, .ads-empty-state) i {
  color: var(--isgburda-teal-deep);
  font-size: 22px;
}

:is(.service-empty-state, .supplier-empty-state, .customer-empty-state, .membership-empty-state, .ads-empty-state) p {
  font-size: 13px;
  font-weight: 600;
}

/* Admin search inputs */

:is(
  .service-search-input,
  .supplier-search-input,
  .supplier-select,
  .customer-search-input,
  .membership-search-input,
  .ads-search-input
) {
  height: 30px;
  min-height: 30px;
  border: 1px solid #edf0f2;
  border-radius: 999px;
  color: #111827;
  font-size: 12px;
  font-weight: 650;
  box-shadow: none !important;
}

:is(
  .service-search-input,
  .supplier-search-input,
  .supplier-select,
  .customer-search-input,
  .membership-search-input,
  .ads-search-input
)::placeholder {
  color: var(--isgburda-muted);
  opacity: 0.72;
}

:is(
  .service-search-input,
  .supplier-search-input,
  .supplier-select,
  .customer-search-input,
  .membership-search-input,
  .ads-search-input
):focus {
  border-color: var(--isgburda-teal);
}

:is(
  .service-search-icon,
  .supplier-search-icon,
  .customer-search-icon,
  .membership-search-icon,
  .ads-search-icon
) {
  position: absolute;
  top: 50%;
  right: 14px;
  color: #111827;
  font-size: 13px;
  transform: translateY(-50%);
}

/* Admin table wrappers */

:is(
  .service-table-wrap,
  .supplier-table-wrap,
  .customer-table-wrap,
  .membership-table-wrap,
  .ads-table-wrap
) {
  max-height: none;
  overflow-y: visible !important;
  overflow-x: visible !important;
  border: 1px solid var(--isgburda-line);
  border-radius: 16px;
  background: var(--isgburda-card);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

:is(
  .dashboard-table-card,
  .service-table-wrap,
  .supplier-table-wrap,
  .customer-table-wrap,
  .membership-table-wrap,
  .ads-table-wrap
) table.dataTable {
  border-radius: 16px;
}

:is(
  .service-table-wrap,
  .supplier-table-wrap,
  .customer-table-wrap,
  .membership-table-wrap,
  .ads-table-wrap
)::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.dashboard-table-card {
  overflow: hidden;
  border: 1px solid var(--isgburda-line);
  border-radius: 16px;
  background: var(--isgburda-card);
}

/* Admin tables */

:is(
  .dashboard-table,
  .service-table,
  .supplier-table,
  .customer-table,
  .membership-table,
  .ads-table
) {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

:is(.service-table, .supplier-table, .customer-table, .membership-table) thead {
  position: sticky;
  top: 0;
  z-index: 5;
}

:is(
  .dashboard-table,
  .service-table,
  .supplier-table,
  .customer-table,
  .membership-table,
  .ads-table
) th {
  height: 50px;
  padding: 0 12px;
  background: #f4f8f8;
  color: #6f8387;
  border-bottom: 1px solid var(--isgburda-line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}

:is(
  .dashboard-table,
  .service-table,
  .supplier-table,
  .customer-table,
  .membership-table,
  .ads-table
) td {
  height: 64px;
  padding: 0 12px;
  color: var(--isgburda-ink);
  border-bottom: 1px solid #edf2f2;
  font-size: 13px;
  font-weight: 500;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}

:is(
  .dashboard-table,
  .service-table,
  .supplier-table,
  .customer-table,
  .membership-table,
  .ads-table
) tbody tr:last-child td {
  border-bottom: 0;
}

:is(
  .dashboard-table,
  .service-table,
  .supplier-table,
  .customer-table,
  .membership-table,
  .ads-table
) tbody tr:hover {
  background: #fbfdfd;
}

:is(
  .dashboard-table,
  .service-table,
  .supplier-table,
  .customer-table,
  .membership-table,
  .ads-table
) tr[hidden] {
  display: none;
}

/* Name / company cells */

:is(
  .table-company,
  .service-name,
  .supplier-company,
  .customer-company,
  .customer-user,
  .customer-business,
  .customer-size,
  .membership-company,
  .membership-package,
  .membership-date,
  .ads-creative,
  .ads-location,
  .ads-date
) {
  min-width: 0;
}

:is(
  .table-company,
  .service-name,
  .supplier-company,
  .customer-company,
  .customer-user,
  .customer-business,
  .customer-size,
  .membership-company,
  .membership-package,
  .membership-date,
  .ads-creative,
  .ads-location,
  .ads-date
) strong {
  overflow: hidden;
  color: var(--isgburda-ink);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is(
  .table-company,
  .service-name,
  .supplier-company,
  .customer-company,
  .customer-user,
  .customer-business,
  .customer-size,
  .membership-company,
  .membership-package,
  .membership-date,
  .ads-creative,
  .ads-location,
  .ads-date
) small {
  overflow: hidden;
  color: var(--isgburda-muted);
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Badges */

:is(
  .dashboard-type,
  .dashboard-status,
  .service-badge,
  .service-type-badge,
  .supplier-badge,
  .membership-badge,
  .customer-badge,
  .ads-badge,
  .pos-badge
) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  max-width: 100%;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

:is(.badge-success, .service-badge-active, .status-success, .type-service) {
  background: #dff0ef;
  color: var(--isgburda-teal-deep);
}

:is(.badge-pending, .status-pending, .type-product) {
  background: #f7ead0;
  color: #b87712;
}

:is(.badge-danger, .badge-danger-soft) {
  background: #fdeaea;
  color: #a53b3b;
}

:is(.badge-muted, .service-badge-passive, .status-muted) {
  border: 1px solid var(--isgburda-line);
  background: var(--isgburda-bg-2);
  color: var(--isgburda-muted);
}

/* Round action buttons */

:is(
  .dashboard-icon-action,
  .service-menu-btn,
  .supplier-menu-btn,
  .service-action-btn,
  .supplier-action-btn,
  .membership-action-btn,
  .customer-action-btn,
  .ads-action-btn,
  .ads-menu-btn,
  .customer-menu-btn,
  .membership-menu-btn
) {
  width: 34px;
  height: 34px;
  border: 1px solid var(--isgburda-line);
  border-radius: 50%;
  background: var(--isgburda-bg);
  color: var(--isgburda-teal-deep);
  font-size: 15px;
}

:is(
  .dashboard-icon-action,
  .service-menu-btn,
  .supplier-menu-btn,
  .service-action-btn,
  .supplier-action-btn,
  .membership-action-btn,
  .customer-action-btn,
  .ads-action-btn,
  .ads-menu-btn,
  .customer-menu-btn,
  .membership-menu-btn
):hover,
:is(
  .dashboard-icon-action,
  .service-menu-btn,
  .supplier-menu-btn,
  .service-action-btn,
  .supplier-action-btn,
  .membership-action-btn,
  .customer-action-btn,
  .ads-action-btn,
  .ads-menu-btn,
  .customer-menu-btn,
  .membership-menu-btn
):focus,
:is(.service-menu-btn, .supplier-menu-btn, .customer-menu-btn, .membership-menu-btn).show {
  border-color: var(--isgburda-teal);
  background: var(--isgburda-teal-soft);
  color: var(--isgburda-teal-deep);
}

/* Modals */

:is(.service-modal, .supplier-modal, .customer-modal, .membership-modal) {
  border: 0;
  border-radius: 16px;
}

:is(.service-modal, .supplier-modal, .customer-modal, .membership-modal) .modal-title {
  color: var(--isgburda-ink);
  font-size: 17px;
  font-weight: 750;
}

:is(.service-modal, .supplier-modal, .customer-modal, .membership-modal) .modal-header,
:is(.service-modal, .supplier-modal, .customer-modal, .membership-modal) .modal-footer {
  border-color: var(--isgburda-line);
}

:is(.service-form-control, .supplier-form-control, .customer-form-control, .membership-form-control) {
  min-height: 40px;
  border-color: var(--isgburda-line);
  border-radius: 10px;
  color: var(--isgburda-ink-2);
  font-size: 13px;
  font-weight: 500;
  box-shadow: none !important;
}

:is(.service-form-control, .supplier-form-control, .customer-form-control, .membership-form-control):focus {
  border-color: var(--isgburda-teal);
}

:is(.service-detail-list, .supplier-detail-list, .customer-detail-list, .membership-detail-list) span {
  display: block;
  margin-bottom: 4px;
  color: var(--isgburda-muted);
  font-size: 12px;
  font-weight: 600;
}

:is(.service-detail-list, .supplier-detail-list, .customer-detail-list, .membership-detail-list) strong {
  display: block;
  color: var(--isgburda-ink);
  font-size: 14px;
  font-weight: 700;
}

:is(.service-confirm-text, .supplier-confirm-text, .customer-confirm-text, .membership-confirm-text) {
  color: var(--isgburda-ink-2);
  font-size: 14px;
  font-weight: 500;
}

/* Mobile */

@media (max-width: 992px) {
  :is(
    .service-table-wrap,
    .supplier-table-wrap,
    .customer-table-wrap,
    .membership-table-wrap
  ) {
    max-height: none;
  }

  :is(.service-search, .supplier-search, .customer-search, .membership-search),
  :is(
    .service-toolbar-actions,
    .supplier-toolbar-actions,
    .customer-toolbar-actions,
    .membership-toolbar-actions
  ) {
    width: 100%;
  }
}

@media (max-width: 1200px) {
  :is(.service-table-header, .supplier-toolbar, .customer-toolbar, .membership-toolbar) {
    align-items: flex-start !important;
    flex-direction: column;
  }

  :is(.service-tabs, .supplier-tabs, .customer-tabs, .membership-tabs),
  :is(
    .service-toolbar-actions,
    .supplier-toolbar-actions,
    .customer-toolbar-actions,
    .membership-toolbar-actions
  ) {
    width: 100%;
  }

  :is(
    .service-toolbar-actions,
    .supplier-toolbar-actions,
    .customer-toolbar-actions,
    .membership-toolbar-actions
  ) {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  :is(
    .dashboard-title,
    .service-title,
    .supplier-approval-title,
    .membership-title,
    .customer-title,
    .ads-title
  ) {
    font-size: 18px;
  }
}
