/* ================= GST PANEL ================= */

.gst-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  display: none;
  z-index: 2000;
}

.gst-panel {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100vh;
  width: 420px;
  max-width: 100%;
  background: #fff;
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transition: right .35s ease;
  overflow-y: auto;
}

.gst-panel.open {
  right: 0;
}

/* Header */
.gst-header {
  padding: 22px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gst-close {
  border: none;
  background: #f3f3f3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

/* Body */
.gst-body {
  padding: 22px;
  flex: 1;
  overflow-y: auto;
}

.gst-body label {
  display: block;
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 6px;
}

.gst-body input,
.gst-body textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.gst-body input:focus,
.gst-body textarea:focus {
  border-color: #2f5be3;
  box-shadow: 0 0 0 2px rgba(47,91,227,0.15);
  outline: none;
}

/* Footer */
.gst-footer {
  padding: 18px;
  border-top: 1px solid #eee;
}

.gst-submit {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg,#2f5be3,#4c6fff);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

/* Success */
.gst-success {
  background: linear-gradient(135deg,#e8fff2,#f4fff7);
  color: #00aa55;
  padding: 18px;
  margin-top: 18px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
}

.hidden { display:none; }

/* Hide original select */
.gst-hidden-select { display:none; }

/* Dropdown */
.gst-dropdown {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  position: relative;
}

.gst-dropdown .display {
  font-size: 14px;
  color: #555;
}

.gst-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  max-height: 180px;
  overflow-y: auto;
  display: none;
  z-index: 3000;
  padding: 8px;
}

.gst-dropdown.open .gst-options {
  display: block;
}

.gst-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  cursor: pointer;
}

/* GST ERROR MESSAGES */
.gst-body .error {
  display: block;
  font-size: 12px;
  color: #d93025;
  margin-top: 4px;
}

/* GST Custom Dropdown Styling */

.gst-dropdown-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  cursor: pointer;
  font-size: 14px;
}

.gst-dropdown-options input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.gst-dropdown-options label:hover {
  background: #f5f7ff;
  border-radius: 4px;
}

/* New Gst drop down option */
/* GST Dropdown */

#gSTDropdown, #gstDropdown {
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  position: relative;
  cursor: pointer;
}

#gstDropdown .display {
  font-size: 14px;
  color: #555;
}

#gstDropdown .gst-options {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 2000;
  padding: 10px;
}

#gstDropdown.open .gst-options {
  display: block;
}

/* Checkbox alignment */
#gstDropdown .gst-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  cursor: pointer;
  font-size: 14px;
}

#gstDropdown .gst-options input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

#gstDropdown .gst-options label:hover {
  background: #f5f7ff;
  border-radius: 6px;
}

/* ================= ERROR TEXT ================= */
.gst-error {
  display: block;
  color: #d93025;      /* 🔴 Proper red */
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
}

/* =========================================
   UNIVERSAL MOBILE PANEL SYSTEM
========================================= */

@media (max-width: 640px){

  .logo-panel,
  .flex-panel,
  .gst-panel,
  .web-panel,
  .ts-panel,
  .company-panel,
  .lam-panel,
  .mc-panel,
  .pan-panel,
  .print-panel,
  .vc-panel,
  .voter-panel {
    width: 100% !important;
    max-width: 100% !important;
    right: -100% !important;
    border-radius: 0 !important;
  }

  .logo-panel.open,
  .flex-panel.open,
  .gst-panel.open,
  .web-panel.open,
  .ts-panel.open,
  .company-panel.open,
  .lam-panel.open,
  .mc-panel.open,
  .pan-panel.open,
  .print-panel.open,
  .vc-panel.open,
  .voter-panel.open {
    right: 0 !important;
  }
}