﻿@font-face {
	font-family: NeoSansArabic;
	src: url('../fonts/NeoSansArabic.eot');
	src: url('../../fonts/NeoSansArabic.eot?#iefix') format('embedded-opentype'),
	url('../fonts/NeoSansArabic.woff') format('woff'),
	url('../fonts/NeoSansArabic.ttf') format('truetype'),
	url('../fonts/NeoSansArabic.svg#NeoSansArabic') format('svg');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: DroidKufi-Regular;
	src: url('../fonts/DroidKufi-Regular.eot');
	src: url('../fonts/DroidKufi-Regular.eot?#iefix') format('embedded-opentype'),
	url('../fonts/DroidKufi-Regular.woff') format('woff'),
	url('../fonts/DroidKufi-Regular.ttf') format('truetype'),
	url('../fonts/DroidKufi-Regular.svg#diavlo_medium_ii_37_1-webfont') format('svg');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: ge-ss-med;
	src: url('../fonts/ge-ss-med.eot');
	src: url('../fonts/ge-ss-med.eot?#iefix') format('embedded-opentype'),
	url('../fonts/ge-ss-med.woff') format('woff'),
	url('../fonts/ge-ss-med.ttf') format('truetype'),
	url('../fonts/ge-ss-med.svg#ge-ss-med') format('svg');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: DroidKufi-Bold;
	src: url('../fonts/DroidKufi-Bold.eot');
	src: url('../fonts/DroidKufi-Bold.eot?#iefix') format('embedded-opentype'),
	url('../fonts/DroidKufi-Bold.woff') format('woff'),
	url('../fonts/DroidKufi-Bold.ttf') format('truetype'),
	url('../fonts/DroidKufi-Bold.svg#DroidKufi-Bold') format('svg');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family:Helvetica Neue W23;
	src: url('../fonts/Helvetica Neue W23.eot');
	src: url('../fonts/Helvetica Neue W23.eot?#iefix') format('embedded-opentype'),
	url('../fonts/Helvetica Neue W23.woff') format('woff'),
		url('../fonts/Helvetica Neue W23.ttf') format('truetype'),
	url('../fonts/Helvetica Neue W23.svg#Helvetica Neue W23i-Bold') format('svg');
	font-weight: normal;
	font-style: normal;
}

body {
    font-weight: 300 !important;
}

.header {
    display: none !important;
}

.header-image {
    flex-shrink: 0;
    width: 250px;
}

.header-image img {
    width:90%;
    height: auto;
    display: block;
}

.content {
    flex: 1;
    text-align: center;
}

.content h1 {
    margin: 0;
    font-size: 45px;
    text-align: center;
	margin-bottom:20px;
	margin-left:5em;
    font-weight: 300;
}

.content p {
    margin: 5px 0 0;
    font-size: 16px;
    color: #555;
    text-align: center;
	margin-right:11em;
    font-weight: 300;
}

.image {
    flex-shrink: 0;
}
.oqba-img2 {
    width: 250px;
    height: auto;
    display: block;
}

.print-header-banner {
    display: none;
}

.print-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 15px;
}

.print-logo-left,
.print-logo-right {
    height: 50px;
    width: auto;
    flex-shrink: 0;
}

.print-banner-center {
    flex: 1;
    text-align: center;
    padding: 0 10px;
}

.print-banner-center h1 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: #1e3c72;
    line-height: 1.2;
}

.print-banner-center h2 {
    margin: 3px 0;
    font-size: 14px;
    font-weight: normal;
    color: #2a5298;
    line-height: 1.2;
}

.print-banner-center p {
    margin: 3px 0 0 0;
    font-size: 11px;
    color: #555;
    line-height: 1.2;
}

.print-header {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    border-right: 4px solid #1e3c72;
    page-break-after: avoid;
}

.print-header h1 {
    color: #1e3c72;
    margin-bottom: 8px;
    font-size: 18px;
}

.print-header p {
    color: #6c757d;
    margin: 0;
    font-size: 12px;
}

