body {
    font-family: 'Vazir', sans-serif;
    direction: rtl;
    text-align: center;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

input,
button {
    font-family: 'Vazir', sans-serif;
    margin: 12px;
    width: 280px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: all 0.3s ease;
}

button {
    padding: 12px 15px;
}

#dealId {
    padding: 12px 15px;
}

input {
    background-color: #fff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    font-family: 'Vazir', sans-serif;
}

input:focus {
    outline: none;
    border-color: #fcb040;
    box-shadow: 0 0 0 2px rgba(252, 176, 64, 0.1);
}

button {
    background-color: #fcb040;
    color: white;
    cursor: pointer;
    border: none;
    font-weight: bold;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(252, 176, 64, 0.2);
}

button:hover {
    background-color: #e6a038;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(252, 176, 64, 0.3);
}

button:active {
    transform: translateY(0);
}

.container {
    margin-top: 30px;
    padding: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.deal-form {
    width: 50%;
    min-width: 500px;
    margin: 30px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(252, 176, 64, 0.192);
    display: none;
    position: relative;
    border-top: 6px solid #fcb040;
    text-align: right;
}

.deal-form h3 {
    color: #fcb040;
    font-size: 22px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(252, 176, 64, 0.1);
    position: relative;
    text-align: center;
}

.deal-form h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    background-color: #fcb040;
    right: 50%;
    transform: translateX(50%);
    width: 150px;
    height: 3px;
    border-radius: 3px;
}

.deal-info {
    text-align: right;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
}

.deal-info .label {
    font-weight: bold;
    color: #fcb040;
    min-width: 120px;
}

.deal-info .value {
    color: #555;
}

.logo {
    height: auto;
    margin: 0px auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    display: flex;
    justify-content: center;
    padding-left: 20px;
}

.btn-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.issue-box {
    font-weight: bold;
}

/* استایل‌های چاپ */
@media print {
    body {
        background: none;
        padding: 0;
        font-size: 13pt;
    }
    
    .header {
    margin-top: 40px !important;
    }
    
    h2 {
        display: none;
    }

    .container,
    .btn-container {
        display: none;
    }

    .deal-form {
        width: 80% !important;
        margin: 0 auto !important;
        padding: 0 1.5cm !important;
        box-shadow: none !important;
        border: none !important;
        border-top: none !important;
    }

    .deal-form h3 {
        font-size: 20pt;
        border-bottom: 2px solid #fcb040;
        margin-bottom: 15px;
    }

    .deal-info {
        font-size: 13pt;
        border-bottom: 1px solid #eee;
        margin: 10px 0;
    }

    .logo {
        width: 80px;
        margin: 0 auto 15px;
    }

    @page {
        size: A4;
        margin: 1.5cm;
    }

    h1 {
        font-size: 18px !important;
    }
    #jomle {
        font-size: 10px;
    }
}

@font-face {
    font-family: 'Vazir', sans-serif;
    src: url('https://cdn.fontcdn.ir/Font/Persian/IRANSans/IRANSansWeb(FaNum).ttf') format('truetype');
}

:root {
    --primary-color: #fcb040;
    --primary-light: #fcc470;
    --primary-dark: #e6a038;
    --accent-color: #fff5ea;
    --text-dark: #222;
    --text-medium: #4a3a2e;
    --bg-light: #fffdfd;
    --border-light: #f3d9c2;
}

body {
    font-family: 'Vazir', sans-serif;
    background-color: white;
    padding: 0;
    margin: 0;
    color: var(--text-dark);
    line-height: 1.5;
}

.receipt {
    width: 18.5cm;
    margin: 1.5cm auto;
    padding: 1.2cm;
    background: white;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    box-sizing: border-box;
}

.header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px dashed var(--primary-color);
}

.header h1 {
    font-size: 20px;
    color: var(--primary-color);
    margin: 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    background-color: var(--accent-color);
    border: 1px solid var(--border-light);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 12px;
}

