/* ==========================================================================
   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: center;
	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;
	}
}

/* 파일업로드 영역(view-order): 파란 dashed + radius (체크아웃 박스 톤) */
.printallday-upload-section {
	border: 3px dashed #2c92c7;
	border-radius: 20px;
}

/* view-order: 청구주소(코어 customer-details: 청구+배송) 제거 — 한국화 주문자/배송지로 대체 */
.woocommerce-customer-details {
	display: none !important;
}

/* view-order: 주문자/배송지/출고일정 테이블 폰트 14px 통일 (컨테이너로 specificity 높여 코어 th 규칙 override) */
.woocommerce-MyAccount-content .pad-kl-info-table th, .woocommerce-MyAccount-content .pad-kl-info-table td,
.woocommerce-MyAccount-content .printallday-order-schedule-table th, .woocommerce-MyAccount-content .printallday-order-schedule-table td {
	font-size: 14px !important;
}

/* ── 주문 보기(view-order) 2단: 좌 2/3 주문상세 / 우 1/3 정보 / 하단 전체폭 업로드 ── */
.woocommerce-MyAccount-content .pad-vo-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 26px;
}
.pad-vo-left, .pad-vo-right { min-width: 0; }
.pad-vo-left > *:first-child, .pad-vo-right > *:first-child { margin-top: 0; }
/* 우측 1/3: 표 풀폭 + 긴 텍스트(배송지 주소 등) 줄바꿈 */
.pad-vo-right table { width: 100% !important; table-layout: fixed; }
.pad-vo-right td, .pad-vo-right th { word-break: break-word; overflow-wrap: anywhere; }
/* 모바일: 단일 컬럼 세로 스택 (주문상세 → 정보 → 업로드) */
@media (max-width: 768px) {
    .woocommerce-MyAccount-content .pad-vo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ── 주문 세부사항(view-order) 상품명·옵션 텍스트: 장바구니와 동일 스타일 + 긴 텍스트 줄바꿈 ── */
.woocommerce-MyAccount-content .woocommerce-table__product-name,
.woocommerce-MyAccount-content .woocommerce-table__product-name a { font-weight: 600; }
.woocommerce-MyAccount-content td.woocommerce-table__product-name { padding-left: 10px !important; }
.woocommerce-MyAccount-content .woocommerce-order-details td,
.woocommerce-MyAccount-content .woocommerce-table__product-name { word-break: break-word; overflow-wrap: anywhere; }

.woocommerce-MyAccount-content .wc-item-meta { display: block; font-size: 12px; margin: 8px 0 0; padding: 0; list-style: none; }
.woocommerce-MyAccount-content .wc-item-meta li { display: block; margin: 5px 0 0; }
.woocommerce-MyAccount-content .wc-item-meta li:first-child { margin-top: 0; }
.woocommerce-MyAccount-content .wc-item-meta .wc-item-meta-label {
    display: block; float: none; font-size: 12px; font-weight: 600; color: #66757c; line-height: 1.1; margin: 0;
    word-break: break-word; overflow-wrap: anywhere;
}
.woocommerce-MyAccount-content .wc-item-meta li p {
    display: block; margin: 1px 0 0; font-size: 12px; font-weight: 400; color: #66757c; line-height: 1.4;
    word-break: break-word; overflow-wrap: anywhere;
}
/* 옵션 폰트 카트와 정확히 12px 통일(특이도 상향) */
.woocommerce-MyAccount-content .woocommerce-order-details .wc-item-meta,
.woocommerce-MyAccount-content .woocommerce-order-details .wc-item-meta .wc-item-meta-label,
.woocommerce-MyAccount-content .woocommerce-order-details .wc-item-meta li p { font-size: 12px !important; }
