/* Custom CSS Variables for Discharge Page */
:root {
    --dis-primary: #007791;
    --dis-primary-hover: #005669;
    --dis-secondary: #00a8cc;
    --dis-dark: #2b2d42;
    --dis-light: #f8f9fa;
    --dis-gray: #6c757d;
    --dis-border: #e9ecef;
    --dis-danger: #e63946;
    --dis-danger-light: #fff5f5;
    --dis-danger-border: #fed7d7;
    --dis-radius: 12px;
    --dis-shadow: 0 4px 20px rgba(0,0,0,0.05);
    --dis-transition: all 0.3s ease;
}

/* Base Styles */
.dis-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hero Section */
.dis-hero {
    background: linear-gradient(135deg, var(--dis-primary) 0%, #0a4f60 100%);
    color: #ffffff;
    padding: 50px 0 60px 0;
    text-align: right;
    border-bottom: 4px solid var(--dis-secondary);
}

.dis-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.dis-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    transition: var(--dis-transition);
}

.dis-breadcrumb a:hover {
    color: var(--dis-secondary);
}

.dis-breadcrumb .dis-divider {
    color: rgba(255, 255, 255, 0.5);
}

.dis-breadcrumb .dis-current {
    color: #e9ecef;
}

.dis-hero-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.dis-hero-content p {
    font-size: 1.1rem;
    opacity: 0.85;
    font-weight: 300;
}

/* Layout Grid */
.dis-body-section {
    padding: 60px 0;
    background-color: #fcfcfc;
}

.dis-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .dis-grid {
        grid-template-columns: 8fr 4fr;
    }
}

/* Cards Styling */
.dis-card {
    background: #ffffff;
    border: 1px solid var(--dis-border);
    border-radius: var(--dis-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--dis-shadow);
    transition: var(--dis-transition);
}

.dis-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
}

.dis-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid var(--dis-border);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.dis-header-icon {
    font-size: 1.8rem;
    color: var(--dis-primary);
}

.dis-card-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: var(--dis-dark);
}

.dis-intro-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 0px;
}

/* Alert Box for Invoice Danger warning */
.dis-alert-danger {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background-color: var(--dis-danger-light);
    border: 1px solid var(--dis-danger-border);
    border-right: 5px solid var(--dis-danger);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    color: #742a2a;
}

.dis-alert-danger i {
    font-size: 1.6rem;
    color: var(--dis-danger);
    margin-top: 3px;
}

.dis-alert-danger strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}

.dis-alert-text {
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* Timeline Flow */
.dis-steps-timeline {
    position: relative;
    padding-right: 20px;
    margin: 30px 0;
}

.dis-steps-timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    bottom: 5px;
    width: 2px;
    background: var(--dis-border);
}

.dis-step-node {
    position: relative;
    padding-bottom: 30px;
}

.dis-step-node:last-child {
    padding-bottom: 0;
}

.dis-step-badge {
    position: absolute;
    right: -25px;
    top: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--dis-primary);
    color: white;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 3px solid white;
    box-shadow: 0 0 0 1px var(--dis-primary);
}

.dis-step-detail {
    padding-right: 15px;
}

.dis-step-detail h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dis-primary);
    margin-bottom: 8px;
}

.dis-step-detail p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* Working Hours Section */
.dis-working-hours {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 20px;
    border-radius: 8px;
    color: #14532d;
    margin-top: 25px;
}

.dis-hours-icon {
    font-size: 1.8rem;
    color: #16a34a;
}

.dis-hours-text {
    line-height: 1.7;
    font-size: 0.95rem;
}

.dis-hours-text strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

/* Sidebar Styles */
.dis-sidebar-card {
    background: #ffffff;
    border: 1px solid var(--dis-border);
    border-radius: var(--dis-radius);
    box-shadow: var(--dis-shadow);
    overflow: hidden;
}

.dis-sidebar-header {
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dis-bg-primary {
    background-color: var(--dis-primary);
}

.dis-bg-secondary {
    background-color: #0d9488; /* Teal color for separation */
}

.dis-sidebar-header i {
    font-size: 1.4rem;
}

.dis-sidebar-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.dis-sidebar-body {
    padding: 25px;
}

.dis-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    margin-bottom: 15px;
}

.dis-label {
    color: var(--dis-gray);
    font-size: 0.95rem;
}

.dis-value {
    color: var(--dis-dark);
    font-weight: 600;
}

.dis-ext-badge {
    background-color: var(--dis-secondary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    
    /* تراز کردن آیکون و متن کنار هم */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    direction: rtl;
}

.dis-ext-badge i {
    font-size: 0.9rem;
    transform: scaleX(-1); /* برای چرخش مناسب آیکون در جهت راست به چپ */
}

.dis-badge-sec {
    background-color: #14b8a6;
}

.dis-divider-line {
    border: none;
    border-top: 1px dashed var(--dis-border);
    margin: 20px 0;
}

.dis-phone-block {
    margin-bottom: 10px;
}

.dis-phone-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.dis-phone-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--dis-dark);
    text-decoration: none;
    font-weight: 600;
    direction: ltr;
    transition: var(--dis-transition);
}

.dis-phone-btn i {
    color: var(--dis-primary);
    font-size: 1.05rem;
    transition: var(--dis-transition);
}

.dis-phone-btn:hover {
    background: var(--dis-primary);
    color: white;
    border-color: var(--dis-primary);
}

.dis-phone-btn:hover i {
    color: white;
}

/* Helper Utilities */
.dis-mt-4 {
    margin-top: 24px;
}

.dis-inline-highlight {
    display: inline !important;
    white-space: nowrap;
    color: var(--dis-danger);
    font-weight: bold;
}
