/* ==========================================================================
   PrintAllDay — My Account Dashboard
   BEM prefix: pad-
   ========================================================================== */

/* ── 위젯 그리드 ──────────────────────────────────── */
.pad-dashboard__widgets {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
	margin-bottom: 32px;
}

.pad-dashboard__widget {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #fff;
	border: 3px solid #49a5d4;
	border-radius: 10px;
	padding: 20px;
	transition: box-shadow 0.2s;
}

.pad-dashboard__widget:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.pad-dashboard__widget-icon {
	font-size: 28px;
	line-height: 1;
	flex-shrink: 0;
}

.pad-dashboard__widget-body {
	display: flex;
	flex-direction: column;
}

h3.pad-dashboard__widget-count {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	color: #111;
	margin: 0;
	padding: 0;
}

h3.pad-dashboard__widget-label {
	font-size: 13px;
	color: #6b7280;
	margin: 2px 0 0;
	padding: 0;
	font-weight: 400;
}

/* 위젯 아이콘 색상 */
.pad-dashboard__widget-icon { color: #0f80bb; }

/* ── 최근 주문 ────────────────────────────────────── */
.pad-dashboard__recent {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 24px;
}

.pad-dashboard__recent-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 16px;
}

.pad-dashboard__table {
	width: 100%;
	border-collapse: collapse;
	border-left: none;
	border-right: none;
	font-size: 14px;
}

.pad-dashboard__table th,
.pad-dashboard__table td {
	border-left: none !important;
	border-right: none !important;
}

.pad-dashboard__table thead th {
	text-align: left;
	padding: 10px 12px;
	font-weight: 600;
	color: #6b7280;
	border-bottom: 2px solid #e5e7eb;
	white-space: nowrap;
}

.pad-dashboard__table tbody td {
	padding: 12px;
	border-bottom: 1px solid #f3f4f6;
	vertical-align: middle;
}

.pad-dashboard__table tbody tr:last-child td {
	border-bottom: none;
}

.pad-dashboard__table a {
	color: #3b82f6;
	text-decoration: none;
	font-weight: 600;
}

.pad-dashboard__table a:hover {
	text-decoration: underline;
}

/* ── 상태 배지 ────────────────────────────────────── */
.pad-dashboard__badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 9999px;
	white-space: nowrap;
}

