* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.view-value{
    padding:10px 12px;
    background:#f5f5f5;
    border-radius:8px;
    border:1px solid #ddd;
    min-height:20px;
    word-break:break-word;
    white-space:pre-wrap;
}

input[readonly] {
    background: #f5f5f5;
	cursor: not-allowed;
}
.card{
    max-width:600px;
    margin:20px auto;
    border-radius:18px;
    padding:20px;
}

@media (max-width: 768px) {

  body.dashboard-page {
    flex-direction: row;
  }

  body.dashboard-page .content {
    width: 100%;
    margin-left: 0;
    padding: 2px;
  }

  body.dashboard-page .card {
    border-radius: 18px;
    padding: 18px;
  }

}

.menu-toggle{
    display:none;
}
.mobile-toggle{
    position:fixed;
    top:15px;
    left:15px;
    z-index:5000;
}

body.dashboard-page .content{
    flex:1;
    width:100%;
    padding:5px;
    min-width:0;
}


}
.content {
    position: relative;
    background-image: url('img/moving-forward-2016.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.content::before{
    background:rgba(255,255,255,0.88);
}

.subtitle{
    color:#666;
    margin-top:-10px;
    margin-bottom:20px;
}

.left-tools{
    width:100%;
    min-width:0;
}

.table-wrapper{
    width:100%;
    max-width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    display:block;
}

.company-table{
    min-width:1400px;
}
.company-table.td{
    text-align:center;
}

.btn-scan{
    display:inline-block;
    margin-top:20px;
    padding:12px 18px;
    background:#0d6efd;
    color:#fff;
    text-decoration:none;
    border-radius:12px;
}

.form-group{
    margin-bottom:16px;
}

.form-group label{
    display:block;
    font-size:13px;
    color:#666;
    margin-bottom:6px;
}

.view-value{
    padding:12px;
    background:#f7f7f7;
    border:1px solid #ddd;
    border-radius:12px;
    font-size:15px;
}

.content > * {
    position: relative;
    z-index: 1;
}


body {
  font-family: Arial, sans-serif;
  min-height: 100vh;
  color: #111827;
  background: #f4f6f9;
}

/* DASHBOARD / APP LAYOUT */
body.dashboard-page {
  background: #f4f6f9;
}

.layout{
    display:flex;
    width:100%;
    min-height:100vh;
    position:relative;
    overflow-x:hidden;
}

.sidebar{
    width:260px;
	  overflow:hidden;
    min-width:260px;
    transition:all 0.3s ease;
    flex-shrink:0;
}

.sidebar.collapsed{
    width:80px;
    min-width:80px;
}

.main-content{
    flex:1;
    width:100%;
    min-width:0;
    overflow-x:hidden;
    transition:all 0.3s ease;
    padding-left:2px;
}
body.dashboard-page .content{
    width:100%;
}
/* SIDEBAR */
.sidebar.collapsed + .main-content{
    width:calc(100% - 80px);
}

/* CONTENT */
/* COLLAPSE DESKTOP */




/* icon ☰ desktop */
.mobile-toggle{
    display:block;
}

body.dashboard-page .sidebar {
  background: #111827;
  color: #fff;
  min-height: 100vh;
  padding: 10px 5px;
  flex-shrink: 0;
  font-size: 11px;
}

body.dashboard-page .brand {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 30px;
}

body.dashboard-page .menu a {
  display: block;
  color: #d1d5db;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 8px;
  transition: 0.2s;
}

body.dashboard-page .menu a:hover,
body.dashboard-page .menu a.active {
  background: #374151;
  color: #fff;
}

body.dashboard-page .content {
  flex: 1;
  padding: 2px;
  min-width: 0;
}

body.dashboard-page .mbank-card {
  padding: 20px;
}

body.dashboard-page .mbank-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}

body.dashboard-page .mbank-header h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

body.dashboard-page .mbank-table {
  width: 100%;
  border-collapse: collapse;
}

body.dashboard-page .mbank-table th,
body.dashboard-page .mbank-table td {
font-size: 13px;
padding: 8px 10px;
  vertical-align: middle;
}

body.dashboard-page .mbank-table th {
  font-weight: 700;
}

body.dashboard-page .mbank-table td .btn-icon img {
  width: 18px;
  height: 18px;
}


