/* پالت هماهنگ با هویت بصری «پارسیان من» (فیروزه‌ای خلیج‌فارس + طلایی/شنی) —
   همان رنگ‌هایی که در تقویم نوبت شهردار (parsian-137) استفاده شده، اینجا هم
   به‌کار رفته تا تقویم پنل مدیریت بازار با بقیه‌ی سامانه هماهنگ باشد. */
.pjdp-panel {
	--pjdp-teal-900: #0a4547;
	--pjdp-teal-800: #0d5457;
	--pjdp-teal-700: #12676a;
	--pjdp-teal-500: #219690;
	--pjdp-teal-100: #e2f0ec;
	--pjdp-gold-600: #c1852e;
	--pjdp-ink: #17231f;
	--pjdp-ink-soft: #55655c;
	--pjdp-ink-faint: #8a9790;
	--pjdp-line: #e6dfc9;
	--pjdp-sand-50: #faf5e8;

	z-index: 999999;
	width: 288px;
	background: #fffdf7;
	border-radius: 18px;
	box-shadow: 0 18px 40px -12px rgba(10, 40, 35, .28), 0 2px 8px rgba(10, 40, 35, .08);
	border: 1px solid var(--pjdp-line);
	padding: 12px;
	font-family: inherit;
	direction: rtl;
	opacity: 0;
	transform: translateY(-4px);
	animation: pjdp-in .14s ease-out forwards;
}
@keyframes pjdp-in { to { opacity: 1; transform: translateY(0); } }

.pjdp-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: linear-gradient(135deg, var(--pjdp-teal-900), var(--pjdp-teal-700));
	color: #fff;
	border-radius: 12px;
	padding: 9px 10px;
	margin-bottom: 10px;
}
.pjdp-title { font-weight: 700; font-size: 14px; }
.pjdp-nav {
	background: rgba(255,255,255,.16);
	border: none;
	color: #fff;
	width: 28px;
	height: 28px;
	border-radius: 9px;
	font-size: 15px;
	cursor: pointer;
	line-height: 1;
	transition: background .15s ease;
}
.pjdp-nav:hover { background: rgba(255,255,255,.32); }

.pjdp-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-align: center;
	font-size: 11px;
	color: var(--pjdp-ink-faint);
	font-weight: 700;
	margin-bottom: 6px;
}
.pjdp-weekdays .pjdp-friday { color: var(--pjdp-gold-600); }

