@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --acs-font: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
}

body,
.form-control,
.btn,
.table,
.navbar,
.panel,
.modal-content,
pre,
code {
  font-family: var(--acs-font);
}

/* Top-nav only — tanpa sidebar Startmin */
#wrapper.acs-topnav-only .sidebar {
  display: none !important;
}

#wrapper.acs-topnav-only #page-wrapper {
  margin-left: 0 !important;
  border-left: none !important;
  width: 100%;
  padding-top: 50px;
  min-height: 100vh;
}

#wrapper.acs-topnav-only #page-wrapper .container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

/* Navbar satu baris: brand + menu + user/logout */
.acs-topnav-only .acs-navbar {
  min-height: 50px;
  margin-bottom: 0;
  border: none;
}

.acs-topnav-only .acs-navbar-inner {
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 768px) {
  .acs-topnav-only .acs-navbar-inner {
    display: flex;
    align-items: center;
    height: 50px;
  }

  .acs-topnav-only .acs-navbar .navbar-header {
    float: none;
    flex-shrink: 0;
    margin-right: 8px;
  }

  .acs-topnav-only .acs-navbar .navbar-collapse {
    display: flex !important;
    flex: 1;
    align-items: center;
    padding: 0;
    border: none;
    box-shadow: none;
    height: 50px;
    overflow: visible;
  }

  .acs-topnav-only .acs-nav-menu {
    float: none;
    display: flex;
    align-items: center;
    margin: 0;
    flex: 1;
  }

  .acs-topnav-only .acs-nav-user {
    float: none;
    display: flex;
    align-items: center;
    margin: 0;
    flex-shrink: 0;
  }
}