.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #fff;
  margin-bottom: 16px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.flash-icon {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
}

.flash-text {
  flex: 1;
  min-width: 0;
}

body.dashboard-page .card {
  background: #fff;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 100%;
}

body.dashboard-page .card h1 {
  margin-bottom: 10px;
  color: #052f88;
  font-size: 20px;
}

body.dashboard-page .card p {
  margin-bottom: 16px;
}

/* AUTH PAGES (LOGIN / REGISTER) */
body.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  color : red;
  min-height: 100vh;
  padding: 20px;
}

body.auth-page .auth-box {
  width: 100%;
  max-width: 420px;
  background: #fff;
  color : #f00e1a;
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

body.auth-page .auth-box h2 {
  margin-bottom: 18px;
  color: #111827;
}

body.auth-page .form-group {
  margin-bottom: 14px;
}

body.auth-page .form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #374151;
}

body.auth-page .form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
}

body.auth-page .form-group input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

body.auth-page .auth-btn {
  width: 100%;
  border: none;
  padding: 12px 14px;
  border-radius: 10px;
  background: #eb252f;
  color: #eb2525;
  font-weight: 600;
  cursor: pointer;
}

body.auth-page .auth-btn:hover {
  background: #1d4ed8;
}

body.auth-page .msg {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #eb2525;
}

body.auth-page .link {
  margin-top: 5px;
  text-align: center;
  font-size: 14px;
}

body.auth-page .link a {
  color: #2563eb;
  text-decoration: none;
}

/* PROFILE PAGE */
body.profile-page .content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2px;
}

body.profile-page .card {
  width: 100%;
  max-width: 920px;
  overflow: visible;
  padding: 24px;
}

body.profile-page .profile-form {
  margin-top: 5px;
}

body.profile-page .profile-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

body.profile-page .profile-form .form-group {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.profile-page .profile-form .form-group.full {
  grid-column: 1 / -1;
}

body.profile-page .profile-form .form-group label {
  font-weight: 600;
  color: #1f2937;
}

body.profile-page .profile-form .form-group input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1px solid #cfd6df;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-size: 15px;
  outline: none;
}

body.profile-page .profile-form .form-group input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

body.profile-page .profile-form .form-group input[readonly] {
  background: #f3f4f6;
  color: #6b7280;
}
body.profile-page .form-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  align-items: center !important;
  justify-content: flex-start !important;
  grid-column: 1 / -1 !important;
  margin-top: 5px !important;
  width: 100%;
}

body.profile-page .form-actions > a,
body.profile-page .form-actions > button {
  display: inline-flex !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: none !important;
  line-height: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
}

body.profile-page .form-actions img {
  width: 30px !important;
  height: 30px !important;
  display: block !important;
}


body.profile-page .icon-link,
body.profile-page .icon-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* USERS LIST */
body.users-page .content {
  padding: 2px;
}

body.users-page .users-card {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

body.users-page .users-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

body.users-page .users-header h1 {
  margin: 0;
}
body.users-page .add-icon {
  width: 20px;
  height: 20px;
  display: block;
}

body.users-page .table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

body.users-page table.users-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
  table-layout: auto;
}

body.users-page .users-table th,
body.users-page .users-table td {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  vertical-align: top;
  white-space: nowrap;
}

body.users-page .users-table th {
  background: #f3f4f6;
  font-weight: 600;
}

body.users-page .action-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

/* MBANK PAGE */
body.mbank-page .content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2px;
}

body.mbank-page .card {
  width: 100%;
  max-width: 920px;
  overflow: visible;
  padding: 22px;
}

body.mbank-page .mbank-card {
  width: 100%;
  max-width: 920px;
}

body.mbank-page .profile-form {
  margin-top: 5px;
}

body.mbank-page .profile-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

body.mbank-page .profile-form .form-group {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.mbank-page .profile-form .form-group.full {
  grid-column: 1 / -1;
}

body.mbank-page .profile-form .form-group label {
  font-weight: 600;
  color: #1f2937;
}

body.mbank-page .profile-form .form-group input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1px solid #cfd6df;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-size: 12px;
  outline: none;
}

body.mbank-page .profile-form .form-group input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

body.mbank-page .form-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  grid-column: 1 / -1;
  margin-top: 5px;
}

