/* Variables */
:root {
  --blue:    #0d6efd;
  --indigo:  #6610f2;
  --purple:  #6f42c1;
  --pink:    #d63384;
  --red:     #dc3545;
  --orange:  #fd7e14;
  --yellow:  #ffc107;
  --green:   #198754;
  --teal:    #20c997;
  --cyan:    #0dcaf0;
}

/* Layout */
* { box-sizing: border-box; }
body { margin: 0px; }
.s2-background { max-width: 1920px; margin: 0px auto; }
.s2-container { width: 1500px; margin: 0px auto; padding: 0px 20px; }
.s2-grid-header { display: grid; grid-template-columns: 260px 1fr; grid-column-gap: 20px; }
.s2-grid-item-header { align-self: center; }
.s2-grid-main { display: grid; grid-template-columns: 1fr; grid-column-gap: 20px; min-height: 600px; }
.s2-grid-main .s2-cell { padding-bottom: 20px; }
.s2-grid-footer { display: grid; grid-template-columns: 1fr 1fr; grid-column-gap: 20px; }

/* Typography */
body { line-height: 1.7; font-family: "Noto Sans KR", sans-serif; font-size: 12px; font-weight: 300; color: #333333; }
h1, h2, h3, h4, h5, h6 { font-weight: 500; }
h1 { font-size: 1.6em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.4em; }
h4 { font-size: 1.3em; }
h5 { font-size: 1.2em; }
h6 { font-size: 1.1em; }
a { text-decoration: none; color: #01579b; }
table { table-layout: fixed; border-collapse: collapse; }
th { font-weight: 500; }
img { max-width: 100%; }
pre, code { font-family: Consolas; }
strong { font-weight: 500; }
.s2-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s2-text-align-right { text-align: right; }

/* Typography - Form */
input, select, button { font-family: inherit; font-size: inherit; }
input[ type=text ],
input[ type=password ],
input[ type=number ],
input[ type=date ],
input[ type=email ],
input[ type=submit ],
input[ type=button ],
input[ type=reset ],
input[ type=file ],
button { padding: 2px 6px; border: 1px solid #dadada; border-radius: 3px; }
input[ type=submit ],
input[ type=reset ],
input[ type=button ],
button { border: 1px solid var( --blue ); border-radius: 3px; background-color: var( --blue ); color: #ffffff; cursor: pointer; }
input[ type=submit ].s2-input-submit-red { border: 1px solid var( --red ); background-color: var( --red ); }
input[ type=file ] { border: 0px solid #dadada; border-radius: 3px; }
input[ type=text ]:read-only { background-color: #fafafa; }
.s2-button-delete,
.s2-button-blue,
.s2-button-red,
.s2-button-cyan,
.s2-button-teal,
.s2-button-green { display: inline-block; padding: 2px 6px; border: 1px solid #dadada; border-radius: 3px; color: #ffffff; line-height: initial; }
.s2-button-delete { border-color: var( --red ); background-color: var( --red ); }
.s2-button-blue { border-color: var( --blue ); background-color: var( --blue ); }
.s2-button-red { border-color: var( --red ); background-color: var( --red ); }
.s2-button-cyan { border-color: var( --cyan ); background-color: var( --cyan ); }
.s2-button-teal { border-color: var( --teal ); background-color: var( --teal ); }
.s2-button-green { border-color: var( --green ); background-color: var( --green ); }
select { padding: 1px 6px; border: 1px solid #dadada; border-radius: 3px; }
textarea { display: block; width: 100%; padding: 6px 8px; border: 1px solid #dadada; border-radius: 3px; line-height: inherit; font-family: inherit; font-size: inherit; }
input.s2-input-full-width { width: 100%; }
select.s2-input-full-width { width: 100%; }
span.s2-form-required:after { content: "*"; color: var( --red ); margin-right: 4px; }
span.s2-form-required-blue:after { content: "*"; color: var( --blue ); margin-right: 4px; }
.s2-form-table { display: table; width: 100%; }
.s2-form-table-row { display: table-row; }
.s2-form-table-cell { display: table-cell; padding-left: 3px; }
.s2-form-table-cell:first-child { width: 99%; padding-left: 0px; }
.s2-disable-input-submit { border-color: #999999 !important; background-color: #999999 !important; cursor: not-allowed !important; }

/* Typography - Output */
.s2-box-comment { padding: 8px 12px; border: 1px solid #dadada; border-radius: 3px; }

/* Typography - Table Type 01 */
table.s2-table-type-01 { width: 100%; margin: 20px 0px; border-top: 1px solid #dadada; }
table.s2-table-type-01 th, table.s2-table-type-01 td { height: 34px; padding: 4px 10px; border-bottom: 1px solid #dadada; }
table.s2-table-type-01 th { background-color: #fafafa; text-align: right; }

/* Typography - Table Type 02 */
table.s2-table-type-02 { margin: 20px 0px; width: 100%; }
table.s2-table-type-02 th,
table.s2-table-type-02 td { height: 34px; padding: 4px 6px; }
table.s2-table-type-02 th { border-top: 2px solid #dadada; border-bottom: 2px solid #dadada; background-color: #fafafa; text-align: left; }
table.s2-table-type-02 td { border-bottom: 1px solid #dadada; }

/* Typography - Table Type 03 */
table.s2-table-type-03 { margin: 20px 0px; width: 100%; }
table.s2-table-type-03 th,
table.s2-table-type-03 td { height: 34px; padding: 4px 6px; }
table.s2-table-type-03 th { border-top: 2px solid #dadada; border-bottom: 2px solid #dadada; background-color: #fafafa; text-align: left; position: sticky; top: 74px; z-index: 100; }
table.s2-table-type-03 td { border-bottom: 1px solid #dadada; }

/* Typography - Table Type 04 */
table.s2-table-type-04 { margin: 20px 0px; width: 100%; }
table.s2-table-type-04 th,
table.s2-table-type-04 td { height: 34px; padding: 4px 6px; }
table.s2-table-type-04 th { border-top: 2px solid #dadada; border-bottom: 2px solid #dadada; background-color: #fafafa; text-align: left; }
table.s2-table-type-04 td { border-bottom: 1px solid #dadada; }
table.s2-table-type-04 thead { position: sticky; top: 74px; z-index: 100;}

/* Typography - Table Type 11 */
table.s2-table-type-11 { margin: 20px 0px; width: 100%; }
table.s2-table-type-11 th,
table.s2-table-type-11 td { height: 34px; padding: 4px 6px; }
table.s2-table-type-11 th { border-top: 2px solid #dadada; border-bottom: 2px solid #dadada; background-color: #e1eef9; text-align: left; }
table.s2-table-type-11 td { border-bottom: 1px solid #dadada; }
table.s2-table-type-11 tbody tr:hover td { background-color: #fafafa; }

/* Typography - Table Type 11 Sticky */
table.s2-table-type-11-sticky th { position: sticky; top: 74px; z-index: 100; }

/* Typography - Table TD Money */
td.s2-table-cell-money,
th.s2-table-cell-money { text-align: right !important; }

/* Typography - SUM */
table tr.s2-sum td { background-color: #fafafa; }

/* Grid */
.s2-grid-2 { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 20px 20px; }
.s2-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-gap: 20px 20px; }


/* Typography - Table Responsive */
.s2-table-responsive { overflow-x: auto; width: 1300px }

/* Typography - Message */
#s2-message p { margin: 20px 0px; padding: 15px 10px 15px 20px; border-left: 5px solid #64b5f6; background-color: #e3f2fd; }

/* Header */
.s2-background-header { position: fixed; top: 0px; left: 50%; transform: translateX( -50% ); background-color: #ffffff; z-index: 1000; }
.s2-grid-header { border-bottom: 3px solid #444444; }
.s2-grid-item-header-1 h1 { margin: 20px 0px; font-weight: 700; }
.s2-grid-item-header-1 h1 a { color: #333333; }
@media ( max-width: 1500px ) {
  .s2-background-header { top: 0px; left: 0px; transform: translateX( 0% ); background-color: #ffffff; }
}

/* NAV */
nav.s2-menu ul { padding: 0px; text-align: right; }
nav.s2-menu ul li { display: inline-block; margin-left: 14px; }
nav.s2-menu a { color: #333333; }

/* Footer */
.s2-grid-footer { border-top: 3px solid #444444; }

/* Main - Sidebar */
.s2-grid-item-main-sidebar { border-right: 1px solid #444444; }
.s2-grid-item-main-sidebar nav { margin: 20px 0px; padding-left: 24px; }
.s2-grid-item-main-sidebar nav p { margin: 5px 0px; font-size: 12px; font-weight: 400; }
.s2-grid-item-main-sidebar nav p i { margin: 0px 10px 0px -20px; font-size: 12px; color: #666666; position: relative; top: 0px; }
.s2-grid-item-main-sidebar nav ul { margin: 5px 0px; padding-left: 4px; }
.s2-grid-item-main-sidebar nav ul li { list-style-type: none; }
.s2-grid-item-main-sidebar nav a { color: #333333; }

/* Main - Content */
.s2-background-main { margin-top: 75px; }
table.s2-main-title { width: 100%; margin: 0px 0px 20px 0px; border-bottom: 1px solid #dadada; }
table.s2-main-title td:nth-child(2) { text-align: right; }
span.s2-main-help { cursor: pointer; }
table.s2-table-add-filter { width: 100%; margin: 20px 0px -10px 0px; }
table.s2-table-add-filter td:nth-child( 2 ),
table.s2-table-add-filter td:nth-child( 3 ) { width: 50px; text-align: right; }
table.s2-table-filter { width: 100%; margin: 20px 0px; }
table.s2-table-filter td { padding: 4px 0px; }
table.s2-table-filter td:nth-child(2) { text-align: right; }
table.s2-table-filter-with-label { table-layout: auto; width: 100%; margin: 20px 0px; }
table.s2-table-filter-with-label th,
table.s2-table-filter-with-label td { padding: 4px 2px; text-align: left; }
table.s2-table-filter-with-label-2 { table-layout: auto; width: 100%; margin: 20px 0px; }
table.s2-table-filter-with-label-2 th { text-align: left; }
table.s2-table-filter-with-label-2 td { width: 1%; padding: 4px 2px; text-align: left; }
/* table.s2-table-filter-with-label-2 td:first-child { width: auto; } */
table.s2-table-filter-with-label-3 { table-layout: auto; width: 100%; margin: 20px 0px; }
table.s2-table-filter-with-label-3 th,
table.s2-table-filter-with-label-3 td { padding: 4px 2px; text-align: left; vertical-align: top; }

/* Typography - Guide */
.s2-guide { display: none; margin: 20px 0px; padding: 1px 10px 1px 20px; border-left: 5px solid #666666; background-color: #fafafa; }
.s2-guide ul { margin: 10px 0px; padding-left: 20px; }
.s2-guide ul ul { margin: 2px 0px; }

/* Login */
.s2-form-login { margin: 100px 0px; text-align: center; }

/* Popup */
.s2-page-popup { padding: 0px 20px; }

/* Index */
.s2-grid-index { margin: 20px 0px; display: grid; grid-template-columns: 1fr 1fr; grid-gap: 10px 10px; }
.s2-grid-item-index { padding: 0px 20px; border: 1px solid #dadada; border-radius: 5px; }

/* Company Insert, Update */
h3.s2-show-profile { cursor: pointer; }
.s2-grid-profile { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 20px 20px; }
.s2-grid-item-profile { padding: 0px 20px 10px; border: 1px solid #dadada; border-radius: 5px; }
.s2-grid-item-profile th { width: 90px; }
.s2-grid-item-profile textarea { height: 100px; }
table.s2-table-company-profile { width: 100%; }
table.s2-table-company-profile td { padding: 3px 0px; }
table.s2-table-company-profile td:first-child { width: 100px; padding-right: 12px; text-align: right; }

/* Forecast List */

/* Order List */
table.s2-table-order-list { width: 100%; margin: 10px 0px; border: 1px solid #dadada; }
table.s2-table-order-list th, table.s2-table-order-list td { padding: 2px 0px; }
table.s2-table-order-list th { width: 110px; padding-left: 10px; text-align: left; }
table.s2-table-order-list tr:first-child th, table.s2-table-order-list tr:first-child td { padding-top: 6px; }
table.s2-table-order-list tr:last-child th, table.s2-table-order-list tr:last-child td { padding-bottom: 6px; }
table.s2-table-order-list td.s2-order-list-check { width: 40px; border-right: 1px solid #dadada; text-align: center; }

/* Order Request */
.s2-grid-order-request { margin: 20px 0px; display: grid; grid-template-columns: 1fr 1fr; grid-gap: 20px 20px; }
#s2-page-order-request h3 { margin: 0px 0px; }

/* Analytics */
.s2-grid-analytics { margin: 20px 0px; display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr; grid-gap: 10px 10px; }
.s2-grid-item-analytics a { display: block; padding: 10px 20px; border: 1px solid #dadada; border-radius: 5px; transition: all ease 0.2s; }
.s2-grid-item-analytics a:hover { border-color: var( --blue ); background-color: var( --blue ); color: #ffffff; }

/* Report - Company Profile */
.s2-report-company-profile-detail { line-height: 1.2; font-size: 12px; color: #888888; }
table.s2-table-list-report-company-profile td { vertical-align: top; }

/* To Top */
a.s2-top { position: fixed; right: 10px; bottom: 10px; z-index: 9999; display: none; width: 48px; padding: 10px 0px; border-radius: 0px; background-color: #212121; background-color: rgba(20, 20, 20, 0.8); text-align: center; line-height: 0; font-size: 28px; color: #ffffff; }
a.s2-top:hover { background-color: rgba(0, 0, 0, 0.8); color: #ffffff; }


/* Help */
#s2-page-help h3 { font-size: 14px; }
#s2-page-help ul { padding-left: 20px; }

/* Tab */
ul.s2-tab-nav { padding-left: 0px; border-bottom: 1px solid #dadada; }
ul.s2-tab-nav li { display: inline-block; margin-right: -4px; }
ul.s2-tab-nav li a { display: block; padding: 5px 10px; border: 1px solid #dadada; border-bottom: none; background-color: #fafafa; }
ul.s2-tab-nav li.ui-tabs-active a { border-color: var( --blue ); background-color: var( --blue ); color: #ffffff; }

/* Target Sales */
.s2-tooltip { position: relative; }
.s2-tooltip-text { display: none; position: absolute; top: 100%; left: 5px; z-index: 1000; width: 560px; padding: 10px; border-radius: 5px; background-color: #444444; color: #ffffff; }
.s2-tooltip:hover .s2-tooltip-text { display: block; }

/* Count */
span#count { display: inline-block; width: 40px; text-align: right; font-weight: 500; }

/* Report - Sales */

table.s2-table-report-sales th,
table.s2-table-report-sales td { border-right: 1px solid #dadada; }
table.s2-table-report-sales th:last-child,
table.s2-table-report-sales td:last-child { border-right: none; }
table.s2-table-report-sales th { border-top: 1px solid #666666; border-bottom: 1px solid #666666; }
table.s2-table-report-sales tr:nth-last-child( 1 ) td { border-bottom: 1px solid #666666; }
table.s2-table-report-sales tr:nth-last-child( 2 ) td:first-child { border-bottom: 1px solid #666666; }
table.s2-table-report-sales tr:nth-last-child( 3 ) td { border-bottom: 1px solid #666666; }
table.s2-table-report-sales tr:nth-last-child( 4 ) td:first-child { border-bottom: 1px solid #666666; }
table.s2-table-report-sales tr:nth-last-child( 5 ) td { border-bottom: 1px solid #666666; }
table.s2-table-report-sales tr:nth-last-child( 6 ) td:first-child { border-bottom: 1px solid #666666; }
table.s2-table-report-sales th:nth-last-child( 20 ),
table.s2-table-report-sales td:nth-last-child( 20 ) { border-right: 1px solid #666666; }
table.s2-table-report-sales th { text-align: center; }
table.s2-table-report-sales td { text-align: right; }
table.s2-table-report-sales td:nth-last-child( 20 ),
table.s2-table-report-sales td:nth-last-child( 21 ) { text-align: center; }
table.s2-table-report-sales th:nth-last-child( 3 ),
table.s2-table-report-sales td:nth-last-child( 3 ),
table.s2-table-report-sales th:nth-last-child( 7 ),
table.s2-table-report-sales td:nth-last-child( 7 ),
table.s2-table-report-sales th:nth-last-child( 12 ),
table.s2-table-report-sales td:nth-last-child( 12 ),
table.s2-table-report-sales th:nth-last-child( 16 ),
table.s2-table-report-sales td:nth-last-child( 16 ) { border-right: 1px solid #666666; font-weight: 500; }
table.s2-table-report-sales th:nth-last-child( 4 ),
table.s2-table-report-sales td:nth-last-child( 4 ),
table.s2-table-report-sales th:nth-last-child( 8 ),
table.s2-table-report-sales td:nth-last-child( 8 ),
table.s2-table-report-sales th:nth-last-child( 13 ),
table.s2-table-report-sales td:nth-last-child( 13 ),
table.s2-table-report-sales th:nth-last-child( 17 ),
table.s2-table-report-sales td:nth-last-child( 17 ) { border-right: 1px solid #666666; }
table.s2-table-report-sales th:nth-last-child( 2 ),
table.s2-table-report-sales td:nth-last-child( 2 ),
table.s2-table-report-sales th:nth-last-child( 11 ),
table.s2-table-report-sales td:nth-last-child( 11 ) { border-right: 1px solid #666666; font-weight: 500; }
table.s2-table-report-sales th:nth-last-child( 1 ),
table.s2-table-report-sales td:nth-last-child( 1 ) { font-weight: 500; }
table.s2-table-report-sales th:nth-last-child( 20 ),
table.s2-table-report-sales td:nth-last-child( 20 ),
table.s2-table-report-sales th:nth-last-child( 21 ),
table.s2-table-report-sales td:nth-last-child( 21 ) { background-color: #fafafa; font-weight: 500; }

/* Report - Forecast */

table.s2-table-forecast th,
table.s2-table-forecast td { border-right: 1px solid #dadada; }
table.s2-table-forecast th:last-child,
table.s2-table-forecast td:last-child { border-right: 0px solid #dadada; }
table.s2-table-forecast th { border-top: 1px solid #666666; border-bottom: 1px solid #666666; text-align: center; }
table.s2-table-forecast tr:nth-child( 1 ) th { border-right: 1px solid #666666; }
table.s2-table-forecast tr:nth-child( 1 ) th:last-child { border-right: none; }
table.s2-table-forecast tr:nth-child( 2 ) th:nth-child( 2n ) { border-right: 1px solid #666666; }
table.s2-table-forecast tr:nth-child( 2 ) th:last-child { border-right: none; }
table.s2-table-forecast tr:nth-child( 1 ) td:nth-child( 2n+1 ) { border-right: 1px solid #666666; }
table.s2-table-forecast tr:nth-child( 1 ) td:last-child { border-right: none; }
table.s2-table-forecast tr:nth-child( 2 ) td:nth-child( 2n+1 ) { border-right: 1px solid #666666; }
table.s2-table-forecast tr:nth-child( 2 ) td:last-child { border-right: none; }
table.s2-table-forecast tr:nth-child( 3 ) td:nth-child( 2n+1 ) { border-right: 1px solid #666666; }
table.s2-table-forecast tr:nth-child( 3 ) td:last-child { border-right: none; }
table.s2-table-forecast tr:nth-child( 4 ) td:nth-child( 2n+1 ) { border-right: 1px solid #666666; }
table.s2-table-forecast tr:nth-child( 4 ) td:last-child { border-right: none; }
table.s2-table-forecast td { text-align: right; }
table.s2-table-forecast td:nth-child( 1 ) { text-align: center; font-weight: 500; }
table.s2-table-forecast td:nth-child( 8 ),
table.s2-table-forecast td:nth-child( 9 ),
table.s2-table-forecast td:nth-child( 12 ),
table.s2-table-forecast td:nth-child( 13 ),
table.s2-table-forecast td:nth-child( 20 ),
table.s2-table-forecast td:nth-child( 21 ) { background-color: #fafafa; font-weight: 500; }
table.s2-table-forecast td:nth-child( 1 ),
table.s2-table-forecast td:nth-child( 7 ),
table.s2-table-forecast td:nth-child( 9 ),
table.s2-table-forecast td:nth-child( 11 ),
table.s2-table-forecast td:nth-child( 13 ),
table.s2-table-forecast td:nth-child( 19 ) { border-right: 1px solid #666666; }
table.s2-table-forecast tr:nth-last-child( 2 ) td { border-bottom: 1px solid #666666; }
table.s2-table-forecast tr:last-child td { border-bottom: 1px solid #666666; background-color: #fafafa; font-weight: 500; }
table.s2-table-forecast-type th,
table.s2-table-forecast-type td { border-right: 1px solid #dadada; }
table.s2-table-forecast-type th:last-child,
table.s2-table-forecast-type td:last-child { border-right: none; }
table.s2-table-forecast-type th { border-top: 1px solid #666666; border-bottom: 1px solid #666666; }
table.s2-table-forecast-type tr:last-child td { border-bottom: 1px solid #666666; }
table.s2-table-forecast-type th:first-child,
table.s2-table-forecast-type td:first-child { border-right: 1px solid #666666; }
table.s2-table-forecast-type th:nth-child( 13 ),
table.s2-table-forecast-type td:nth-child( 13 ) { border-right: 1px solid #666666; }
table.s2-table-forecast-type th { text-align: center; }
table.s2-table-forecast-type td { text-align: right; }
table.s2-table-forecast-type td:first-child { text-align: left; }
