/* sales.css - Invisible POS 매출 내역 조회 디자인 요소 */
body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 20px;
    color: #333;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
}

h1 {
    margin: 0;
    font-size: 20px;
}

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.login-box {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 350px;
    text-align: center;
    border-top: 5px solid #ff5722;
}

.login-box h2 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 22px;
}

.login-desc {
    font-size: 12px;
    color: #888;
    margin-bottom: 25px;
}

.form-group {
    text-align: left;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #666;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 15px;
}

.form-group input:focus {
    border-color: #ff5722;
    outline: none;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.card h2 {
    margin-top: 0;
    font-size: 18px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.summary-box {
    background: #fff3e0;
    border: 1px solid #ffb74d;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.summary-title {
    font-size: 14px;
    color: #e65100;
    font-weight: bold;
    margin-bottom: 5px;
}

.summary-amount {
    font-size: 32px;
    font-weight: bold;
    color: #ff5722;
}

.summary-count {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #f8f9fa;
    color: #555;
    font-weight: bold;
}

.date-control {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    background: #f9f9f9;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.date-control input[type="date"] {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 13px;
}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    background: #ff5722;
    color: white;
    transition: 0.2s;
    font-size: 14px;
    width: 100%;
}

.btn-small {
    width: auto;
    padding: 8px 12px;
    font-size: 13px;
}

.btn-outline {
    background: white;
    color: #555;
    border: 1px solid #ddd;
}

.btn:hover {
    opacity: 0.8;
}

.item-list-text {
    white-space: pre-wrap;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

#master-store-select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 2px solid #ff5722;
    font-weight: bold;
    color: #ff5722;
    outline: none;
    background: #fff3e0;
    margin-right: 10px;
    font-size: 14px;
    cursor: pointer;
}

/* 👇 새로 추가할 테이블 현황판 스타일 👇 */
.tab-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    text-align: center;
    padding: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.tab-btn.active {
    background: #333;
    color: white;
    border-color: #333;
}

.table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.table-card {
    background: white;
    border: 2px solid #ff9800;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    position: relative;
}

.table-card h3 {
    margin: 0 0 15px 0;
    color: #ff5722;
    font-size: 20px;
    border-bottom: 2px dashed #ffe0b2;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-item-list {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.table-total {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: right;
    margin-bottom: 15px;
}

.table-actions {
    display: flex;
    gap: 10px;
}

.table-actions button {
    flex: 1;
    padding: 12px;
    font-size: 15px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    border: none;
}