body.mbank-page .form-actions a,
body.mbank-page .form-actions button {
  margin: 0;
  padding: 0;
  border: 1;
  background: none;
  line-height: 0;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

body.mbank-page .save-icon,
body.mbank-page .action-icon {
  width: 30px;
  height: 30px;
  display: block;
}
body.mbank-page .form-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  align-items: center !important;
  justify-content: flex-start !important;
  grid-column: 1 / -1 !important;
  margin-top: 5px !important;
  width: 100%;
}

body.mbank-page .form-actions > a,
body.mbank-page .form-actions > button {
  display: inline-flex !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: none !important;
  line-height: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
}

body.mbank-page .form-actions img {
  width: 30px !important;
  height: 30px !important;
  display: block !important;
}

body.mbank-page .save-icon,
body.mbank-page .action-icon {
  width: 30px;
  height: 30px;
  display: block;
}


/* COMPANY PAGE */


.company-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.search-form {
    margin-bottom: 20px;
}

.search-form input[type="text"] {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    width: 250px;
}

.search-form button {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: white;
    cursor: pointer;
}

.search-form button:hover {
    background: #1d4ed8;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

table th {
    background: #1e293b;
    color: rgb(5, 5, 5);
    padding: 12px;
    text-align: left;
    font-size: 14px;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

table tr:hover {
    background: #f8fafc;
}

.action-icon {
    width: 22px;
    height: 22px;
}

.icon-link {
    text-decoration: none;
}



body.company-page .content {
  padding: 2px;
}

body.company-page .card {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

body.company-page .table-wrap {
  width: 100%;
  overflow-x: auto;
}

body.company-page .company-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;

}

body.company-page .company-table. td{
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;

}
.company-table tbody tr:hover {
    background: #f3f4f6;
    transition: 0.2s ease;
}
.company-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.company-table thead th {
    position: sticky;
    top: 0;
    background: white;
    z-index: 5;
}

body.usermenu .table-wrap {
  width: 100%;
  overflow-x: auto;
}

body.usermenu .usermenu {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;

}

body.usermenu .usermenu. td{
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;

}
.usermenu tbody tr:hover {
    background: #f3f4f6;
    transition: 0.2s ease;
}
.usermenu tbody tr:nth-child(even) {
    background: #fafafa;
}

.usermenu thead th {
    position: sticky;
    top: 0;
    background: white;
    z-index: 5;
}


.status-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-badge.available {
    background: #dcfce7;
    color: #166534;
}

.status-badge.assigned {
    background: #dbeafe;
    color: #1d4ed8;
}
}

.status-badge.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.returned  {
    background: #fee2e2;
    color: #b3d81d;
}

.status-badge.return {
    background: #fee2e2;
    color: #b3d81d;
}

.status-badge.insert {
    background: #dcfce7;
    color: #1d33d8;
}

.status-badge.update {
    background: #7e9e7b;
    color: #b3d81d;
}

.status-badge.delete {
    background: #fee2e2;
    color: #e6324d;
}

.status-badge.admin {
    background: #fee2e2;
    color: #dc2626;
}

.status-badge.user {
    background: #dcfce7;
    color: #166534;
}

.status-badge.superadmin {
    background: #ede9fe;
    color: #7c3aed;
}




body.company-page .company-table th,
body.company-page .company-table td {
  padding: 2x 4px;
  border: 1px solid #2b6beb;
  vertical-align: top;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.0;
}

body.company-page .company-table td:nth-child(8),
body.company-page .company-table th:nth-child(8),

body.company-page .company-table td:nth-child(10),
body.company-page .company-table th:nth-child(10) {

    max-width: 300px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

body.company-page .company-table th {
  background: #f3f4f6;
  font-weight: 600;
}

body.company-page .btn-icon img,
body.company-page .icon-btn img {
  width: 20px;
  height: 20px;
  display: block;
}

body.company-page .company-table th:last-child,
body.company-page .company-table td:last-child {
  width: 70px;
  text-align: center;
  white-space: nowrap;
}

body.company-page .company-table td:last-child .btn-icon {
  margin: 0 2px;
}

body.company-page .company-table td:last-child img {
  width: 18px;
  height: 18px;
}

body.company-page .company-table td:last-child {
  white-space: nowrap;
  width: 100px;
  text-align: center;
}

body.company-page .company-table td:last-child .btn-icon {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin: 0 2px;
}

body.company-page .company-table td:last-child img {
  width: 18px;
  height: 18px;
  display: block;
}

body.company-page .form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: nowrap;
}

body.company-page .form-actions .btn-icon,
body.company-page .form-actions .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

body.company-page .form-actions img {
  width: 22px;
  height: 22px;
  display: block;
}

/* DEPARTMENT PAGE */
body.department-page .content {
  padding: 2px;
}

body.department-page .card {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

body.department-page .table-wrap {
  width: 100%;
  overflow-x: auto;
}

body.department-page .department-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  table-layout: auto;
}

body.department-page .department-table th,
body.department-page .department-table td {
  padding: 5px 7px;
  border: 1px solid #e5e7eb;
vertical-align: top;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.25;
}

body.department-page .department-table th {
  background: #f3f4f6;
  font-weight: 600;
}

body.department-page .department-table td.aksi {
  white-space: nowrap;
  width: 80px;
  text-align: center;
}

body.department-page .department-table td.aksi .btn-icon {
  display: inline-flex;
  align-items: center;
  margin: 0 2px;
}

body.department-page .action-icon {
  width: 22px;
  height: 22px;
  display: block;
}

body.department-page .flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #fff;
  margin-bottom: 16px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

body.department-page .flash-icon {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
}

body.department-page .flash-text {
  flex: 1;
  min-width: 0;
}

body.department-page .form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

body.department-page .form-actions .btn-icon,
body.department-page .form-actions .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

body.department-page .form-actions {
  min-width: 120px;
}

/* EMPLOYEE PAGE */
body.employee-page .content {
  padding: 2px;
}

body.employee-page .card {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

body.employee-page .table-wrap {
  width: 100%;
  overflow-x: auto;
}

body.employee-page .employee-table {
  width: 100%;
  min-width: 1400px;
  border-collapse: collapse;
  table-layout: auto;
}

body.employee-page .employee-table th,
body.employee-page .employee-table td {
  padding: 6px 8px;
  border: 1px solid #e5e7eb;
  vertical-align: top;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.2;
}

body.employee-page .employee-table th {
  background: #f3f4f6;
  font-weight: 600;
}

body.employee-page .employee-table td.aksi {
  white-space: nowrap;
  width: 60px;
  text-align: center;
}

body.employee-page .employee-table td.aksi .btn-icon {
  display: inline-flex;
  align-items: center;
  margin: 0 2px;
}

/* POSITION PAGE */
body.empposition-page .content {
  padding: 2px;
}

body.empposition-page .card {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

body.empposition-page .table-wrap {
  width: 100%;
  overflow-x: auto;
}

body.empposition-page .empposition-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  table-layout: auto;
}

body.empposition-page .empposition-table th,
body.empposition-page .empposition-table td {
  padding: 5px 7px;
  border: 1px solid #e5e7eb;
  vertical-align: top;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.25;
}

body.empposition-page .empposition-table th {
  background: #f3f4f6;
  font-weight: 600;
}

body.empposition-page .empposition-table td.aksi {
  white-space: nowrap;
  width: 90px;
  text-align: center;
}

body.empposition-page .empposition-table td.aksi .btn-icon {
  display: inline-flex;
  align-items: center;
  margin: 0 2px;
}

body.empposition-page .flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #fa0505;
  margin-bottom: 16px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

body.empposition-page .flash-icon {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
}

body.empposition-page .flash-text {
  flex: 1;
  min-width: 0;
}

body.empposition-page .form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: 120px;
}

body.empposition-page .form-actions .btn-icon,
body.empposition-page .form-actions .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

/* RESPONSIVE */

@media (max-width: 768px) {

  body.profile-page .profile-form .form-grid {
    grid-template-columns: 1fr;
  }

  body.users-page .content,
  body.mbank-page .content,
  body.company-page .content,
  body.department-page .content,
  body.employee-page .content,
  body.empposition-page .content {
    padding: 2px;
  }

  body.users-page table.users-table {
    min-width: 900px;
  }
}


/* MMENU PAGE */
body.mmenu-page .content {
  padding: 2px;
}

body.mmenu-page .card {
  width: 100%;
  max-width: 100%;
 overflow-x: visible;
overflow-y: visible;
}
body.mmenu-page .table-wrap {
  width: 100%;
  overflow-x: auto;
}

body.mmenu-page .mmenu-table {
  width: 100%;
  min-width: 950px;
  border-collapse: collapse;
  table-layout: auto;
}

body.mmenu-page .mmenu-table th,
body.mmenu-page .mmenu-table td {
  padding: 6px 8px;
  border: 1px solid #e5e7eb;
  vertical-align: top;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.2;
}

body.mmenu-page .mmenu-table th {
  background: #f3f4f6;
  font-weight: 600;
}

body.mmenu-page .mmenu-table th:nth-child(1),
body.mmenu-page .mmenu-table td:nth-child(1) {
  width: 60px;
  text-align: center;
  font-size: 12px;
}

body.mmenu-page .mmenu-table th:nth-child(2),
body.mmenu-page .mmenu-table td:nth-child(2) {
  width: 160px;
  font-size: 12px;
}

body.mmenu-page .mmenu-table th:nth-child(4),
body.mmenu-page .mmenu-table td:nth-child(4) {
  width: 80px;
  text-align: center;
  font-size: 12px;
}

body.mmenu-page .mmenu-table th:nth-child(5),
body.mmenu-page .mmenu-table td:nth-child(5) {
  width: 70px;
  text-align: center;
  font-size: 12px;
}

body.mmenu-page .mmenu-table th:nth-child(6),
body.mmenu-page .mmenu-table td:nth-child(6) {
  width: 80px;
  text-align: center;
  font-size: 12px;
}

body.mmenu-page .mmenu-table td.aksi {
  white-space: nowrap;
}

body.mmenu-page .mmenu-table td.aksi .btn-icon {
  display: inline-flex;
  align-items: center;
  margin: 0 2px;
}

body.mmenu-page .mmenu-table td.aksi img {
  width: 18px;
  height: 18px;
  display: block;
}

body.mmenu-page .flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #fff;
  margin-bottom: 16px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  font-size: 11px;
}

