/* Base table styling */
.weekly-schedule {
    width: 100%;
    border-spacing: 0;
    border-collapse: separate;
    table-layout: fixed;
    margin-bottom: 50px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    font-family: 'IRANSans', sans-serif;
}

/* Header styling */
.weekly-schedule thead tr th {
    background-color: #f0f0f0;
    color: #fff;
    padding: 0.75em;
    text-align: center;
    font-weight: 600;
    font-size: 1em;
    border-bottom: 1px solid #ccc !important;
    border-right: 1px solid #ccc !important;
}

.weekly-schedule thead tr th .day {
    display: block;
    font-size: 1.2em;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    margin: 0 auto 5px;
    padding: 5px;
    line-height: 1.8;
    background: #fff;
    color: #626e7e;
}

.weekly-schedule thead tr th .day.active {
    font-weight: bold;
}

.weekly-schedule thead tr th .short {
    display: none;
}

/* Body styling */
.weekly-schedule tbody tr:nth-child(odd) {
    background: #f9f9f9;
}

.weekly-schedule tbody tr:nth-child(even) {
    background: #eaeaea;
}

.weekly-schedule tbody tr:first-child {
    background: transparent;
}

.weekly-schedule tbody tr td {
    background: transparent;
    border: 1px solid #ccc;
    border-top: none !important;
    text-align: center;
    vertical-align: middle;
    position: relative;
    cursor: pointer;
    word-wrap: break-word;
    padding: 0.75em 0.5em;
    font-size: 0.95em;
    color: #333;
}

.weekly-schedule tbody tr td:last-child {
    border-right: 1px solid #ccc;
}

/* Hour column */
.weekly-schedule tbody tr td.hour {
    font-size: 1em;
    font-weight: bold;
    background: #f0f0f0;
    border-bottom: 1px solid #ccc;
    border-right: 1px solid #ccc;
    min-width: 100px;
    cursor: default;
}

.weekly-schedule tbody tr td.hour span {
    display: block;
}

/* Internal table styling */
.internal-table {
    width: 100%;
    border-collapse: collapse;
}

.internal-table td,
.internal-table tr {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.internal-table td {
    padding: 0.3em 0.5em;
    font-size: 0.95em;
    color: #333;
}

.internal-table tr:last-child td {
    border-bottom: none;
}

/* Responsive tweaks */
@media (max-width: 60em) {
    .weekly-schedule thead tr th .long {
        display: none;
    }
    .weekly-schedule thead tr th .short {
        display: block;
    }
    .weekly-schedule tbody tr td.hour span {
        transform: rotate(270deg);
    }
}

@media (max-width: 27em) {
    .weekly-schedule thead tr th {
        font-size: 65%;
    }
    .weekly-schedule thead tr th .day {
        font-size: 1em;
        width: 20px;
        height: 20px;
        padding: 5px;
    }
    .weekly-schedule tbody tr td.hour {
        font-size: 0.9em;
        padding: 25px 0;
    }
    .weekly-schedule tbody tr td.hour span {
        transform: translateY(16px) rotate(270deg);
    }
}

/* Panel heading styling */
.panel-heading {
    background: #626e7e;
    color: #fff;
    padding: 1em;
    border-radius: 8px 8px 0 0;
}

.panel-heading .panel-title {
    font-size: 1.4em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-heading .titleicon {
    font-size: 1.5em;
    color: #fff;
}