.acs-topnav-only .acs-brand {
  height: 50px;
  line-height: 50px;
  padding: 0 12px 0 10px;
  margin: 0;
  margin-left: 0 !important;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.acs-topnav-only .acs-navbar .navbar-header {
  margin-left: 4px;
}

.acs-topnav-only .acs-nav-menu > li > a,
.acs-topnav-only .acs-nav-user > li > a {
  padding: 0 12px;
  line-height: 50px;
  height: 50px;
  color: #999;
}

.acs-topnav-only .acs-nav-menu > li > a:hover,
.acs-topnav-only .acs-nav-menu > li > a:focus,
.acs-topnav-only .acs-nav-menu > li > a.active {
  color: #fff;
  background-color: #222;
}

.acs-topnav-only .acs-user-item {
  display: flex;
  align-items: center;
}

.acs-topnav-only .acs-user-label {
  display: inline-block;
  padding: 0 12px;
  line-height: 50px;
  height: 50px;
  color: #bbb;
  font-size: 13px;
}

.acs-topnav-only .acs-logout-form {
  margin: 0;
  padding: 0;
}

.acs-topnav-only .acs-logout-btn {
  display: inline-block;
  background: none;
  border: none;
  color: #999;
  padding: 0 12px;
  line-height: 50px;
  height: 50px;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.acs-topnav-only .acs-logout-btn:hover,
.acs-topnav-only .acs-logout-btn:focus {
  color: #fff;
  background-color: #222;
  outline: none;
}

@media (max-width: 767px) {
  .acs-topnav-only .acs-nav-menu > li > a,
  .acs-topnav-only .acs-user-label,
  .acs-topnav-only .acs-logout-btn {
    line-height: 42px;
    height: 42px;
  }

  .acs-topnav-only .acs-brand {
    line-height: 50px;
  }
}

.acs-mono,
.param-path,
.param-value,
pre.script-block,
.font-monospace {
  font-family: var(--acs-font);
}

.param-path { font-size: 12px; word-break: break-all; }
.param-value { background: #f5f5f5; padding: 2px 6px; border-radius: 3px; font-size: 12px; }
pre.script-block {
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 4px;
  max-height: 280px;
  overflow: auto;
  font-size: 11px;
  margin: 0;
}

.badge-online, .label-online { background: #5cb85c; color: #fff; }
.badge-offline, .label-offline { background: #d9534f; color: #fff; }

.table-detail th { width: 38%; background: #f9f9f9; font-weight: 600; }
.table-detail td { word-break: break-all; }

.table-devices-list { font-size: 12px; }
.table-devices-list thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.table-devices-list .cell-device-ref .device-id-line { font-size: 11px; word-break: break-all; }
.table-devices-list .cell-device-ref .device-serial-line { font-size: 10px; color: #777; margin-top: 2px; }
.table-devices-list .cell-mono { white-space: nowrap; }
.table-devices-list .cell-username { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-devices-list .cell-date { white-space: nowrap; font-size: 11px; }
.table-devices-list .cell-manufacturer { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.card-devices-table .table-responsive {
  border: 1px solid #ddd;
  border-top: none;
}
.card-devices-table .table-devices-list { min-width: 1100px; margin-bottom: 0; }
.card-devices-table .table-devices-list th,
.card-devices-table .table-devices-list td { border: 1px solid #ddd; }

.table-actions .btn { padding: 5px 8px; }

.wan-conn-row td:first-child { border-left: 4px solid #999; }
.wan-conn-row.status-up td:first-child { border-left-color: #5cb85c; }
.wan-conn-row.status-down td:first-child { border-left-color: #d9534f; }
.wlan-conn-row td:first-child { border-left: 4px solid #999; }
.wlan-conn-row.enabled td:first-child { border-left-color: #5cb85c; }
.wlan-conn-row.disabled td:first-child { border-left-color: #999; }

.wan-config-section {
  background: #f9f9f9;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.wan-config-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 10px;
}
.bind-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 6px;
}
.bind-check-grid label {
  font-size: 12px;
  font-weight: normal;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 3px;
  background: #fff;
  border: 1px solid #ddd;
  margin: 0;
}

.panel-stat { margin-bottom: 20px; }
.panel-stat .huge { font-size: 28px; font-weight: 600; }
.panel-stat .fa-5x { font-size: 4em; opacity: 0.25; }

.login-panel { margin-top: 10%; }
.page-header-acs { margin: 0 0 20px; padding-bottom: 9px; border-bottom: 1px solid #eee; }

.huge { font-size: 40px; }
.panel-green { border-color: #5cb85c; }
.panel-green > .panel-heading { background: #5cb85c; color: #fff; border-color: #5cb85c; }
.panel-red { border-color: #d9534f; }
.panel-red > .panel-heading { background: #d9534f; color: #fff; border-color: #d9534f; }
.panel-yellow { border-color: #f0ad4e; }
.panel-yellow > .panel-heading { background: #f0ad4e; color: #fff; border-color: #f0ad4e; }
.panel-primary { border-color: #337ab7; }
.panel-primary > .panel-heading { background: #337ab7; color: #fff; border-color: #337ab7; }

.acs-url-info-body { padding-top: 10px; }
.acs-url-info-table { margin-bottom: 12px; font-size: 13px; }
.acs-url-info-table th { white-space: nowrap; }
.acs-url-info-table code.acs-url-copy {
  display: inline-block;
  max-width: 280px;
  word-break: break-all;
  white-space: normal;
  font-size: 12px;
}
.acs-topnav-only .acs-nav-user > li > a:hover,
.acs-topnav-only .acs-nav-user > li > a:focus {
  color: #fff;
  background-color: #222;
  text-decoration: none;
}

.acs-device-search-bar {
  padding-top: 12px;
  padding-bottom: 10px;
}

.acs-device-search-input {
  width: 70%;
  max-width: 640px;
  margin-right: 6px;
}

.acs-device-search-input .form-control {
  width: 100%;
}

.acs-device-search-wrap {
  position: relative;
}

.acs-search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  max-height: 240px;
  overflow-y: auto;
}

.acs-search-suggestion-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.acs-search-suggestion-item:last-child {
  border-bottom: none;
}

.acs-search-suggestion-item:hover,
.acs-search-suggestion-item.active {
  background: #f5f8fc;
}

.acs-search-suggestion-label {
  color: #333;
  word-break: break-all;
}

.acs-search-suggestion-hint {
  color: #888;
  white-space: nowrap;
  flex-shrink: 0;
}

.acs-tab-with-guide {
  position: relative;
}

.acs-tab-with-guide > a {
  padding-right: 28px !important;
}

.acs-tab-guide-btn {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #999;
  padding: 0 4px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.acs-tab-guide-btn:hover,
.acs-tab-guide-btn:focus {
  color: #fff;
  outline: none;
}

.acs-modal-guide-btn {
  border: none;
  background: transparent;
  color: #888;
  padding: 0 6px;
  margin-left: 6px;
  font-size: 15px;
  vertical-align: middle;
  cursor: pointer;
}

.acs-modal-guide-btn:hover,
.acs-modal-guide-btn:focus {
  color: #337ab7;
  outline: none;
}

.acs-device-guide-body {
  max-height: 65vh;
  overflow-y: auto;
}

.acs-device-guide-intro {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.acs-device-guide-item {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.acs-device-guide-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.acs-device-guide-item-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
}

.acs-device-guide-item-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #555;
}

.acs-site-footer {
  margin-top: 24px;
  padding: 16px 0 24px;
  border-top: 1px solid #eee;
}

.acs-lang-item > a.acs-lang-btn {
  padding: 0 8px !important;
  line-height: 50px;
  height: 50px;
}

.acs-flag {
  display: inline-block;
  min-width: 34px;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 16px;
  vertical-align: middle;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.acs-flag-ind {
  background: linear-gradient(180deg, #e70011 0%, #e70011 50%, #ffffff 50%, #ffffff 100%);
  color: #111;
}

.acs-flag-eng {
  background: #012169;
  color: #fff;
}

.acs-lang-btn.active .acs-flag {
  box-shadow: 0 0 0 2px #fff;
}

.acs-login-lang {
  margin-bottom: 12px;
  text-align: center;
}

.acs-login-lang .acs-lang-btn {
  display: inline-block;
  margin: 0 4px;
  text-decoration: none;
}

.acs-login-lang .acs-lang-btn.active .acs-flag {
  box-shadow: 0 0 0 2px #337ab7;
}