body.mmenu-page .flash-icon {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
}

body.mmenu-page .flash-text {
  flex: 1;
  min-width: 0;
  font-size: 11px;
}

body.mmenu-page .form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: 120px;
}

body.mmenu-page .form-actions .btn-icon,
body.mmenu-page .form-actions .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.sidebar .menu-group {
  margin-bottom: 8px;
font-size: 11px;
}

.sidebar .submenu {
  margin-left: 14px;
  margin-top: 5px;
font-size: 11px;
}

.sidebar .submenu a {
  display: block;
  color: #cbd5e1;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 6px;
  transition: 0.2s;
  font-size: 11px;
}

.sidebar .submenu a:hover,
.sidebar .submenu a.active {
  background: #374151;
  color: #fff;
}
body.users-page .content {
  padding: 2px;
}

body.users-page .card {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

body.users-page .profile-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

body.users-page .profile-form .form-group {
  min-width: 0;
}

body.users-page .profile-form .form-group.full {
  grid-column: 1 / -1;
}

body.users-page .profile-form .form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

body.users-page .profile-form .form-group input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

body.users-page .profile-form .form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
  margin-top: 5px;
}

body.users-page .profile-form .icon-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

body.users-page .profile-form .save-icon {
  width: 28px;
  height: 28px;
  display: block;
}
.sidebar .menu-group {
  margin-bottom: 8px;
  font-size: 12px;
}

