/* ═══════════════════════════════════════════════════
   محاسبي — 10 قوالب فواتير إضافية (الإجمالي: 20)
   Invoice Templates CSS — 10 NEW Additional Designs
   v3.1 — @author Amer
   ═══════════════════════════════════════════════════ */

/* ══════════════════════════════════════
   TEMPLATE 11: ملكي (Royal)
   ══════════════════════════════════════ */
.tpl-royal { border:3px double #7c2d12; }
.tpl-royal .inv-header { padding:36px 45px 24px; text-align:center; border-bottom:2px solid #7c2d12; }
.tpl-royal .inv-header .org-name { font-size:2rem; font-weight:900; color:#7c2d12; font-family:'Amiri',serif; }
.tpl-royal .inv-header .org-crest { display:inline-block; width:50px; height:2px; background:#7c2d12; margin:0 10px; vertical-align:middle; }
.tpl-royal .inv-title-bar { background:linear-gradient(135deg,#7c2d12,#9a3412); color:#fff; padding:14px 45px; text-align:center; font-size:1.2rem; font-weight:700; letter-spacing:0.08em; }
.tpl-royal .inv-body { padding:30px 45px; }
.tpl-royal .inv-table thead th { background:#7c2d12; color:#fff; padding:12px 16px; text-align:right; font-size:0.82rem; }
.tpl-royal .inv-table tbody td { padding:12px 16px; border-bottom:1px solid #fde8e4; }
.tpl-royal .inv-table tbody tr:nth-child(even) { background:#fef7f5; }
.tpl-royal .inv-totals-row.grand { background:#7c2d12; color:#fff; padding:14px 20px; border-radius:8px; }
.tpl-royal .inv-meta-item { border:1px solid #e8c4b8; background:#fef7f5; border-radius:8px; }

/* ══════════════════════════════════════
   TEMPLATE 12: تدرج لوني (Gradient Bliss)
   ══════════════════════════════════════ */
.tpl-gradient .inv-header { padding:0; }
.tpl-gradient .inv-header-band { background:linear-gradient(135deg,#0ea5e9,#6366f1,#a855f7); padding:35px 45px; color:#fff; display:flex; justify-content:space-between; align-items:center; }
.tpl-gradient .inv-header-band .org-name { font-size:1.8rem; font-weight:900; }
.tpl-gradient .inv-header-band .inv-badge { background:rgba(255,255,255,0.2); backdrop-filter:blur(4px); padding:8px 22px; border-radius:50px; font-weight:700; }
.tpl-gradient .inv-body { padding:30px 45px; }
.tpl-gradient .inv-info-card { background:linear-gradient(135deg,#f0f9ff,#eef2ff); border-radius:14px; padding:22px; border:1px solid #c7d2fe; }
.tpl-gradient .inv-table thead th { background:linear-gradient(135deg,#6366f1,#a855f7); color:#fff; padding:13px 16px; text-align:right; }
.tpl-gradient .inv-table thead th:first-child { border-radius:0 10px 0 0; }
.tpl-gradient .inv-table thead th:last-child { border-radius:10px 0 0 0; }
.tpl-gradient .inv-totals-row.grand { background:linear-gradient(135deg,#0ea5e9,#6366f1); color:#fff; padding:14px 24px; border-radius:12px; }

/* ══════════════════════════════════════
   TEMPLATE 13: أحادي اللون (Monochrome)
   ══════════════════════════════════════ */
.tpl-mono .inv-header { padding:45px; display:flex; justify-content:space-between; align-items:flex-start; }
.tpl-mono .inv-header .org-name { font-size:1.5rem; font-weight:900; color:#000; letter-spacing:-0.02em; }
.tpl-mono .inv-divider { height:1px; background:#000; }
.tpl-mono .inv-body { padding:30px 45px; }
.tpl-mono .inv-table { border:1px solid #000; }
.tpl-mono .inv-table thead th { background:#000; color:#fff; padding:11px 16px; text-align:right; font-size:0.82rem; font-weight:500; letter-spacing:0.04em; }
.tpl-mono .inv-table tbody td { padding:11px 16px; border-bottom:1px solid #e5e5e5; }
.tpl-mono .inv-totals-row.grand { background:#000; color:#fff; padding:14px 20px; }
.tpl-mono .inv-meta-item { border:1px solid #d4d4d4; }

/* ══════════════════════════════════════
   TEMPLATE 14: أمواج (Waves)
   ══════════════════════════════════════ */
.tpl-waves .inv-header { padding:35px 45px 50px; background:linear-gradient(180deg,#0c4a6e 0%,#075985 100%); color:#fff; position:relative; }
.tpl-waves .inv-header::after { content:''; position:absolute; bottom:-1px; left:0; right:0; height:40px; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60'%3E%3Cpath d='M0 30c200-30 400 30 600 0s400 30 600 0V60H0z' fill='%23fff'/%3E%3C/svg%3E") center/cover no-repeat; }
.tpl-waves .inv-header .org-name { font-size:1.7rem; font-weight:900; position:relative; z-index:1; }
.tpl-waves .inv-body { padding:20px 45px 30px; }
.tpl-waves .inv-table thead th { background:#0c4a6e; color:#fff; padding:12px 16px; text-align:right; }
.tpl-waves .inv-totals-row.grand { background:linear-gradient(135deg,#0c4a6e,#075985); color:#fff; padding:14px 20px; border-radius:10px; }

/* ══════════════════════════════════════
   TEMPLATE 15: غروب (Sunset)
   ══════════════════════════════════════ */
.tpl-sunset .inv-header { padding:0; }
.tpl-sunset .inv-header-top { background:linear-gradient(135deg,#be123c,#e11d48,#f43f5e); color:#fff; padding:35px 45px; display:flex; justify-content:space-between; align-items:center; }
.tpl-sunset .inv-header-top .org-name { font-size:1.7rem; font-weight:900; }
.tpl-sunset .inv-accent { height:4px; background:linear-gradient(to left,#fbbf24,#f59e0b,#ea580c,#dc2626); }
.tpl-sunset .inv-body { padding:30px 45px; }
.tpl-sunset .inv-table thead th { background:#be123c; color:#fff; padding:12px 16px; text-align:right; }
.tpl-sunset .inv-table tbody tr:nth-child(even) { background:#fff1f2; }
.tpl-sunset .inv-totals-row.grand { background:linear-gradient(135deg,#be123c,#e11d48); color:#fff; padding:14px 20px; border-radius:10px; }
.tpl-sunset .inv-info-card { border-right:3px solid #e11d48; }

/* ══════════════════════════════════════
   TEMPLATE 16: مخطط هندسي (Blueprint)
   ══════════════════════════════════════ */
.tpl-blueprint { background:#f0f9ff; border:2px solid #bae6fd; }
.tpl-blueprint .inv-header { padding:35px 45px; display:flex; justify-content:space-between; align-items:flex-start; border-bottom:2px solid #0284c7; }
.tpl-blueprint .inv-header .org-name { font-size:1.5rem; font-weight:800; color:#0369a1; font-family:'Tajawal',sans-serif; }
.tpl-blueprint .inv-grid-bg { background-image:radial-gradient(#bae6fd 1px,transparent 1px); background-size:20px 20px; }
.tpl-blueprint .inv-body { padding:30px 45px; }
.tpl-blueprint .inv-table thead th { background:#0284c7; color:#fff; padding:12px 16px; text-align:right; }
.tpl-blueprint .inv-table tbody td { padding:12px 16px; border-bottom:1px dashed #bae6fd; }
.tpl-blueprint .inv-totals-row.grand { background:#0284c7; color:#fff; padding:14px 20px; border-radius:8px; }
.tpl-blueprint .inv-meta-item { border:1px dashed #7dd3fc; background:#f0f9ff; }

/* ══════════════════════════════════════
   TEMPLATE 17: رخامي (Marble)
   ══════════════════════════════════════ */
.tpl-marble { border:1px solid #d6d3d1; }
.tpl-marble .inv-header { padding:40px 45px; background:linear-gradient(135deg,#fafaf9 0%,#f5f5f4 50%,#e7e5e4 100%); text-align:center; border-bottom:3px solid #78716c; }
.tpl-marble .inv-header .org-name { font-size:1.8rem; font-weight:800; color:#44403c; font-family:'Amiri','Cairo',serif; }
.tpl-marble .inv-marble-line { height:2px; background:linear-gradient(to right,transparent 0%,#a8a29e 20%,#78716c 50%,#a8a29e 80%,transparent 100%); }
.tpl-marble .inv-body { padding:30px 45px; }
.tpl-marble .inv-table thead th { background:#57534e; color:#fff; padding:12px 16px; text-align:right; }
.tpl-marble .inv-table tbody tr:nth-child(even) { background:#fafaf9; }
.tpl-marble .inv-totals-row.grand { background:#44403c; color:#fafaf9; padding:14px 20px; border-radius:6px; }

/* ══════════════════════════════════════
   TEMPLATE 18: نيون (Neon Glow)
   ══════════════════════════════════════ */
.tpl-neon { background:#18181b; color:#e4e4e7; }
.tpl-neon .inv-header { padding:35px 45px; border-bottom:2px solid #22d3ee; display:flex; justify-content:space-between; }
.tpl-neon .inv-header .org-name { font-size:1.8rem; font-weight:900; color:#22d3ee; text-shadow:0 0 20px rgba(34,211,238,0.3); }
.tpl-neon .inv-header .inv-badge { background:#22d3ee; color:#18181b; padding:6px 20px; border-radius:50px; font-weight:700; }
.tpl-neon .inv-body { padding:30px 45px; }
.tpl-neon .inv-info-card { background:#27272a; border:1px solid #3f3f46; border-radius:12px; }
.tpl-neon .inv-info-card h4 { color:#22d3ee; }
.tpl-neon .inv-table thead th { background:#22d3ee; color:#18181b; padding:12px 16px; text-align:right; font-weight:700; }
.tpl-neon .inv-table tbody td { padding:12px 16px; border-bottom:1px solid #27272a; color:#a1a1aa; }
.tpl-neon .inv-totals-row { border-bottom:1px solid #3f3f46; color:#a1a1aa; }
.tpl-neon .inv-totals-row.grand { background:#22d3ee; color:#18181b; padding:14px 20px; border-radius:10px; font-weight:800; }
.tpl-neon .inv-party-detail { color:#71717a; }
.tpl-neon .inv-footer { border-top:1px solid #3f3f46; color:#52525b; }
.tpl-neon .inv-meta-item { background:#27272a; border:1px solid #3f3f46; }
.tpl-neon .inv-meta-label { color:#71717a; }
.tpl-neon .inv-meta-value { color:#e4e4e7; }

/* ══════════════════════════════════════
   TEMPLATE 19: خط عربي (Calligraphy)
   ══════════════════════════════════════ */
.tpl-calligraphy .inv-header { padding:40px 45px 30px; text-align:center; border-bottom:3px solid #065f46; position:relative; }
.tpl-calligraphy .inv-header .org-name { font-size:2.2rem; font-weight:700; color:#065f46; font-family:'Amiri',serif; line-height:1.3; }
.tpl-calligraphy .inv-header .ornament { display:inline-block; font-size:1.5rem; color:#059669; margin:8px 0; }
.tpl-calligraphy .inv-title { font-size:1.1rem; font-weight:700; color:#065f46; text-align:center; margin:16px 0; font-family:'Amiri',serif; letter-spacing:0.1em; }
.tpl-calligraphy .inv-body { padding:20px 45px 30px; }
.tpl-calligraphy .inv-table thead th { background:#065f46; color:#fff; padding:12px 16px; text-align:right; font-family:'Amiri',serif; font-size:0.88rem; }
.tpl-calligraphy .inv-table tbody td { padding:12px 16px; border-bottom:1px solid #d1fae5; font-size:0.88rem; }
.tpl-calligraphy .inv-totals-row.grand { background:#065f46; color:#fff; padding:14px 20px; border-radius:6px; font-family:'Amiri',serif; }
.tpl-calligraphy .inv-footer { font-family:'Amiri',serif; }

/* ══════════════════════════════════════
   TEMPLATE 20: أوريغامي (Origami)
   ══════════════════════════════════════ */
.tpl-origami .inv-header { padding:0; position:relative; }
.tpl-origami .inv-header-main { padding:35px 45px; background:#fff; display:flex; justify-content:space-between; align-items:center; }
.tpl-origami .inv-header-main .org-name { font-size:1.6rem; font-weight:900; color:#6d28d9; }
.tpl-origami .inv-fold { height:30px; background:linear-gradient(135deg,#7c3aed 50%,#8b5cf6 50%); clip-path:polygon(0 0,100% 0,100% 100%,50% 60%,0 100%); }
.tpl-origami .inv-body { padding:30px 45px; }
.tpl-origami .inv-info-card { background:#faf5ff; border:1px solid #e9d5ff; border-radius:12px; padding:22px; }
.tpl-origami .inv-info-card h4 { color:#7c3aed; }
.tpl-origami .inv-table thead th { background:#7c3aed; color:#fff; padding:12px 16px; text-align:right; }
.tpl-origami .inv-table tbody tr:nth-child(even) { background:#faf5ff; }
.tpl-origami .inv-totals-row.grand { background:linear-gradient(135deg,#7c3aed,#6d28d9); color:#fff; padding:14px 20px; border-radius:10px; }
.tpl-origami .inv-corner-fold { position:absolute; top:0; left:0; width:50px; height:50px; background:linear-gradient(135deg,#ddd6fe 50%,transparent 50%); }
