* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3f5f7;
    color: #202124;
}

.container {
    max-width: 650px;
    margin: auto;
    padding: 16px;
    padding-bottom: 60px;
}

header {
    text-align: center;
    padding: 18px 0;
}

header h1 {
    margin: 0;
    font-size: 28px;
}

header p {
    margin: 4px;
    font-weight: bold;
    color: #666;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

h2 {
    margin-top: 0;
    font-size: 18px;
}

label {
    display: block;
    margin-top: 12px;
    margin-bottom: 5px;
    font-weight: bold;
}

input,
select,
textarea {
    width: 100%;
    padding: 11px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.employee {
    display: grid;
    grid-template-columns: 30px 1fr 90px 90px;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
}

.employee input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.employee input[type="time"] {
    padding: 8px 3px;
}

.work {
    display: grid;
    grid-template-columns: 1fr 90px 30px;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.work input {
    text-align: center;
}

.secondary {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid #bbb;
    border-radius: 8px;
    background: white;
    font-size: 15px;
    cursor: pointer;
}

.secondary:hover {
    background: #f2f2f2;
}

.dynamic-row {
    display: grid;
    grid-template-columns: 1fr 100px 42px;
    gap: 7px;
    margin-bottom: 8px;
}

.delete {
    border: none;
    border-radius: 8px;
    background: #eee;
    cursor: pointer;
}

.counter {
    text-align: right;
}

.submit {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 10px;
    background: #222;
    color: white;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}

.pause {
    margin-top: 15px;
}
.extra-work {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fafafa;
}

.extra-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.extra-header .delete {
    width: 36px;
    height: 36px;
}

.extra-employees {
    margin-top: 8px;
}

.extra-employee {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    margin: 7px 0;
}

.extra-employee input {
    width: 18px;
    height: 18px;
}
.success-message {
    margin-top: 15px;
    padding: 16px;
    background: #e8f5e9;
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
}