.sidebar .menu-parent {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #075fe4;
  text-decoration: none;
  padding: 12px 14px;
border-radius: 10px;
  margin-bottom: 6px;
  transition: 0.2s;
     font-size: 12px;
}

.sidebar .menu-parent:hover {
  background: #374151;
  color: #fff;
}

.sidebar .submenu {
  margin-left: 14px;
  margin-top: 5px;
  font-size: 11px;
}

.sidebar .submenu a {
  display: block;
  color: #cbd5e1;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 6px;
  transition: 0.2s;
  font-size: 11px;
}

.sidebar .submenu a:hover,
.sidebar .submenu a.active {
  background: #374151;
  color: #fff;
}

.sidebar .menu-parent.active,
.sidebar .menu-parent.open {
  background: #374151;
  color: #fff;
}
.sidebar .menu-group {
  margin-bottom: 8px;
    font-size: 12px;
}

.sidebar .menu-parent-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.sidebar .menu-parent-link {
  flex: 1;
  display: block;
  color: #d1d5db;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 10px;
  transition: 0.2s;
  font-size: 11px;
}

.sidebar .menu-parent-link:hover,
.sidebar .menu-parent-link.active {
  background: #374151;
  color: #fff;
}

.sidebar .menu-parent-link.no-link {
  cursor: default;
    font-size: 11px;
}

