/* ===========================
   Wasteo ERP Theme CSS
   =========================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Malgun Gothic', '맑은 고딕', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

hr {
    display: none;
}

.sound_only {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Header */
#hd {
    background: #fff;
    border-bottom: 3px solid #0066cc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#hd_h1 {
    position: absolute;
    left: -9999px;
}

#skip_to_container {
    position: absolute;
    left: -9999px;
}

#hd_login_msg {
    text-align: right;
    padding: 5px 20px;
    background: #f5f5f5;
    font-size: 12px;
    color: #666;
}

#hd_login_msg a {
    margin-left: 10px;
    color: #0066cc;
}

#hd_wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo h1 {
    font-size: 24px;
    color: #0066cc;
    font-weight: 700;
}

#logo a {
    text-decoration: none;
}

.hd_login {
    list-style: none;
    display: flex;
    gap: 15px;
    align-items: center;
}

.hd_login li {
    font-size: 13px;
}

.hd_login .user-name {
    font-weight: 600;
    color: #333;
}

.hd_login a {
    color: #666;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.hd_login a:hover {
    background: #f0f0f0;
    text-decoration: none;
}

.hd_login .tnb_admin a {
    background: #0066cc;
    color: white;
}

.hd_login .tnb_admin a:hover {
    background: #0052a3;
}

/* Navigation */
#gnb {
    background: #0066cc;
}

#gnb h2 {
    position: absolute;
    left: -9999px;
}

#gnb_menu {
    max-width: 1400px;
    margin: 0 auto;
    list-style: none;
    display: flex;
    gap: 0;
}

#gnb_menu li {
    flex: 1;
}

#gnb_menu a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s;
    text-decoration: none;
}

#gnb_menu a:hover {
    background: #0052a3;
}

#gnb_menu li.active a {
    background: #004080;
}

#gnb_menu i {
    margin-right: 5px;
}

/* Container */
#wrapper {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

#container_wr {
    background: transparent;
}

#container {
    background: transparent;
    min-height: 500px;
}

#container_title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
}

/* Footer */
#ft {
    background: #333;
    color: #999;
    padding: 30px 20px;
    margin-top: 50px;
}

#ft_wr {
    max-width: 1400px;
    margin: 0 auto;
}

#ft_company {
    text-align: center;
    font-size: 13px;
}

#ft_company p {
    color: #999;
}

#top_btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    font-size: 20px;
    transition: all 0.2s;
}

#top_btn:hover {
    background: #0052a3;
    transform: translateY(-3px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #0066cc;
    color: white;
}

.btn-primary:hover {
    background: #0052a3;
    text-decoration: none;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    text-decoration: none;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
    text-decoration: none;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    text-decoration: none;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

table thead {
    background: #f5f5f5;
}

table thead th {
    font-weight: 600;
    color: #333;
}

table tbody tr:hover {
    background: #f9f9f9;
}

/* Forms */
input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #0066cc;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.badge-primary {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-warning {
    background: #fff3e0;
    color: #e65100;
}

.badge-danger {
    background: #ffebee;
    color: #c62828;
}

.badge-product {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-material {
    background: #fff3e0;
    color: #e65100;
}

.badge-package {
    background: #f3e5f5;
    color: #6a1b9a;
}

/* Cards */
.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card-header {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
}

/* Responsive */
@media (max-width: 768px) {
    #hd_wrapper {
        flex-direction: column;
        gap: 15px;
    }

    #gnb_menu {
        flex-direction: column;
    }

    #gnb_menu li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    #wrapper {
        padding: 0 10px;
    }

    #top_btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}