.info-row span:first-child {
    font-weight: bold;
    color: var(--primary-dark);
}

.device-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background-color: var(--accent-color);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 30px 15px !important;
    margin: 35px 0;
    font-size: 13px;
}

.device-info-item {
    flex: 1 1 45%;
    display: flex;
    align-items: center;
}

.device-info-item span {
    font-weight: bold;
    color: #0000007a;
    margin-right: 6px;
    min-width: 70px;
    display: inline-block;
}

#serialNumber,
#address,
#phoneNumber,
#deviceName,
#issue-box-child,
#name {
    color: #000;
}

.section {
    margin: 20px 0;
}

.section-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-light);
    padding-bottom: 4px;
}

.note-text,
.issue-box,
.repair-box {
    font-size: 13px;
    background-color: var(--accent-color);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
}

.note-text{
    margin-bottom: 35px !important;
}

.note-text ul {
    margin: 10px 0;
}

.note-text li {
    margin-bottom: 6px;
    list-style-type: none;
    color: var(--primary-color);
}

.note-text li span {
    color: var(--text-medium);
}

.repair-box {
    font-family: 'Vazir', sans-serif;
    height: 100px;
}

.footer-note {
    margin-top: 40px;
    font-size: 12px;
    text-align: center;
    color: var(--primary-dark);
    border-top: 1px dashed var(--primary-color);
    padding-top: 8px;
    line-height: 0.7rem;
}

.dashed-line {
    border-top: 1px dashed var(--primary-color);
    margin: 40px 0;
    position: relative;
}

.dashed-line::after {
    content: "✂";
    position: absolute;
    top: -10px;
    right: 50%;
    transform: translateX(50%);
    background: white;
    padding: 0 6px;
    font-size: 14px;
    color: var(--primary-color);
}

.btn {
    display: none;
}

.checkbox-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checkbox-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 13px;
    background-color: #fffafa;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.checkbox-list li:hover {
    background-color: #fff2f2;
    border-color: var(--primary-light);
}

.checkbox-list input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    margin-left: 10px;
    position: relative;
    cursor: pointer;
    background-color: white;
    transition: 0.2s;
}

.checkbox-list input[type="checkbox"]:checked {
    background-color: var(--primary-color);
}

.checkbox-list input[type="checkbox"]::after {
    content: "✓";
    position: absolute;
    top: -2px;
    right: 2px;
    font-size: 14px;
    color: white;
    display: none;
}

.checkbox-list input[type="checkbox"]:checked::after {
    display: block;
}

.checkbox-list label {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
}

.checkbox-list span {
    color: var(--text-medium);
    font-weight: 500;
}

.signature-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 120px;
    gap: 50px;
}

.signature {
    flex: 1;
    text-align: center;
    color: var(--text-medium);
    font-weight: bold;
    font-size: 14px;
    position: relative;
    border-radius: 2px;
}

.signature::before {
    content: "";
    position: absolute;
    top: 0;
    right: 25%;
    width: 50%;
    height: 2px;
}

.header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    position: relative;
    background-color: var(--accent-color);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-title h1 {
    font-size: 25px;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    margin: 0 20px;
    white-space: nowrap;
}

.header-date-time {
    text-align: right;
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.8;
}

.header-date-time .label {
    font-weight: bold;
    color: var(--primary-color);
}

.header-logo img {
    height: 60px;
    object-fit: contain;
}

#progressContainer {
    margin: 10px auto;
    width: 30%;
    display: none;
    position: relative;
}

#progressBar {
    width: 100%;
    height: 5px;
    appearance: none;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background: #f5f5f5;
}

#progressBar::-webkit-progress-bar {
    background: #dcdcdc;
    border-radius: 2px;
}

#progressBar::-webkit-progress-value {
    background: #fcb040;
    border-radius: 6px;
}

#progressPercent {
    position: absolute;
    right: 5px;
    top: -20px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #fcb040;
}

span#issue-box-child {
    color: #000000de !important;
}