/* 8 Saatlik Dönen Vardiya — İş Hayatı #303F9F */

.shift-schedule-calc { --cat-bg: #303F9F; }

/* TAB BAR */
.shift-schedule-calc .calc-tabs { display: flex; gap: 4px; border-bottom: 2px solid #e2e8f0; margin-bottom: 1.5rem; padding: 0 4px; }
.shift-schedule-calc .calc-tab { background: transparent; border: none; padding: 0.85rem 1.5rem; font-size: 0.95rem; font-weight: 700; color: #64748b; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; display: inline-flex; align-items: center; gap: 8px; transition: color 0.15s, border-color 0.15s; font-family: inherit; }
.shift-schedule-calc .calc-tab:hover:not(:disabled) { color: #303F9F; }
.shift-schedule-calc .calc-tab.active { color: #303F9F; border-bottom-color: #303F9F; }
.shift-schedule-calc .calc-tab:disabled { cursor: not-allowed; opacity: 0.45; }
.shift-schedule-calc .calc-tab i { font-size: 1.05rem; }
.shift-schedule-calc .calc-tab-badge { background: #16a34a; color: #fff; font-size: 0.65rem; font-weight: 800; padding: 2px 7px; border-radius: 10px; margin-left: 4px; letter-spacing: 0.04em; text-transform: uppercase; }
.shift-schedule-calc .calc-tab-panel[hidden] { display: none; }

/* TARIH ROW */
.shift-schedule-calc .shift-row.calc-input-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-bottom: 1.5rem; }
.shift-schedule-calc .calc-input-col input.calc-field {
    width: 100%; padding: 0.75rem 1rem; font-size: 1rem; border: 1px solid #e0e0e0;
    border-radius: 8px; background-color: #fff; height: 46px; font-family: inherit;
}
.shift-schedule-calc .calc-input-col input.calc-field:focus {
    outline: none; border-color: #303F9F; box-shadow: 0 0 0 3px rgba(48, 63, 159, 0.15);
}
.shift-schedule-calc .calc-input-col label { display: block; margin-bottom: 0.5rem; font-weight: 700; color: #1e293b; font-size: 0.95rem; }

/* PEOPLE CARD */
.shift-schedule-calc .shift-people-card {
    margin: 1rem 0 1.25rem; padding: 18px; background: #fff;
    border: 1px dashed rgba(48, 63, 159, 0.4); border-radius: 12px;
}
.shift-schedule-calc .shift-people-info {
    background: #FFF8E1; border: 1px solid #FFE082; border-radius: 8px;
    padding: 10px 14px; margin-bottom: 12px; font-size: 0.88rem; color: #5d4037; line-height: 1.55;
}
.shift-schedule-calc .shift-people-info strong { display: block; color: #303F9F; margin-bottom: 4px; }
.shift-schedule-calc .shift-people-info em { color: #303F9F; font-style: normal; font-weight: 700; }
.shift-schedule-calc .shift-people-info code { background: #fff; padding: 2px 6px; border-radius: 4px; border: 1px solid #FFE082; font-family: inherit; font-size: 0.92em; color: #303F9F; font-weight: 700; }
.shift-schedule-calc .shift-people-textarea {
    width: 100%; min-height: 180px; padding: 0.75rem 1rem; font-size: 0.95rem;
    border: 1px solid #e0e0e0; border-radius: 8px; background-color: #fff;
    font-family: inherit; line-height: 1.6; resize: vertical;
}
.shift-schedule-calc .shift-people-textarea:focus { outline: none; border-color: #303F9F; box-shadow: 0 0 0 3px rgba(48, 63, 159, 0.15); }

/* SUMMARY CARDS */
.shift-schedule-calc .shift-summary-cards {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem; margin: 0 0 1rem;
}
.shift-schedule-calc .shift-summary-card {
    background: #fff; border: 1px solid #dbe1f3; border-radius: 10px; padding: 0.85rem 1rem;
}
.shift-schedule-calc .shift-summary-card .t {
    font-size: 0.72rem; color: #486095; text-transform: uppercase;
    letter-spacing: 0.04em; margin-bottom: 4px; font-weight: 700;
}
.shift-schedule-calc .shift-summary-card .v {
    font-weight: 800; font-size: 1.05rem; color: #303F9F; font-variant-numeric: tabular-nums;
}

/* GRID TABLE */
.shift-schedule-calc .shift-grid-wrapper {
    overflow: auto; border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 1rem;
    background: #fff;
}
.shift-schedule-calc .shift-grid-table {
    width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.88rem;
}
.shift-schedule-calc .shift-grid-table th,
.shift-schedule-calc .shift-grid-table td {
    border-right: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9;
    padding: 8px 10px; text-align: center; white-space: nowrap;
}
.shift-schedule-calc .shift-grid-table thead th {
    background: #303F9F; color: #fff; font-weight: 700; padding: 10px 12px;
    position: sticky; top: 0; z-index: 2;
    text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.78rem;
}
.shift-schedule-calc .shift-grid-table th.shift-th-off { background: #b91c1c; }
.shift-schedule-calc .shift-grid-table .shift-rowhead {
    background: #f8fafc; font-weight: 700; text-align: left;
    color: #1e293b; min-width: 160px;
}
.shift-schedule-calc .shift-grid-table tbody tr:nth-child(even) .shift-rowhead { background: #f1f5f9; }
.shift-schedule-calc .shift-grid-table tbody tr:nth-child(even) td { background: #fafbfc; }

/* CHIPS */
.shift-schedule-calc .shift-tag {
    display: inline-block; padding: 4px 10px; border-radius: 6px;
    border-left: 4px solid #94a3b8; background: #f1f5f9;
    font-weight: 700; font-size: 0.85rem; color: #1e293b;
}
.shift-schedule-calc .shift-tag-a { background: #E8F5E9; }
.shift-schedule-calc .shift-tag-b { background: #FFF9C4; }
.shift-schedule-calc .shift-tag-c { background: #F3E5F5; }
.shift-schedule-calc .shift-tag-off { background: #FFEBEE; color: #b91c1c; font-style: italic; }

@media (max-width: 1024px) {
    .shift-schedule-calc .shift-summary-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .shift-schedule-calc .shift-row.calc-input-row { grid-template-columns: 1fr; }
    .shift-schedule-calc .shift-summary-cards { grid-template-columns: 1fr; }
    .shift-schedule-calc .shift-grid-table { font-size: 0.8rem; }
    .shift-schedule-calc .shift-grid-table th, .shift-schedule-calc .shift-grid-table td { padding: 6px 8px; }
}