.print-footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 2px solid #1e3c72;
    page-break-before: avoid;
}

.print-footer p {
    margin: 6px 0;
    text-align: center;
    font-weight: bold;
    color: #495057;
    font-size: 10px;
}

.student-infotow {
    background: #D7D7D7;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 300;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(390px, 1fr));
    gap: 10px;
    margin-top: 10px;
    max-width:1200px;
}

.info-item {
    padding: 8px;
    background: white;
    border-radius: 5px;
    border-left: 4px solid #FF0066;
    min-height: auto;
    line-height: 1.4;
    font-weight: 300;
}

.violations-section {
    margin-top: 25px;
}

.violations-section h3{
    font-size:14px;
    color:#FF3300;
    font-weight: 300;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 10px;
    text-align: right;
    border-bottom: 2px solid #ddd;
    font-weight: 300;
}

th {
    background-color: #666666;
    color: white;
    font-weight: 300;
}

.btn-primary { background-color: #007bff; color: white; }

.btn-warning { 
    font-family:NeoSansArabic,tahoma,Arial,Verdana,sans-serif;
    align-items: center;
    background: #990000;
    min-width:10px;
    max-height:30px;
    border: 0;
    border-radius: 4px;
    box-sizing: border-box;
    padding:8px;
    color: #fff;
    font-size: 14px;
    font-weight: 300;
    text-decoration:none;
    text-align:center;
}

.btn-warning:hover {
    background-color:#DF9200;
}

.btn-danger { background-color: #dc3545; color: white; }
.btn-success { background-color: #28a745; color: white; }
.btn-secondary { background-color: #6c757d; color: white; }
.btn-print { background-color: #17a2b8; color: white; }

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    font-family:NeoSansArabic,tahoma,Arial,Verdana,sans-serif;
    font-weight: 300;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 300;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-weight: 300;
}

.message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    font-weight: 300;
}

.success { background-color: #d4edda; color: #155724; }
.error { background-color: #f8d7da; color: #721c24; }

/* ========== بداية تنسيق الطباعة ========== */
@media print {
    @page {
        margin: 35mm !important;
        size: A4 portrait;
    }
    
    body {
        background: white !important;
        padding:0px 15px 30px !important;
        margin: 0 !important;
        font-size: 10px;
        font-weight: 300 !important;
        line-height: 1.2;
    }
    
    .container {
        border: none;
        padding: 0 !important;
        margin: 0 !important;
        width: 90% !important;
        max-width: 100% !important;
        background:#FFFFFF;
    }
    
    .banner-wrapper,
    .navbar-wrapper,
    .banner,
    .nav-buttons,
    .foter,
    .wave,
    .no-print,.violations-section h3 {
        display: none !important;
    }

    .action-buttons h2 {
        font-size: 8px !important;
        font-weight: 300;
        margin: 0;
    }
    
    .print-header-banner {
        display: flex !important;
        background: white !important;
        color: #333;
        padding: 5px 0 !important;
        margin: 0 0 8px 0 !important;
        border-bottom: 1px solid #4BB8A8;
        page-break-after: avoid;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .print-banner-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 5px;
    }
    
    .print-logo-left {
        height:100px !important;
        width: auto;
        order: 3;
    }
    
    .print-logo-right {
        height: 100px !important;
        width: auto;
        order: 1;
    }
    
    .print-banner-center {
        flex: 1;
        text-align: center;
        order: 2;
        padding: 0 8px;
    }
    
    .print-banner-center h1 {
        margin: 0;
        font-size: 20px !important;
        font-weight: bold;
        color: #1e3c72 !important;
        line-height: 1.1;
    }
    
    .print-banner-center h2 {
        margin: 1px 0;
        font-size: 12px !important;
        font-weight: normal;
        color: #2a5298 !important;
        line-height: 1.1;
    }
    
    .print-banner-center p {
        margin: 1px 0 0 0;
        font-size: 9px !important;
        color: #555 !important;
        line-height: 1.1;
    }
    
    .containertow {
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        background: white !important;
    }
    
    .student-infotow {
        background: #f8f9fa !important;
        border: 1px solid #ddd !important;
        padding: 6px !important;
        margin-bottom: 8px !important;
        font-size: 14px !important;
    }
    
    .info-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 4px !important;
        margin-top: 4px !important;
    }
    
    .info-item {
        padding: 3px !important;
        font-size: 12px !important;
        line-height: 1.1 !important;
        border-left: 2px solid #FF0066 !important;
        min-height: auto !important;
    }
    
    .violations-section h3 {
        font-size: 12px !important;
        margin-bottom: 5px !important;
        color: #FF3300 !important;
    }
    
    table {
        border: 1px solid #333 !important;
        font-size: 10px !important;
    }
    
    th, td {
        font-size: 10px !important;
    }
    
    th {
        background-color: #1e3c72 !important;
        color: white !important;
        font-size:10px !important;
        font-weight: 400 !important;
    }
    
    .severity-badge {
        padding: 1px 4px !important;
        font-size: 12px !important;
        min-width: 50px !important;
        border-radius: 6px !important;
    }
    
    .print-header {
        text-align: center;
        margin: 10px 0;
        padding: 4px;
        background: #f8f9fa;
        border-radius: 2px;
        border-right: 3px solid #1e3c72;
        page-break-after: avoid;
        font-size: 9px !important;
    }
    
    .print-header h1 {
        font-size: 16px !important;
        margin-bottom: 2px !important;
        margin-right:10px;
        text-align:right;
    }
    
    .print-header p {
        font-size: 8px !important;
        text-align:left;
    }
    
   .print-footer {
        margin-top: 12px !important;
        padding-top: 6px !important;
        border-top: 1px solid #333;
        page-break-before: avoid;
        font-size: 11px !important;
        display: block !important;
    }
    
    .footer-content {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        width: 100%;
        gap: 10px;
    }
    
    .footer-item {
        flex: 1;
        text-align: center;
    }
    
    .footer-item.right {
        text-align: right;
        order: 3;
    }
    
    .footer-item.center {
        text-align: center;
        order: 2;
    }
    
    .footer-item.left {
        text-align: left;
        order: 1;
    }
    
    .footer-item p,
    .footer-item h3 {
        margin: 4px 0 !important;
        font-size: 11px !important;
        line-height: 1.5 !important;
          text-align: right;
      
    }
    
    .footer-item h3 {
        font-size: 11px !important;
        margin-bottom: 8px !important;
    }
    
    
    table {
        page-break-inside: auto;
    }
    
    tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }
    
    * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
    
    a {
        text-decoration: none !important;
        color: inherit !important;
    }
    
    .main-content {
        padding: 0 !important;
        margin: 0 !important;
    }
}
/* ========== نهاية تنسيق الطباعة ========== */

.print-only {
    display: none;
}

@media print {
    .print-only {
        display: block;
    }
    
    .nav-links, .btn, .modal, .no-print {
        display: none !important;
    }
}   
        
.action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #e7f3ff;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 300;
}

.action-buttons h2 {
    font-size: 20px !important;
    font-weight: 300;
    margin: 0;
}

.containertow{
    font-family:NeoSansArabic,tahoma,Arial,Verdana,sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    font-weight: 300;
}

* {
    font-weight: 300 !important;
}

.btn, button {
    font-weight: 400 !important;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400 !important;
}
    
.action-buttons-container {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    width:210px;
}

.severity-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    color: white;
    font-size: 14px;
    text-align: center;
    min-width: 90px;
    font-weight: 300;
}

.violation-type-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media print {
    .whatsapp-btn, .no-print {
        display: none !important;
    }
    
   .severity-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    color: white;
    font-size: 10px;
    text-align: center;
    min-width:80px;
    font-weight: 300;
    }
}

.auto-description {
    background-color: #e7f3ff;
    border-right: 3px solid #007bff;
    padding: 8px;
    margin: 5px 0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 300;
}

.severity-column {
    width: 60px;
    text-align: center;
}