.sidebar .menu-toggle {
  border: 0;
  background: transparent;
  color: #93c5fd;
  cursor: pointer;
  padding: 0 8px;
  font-size: 11px;
  line-height: 1;

}

.sidebar .submenu {
  margin-left: 14px;
  margin-top: 5px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease;
  font-size: 11px;
}

.sidebar .menu-group.open .submenu {
  max-height: 500px;
  opacity: 1;
}

.sidebar .menu-parent-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.sidebar .menu-toggle{
    display:block !important;
    background:none;
    border:0;
    color:#fff;
    cursor:pointer;
    width:30px;
    height:30px;
    font-size:16px;
}

.sidebar .submenu a {
  display: block;
  color: #cbd5e1;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 6px;
  transition: 0.2s;
  font-size: 11px;
}

.sidebar .submenu a:hover,
.sidebar .submenu a.active {
  background: #374151;
  color: #fff;
}

.pagination {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 5px;
}

.pagination a,
.pagination span {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #ccc;
    border-radius: 6px;

    text-decoration: none;
    background: #fff;
    color: #333;

    font-size: 14px;
    box-sizing: border-box;
}

.pagination a:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.pagination .active {
    background: navy;
    color: white;
    border-color: navy;
    font-weight: bold;
}

.pagination .dots {
    border: none;
    background: transparent;
    min-width: auto;
    padding: 0 4px;
}

.limit-form {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.limit-form select {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.mobile-warning{
    background:#fff3cd;
    color:#856404;
    padding:12px;
    border-radius:8px;
    margin-bottom:15px;
    text-align:center;
    font-size:14px;
    border:1px solid #ffe69c;
}

/* MOBILE SIDEBAR */


.asset-topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    flex-wrap:wrap;
}





@media (max-width:768px){

.mobile-toggle{
    display:block;
}

}

/* MOBILE SIDEBAR */

@media (max-width:768px){

    .mobile-toggle{
        position:fixed;
        top:15px;
        left:15px;

        width:45px;
        height:45px;

        display:flex;
        align-items:center;
        justify-content:center;

        background:#001a33;
        color:#fff;

        border:none;
        border-radius:10px;

        font-size:24px;
        cursor:pointer;

        z-index:3001;
    }

    body.dashboard-page #sidebar{
        position:fixed;
        top:0;
        left:0;

        width:250px;
        height:100vh;

        background:#111827;

        overflow-y:auto;

        transform:translateX(-100%);
        transition:transform 0.3s ease;

        z-index:3000;
    }

    body.dashboard-page #sidebar.show{
        transform:translateX(0);
    }

    .overlay.show{
        display:block;
        position:fixed;
        inset:0;
        background:rgba(0,0,0,0.45);
        z-index:2999;
    }

    body.dashboard-page .content{
        width:100%;
        margin-left:0;
        padding-top:70px;
    }
}

/* DESKTOP COLLAPSE */
.sidebar.collapsed .logo-text,
.sidebar.collapsed .menu-parent-link span,
.sidebar.collapsed .submenu,
.sidebar.collapsed .caret,
.sidebar.collapsed .brand{
    display:none;
}



.sidebar.collapsed .menu a{
    display:flex;
    justify-content:center;
    align-items:center;
}
.sidebar.collapsed .menu a span{
    display:none;
}

.sidebar.collapsed .menu-parent-row{
    justify-content:center;
}

.sidebar.collapsed .menu-toggle{
    display:none !important;
}

.flash-message {
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-weight: 500;
}

.flash-message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffe69c;
}

.flash-message.success {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.flash-message.error {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}
.usermenu-table td:nth-child(3),
.usermenu-table td:nth-child(4),
.usermenu-table td:nth-child(5),
.usermenu-table td:nth-child(6),
.usermenu-table td:nth-child(7){
    text-align:center;
}