body {
    text-align: center;
    font-size: 14px;
}

table {
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
}

table tr {
    text-align: center;
    line-height: 2rem;
}

table tr.xslist input {
    border: none;
}

table tr.xslist:hover input {
    background-color: #eee;
}

table tr.edit input {
    background-color: white;
    border: 1px solid black;
}

table tr.edit:hover input {
    background-color: white;
}

table tr.xslist .sex input,
table tr.xslist .sex label {
    display: none;
}

table tr.edit .sex span {
    display: none;
}

table tr.edit .sex input,
table tr.edit .sex label {
    display: inline-block;
}

table td input {
    text-align: center;
}

table tr.input input,
table tr.edit input {
    line-height: 1.4rem;
}

table tr:hover {
    background-color: #eee;
}

table th,
table td {
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

table td:last-child {
    width: 20px;
}


/*按钮*/

.control {
    text-align: right;
    padding-right: 2%;
}

.save-button,
.cancel-button,
.editing .edit-button {
    display: none;
}

.save-button:hover {
    color: white;
    background-color: green;
    border-style: solid;
    border-color: green;
}

.edit-button,
.editing .edit .save-button,
.editing .edit .cancel-button {
    display: inline-block;
}

.cancel-button:hover {
    color: white;
    background-color: orange;
    border-style: solid;
    border-color: orange;
}

.edit-button:hover {
    color: white;
    background-color: skyblue;
    border-style: solid;
    border-color: skyblue;
}

.del-button:hover {
    color: white;
    background-color: red;
    border-style: solid;
    border-color: red;
}

.add-button:hover {
    border-style: solid;
    border-color: green;
}

.backtohome {
    margin-top: 20px;
    width: 100px;
    line-height: 1.5rem;
}


/*分页*/

.pages {
    margin-top: 8px;
    font-size: 16px;
}

.pages a,
.pages span {
    display: inline-block;
    padding: 2px 8px;
    margin: 0 2px;
    border: 1px solid #f0f0f0;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

.pages a,
.pages li {
    display: inline-block;
    list-style: none;
    text-decoration: none;
    color: #58A0D3;
}

.pages a.first,
.pages a.prev,
.pages a.next,
.pages a.end {
    margin: 0;
}

.pages a:hover {
    border-color: #50A8E6;
}

.pages span.current {
    background: #50A8E6;
    color: #FFF;
    font-weight: 700;
    border-color: #50A8E6;
}
