/* ==========================================================================
   PDA Mobile Dedicated Stylesheet
   ========================================================================== */

.pda-body {
  background-color: #F1F5F9;
  color: #0F172A;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* PDA Header */
.pda-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1E3A8A;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pda-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem 0.5rem;
}

.pda-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pda-icon {
  font-size: 1.5rem;
}

.pda-title-group {
  display: flex;
  flex-direction: column;
}

.pda-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.3px;
}

.pda-subtitle {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
}

.pda-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-pda-refresh, .btn-pda-lock {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 8px;
  color: #FFFFFF;
  padding: 6px 10px;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.btn-pda-refresh:active, .btn-pda-lock:active {
  background: rgba(255, 255, 255, 0.3);
}

/* Quick Stats Bar */
.pda-stats-bar {
  display: flex;
  background: rgba(15, 23, 42, 0.3);
  padding: 0.4rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pda-stat-item {
  flex: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8rem;
}

.pda-stat-num {
  font-weight: 800;
  font-size: 1rem;
  font-family: monospace;
}

.stat-pending .pda-stat-num { color: #FBBF24; }
.stat-prog .pda-stat-num { color: #60A5FA; }
.stat-done .pda-stat-num { color: #34D399; }
.pda-stat-lbl { color: rgba(255, 255, 255, 0.8); }

/* Main Container */
.pda-main {
  padding: 0.75rem 0.75rem 4rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Date Card */
.pda-date-card {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  border: 1px solid #E2E8F0;
}

.pda-nav-btn {
  background: #F1F5F9;
  border: none;
  border-radius: 8px;
  color: #334155;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
}

.pda-nav-btn:active { background: #E2E8F0; }

.pda-date-info {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.pda-date-main {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1E293B;
}

.pda-date-sub {
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748B;
}

.pda-hidden-date {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.pda-today-btn {
  background: #EFF6FF;
  color: #1E3A8A;
  border: 1px solid #BFDBFE;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

/* Search and Filter */
.pda-controls {
  margin-bottom: 0.75rem;
}

.pda-search-wrap {
  position: relative;
  margin-bottom: 0.5rem;
}

.pda-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 0.95rem;
}

#pda-search-input {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  padding: 0 2.5rem;
  font-size: 0.95rem;
  outline: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

#pda-search-input:focus {
  border-color: #1E3A8A;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}

.pda-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #94A3B8;
  cursor: pointer;
  padding: 4px;
}

.pda-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.pda-chips::-webkit-scrollbar { display: none; }

.pda-chip {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.pda-chip.active {
  background: #1E3A8A;
  color: #FFFFFF;
  border-color: #1E3A8A;
}

/* Card List */
.pda-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pda-item-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.pda-item-card.done {
  border-left: 5px solid #10B981;
  background: #FAFCFD;
}

.pda-item-card.in-progress {
  border-left: 5px solid #3B82F6;
}

.pda-item-card.ready {
  border-left: 5px solid #F59E0B;
}

.pda-item-card.deferred {
  border-left: 5px solid #8B5CF6;
}

.pda-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pda-cntr-no {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1E3A8A;
  font-family: monospace;
}

.pda-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pda-card-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
  font-size: 0.82rem;
  color: #475569;
  background: #F8FAFC;
  padding: 8px 10px;
  border-radius: 8px;
}

.pda-info-cell {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pda-cell-lbl {
  color: #94A3B8;
  font-size: 0.75rem;
}

.pda-cell-val {
  font-weight: 600;
  color: #1E293B;
}

.pda-seal-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  background: #F1F5F9;
  padding: 6px 10px;
  border-radius: 6px;
}

.pda-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn-pda-complete {
  flex: 2;
  height: 42px;
  background: #10B981;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.btn-pda-complete:active { background: #059669; }

.btn-pda-defer {
  flex: 1;
  height: 42px;
  background: #F8FAFC;
  color: #64748B;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.btn-pda-defer:active { background: #E2E8F0; }

.btn-pda-status-toggle {
  background: #EFF6FF;
  color: #1E3A8A;
  border: 1px solid #BFDBFE;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

/* Security Lock Screen */
.pda-lock-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.pda-lock-card {
  background: #FFFFFF;
  border-radius: 20px;
  width: 100%;
  max-width: 360px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.lock-icon {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.lock-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1E3A8A;
  margin: 0 0 0.5rem;
}

.lock-desc {
  font-size: 0.88rem;
  color: #64748B;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.lock-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lock-input {
  width: 100%;
  height: 50px;
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: 6px;
  border-radius: 12px;
  border: 2px solid #E2E8F0;
  outline: none;
  font-weight: 700;
}

.lock-input:focus {
  border-color: #1E3A8A;
}

.btn-lock-submit {
  width: 100%;
  height: 48px;
  background: #1E3A8A;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.lock-error {
  color: #EF4444;
  font-size: 0.85rem;
  margin-top: 10px;
  font-weight: 600;
}

.pda-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #94A3B8;
}

.pda-empty-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
