/*
* demo.css
* File include item demo only specific css only
******************************************************************************/
:root {
    font-size: 13px; /* Naik dari 12px */
}

body {
    font-size: 0.95rem; /* Sedikit lebih besar */
    line-height: 1.4;
}

/* Merapikan container dan spacing */
.container {
    max-width: 1100px; /* Sedikit lebih besar */
    padding: 0 10px;
}

/* Merapikan tabel */
.table-responsive {
    padding: 10px;
}

.table td, .table th {
    padding: 0.4rem; /* Sedikit lebih besar */
    font-size: 0.9rem;
}

/* Merapikan header dan spacing */
.header-section {
    width: auto;
    padding: 0.5rem 1.5rem;
    margin-bottom: 1rem;
}

/* Merapikan spacing komponen */
.row {
    margin-right: -10px;
    margin-left: -10px;
}

.col-md-4 {
    padding-right: 10px;
    padding-left: 10px;
}

/* Merapikan tombol dan kontrol */
.btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.9rem;
}

/* Merapikan form controls */
.form-control {
    padding: 0.3rem 0.6rem;
    font-size: 0.9rem;
    height: calc(1.4em + 0.6rem + 2px);
}

/* Merapikan DataTables */
.dataTables_wrapper {
    font-size: 0.9rem;
}

.dataTables_length select,
.dataTables_filter input {
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
}

/* Merapikan spacing antara elemen */
.g-4 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

/* Merapikan margin dan padding */
.mt-2 {
    margin-top: 0.375rem !important;
}

.mb-3 {
    margin-bottom: 0.5rem !important;
}

/* Merapikan tampilan tabel */
.table > :not(caption) > * > * {
    padding: 0.5rem;
}

/* Merapikan tombol aksi */
.btn-sm {
    padding: 0.25rem 0.45rem;
    font-size: 0.875rem;
}

/* Menyesuaikan ukuran komponen-komponen UI */
.menu-icon {
    width: 22px; /* Sedikit lebih besar dari 20px */
    height: 22px;
    margin-right: 0.375rem; /* Kurangi margin */
    font-size: 1rem;
}

/* Menyesuaikan padding dan margin */
.welcome-banner {
    padding: 1.2rem;
}

.menu-item {
    margin: 0.125rem 0; /* Kurangi margin */
    padding: 0.3rem 0.6rem; /* Sedikit lebih besar */
}

/* Menyesuaikan ukuran font */
h2 {
    font-size: 1.3rem;
}

h3 {
    font-size: 1.15rem;
}

h4, h5, h6 {
    font-size: 0.95rem;
}

textarea, select {
  field-sizing: content;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

.select2-selection__clear {
  display: none !important;
}

/* .select2-selection__rendered {
  display: none !important;
} */

.urutan {
  cursor: move;
  background-color: #f8f9fa;
}
tr:hover .urutan {
  background-color: #e9ecef;
}

.menu .app-brand.demo {
  height: 64px;
  margin-top: 12px;
}

.app-brand-logo.demo svg {
  width: 22px;
  height: 38px;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
  text-transform: lowercase;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 76px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}
.dataTables_wrapper .dataTables_filter {
    float: right;
    text-align: right;
  }

  .dataTables_wrapper .dataTables_paginate {
    float: right;
    text-align: right;
  }

  .table-responsive {
    padding: 20px;
  }

  .modal-body input,
  .modal-body textarea {
    margin-bottom: 15px;
  }

  .dataTables_wrapper .dataTables_filter {
    float: right;
    text-align: right;
  }

  .dataTables_wrapper .dataTables_paginate {
    float: right;
    text-align: right;
  }

  .table-responsive {
    padding: 20px;
  }

  .modal-body input,
  .modal-body textarea {
    margin-bottom: 15px;
  }

/* Merapikan sidebar */
.menu-vertical {
    width: 240px; /* Sedikit lebih lebar */
    padding: 0.5rem 0; /* Kurangi padding */
}

/* Logo dan brand */
.app-brand {
    padding: 0 1.25rem;
    height: 64px;
    display: flex;
    align-items: center;
}

.app-brand-logo {
    display: flex;
    align-items: center;
}

.app-brand-logo img {
    max-height: 40px;
    width: auto;
}

/* Menu items */
.menu-inner {
    padding: 0 0.5rem; /* Kurangi padding */
}

.menu-link {
    padding: 0.55rem 0.8rem; /* Sedikit lebih besar */
    display: flex;
    align-items: center;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}

/* Teks menu */
.menu-text {
    font-size: 0.85rem; /* Sedikit lebih besar dari 0.8rem */
    font-weight: 500;
}

/* Header sections dalam sidebar */
.menu-header {
    padding: 0.375rem 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
}

/* Active state */
.menu-item.active .menu-link {
    background-color: #696cff;
    color: #fff;
}

/* Hover state */
.menu-link:hover {
    background-color: rgba(105, 108, 255, 0.1);
}

/* Spacing untuk submenu */
.menu-sub {
    padding-left: 1.75rem; /* Kurangi padding */
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .menu-vertical {
        width: 230px;
    }
}
