/* Calculator Ore de Lucru v2 - seotoolpro.ro
   Prefix: ol2-
   Temă: Light cu accente Teal Mint (asortat la SEO Tool Pro)
*/

.ol2-wrap {
    margin-bottom: 24px;
}

/* ===== SECTIUNI ===== */
.ol2-section {
    background: #fff;
    border-radius: 10px;
    padding: 22px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    margin-bottom: 16px;
    border: 1px solid #f0f0f0;
}

.ol2-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
    flex-wrap: wrap;
}

.ol2-section-header > span:first-child {
    font-size: 20px;
}

.ol2-section-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0f1e35;
    margin: 0;
    flex: 1;
}

.ol2-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===== TOP ROW: AN + LUNA + TARIF ===== */
.ol2-top-row {
    display: grid;
    grid-template-columns: 140px 1fr 180px;
    gap: 16px;
    align-items: start;
}

.ol2-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 6px;
}

.ol2-opt {
    font-weight: 400;
    color: #9ca3af;
}

.ol2-field select,
.ol2-field input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.ol2-field select:focus,
.ol2-field input:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

/* ===== GRID LUNI ===== */
.ol2-months-field {
    min-width: 0;
}

.ol2-months-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
}

.ol2-month-btn {
    padding: 9px 4px;
    border: 2px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.ol2-month-btn.active {
    background: #14b8a6;
    border-color: #14b8a6;
    color: #fff;
}

.ol2-month-btn:hover:not(.active) {
    border-color: #14b8a6;
    color: #0f766e;
    background: #f0fdfa;
}

/* ===== PROGRAM IMPLICIT ===== */
.ol2-default-row {
    display: flex;
    gap: 12px;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.ol2-field-inline {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ol2-field-inline label {
    font-size: 11px;
    font-weight: 600;
    color: #0f766e;
}

.ol2-field-inline input {
    padding: 7px 10px;
    border: 1.5px solid #5eead4;
    border-radius: 6px;
    font-size: 13px;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.ol2-field-inline input:focus {
    border-color: #14b8a6;
}

/* ===== BUTOANE HEADER ===== */
.ol2-fill-btn,
.ol2-clear-btn {
    padding: 8px 14px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.ol2-fill-btn {
    background: linear-gradient(135deg, #14b8a6, #2dd4bf);
    color: #fff;
}

.ol2-fill-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.3);
}

.ol2-clear-btn {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.ol2-clear-btn:hover {
    background: #fca5a5;
    color: #fff;
}

/* ===== TABEL ===== */
.ol2-table-wrap {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.ol2-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.ol2-table thead th {
    background: #f3f4f6;
    padding: 10px 10px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

.ol2-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s;
}

.ol2-table tbody tr:last-child {
    border-bottom: none;
}

.ol2-table tbody tr:hover {
    background: #f0fdfa;
}

.ol2-table td {
    padding: 7px 8px;
    vertical-align: middle;
}

/* Tipuri de randuri */
.ol2-row-weekend {
    background: #fafafa;
}

.ol2-row-holiday {
    background: #fff7ed;
}

/* ===== INPUTURI IN TABEL ===== */
.ol2-time-in,
.ol2-time-out {
    width: 100%;
    padding: 7px 8px;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    color: #111827;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    font-family: inherit;
    min-width: 90px;
}

.ol2-break-in {
    width: 70px;
    padding: 7px 8px;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    color: #111827;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    font-family: inherit;
    text-align: center;
}

.ol2-time-in:focus,
.ol2-time-out:focus,
.ol2-break-in:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.15);
}

/* ===== BADGES ===== */
.ol2-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.ol2-badge-work {
    background: #ccfbf1;
    color: #115e59;
}

.ol2-badge-wk {
    background: #f3f4f6;
    color: #6b7280;
}

.ol2-badge-hol {
    background: #fef3c7;
    color: #92400e;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== ORE NETE COLORATE ===== */
.ol2-td-ore {
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    min-width: 70px;
}

.ol2-ore-ok {
    color: #0d9488;
}

.ol2-ore-over {
    color: #d97706;
}

.ol2-dash {
    color: #d1d5db;
    font-weight: 400;
}

/* ===== COLOANE ===== */
.ol2-th-zi    { width: 36px; }
.ol2-th-data  { width: 70px; }
.ol2-th-tip   { width: 110px; }
.ol2-th-in    { width: 100px; }
.ol2-th-out   { width: 100px; }
.ol2-th-break { width: 90px; }
.ol2-th-ore   { width: 80px; text-align: center; }

/* ===== CARDURI SUMAR ===== */
.ol2-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.ol2-card {
    border-radius: 10px;
    padding: 16px 14px;
    text-align: center;
}

.ol2-card-lbl {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    opacity: 0.7;
}

.ol2-card-val {
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4px;
}

.ol2-card-unit {
    font-size: 11px;
    opacity: 0.6;
}

.ol2-card-a { background: #ccfbf1; color: #115e59; }
.ol2-card-b { background: #dbeafe; color: #1e3a8a; }
.ol2-card-c { background: #f3f4f6; color: #374151; }
.ol2-card-d { background: #d1fae5; color: #064e3b; }
.ol2-card-e { background: #fef3c7; color: #78350f; }
.ol2-card-f { background: #fce7f3; color: #831843; }

.ol2-supl-pos { color: #d97706 !important; }
.ol2-supl-neg { color: #dc2626 !important; }

/* ===== ACTIUNI ===== */
.ol2-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ol2-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ol2-btn-download {
    background: linear-gradient(135deg, #14b8a6, #2dd4bf);
    color: #fff;
}

.ol2-btn-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.35);
}

.ol2-btn-copy {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.ol2-btn-copy:hover { background: #e5e7eb; }
.ol2-btn-copy.ol2-copied {
    background: #ccfbf1;
    color: #115e59;
    border-color: #5eead4;
}

.ol2-btn-print {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.ol2-btn-print:hover { background: #dbeafe; }

.ol2-btn-reset {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.ol2-btn-reset:hover { background: #ffedd5; }

/* ===== PRINT ===== */
@media print {
    .ol2-actions, .ol2-fill-btn, .ol2-clear-btn,
    .ol2-default-row, .xd_top_box, .sidebar { display: none !important; }
    .ol2-table-wrap { overflow: visible; }
    .ol2-section { box-shadow: none; border: 1px solid #e5e7eb; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .ol2-top-row {
        grid-template-columns: 1fr 1fr;
    }
    .ol2-months-field {
        grid-column: 1 / -1;
    }
    .ol2-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ol2-section { padding: 16px; }
    .ol2-top-row { grid-template-columns: 1fr; }
    .ol2-months-grid { grid-template-columns: repeat(4, 1fr); }
    .ol2-cards { grid-template-columns: repeat(2, 1fr); }
    .ol2-table { font-size: 12px; }
    .ol2-time-in, .ol2-time-out { min-width: 78px; }
}