.pjdp-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 3px;
}
.pjdp-cell {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12.5px;
	border-radius: 9px;
	cursor: pointer;
	color: var(--pjdp-ink);
	transition: background .12s ease, color .12s ease;
}
.pjdp-cell.pjdp-empty { cursor: default; }
.pjdp-day:hover { background: var(--pjdp-teal-100); }
.pjdp-day.pjdp-friday { color: var(--pjdp-gold-600); font-weight: 700; }
.pjdp-day.pjdp-selected { background: var(--pjdp-teal-800); color: #fff; font-weight: 700; box-shadow: 0 6px 14px rgba(13,84,87,.25); }
.pjdp-day.pjdp-today-marker { position: relative; font-weight: 800; }
.pjdp-day.pjdp-today-marker::after {
	content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
	width: 4px; height: 4px; border-radius: 50%; background: var(--pjdp-gold-600);
}
.pjdp-day.pjdp-selected.pjdp-today-marker::after { background: #fff; }

.pjdp-footer { text-align: center; margin-top: 10px; }
.pjdp-today {
	background: var(--pjdp-sand-50);
	border: 1px solid var(--pjdp-line);
	color: var(--pjdp-teal-800);
	border-radius: 9px;
	padding: 6px 18px;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s ease;
}
.pjdp-today:hover { background: var(--pjdp-teal-100); }

.pms-jalali-input {
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230d5457' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") no-repeat left 10px center;
	cursor: pointer;
	padding-inline-start: 10px;
	padding-inline-end: 34px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.pms-jalali-input:focus, .pms-jalali-input:hover {
	border-color: #219690;
	outline: none;
}


/* انتخاب‌گر ساعت فارسی و موبایلی */
.pms-time-display {
	width:100%; min-height:46px; box-sizing:border-box; border:1px solid #d9e4df;
	border-radius:14px; background:#fff; color:#17312d; font-size:15px; font-weight:800;
	text-align:center; letter-spacing:.04em; cursor:pointer; padding:10px 42px 10px 14px;
	background-image:linear-gradient(90deg, transparent 0 100%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230d5457' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
	background-repeat:no-repeat; background-position:left 14px center; transition:.15s ease;
}
.pms-time-display:hover,.pms-time-display:focus{border-color:#219690;box-shadow:0 0 0 4px rgba(33,150,144,.10);outline:none}
.pms-time-picker-wrap{position:relative}
.pms-time-panel{position:absolute;z-index:1000000;width:min(330px,calc(100vw - 24px));box-sizing:border-box;padding:12px;background:#fff;border:1px solid #dfe8e3;border-radius:20px;box-shadow:0 20px 50px rgba(10,40,35,.20);direction:rtl;font-family:inherit}
.pms-time-head{display:flex;align-items:center;justify-content:space-between;padding:4px 4px 12px;color:#0d5457}.pms-time-head strong{font-size:15px}.pms-time-head span{font-size:11px;color:#8a9790}
.pms-time-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;max-height:300px;overflow:auto;padding:2px}
.pms-time-option{min-height:43px;border:1px solid #e3ebe7;background:#f9fbfa;border-radius:12px;color:#1b302c;font-size:13px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:2px;transition:.12s ease;font-family:inherit}
.pms-time-option:hover{background:#e2f0ec;border-color:#9bcac5}.pms-time-option.is-selected{background:#0d5457;color:#fff;border-color:#0d5457;box-shadow:0 5px 12px rgba(13,84,87,.22)}
.pms-time-option b{font-size:14px}.pms-time-option span{opacity:.65}
.pms-time-footer{text-align:center;padding-top:10px}.pms-time-now{border:1px solid #e6dfc9;background:#faf5e8;color:#0d5457;border-radius:10px;padding:7px 18px;font-weight:800;cursor:pointer;font-family:inherit}
@media(max-width:600px){.pjdp-panel{position:fixed!important;left:12px!important;right:12px!important;top:auto!important;bottom:12px!important;width:auto!important;box-sizing:border-box;border-radius:22px;padding:14px}.pjdp-grid{gap:5px}.pjdp-cell{font-size:13px}.pjdp-head{padding:11px 12px}.pjdp-nav{width:34px;height:34px}.pms-time-panel{position:fixed!important;left:12px!important;right:12px!important;bottom:12px!important;top:auto!important;width:auto}.pms-time-grid{grid-template-columns:repeat(4,1fr);max-height:52vh}.pms-time-option{min-height:46px}}

/* v2.8.4 — تقویم شمسی حرفه‌ای و زمان‌بندی بازار */
.pjdp-panel{
	width:430px;box-sizing:border-box;padding:16px;background:#ffffff;border:1px solid #dce8e4;
	border-radius:24px;box-shadow:0 28px 70px rgba(10,45,42,.20),0 8px 22px rgba(10,45,42,.08);
	color:#17312d;font-family:inherit;direction:rtl;overflow:hidden;
}
.pjdp-topline{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.pjdp-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;background:#e8f5f2;color:#0d5457;font-size:11px;font-weight:900}
.pjdp-subtitle{font-size:11px;color:#7a8984;font-weight:700}
.pjdp-head{display:grid;grid-template-columns:36px 36px 1fr 36px 36px;align-items:center;gap:6px;padding:10px;background:linear-gradient(135deg,#083f42,#116b6c);border-radius:18px;color:#fff;margin-bottom:10px}
.pjdp-title-wrap{text-align:center;display:flex;flex-direction:column;gap:2px}.pjdp-title{font-size:18px;line-height:1.3}.pjdp-title-wrap span{font-size:10px;opacity:.78}
.pjdp-nav{width:36px!important;height:36px!important;border:0!important;border-radius:11px!important;background:rgba(255,255,255,.14)!important;color:#fff!important;font-size:20px!important;cursor:pointer;line-height:1!important}
.pjdp-nav:hover{background:rgba(255,255,255,.27)!important}
.pjdp-selects{display:grid;grid-template-columns:1fr 120px;gap:8px;margin:10px 0}
.pjdp-selects select{width:100%;height:40px;border:1px solid #dbe6e2;border-radius:11px;background:#f8fbfa;color:#17312d;font-weight:800;padding:0 10px;font-family:inherit}
.pjdp-weekdays{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin:8px 0 6px;text-align:center}
.pjdp-weekdays span{font-size:11px;font-weight:900;color:#667872;padding:5px 0}.pjdp-weekdays .pjdp-friday{color:#b77a24}
.pjdp-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}
.pjdp-cell{min-width:0;aspect-ratio:1;display:flex;align-items:center;justify-content:center;border-radius:13px;font-family:inherit}
button.pjdp-day{border:1px solid transparent;background:#f7faf9;color:#19332e;font-size:14px;font-weight:800;cursor:pointer;position:relative;transition:.15s ease}
button.pjdp-day:hover{background:#e2f0ec;border-color:#9acbc5;transform:translateY(-1px)}
button.pjdp-day.pjdp-friday{color:#a96d20;background:#fcf7ec}
button.pjdp-day.pjdp-selected{background:linear-gradient(145deg,#0d686a,#0b4d50);color:#fff;border-color:#0b4d50;box-shadow:0 8px 18px rgba(13,84,87,.25);transform:translateY(-1px)}
button.pjdp-day.pjdp-today-marker:not(.pjdp-selected)::after{content:'';position:absolute;bottom:5px;width:5px;height:5px;border-radius:50%;background:#c1852e}
button.pjdp-day.pjdp-selected.pjdp-today-marker::after{background:#fff}
.pjdp-selected-bar{margin-top:12px;padding:10px 12px;border:1px solid #e2e9e6;background:#f7faf9;border-radius:13px;display:flex;align-items:center;justify-content:space-between;gap:12px}.pjdp-selected-bar span{font-size:10px;color:#788983;font-weight:700}.pjdp-selected-bar strong{font-size:13px;color:#0d5457}
.pjdp-footer{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.pjdp-footer button{min-height:42px;border-radius:12px;font-family:inherit;font-weight:900;cursor:pointer}.pjdp-today{border:1px solid #e4d7ba;background:#fbf5e8;color:#8a5a16}.pjdp-close{border:1px solid #0d5457;background:#0d5457;color:#fff}

/* زمان‌بندی بازار در دسکتاپ */
.pms-schedule-card{max-width:980px!important;border:1px solid #e2e8e6!important;border-radius:24px!important;padding:24px!important;box-shadow:0 16px 40px rgba(15,45,42,.07)!important;background:linear-gradient(180deg,#fff,#fbfdfc)!important}
.pms-schedule-card h2{font-size:21px!important;color:#0b4d50!important;margin-top:0!important}
.pms-schedule-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px!important;margin-bottom:16px!important}
.pms-schedule-row:first-of-type{grid-template-columns:1fr!important}
.pms-schedule-row label{gap:7px!important;font-size:13px!important;color:#29433d}
.pms-schedule-row input.pms-jalali-input,.pms-schedule-row .pms-time-display{min-height:50px!important;border-radius:14px!important;border:1px solid #d8e4df!important;font-size:15px!important;font-weight:800!important;background-color:#fff!important}
.pms-schedule-card .button-primary{min-height:48px!important;border-radius:14px!important;padding:0 26px!important;font-size:14px!important;background:#0d5457!important;border-color:#0d5457!important;box-shadow:0 8px 18px rgba(13,84,87,.18)!important}
.pms-schedule-live-preview{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:10px;margin:18px 0;padding:14px;border-radius:17px;background:#f2f8f6;border:1px solid #d9ebe5}
.pms-schedule-live-preview .pms-preview-item{padding:10px 12px;background:#fff;border-radius:12px;border:1px solid #e1ebe7}.pms-preview-item span{display:block;font-size:10px;color:#7b8b85;margin-bottom:5px}.pms-preview-item strong{font-size:13px;color:#0d5457}
.pms-time-panel{width:420px!important;padding:16px!important;border-radius:22px!important;box-shadow:0 28px 70px rgba(10,45,42,.20)!important}
.pms-time-grid{grid-template-columns:repeat(4,1fr)!important;gap:8px!important;max-height:340px!important}.pms-time-option{min-height:46px!important;border-radius:12px!important;font-size:13px!important}
@media(max-width:600px){
	.pjdp-panel{left:10px!important;right:10px!important;bottom:10px!important;width:auto!important;padding:14px!important;border-radius:22px!important;max-height:88vh;overflow:auto}
	.pjdp-topline{flex-direction:column;align-items:flex-start}.pjdp-subtitle{font-size:10px}.pjdp-head{grid-template-columns:32px 32px 1fr 32px 32px}.pjdp-nav{width:32px!important;height:32px!important}.pjdp-title{font-size:16px}.pjdp-weekdays span{font-size:9px}.pjdp-grid{gap:4px}.pjdp-cell{min-height:39px}.pjdp-selects{grid-template-columns:1fr 100px}.pjdp-selected-bar{flex-direction:column;align-items:flex-start}.pjdp-footer{grid-template-columns:1fr 1fr}
	.pms-schedule-row{grid-template-columns:1fr!important}.pms-schedule-live-preview{grid-template-columns:1fr}.pms-time-panel{left:10px!important;right:10px!important;bottom:10px!important;width:auto!important}.pms-time-grid{grid-template-columns:repeat(4,1fr)!important;max-height:55vh!important}
}

/* v2.8.24 — تقویم جمع‌وجور و ثابت: ارتفاع ثابت (۶ ردیف)، روز بازار برجسته، سایر روزها ساده */
.pjdp-panel{padding:14px!important;border-radius:22px!important;max-width:calc(100vw - 24px)}
@media(min-width:601px){.pjdp-panel{width:380px!important}}
.pjdp-panel *{box-sizing:border-box}
.pjdp-panel button{margin:0;font-family:inherit;-webkit-appearance:none;appearance:none;text-transform:none;letter-spacing:0}
.pjdp-panel .pjdp-head{grid-template-columns:34px 34px 1fr 34px 34px;padding:8px 10px;margin-bottom:8px;border-radius:16px}
.pjdp-panel .pjdp-nav{width:34px!important;height:34px!important;padding:0!important;border-radius:50%!important;font-size:18px!important;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.14)!important;color:#fff!important;box-shadow:none!important;min-height:0!important}
.pjdp-panel .pjdp-title{font-size:17px}
.pjdp-panel .pjdp-selects{margin:8px 0;grid-template-columns:1fr 96px}
.pjdp-panel .pjdp-selects select{height:38px;font-size:13px}
.pjdp-panel .pjdp-weekdays{grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin:6px 0 4px}
.pjdp-panel .pjdp-weekdays span{padding:4px 0;font-size:12px}
.pjdp-panel .pjdp-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.pjdp-panel .pjdp-cell{width:100%;height:auto;aspect-ratio:1/1;min-width:0;min-height:0;padding:0;margin:0;line-height:1;border-radius:12px;display:flex;align-items:center;justify-content:center}
.pjdp-panel button.pjdp-day{background:transparent;border:1px solid transparent;color:#2a423d;font-size:14px;font-weight:700;box-shadow:none;transform:none;position:relative}
.pjdp-panel button.pjdp-day.pjdp-friday{background:transparent;color:#a96d20}
.pjdp-panel button.pjdp-day.pjdp-off{color:#c3ccc8;font-weight:500;cursor:not-allowed;background:transparent!important;opacity:1!important}
.pjdp-panel button.pjdp-day.pjdp-off.pjdp-friday{color:#dccfb5}
.pjdp-panel button.pjdp-day.pjdp-off:hover{background:transparent!important;border-color:transparent!important;transform:none}
.pjdp-panel button.pjdp-day.pjdp-market{background:#fdf4de;color:#7c5012;font-weight:900;box-shadow:inset 0 0 0 2px #d9a441}
.pjdp-panel button.pjdp-day.pjdp-market::after{content:'بازار';position:absolute;bottom:3px;left:0;right:0;text-align:center;font-size:8px;font-weight:800;color:#a96d20;background:none;width:auto;height:auto;border-radius:0}
.pjdp-panel button.pjdp-day.pjdp-selected{background:linear-gradient(145deg,#0d686a,#0b4d50);color:#fff;box-shadow:0 6px 14px rgba(13,84,87,.28),inset 0 0 0 2px #d9a441}
.pjdp-panel button.pjdp-day.pjdp-selected::after{color:#ffe7b3}
.pjdp-panel button.pjdp-day:not(.pjdp-off):hover{background:#e2f0ec;transform:none}
.pjdp-panel button.pjdp-day.pjdp-selected:hover{background:linear-gradient(145deg,#0d686a,#0b4d50)}
.pjdp-panel button.pjdp-day.pjdp-today-marker:not(.pjdp-market):not(.pjdp-selected)::after{bottom:5px}
.pjdp-legend{display:flex;align-items:center;gap:6px;margin-top:8px;font-size:11px;color:#6d7e78;font-weight:700}
.pjdp-legend i{width:12px;height:12px;border-radius:4px;background:#fdf4de;box-shadow:inset 0 0 0 2px #d9a441;display:inline-block}
.pjdp-panel .pjdp-selected-bar{margin-top:8px;padding:9px 12px}
.pjdp-panel .pjdp-footer button{min-height:40px;padding:0 8px}
