*{
box-sizing:border-box;
margin:0;
padding:0;
font-family:Tahoma;
}

body{
background:linear-gradient(135deg,#eef4fb,#dfe9f7);
padding:20px;
color:#1455a0;
}

.container{
max-width:1250px;
margin:auto;
background:#fff;
border-radius:25px;
padding:28px;
box-shadow:0 15px 40px rgba(0,0,0,0.1);
}

h1{
margin-bottom:25px;
font-size:28px;
text-align:right;
color:#1455a0;
font-weight:800;
}

.filters-form{
margin-bottom:20px;
}

.filters-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
gap:12px;
margin-bottom:14px;
}

.filters-grid input,
.filters-grid select{
width:100%;
height:48px;
border-radius:12px;
border:1px solid #cfd8e6;
padding:0 14px;
font-size:15px;
font-weight:600;
color:#1455a0;
background:#fff;
outline:none;
}

.filters-grid input:focus,
.filters-grid select:focus{
border-color:#1455a0;
box-shadow:0 0 0 3px rgba(20,85,160,0.15);
}

.actions-bar{
display:flex;
gap:12px;
margin-bottom:20px;
flex-wrap:wrap;
}

.btn{
height:48px;
padding:0 20px;
border:none;
border-radius:12px;
font-size:15px;
cursor:pointer;
min-width:115px;
font-weight:bold;
text-decoration:none;
display:inline-flex;
align-items:center;
justify-content:center;
transition:.2s ease;
}

.search{
background:#2d7fe0;
color:#fff;
}

.add{
background:#1455a0;
color:#fff;
}

.back{
background:#d8e0ea;
color:#1455a0;
}

.reset{
background:#7c8794;
color:#fff;
}

.edit{
height:36px;
min-width:70px;
padding:0 12px;
border-radius:9px;
background:#2563eb;
color:#fff;
font-size:14px;
}

.btn:hover{
opacity:.9;
transform:translateY(-1px);
}

.table-wrap{
width:100%;
overflow-x:auto;
border-radius:16px;
border:1px solid #d6dde8;
}

table{
width:100%;
border-collapse:collapse;
min-width:1050px;
}

th,
td{
border:1px solid #d6dde8;
padding:12px;
text-align:center;
font-size:15px;
white-space:nowrap;
}

th{
background:#edf3fb;
color:#1455a0;
font-weight:800;
position:sticky;
top:0;
z-index:1;
}

td{
color:#1455a0;
font-weight:600;
}

tr:nth-child(even){
background:#f9fbff;
}

.row-sell{
background:#eaf8ef !important;
}

.row-buy{
background:#fff4e6 !important;
}

.row-sell td{
color:#17633a;
}

.row-buy td{
color:#9a5a00;
}

.row-sell:hover,
.row-buy:hover,
tbody tr:hover{
filter:brightness(.98);
}

td[colspan]{
padding:25px;
font-size:17px;
color:#777;
background:#fafafa;
}

.pagination-wrap{
margin-top:18px;
display:flex;
align-items:center;
justify-content:space-between;
gap:12px;
flex-wrap:wrap;
}

.pagination-info{
font-weight:700;
color:#1455a0;
}

.pagination{
display:flex;
gap:8px;
flex-wrap:wrap;
}

.page-btn{
height:38px;
min-width:42px;
padding:0 12px;
border-radius:9px;
background:#edf3fb;
color:#1455a0;
border:1px solid #cfd8e6;
text-decoration:none;
display:inline-flex;
align-items:center;
justify-content:center;
font-weight:700;
}

.page-btn:hover{
background:#dceafe;
}

.page-btn.active{
background:#1455a0;
color:#fff;
border-color:#1455a0;
}

@media(max-width:700px){
body{
padding:12px;
}

.container{
padding:20px;
border-radius:20px;
}

h1{
font-size:24px;
}

.filters-grid{
grid-template-columns:1fr;
}

.actions-bar{
flex-direction:column;
}

.btn{
width:100%;
min-width:100%;
}

table{
min-width:1050px;
}

th,
td{
font-size:14px;
padding:10px;
}

.pagination-wrap{
align-items:stretch;
}

.pagination-info{
text-align:center;
}

.pagination{
justify-content:center;
}
}