.pad-dashboard__badge--badge-amber { background: #fef3c7; color: #92400e; }
.pad-dashboard__badge--badge-blue  { background: #dbeafe; color: #1e40af; }
.pad-dashboard__badge--badge-green { background: #d1fae5; color: #065f46; }
.pad-dashboard__badge--badge-red   { background: #fee2e2; color: #991b1b; }

/* ── 프로그레스 바 ────────────────────────────────── */
.pad-dashboard__progress {
	width: 100%;
	height: 6px;
	background: #e5e7eb;
	border-radius: 3px;
	margin-top: 6px;
	overflow: hidden;
}

.pad-dashboard__progress-bar {
	height: 100%;
	border-radius: 3px;
	background: linear-gradient(90deg, #3b82f6, #6366f1);
	transition: width 0.4s ease;
}

/* ── 출고예정일 강조 ──────────────────────────────── */
.pad-dashboard__dispatch--today {
	display: inline-block;
	background: #d1fae5;
	color: #065f46;
	font-weight: 600;
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 6px;
}

.pad-dashboard__dispatch--completed {
	display: inline-block;
	background: #e0e7ff;
	color: #3730a3;
	font-weight: 600;
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 6px;
}

.pad-dashboard__dispatch--pending {
	color: #92400e;
	font-size: 12px;
	font-style: italic;
}

/* ── 빈 상태 ──────────────────────────────────────── */
.pad-dashboard__empty {
	text-align: center;
	color: #9ca3af;
	padding: 40px 0;
}

/* ==========================================================================
   Orders 페이지
   ========================================================================== */

/* ── 상태 필터 버튼 ───────────────────────────────── */
.pad-orders__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.pad-orders__filter {
	display: inline-block;
	padding: 7px 16px;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 9999px;
	text-decoration: none;
	transition: all 0.2s;
}

.pad-orders__filter:hover {
	background: #e0f0fa;
	border-color: #49a5d4;
	color: #49a5d4;
}

.pad-orders__filter--active {
	background: #49a5d4;
	border-color: #49a5d4;
	color: #fff;
}

.pad-orders__filter--active:hover {
	background: #3a8fbf;
	border-color: #3a8fbf;
	color: #fff;
}

/* ── 컨테이너 ─────────────────────────────────────── */
.pad-orders__container {
	background: #fff;
}

/* ── 테이블 ───────────────────────────────────────── */
.pad-orders__table {
	width: 100%;
	border-collapse: collapse;
	border-left: none;
	border-right: none;
	font-size: 14px;
}

.pad-orders__table th,
.pad-orders__table td {
	border-left: none !important;
	border-right: none !important;
}

.pad-orders__table thead th {
	text-align: left;
	padding: 12px 14px;
	font-weight: 600;
	color: #6b7280;
	border-bottom: 2px solid #e5e7eb;
	white-space: nowrap;
}

.pad-orders__table tbody td {
	padding: 12px 14px;
	border-bottom: 1px solid #f3f4f6;
	vertical-align: middle;
}

.pad-orders__table tbody tr:last-child td {
	border-bottom: none;
}

.pad-orders__table a {
	color: #49a5d4;
	text-decoration: none;
	font-weight: 600;
}

.pad-orders__table a:hover {
	text-decoration: underline;
}

/* ── 상태 배지 ────────────────────────────────────── */
.pad-orders__badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 9999px;
	white-space: nowrap;
}

.pad-orders__badge--badge-amber { background: #fef3c7; color: #92400e; }
.pad-orders__badge--badge-blue  { background: #dbeafe; color: #1e40af; }
.pad-orders__badge--badge-green { background: #d1fae5; color: #065f46; }
.pad-orders__badge--badge-red   { background: #fee2e2; color: #991b1b; }

/* ── 프로그레스 바 ────────────────────────────────── */
.pad-orders__progress {
	width: 100%;
	height: 6px;
	background: #e5e7eb;
	border-radius: 3px;
	margin-top: 6px;
	overflow: hidden;
}

.pad-orders__progress-bar {
	height: 100%;
	border-radius: 3px;
	background: linear-gradient(90deg, #3b82f6, #6366f1);
	transition: width 0.4s ease;
}

/* ── 출고예정일 ───────────────────────────────────── */
.pad-orders__dispatch--today {
	display: inline-block;
	background: #d1fae5;
	color: #065f46;
	font-weight: 600;
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 6px;
}

.pad-orders__dispatch--completed {
	display: inline-block;
	background: #e0e7ff;
	color: #3730a3;
	font-weight: 600;
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 6px;
}

/* ── 액션 버튼 ────────────────────────────────────── */
.pad-orders__action {
	display: inline-block;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 600;
	color: #49a5d4 !important;
	border: 1px solid #49a5d4;
	border-radius: 6px;
	text-decoration: none !important;
	transition: all 0.2s;
	margin: 2px 0;
}

.pad-orders__action:hover {
	background: #49a5d4;
	color: #fff !important;
}

/* ── 빈 상태 ──────────────────────────────────────── */
.pad-orders__empty {
	text-align: center;
	color: #9ca3af;
	padding: 40px 0;
}

/* ── 페이지네이션 ─────────────────────────────────── */
.pad-orders__pagination {
	margin-top: 20px;
	text-align: center;
}

.pad-orders__pagination ul {
	list-style: none;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
}

.pad-orders__pagination li {
	display: inline-block;
}

.pad-orders__pagination a,
.pad-orders__pagination span {
	display: inline-block;
	padding: 6px 12px;
	font-size: 14px;
	border-radius: 6px;
	text-decoration: none;
	color: #374151;
	border: 1px solid #e5e7eb;
	transition: all 0.2s;
}

.pad-orders__pagination a:hover {
	background: #49a5d4;
	color: #fff;
	border-color: #49a5d4;
}

.pad-orders__pagination .current {
	background: #49a5d4;
	color: #fff;
	border-color: #49a5d4;
	font-weight: 600;
}

.pad-orders__pagination .prev,
.pad-orders__pagination .next {
	font-weight: 600;
}

/* ── 반응형 ───────────────────────────────────────── */
@media (max-width: 768px) {
	.pad-dashboard__widgets {
		grid-template-columns: repeat(2, 1fr);
	}

	.pad-dashboard__table {
		font-size: 13px;
	}

	.pad-dashboard__table thead th,
	.pad-dashboard__table tbody td {
		padding: 8px 6px;
	}

	.pad-orders__table {
		font-size: 13px;
	}

	.pad-orders__table thead th,
	.pad-orders__table tbody td {
		padding: 8px 6px;
	}
}

@media (max-width: 480px) {
	.pad-dashboard__widgets {
		grid-template-columns: 1fr;
	}
}
